1 2017-11-08 Pedro Alves <palves@redhat.com>
3 * ada-lang.c (ada_encode): Rename to ..
4 (ada_encode_1): ... this. Add throw_errors parameter and handle
6 (ada_encode): Reimplement.
7 (match_name): Delete, folded into full_name.
8 (resolve_subexp): No longer pass the encoded name to
9 ada_lookup_symbol_list.
10 (should_use_wild_match): Delete.
11 (name_match_type_from_name): New.
12 (ada_lookup_simple_minsym): Use lookup_name_info and the
13 language's symbol_name_matcher_ftype.
14 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
15 (ada_add_block_renamings): Adjust to use lookup_name_info.
16 (ada_lookup_name): New.
17 (add_nonlocal_symbols, ada_add_all_symbols)
18 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
19 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
20 (ada_name_for_lookup): Delete.
21 (ada_lookup_encoded_symbol): Construct a verbatim name.
22 (wild_match): Reverse sense of return type. Use bool.
23 (full_match): Reverse sense of return type. Inline bits of old
25 (ada_add_block_symbols): Adjust to use lookup_name_info.
26 (symbol_completion_match): Delete, folded into...
27 (ada_lookup_name_info::matches): ... .this new method.
28 (symbol_completion_add): Delete.
29 (ada_collect_symbol_completion_matches): Add name_match_type
30 parameter. Adjust to use lookup_name_info and
31 completion_list_add_name.
32 (get_var_value, ada_add_global_exceptions): Adjust to use
34 (ada_get_symbol_name_cmp): Delete.
35 (do_wild_match, do_full_match): New functions.
36 (ada_lookup_name_info::ada_lookup_name_info): New method.
37 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
39 (ada_language_defn): Install ada_get_symbol_name_matcher.
40 * ada-lex.l (processId): If name starts with '<', copy it
42 * block.c (block_iter_match_step, block_iter_match_first)
43 (block_iter_match_next, block_lookup_symbol)
44 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
46 * block.h (block_iter_match_first, block_iter_match_next)
47 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
48 * c-lang.c (c_language_defn, cplus_language_defn)
49 (asm_language_defn, minimal_language_defn): Adjust comments to
50 refer to la_get_symbol_name_matcher.
51 * completer.c (complete_files_symbols)
52 (collect_explicit_location_matches, symbol_completer): Pass a
53 symbol_name_match_type down.
54 * completer.h (class completion_match, completion_match_result):
56 (completion_tracker::reset_completion_match_result): New method.
57 (completion_tracker::m_completion_match_result): New field.
58 * cp-support.c (make_symbol_overload_list_block): Adjust to use
60 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
62 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
63 * d-lang.c: Adjust comments to refer to
64 la_get_symbol_name_matcher.
65 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
66 Adjust to use lookup_name_info.
67 (dict_iter_match_first, dict_iter_match_next)
68 (iter_match_first_hashed, iter_match_next_hashed)
69 (iter_match_first_linear, iter_match_next_linear): Adjust to work
70 with a lookup_name_info.
71 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
73 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
74 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
75 (gdb_index_symbol_name_matcher): New class.
76 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
77 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
78 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
79 with a symbol_name_match_type.
80 (f_language_defn): Adjust comments to refer to
81 la_get_symbol_name_matcher.
82 * go-lang.c (go_language_defn): Adjust comments to refer to
83 la_get_symbol_name_matcher.
84 * language.c (default_symbol_name_matcher)
85 (language_get_symbol_name_matcher): New functions.
86 (unknown_language_defn, auto_language_defn): Adjust comments to
87 refer to la_get_symbol_name_matcher.
88 * language.h (symbol_name_cmp_ftype): Delete.
89 (language_defn) <la_collect_symbol_completion_matches>: Add match
91 <la_get_symbol_name_cmp>: Delete field.
92 <la_get_symbol_name_matcher>: New field.
93 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
94 (default_symbol_name_matcher, language_get_symbol_name_matcher):
96 * linespec.c (iterate_over_all_matching_symtabs)
97 (iterate_over_file_blocks): Adjust to use lookup_name_info.
98 (find_methods): Add language parameter, and use lookup_name_info
99 and the language's symbol_name_matcher_ftype.
100 (linespec_complete_function): Adjust.
101 (lookup_prefix_sym): Use lookup_name_info.
102 (add_all_symbol_names_from_pspace): Adjust.
103 (find_superclass_methods): Add language parameter and pass it
105 (find_method): Pass symbol language down.
106 (find_linespec_symbols): Don't demangle or Ada encode here.
107 (search_minsyms_for_name): Add lookup_name_info parameter.
108 (add_matching_symbols_to_info): Add name_match_type parameter.
109 Use lookup_name_info.
110 * m2-lang.c (m2_language_defn): Adjust comments to refer to
111 la_get_symbol_name_matcher.
112 * minsyms.c: Include <algorithm>.
113 (add_minsym_to_demangled_hash_table): Remove table parameter and
114 add objfile parameter. Use search_name_hash, and add language to
115 demangled languages vector.
116 (struct found_minimal_symbols): New struct.
117 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
119 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
120 input names here. Use lookup_name_info instead. Lookup up
121 demangled names once for each language in the demangled names
123 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
124 demangled names once for each language in the demangled names
126 (build_minimal_symbol_hash_tables): Adjust.
127 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
129 * objc-lang.c (objc_language_defn): Adjust comment to refer to
130 la_get_symbol_name_matcher.
131 * objfiles.h: Include <vector>.
132 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
133 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
134 la_get_symbol_name_matcher.
135 * p-lang.c (pascal_language_defn): Adjust comment to refer to
136 la_get_symbol_name_matcher.
137 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
138 (match_partial_symbol): Use symbol_name_match_type,
139 lookup_name_info and psymbol_name_matches.
140 (lookup_partial_symbol): Use lookup_name_info.
141 (map_block): Use symbol_name_match_type and lookup_name_info.
142 (psym_map_matching_symbols): Use symbol_name_match_type.
143 (psymbol_name_matches): New.
144 (recursively_search_psymtabs): Use lookup_name_info and
145 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
146 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
147 'kind' parameter to 'domain'.
148 * rust-lang.c (rust_language_defn): Adjust comment to refer to
149 la_get_symbol_name_matcher.
150 * symfile-debug.c (debug_qf_map_matching_symbols)
151 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
152 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
153 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
154 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
155 Adjust to use symbol_name_match_type.
156 <expand_symtabs_matching>: Adjust to use lookup_name_info.
157 (expand_symtabs_matching): Adjust to use lookup_name_info.
158 * symmisc.c (maintenance_expand_symtabs): Use
159 lookup_name_info::match_any ().
160 * symtab.c (symbol_matches_search_name): New.
161 (eq_symbol_entry): Adjust to use lookup_name_info and the
163 (demangle_for_lookup_info::demangle_for_lookup_info): New.
164 (lookup_name_info::match_any): New.
165 (iterate_over_symbols, search_symbols): Use lookup_name_info.
166 (compare_symbol_name): Add language, lookup_name_info and
167 completion_match_result parameters, and use them.
168 (completion_list_add_name): Make extern. Add language and
169 lookup_name_info parameters. Use them.
170 (completion_list_add_symbol, completion_list_add_msymbol)
171 (completion_list_objc_symbol): Add lookup_name_info parameters and
172 adjust. Pass down language.
173 (completion_list_add_fields): Add lookup_name_info parameters and
174 adjust. Pass down language.
175 (add_symtab_completions): Add lookup_name_info parameters and
177 (default_collect_symbol_completion_matches_break_on): Add
178 name_match_type parameter, and use it. Use lookup_name_info.
179 (default_collect_symbol_completion_matches)
180 (collect_symbol_completion_matches): Add name_match_type
181 parameter, and pass it down.
182 (collect_symbol_completion_matches_type): Adjust.
183 (collect_file_symbol_completion_matches): Add name_match_type
184 parameter, and use lookup_name_info.
185 * symtab.h: Include <string> and "common/gdb_optional.h".
186 (enum class symbol_name_match_type): New.
187 (class ada_lookup_name_info): New.
188 (struct demangle_for_lookup_info): New.
189 (class lookup_name_info): New.
190 (symbol_name_matcher_ftype): New.
191 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
192 (symbol_matches_search_name): Declare.
193 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
194 (default_collect_symbol_completion_matches)
195 (collect_symbol_completion_matches)
196 (collect_file_symbol_completion_matches): Add name_match_type
198 (iterate_over_symbols): Use lookup_name_info.
199 (completion_list_add_name): Declare.
200 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
201 (strncmp_iw_with_mode): Now extern.
202 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
203 (strncmp_iw_with_mode): Declare.
205 2017-11-08 Keith Seitz <keiths@redhat.com>
206 Pedro Alves <palves@redhat.com>
208 * ada-lang.c (ada_language_defn): Install
209 default_search_name_hash.
210 * buildsym.c (struct buildsym_compunit): <language>: New field.
211 (finish_block_internal): Pass language when creating dictionaries.
212 (start_buildsym_compunit, start_symtab): New language parameters.
214 (restart_symtab): Pass down compilation unit's language.
215 * buildsym.h (enum language): Forward declare.
216 (start_symtab): New 'language' parameter.
217 * c-lang.c (c_language_defn, cplus_language_defn)
218 (asm_language_defn, minimal_language_defn): Install
219 default_search_name_hash.
220 * coffread.c (coff_start_symtab): Adjust.
221 * d-lang.c (d_language_defn): Install default_search_name_hash.
222 * dbxread.c (struct symloc): Add 'pst_language' field.
223 (PST_LANGUAGE): Define.
224 (start_psymtab, read_ofile_symtab): Use it.
225 (process_one_symbol): New 'language' parameter. Pass it down.
226 * dictionary.c (struct dictionary) <language>: New field.
227 (DICT_LANGUAGE): Define.
228 (dict_create_hashed, dict_create_hashed_expandable)
229 (dict_create_linear, dict_create_linear_expandable): New parameter
230 'language'. Set the dictionary's language.
231 (iter_match_first_hashed): Adjust to rename.
232 (insert_symbol_hashed): Assert we don't see mismatching
233 languages. Adjust to rename.
234 (dict_hash): Rename to ...
235 (default_search_name_hash): ... this and make extern.
236 * dictionary.h (struct language_defn): Forward declare.
237 (dict_create_hashed): New parameter 'language'.
238 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
239 * f-lang.c (f_language_defn): Install default_search_name_hash.
240 * go-lang.c (go_language_defn): Install default_search_name_hash.
241 * jit.c (finalize_symtab): Pass compunit's language to dictionary
243 * language.c (unknown_language_defn, auto_language_defn):
244 * language.h (language_defn::la_search_name_hash): New field.
245 (default_search_name_hash): Declare.
246 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
247 * mdebugread.c (new_block): New parameter 'language'.
248 * mdebugread.c (parse_symbol): Pass symbol language to block
250 (psymtab_to_symtab_1): Pass down language.
251 (new_symtab): Pass compunit's language to block allocation.
252 * objc-lang.c (objc_language_defn): Install
253 default_search_name_hash.
254 * opencl-lang.c (opencl_language_defn):
255 * p-lang.c (pascal_language_defn): Install
256 default_search_name_hash.
257 * rust-lang.c (rust_language_defn): Install
258 default_search_name_hash.
259 * stabsread.h (enum language): Forward declare.
260 (process_one_symbol): Add 'language' parameter.
261 * symtab.c (search_name_hash): New function.
262 * symtab.h (search_name_hash): Declare.
263 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
265 2017-11-08 Pedro Alves <palves@redhat.com>
267 * cp-name-parser.y (main): Don't initialize extra_chars.
269 2017-11-07 Tom Tromey <tom@tromey.com>
271 * event-top.h (command_handler): Constify.
272 * record-full.c (cmd_record_full_start): Update.
273 * thread.c (thread_apply_all_command): Update.
274 * printcmd.c (eval_command): Update.
275 * mi/mi-main.c (mi_execute_cli_command): Update.
276 (mi_execute_async_cli_command): Update.
277 * tui/tui-stack.c (tui_update_command): Update.
278 * cli/cli-interp.c (safe_execute_command): Constify.
279 * record.c (record_start): Update.
280 (record_start, record_stop, cmd_record_start): Update.
281 * record-btrace.c (cmd_record_btrace_bts_start): Update.
282 (cmd_record_btrace_pt_start): Update.
283 (cmd_record_btrace_start): Update.
284 (cmd_record_btrace_start): Update.
285 * reverse.c (exec_reverse_once): Update.
286 * python/python.c (execute_gdb_command): Don't copy the command.
287 * event-top.c (command_line_handler): Update.
288 (command_handler): Constify.
289 * defs.h (deprecated_call_command_hook): Constify.
290 * cli/cli-script.h (execute_user_command): Constify.
291 * cli/cli-script.c (execute_user_command): Constify.
292 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
293 (enum command_control_type): Update.
294 * main.c (catch_command_errors): Remove non-const overload.
295 (catch_command_errors_ftype): Remove.
296 * python/py-cmd.c (cmdpy_function): Constify.
297 * guile/scm-cmd.c (cmdscm_function): Constify.
298 * cli/cli-dump.c (call_dump_func): Constify.
299 * cli/cli-decode.c (do_const_cfunc): Constify.
300 (do_sfunc): Constify.
301 (cmd_func): Constify.
302 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
303 * top.h (execute_command): Constify.
304 * top.c (execute_command): Constify.
305 (execute_command_to_string): Constify.
306 (deprecated_call_command_hook): Constify.
307 * command.h (cmd_func): Constify.
308 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
310 2017-11-07 Tom Tromey <tom@tromey.com>
312 * ada-lang.c (catch_ada_exception_command): Constify.
313 (catch_assert_command): Constify.
314 * break-catch-throw.c (catch_catch_command, catch_throw_command)
315 (catch_rethrow_command): Constify.
316 (catch_exception_command_1): Constify.
317 * breakpoint.h (add_catch_command): Constify.
318 * break-catch-syscall.c (catch_syscall_command_1): Constify.
319 (catch_syscall_split_args): Constify.
320 * break-catch-sig.c (catch_signal_command): Constify.
321 (catch_signal_split_args): Constify.
322 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
323 cmd_const_sfunc_ftype.
324 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
325 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
326 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
327 (add_setshow_string_cmd, struct cmd_list_element)
328 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
329 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
330 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
332 (set_cmd_sfunc): Constify.
333 (empty_sfunc): Constify.
334 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
335 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
336 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
337 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
338 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
339 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
341 (set_cmd_sfunc): Constify.
342 (cmd_sfunc_ftype): Remove.
343 * compile/compile.c (set_compile_args): Constify.
344 * infrun.c (set_disable_randomization): Constify.
345 * infcmd.c (set_args_command, set_cwd_command): Constify.
346 * breakpoint.c (set_condition_evaluation_mode): Constify.
347 (add_catch_command): Constify.
348 (catch_fork_command_1, catch_exec_command_1)
349 (catch_load_command_1, catch_unload_command_1): Constify.
350 (catch_load_or_unload): Constify.
351 * guile/scm-param.c (pascm_set_func): Constify.
352 (add_setshow_generic): Constify.
353 * python/py-param.c (get_set_value): Constify.
354 * top.h (set_verbose): Constify.
355 * tui/tui-win.c (tui_set_var_cmd): Constify.
356 * mi/mi-main.c (set_mi_async_command): Constify.
357 * cli/cli-logging.c (set_logging_overwrite)
358 (set_logging_redirect): Constify.
359 * value.c (set_max_value_size): Constify.
360 * valprint.c (set_input_radix, set_output_radix): Constify.
361 * utils.c (set_width_command, set_height_command): Constify.
362 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
363 * tracepoint.c (set_disconnected_tracing)
364 (set_circular_trace_buffer, set_trace_buffer_size)
365 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
366 * top.c (set_history_size_command, set_verbose, set_editing)
367 (set_gdb_datadir, set_history_filename): Constify.
368 * target.c (set_targetdebug, maint_set_target_async_command)
369 (maint_set_target_non_stop_command, set_target_permissions)
370 (set_write_memory_permission): Constify.
371 (open_target): Constify.
372 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
373 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
374 * symtab.c (set_symbol_cache_size_handler): Constify.
375 * symfile.c (set_ext_lang_command): Constify.
376 * symfile-debug.c (set_debug_symfile): Constify.
377 * source.c (set_directories_command): Constify.
378 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
379 * serial.c (set_parity): Constify.
380 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
381 * remote.c (set_remote_exec_file, set_remotebreak)
382 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
383 * record.c (set_record_insn_history_size)
384 (set_record_call_history_size): Constify.
385 * record-full.c (set_record_full_insn_max_num): Constify.
386 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
387 * osabi.c (set_osabi): Constify.
388 * mips-tdep.c (set_mips64_transfers_32bit_regs)
389 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
390 * maint.c (maintenance_set_profile_cmd): Constify.
391 * linux-thread-db.c (set_libthread_db_search_path): Constify.
392 * language.c (set_language_command, set_range_command)
393 (set_case_command): Constify.
394 * infrun.c (set_non_stop, set_observer_mode)
395 (set_stop_on_solib_events, set_schedlock_func)
396 (set_exec_direction_func): Constify.
397 * infcmd.c (set_inferior_tty_command): Constify.
398 * disasm.c (set_disassembler_options_sfunc): Constify.
399 * demangle.c (set_demangling_command): Constify.
400 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
401 * cris-tdep.c (set_cris_version, set_cris_mode)
402 (set_cris_dwarf2_cfi): Constify.
403 * corefile.c (set_gnutarget_command): Constify.
404 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
405 (set_target_wide_charset_sfunc): Constify.
406 * breakpoint.c (update_dprintf_commands): Constify.
407 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
408 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
409 (set_disassembly_style_sfunc): Constify.
410 * arch-utils.c (set_endian, set_architecture): Constify.
411 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
412 * agent.c (set_can_use_agent): Constify.
414 2017-11-07 Tom Tromey <tom@tromey.com>
416 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
417 (go32_pde, go32_pte, go32_pte_for_address): Constify.
418 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
419 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
420 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
421 (parse_int_arg, show_thread_default_detach_sc_cmd)
422 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
423 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
424 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
425 (show_task_pause_cmd, set_task_detach_sc_cmd)
426 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
427 (set_noninvasive_cmd, set_thread_pause_cmd)
428 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
429 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
430 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
431 * windows-nat.c (display_selectors): Constify.
432 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
434 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
435 (cmd_cfunc_eq): Likewise.
436 (struct cmd_list_element): Likewise.
438 (cli_user_command_p): Update.
439 * command.h (add_cmd): Remove non-const overload.
440 (cmd_cfunc_ftype): Remove typedef.
441 (cmd_cfunc_eq): Remove non-const overload.
442 * value.c (show_values): Constify.
443 * thread.c (thread_apply_all_command): Constify.
444 * symfile.c (load_command): Constify.
445 * source.c (directory_command): Constify.
446 * maint.c (maintenance_internal_error)
447 (maintenance_demangler_warning, maintenance_space_display)
448 (maintenance_print_architecture, maintenance_translate_address)
449 (maintenance_info_selftests, maintenance_internal_warning):
451 * breakpoint.c (disable_trace_command, enable_trace_command):
453 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
455 (add_auto_load_safe_path): Constify.
456 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
457 * top.h (show_commands): Constify.
458 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
459 * sparc64-tdep.c (adi_examine_command): Constify.
460 (adi_assign_command): Constify.
462 2017-11-07 Tom Tromey <tom@tromey.com>
464 * frame.h (info_locals_command, info_args_command): Constify.
465 * auto-load.h (auto_load_info_scripts): Constify.
466 * inferior.h (registers_info): Constify.
467 * copying.c: Rebuild.
468 * copying.awk: Constify generated commands.
469 * auto-load.c (auto_load_info_scripts)
470 (info_auto_load_gdb_scripts): Constify.
471 * cli/cli-decode.c (struct cmd_list_element): Take a
472 cmd_const_cfunc_ftype.
473 * command.h (add_info): Take a cmd_const_cfunc_ftype.
474 * tui/tui-win.c (tui_all_windows_info): Constify.
475 * python/py-auto-load.c (info_auto_load_python_scripts):
477 * cli/cli-cmds.c (show_command): Remove non-const overload.
478 * tracepoint.c (info_tvariables_command, info_scope_command):
480 (info_static_tracepoint_markers_command): Constify.
481 * thread.c (info_threads_command): Constify.
482 (print_thread_info_1): Constify.
483 * target.c (info_target_command): Constify.
484 * symtab.c (info_sources_command, info_functions_command)
485 (info_types_command): Constify.
486 (info_variables_command): Remove non-const overload.
487 * symfile.c (info_ext_lang_command): Constify.
488 * stack.c (info_frame_command, info_locals_command)
489 (info_args_command): Constify.
490 (backtrace_command): Remove non-const overload.
491 * source.c (info_source_command, info_line_command): Constify.
492 * solib.c (info_sharedlibrary_command): Constify.
493 * skip.c (info_skip_command): Constify.
494 * ser-go32.c (info_serial_command): Constify.
495 * reverse.c (info_bookmarks_command): Constify.
496 * printcmd.c (info_symbol_command, info_address_command)
497 (info_display_command): Constify.
498 * osdata.c (info_osdata_command): Constify.
499 * objc-lang.c (info_selectors_command, info_classes_command):
501 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
502 * memattr.c (info_mem_command): Constify.
503 * macrocmd.c (info_macro_command, info_macros_command): Constify.
504 * linux-fork.c (info_checkpoints_command): Constify.
505 * infrun.c (info_signals_command): Constify.
506 * inflow.c (info_terminal_command): Constify.
507 * inferior.c (info_inferiors_command): Constify.
508 (print_inferior): Constify.
509 * infcmd.c (info_program_command, info_all_registers_command)
510 (info_registers_command, info_vector_command)
511 (info_float_command): Constify.
512 (registers_info): Constify.
513 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
514 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
516 * f-valprint.c (info_common_command): Constify.
517 * dcache.c (info_dcache_command): Constify.
518 (dcache_info_1): Constify.
519 * darwin-nat-info.c (info_mach_tasks_command)
520 (info_mach_task_command, info_mach_ports_command)
521 (info_mach_port_command, info_mach_threads_command)
522 (info_mach_thread_command, info_mach_regions_command)
523 (info_mach_regions_recurse_command, info_mach_region_command)
524 (info_mach_exceptions_command): Constify.
525 (get_task_from_args): Constify.
526 * cp-support.c (info_vtbl_command): Constify.
527 * breakpoint.c (info_watchpoints_command)
528 (info_tracepoints_command): Constify.
529 (info_breakpoints_command): Remove non-const overload.
530 * avr-tdep.c (avr_io_reg_read_command): Constify.
531 * auxv.c (info_auxv_command): Constify.
532 * ada-tasks.c (info_tasks_command): Constify.
533 (info_task): Constify.
534 * ada-lang.c (info_exceptions_command): Constify.
536 2017-11-07 Tom Tromey <tom@tromey.com>
538 * solib.h (no_shared_libraries): Constify.
539 * frame.h (return_command): Constify.
540 * cli/cli-cmds.h (quit_command): Constify.
541 * top.h (quit_command, execute_command): Constify.
542 * target.h (flash_erase_command): Constify.
543 * inferior.h (set_inferior_args, attach_command): Constify.
544 * tracepoint.h (start_tracing, stop_tracing): Constify.
545 * breakpoint.h (break_command, tbreak_command)
546 (hbreak_command_wrapper, thbreak_command_wrapper)
547 (rbreak_command_wrapper, watch_command_wrapper)
548 (awatch_command_wrapper, rwatch_command_wrapper)
549 (get_tracepoint_by_number): Constify.
550 * symtab.c (info_variables_command, rbreak_command)
551 (symtab_symbol_info): Constify.
552 (info_variables_command): Add non-const overload.
553 * top.c (dont_repeat_command): Constify.
554 * breakpoint.c (ignore_command, commands_command)
555 (condition_command, tbreak_command, hbreak_command)
556 (thbreak_command, clear_command, break_command)
557 (info_breakpoints_command, watch_command, rwatch_command)
558 (awatch_command, trace_command, ftrace_command, strace_command)
559 (trace_pass_command, break_range_command, dprintf_command)
560 (agent_printf_command, get_tracepoint_by_number)
561 (watch_maybe_just_location, trace_pass_command): Constify.
562 (info_breakpoints_command): Add non-const overload.
563 * tracefile.c (tsave_command): Constify.
564 * infcmd.c (attach_command, disconnect_command, signal_command)
565 (queue_signal_command, stepi_command, nexti_command)
566 (finish_command, next_command, step_command, until_command)
567 (advance_command, jump_command, continue_command, run_command)
568 (start_command, starti_command, interrupt_command)
569 (run_command_1, set_inferior_args, step_1): Constify.
570 * inferior.c (add_inferior_command, remove_inferior_command)
571 (clone_inferior_command): Constify.
572 * linux-fork.c (checkpoint_command, restart_command): Constify.
573 * windows-nat.c (signal_event_command): Constify.
574 * guile/guile.c (guile_repl_command, guile_command): Constify.
575 * printcmd.c (x_command, display_command, printf_command)
576 (output_command, set_command, call_command, print_command)
577 (eval_command): Constify.
578 (non_const_set_command): Remove.
579 (_initialize_printcmd): Update.
580 * source.c (forward_search_command, reverse_search_command):
582 * jit.c (jit_reader_load_command, jit_reader_unload_command):
584 * infrun.c (handle_command): Constify.
585 * memattr.c (mem_command): Constify.
586 * stack.c (return_command, up_command, up_silently_command)
587 (down_command, down_silently_command, frame_command)
588 (backtrace_command, func_command, backtrace_command_1): Constify.
589 (backtrace_command): Add non-const overload.
590 * remote-sim.c (simulator_command): Constify.
591 * exec.c (set_section_command): Constify.
592 * tracepoint.c (tdump_command, trace_variable_command)
593 (tstatus_command, tstop_command, tstart_command)
594 (end_actions_pseudocommand, while_stepping_pseudocommand)
595 (collect_pseudocommand, teval_pseudocommand, actions_command)
596 (start_tracing, stop_tracing): Constify.
597 * value.c (init_if_undefined_command): Constify.
598 * tui/tui-stack.c (tui_update_command): Constify.
599 * tui/tui-win.c (tui_refresh_all_command)
600 (tui_set_tab_width_command, tui_set_win_height_command)
601 (tui_set_focus_command, tui_scroll_forward_command)
602 (tui_scroll_backward_command, tui_scroll_left_command)
603 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
604 (tui_set_win_height): Constify.
605 * tui/tui-layout.c (tui_layout_command): Constify.
606 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
607 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
608 (proc_untrace_sysexit_cmd): Constify.
609 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
610 (threadset_test_cmd, threadlist_update_test_cmd)
611 (threadalive_test): Constify.
612 * objc-lang.c (print_object_command): Constify.
613 * command.h (add_com): Constify.
614 * cli/cli-dump.c (restore_command): Constify.
615 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
616 (help_command, complete_command, shell_command, edit_command)
617 (list_command, disassemble_command, make_command)
618 (apropos_command, alias_command): Constify.
619 * cli/cli-script.c (document_command, define_command)
620 (while_command, if_command, validate_comname): Constify.
621 * cli/cli-decode.c (struct cmd_list_element): Change type of
623 * target.c (do_monitor_command, flash_erase_command): Constify.
624 * regcache.c (reg_flush_command): Constify.
625 * reverse.c (reverse_step, reverse_next, reverse_stepi)
626 (reverse_nexti, reverse_continue, reverse_finish)
627 (save_bookmark_command, goto_bookmark_command)
628 (exec_reverse_once): Constify.
629 * python/python.c (python_interactive_command, python_command):
631 * typeprint.c (ptype_command, whatis_command, whatis_exp):
633 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
634 * gcore.c (gcore_command): Constify.
636 2017-11-07 Tom Tromey <tom@tromey.com>
638 * printcmd.c (x_command): Call set_repeat_arguments.
639 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
640 * top.c (repeat_arguments): New global.
641 (set_repeat_arguments): New function.
642 (execute_command): Handle repeat_arguments.
643 (show_commands): Calls set_repeat_arguments.
644 * command.h (set_repeat_arguments): Declare.
646 2017-11-07 Tom Tromey <tom@tromey.com>
648 * stack.c (backtrace_command): Use std::string.
649 (backtrace_command_1): Make "count_exp" const.
651 2017-11-07 Tom Tromey <tom@tromey.com>
653 * source.c (directory_switch, mod_path, add_path): Constify.
654 * defs.h (add_path, mod_path, directory_switch): Constify.
655 * mi/mi-cmd-env.c (env_mod_path): Constify.
657 2017-11-07 Tom Tromey <tom@tromey.com>
659 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
660 (run_command_1, continue_command, step_1, jump_command)
661 (signal_command, until_command, advance_command, finish_command)
662 (attach_command): Update.
664 2017-11-07 Tom Tromey <tom@tromey.com>
666 * command.h (set_cmd_cfunc): Don't declare.
667 * cli/cli-decode.c (set_cmd_cfunc): Now static.
669 2017-11-07 Tom Tromey <tom@tromey.com>
671 * stack.c (select_frame_command): Constify.
672 * cli/cli-decode.c (add_com_suppress_notification): Constify.
673 * command.h (add_com_suppress_notification): Constify.
675 2017-11-07 Tom Tromey <tom@tromey.com>
677 * breakpoint.c (stop_command): Constify.
678 * cli/cli-decode.c (struct cmd_list_element): Constify.
679 * command.h (add_abbrev_prefix_cmd): Constify.
681 2017-11-07 Pedro Alves <palves@redhat.com>
683 * breakpoint.c (extract_bp_kind): New enum.
684 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
685 factored out from ...
686 (extract_bp_number_and_location): ... here.
687 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
689 2017-11-07 Pedro Alves <palves@redhat.com>
691 * breakpoint.c (extract_bp_number_and_location): Change return
692 type to void. Throw error instead of warning.
693 (enable_disable_command): Adjust.
695 2017-11-07 Xavier Roirand <roirand@adacore.com>
696 Pedro Alves <palves@redhat.com>
698 * breakpoint.c (map_breakpoint_number_range): New, factored out
700 (map_breakpoint_numbers): ... here.
701 (find_location_by_number): Change parameters from string to
702 breakpoint number and location.
703 (extract_bp_number_and_location): New function.
704 (enable_disable_bp_num_loc)
705 (enable_disable_breakpoint_location_range)
706 (enable_disable_command): New functions, factored out ...
707 (enable_command, disable_command): ... these functions, and
708 adjusted to support ranges.
709 * NEWS: Document enable/disable breakpoint location range feature.
711 2017-11-06 Luis Machado <luis.machado@linaro.org>
713 * MAINTAINERS (Write After Approval): Update my e-mail address.
715 2017-11-06 Pedro Alves <palves@redhat.com>
717 * gnu-nat.c (gnu_terminal_init): Delete.
718 (gnu_target): Don't install gnu_terminal_init.
719 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
720 (child_terminal_init): ... this function.
722 2017-11-06 Pedro Alves <palves@redhat.com>
724 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
726 * config.in, configure: Regenerate.
728 2017-11-06 Pedro Alves <palves@redhat.com>
730 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
731 (async_init_signals): Adjust.
732 (handle_stop_sig): Rename to ...
733 (handle_sigtstp): ... this.
734 (async_stop_sig): Rename to ...
735 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
737 * event-top.h: Move signal.h include to the top. Check SIGTSTP
738 instead of STOP_SIGNAL thoughout.
739 (handle_stop_sig): Rename to ...
740 (handle_sigtstp): ... this.
741 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
743 2017-11-06 Pedro Alves <palves@redhat.com>
745 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
746 longer set flags twice in row.
748 2017-11-06 Pedro Alves <palves@redhat.com>
750 * Makefile.in (SER_HARDWIRE): Update comment.
751 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
752 * common/gdb_termios.h: Delete file.
753 * common/job-control.c: Include termios.h and unistd.h instead of
755 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
757 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
759 * configure.ac: No longer check for termio.h and sgtty.h.
760 * configure: Regenerate.
761 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
762 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
763 Replace PROCESS_GROUP_TYPE references with pid_t references
765 (gdb_getpgrp): Delete.
766 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
767 (child_terminal_inferior): Remove comment. Remove sgtty code.
768 (child_terminal_ours_1): Use tcgetpgrp directly instead of
769 gdb_getpgrp. Use serial_set_tty_state instead aof
770 serial_noflush_set_tty_state. Remove sgtty code.
771 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
772 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
773 (inferior_process_group): Now returns pid_t.
774 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
775 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
776 * ser-event.c (serial_event_ops): Update.
777 * ser-go32.c (dos_noflush_set_tty_state): Delete.
779 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
780 * ser-pipe.c (pipe_ops): Update.
781 * ser-tcp.c (tcp_ops): Update.
782 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
784 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
785 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
786 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
788 (hardwire_noflush_set_tty_state): Delete.
789 (hardwire_print_tty_state, hardwire_drain_output)
790 (hardwire_flush_output, hardwire_flush_input)
791 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
792 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
793 code, and assume termios.
794 (hardwire_ops): Update.
795 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
796 * serial.c (serial_noflush_set_tty_state): Delete.
797 * serial.h (serial_noflush_set_tty_state): Delete.
798 (serial_ops::noflush_set_tty_state): Delete.
800 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
802 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
803 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
804 (COMMON_OBS): Remove doublest.o and dfp.o.
805 Do not build target-float.c (instead of doublest.c)
806 with -Wformat-nonliteral.
808 * doublest.c: Remove file.
809 * doublest.h: Remove file.
810 * dfp.c: Remove file.
811 * dfp.h: Remove file.
813 * target-float.c: Do not include "doublest.h" and "dfp.h".
814 (DOUBLEST): Move here from doublest.h.
815 (enum float_kind): Likewise.
816 (FLOATFORMAT_CHAR_BIT): Likewise.
817 (FLOATFORMAT_LARGEST_BYTES): Likewise.
818 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
819 (floatformat_precision): Likewise.
820 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
821 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
823 (host_float_format, host_double_format, host_long_double_format):
825 (floatformat_to_string, floatformat_from_string): Likewise.
826 (floatformat_to_doublest): Likewise. Also, inline the original
827 convert_floatformat_to_doublest.
828 (floatformat_from_doublest): Likewise. Also, inline the original
829 convert_floatformat_from_doublest.
831 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
832 (MAX_DECIMAL_STRING): Move here from dfp.c.
833 (match_endianness): Likewise.
834 (set_decnumber_context, decimal_check_errors): Likewise.
835 (decimal_from_number, decimal_to_number): Likewise.
836 (decimal_to_string, decimal_from_string): Likewise. Make static.
837 (decimal_from_longest, decimal_from_ulongest): Likewise.
838 (decimal_to_longest): Likewise.
839 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
840 (decimal_convert): Likewise.
842 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
844 * doublest.c: Do not include "gdbtypes.h".
845 (extract_typed_floating): Remove.
846 (store_typed_floating): Remove.
847 (convert_typed_floating): Remove.
848 * doublest.h (struct type): Remove.
849 (DOUBLEST_PRINT_FORMAT): Remove.
850 (DOUBLEST_SCAN_FORMAT): Remove.
851 (extract_typed_floating): Remove.
852 (store_typed_floating): Remove.
853 (convert_typed_floating): Remove.
855 * dfp.c (decimal_from_doublest): Remove.
856 (decimal_to_doublest): Remove.
857 * dfp.h: Do not include "doublest.h".
858 (decimal_from_doublest): Remove.
859 (decimal_to_doublest): Remove.
861 * value.c: Do not include "doublest.h" and "dfp.h".
862 (value_as_double): Remove.
863 (unpack_double): Remove.
864 (value_from_double): Remove.
865 (value_from_decfloat): Remove.
866 * value.h: Do not include "doublest.h".
867 (value_as_double): Remove.
868 (unpack_double): Remove.
869 (value_from_double): Remove.
870 (value_from_decfloat): Remove.
872 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
874 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
875 (i386_extract_return_value): Use target_float_convert.
876 (i386_store_return_value): Likewise.
877 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
878 (i387_value_to_register): Likewise.
879 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
880 (ia64_register_to_value): Use target_float_convert.
881 (ia64_value_to_register): Likewise.
882 (ia64_extract_return_value): Likewise.
883 (ia64_store_return_value): Likewise.
884 (ia64_push_dummy_call): Likewise.
885 * m68k-tdep.c: Include "target-float.h".
886 (m68k_register_to_value): Use target_float_convert.
887 (m68k_value_to_register): Likewise.
888 (m68k_svr4_extract_return_value): Likewise.
889 (m68k_svr4_store_return_value): Likewise.
890 * ppc-sysv-tdep.c: Include "target-float.h".
891 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
892 (do_ppc_sysv_return_value): Likewise.
893 (ppc64_sysv_abi_push_freg): Likewise.
894 (ppc64_sysv_abi_return_value_base): Likewise.
895 * rs6000-aix-tdep.c: Include "target-float.h".
896 (rs6000_push_dummy_call): Use target_float_convert.
897 (rs6000_return_value): Likewise.
898 * rs6000-lynx178-tdep.c: Include "target-float.h".
899 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
900 (rs6000_lynx178_return_value): Likewise.
901 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
902 (rs6000_register_to_value): Use target_float_convert.
903 (rs6000_value_to_register): Likewise.
904 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
905 (arm_extract_return_value): Use target_float_convert.
906 (arm_store_return_value): Likewise.
907 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
908 (sh_register_convert_to_virtual): Use target_float_convert.
909 (sh_register_convert_to_raw): Likewise.
910 * sh64-tdep.c: Include "target-float.h".
911 (sh64_extract_return_value): Use target_float_convert.
912 (sh64_register_convert_to_virtual): Likewise.
913 (sh64_register_convert_to_raw): Likewise. Fix argument types.
915 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
917 * target-float.c (floatformat_to_host_double): New function.
918 (floatformat_from_host_double): Likewise.
919 (target_float_to_host_double): Likewise.
920 (target_float_from_host_double): Likewise.
921 * target-float.h (target_float_to_host_double): Add prototype.
922 (target_float_from_host_double): Likewise.
924 * guile/scm-value.c: Include "target-float.h".
925 (gdbscm_value_to_real): Use target_float_to_host_double.
926 Handle integer source values via value_as_long.
927 * guile/scm-math.c: Include "target-float.h". Do not include
928 "doublest.h", "dfp.h", and "expression.h".
929 (vlscm_convert_typed_number): Use target_float_from_host_double.
930 (vlscm_convert_number): Likewise.
932 * python/py-value.c (valpy_float): Use target_float_to_host_double.
933 (convert_value_from_python): Use target_float_from_host_double.
935 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
937 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
938 (cast_from_fixed): Likewise.
939 (ada_scaling_type): New function.
940 (ada_delta): Return value instead of DOUBLEST. Perform target
941 arithmetic instead of host arithmetic.
942 (scaling_factor): Rename to ...
943 (ada_scaling_factor) ... this. Make non-static. Return value instead
944 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
945 (ada_fixed_to_float): Remove.
946 (ada_float_to_fixed): Remove.
947 * ada-lang.h (ada_fixed_to_float): Remove.
948 (ada_float_to_fixed): Remove.
949 (ada_delta): Return value instead of DOUBLEST.
950 (ada_scaling_factor): Add prototype.
952 * ada-typeprint.c: Include "target-float.h".
953 (print_fixed_point_type): Perform target arithmetic instead of
955 * ada-valprint.c: Include "target-float.h".
956 (ada_val_print_num): Perform target arithmetic instead of
957 host arithmetic for fixed-point types.
959 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
961 * target-float.c: Include <math.h>.
962 (floatformat_binop): New function.
963 (floatformat_compare): Likewise.
964 (target_float_binop): Likewise.
965 (target_float_compare): Likewise.
966 * target-float.h: Include "expression.h".
967 (target_float_binop): Add prototype.
968 (target_float_compare): Likewise.
970 * valarith.c: Do not include "doublest.h" and "dfp.h".
971 Include "common/byte-vector.h".
972 (value_args_as_decimal): Remove, replace by ...
973 (value_args_as_target_float): ... this function. Handle both
974 binary and decimal target floating-point formats.
975 (scalar_binop): Handle both binary and decimal FP using
976 value_args_as_target_float and target_float_binop.
977 (value_equal): Handle both binary and decimal FP using
978 value_args_as_target_float and target_float_compare.
979 (value_less): Likewise.
980 (value_pos): Handle all scalar types as simple copy.
981 (value_neg): Handle all scalar types via BINOP_SUB from 0.
982 * dfp.c (decimal_binop): Throw error instead of internal_error
983 when called with an unsupported operation code.
985 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
987 * target-float.c (target_float_to_string): New function.
988 (target_float_from_string): New function.
989 * target-float.h (target_float_to_string): Add prototype.
990 (target_float_from_string): Add prototype.
992 * valprint.c: Include "target-float.h". Do not include
993 "doublest.h" and "dfp.h".
994 (print_floating): Use target_float_to_string.
995 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
996 (printf_floating): Use target_float_to_string.
997 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
998 (print_i387_value): Use target_float_to_string.
999 * mips-tdep.c: Include "target-float.h".
1000 (mips_print_fp_register): Use target_float_to_string.
1001 * sh64-tdep.c: Include "target-float.h".
1002 (sh64_do_fp_register): Use target_float_to_string.
1004 * parse.c: Include "target-float.h". Do not include
1005 "doublest.h" and "dfp.h".
1006 (parse_float): Use target_float_from_string.
1007 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
1008 (define_symbol): Use target_float_from_string.
1009 * gdbarch-selftests.c: Include "target-float.h".
1010 (register_to_value_test): Use target_float_from_string.
1012 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1014 * Makefile.c (SFILES): Add target-float.c.
1015 (HFILES_NO_SRCDIR): Add target-float.h.
1016 (COMMON_OBS): Add target-float.o.
1017 * target-float.h: New file.
1018 * target-float.c: New file.
1020 * doublest.c (floatformat_classify): Fix detection of float_zero.
1022 * gdbtypes.c (is_floating_type): New function.
1023 * gdbtypes.h (is_floating_type): Add prototype.
1025 * value.c: Do not include "floatformat.h".
1026 (unpack_double): Use target_float_is_valid.
1027 (is_floating_value): New function.
1028 * value.h (is_floating_value): Add prototype-
1030 * valarith.c: Include "target-float.h".
1031 (value_logical_not): Use target_float_is_zero.
1033 * python/py-value.c: Include "target-float.h".
1034 (valpy_nonzero): Use target_float_is_zero.
1036 2017-11-04 Tom Tromey <tom@tromey.com>
1038 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
1040 2017-11-04 Tom Tromey <tom@tromey.com>
1042 * breakpoint.c (set_momentary_breakpoint): Return
1044 (until_break_command): Update.
1045 (new_until_break_fsm): Change argument types to
1047 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
1048 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
1050 * infcmd.c (finish_forward): Update.
1051 * breakpoint.h (set_momentary_breakpoint)
1052 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
1053 (make_cleanup_delete_breakpoint): Remove.
1054 (struct breakpoint_deleter): New.
1055 (breakpoint_up): New typedef.
1056 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
1057 (insert_exception_resume_breakpoint): Update.
1058 (insert_exception_resume_from_probe): Update.
1059 (insert_longjmp_resume_breakpoint): Update.
1060 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
1061 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
1062 * infcall.c (call_function_by_hand_dummy): Update
1064 2017-11-04 Tom Tromey <tom@tromey.com>
1066 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
1068 2017-11-04 Tom Tromey <tom@tromey.com>
1070 * linux-tdep.c (linux_core_info_proc_mappings): Use
1072 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
1074 (linux_corefile_thread): Update.
1075 (linux_make_corefile_notes): Remove unused variable.
1077 2017-11-04 Tom Tromey <tom@tromey.com>
1079 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
1082 2017-11-04 Tom Tromey <tom@tromey.com>
1084 * objfiles.c (do_free_objfile_cleanup): Remove.
1085 * compile/compile-object-load.c (compile_object_load): Update.
1086 * objfiles.h (make_cleanup_free_objfile): Remove.
1088 2017-11-04 Tom Tromey <tom@tromey.com>
1090 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
1091 (adi_read_versions): Change "tags" to "gdb_byte *".
1092 (adi_print_versions): Likewise.
1094 2017-11-04 Tom Tromey <tom@tromey.com>
1097 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
1098 from start_rbreak_breakpoints.
1099 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
1100 * breakpoint.h (class scoped_rbreak_breakpoints): New.
1101 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
1102 * symtab.c (do_end_rbreak_breakpoints): Remove.
1103 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
1105 2017-11-04 Tom Tromey <tom@tromey.com>
1107 * cp-namespace.c (reset_directive_searched): Remove.
1108 (cp_lookup_symbol_via_imports): Use scoped_restore.
1109 * cp-support.c (reset_directive_searched): Remove.
1110 (make_symbol_overload_list_using): Use scoped_restore.
1111 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
1112 (reset_directive_searched): Remove.
1114 2017-11-04 Tom Tromey <tom@tromey.com>
1116 * symfile.c (find_separate_debug_file_by_debuglink): Use
1119 2017-11-04 Tom Tromey <tom@tromey.com>
1121 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
1123 (compute_stack_depth): Likewise.
1124 (do_compile_dwarf_expr_to_c): Use std::vector.
1126 2017-11-04 Tom Tromey <tom@tromey.com>
1128 * compile/compile-object-load.c (link_callbacks_einfo): Use
1131 2017-11-04 Tom Tromey <tom@tromey.com>
1133 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
1134 Use scoped_free_pendings.
1135 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
1136 scoped_free_pendings.
1137 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
1138 (xcoff_initial_scan): Likewise.
1139 * buildsym.c (reset_symtab_globals): Update comment.
1140 (scoped_free_pendings): Rename from really_free_pendings.
1141 (prepare_for_building): Update comment.
1142 (buildsym_init): Likewise.
1143 * buildsym.h (class scoped_free_pendings): New class.
1144 (really_free_pendings): Don't declare.
1146 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
1148 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
1149 output when converting a zero value to a special byteorder format.
1151 2017-11-02 Yao Qi <yao.qi@linaro.org>
1153 * frame.c (do_frame_register_read): Remove aspace.
1154 * jit.c (jit_frame_sniffer): Likwise.
1155 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
1156 * regcache.c (regcache::regcache): Pass nullptr.
1157 (regcache_print): Caller updated.
1158 * regcache.h (regcache::regcache): Remove one constructor
1161 2017-11-02 Yao Qi <yao.qi@linaro.org>
1163 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
1165 2017-11-02 Yao Qi <yao.qi@linaro.org>
1167 * breakpoint.c (insert_single_step_breakpoints): Update.
1168 * frame.c (struct frame_info) <aspace>: Add const.
1169 (frame_save_as_regcache): Add const.
1170 (get_frame_address_space): Return const address_space *.
1171 * frame.h (get_frame_address_space): Update declaration.
1172 * infrun.c (struct step_over_info) <aspace>: Add const.
1173 (set_step_over_info): Make aspace const.
1174 (displaced_step_prepare_throw): Change variable const.
1176 (proceed): Likewise.
1177 (adjust_pc_after_break): Likewise.
1178 (save_waitstatus): Likewise.
1179 (handle_signal_stop): Likewise.
1180 (keep_going_pass_signal): Likewise.
1181 * jit.c (jit_frame_sniffer): Add const.
1182 * mips-tdep.c (mips_single_step_through_delay): Likewise.
1183 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
1184 * record-full.c (record_full_wait_1): Likewise.
1185 * regcache.c (regcache::regcache): Change parameter to const.
1186 * regcache.h (regcache::regcache): Likewise.
1187 (regcache::aspace): Return const address_space *.
1188 (regcache) <m_aspace>: Add const.
1190 2017-11-02 Yao Qi <yao.qi@linaro.org>
1192 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
1193 * frame.c (create_sentinel_frame): Likewise.
1194 * infrun.c (displaced_step_prepare_throw): Likewise.
1196 (thread_still_needs_step_over_bp): Likewise.
1197 (proceed): Likewise.
1198 (do_target_wait): Likewise.
1199 (adjust_pc_after_break): Likewise.
1200 (handle_syscall_event): Likewise.
1201 (save_waitstatus): Likewise.
1202 (handle_inferior_event_1): Likewise.
1203 (handle_signal_stop): Likewise.
1204 (keep_going_pass_signal): Likewise.
1205 * linux-nat.c (status_callback): Likewise.
1206 (save_stop_reason): Likewise.
1207 (resume_stopped_resumed_lwps): Likewise.
1208 * record-full.c (record_full_exec_insn): Likewise.
1209 (record_full_wait_1): Likewise.
1210 * regcache.c (get_regcache_aspace): Remove.
1211 * regcache.h (get_regcache_aspace): Remove.
1213 2017-11-02 Yao Qi <yao.qi@linaro.org>
1215 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
1216 (init_regcache_descr): Use gdbarch_num_regs.
1217 (regcache::regcache): Likewise.
1218 (regcache::get_register_status): Likewise.
1219 (regcache::assert_raw_regnum): Likewise.
1220 (regcache::cooked_read): Likewise.
1221 (regcache::cooked_read_value): Likewise.
1222 (regcache::cooked_write): Likewise.
1223 (regcache::dump): Likewise.
1224 (regcache::num_raw_registers): New method.
1225 * regcache.h (class regcache) <num_raw_registers>: New.
1227 2017-11-02 Yao Qi <yao.qi@linaro.org>
1229 * regcache.c (regcache::assert_regnum): New method.
1230 (regcache::invalidate): Call assert_regnum.
1231 (regcache::raw_update): Likewise.
1232 (regcache::raw_write): Likewise.
1233 (regcache::raw_read_part): Likewise.
1234 (regcache::raw_write_part): Likewise.
1235 (regcache::raw_supply): Likewise.
1236 (regcache::raw_supply_integer): Likewise.
1237 (regcache::raw_supply_zeroed): Likewise.
1238 (regcache::raw_collect): Likewise.
1239 (regcache::raw_collect_integer): Likewise.
1240 * regcache.h (regcache::assert_regnum): Declare.
1242 2017-11-02 Yao Qi <yao.qi@linaro.org>
1244 * regcache.c (regcache::dump): Remove code.
1246 2017-11-02 Yao Qi <yao.qi@linaro.org>
1248 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
1250 <sizeof_cooked_register_status>: Remove.
1251 (init_regcache_descr): Update.
1252 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
1253 (regcache::save): Likewise.
1254 (regcache::dump): Likewise.
1256 2017-11-01 James Bowman <james.bowman@ftdichip.com>
1258 * ft32-tdep.c (ft32_fetch_instruction): New function.
1259 (ft32_analyze_prologue): Use ft32_fetch_instruction().
1261 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1263 * cli/cli-script.c (execute_control_command): Rename to ...
1264 (execute_control_command_1): ... this.
1265 (execute_control_command): New function.
1267 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
1269 * tracepoint.c (tfind_command): Remove const_cast.
1271 2017-10-30 Mike Gulick <mgulick@mathworks.com>
1273 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
1275 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
1277 * common/common-utils.h (in_inclusive_range): New function.
1278 * arm-tdep.c (arm_record_extension_space): Use
1280 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
1281 * cris-tdep.c (cris_spec_reg_applicable): Use
1284 2017-10-30 Pedro Alves <palves@redhat.com>
1285 Simon Marchi <simon.marchi@ericsson.com>
1287 * remote.c (remote_set_syscall_catchpoint): Build a std::string
1288 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
1290 2017-10-30 Pedro Alves <palves@redhat.com>
1292 * common/common-utils.c (string_appendf, string_vappendf): New
1294 * common/common-utils.h (string_appendf, string_vappendf): New
1296 * unittests/common-utils-selftests.c (string_appendf_func)
1297 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
1298 (string_vappendf_tests): New functions.
1299 (_initialize_common_utils_selftests): Register "string_appendf" and
1300 "string_vappendf tests".
1302 2017-10-30 Pedro Alves <palves@redhat.com>
1304 * unittests/common-utils-selftests.c (format_func): New typedef.
1305 (string_printf_tests, string_vprintf_tests): Tests factored out
1307 (test_format_func): ... this new function.
1308 (string_printf_tests, string_vprintf_tests): Reimplement on top of
1311 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1313 * darwin-nat.c: Remove include of gdb.h.
1315 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1317 * xtensa-xtregs.c: Fix formatting issues.
1319 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1321 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
1323 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
1326 * python/py-infthread.c (thpy_get_inferior): Increment reference
1327 of inferior before returning it.
1329 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1331 * unittests/common-utils-selftests.c (format): Add
1334 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1336 * xml-syscall.c (struct syscall_desc): Add constructor.
1337 <name>: Change type to std::string.
1338 (syscall_desc_up): New typedef.
1339 (syscall_desc_p): Remove typeder.
1340 (DEF_VEC_P(syscall_desc_p)): Remove.
1341 (struct syscall_group_desc): Add constructor.
1342 <name>: Change type to std::string.
1343 <syscalls>: Change type to std::vector.
1344 (syscall_group_desc_up): New typedef.
1345 (syscall_group_desc_p): Remove typedef.
1346 (DEF_VEC_P(syscall_group_desc_p)): Remove.
1347 (struct syscalls_info) <syscalls>: Change type to std::vector of
1350 <my_gdb_datadir>: Change type to std::string.
1351 (syscalls_info_up): New typedef.
1352 (allocate_syscalls_info): Remove.
1353 (syscalls_info_free_syscalls_desc): Remove.
1354 (syscalls_info_free_syscall_group_desc): Remove.
1355 (free_syscalls_info): Remove.
1356 (make_cleanup_free_syscalls_info): Remove.
1357 (syscall_group_create_syscall_group_desc): Adjust.
1358 (syscall_group_add_syscall): Adjust.
1359 (syscall_create_syscall_desc): Adjust.
1360 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
1361 (init_syscalls_info): Adjust.
1362 (syscall_group_get_group_by_name): Adjust.
1363 (xml_get_syscall_number): Adjust.
1364 (xml_get_syscall_name): Adjust.
1365 (xml_list_of_syscalls): Adjust.
1366 (xml_list_syscalls_by_group): Adjust.
1367 (xml_list_of_groups): Adjust.
1369 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1371 * probe.h: Don't include gdb_vecs.h.
1372 (DEF_VEC_P (probe_p)): Remove.
1373 (find_probes_in_objfile): Return an std::vector.
1374 * probe.c (find_probes_in_objfile): Likewise.
1375 * breakpoint.c (breakpoint_objfile_data)
1376 <longjmp_probes>: Change type to std::vector.
1377 <exception_probes>: Likewise.
1378 (free_breakpoint_probes): Don't manually free vectors.
1379 (create_longjmp_master_breakpoint): Adjust.
1380 (create_exception_master_breakpoint): Adjust.
1381 * solib-svr4.c (svr4_create_probe_breakpoints): Change
1382 parameter type, adjust.
1383 (svr4_create_solib_event_breakpoints): Adjust.
1385 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1387 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
1388 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
1390 (free_breakpoint_probes): Rename to ...
1391 (free_breakpoint_objfile_data): ... this, and call delete on
1394 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1396 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
1397 (loaded_script_ptr): Remove typedef.
1398 (DEF_VEC_P (loaded_script_ptr)): Remove.
1399 (struct collect_matching_scripts_data): Add constructor.
1400 <scripts_p>: Change type to (pointer to) std::vector.
1401 (collect_matching_scripts_data): Adjust.
1402 (sort_scripts_by_name): Make suitable for std::sort.
1403 (print_scripts): Don't sort vector, adjust to std::vector.
1404 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
1406 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1408 * symfile.c (filename_language): Make struct, not typedef. Add
1410 <ext>: Change type to std::string.
1411 (DEF_VEC_O (filename_language)): Remove.
1412 (filename_language_table): Change type to std::vector.
1413 (add_filename_language): Adjust.
1414 (set_ext_lang_command): Adjust.
1415 (info_ext_lang_command): Adjust.
1416 (deduce_language_from_filename): Adjust.
1417 (class scoped_restore_filename_language_table): Remove.
1418 (test_filename_language): Use scoped_restore.
1419 (test_set_ext_lang_command): Use scoped_restore, adjust to
1422 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1424 * symfile.c: Include selftest.h.
1425 (class scoped_restore_filename_language_table): New.
1426 (test_filename_language): New test.
1427 (test_set_ext_lang_command): New test.
1428 (_initialize_symfile): Register tests.
1430 2017-10-27 Keith Seitz <keiths@redhat.com>
1432 * breakpoint.c (print_breakpoint_location): Use the symbol saved
1433 in the bp_location, falling back to find_pc_sect_function when
1435 (add_location_to_breakpoint): Save sal->symbol.
1436 * breakpoint.h (struct bp_location) <symbol>: New field.
1437 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
1438 * symtab.h (struct symtab_and_line) <symbol>: New field.
1440 2017-10-26 Patrick Frants <osscontribute@gmail.com>
1443 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
1446 2017-10-26 Pedro Alves <palves@redhat.com>
1448 * remote.c (remote_async_terminal_ours_p): Delete.
1449 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
1450 Remove references to 'remote_async_terminal_ours_p'.
1452 2017-10-26 Yao Qi <yao.qi@linaro.org>
1454 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
1456 2017-10-26 Yao Qi <yao.qi@linaro.org>
1458 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
1460 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
1462 * breakpoint.c (bpstat_check_location): Remove cast.
1463 (breakpoint_hit_catch_fork): Make aspce const.
1464 (breakpoint_hit_catch_solib): Likewise.
1465 (breakpoint_hit_catch_exec): Likewise.
1466 (breakpoint_hit_ranged_breakpoint): Likewise.
1467 (breakpoint_hit_watchpoint): Likewise.
1468 (base_breakpoint_breakpoint_hit): Likewise.
1469 (bkpt_breakpoint_hit): Likewise.
1470 (dprintf_breakpoint_hit): Likewise.
1471 (tracepoint_breakpoint_hit): Likewise.
1472 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
1474 2017-10-26 Yao Qi <yao.qi@linaro.org>
1476 * breakpoint.c (breakpoint_location_address_match): Change
1477 "struct address_space *" to "const address_space".
1478 (breakpoint_location_address_range_overlap): Likewise.
1479 (breakpoint_here_p): Likewise.
1480 (breakpoint_in_range_p): Likewise.
1481 (moribund_breakpoint_here_p): Likewise.
1482 (bp_location_inserted_here_p): Likewise.
1483 (software_breakpoint_inserted_here_p): Likewise.
1484 (hardware_breakpoint_inserted_here_p): Likewise.
1485 (hardware_watchpoint_inserted_in_range): Likewise.
1486 (bpstat_check_location): Likewise.
1487 (bpstat_stop_status): Likewise.
1488 (breakpoint_address_match): Likewise.
1489 (breakpoint_address_match_range): Likewise.
1490 (breakpoint_location_address_match): Likewise.
1491 (breakpoint_location_address_range_overlap): Likewise.
1492 (insert_single_step_breakpoint): Likewise.
1493 (breakpoint_has_location_inserted_here): Likewise.
1494 (single_step_breakpoint_inserted_here_p): Likewise.
1495 (pc_at_non_inline_function): Likewise.
1496 * breakpoint.h (bpstat_stop_status): Update declaration.
1497 (breakpoint_here_p): Likewise.
1498 (breakpoint_in_range_p): Likewise.
1499 (moribund_breakpoint_here_p): Likewise.
1500 (breakpoint_inserted_here_p): Likewise.
1501 (software_breakpoint_inserted_here_p): Likewise.
1502 (hardware_breakpoint_inserted_here_p): Likewise.
1503 (breakpoint_has_location_inserted_here): Likewise.
1504 (single_step_breakpoint_inserted_here_p): Likewise.
1505 (hardware_watchpoint_inserted_in_range): Likewise.
1506 (breakpoint_address_match): Likewise.
1507 (insert_single_step_breakpoint): Likewise.
1508 (pc_at_non_inline_function): Likewise.
1509 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
1510 * record.c (record_check_stopped_by_breakpoint): Likewise.
1511 * record.h (record_check_stopped_by_breakpoint): Likewise.
1512 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
1514 2017-10-25 Yao Qi <yao.qi@linaro.org>
1516 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
1517 regcache->arch () instead get_regcache_arch.
1518 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
1520 (aarch64_fbsd_store_inferior_registers): Likewise.
1521 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
1522 (store_gregs_to_thread): Likewise.
1523 (fetch_fpregs_from_thread): Likewise.
1524 (store_fpregs_to_thread): Likewise.
1525 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
1526 (aarch64_store_return_value): Likewise.
1527 (aarch64_software_single_step): Likewise.
1528 * aix-thread.c (aix_thread_wait): Likewise.
1529 (supply_reg32): Likewise.
1530 (supply_sprs64): Likewise.
1531 (supply_sprs32): Likewise.
1532 (fill_gprs64): Likewise.
1533 (fill_gprs32): Likewise.
1534 (fill_sprs64): Likewise.
1535 (fill_sprs32): Likewise.
1536 (store_regs_user_thread): Likewise.
1537 (store_regs_kernel_thread): Likewise.
1538 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
1539 (alphabsd_store_inferior_registers): Likewise.
1540 * alpha-tdep.c (alpha_extract_return_value): Likewise.
1541 (alpha_store_return_value): Likewise.
1542 (alpha_deal_with_atomic_sequence): Likewise.
1543 (alpha_next_pc): Likewise.
1544 (alpha_software_single_step): Likewise.
1545 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
1546 (amd64bsd_store_inferior_registers): Likewise.
1547 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
1549 (amd64_linux_store_inferior_registers): Likewise.
1550 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1551 (amd64_collect_native_gregset): Likewise.
1552 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
1553 (amd64obsd_collect_uthread): Likewise.
1554 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
1555 (amd64_collect_fpregset): Likewise.
1556 (amd64_supply_fxsave): Likewise.
1557 (amd64_supply_xsave): Likewise.
1558 (amd64_collect_fxsave): Likewise.
1559 (amd64_collect_xsave): Likewise.
1560 * arc-tdep.c (arc_write_pc): Likewise.
1561 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
1562 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
1563 (arm_fbsd_store_inferior_registers): Likewise.
1564 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
1565 (store_vfp_regs): Likewise.
1566 (arm_linux_fetch_inferior_registers): Likewise.
1567 (arm_linux_store_inferior_registers): Likewise.
1568 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1569 (arm_linux_sigreturn_next_pc): Likewise.
1570 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
1571 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
1572 (fetch_register): Likewise.
1573 (store_register): Likewise.
1574 * arm-tdep.c (arm_is_thumb): Likewise.
1575 (displaced_in_arm_mode): Likewise.
1576 (bx_write_pc): Likewise.
1577 (arm_get_next_pcs_addr_bits_remove): Likewise.
1578 (arm_software_single_step): Likewise.
1579 (arm_extract_return_value): Likewise.
1580 (arm_store_return_value): Likewise.
1581 (arm_write_pc): Likewise.
1582 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1583 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
1584 (bsd_uthread_store_registers): Likewise.
1585 * core-regset.c (fetch_core_registers): Likewise.
1586 * corelow.c (get_core_registers): Likewise.
1587 * cris-tdep.c (cris_store_return_value): Likewise.
1588 (cris_extract_return_value): Likewise.
1589 (find_step_target): Likewise.
1590 (find_step_target): Likewise.
1591 (cris_software_single_step): Likewise.
1592 * ctf.c (ctf_fetch_registers): Likewise.
1593 * darwin-nat.c (cancel_breakpoint): Likewise.
1594 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
1595 * frv-tdep.c (frv_extract_return_value): Likewise.
1596 * ft32-tdep.c (ft32_store_return_value): Likewise.
1597 (ft32_extract_return_value): Likewise.
1598 * go32-nat.c (fetch_register): Likewise.
1599 (go32_fetch_registers): Likewise.
1600 (go32_store_registers): Likewise.
1601 (store_register): Likewise.
1602 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1603 (h8300_store_return_value): Likewise.
1604 * hppa-linux-nat.c (fetch_register): Likewise.
1605 (store_register): Likewise.
1606 (hppa_linux_fetch_inferior_registers): Likewise.
1607 (hppa_linux_store_inferior_registers): Likewise.
1608 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
1609 (i386_darwin_store_inferior_registers): Likewise.
1610 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
1611 (gnu_store_registers): Likewise.
1612 * i386-linux-nat.c (fetch_register): Likewise.
1613 (store_register): Likewise.
1614 (supply_gregset): Likewise.
1615 (fill_gregset): Likewise.
1616 (i386_linux_fetch_inferior_registers): Likewise.
1617 (i386_linux_store_inferior_registers): Likewise.
1618 (i386_linux_resume): Likewise.
1619 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
1621 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
1622 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
1623 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
1624 (i386obsd_collect_uthread): Likewise.
1625 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1626 (i386_supply_gregset): Likewise.
1627 (i386_collect_gregset): Likewise.
1628 (i386_supply_fpregset): Likewise.
1629 (i386_collect_fpregset): Likewise.
1630 (i386_mpx_bd_base): Likewise.
1631 * i386-v4-nat.c (supply_fpregset): Likewise.
1632 (fill_fpregset): Likewise.
1633 * i387-tdep.c (i387_supply_fsave): Likewise.
1634 (i387_collect_fsave): Likewise.
1635 (i387_supply_fxsave): Likewise.
1636 (i387_collect_fxsave): Likewise.
1637 (i387_supply_xsave): Likewise.
1638 (i387_collect_xsave): Likewise.
1639 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
1640 (ia64_linux_store_registers): Likewise.
1641 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
1642 (ia64_extract_return_value): Likewise.
1643 (ia64_store_return_value): Likewise.
1644 (find_func_descr): Likewise.
1645 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1646 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
1647 (inf_ptrace_store_registers): Likewise.
1648 * infrun.c (use_displaced_stepping): Likewise.
1649 (displaced_step_prepare_throw): Likewise.
1651 (proceed): Likewise.
1652 (do_target_wait): Likewise.
1653 (adjust_pc_after_break): Likewise.
1654 (handle_inferior_event_1): Likewise.
1655 (handle_signal_stop): Likewise.
1656 (save_infcall_suspend_state): Likewise.
1657 (restore_infcall_suspend_state): Likewise.
1658 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
1659 * jit.c (jit_frame_prev_register): Likewise.
1660 * linux-nat.c (save_stop_reason): Likewise.
1661 (linux_nat_wait_1): Likewise.
1662 (resume_stopped_resumed_lwps): Likewise.
1663 * linux-record.c (record_linux_sockaddr): Likewise.
1664 (record_linux_msghdr): Likewise.
1665 (record_linux_system_call): Likewise.
1666 * linux-tdep.c (linux_collect_thread_registers): Likewise.
1667 * lm32-tdep.c (lm32_extract_return_value): Likewise.
1668 (lm32_store_return_value): Likewise.
1669 * m32c-tdep.c (m32c_read_flg): Likewise.
1670 (m32c_pseudo_register_read): Likewise.
1671 (m32c_pseudo_register_write): Likewise.
1672 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
1673 (m32r_linux_collect_gregset): Likewise.
1674 * m32r-tdep.c (m32r_store_return_value): Likewise.
1675 (m32r_extract_return_value): Likewise.
1676 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1677 (m68kbsd_collect_fpregset): Likewise.
1678 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1679 * m68k-linux-nat.c (fetch_register): Likewise.
1680 (old_fetch_inferior_registers): Likewise.
1681 (old_store_inferior_registers): Likewise.
1682 (store_regs): Likewise.
1683 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
1684 (m68k_svr4_store_return_value): Likewise.
1685 * m88k-tdep.c (m88k_store_arguments): Likewise.
1686 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
1687 (mi_cmd_data_write_register_values): Likewise.
1688 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
1689 (mips_fbsd_store_inferior_registers): Likewise.
1690 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
1691 (mips_fbsd_supply_gregs): Likewise.
1692 (mips_fbsd_collect_fpregs): Likewise.
1693 (mips_fbsd_collect_gregs): Likewise.
1694 (mips_fbsd_supply_fpregset): Likewise.
1695 (mips_fbsd_collect_fpregset): Likewise.
1696 (mips_fbsd_supply_gregset): Likewise.
1697 (mips_fbsd_collect_gregset): Likewise.
1698 * mips-linux-nat.c (supply_gregset): Likewise.
1699 (fill_gregset): Likewise.
1700 (supply_fpregset): Likewise.
1701 (fill_fpregset): Likewise.
1702 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
1703 (mips_fill_gregset): Likewise.
1704 (mips_supply_fpregset): Likewise.
1705 (mips_fill_fpregset): Likewise.
1706 (mips64_supply_gregset): Likewise.
1707 (micromips_linux_sigframe_validate): Likewise.
1708 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
1709 (mipsnbsd_fetch_inferior_registers): Likewise.
1710 (mipsnbsd_store_inferior_registers): Likewise.
1711 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1712 (mipsnbsd_supply_gregset): Likewise.
1713 (mipsnbsd_iterate_over_regset_sections): Likewise.
1714 (mipsnbsd_supply_reg): Likewise.
1715 (mipsnbsd_supply_fpreg): Likewise.
1716 * mips-tdep.c (mips_in_frame_stub): Likewise.
1717 (mips_dummy_id): Likewise.
1718 (is_octeon_bbit_op): Likewise.
1719 (micromips_bc1_pc): Likewise.
1720 (extended_mips16_next_pc): Likewise.
1721 (mips16_next_pc): Likewise.
1722 (deal_with_atomic_sequence): Likewise.
1723 * moxie-tdep.c (moxie_process_readu): Likewise.
1724 * nios2-tdep.c (nios2_get_next_pc): Likewise.
1725 * nto-procfs.c (procfs_store_registers): Likewise.
1726 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
1727 (ppcfbsd_store_inferior_registers): Likewise.
1728 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
1729 (fetch_altivec_register): Likewise.
1730 (get_spe_registers): Likewise.
1731 (fetch_spe_register): Likewise.
1732 (fetch_altivec_registers): Likewise.
1733 (fetch_all_gp_regs): Likewise.
1734 (fetch_all_fp_regs): Likewise.
1735 (store_vsx_register): Likewise.
1736 (store_altivec_register): Likewise.
1737 (set_spe_registers): Likewise.
1738 (store_spe_register): Likewise.
1739 (store_altivec_registers): Likewise.
1740 (store_all_gp_regs): Likewise.
1741 (store_all_fp_regs): Likewise.
1742 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1743 (ppc_linux_collect_gregset): Likewise.
1744 (ppc_canonicalize_syscall): Likewise.
1745 (ppc_linux_record_signal): Likewise.
1746 (ppu2spu_prev_register): Likewise.
1747 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1748 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
1749 (ppcobsd_store_registers): Likewise.
1750 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
1752 (ppc_ravenscar_generic_store_registers): Likewise.
1753 * procfs.c (procfs_fetch_registers): Likewise.
1754 (procfs_store_registers): Likewise.
1755 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
1756 (ravenscar_store_registers): Likewise.
1757 (ravenscar_prepare_to_store): Likewise.
1758 * record-btrace.c (record_btrace_fetch_registers): Likewise.
1759 * record-full.c (record_full_wait_1): Likewise.
1760 (record_full_registers_change): Likewise.
1761 (record_full_store_registers): Likewise.
1762 (record_full_core_fetch_registers): Likewise.
1763 (record_full_save): Likewise.
1764 (record_full_goto_insn): Likewise.
1765 * regcache.c (regcache_register_size): Likewise.
1766 (get_regcache_arch): Remove.
1767 (regcache_read_pc): Likewise.
1768 * regcache.h (get_regcache_arch): Remove.
1769 * remote-sim.c (gdbsim_fetch_register): Likewise.
1770 (gdbsim_store_register): Likewise.
1771 * remote.c (fetch_register_using_p): Likewise.
1772 (send_g_packet): Likewise.
1773 (remote_prepare_to_store): Likewise.
1774 (store_registers_using_G): Likewise.
1775 * reverse.c (save_bookmark_command): Likewise.
1776 (goto_bookmark_command): Likewise.
1777 * rs6000-aix-tdep.c (branch_dest): Likewise.
1778 * rs6000-nat.c (rs6000_ptrace64): Likewise.
1779 (fetch_register): Likewise.
1780 * rs6000-tdep.c (ppc_supply_reg): Likewise.
1781 (ppc_collect_reg): Likewise.
1782 (ppc_collect_gregset): Likewise.
1783 (ppc_collect_fpregset): Likewise.
1784 (ppc_collect_vsxregset): Likewise.
1785 (ppc_collect_vrregset): Likewise.
1786 (ppc_displaced_step_hw_singlestep): Likewise.
1787 (rs6000_pseudo_register_read): Likewise.
1788 (rs6000_pseudo_register_write): Likewise.
1789 * s390-linux-nat.c (supply_gregset): Likewise.
1790 (fill_gregset): Likewise.
1791 (s390_linux_fetch_inferior_registers): Likewise.
1792 * s390-linux-tdep.c (s390_write_pc): Likewise.
1793 (s390_software_single_step): Likewise.
1794 (s390_all_but_pc_registers_record): Likewise.
1795 (s390_linux_syscall_record): Likewise.
1796 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
1797 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
1798 (shnbsd_store_inferior_registers): Likewise.
1799 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
1800 (sh_extract_return_value_fpu): Likewise.
1801 (sh_store_return_value_nofpu): Likewise.
1802 (sh_corefile_supply_regset): Likewise.
1803 (sh_corefile_collect_regset): Likewise.
1804 * sh64-tdep.c (sh64_extract_return_value): Likewise.
1805 (sh64_store_return_value): Likewise.
1806 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
1807 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
1808 (sparc_store_inferior_registers): Likewise.
1809 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
1810 (sparc_ravenscar_prepare_to_store): Likewise.
1811 * sparc-tdep.c (sparc32_store_arguments): Likewise.
1812 (sparc_analyze_control_transfer): Likewise.
1813 (sparc_step_trap): Likewise.
1814 (sparc_software_single_step): Likewise.
1815 (sparc32_gdbarch_init): Likewise.
1816 (sparc_supply_rwindow): Likewise.
1817 (sparc_collect_rwindow): Likewise.
1818 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
1819 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
1820 (sparc64nbsd_collect_gregset): Likewise.
1821 (sparc64nbsd_supply_fpregset): Likewise.
1822 (sparc64nbsd_collect_fpregset): Likewise.
1823 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
1824 (sparc64_supply_gregset): Likewise.
1825 (sparc64_collect_gregset): Likewise.
1826 (sparc64_supply_fpregset): Likewise.
1827 (sparc64_collect_fpregset): Likewise.
1828 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1829 * spu-tdep.c (spu_unwind_sp): Likewise.
1830 (spu2ppu_prev_register): Likewise.
1831 (spu_memory_remove_breakpoint): Likewise.
1832 * stack.c (return_command): Likewise.
1833 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
1834 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1835 * tracefile.c (trace_save_ctf): Likewise.
1836 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
1837 (do_windows_store_inferior_registers): Likewise.
1838 (windows_resume): Likewise.
1839 * xtensa-linux-nat.c (fill_gregset): Likewise.
1840 (supply_gregset_reg): Likewise.
1841 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
1842 (xtensa_register_read_masked): Likewise.
1843 (xtensa_supply_gregset): Likewise.
1844 (xtensa_extract_return_value): Likewise.
1845 (xtensa_store_return_value): Likewise.
1847 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
1849 * doublest.c (floatformat_from_string): New function.
1850 * doublest.h (floatformat_from_string): Add prototype.
1852 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
1853 (OP_FLOAT): ... this.
1854 * expression.h: Do not include "doublest.h".
1855 (union exp_element): Replace doubleconst and decfloatconst by
1856 new element floatconst.
1857 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
1858 (ada_evaluate_subexp): Likewise.
1859 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
1860 OP_DOUBLE and OP_DECFLOAT.
1861 * expprint.c (print_subexp_standard): Likewise.
1862 (dump_subexp_body_standard): Likewise.
1863 * breakpoint.c (watchpoint_exp_is_const): Likewise.
1865 * parse.c: Include "dfp.h".
1866 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1867 (write_exp_elt_floatcst): New function.
1868 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
1870 (operator_check_standard): Likewise.
1871 (parse_float): Do not accept suffix. Take type as input. Return bool.
1872 Return target format buffer instead of host DOUBLEST.
1873 Use floatformat_from_string and decimal_from_string to parse
1874 either binary or decimal floating-point types.
1875 (parse_c_float): Remove.
1876 * parser-defs.h: Do not include "doublest.h".
1877 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1878 (write_exp_elt_floatcst): Add prototype.
1879 (parse_float): Update prototype.
1880 (parse_c_float): Remove.
1882 * c-exp.y: Do not include "dfp.h".
1883 (typed_val_float): Use byte buffer instead of DOUBLEST.
1884 (typed_val_decfloat): Remove.
1886 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1887 (parse_number): Update to new parse_float interface.
1888 Parse suffixes and determine type before calling parse_float.
1889 Handle decimal and binary FP types the same way.
1891 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1892 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
1893 (parse_number): Update to new parse_float interface.
1894 Parse suffixes and determine type before calling parse_float.
1896 * f-exp.y: Replace dval by typed_val_float.
1897 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1898 (parse_number): Use parse_float instead of atof.
1900 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1901 (parse_go_float): Remove.
1902 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1903 (parse_number): Call parse_float instead of parse_go_float.
1904 Parse suffixes and determine type before calling parse_float.
1906 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1907 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1908 (parse_number): Update to new parse_float interface.
1909 Parse suffixes and determine type before calling parse_float.
1911 * m2-exp.y: Replace dval by byte buffer val.
1912 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1913 (parse_number): Call parse_float instead of atof.
1915 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1916 (lex_number): Call parse_float instead of strtod.
1917 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
1918 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
1919 Use write_exp_elt_floatcst.
1920 (unit_testing): Remove static variable.
1921 (rust_type): Do not check unit_testing.
1922 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
1924 * ada-exp.y (type_float, type_double): Remove.
1925 (typed_val_float): Use byte buffer instead of DOUBLEST.
1926 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1927 * ada-lex.l (processReal): Use parse_float instead of sscanf.
1929 2017-10-25 Alan Hayward <alan.hayward@arm.com>
1931 * aarch64-tdep.h (enum aarch64_regnum): Remove.
1932 * arch/aarch64.h: New file.
1934 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1936 * dfp.h (decimal_from_string): Use const reference for argument.
1937 * dfp.c (decimal_from_string): Likewise.
1939 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1941 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
1942 * sh64-tdep.c (sh64_do_fp_register): Likewise.
1943 * mips-tdep.c (mips_print_fp_register): Likewise.
1945 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1947 * common/format.h (enum argclass): Replace decfloat_arg by
1948 dec32float_arg, dec64float_arg, and dec128float_arg.
1949 * common/format.c (parse_format_string): Update to return
1950 new decimal float argument classes.
1952 * printcmd.c (printf_decfloat): Rename to ...
1953 (printf_floating): ... this. Add argclass argument, and use it
1954 instead of parsing the format string again. Add support for
1955 binary floating-point values, using floatformat_to_string.
1956 Convert value to the target format if it doesn't already match.
1957 (ui_printf): Call printf_floating instead of printf_decfloat,
1958 also for double_arg / long_double_arg. Pass argclass.
1960 * dfp.c (decimal_to_string): Add format string argument.
1961 * dfp.h (decimal_to_string): Likewise.
1963 * doublest.c (floatformat_to_string): Add format string argument.
1964 * doublest.h (floatformat_to_string): Likewise.
1966 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1968 * doublest.c (floatformat_precision): New routine.
1969 (floatformat_to_string): Likewise.
1970 * doublest.c (floatformat_to_string): Add prototype.
1972 * printcmd.c (print_scalar_formatted): Only call print_floating
1973 on floating-point types.
1974 * valprint.c: Do not include "floatformat.h".
1975 (generic_val_print_decfloat): Remove.
1976 (generic_val_print): Call generic_val_print_float for both
1977 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
1978 (print_floating): Use floatformat_to_string. Handle decimal float.
1979 (print_decimal_floating): Remove, merge into floatformat_to_string.
1980 * value.h (print_decimal_floating): Remove.
1982 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
1984 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1986 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
1988 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1990 * memattr.h: Don't include vec.h.
1991 (struct mem_attrib): Initialize fields.
1992 <unknown>: New static method.
1993 (struct mem_region): Add constructors, operator<, initialize
1995 * memattr.c: Include algorithm.
1996 (default_mem_attrib, unknown_mem_attrib): Remove.
1997 (user_mem_region_list): New global.
1998 (target_mem_region_list, mem_region_list): Change type to
1999 std::vector<mem_region>.
2000 (mem_use_target): Now a function.
2001 (target_mem_regions_valid): Change type to bool.
2002 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
2003 (require_user_regions): Adjust.
2004 (require_target_regions): Adjust.
2005 (create_mem_region): Adjust.
2006 (lookup_mem_region): Adjust.
2007 (invalidate_target_mem_regions): Adjust.
2008 (mem_clear): Rename to...
2009 (user_mem_clear): ... this, and adjust.
2010 (mem_command): Adjust.
2011 (info_mem_command): Adjust.
2012 (mem_enable, enable_mem_command, mem_disable,
2013 disable_mem_command): Adjust.
2014 (mem_delete): Adjust.
2015 (delete_mem_command): Adjust.
2016 * memory-map.h (parse_memory_map): Return an std::vector.
2017 * memory-map.c (parse_memory_map): Likewise.
2018 (struct memory_map_parsing_data): Add constructor.
2019 <memory_map>: Point to std::vector.
2020 (memory_map_start_memory): Adjust.
2021 (memory_map_end_memory): Adjust.
2022 (memory_map_end_property): Adjust.
2023 (clear_result): Remove.
2024 * remote.c (remote_memory_map): Return an std::vector.
2025 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
2027 (target_debug_print_mem_region_vector): New.
2028 * target-delegates.c: Regenerate.
2029 * target.h (mem_region_vector): New typedef.
2030 (to_memory_map): Return mem_region_vector.
2031 (target_memory_map): Return an std::vector.
2032 * target.c (target_memory_map): Return an std::vector.
2033 (flash_erase_command): Adjust.
2035 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2037 * memory-map.c (struct memory_map_parsing_data) <property_name>:
2038 Change type to std::string.
2039 (memory_map_start_property): Adjust.
2040 (memory_map_end_property): Adjust.
2042 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2044 * infrun.h: Include common/byte-vector.h.
2045 (struct displaced_step_closure): New struct.
2046 (struct buf_displaced_step_closure): New struct.
2047 * infrun.c (displaced_step_closure::~displaced_step_closure):
2048 Provide default implementation.
2049 (displaced_step_clear): Deallocate step closure with delete.
2050 * aarch64-tdep.c (displaced_step_closure): Rename to ...
2051 (aarch64_displaced_step_closure): ... this, extend
2052 displaced_step_closure.
2053 (aarch64_displaced_step_data) <dsc>: Change type to
2054 aarch64_displaced_step_closure.
2055 (aarch64_displaced_step_copy_insn): Adjust to type change, use
2057 (aarch64_displaced_step_fixup): Add cast for displaced step
2059 * amd64-tdep.c (displaced_step_closure): Rename to ...
2060 (amd64_displaced_step_closure): ... this, extend
2061 displaced_step_closure.
2062 <insn_buf>: Change type to std::vector<gdb_byte>.
2064 (fixup_riprel): Change type of DSC parameter, adjust to type
2066 (fixup_displaced_copy): Change type of DSC parameter.
2067 (amd64_displaced_step_copy_insn): Instantiate
2068 amd64_displaced_step_closure.
2069 (amd64_displaced_step_fixup): Add cast for closure type, adjust
2070 to type change of insn_buf.
2071 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
2073 (arm_linux_copy_svc): Likewise.
2074 (cleanup_kernel_helper_return): Likewise.
2075 (arm_catch_kernel_helper_return): Likewise.
2076 (arm_linux_displaced_step_copy_insn): Instantiate
2077 arm_displaced_step_closure.
2078 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
2079 (displaced_read_reg): Change type of parameter DSC.
2080 (branch_write_pc): Likewise.
2081 (load_write_pc): Likewise.
2082 (alu_write_pc): Likewise.
2083 (displaced_write_reg): Likewise.
2084 (arm_copy_unmodified): Likewise.
2085 (thumb_copy_unmodified_32bit): Likewise.
2086 (thumb_copy_unmodified_16bit): Likewise.
2087 (cleanup_preload): Likewise.
2088 (install_preload): Likewise.
2089 (arm_copy_preload): Likewise.
2090 (thumb2_copy_preload): Likewise.
2091 (install_preload_reg): Likewise.
2092 (arm_copy_preload_reg): Likewise.
2093 (cleanup_copro_load_store): Likewise.
2094 (install_copro_load_store): Likewise.
2095 (arm_copy_copro_load_store) Likewise.
2096 (thumb2_copy_copro_load_store): Likewise.
2097 (cleanup_branch): Likewise.
2098 (install_b_bl_blx): Likewise.
2099 (arm_copy_b_bl_blx): Likewise.
2100 (thumb2_copy_b_bl_blx): Likewise.
2101 (thumb_copy_b): Likewise.
2102 (install_bx_blx_reg): Likewise.
2103 (arm_copy_bx_blx_reg): Likewise.
2104 (thumb_copy_bx_blx_reg): Likewise.
2105 (cleanup_alu_imm): Likewise.
2106 (arm_copy_alu_imm): Likewise.
2107 (thumb2_copy_alu_imm): Likewise.
2108 (cleanup_alu_reg): Likewise.
2109 (install_alu_reg): Likewise.
2110 (arm_copy_alu_reg): Likewise.
2111 (thumb_copy_alu_reg): Likewise.
2112 (cleanup_alu_shifted_reg): Likewise.
2113 (install_alu_shifted_reg): Likewise.
2114 (arm_copy_alu_shifted_reg): Likewise.
2115 (cleanup_load): Likewise.
2116 (cleanup_store): Likewise.
2117 (arm_copy_extra_ld_st): Likewise.
2118 (install_load_store): Likewise.
2119 (thumb2_copy_load_literal): Likewise.
2120 (thumb2_copy_load_reg_imm): Likewise.
2121 (arm_copy_ldr_str_ldrb_strb): Likewise.
2122 (cleanup_block_load_all): Likewise.
2123 (cleanup_block_store_pc): Likewise.
2124 (cleanup_block_load_pc): Likewise.
2125 (arm_copy_block_xfer): Likewise.
2126 (thumb2_copy_block_xfer): Likewise.
2127 (cleanup_svc): Likewise.
2128 (install_svc): Likewise.
2129 (arm_copy_svc): Likewise.
2130 (thumb_copy_svc): Likewise.
2131 (arm_copy_undef): Likewise.
2132 (thumb_32bit_copy_undef): Likewise.
2133 (arm_copy_unpred): Likewise.
2134 (arm_decode_misc_memhint_neon): Likewise.
2135 (arm_decode_unconditional): Likewise.
2136 (arm_decode_miscellaneous): Likewise.
2137 (arm_decode_dp_misc): Likewise.
2138 (arm_decode_ld_st_word_ubyte): Likewise.
2139 (arm_decode_media): Likewise.
2140 (arm_decode_b_bl_ldmstm): Likewise.
2141 (arm_decode_ext_reg_ld_st): Likewise.
2142 (thumb2_decode_dp_shift_reg): Likewise.
2143 (thumb2_decode_ext_reg_ld_st): Likewise.
2144 (arm_decode_svc_copro): Likewise.
2145 (thumb2_decode_svc_copro): Likewise.
2146 (install_pc_relative): Likewise.
2147 (thumb_copy_pc_relative_16bit): Likewise.
2148 (thumb_decode_pc_relative_16bit): Likewise.
2149 (thumb_copy_pc_relative_32bit): Likewise.
2150 (thumb_copy_16bit_ldr_literal): Likewise.
2151 (thumb_copy_cbnz_cbz): Likewise.
2152 (thumb2_copy_table_branch): Likewise.
2153 (cleanup_pop_pc_16bit_all): Likewise.
2154 (thumb_copy_pop_pc_16bit): Likewise.
2155 (thumb_process_displaced_16bit_insn): Likewise.
2156 (decode_thumb_32bit_ld_mem_hints): Likewise.
2157 (thumb_process_displaced_32bit_insn): Likewise.
2158 (thumb_process_displaced_insn): Likewise.
2159 (arm_process_displaced_insn): Likewise.
2160 (arm_displaced_init_closure): Likewise.
2161 (arm_displaced_step_fixup): Add cast for closure.
2162 * arm-tdep.h: Include infrun.h.
2163 (displaced_step_closure): Rename to ...
2164 (arm_displaced_step_closure): ... this, extend
2165 displaced_step_closure.
2166 <u::svc::copy_svc_os>: Change type of parameter DSC.
2167 <cleanup>: Likewise.
2168 (arm_process_displaced_insn): Likewise.
2169 (arm_displaced_init_closure): Likewise.
2170 (displaced_read_reg): Likewise.
2171 (displaced_write_reg): Likewise.
2172 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
2174 * i386-tdep.h: Include infrun.h.
2175 (i386_displaced_step_closure): New typedef.
2176 * i386-tdep.c (i386_displaced_step_copy_insn): Use
2177 i386_displaced_step_closure.
2178 (i386_displaced_step_fixup): Adjust.
2179 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
2180 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
2182 (ppc_displaced_step_fixup): Adjust.
2183 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
2184 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
2186 (s390_displaced_step_fixup): Adjust.
2188 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2190 * interps.h (interp_resume, interp_suspend, interp_set_temp):
2191 Remove declarations.
2193 2017-10-20 Tom Tromey <tom@tromey.com>
2195 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
2197 (gdb_bfd_record_inclusion): Update.
2198 (bfdp): Remove typedef.
2200 2017-10-20 Tom Tromey <tom@tromey.com>
2202 * gdb_bfd.c (gdb_bfd_ref): Use new.
2203 (struct gdb_bfd_data): Add constructor, destructor, and member
2205 (gdb_bfd_unref): Use delete.
2207 2017-10-20 Tom Tromey <tom@tromey.com>
2209 * exec.c (exec_file_attach): Use new_bfd_ref.
2210 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
2211 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
2212 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
2214 * gdb_bfd.h (new_bfd_ref): New function.
2216 2017-10-20 Pedro Alves <palves@redhat.com>
2218 * main.c (captured_command_loop): Add attribute noinline.
2220 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
2222 * interps.c (struct interp_factory): Add constructor.
2223 (interp_factory_p): Remove typedef.
2224 (DEF_VEC_P(interp_factory_p)): Remove.
2225 (interpreter_factories): Change type to std::vector.
2226 (interp_factory_register): Adjust.
2227 (interp_lookup): Adjust.
2228 (interpreter_completer): Adjust.
2230 2017-10-19 Tom Tromey <tom@tromey.com>
2232 * break-catch-syscall.c (catch_syscall_completer): Use
2233 std::string, gdb::unique_xmalloc_ptr.
2235 2017-10-19 Tom Tromey <tom@tromey.com>
2237 * infcall.c (call_function_by_hand_dummy): Use std::string.
2239 2017-10-19 Tom Tromey <tom@tromey.com>
2241 * mi/mi-main.c (mi_cmd_execute): Update.
2242 * top.h (prepare_execute_command): Return scoped_value_mark.
2243 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
2244 Add move constructor.
2245 * top.c (prepare_execute_command): Return scoped_value_mark.
2246 (execute_command): Update.
2248 2017-10-19 Pedro Alves <palves@redhat.com>
2250 * xml-support.c (xml_fetch_content_from_file): Check fread's
2253 2017-10-19 Pedro Alves <palves@redhat.com>
2255 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
2257 (handle_error_fd): New function.
2258 (ser_base_async): Add/delete an event loop file handler for
2261 2017-10-19 Pedro Alves <palves@redhat.com>
2263 * xml-support.c (xml_fetch_content_from_file): Don't read in
2264 chunks. Instead use fseek to determine the file's size, and read
2267 2017-11-18 Keith Seitz <keiths@redhat.com>
2269 * c-exp.y (oper): Canonicalize conversion operators of user-defined
2271 Add whitespace to front of type name.
2273 2017-10-18 Keith Seitz <keiths@redhat.com>
2275 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
2276 DW_AT_accessibility.
2278 2017-10-18 Yao Qi <yao.qi@linaro.org>
2280 * features/tic6x-c62x-linux.c: Remove.
2282 2017-10-17 Tom Tromey <tom@tromey.com>
2284 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
2285 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
2286 (do_mixed_source_and_assembly): Likewise.
2288 2017-10-17 Tom Tromey <tom@tromey.com>
2290 * regcache.c (regcache::xfer_part): Remove assertion.
2292 2017-10-17 Pedro Alves <palves@redhat.com>
2294 * xml-support.c (xml_fetch_content_from_file): Call
2295 unique_ptr::release() instead unique_ptr::get() when passing
2298 2017-10-17 Yao Qi <yao.qi@linaro.org>
2300 * regcache.c (regcache::xfer_part): Remove parameters read and
2301 write, add parameter is_raw. All callers are updated.
2303 2017-10-16 Keith Seitz <keiths@redhat.com>
2305 * c-typeprint.c (enum access_specifier): Moved here from
2307 (output_access_specifier): New function.
2308 (c_type_print_base): Consider typedefs when assessing
2309 whether access labels are needed.
2310 Use output_access_specifier as needed.
2311 Output access specifier for typedefs, if needed.
2312 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
2313 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
2315 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
2318 2017-10-16 Tom Tromey <tom@tromey.com>
2320 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
2321 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
2322 * target.c (target_fileio_read_stralloc): Update.
2323 * sparc64-tdep.c (adi_is_addr_mapped): Update.
2324 * target.h (target_fileio_read_stralloc): Return
2327 2017-10-16 Tom Tromey <tom@tromey.com>
2329 * xml-syscall.c (xml_init_syscalls_info): Update.
2330 * xml-support.c (xinclude_start_include): Update.
2331 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
2332 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
2333 (xml_fetch_content_from_file): Likewise.
2334 * osdata.c (get_osdata): Update.
2335 * target.h (target_read_stralloc, target_get_osdata): Return
2337 * solib-aix.c (solib_aix_get_library_list): Update.
2338 * solib-target.c (solib_target_current_sos): Update.
2339 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
2340 * xml-tdesc.c (fetch_available_features_from_target): Update.
2341 (target_fetch_description_xml): Update.
2342 (file_read_description_xml): Update.
2343 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
2344 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
2345 (remote_pid_to_exec_file): Update.
2346 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
2347 (target_get_osdata): Likewise.
2349 2017-10-16 Tom Tromey <tom@tromey.com>
2351 * remote.c (remote_register_number_and_offset): Use std::vector.
2352 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
2353 (putpkt_binary): Use gdb::def_vector.
2354 (compare_sections_command): Use gdb::byte_vector.
2356 2017-10-16 Tom Tromey <tom@tromey.com>
2358 * ppc-linux-nat.c (hwdebug_insert_point): Use
2359 gdb::unique_xmalloc_ptr, XDUP.
2361 2017-10-16 Tom Tromey <tom@tromey.com>
2363 * probe.c (parse_probes): Use std::string.
2364 (info_probes_for_ops, enable_probes_command)
2365 (disable_probes_command): Remove cleanups.
2367 2017-10-16 Tom Tromey <tom@tromey.com>
2369 * buildsym.c (block_compar): Remove.
2370 (end_symtab_get_static_block): Use std::vector.
2372 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
2374 * memrange.h (struct mem_range): Define operator< and operator==.
2375 (mem_range_s): Remove.
2376 (DEF_VEC_O (mem_range_s)): Remove.
2377 (normalize_mem_ranges): Change parameter type to std::vector.
2378 * memrange.c (compare_mem_ranges): Remove.
2379 (normalize_mem_ranges): Change parameter type to std::vector,
2380 adjust to vector change.
2381 * exec.c (section_table_available_memory): Return vector, remove
2383 (section_table_read_available_memory): Adjust to std::vector
2385 * remote.c (remote_read_bytes): Adjust to std::vector
2387 * tracepoint.h (traceframe_available_memory): Change parameter
2388 type to std::vector.
2389 * tracepoint.c (traceframe_available_memory): Change parameter
2390 type to std::vector, adjust.
2391 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
2393 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2394 unittests/memrange-selftests.c.
2395 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
2396 * gdb/unittests/memrange-selftests.c: New file.
2398 2017-10-16 Pedro Alves <palves@redhat.com>
2400 * elfread.c (probe_key_free): Rename range-for variable.
2401 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
2402 (find_probe_by_pc, collect_probes): Rename range-for variable.
2404 2017-10-16 Yao Qi <yao.qi@linaro.org>
2406 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
2407 * features/tic6x-c62x.c: Remove.
2408 * features/tic6x-c64x-linux.c: Remove.
2409 * features/tic6x-c64x.c: Remove.
2410 * features/tic6x-c64xp-linux.c: Remove.
2411 * features/tic6x-c64xp.c: Remove.
2412 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
2413 initialize_tdesc_tic6x_*_linux functions.
2414 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
2415 initialize_tdesc_tic6x_* functions.
2417 2017-10-16 Yao Qi <yao.qi@linaro.org>
2419 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
2421 * regformats/tic6x-c62x.dat: Remove.
2422 * regformats/tic6x-c64x.dat: Remove.
2423 * regformats/tic6x-c64xp.dat: Remove.
2425 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
2427 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
2428 (the !HAVE_LIBEXPAT version).
2430 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2432 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
2435 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2437 * target.h: Include tracepoint.h.
2438 (enum trace_find_type): Move to tracepoint.h.
2439 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
2440 * tracepoint.h: Don't include target.h
2441 (enum trace_find_type): Move from target.h.
2442 (parse_traceframe_info): Return a unique ptr.
2443 * tracepoint.c (current_traceframe_info): Change type to unique
2445 (free_traceframe_info): Remove.
2446 (clear_traceframe_info): Don't manually free
2447 current_traceframe_info.
2448 (free_result): Remove.
2449 (parse_traceframe_info): Return a unique ptr.
2450 (get_traceframe_info): Adjust to unique ptr.
2451 * ctf.c (ctf_traceframe_info): Return a unique ptr.
2452 * remote.c (remote_traceframe_info): Return a unique ptr.
2453 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
2455 * target-debug.h (target_debug_print_traceframe_info_up): New
2457 * target-delegates.c: Regenerate.
2459 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2461 * memrange.h (struct mem_range): Add constructors.
2462 * tracepoint.h (struct traceframe_info) <memory>: Change type to
2463 std::vector<mem_range>.
2464 * tracepoint.c (free_traceframe_info): Don't manually free
2466 (traceframe_info_start_memory): Adjust to vector change.
2467 (traceframe_available_memory): Likewise.
2468 * tracefile-tfile.c (build_traceframe_info): Likewise.
2469 * ctf.c (ctf_traceframe_info): Likewise.
2471 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2473 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
2475 * tracepoint.c (free_traceframe_info): Deallocate with delete.
2476 (traceframe_info_start_tvar): Adjust to vector change.
2477 (parse_traceframe_info): Allocate with new.
2478 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
2480 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
2482 tfile_traceframe_info): Allocate with new.
2483 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
2486 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2488 * tracepoint.c (traceframe_info): Rename to...
2489 (current_traceframe_info): ...this.
2490 (clear_traceframe_info): Adjust.
2491 (get_traceframe_info): Adjust.
2493 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2495 * nat/linux-osdata.c: Include algorithm.
2496 (compare_processes): Remove.
2497 (struct pid_pgid_entry): New struct.
2498 (linux_xfer_osdata_processgroups): Use std::vector instead of
2501 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2503 * objfiles.h: Don't include symfile.h.
2504 (struct partial_symbol): Remove forward-declaration.
2505 (struct objfile) <global_psymbols, static_psymbols>: Change type
2506 to std::vector<partial_symbol *>.
2507 * objfiles.c (objfile::objfile): Don't memset those fields.
2508 (objfile::~objfile): Don't free those fields.
2509 * psympriv.h (struct psymbol_allocation_list): Remove
2510 forward-declaration.
2511 (add_psymbol_to_list): Change psymbol_allocation_list parameter
2513 (start_psymtab_common): Change parameters to std::vector.
2514 * psymtab.c: Include algorithm.
2515 (require_partial_symbols): Call shrink_to_fit.
2516 (find_pc_sect_psymbol): Adjust to vector change.
2517 (match_partial_symbol): Likewise.
2518 (lookup_partial_symbol): Likewise.
2519 (psym_relocate): Likewise.
2520 (dump_psymtab): Likewise.
2521 (recursively_search_psymtabs): Likewise.
2522 (compare_psymbols): Remove.
2523 (sort_pst_symbols): Adjust to vector change.
2524 (start_psymtab_common): Likewise.
2525 (end_psymtab_common): Likewise.
2526 (psymbol_bcache_full): De-constify return value.
2527 (add_psymbol_to_bcache): Likewise.
2528 (extend_psymbol_list): Remove.
2529 (append_psymbol_to_list): Adjust to vector change.
2530 (add_psymbol_to_list): Likewise.
2531 (init_psymbol_list): Likewise.
2532 (maintenance_info_psymtabs): Likewise.
2533 (maintenance_check_psymtabs): Likewise.
2534 * symfile.h (struct psymbol_allocation_list): Remove.
2535 * symfile.c (reread_symbols): Adjust to vector change.
2536 * dbxread.c (start_psymtab): Change type of parameters.
2537 (dbx_symfile_read): Adjust to vector change.
2538 (read_dbx_symtab): Likewise.
2539 (start_psymtab): Change type of parameters.
2540 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
2541 (create_partial_symtab): Likewise.
2542 (add_partial_symbol): Likewise.
2543 (write_one_signatured_type): Likewise.
2544 (recursively_write_psymbols): Likewise.
2545 * mdebugread.c (parse_partial_symbols): Likewise.
2546 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
2547 (scan_xcoff_symtab): Adjust to vector change.
2548 (xcoff_initial_scan): Likewise.
2550 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
2552 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
2554 2017-10-13 Yao Qi <yao.qi@linaro.org>
2556 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
2557 Remove s390x-*-expedite, add s390x-expedite.
2559 2017-10-13 Yao Qi <yao.qi@linaro.org>
2561 * features/s390-gs-linux64.c: Regenerated.
2562 * features/s390x-gs-linux64.c: Regenerated.
2564 2017-10-13 Tom Tromey <tom@tromey.com>
2566 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2567 * solib.c (update_solib_list, reload_shared_libraries_1): Use
2569 * symfile.c (symbol_file_add_with_addrs): Use new.
2570 (symbol_file_add_separate): Update comment.
2571 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
2572 * jit.c (jit_object_close_impl): Use new.
2573 (jit_unregister_code): Use delete.
2574 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
2575 (~objfile): Rename from free_objfile.
2576 (free_objfile_separate_debug, do_free_objfile_cleanup)
2577 (free_all_objfiles, objfile_purge_solibs): Use delete.
2578 * objfiles.h (struct objfile): Add constructor and destructor.
2579 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
2580 (allocate_objfile, free_objfile): Don't declare.
2581 (struct objstats): Add initializers.
2583 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2585 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
2586 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
2587 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
2588 * gdbarch.h: Regenerate.
2589 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
2591 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
2592 (i386_displaced_step_fixup): Adjust comment.
2593 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
2595 2017-10-12 Tom Tromey <tom@tromey.com>
2597 * prologue-value.h (pv_area::store_would_trash): Return bool.
2598 (pv_area::find_reg): Likewise.
2599 * prologue-value.c (pv_area::store_would_trash): Return bool.
2600 (pv_area::find_reg): Likewise.
2602 2017-10-12 Tom Tromey <tom@tromey.com>
2604 * s390-linux-tdep.c (s390_store, s390_load)
2605 (s390_check_for_saved, s390_analyze_prologue): Update.
2606 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
2607 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
2608 * prologue-value.h (class pv_area): Move from prologue-value.c.
2609 Change names of members. Add constructor, destructor, member
2611 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
2612 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
2613 (pv_area_fetch, pv_area_scan): Don't declare.
2614 * prologue-value.c (struct pv_area::area_entry): Now member of
2616 (struct pv_area): Move to prologue-value.h.
2617 (pv_area::pv_area): Rename from make_pv_area.
2618 (pv_area::~pv_area): Rename from free_pv_area.
2619 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
2620 (clear_entries, find_entry, overlaps, store_would_trash, store)
2621 (fetch, find_reg, scan): Now member of pv_area.
2622 Remove "area" argument. Update.
2623 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
2625 * mn10300-tdep.c (push_reg, check_for_saved)
2626 (mn10300_analyze_prologue): Update.
2627 * mep-tdep.c (is_arg_spill, check_for_saved)
2628 (mep_analyze_prologue): Update.
2629 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
2630 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
2631 (m32c_is_struct_return, m32c_analyze_prologue): Update.
2632 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
2634 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
2635 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
2637 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2639 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
2640 * linux-nat.c (linux_nat_delete_thread): New variable.
2641 (lwp_free): Invoke linux_nat_delete_thread if set.
2642 (linux_nat_set_delete_thread): New function.
2643 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
2644 thread delete callback.
2645 * arm-linux-nat.c (arm_linux_delete_thread): New function.
2646 (_initialize_arm_linux_nat): Assign thread delete callback.
2647 * s390-linux-nat.c (s390_delete_thread): New function.
2648 (_initialize_s390_nat): Assign thread delete callback.
2649 * x86-linux-nat.c (x86_linux_add_target): Likewise.
2650 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
2652 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
2654 * nat/x86-linux.c (x86_linux_delete_thread): New function.
2655 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
2657 2017-10-09 Tom Tromey <tom@tromey.com>
2659 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
2661 * tui/tui-layout.c (enum tui_status): Use std::string.
2663 2017-10-11 Tom Tromey <tom@tromey.com>
2665 * gdbthread.h (thread_command): Constify.
2666 * inferior.h (detach_command): Constify.
2667 * top.h (set_history, show_history): Constify.
2668 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
2669 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
2670 * bsd-kvm.c (bsd_kvm_cmd): Constify.
2671 * printcmd.c (set_command): Constify.
2672 (non_const_set_command): New function.
2673 * dcache.c (set_dcache_command, show_dcache_command): Constify.
2674 * breakpoint.c (enable_command, disable_command, delete_command)
2675 (catch_command, tcatch_command, set_breakpoint_cmd)
2676 (show_breakpoint_cmd): Constify.
2677 * macrocmd.c (macro_command): Constify.
2678 * infcmd.c (unset_command, kill_command, detach_command)
2679 (info_proc_cmd): Constify.
2680 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
2681 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
2682 (info_auto_load_cmd): Constify.
2683 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
2684 (unset_tdesc_cmd): Constify.
2685 * ada-lang.c (set_ada_command, show_ada_command)
2686 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
2687 * guile/guile.c (set_guile_command, show_guile_command)
2688 (info_guile_command): Constify.
2689 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
2691 * skip.c (skip_command): Constify.
2692 * compile/compile.c (_initialize_compile): Constify.
2693 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
2694 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
2695 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
2696 (maint_btrace_pt_show_cmd): Constify.
2697 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
2699 * python/python.c (user_show_python, user_set_python): Constify.
2700 * mips-tdep.c (set_mips_command, show_mips_command)
2701 (set_mipsfpu_command): Constify.
2702 * record-btrace.c (cmd_record_btrace_start)
2703 (cmd_set_record_btrace, cmd_show_record_btrace)
2704 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
2705 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
2706 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
2708 * symfile.c (overlay_command): Constify.
2709 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
2710 * cli/cli-logging.c (set_logging_command, show_logging_command):
2712 * cli/cli-dump.c (dump_command, append_command)
2713 (srec_dump_command, ihex_dump_command, verilog_dump_command)
2714 (tekhex_dump_command, binary_dump_command)
2715 (binary_append_command): Constify.
2716 * cli/cli-decode.c (struct cmd_list_element): Change type of
2718 * cli/cli-cmds.c (info_command, show_command, set_debug)
2719 (show_debug): Constify.
2720 (show_command): Add non-const overload.
2721 * top.c (set_history, show_history): Constify.
2722 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
2723 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
2724 * target.c (target_command): Constify.
2725 * sparc64-tdep.c (info_adi_command): Constify.
2726 * record-full.c (cmd_record_full_start): Constify.
2727 (set_record_full_command): Constify. Fix typo.
2728 (show_record_full_command): Constify.
2729 * thread.c (thread_command, thread_apply_command): Constify.
2730 * memattr.c (dummy_cmd): Constify.
2731 * value.c (function_command): Constify.
2732 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
2733 * probe.c (info_probes_command): Constify.
2734 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
2735 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
2736 (show_thread_cmd, set_thread_default_cmd)
2737 (show_thread_default_cmd): Constify.
2738 (check_empty): Constify.
2739 * tracepoint.c (tfind_command): Constify.
2740 * cp-support.c (maint_cplus_command): Constify.
2741 * windows-tdep.c (info_w32_command): Constify.
2742 * record.c (cmd_record_start, set_record_command)
2743 (show_record_command, info_record_command, cmd_record_goto):
2745 * ravenscar-thread.c (set_ravenscar_command)
2746 (show_ravenscar_command): Constify.
2747 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
2749 (add_internal_problem_command): Remove casts.
2750 * arc-tdep.c (maintenance_print_arc_command): Constify.
2751 * valprint.c (set_print, show_print, set_print_raw)
2752 (show_print_raw): Constify.
2753 * maint.c (maintenance_command, maintenance_info_command)
2754 (maintenance_print_command, maintenance_set_cmd)
2755 (maintenance_show_cmd, set_per_command_cmd)
2756 (show_per_command_cmd, maintenance_check_command): Constify.
2757 * language.c (set_check, show_check): Constify.
2758 * typeprint.c (show_print_type, set_print_type): Constify.
2759 * go32-nat.c (go32_info_dos_command): Constify.
2761 2017-10-11 Tom Tromey <tom@tromey.com>
2763 * breakpoint.c (prepare_re_set_context): Remove.
2764 (breakpoint_re_set_one): Update. Don't use cleanups.
2765 (breakpoint_re_set): Use scoped_restore, std::string, and
2766 scoped_restore_current_language.
2768 2017-10-11 Tom Tromey <tom@tromey.com>
2770 * breakpoint.c (commands_command_1): Use std::string.
2771 (cleanup_executing_breakpoints): Remove.
2772 (bpstat_do_actions_1): Use scoped_restore.
2773 (bpstat_check_watchpoint): Use std::string.
2774 (decode_static_tracepoint_spec): Likewise.
2775 (break_range_command): Likewise.
2776 (watch_command_1): Likewise.
2777 (compare_breakpoints): Change argument types.
2778 (clear_command): Use std::vector.
2779 (cleanup_executing_breakpoints): Remove.
2780 (update_global_location_list): Use unique_xmalloc_ptr.
2781 (strace_command): Remove unused declaration.
2783 2017-10-11 John Baldwin <jhb@FreeBSD.org>
2785 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
2786 * NEWS: Mention new FreeBSD/arm native configuration.
2787 * configure.host: Add arm*-*-freebsd*.
2788 * configure.nat: Likewise.
2789 * arm-fbsd-nat.c: New file.
2791 2017-10-11 John Baldwin <jhb@FreeBSD.org>
2793 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
2794 (ALLDEPFILES): Add arm-fbsd-tdep.c.
2795 * NEWS: Mention new FreeBSD/arm target.
2796 * configure.tgt: Add arm*-*-freebsd*.
2797 * arm-fbsd-tdep.c: New file.
2798 * arm-fbsd-tdep.h: New file.
2800 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2802 * linux-tdep.c (linux_make_corefile_notes): Remove call to
2803 `gdbarch_elfcore_write_linux_prpsinfo'.
2804 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
2806 (elf_internal_linux_prpsinfo): Remove declaration.
2807 * gdbarch.h: Regenerate.
2808 * gdbarch.c: Regenerate.
2810 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2812 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
2813 `set_gdbarch_elfcore_write_linux_prpsinfo'.
2815 2017-10-11 Pedro Alves <palves@redhat.com>
2817 * breakpoint.c (reattach_breakpoints): Delete.
2818 * breakpoint.h (reattach_breakpoints): Delete.
2820 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
2822 * symfile.c (registered_sym_fns): Make struct, not typedef.
2823 (DEF_VEC_O (registered_sym_fns)): Remove.
2824 (symtab_fns): Change type to std::vector.
2825 (add_symtab_fns): Adjust.
2826 (find_sym_fns): Adjust.
2828 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
2830 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
2831 * arc-tdep.h (arc_arch_is_em): New function.
2832 (arc_arch_is_hs): Likewise.
2834 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
2836 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
2837 parentheses in the declaration.
2838 (macro_lookup_inclusion): Likewise.
2839 (macro_lookup_definition): Likewise.
2840 * p-lang.h (pascal_builtin_types): Likewise.
2841 * tui/tui-data.c (tui_win_list): Likewise.
2842 * tui/tui-data.h (tui_win_list): Likewise.
2843 * utils.h (make_cleanup_free_section_addr_info): Likewise.
2845 2017-10-11 Mark Rages <markrages@gmail.com>
2847 * target-memory.c (block_boundaries): Fix for block address not
2848 aligned on block size.
2850 2017-10-10 Pedro Alves <palves@redhat.com>
2851 Tom Tromey <tom@tromey.com>
2853 * breakpoint.c (struct captured_breakpoint_query_args)
2854 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
2855 (print_breakpoint): New.
2856 * breakpoint.h (print_breakpoint): Declare.
2857 * common/common-exceptions.h (enum return_reason): Remove
2858 references to catch_exceptions.
2859 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
2861 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
2862 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
2864 * gdbthread.h (thread_select): Declare.
2865 * mi/mi-cmd-break.c: Don't include gdb.h.
2866 (breakpoint_notify): Use print_breakpoint.
2867 * mi/mi-cmd-catch.c: Don't include gdb.h.
2868 * mi/mi-interp.c: Don't include gdb.h.
2869 (mi_print_breakpoint_for_event): New.
2870 (mi_breakpoint_created, mi_breakpoint_modified): Use
2871 mi_print_breakpoint_for_event.
2872 * mi/mi-main.c: Don't include gdb.h.
2873 (mi_cmd_thread_select): Parse the global thread ID here. Use
2874 thread_select instead of gdb_thread_select.
2875 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
2876 of using gdb_list_thread_ids.
2877 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
2879 (remote_fileio_request): Use TRY/CATCH instead of
2881 * symfile-mem.c (struct symbol_file_add_from_memory_args)
2882 (symbol_file_add_from_memory_wrapper): Delete.
2883 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
2884 * thread.c: Don't include gdb.h.
2885 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
2886 (thread_alive): Use thread_select.
2887 (do_captured_thread_select): Delete, parts salvaged as ...
2888 (thread_select): ... this new function.
2889 (gdb_thread_select): Delete.
2891 2017-10-10 Pedro Alves <palves@redhat.com>
2892 Tom Tromey <tom@tromey.com>
2894 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
2896 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
2897 No longer macros. Instead ...
2898 (enum wp_check_result): They're now values of this new
2900 (watchpoint_check): Change return type to wp_check_result and
2901 parameter type to bpstat.
2902 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
2903 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
2904 catch_errors. Reverse logic of watchpoint_check call.
2905 (breakpoint_re_set_one): Now returns void and takes a breakpoint
2906 pointer as parameter.
2907 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
2908 * common/common-exceptions.c (throw_exception_sjlj): Update
2909 comments to avoid mentioning catch_errors.
2910 * exceptions.c (catch_errors): Delete.
2911 * exceptions.h: Update comments to avoid mentioning catch_errors.
2912 (catch_errors_ftype, catch_errors): Delete.
2913 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
2914 (hook_stop_stub): Delete.
2915 (restore_selected_frame): Change return type to void, and
2916 parameter type to const frame_id &.
2917 (restore_infcall_control_state): Use TRY/CATCH instead of
2919 * main.c (captured_command_loop): Return void and remove
2920 parameter. Remove references to catch_errors.
2921 (captured_main): Use TRY/CATCH instead of catch_errors.
2922 * objc-lang.c (objc_submethod_helper_data)
2923 (find_objc_msgcall_submethod_helper): Delete.
2924 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
2926 * record-full.c (record_full_message): Return void.
2927 (record_full_message_args, record_full_message_wrapper): Delete.
2928 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
2929 instead of catch_errors.
2930 * solib-aix.c (solib_aix_open_symbol_file_object): Change
2931 parameter type to int.
2932 * solib-darwin.c (open_symbol_file_object): Ditto.
2933 * solib-dsbt.c (open_symbol_file_object): Ditto.
2934 * solib-frv.c (open_symbol_file_object): Ditto.
2935 * solib-svr4.c (open_symbol_file_object): Ditto.
2936 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
2937 * solib.c (update_solib_list): Use TRY/CATCH instead of
2939 * solist.h (struct target_so_ops) <open_symbol_file_object>:
2941 * symmisc.c (struct print_symbol_args): Remove.
2942 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
2943 (print_symbol): Change type.
2944 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
2945 and remove parameters.
2946 (catch_errors): New.
2947 (get_windows_debug_event): Adjust.
2949 2017-10-09 Tom Tromey <tom@tromey.com>
2951 * mi/mi-main.c (free_splay_tree): Remove.
2952 (list_available_thread_groups): Use splay_tree_up.
2953 * common/gdb_splay_tree.h: New file.
2955 2017-10-09 Tom Tromey <tom@tromey.com>
2957 * mi/mi-main.c (do_nothing): Remove.
2958 (list_available_thread_groups): Update.
2960 2017-10-09 Pedro Alves <palves@redhat.com>
2962 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
2963 reading registers when switching context.
2965 2017-10-09 John Baldwin <jhb@FreeBSD.org>
2967 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
2968 (fbsd_convert_siginfo): Likewise.
2969 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
2971 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
2973 * configure.ac (try_guile_versions): Remove guile-2.2.
2974 * configure: Regenerate.
2976 2017-10-09 Tom Tromey <tom@tromey.com>
2978 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
2979 (COMPILE.pre): Use $(CXX).
2981 2017-10-09 Pedro Alves <palves@redhat.com>
2983 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
2985 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2986 * cp-support.h (cp_remove_params): Now returns a
2987 gdb::unique_xmalloc_ptr.
2988 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
2989 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
2990 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
2991 returning a gdb::unique_xmalloc_ptr.
2992 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2993 * stack.c (find_frame_funname): Adjust to cp_remove_params
2994 returning a gdb::unique_xmalloc_ptr.
2996 2017-10-08 Tom Tromey <tom@tromey.com>
2998 * dwarf2read.c (dwarf2_get_dwz_file): Use
2999 gdb::unique_xmalloc_ptr.
3000 (find_slot_in_mapped_hash): Likewise.
3001 (dwarf2_physname): Likewise.
3002 (create_dwo_unit_in_dwp_v1): Use std::string.
3003 (create_dwo_unit_in_dwp_v2): Likewise.
3004 (lookup_dwo_cutu): Likewise.
3005 (inherit_abstract_dies): Use std::vector.
3006 (read_array_type): Likewise.
3007 (dwarf_decode_macros): Remove unused declaration.
3008 (unsigned_int_compar): Remove.
3009 (dwarf2_build_psymtabs_hard): Use scoped_restore.
3010 (psymtabs_addrmap_cleanup): Remove.
3012 2017-10-08 Tom Tromey <tom@tromey.com>
3014 * frame-unwind.c (frame_unwind_try_unwinder): Update.
3015 * frame.h (frame_cleanup_after_sniffer): Declare.
3016 (frame_prepare_for_sniffer): Return void.
3017 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
3019 (frame_prepare_for_sniffer): Return void.
3021 2017-10-08 Tom Tromey <tom@tromey.com>
3023 * utils.h (make_cleanup_value_free): Remove.
3024 * utils.c (do_value_free, struct cleanup): Remove.
3025 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
3027 * value.h (struct value_deleter): New.
3028 (gdb_value_up): New typedef.
3030 2017-10-08 Tom Tromey <tom@tromey.com>
3032 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
3033 (make_cleanup_free_search_symbols): Remove.
3034 (search_symbols): Return std::vector.
3035 (symbol_search::compare_search_syms): Now member of
3036 symbol_search. Change arguments.
3037 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
3038 (symtab_symbol_info, rbreak_command): Update.
3039 * symtab.h (struct symbol_search) <next>: Remove.
3041 (symbol_search::operator<): New function.
3042 (symbol_search::operator==): New function.
3043 (search_symbols): Remove std::vector.
3044 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
3045 (symbol_search::compare_search_syms): Declare.
3047 2017-10-06 Yao Qi <yao.qi@linaro.org>
3049 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
3050 arch/aarch64-insn.o.
3052 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
3054 2017-10-06 Yao Qi <yao.qi@linaro.org>
3056 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
3057 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
3058 arch/arm-linux.o respectively.
3059 * configure.tgt: Likewise.
3061 2017-10-06 Yao Qi <yao.qi@linaro.org>
3063 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
3064 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
3066 2017-10-06 Pedro Alves <palves@redhat.com>
3068 * windows-nat.c: Include <algorithm>.
3070 2017-10-06 Yao Qi <yao.qi@linaro.org>
3072 * configure.tgt (i386_tobjs): New variable.
3073 (amd64_tobjs): New variable.
3074 Set $cpu_obs and $os_obs.
3076 2017-10-06 Yao Qi <yao.qi@linaro.org>
3078 * Makefile.in (CONFIG_SRC_SUBDIR): New.
3079 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
3080 (clean): Remove object files and dependency files.
3081 (distclean): Remove the directory.
3082 * configure.ac: Invoke AC_CONFIG_COMMANDS.
3083 * configure: Re-generated.
3084 * configure.tgt: Replace amd64.o with arch/amd64.o.
3086 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
3089 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
3092 2017-10-05 Pedro Alves <palves@redhat.com>
3094 * linux-nat.c (linux_child_follow_fork): When following the parent
3095 and detaching the child, consult the parent thread's architecture
3096 instead of the child's.
3098 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3100 * ax.h: Do not include "doublest.h".
3101 (union agent_val): Remove.
3103 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3105 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
3106 (decimal_to_string): Return std::string object.
3107 (decimal_from_string): Accept std::string object. Return bool.
3108 (decimal_from_integral, decimal_from_doublest): Remove.
3109 (decimal_from_longest): Add prototype.
3110 (decimal_from_ulongest): Likewise.
3111 (decimal_to_longest): Likewise.
3112 (decimal_from_doublest): Likewise.
3113 * dfp.c: Do not include "gdbtypes.h" or "value.h".
3114 (MAX_DECIMAL_STRING): Move here.
3115 (decimal_to_string): Return std::string object.
3116 (decimal_from_string): Accept std::string object. Return bool.
3117 (decimal_from_integral): Remove, replace by ...
3118 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
3119 (decimal_to_longest): New function.
3120 (decimal_from_floating): Remove, replace by ...
3121 (decimal_from_doublest): ... this new function.
3122 (decimal_to_doublest): Update to new decimal_to_string interface.
3124 * value.c (unpack_long): Use decimal_to_longest.
3125 * valops.c (value_cast): Use decimal_from_doublest instead of
3126 decimal_from_floating. Use decimal_from_[u]longest isntead of
3127 decimal_from_integral.
3128 * valarith.c (value_args_as_decimal): Likewise.
3129 * valprint.c (print_decimal_floating): Update to new
3130 decimal_to_string interface.
3131 * printcmd.c (printf_decfloat): Likewise.
3132 * c-exp.y (parse_number): Update to new decimal_from_string interface.
3134 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3136 * doublest.h: Do not include "floatformat.h". Remove stale comments.
3137 * gdbtypes.c: Include "floatformat.h".
3138 * value.c: Likewise.
3139 * m68k-tdep.c: Likewise.
3141 * findvar.c: Do not include "floatformat.h".
3142 * amd64-darwin-tdep.c: Likewise.
3143 * arm-linux-tdep.c: Likewise.
3144 * i386-darwin-tdep.c: Likewise.
3145 * i387-tdep.c: Likewise.
3146 * m68k-linux-tdep.c: Likewise.
3147 * mep-tdep.c: Likewise.
3148 * mips-tdep.c: Likewise.
3149 * nios2-tdep.c: Likewise.
3150 * s390-linux-tdep.c: Likewise.
3151 * sparc-obsd-tdep.c: Likewise.
3152 * sparc-tdep.c: Likewise.
3153 * sparc64-tdep.c: Likewise.
3154 * spu-tdep.c: Likewise.
3155 * tic6x-tdep.c: Likewise.
3156 * tilegx-tdep.c: Likewise.
3157 * vax-tdep.c: Likewise.
3158 * xstormy16-tdep.c: Likewise.
3159 * xtensa-tdep.c: Likewise.
3161 * top.c: Do not include "doublest.h".
3162 * aarch64-tdep.c: Likewise.
3163 * alpha-tdep.c: Likewise.
3164 * arm-linux-tdep.c: Likewise.
3165 * m68k-linux-tdep.c: Likewise.
3166 * tilegx-tdep.c: Likewise.
3167 * xstormy16-tdep.c: Likewise.
3169 2017-10-05 John Baldwin <jhb@FreeBSD.org>
3171 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
3172 (mipsn32_fbsd_sigframe): Define.
3173 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
3174 for FreeBSD/mipsn32.
3176 2017-10-05 John Baldwin <jhb@FreeBSD.org>
3178 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
3181 2017-10-05 Tristan Gingold <tgingold@free.fr>
3183 * MAINTAINERS (Misc): Update my email address.
3185 2017-10-04 Pedro Alves <palves@redhat.com>
3187 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
3188 it instead of target_gdbarch.
3189 (get_remote_state, get_remote_packet_size): Adjust
3190 get_remote_arch_state calls, passing down target_gdbarch
3192 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
3193 'gdbarch' and use it instead of target_gdbarch.
3194 (get_memory_packet_size): Adjust get_remote_arch_state calls,
3195 passing down target_gdbarch explicitly.
3196 (struct stop_reply) <arch>: New field.
3197 (remote_parse_stop_reply): Use the stopped thread's architecture,
3198 not the current inferior's. Save the architecture in the
3200 (process_stop_reply): Use the stop reply's architecture.
3201 (process_g_packet, remote_fetch_registers)
3202 (remote_prepare_to_store, store_registers_using_G)
3203 (remote_store_registers): Adjust get_remote_arch_state calls,
3204 using the regcache's architecture.
3205 (remote_get_trace_status): Adjust get_remote_arch_state calls,
3206 passing down target_gdbarch explicitly.
3207 * spu-multiarch.c (spu_thread_architecture): Defer to the target
3208 beneath instead of calling target_gdbarch.
3209 * target.c (default_thread_architecture): Use the specified
3210 inferior's architecture, instead of the current inferior's
3211 architecture (via target_gdbarch).
3213 2017-10-04 Pedro Alves <palves@redhat.com>
3215 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
3217 (regcache_print): Handle !target_has_registers here instead.
3219 2017-10-04 Pedro Alves <palves@redhat.com>
3221 * frame.c (create_test_frame): Delete.
3222 * frame.h (create_test_frame): Delete.
3223 * gdbarch-selftests.c: Include gdbthread.h and target.h.
3224 (class regcache_test): Delete.
3225 (test_target_has_registers, test_target_has_stack)
3226 (test_target_has_memory, test_target_prepare_to_store)
3227 (test_target_store_registers): New functions.
3228 (test_target_ops): New class.
3229 (register_to_value_test): Error out if there's already a
3230 process_stratum (or higher) target pushed. Create a fuller mock
3231 environment, with mock target_ops, inferior, address space, thread
3233 * progspace.c (struct address_space): Move to ...
3234 * progspace.h (struct address_space): ... here.
3235 * regcache.h (regcache::~regcache, regcache::raw_write)
3236 [GDB_SELF_TEST]: No longer virtual.
3238 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
3240 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
3242 2017-10-04 Pedro Alves <palves@redhat.com>
3244 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
3245 out of 'between TRY and CATCH'.
3247 2017-10-04 Pedro Alves <palves@redhat.com>
3249 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
3250 * common/common-exceptions.h (TRY): Open an outermost scope.
3251 Expand intro comment.
3253 (END_CATCH): Close the outermost scope.
3254 * completer.c (complete_line_internal): Add missing END_CATCH.
3256 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3258 * NEWS (Changes since GDB 8.0): Add entry about new
3259 'set-cwd-on-gdbserver' feature.
3260 (New remote packets): Add entry for QSetWorkingDir.
3261 * common/common-inferior.h (set_inferior_cwd): New prototype.
3262 * infcmd.c (set_inferior_cwd): Remove "static".
3263 (show_cwd_command): Expand text to include remote debugging.
3264 * remote.c: Add PACKET_QSetWorkingDir.
3265 (remote_protocol_features) <QSetWorkingDir>: New entry for
3266 PACKET_QSetWorkingDir.
3267 (extended_remote_set_inferior_cwd): New function.
3268 (extended_remote_create_inferior): Call
3269 "extended_remote_set_inferior_cwd".
3270 (_initialize_remote): Call "add_packet_config_cmd" for
3273 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3275 * NEWS (New commands): Mention "set/show cwd".
3276 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
3277 "cd" command's help text.
3278 * common/common-inferior.h (get_inferior_cwd): New prototype.
3279 * infcmd.c (inferior_cwd_scratch): New global variable.
3280 (set_inferior_cwd): New function.
3281 (get_inferior_cwd): Likewise.
3282 (set_cwd_command): Likewise.
3283 (show_cwd_command): Likewise.
3284 (_initialize_infcmd): Add "set/show cwd" commands.
3285 * inferior.h (class inferior) <cwd>: New field.
3286 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
3287 (fork_inferior): Change inferior's cwd before its execution.
3288 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
3291 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3293 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
3294 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
3295 (COMMON_OBS): Add gdb_tilde_expand.o.
3296 * common/gdb_tilde_expand.c: New file.
3297 * common/gdb_tilde_expand.h: Likewise.
3299 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
3301 * gdbarch.sh (objfile): Remove duplicate declaration.
3302 * gdbarch.h: Regenerate.
3304 2017-10-03 Tom Tromey <tom@tromey.com>
3306 * utils.c (internal_vproblem): Use string_vprintf.
3308 2017-10-03 Tom Tromey <tom@tromey.com>
3310 * printcmd.c (info_symbol_command): Use std::string.
3312 2017-10-03 Tom Tromey <tom@tromey.com>
3314 * top.c (gdb_safe_append_history): Use std::string.
3316 2017-10-03 Tom Tromey <tom@tromey.com>
3318 * event-top.c (stdin_event_handler): Update.
3319 * main.c (captured_main_1): Update.
3320 * top.h (make_delete_ui_cleanup): Remove.
3321 (struct ui): Add constructor and destructor.
3322 (new_ui, delete_ui): Remove.
3323 * top.c (make_delete_ui_cleanup): Remove.
3324 (new_ui_command): Use std::unique_ptr.
3325 (delete_ui_cleanup): Remove.
3326 (ui::ui): Rename from new_ui. Update.
3328 (ui::~ui): Rename from delete_ui. Update.
3330 2017-10-03 Tom Tromey <tom@tromey.com>
3332 * symfile.c (load_progress): Use gdb::byte_vector.
3334 2017-10-03 Tom Tromey <tom@tromey.com>
3336 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
3338 * printcmd.c (x_command): Remove unused declaration.
3339 * symfile.c (symbol_file_command): Remove unused declaration.
3341 2017-10-03 Tom Tromey <tom@tromey.com>
3343 * utils.c (internal_vproblem): Use std::string.
3344 (defaulted_query): Likewise.
3346 2017-10-03 Tom Tromey <tom@tromey.com>
3348 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
3349 * top.c (execute_command_to_string): Update.
3350 * utils.c (make_cleanup_restore_page_info): Remove.
3351 (do_restore_page_info_cleanup): Remove.
3352 (set_batch_flag_and_restore_page_info):
3354 (make_cleanup_restore_page_info): Remove.
3355 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
3356 (~set_batch_flag_and_restore_page_info): New
3357 (make_cleanup_restore_uinteger): Remove.
3358 (make_cleanup_restore_integer): Remove.
3359 (struct restore_integer_closure): Remove.
3360 (restore_integer): Remove.
3361 * utils.h (struct set_batch_flag_and_restore_page_info): New
3363 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
3364 (make_cleanup_restore_page_info): Remove.
3365 (make_cleanup_restore_uinteger) Remove.
3366 (make_cleanup_restore_integer) Remove.
3368 2017-10-03 Tom Tromey <tom@tromey.com>
3370 * record-full.h (record_full_gdb_operation_disable_set): Return
3371 scoped_restore_tmpl<int>.
3372 * infrun.c (adjust_pc_after_break): Update.
3373 (handle_signal_stop): Update.
3374 * record-full.c (record_full_gdb_operation_disable_set): Return
3375 scoped_restore_tmpl<int>.
3376 (record_full_wait_1, record_full_insert_breakpoint)
3377 (record_full_remove_breakpoint, record_full_save)
3378 (record_full_goto_insn): Update.
3380 2017-10-02 Tom Tromey <tom@tromey.com>
3383 * rust-lang.c (rust_val_print_str): New function.
3384 (val_print_struct): Call it.
3385 (rust_subscript): Preserve name of slice type.
3387 2017-10-02 Tom Tromey <tom@tromey.com>
3389 * rust-lang.c (rust_subscript): Handle slices in
3390 EVAL_AVOID_SIDE_EFFECTS case.
3392 2017-10-02 Tom Tromey <tom@tromey.com>
3394 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
3396 2017-10-02 Tom Tromey <tom@tromey.com>
3398 * rust-lang.h (rust_slice_type): Add "extern".
3400 2017-10-02 Tom Tromey <tom@tromey.com>
3401 Pedro Alves <palves@redhat.com>
3403 * ada-lang.h (ada_exc_info::operator<): Make const.
3404 (ada_exc_info::operator==): Make const.
3405 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
3408 2017-09-29 Tom Tromey <tom@tromey.com>
3410 * target.c (read_whatever_is_readable): Change type of "result".
3412 (free_memory_read_result_vector): Remove.
3413 (read_memory_robust): Change return type. Update.
3414 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
3415 bin2hex, std::string.
3416 * target.h (memory_read_result_s): Remove typedef.
3417 (free_memory_read_result_vector): Remove.
3418 (read_memory_robust): Return std::vector.
3420 2017-09-29 Tom Tromey <tom@tromey.com>
3422 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
3424 2017-09-29 Tom Tromey <tom@tromey.com>
3426 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
3427 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
3428 operator< and operator==.
3429 (ada_exceptions_list): Return a std::vector.
3430 * ada-lang.c (ada_exc_info::operator<): Rename from
3431 compare_ada_exception_info.
3432 (ada_exc_info::operator==): New.
3433 (sort_remove_dups_ada_exceptions_list): Change type of
3435 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
3436 (ada_add_global_exceptions): Likewise.
3437 (ada_exceptions_list_1): Return a std::vector.
3438 (ada_exceptions_list): Likewise.
3440 2017-09-29 Tom Tromey <tom@tromey.com>
3442 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
3444 (print_one_inferior): Update.
3445 (free_vector_of_ints): Remove.
3446 (list_available_thread_groups): Change "ids" to std::set.
3447 (mi_cmd_list_thread_groups): Update.
3448 (struct collect_cores_data) <core>: Now a std::set.
3449 (collect_cores): Update.
3451 (print_one_inferior): Update.
3453 2017-09-29 Tom Tromey <tom@tromey.com>
3455 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
3456 (mi_execute_async_cli_command): Likewise.
3457 (mi_cmd_trace_frame_collected): Use field_fmt.
3459 2017-09-29 Tom Tromey <tom@tromey.com>
3461 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
3464 2017-09-29 Tom Tromey <tom@tromey.com>
3466 * mi/mi-parse.c (mi_parse): Remove unused declaration.
3468 2017-09-29 Tom Tromey <tom@tromey.com>
3470 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
3472 2017-09-29 Tom Tromey <tom@tromey.com>
3474 * varobj.h (varobj_gen_name): Return std::string.
3475 * varobj.c (varobj_gen_name): Return std::string.
3476 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
3477 (mi_cmd_var_delete): Don't copy "name".
3479 2017-09-29 Tom Tromey <tom@tromey.com>
3481 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
3482 (mi_cmd_break_insert_1): Update.
3484 2017-09-29 Tom Tromey <tom@tromey.com>
3486 * target.h (make_scoped_defer_target_commit_resume): Update.
3487 * target.c (make_scoped_defer_target_commit_resume): Rename from
3488 make_cleanup_defer_target_commit_resume. Return a
3490 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
3492 2017-09-29 Tom Tromey <tom@tromey.com>
3494 * main.c (captured_main_1): Remove unused declaration.
3495 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
3497 2017-09-29 Tom Tromey <tom@tromey.com>
3499 * symtab.c (search_symbols): Remove unused outer cleanup.
3500 (make_source_files_completion_list): Remove unused declaration.
3502 2017-09-29 Tom Tromey <tom@tromey.com>
3504 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
3506 2017-09-29 Tom Tromey <tom@tromey.com>
3508 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
3511 2017-09-29 Tom Tromey <tom@tromey.com>
3513 * complaints.c (vcomplaint): Use std::string.
3515 2017-09-29 Tom Tromey <tom@tromey.com>
3517 * tracepoint.c (trace_variable_command): Use std::string.
3518 (encode_actions_1): Remove unused declarations.
3519 (create_tsv_from_upload): Use std::string.
3521 2017-09-29 Tom Tromey <tom@tromey.com>
3523 * cp-support.c (gdb_demangle): Use std::string.
3525 2017-09-29 Tom Tromey <tom@tromey.com>
3527 * stack.c (parse_frame_specification): Use std::string
3528 (info_frame_command): Use gdb::unique_xmalloc_ptr.
3530 2017-09-29 Tom Tromey <tom@tromey.com>
3532 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
3534 2017-09-29 Tom Tromey <tom@tromey.com>
3536 * utils.c (vfprintf_maybe_filtered): Use std::string.
3537 (vfprintf_unfiltered): Likewise.
3539 2017-09-29 Tom Tromey <tom@tromey.com>
3541 * event-top.c (top_level_prompt): Return std::string.
3542 (display_gdb_prompt): Update.
3544 2017-09-29 Tom Tromey <tom@tromey.com>
3546 * unittests/common-utils-selftests.c (format): New function.
3547 (string_vprintf_tests): New function.
3548 (_initialize_common_utils_selftests): Register new tests.
3549 * common/common-utils.c (string_vprintf): New function.
3550 * common/common-utils.h (string_vprintf): Declare.
3552 2017-09-29 Pedro Alves <palves@redhat.com>
3554 * common/rsp-low.c (unpack_varlen_hex): Constify.
3555 * common/rsp-low.h (unpack_varlen_hex): Constify.
3556 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3558 * remote.c (remote_set_permissions, read_ptid)
3559 (remote_current_thread, remote_get_threads_with_qthreadinfo)
3560 (remote_static_tracepoint_marker_at)
3561 (remote_static_tracepoint_markers_by_strid)
3562 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
3563 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
3564 (parse_tracepoint_definition, parse_tsv_definition)
3565 (parse_static_tracepoint_marker_definition): Constify.
3566 * tracepoint.h (parse_static_tracepoint_marker_definition)
3567 (parse_trace_status, parse_tracepoint_status)
3568 (parse_tracepoint_definition, parse_tsv_definition): Constify.
3570 2017-09-29 Pedro Alves <palves@redhat.com>
3572 * remote.c (target_buf, target_buf_size): Delete.
3573 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
3574 Use the connection's packet buffer instead.
3575 All callers adjusted.
3576 (_initialize_remote): Remove references to target_buf and
3579 2017-09-28 Pedro Alves <palves@redhat.com>
3581 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3582 unittests/common-utils-selftests.c.
3583 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
3584 (COMMON_OBS): Remove utils-selftests.o.
3585 * utils-selftests.c: Move to ...
3586 * unittests/common-utils-selftests.c: ... here and rename self
3587 test to "string_printf".
3589 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
3591 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
3592 having NULL cus or tus.
3594 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3596 * arm-tdep.c: (convert_from_extended): Remove.
3597 (convert_to_extended): Likewise.
3598 (arm_extract_return_value): Use convert_typed_floating.
3599 (arm_store_return_value): Likewise.
3601 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3602 * sh-tdep.c: Do not include "floatformat.h".
3603 (sh_littlebyte_bigword_type): New function.
3604 (sh_register_convert_to_virtual): Use convert_typed_floating.
3605 (sh_register_convert_to_raw): Likewise.
3606 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3607 (sh64_littlebyte_bigword_type): New function.
3608 (sh64_extract_return_value): Use convert_typed_floating.
3609 (sh64_register_convert_to_virtual): Likewise.
3610 (sh64_register_convert_to_raw): Likewise.
3612 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3614 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
3615 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
3617 * gdbtypes.h (union type_specific): Make field floatformat hold
3618 just a single struct floatformat, not an array.
3619 (floatformat_from_type): Move here.
3620 * gdbtypes.c (floatformat_from_type): Move here. Update to
3621 changed TYPE_FLOATFORMAT definition.
3622 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
3623 (recursive_dump_type): Likewise.
3624 (init_float_type): Install correct floatformat for byte order.
3625 (arch_float_type): Likewise.
3627 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3629 * gdbtypes.c (init_type): Change incoming argument from
3630 length-in-bytes to length-in-bits. Assert length is a
3631 multiple of TARGET_CHAR_BITS.
3632 (arch_type, arch_flags_type): Likewise.
3633 (init_integer_type): Update call to init_type.
3634 (init_character_type): Likewise.
3635 (init_boolean_type): Likewise.
3636 (init_float_type): Likewise.
3637 (init_decfloat_type): Likewise.
3638 (init_complex_type): Likewise.
3639 (init_pointer_type): Likewise.
3640 (objfile_type): Likewise.
3641 (arch_integer_type): Update call to arch_type.
3642 (arch_character_type): Likewise.
3643 (arch_boolean_type): Likewise.
3644 (arch_float_type): Likewise.
3645 (arch_decfloat_type): Likewise.
3646 (arch_complex_type): Likewise.
3647 (arch_pointer_type): Likewise.
3648 (gdbtypes_post_init): Likewise.
3650 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
3651 (read_base_type): Likewise.
3652 * mdebugread.c (basic_type): Likewise.
3653 * stabsread.c (dbx_init_float_type): Likewise.
3654 (rs6000_builtin_type): Likewise.
3655 (read_range_type): Likewise. Also, fix call to init_integer_type
3656 with erroneous length argument.
3658 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
3659 * d-lang.c (build_d_types): Likewise.
3660 * f-lang.c (build_fortran_types): Likewise.
3661 * go-lang.c (build_go_types): Likewise.
3662 * opencl-lang.c (build_opencl_types): Likewise.
3663 * jit.c (finalize_symtab): Likewise.
3664 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3665 (build_std_type_info_type): Likewise.
3666 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
3667 update call to arch_flags_type.
3669 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
3671 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
3672 * windows-tdep.c (windows_get_tlb_type): Likewise.
3674 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
3675 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
3676 * m32c-tdep.c (make_types): Likewise.
3677 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3678 (rl78_psw_type): Update call to arch_flags_type.
3679 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
3680 * rx-tdep.c (rx_psw_type): Likewise.
3681 (rx_fpsw_type): Likewise.
3682 * sparc-tdep.c (sparc_psr_type): Likewise.
3683 (sparc_fsr_type): Likewise.
3684 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
3685 (sparc64_ccr_type): Likewise.
3686 (sparc64_fsr_type): Likewise.
3687 (sparc64_fprs_type): Likewise.
3689 2017-09-27 Tom Tromey <tom@tromey.com>
3691 * findcmd.c (find_command): Constify.
3693 2017-09-27 Tom Tromey <tom@tromey.com>
3695 * ada-tasks.c (task_command_1, task_command): Constify.
3697 2017-09-27 Tom Tromey <tom@tromey.com>
3699 * symtab.c (maintenance_print_symbol_cache)
3700 (maintenance_flush_symbol_cache)
3701 (maintenance_print_symbol_cache_statistics): Constify.
3703 2017-09-27 Tom Tromey <tom@tromey.com>
3705 * inferior.c (detach_inferior_command, kill_inferior_command)
3706 (inferior_command): Constify.
3708 2017-09-27 Tom Tromey <tom@tromey.com>
3710 * regcache.c (regcache_print, maintenance_print_registers)
3711 (maintenance_print_raw_registers)
3712 (maintenance_print_cooked_registers)
3713 (maintenance_print_register_groups)
3714 (maintenance_print_remote_registers): Constify.
3716 2017-09-27 Tom Tromey <tom@tromey.com>
3718 * printcmd.c (map_display_numbers, undisplay_command)
3719 (enable_disable_display_command, enable_display_command)
3720 (disable_display_command): Constify.
3722 2017-09-27 Tom Tromey <tom@tromey.com>
3724 * breakpoint.h (delete_command): Don't declare.
3725 * breakpoint.c (delete_command, enable_once_command)
3726 (enable_count_command, enable_delete_command, breakpoint_1)
3727 (maintenance_info_breakpoints, stopin_command, stopat_command)
3728 (delete_command, delete_trace_command, save_breakpoints)
3729 (save_breakpoints_command, save_tracepoints_command): Constify.
3731 2017-09-27 Tom Tromey <tom@tromey.com>
3733 * macrocmd.c (macro_expand_command, macro_expand_once_command)
3734 (skip_ws, extract_identifier, macro_define_command)
3735 (macro_undef_command, macro_list_command): Constify.
3737 2017-09-27 Tom Tromey <tom@tromey.com>
3739 * infcmd.c (environment_info, set_environment_command)
3740 (unset_environment_command, path_info, info_proc_cmd_1)
3741 (info_proc_cmd_mappings, info_proc_cmd_stat)
3742 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
3743 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
3745 2017-09-27 Tom Tromey <tom@tromey.com>
3747 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
3750 2017-09-27 Tom Tromey <tom@tromey.com>
3752 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
3754 2017-09-27 Tom Tromey <tom@tromey.com>
3756 * demangle.c (demangle_command): Constify.
3758 2017-09-27 Tom Tromey <tom@tromey.com>
3760 * progspace.c (maintenance_info_program_spaces_command):
3763 2017-09-27 Tom Tromey <tom@tromey.com>
3765 * compile/compile.c (check_raw_argument, compile_file_command)
3766 (compile_code_command, compile_print_command): Constify.
3768 2017-09-27 Tom Tromey <tom@tromey.com>
3770 * reggroups.c (maintenance_print_reggroups): Constify.
3772 2017-09-27 Tom Tromey <tom@tromey.com>
3774 * dwarf2read.c (save_gdb_index_command): Constify.
3776 2017-09-27 Tom Tromey <tom@tromey.com>
3778 * stap-probe.c (info_probes_stap_command): Constify.
3780 2017-09-27 Tom Tromey <tom@tromey.com>
3782 * fork-child.c (unset_exec_wrapper_command): Constify.
3784 2017-09-27 Tom Tromey <tom@tromey.com>
3786 * btrace.c (get_uint, get_context_size, no_chunk)
3787 (maint_btrace_packet_history_cmd)
3788 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3789 (maint_info_btrace_cmd): Constify.
3791 2017-09-27 Tom Tromey <tom@tromey.com>
3793 * reverse.c (delete_bookmark_command): Constify.
3795 2017-09-27 Tom Tromey <tom@tromey.com>
3797 * remote.c (set_memory_packet_size)
3798 (set_memory_write_packet_size, show_memory_write_packet_size)
3799 (set_memory_read_packet_size, show_memory_read_packet_size)
3800 (compare_sections_command, packet_command, remote_put_command)
3801 (remote_get_command, remote_delete_command): Constify.
3803 2017-09-27 Tom Tromey <tom@tromey.com>
3805 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
3806 (set_mipsfpu_double_command, set_mipsfpu_none_command)
3807 (set_mipsfpu_auto_command): Constify.
3809 2017-09-27 Tom Tromey <tom@tromey.com>
3811 * cli/cli-cmds.h (cd_command): Constify.
3812 * cli/cli-cmds.c (cd_command): Constify.
3814 2017-09-27 Tom Tromey <tom@tromey.com>
3816 * thread.c (thread_name_command, thread_find_command): Constify.
3818 2017-09-27 Tom Tromey <tom@tromey.com>
3820 * probe.c (enable_probes_command, disable_probes_command):
3823 2017-09-27 Tom Tromey <tom@tromey.com>
3825 * symfile.c (symbol_file_command): Constify.
3826 * gdbcore.h (deprecated_file_changed_hook): Constify.
3827 * exec.c (deprecated_file_changed_hook, exec_file_command)
3828 (file_command): Constify.
3829 * defs.h (symbol_file_command): Constify.
3831 2017-09-27 Tom Tromey <tom@tromey.com>
3833 * remote-fileio.c (set_system_call_allowed)
3834 (show_system_call_allowed): Constify.
3836 2017-09-27 Tom Tromey <tom@tromey.com>
3838 * tracepoint.c (delete_trace_variable_command)
3839 (tfind_end_command, tfind_start_command, tfind_pc_command)
3840 (tfind_tracepoint_command, tfind_line_command)
3841 (tfind_range_command, tfind_outside_command): Constify.
3843 2017-09-27 Tom Tromey <tom@tromey.com>
3845 * ax-gdb.c (maint_agent_printf_command, agent_command)
3846 (agent_eval_command): Constify.
3848 2017-09-27 Tom Tromey <tom@tromey.com>
3850 * tracepoint.c (info_scope_command): Constify.
3851 * python/python.c (gdbpy_decode_line): Constify.
3852 * python/py-breakpoint.c (bppy_init): Constify.
3853 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
3854 * location.h: (new_linespec_location)
3855 (string_to_event_location_basic, string_to_event_location):
3857 * location.c (new_linespec_location)
3858 (string_to_event_location_basic, string_to_event_location):
3860 * linespec.h (decode_line_with_current_source)
3861 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
3862 * linespec.c (linespec_lex_to_end)
3863 (decode_line_with_current_source)
3864 (decode_line_with_last_displayed): Constify.
3865 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
3867 * cli/cli-cmds.c (edit_command, list_command): Constify.
3868 * breakpoint.h (until_break_command, watch_command_wrapper)
3869 (awatch_command_wrapper, rwatch_command_wrapper)
3870 (init_ada_exception_breakpoint): Constify.
3871 * breakpoint.c (break_command_1, dprintf_command)
3872 (break_range_command, watch_command_wrapper)
3873 (rwatch_command_wrapper, awatch_command_wrapper)
3874 (until_break_command, init_ada_exception_breakpoint)
3875 (strace_marker_create_sals_from_location, trace_command)
3876 (ftrace_command, strace_command, struct tracepoint): Constify.
3877 * ax-gdb.c (agent_command_1): Constify.
3878 * ada-lang.c (ada_exception_sal): Constify.
3880 2017-09-27 Tom Tromey <tom@tromey.com>
3882 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
3883 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
3884 (get_context_size, no_chunk, get_insn_history_modifiers)
3885 (cmd_record_insn_history, get_call_history_modifiers)
3886 (cmd_record_call_history): Constify.
3888 2017-09-27 Tom Tromey <tom@tromey.com>
3890 * source.c (show_substitute_path_command)
3891 (unset_substitute_path_command, set_substitute_path_command):
3894 2017-09-27 Tom Tromey <tom@tromey.com>
3896 * typeprint.c (maintenance_print_type): Constify.
3897 * maint.c (maintenance_dump_me, maintenance_demangle)
3898 (maintenance_time_display, maintenance_info_sections)
3899 (maintenance_print_statistics, maintenance_deprecate)
3900 (maintenance_undeprecate): Constify.
3901 (maintenance_do_deprecate): Constify. Use std::string.
3902 (maintenance_selftest): Constify.
3903 * gdbtypes.h (maintenance_print_type): Constify.
3905 2017-09-27 Tom Tromey <tom@tromey.com>
3907 * hppa-tdep.c (unwind_command): Constify.
3909 2017-09-27 Tom Tromey <tom@tromey.com>
3911 * target-descriptions.c (unset_tdesc_filename_cmd)
3912 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
3915 2017-09-27 Tom Tromey <tom@tromey.com>
3917 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
3919 2017-09-27 Tom Tromey <tom@tromey.com>
3921 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
3923 2017-09-27 Tom Tromey <tom@tromey.com>
3925 * tui/tui-regs.c (tui_reg_command): Constify.
3927 2017-09-27 Tom Tromey <tom@tromey.com>
3929 * skip.c (skip_file_command, skip_function_command)
3930 (skip_enable_command, skip_disable_command, skip_delete_command):
3933 2017-09-27 Tom Tromey <tom@tromey.com>
3935 * record-btrace.c (cmd_record_btrace_bts_start)
3936 (cmd_record_btrace_pt_start): Constify.
3938 2017-09-27 Tom Tromey <tom@tromey.com>
3940 * symmisc.c (maintenance_print_symbols)
3941 (maintenance_print_msymbols, maintenance_print_objfiles)
3942 (maintenance_info_symtabs, maintenance_check_symtabs)
3943 (maintenance_expand_symtabs, maintenance_info_line_tables):
3946 2017-09-27 Tom Tromey <tom@tromey.com>
3948 * top.c (new_ui_command): Constify.
3950 2017-09-27 Tom Tromey <tom@tromey.com>
3952 * symfile.c (add_symbol_file_command)
3953 (remove_symbol_file_command, list_overlays_command)
3954 (map_overlay_command, unmap_overlay_command)
3955 (overlay_auto_command, overlay_manual_command)
3956 (overlay_off_command, overlay_load_command): Constify.
3958 2017-09-27 Tom Tromey <tom@tromey.com>
3960 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3961 (info_spu_mailbox_command, info_spu_dma_command)
3962 (info_spu_proxydma_command): Constify.
3964 2017-09-27 Tom Tromey <tom@tromey.com>
3966 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
3968 2017-09-27 Tom Tromey <tom@tromey.com>
3970 * cli/cli-script.c (user_defined_command): Constify.
3972 2017-09-27 Tom Tromey <tom@tromey.com>
3974 * cli/cli-dump.c (dump_memory_command, dump_value_command)
3975 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
3976 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
3977 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
3978 (dump_binary_value, append_binary_memory, append_binary_value):
3980 (struct dump_context) <func>: Constify.
3981 (add_dump_command): Update.
3983 2017-09-27 Tom Tromey <tom@tromey.com>
3985 * cli/cli-cmds.c (show_version, show_configuration)
3986 (source_command, show_user): Constify.
3988 2017-09-27 Tom Tromey <tom@tromey.com>
3990 * target.c (maintenance_print_target_stack): Constify.
3992 2017-09-27 Tom Tromey <tom@tromey.com>
3994 * interps.c (interpreter_exec_cmd): Constify.
3996 2017-09-27 Tom Tromey <tom@tromey.com>
3998 * record-full.c (cmd_record_full_restore): Constify.
4000 2017-09-27 Tom Tromey <tom@tromey.com>
4002 * memattr.c (enable_mem_command, disable_mem_command)
4003 (delete_mem_command): Constify.
4005 2017-09-27 Tom Tromey <tom@tromey.com>
4007 * value.c (show_convenience): Constify.
4009 2017-09-27 Tom Tromey <tom@tromey.com>
4011 * gdbcore.h (core_file_command): Update.
4012 * corefile.c (core_file_command): Constify.
4014 2017-09-27 Tom Tromey <tom@tromey.com>
4016 * user-regs.c (maintenance_print_user_registers): Constify.
4018 2017-09-27 Tom Tromey <tom@tromey.com>
4020 * cp-namespace.c (maintenance_cplus_namespace): Constify.
4022 2017-09-27 Tom Tromey <tom@tromey.com>
4024 * cp-support.c (first_component_command): Constify.
4026 2017-09-27 Tom Tromey <tom@tromey.com>
4028 * psymtab.c (maintenance_print_psymbols)
4029 (maintenance_info_psymtabs, maintenance_check_psymtabs):
4032 2017-09-27 Tom Tromey <tom@tromey.com>
4034 * windows-tdep.c (display_tib): Constify.
4036 2017-09-27 Tom Tromey <tom@tromey.com>
4038 * linux-fork.c (delete_checkpoint_command)
4039 (detach_checkpoint_command): Constify.
4041 2017-09-27 Tom Tromey <tom@tromey.com>
4043 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
4045 2017-09-27 Tom Tromey <tom@tromey.com>
4047 * arc-tdep.c (dump_arc_instruction_command): Constify.
4049 2017-09-27 Tom Tromey <tom@tromey.com>
4051 * valprint.c (set_radix, show_radix): Constify.
4053 2017-09-27 Tom Tromey <tom@tromey.com>
4055 * dtrace-probe.c (info_probes_dtrace_command): Constify.
4057 2017-09-27 Tom Tromey <tom@tromey.com>
4059 * command.h (not_just_help_class_command): Update.
4060 * cli/cli-decode.h (not_just_help_class_command): Update.
4061 * cli/cli-decode.c (not_just_help_class_command): Constify.
4063 2017-09-27 Tom Tromey <tom@tromey.com>
4065 * gdb_bfd.c (maintenance_info_bfds): Constify.
4067 2017-09-27 Tom Tromey <tom@tromey.com>
4069 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
4071 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
4072 (do_const_cfunc): New function.
4073 (cmd_cfunc_eq): New overload.
4074 (cli_user_command_p): Check do_const_cfunc.
4075 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
4077 * command.h (add_cmd): Add const overload and no-function
4079 (set_cmd_cfunc): Add const overload.
4080 (cmd_const_cfunc_ftype): Declare.
4081 (cmd_cfunc_eq): Add const overload.
4082 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
4083 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
4086 2017-09-27 Tom Tromey <tom@tromey.com>
4088 * macroexp.c (get_next_token_for_substitution): New function.
4089 (substitute_args): Call it. Check for __VA_OPT__.
4091 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
4092 Pedro Alves <palves@redhat.com>
4094 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
4095 producer_is_icc_lt_14.
4096 (producer_is_icc_lt_14): New function.
4097 (check_producer): Add code for checking version of ICC.
4098 (producer_is_icc): Move to producer.c.
4099 (read_structure_type): Restrict ICC workaround to ICC<14.
4100 * producer.c: Include selftest.h.
4101 (producer_is_icc, producer_parsing_tests, _initialize_producer):
4103 * producer.h (producer_is_icc): New declaration.
4105 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
4107 * Makefile.in (SFILES): Add producer.c.
4108 (COMMON_OBS): Add producer.o
4109 * amd64-tdep.c (producer.h): Add new include.
4110 * dwarf2read.c (producer.h): Add new include.
4111 * producer.c: New file.
4112 * producer.h: New file.
4113 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
4115 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
4118 2017-09-26 Matthias Klose <doko@ubuntu.com>
4120 * configure.ac: Search ncursesw before ncurses.
4121 Check ncursesw/ncurses.h before ncurses/ncurses.h.
4122 * gdb_curses.h: Include <ncursesw/ncurses.h>
4123 * config.in, configure: Regenerate.
4125 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4128 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
4130 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
4131 Remove i386sol2 support.
4132 * configure.nat <i386sol2>: Remove.
4133 <sol2-64>: Fold into ...
4135 Move common settings to default section.
4137 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
4138 x86_64-*-solaris2.1[0-9]*>: Rename to ...
4139 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
4140 <i[34567]86-*-solaris*>: Remove.
4141 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
4143 * configure.ac: Remove wctype in libw check.
4144 (_MSE_INT_H): Don't define on Solaris 7-9.
4145 <solaris*>: Remove libthread_db.so.1 check.
4146 * configure: Regenerate.
4147 * config.in: Regenerate.
4149 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
4150 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
4151 (gdb_ps_size_t): Remove.
4152 Use base types in users.
4153 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
4155 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
4157 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4160 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
4161 (adi_is_addr_mapped): Likewise.
4162 (PSR_ICC): Don't redefine.
4163 (PSR_IMPL): Likewise.
4165 2017-09-25 Tom Tromey <tom@tromey.com>
4167 * regcache.c (regcache::dump): Use string_printf.
4169 2017-09-25 Tom Tromey <tom@tromey.com>
4171 * regcache.c (class regcache_invalidator): New.
4172 (struct register_to_invalidate): Remove.
4173 (make_cleanup_regcache_invalidate): Remove.
4174 (regcache::raw_write): Use regcache_invalidator.
4176 2017-09-25 Tom Tromey <tom@tromey.com>
4178 * spu-tdep.c (spu2ppu_sniffer): Update.
4179 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
4180 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
4182 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
4183 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
4184 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
4185 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
4186 (frame_pop): Update.
4188 2017-09-25 Tom Tromey <tom@tromey.com>
4190 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
4191 * regcache.h (regcache_xfree): Don't declare.
4192 * regcache.c (regcache_xfree): Remove.
4193 (do_regcache_xfree): Use delete.
4194 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
4195 * linux-fork.c (free_fork): Use delete.
4196 (fork_save_infrun_state): Likewise.
4197 * jit.c (jit_dealloc_cache): Use delete.
4198 * infrun.c (discard_infcall_suspend_state): Use delete.
4200 2017-09-25 Tom Tromey <tom@tromey.com>
4202 * regcache.h (regcache_xmalloc): Don't declare.
4203 (regcache_raw_set_cached_value): Update comment.
4204 * regcache.c (regcache_xmalloc): Remove.
4205 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
4206 * jit.c (jit_frame_sniffer): Use new.
4207 * frame.c (frame_save_as_regcache): Use new.
4209 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4211 * NEWS: Advertise support for guarded-storage registers on IBM z.
4213 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4215 * s390-linux-nat.c (have_regset_gs): New static variable.
4216 (s390_linux_fetch_inferior_registers): Handle guarded-storage
4217 control block and guarded-storage broadcast control regsets.
4218 (s390_read_description): Detect whether the target has
4219 guarded-storage support, return appropriate tdesc.
4220 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
4221 (features/s390x-gs-linux64.c): Likewise.
4222 (struct gdbarch_tdep) <have_gs>: New field.
4223 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
4224 (s390_gsbc_regset): New variables.
4225 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
4226 and s390_gsbc_regset, if applicable.
4227 (s390_core_read_description): Check whether core file was from a
4228 target with guarded-storage support; include appropriate regsets.
4229 (s390_gdbarch_init): Add registers for guarded-storage support.
4230 (_initialize_s390_tdep): Initialize new target descriptions that
4231 include registers for guarded-storage support.
4232 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
4233 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
4234 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
4235 (S390_NUM_REGS): Adjust macro definition.
4236 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
4237 (tdesc_s390x_gs_linux64): New declarations.
4239 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4241 * features/s390-gs-linux64.xml: New file.
4242 * features/s390-gs.xml: New file.
4243 * features/s390-gsbc.xml: New file.
4244 * features/s390x-gs-linux64.xml: New file.
4245 * features/Makefile (WHICH): Add s390-gs-linux64 and
4247 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
4248 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
4249 * features/s390-gs-linux64.c: New generated file.
4250 * features/s390x-gs-linux64.c: New file.
4251 * regformats/s390-gs-linux64.dat: New file.
4252 * regformats/s390x-gs-linux64.dat: New file.
4254 2017-09-23 Tom Tromey <tom@tromey.com>
4256 * defs.h (make_cleanup_override_quit_handler): Don't declare.
4258 2017-09-22 Tom Tromey <tom@tromey.com>
4260 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
4261 type to scoped_restore_tmpl.
4262 <scoped_input_handler>: Initialize m_quit_handler directly.
4264 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
4266 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
4267 (cd_command): Likewise. Free "current_directory" before
4269 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
4270 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
4271 * top.c (gdb_dirbuf): Remove global declaration.
4272 * top.h (gdb_dirbuf): Likewise.
4274 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
4276 * gnulib/aclocal.m4: Regenerate.
4277 * gnulib/config.in: Regenerate.
4278 * gnulib/configure: Regenerate.
4279 * gnulib/import/Makefile.am: Regenerate.
4280 * gnulib/import/Makefile.in: Regenerate.
4281 * gnulib/import/assure.h: New file.
4282 * gnulib/import/at-func.c: Likewise
4283 * gnulib/import/chdir-long.c: New file.
4284 * gnulib/import/chdir-long.h: New file.
4285 * gnulib/import/cloexec.c: New file.
4286 * gnulib/import/cloexec.h: New file.
4287 * gnulib/import/close.c: New file.
4288 * gnulib/import/closedir.c: New file.
4289 * gnulib/import/dirent-private.h: New file.
4290 * gnulib/import/dup-safer.c: New file.
4291 * gnulib/import/dup.c: New file.
4292 * gnulib/import/dup2.c: New file.
4293 * gnulib/import/error.c: New file.
4294 * gnulib/import/error.h: New file.
4295 * gnulib/import/exitfail.c: New file.
4296 * gnulib/import/exitfail.h: New file.
4297 * gnulib/import/fchdir.c: New file.
4298 * gnulib/import/fcntl.c: New file.
4299 * gnulib/import/fcntl.in.h: New file.
4300 * gnulib/import/fd-hook.c: New file.
4301 * gnulib/import/fd-hook.h: New file.
4302 * gnulib/import/fd-safer.c: New file.
4303 * gnulib/import/fdopendir.c: New file.
4304 * gnulib/import/filename.h: New file.
4305 * gnulib/import/filenamecat-lgpl.c: New file.
4306 * gnulib/import/filenamecat.h: New file.
4307 * gnulib/import/fstat.c: New file.
4308 * gnulib/import/fstatat.c: New file.
4309 * gnulib/import/getcwd-lgpl.c: New file.
4310 * gnulib/import/getcwd.c: New file.
4311 * gnulib/import/getdtablesize.c: New file.
4312 * gnulib/import/getlogin_r.c: New file.
4313 * gnulib/import/getprogname.c: New file.
4314 * gnulib/import/getprogname.h: New file.
4315 * gnulib/import/gettext.h: New file.
4316 * gnulib/import/glob-libc.h: New file.
4317 * gnulib/import/glob.c: New file.
4318 * gnulib/import/glob.in.h: New file.
4319 * gnulib/import/intprops.h: New file.
4320 * gnulib/import/m4/chdir-long.m4: New file.
4321 * gnulib/import/m4/close.m4: New file.
4322 * gnulib/import/m4/closedir.m4: New file.
4323 * gnulib/import/m4/d-ino.m4: New file.
4324 * gnulib/import/m4/d-type.m4: New file.
4325 * gnulib/import/m4/dup.m4: New file.
4326 * gnulib/import/m4/dup2.m4: New file.
4327 * gnulib/import/m4/error.m4: New file.
4328 * gnulib/import/m4/fchdir.m4: New file.
4329 * gnulib/import/m4/fcntl.m4: New file.
4330 * gnulib/import/m4/fcntl_h.m4: New file.
4331 * gnulib/import/m4/fdopendir.m4: New file.
4332 * gnulib/import/m4/filenamecat.m4: New file.
4333 * gnulib/import/m4/fstat.m4: New file.
4334 * gnulib/import/m4/fstatat.m4: New file.
4335 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
4336 * gnulib/import/m4/getcwd-path-max.m4: New file.
4337 * gnulib/import/m4/getcwd.m4: New file.
4338 * gnulib/import/m4/getdtablesize.m4: New file.
4339 * gnulib/import/m4/getlogin_r.m4: New file.
4340 * gnulib/import/m4/getprogname.m4: New file.
4341 * gnulib/import/m4/glob.m4: New file.
4342 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4343 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4344 * gnulib/import/m4/mempcpy.m4: New file.
4345 * gnulib/import/m4/memrchr.m4: New file.
4346 * gnulib/import/m4/mode_t.m4: New file.
4347 * gnulib/import/m4/msvc-inval.m4: New file.
4348 * gnulib/import/m4/msvc-nothrow.m4: New file.
4349 * gnulib/import/m4/open.m4: New file.
4350 * gnulib/import/m4/openat.m4: New file.
4351 * gnulib/import/m4/opendir.m4: New file.
4352 * gnulib/import/m4/readdir.m4: New file.
4353 * gnulib/import/m4/realloc.m4: New file.
4354 * gnulib/import/m4/rewinddir.m4: New file.
4355 * gnulib/import/m4/save-cwd.m4: New file.
4356 * gnulib/import/m4/strdup.m4: New file.
4357 * gnulib/import/m4/strerror.m4: New file.
4358 * gnulib/import/m4/unistd-safer.m4: New file.
4359 * gnulib/import/mempcpy.c: New file.
4360 * gnulib/import/memrchr.c: New file.
4361 * gnulib/import/msvc-inval.c: New file.
4362 * gnulib/import/msvc-inval.h: New file.
4363 * gnulib/import/msvc-nothrow.c: New file.
4364 * gnulib/import/msvc-nothrow.h: New file.
4365 * gnulib/import/open.c: New file.
4366 * gnulib/import/openat-die.c: New file.
4367 * gnulib/import/openat-priv.h: New file.
4368 * gnulib/import/openat-proc.c: New file.
4369 * gnulib/import/openat.c: New file.
4370 * gnulib/import/openat.h: New file.
4371 * gnulib/import/opendir.c: New file.
4372 * gnulib/import/pipe-safer.c: New file.
4373 * gnulib/import/readdir.c: New file.
4374 * gnulib/import/realloc.c: New file.
4375 * gnulib/import/rewinddir.c: New file.
4376 * gnulib/import/save-cwd.c: New file.
4377 * gnulib/import/save-cwd.h: New file.
4378 * gnulib/import/strdup.c: New file.
4379 * gnulib/import/strerror-override.c: New file.
4380 * gnulib/import/strerror-override.h: New file.
4381 * gnulib/import/strerror.c: New file.
4382 * gnulib/import/unistd--.h: New file.
4383 * gnulib/import/unistd-safer.h: New file.
4384 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
4385 "getcwd" and "glob".
4386 * ser-tcp.c: Undefine "close" before redefining it.
4388 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4390 * guile/scm-value.c (gdbscm_value_address): Initialize address,
4393 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4395 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
4396 <sol2,sparc>: Likewise.
4397 <sol2-64,i386>: Likewise.
4399 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
4400 -Wdeprecated-declarations on *-*-solaris*.
4401 * configure: Regenerate.
4403 * procfs.c: Include "nat/inferior.h".
4404 (procfs_info_proc): Fix typo.
4406 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4408 * remote.c (vector): Include.
4409 (struct private_thread_info): Add field, thread_handle.
4410 (free_private_thread_info): Deallocate storage associated with
4412 (get_private_info_thread): Initialize `thread_handle' field.
4413 (struct thread_item): Add field, thread_handle.
4414 (clear_threads_listing_context): Deallocate storage associated
4416 (start_thread): Add support for "handle" attribute.
4417 (thread_attributes): Add "handle".
4418 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
4420 (remote_update_thread_list): Update thread_handle.
4421 (remote_thread_handle_to_thread_info): New function.
4422 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
4424 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4426 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
4428 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
4429 * python/python-internal.h (thread_object_type): Declare.
4431 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4433 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
4434 (target_thread_handle_to_thread_info): Declare.
4435 * target.c (target_thread_handle_to_thread_info): New function.
4436 * target-delegates.c: Regenerate.
4437 * gdbthread.h (find_thread_by_handle): Declare.
4438 * thread.c (find_thread_by_handle): New function.
4439 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
4441 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
4443 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4445 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
4447 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4449 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
4451 2017-09-21 Yao Qi <yao.qi@linaro.org>
4453 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
4456 2017-09-20 Tom Tromey <tom@tromey.com>
4458 * breakpoint.c (struct counted_command_line): Remove.
4459 (breakpoint_commands): Update.
4460 (alloc_counted_command_line, incref_counted_command_line)
4461 (decref_counted_command_line, do_cleanup_counted_command_line)
4462 (make_cleanup_decref_counted_command_line): Remove.
4463 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
4464 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
4465 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
4466 (save_breakpoints): Update.
4467 * breakpoint.h (counted_command_line): Now a typedef to
4469 (struct breakpoint) <commands>: Now a counted_command_line.
4470 (struct bpstats) <command>: Likewise.
4472 2017-09-20 Tom Tromey <tom@tromey.com>
4474 * breakpoint.c (struct commands_info, do_map_commands_command):
4476 (commands_command_1): Update.
4477 (iterate_over_related_breakpoints): Take a function_view.
4478 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
4479 (delete_command): Update.
4480 (map_breakpoint_numbers): Take a function_view.
4481 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
4482 (disable_command): Update.
4483 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
4484 (enable_command): Update.
4485 (struct disp_data, do_enable_breakpoint_disp)
4486 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
4487 (do_map_enable_delete_breakpoint): Remove.
4488 (enable_once_command, enable_count_command, enable_delete_command)
4489 (delete_trace_variable_command): Update.
4491 2017-09-20 Tom Tromey <tom@tromey.com>
4493 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
4494 (bpstat_clear): Use delete.
4495 (bpstats): New constructors.
4496 (bpstat_copy, bpstat_stop_status): Use new.
4497 (dprintf_after_condition_true): Update.
4498 * breakpoint.h (bpstats::bpstats): Add constructors.
4499 (bpstats::~bpstats): Add destructor.
4501 2017-09-20 Pedro Alves <palves@redhat.com>
4503 * eval.c (make_params): Delete, refactored as ...
4504 (class fake_method): ... this new type's ctor.
4505 (fake_method::~fake_method): New.
4506 (evaluate_subexp_standard): Use 'fake_method'.
4508 2017-09-20 Tom Tromey <tom@tromey.com>
4510 * windows-nat.c (get_windows_debug_event, windows_wait)
4511 (do_initial_windows_stuff, windows_attach): Update.
4512 * utils.c (vwarning, internal_vproblem): Update.
4513 (ui_unregister_input_event_handler_cleanup)
4514 (prepare_to_handle_input): Remove.
4515 (class scoped_input_handler): New.
4516 (defaulted_query, prompt_for_continue): Update.
4517 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4519 * top.c (undo_terminal_modifications_before_exit): Update.
4520 * target/target.h (target_terminal_init, target_terminal_inferior)
4521 (target_terminal_ours): Don't declare.
4522 (class target_terminal): New.
4523 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
4524 (target_terminal_ours_for_output)
4525 (make_cleanup_restore_target_terminal): Don't declare.
4526 (target_terminal_info): Remove.
4527 * target.c (enum terminal_state, terminal_state): Remove.
4528 (target_terminal::terminal_state): Define.
4529 (target_terminal::init): Rename from target_terminal_init.
4530 (target_terminal::inferior): Rename from
4531 target_terminal_inferior.
4532 (target_terminal::ours): Rename from target_terminal_ours.
4533 (target_terminal::ours_for_output): Rename from
4534 target_terminal_ours_for_output.
4535 (target_terminal::info): New method.
4536 (cleanup_restore_target_terminal)
4537 (make_cleanup_restore_target_terminal): Remove.
4538 * solib.c (handle_solib_event): Update.
4539 * remote.c (remote_serial_quit_handler): Update.
4540 (remote_terminal_inferior, remote_wait_as): Update.
4541 * record-full.c (record_full_wait_1): Update.
4542 * nto-procfs.c (procfs_create_inferior): Update.
4543 * nat/fork-inferior.c (startup_inferior): Update.
4544 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
4545 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
4546 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
4547 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
4548 (mi_breakpoint_created, mi_breakpoint_deleted)
4549 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
4550 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
4551 (mi_user_selected_context_changed, report_initial_inferior):
4553 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
4554 (linux_nat_terminal_inferior): Update.
4555 * infrun.c (follow_fork_inferior)
4556 (handle_vfork_child_exec_or_exit, do_target_resume)
4557 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
4558 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
4560 * inflow.c (child_terminal_init, info_terminal_command): Update.
4561 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
4562 (attach_command): Update.
4563 * infcall.c (call_thread_fsm_should_stop): Update.
4564 * gnu-nat.c (gnu_attach): Update.
4565 * extension.c (struct active_ext_lang_state)
4566 (restore_active_ext_lang): Update.
4567 * exceptions.c (print_flush): Update.
4568 * event-top.c (async_enable_stdin, default_quit_handler): Update.
4569 (struct quit_handler_cleanup_data, restore_quit_handler)
4570 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
4572 * cp-support.c (gdb_demangle): Update.
4573 * breakpoint.c (update_inserted_breakpoint_locations)
4574 (insert_breakpoint_locations, handle_jit_event)
4575 (disable_breakpoints_in_unloaded_shlib): Update.
4576 * annotate.c (annotate_breakpoints_invalid)
4577 (annotate_frames_invalid): Update.
4579 2017-09-20 Tom Tromey <tom@tromey.com>
4581 * main.c (catch_command_errors): Rename from
4582 catch_command_errors_const.
4583 (captured_main_1): Update.
4585 2017-09-20 Pedro Alves <palves@redhat.com>
4587 * cli/cli-cmds.c (list_command): Use print_sal_location.
4588 (print_sal_location): New function.
4589 (ambiguous_line_spec): Use print_sal_location.
4590 * linespec.c (symbol_to_sal): Record the symbol in the sal.
4591 * symtab.c (find_function_start_sal): Likewise.
4592 * symtab.h (symtab_and_line::symbol): New field.
4594 2017-09-20 Pedro Alves <palves@redhat.com>
4596 * linespec.c (minsym_found): Handle non-text minsyms.
4597 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
4599 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4601 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
4604 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4606 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
4607 vmovups instead vmovaps.
4608 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
4610 2017-09-19 John Baldwin <jhb@FreeBSD.org>
4612 * NEWS (Changes since GDB 8.0): Add starti.
4613 * infcmd.c (enum run_break): New.
4614 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
4616 (run_command): Use enum run_how.
4617 (start_command): Likewise.
4618 (starti_command): New function.
4619 (RUN_ARGS_HELP): New macro.
4620 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
4621 commands. Add starti command.
4623 2017-09-19 Yao Qi <yao.qi@linaro.org>
4625 * Makefile.in (monitor.o): Remove the rule.
4627 2017-09-19 Yao Qi <yao.qi@linaro.org>
4629 * annotate.h (struct annotate_arg_emitter): Use
4630 DISABLE_COPY_AND_ASSIGN.
4631 * common/refcounted-object.h (refcounted_object): Likewise.
4632 * completer.h (struct completion_result): Likewise.
4633 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
4634 * filename-seen-cache.h (filename_seen_cache): Likewise.
4635 * gdbcore.h (thread_section_name): Likewise.
4636 * gdb_regex.h (compiled_regex): Likewise.
4637 * gdbthread.h (scoped_restore_current_thread): Likewise.
4638 * inferior.h (scoped_restore_current_inferior): Likewise.
4639 * jit.c (jit_reader): Likewise.
4640 * linespec.h (struct linespec_result): Likewise.
4641 * mi/mi-parse.h (struct mi_parse): Likewise.
4642 * nat/fork-inferior.c (execv_argv): Likewise.
4643 * progspace.h (scoped_restore_current_program_space): Likewise.
4644 * python/python-internal.h (class gdbpy_enter): Likewise.
4645 * regcache.h (regcache): Likewise.
4646 * target-descriptions.c (struct tdesc_reg): Likewise.
4647 (struct tdesc_type): Likewise.
4648 (struct tdesc_feature): Likewise.
4649 * ui-out.h (ui_out_emit_type): Likewise.
4651 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
4653 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
4654 label abort_expression.
4656 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4658 * common/buffer.c (buffer_xml_printf): Adjust.
4659 * common/xml-utils.c (xml_escape_text): Change return type to
4660 std::string, update code accordingly.
4661 * common/xml-utils.h (xml_escape_text): Change return type to
4663 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
4664 * windows-tdep.c (windows_xfer_shared_library): Adjust.
4665 * unittests/xml-utils-selftests.c (test_xml_escape_text):
4668 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4670 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
4671 (SUBDIR_UNITTESTS_OBS): Add new object file.
4672 * unittests/xml-utils-selftests.c: New file.
4674 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4676 * common/selftest.h (selftest): New struct/interface.
4677 (register_test): Add name parameter, add new overload.
4678 (run_tests): Add filter parameter.
4679 (for_each_selftest_ftype): New typedef.
4680 (for_each_selftest): New declaration.
4681 * common/selftest.c (tests): Change type to
4682 map<string, unique_ptr<selftest>>.
4683 (simple_selftest): New struct.
4684 (register_test): New function.
4685 (register_test): Add name parameter and use it.
4686 (run_tests): Add filter parameter and use it. Add prints.
4687 Adjust to vector -> map change.
4688 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
4689 registering selftests.
4690 * arm-tdep.c (_initialize_arm_tdep): Likewise.
4691 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
4692 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
4693 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
4694 * findvar.c (_initialize_findvar): Likewise.
4695 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
4696 * maint.c (maintenance_selftest): Update call to run_tests.
4697 (maintenance_info_selftests): New function.
4698 (_initialize_maint_cmds): Register "maintenance info selftests"
4699 command. Update "maintenance selftest" doc.
4700 * regcache.c (_initialize_regcache): Add names when registering
4702 * rust-exp.y (_initialize_rust_exp): Likewise.
4703 * selftest-arch.c (gdbarch_selftest): New struct.
4704 (gdbarch_tests): Remove.
4705 (register_test_foreach_arch): Add name parameter. Call
4707 (tests_with_arch): Remove, move most content to
4708 gdbarch_selftest::operator().
4709 (_initialize_selftests_foreach_arch): Remove.
4710 * selftest-arch.h (register_test_foreach_arch): Add name
4712 (run_tests_with_arch): New declaration.
4713 * utils-selftests.c (_initialize_utils_selftests): Add names
4714 when registering selftests.
4715 * utils.c (_initialize_utils): Likewise.
4716 * unittests/array-view-selftests.c
4717 (_initialize_array_view_selftests): Likewise.
4718 * unittests/environ-selftests.c (_initialize_environ_selftests):
4720 * unittests/function-view-selftests.c
4721 (_initialize_function_view_selftests): Likewise.
4722 * unittests/offset-type-selftests.c
4723 (_initialize_offset_type_selftests): Likewise.
4724 * unittests/optional-selftests.c
4725 (_initialize_optional_selftests): Likewise.
4726 * unittests/scoped_restore-selftests.c
4727 (_initialize_scoped_restore_selftests): Likewise.
4728 * NEWS: Document "maintenance selftest" and "maint info
4731 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4733 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
4736 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4738 * mi/mi-main.c (mi_load_progress): Make uiout variable
4741 2017-09-15 Pedro Alves <palves@redhat.com>
4743 * compile/compile-c-types.c (convert_enum, convert_int)
4744 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
4746 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4748 * dwarf2read.c (copy_string): Remove.
4749 (parse_macro_definition): Replace copy_string with savestring.
4751 2017-09-15 Yao Qi <yao.qi@linaro.org>
4753 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
4755 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
4757 (i[34567]86-*-linux*): Likewise.
4759 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4761 * dwarf2expr.h (dwarf_stack_value): Add constructor.
4762 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
4763 <stack>: Change type to std::vector.
4764 <stack_len, stack_allocated>: Remove.
4765 <grow_stack>: Remove.
4766 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4767 (dwarf_expr_context::~dwarf_expr_context): Remove.
4768 (dwarf_expr_context::grow_stack): Remove.
4769 (dwarf_expr_context::push): Adjust.
4770 (dwarf_expr_context::pop): Adjust.
4771 (dwarf_expr_context::fetch): Adjust.
4772 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
4773 (dwarf_expr_context::stack_empty_p): Adjust.
4774 (dwarf_expr_context::execute_stack_op): Adjust.
4776 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4778 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
4779 return type to bool.
4780 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
4782 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4784 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
4785 Change type to bool.
4786 (dwarf_stack_value) <in_stack_memory>: Likewise.
4787 (dwarf_expr_context) <push_address>: Change parameter type to
4789 <fetch_in_stack_memory>: Change return type to bool.
4790 <push>: Change parameter type to bool.
4791 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
4793 (dwarf_expr_context::push_address): Likewise.
4794 (dwarf_expr_context::fetch_in_stack_memory): Change return type
4796 (dwarf_expr_context::execute_stack_op): Adjust.
4797 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
4799 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4801 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
4802 (struct dwarf_expr_context) <n_pieces>: Remove.
4803 <pieces>: Change type to std::vector.
4804 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4805 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
4807 (dwarf_expr_context::add_piece): Adjust.
4808 * dwarf2loc.c (struct piece_closure): Initialize fields.
4810 <pieces>: Change type to std::vector.
4811 (allocate_piece_closure): Adjust, change parameter to
4812 std::vector rvalue and std::move it to piece_closure.
4813 (rw_pieced_value): Adjust.
4814 (check_pieced_synthetic_pointer): Adjust.
4815 (indirect_synthetic_pointer): Adjust.
4816 (coerce_pieced_ref): Adjust.
4817 (free_pieced_value_closure): Adjust. Use delete to free
4819 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
4820 to allocate_piece_closure.
4821 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
4823 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4825 * probe.h (probe_ops_cp): Remove typedef.
4826 (DEF_VEC_P (probe_ops_cp)): Remove.
4827 (all_probe_ops): Change type to std::vector.
4828 * probe.c (info_probes_for_ops): Adjust to vector change.
4829 (probe_linespec_to_ops): Likewise.
4830 (all_probe_ops): Change type to std::vector.
4831 (_initialize_probe): Adjust to vector change.
4832 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
4833 * elfread.c (elf_get_probes): Likewise.
4834 * stap-probe.c (_initialize_stap_probe): Likewise.
4836 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4838 * probe.h (struct bound_probe): Define constructors.
4839 * probe.c (bound_probe_s): Remove typedef.
4840 (DEF_VEC_O (bound_probe_s)): Remove VEC.
4841 (collect_probes): Change return type to std::vector, remove
4843 (compare_probes): Return bool, change parameter type. Change
4844 semantic to "less than".
4845 (gen_ui_out_table_header_info): Change parameter to std::vector
4847 (exists_probe_with_pops): Likewise.
4848 (info_probes_for_ops): Update to std::vector change.
4849 (enable_probes_command): Likewise.
4850 (disable_probes_command): Likewise.
4852 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4854 * probe.h (struct probe_ops) <get_probes>: Change parameter from
4856 * probe.c (parse_probes_in_pspace): Update.
4857 (find_probes_in_objfile): Update.
4858 (find_probe_by_pc): Update.
4859 (collect_probes): Update.
4860 (probe_any_get_probes): Update.
4861 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
4862 return type to reference to std::vector.
4863 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
4864 std::vector and update.
4865 (dtrace_process_dof): Likewise.
4866 (dtrace_get_probes): Likewise.
4867 * elfread.c (elf_get_probes): Change return type to std::vector,
4868 store an std::vector in bfd_data.
4869 (probe_key_free): Update to std::vector.
4870 * stap-probe.c (handle_stap_probe): Change parameter to
4871 std::vector and update.
4872 (stap_get_probes): Likewise.
4873 * symfile-debug.c (debug_sym_get_probes): Change return type to
4874 std::vector and update.
4876 2017-09-11 Tom Tromey <tom@tromey.com>
4878 * breakpoint.c (program_breakpoint_here_p): Update.
4879 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
4880 from make_show_memory_breakpoints_cleanup. Return a
4881 scoped_restore_tmpl<int>.
4882 (restore_show_memory_breakpoints): Remove.
4883 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
4884 * mem-break.c (memory_validate_breakpoint): Update.
4885 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
4886 (ia64_memory_remove_breakpoint): Update.
4887 (ia64_breakpoint_from_pc): Update.
4888 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
4889 from make_show_memory_breakpoints_cleanup.
4891 2017-09-11 Tom Tromey <tom@tromey.com>
4893 * d-namespace.c (d_lookup_symbol): Use std::string.
4894 (find_symbol_in_baseclass): Likewise.
4896 2017-09-11 Tom Tromey <tom@tromey.com>
4898 * ctf.c (ctf_start): Use std::string.
4900 2017-09-11 Tom Tromey <tom@tromey.com>
4902 * ada-lang.c (is_known_support_routine): Update.
4903 (ada_unhandled_exception_name_addr_from_raise): Update.
4904 * guile/scm-frame.c (gdbscm_frame_name): Update.
4905 * python/py-frame.c (frapy_name): Update.
4906 (frapy_function): Update.
4907 * stack.h (find_frame_funname): Update.
4908 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
4909 (print_frame): Update.
4911 2017-09-11 Tom Tromey <tom@tromey.com>
4913 * findcmd.c (put_bits): Take a gdb::byte_vector.
4914 (parse_find_args): Return gdb::byte_vector. "args" now const.
4915 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
4917 (find_command): Update.
4919 2017-09-11 Tom Tromey <tom@tromey.com>
4921 * cli/cli-script.c (class scoped_restore_hook_in): New.
4922 (clear_hook_in_cleanup): Remove.
4923 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
4924 scoped_restore_hook_in.
4926 2017-09-11 Tom Tromey <tom@tromey.com>
4928 * cli/cli-script.c (restore_interp): Remove.
4929 (read_command_lines): Use scoped_restore_interp.
4930 * interps.c (scoped_restore_interp::set_temp): Rename from
4932 * interps.h (class scoped_restore_interp): New.
4933 (interp_set_temp): Remove.
4935 2017-09-11 Tom Tromey <tom@tromey.com>
4937 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4938 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
4939 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
4941 (mi_cmd_break_insert_1): Update.
4942 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
4945 2017-09-11 Tom Tromey <tom@tromey.com>
4947 * demangle.c (demangle_command): Update.
4948 * breakpoint.c (disable_command): Update.
4949 (enable_command): Update.
4950 (find_location_by_number): Make "number" const. Use
4952 * cli/cli-utils.c (extract_arg): Return std::string.
4953 * probe.c (parse_probe_linespec): Update. Change types.
4954 (collect_probes): Take string arguments.
4955 (parse_probe_linespec): Likewise.
4956 (info_probes_for_ops): Update.
4957 (enable_probes_command): Update.
4958 (disable_probes_command): Update.
4959 * break-catch-sig.c (catch_signal_split_args): Update.
4960 * mi/mi-parse.c (mi_parse): Update.
4962 2017-09-11 Tom Tromey <tom@tromey.com>
4964 * language.h (language_enum): Make argument const.
4965 * language.c (language_enum): Make argument const.
4967 2017-09-11 Tom Tromey <tom@tromey.com>
4969 * common/common-utils.h (skip_to_space): Remove macro, redeclare
4971 (skip_to_space): Rename from skip_to_space_const.
4972 * common/common-utils.c (skip_to_space): New function.
4973 (skip_to_space): Rename from skip_to_space_const.
4974 * cli/cli-utils.h (get_number): Rename from get_number_const.
4975 (extract_arg): Rename from extract_arg_const.
4976 * cli/cli-utils.c (get_number): Rename from get_number_const.
4977 (extract_arg): Rename from extract_arg_const.
4978 (number_or_range_parser::get_number): Use ::get_number.
4979 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
4980 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
4981 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
4982 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
4983 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
4984 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
4985 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
4986 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
4988 2017-09-11 Tom Tromey <tom@tromey.com>
4990 * python/python.c (do_start_initialization): Use
4991 py-event-types.def to initialize types.
4992 Define all object type structures.
4993 * python/python-internal.h: Don't declare event initialization
4995 * python/py-threadevent.c (thread_event_object_type): Don't
4997 * python/py-stopevent.c (stop_event_object_type): Don't define.
4998 * python/py-signalevent.c (signal_event_object_type): Don't
5000 * python/py-newobjfileevent.c (new_objfile_event_object_type)
5001 (clear_objfiles_event_object_type): Don't declare or define.
5002 * python/py-infevents.c (inferior_call_pre_event_object_type)
5003 (inferior_call_post_event_object_type)
5004 (register_changed_event_object_type)
5005 (memory_changed_event_object_type): Don't declare or define.
5006 * python/py-inferior.c (new_thread_event_object_type)
5007 (new_inferior_event_object_type)
5008 (inferior_deleted_event_object_type): Don't declare or define.
5009 * python/py-exitedevent.c (exited_event_object_type): Don't
5011 * python/py-evts.c (gdbpy_initialize_py_events): Use
5013 * python/py-events.h (thread_event_object_type): Don't declare.
5014 (events_object): Use py-all-events.def.
5015 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
5017 * python/py-event-types.def: New file.
5018 * python/py-continueevent.c (create_continue_event_object): Don't
5020 * python/py-bpevent.c (breakpoint_event_object_type): Don't
5022 * python/py-all-events.def: New file.
5024 2017-09-11 Tom Tromey <tom@tromey.com>
5026 * python/py-threadevent.c (create_thread_event_object): Return
5028 * python/py-stopevent.h (create_stop_event_object)
5029 (create_breakpoint_event_object, create_signal_event_object):
5031 * python/py-stopevent.c (create_stop_event_object): Return
5033 (emit_stop_event): Update.
5034 * python/py-signalevent.c (create_signal_event_object): Return
5036 * python/py-infevents.c (create_inferior_call_event_object):
5038 * python/py-event.h (create_event_object)
5039 (create_thread_event_object): Update.
5040 * python/py-event.c (create_event_object): Return gdbpy_ref.
5041 * python/py-continueevent.c: Return gdbpy_ref.
5042 * python/py-bpevent.c (create_breakpoint_event_object): Return
5045 2017-09-11 Tom Tromey <tom@tromey.com>
5049 * python/python.c (do_start_initialization): Initialize new event
5051 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
5052 (gdbpy_initialize_inferior_deleted_event)
5053 (gdbpy_initialize_new_thread_event): Declare.
5054 * python/py-threadevent.c (create_thread_event_object): Add option
5056 * python/py-inferior.c (new_thread_event_object_type)
5057 (new_inferior_event_object_type)
5058 (inferior_deleted_event_object_type): Declare.
5059 (python_new_inferior, python_inferior_deleted): New functions.
5060 (add_thread_object): Emit new_thread event.
5061 (gdbpy_initialize_inferior): Attach new functions to corresponding
5063 (new_thread, new_inferior, inferior_deleted): Define new event
5065 * python/py-evts.c (gdbpy_initialize_py_events): Add new
5067 * python/py-events.h (events_object) <new_inferior,
5068 inferior_deleted, new_thread>: New fields.
5069 * python/py-event.h (create_thread_event_breakpoint): Add optional
5072 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
5074 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
5075 check current_ui instead.
5076 (internal_vproblem): Likewise.
5078 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
5080 * thread.c (print_thread_info_1): Remove unnecessary calls to
5081 uiout->is_mi_like_p.
5083 2017-09-09 Tom Tromey <tom@tromey.com>
5085 * namespace.h (add_using_directive): Update.
5086 * namespace.c (add_using_directive): Change type of excludes to
5088 * dwarf2read.c (read_import_statement): Use std::vector.
5089 (read_namespace): Update.
5090 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5092 2017-09-09 Tom Tromey <tom@tromey.com>
5094 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
5096 2017-09-09 Tom Tromey <tom@tromey.com>
5098 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
5100 2017-09-09 Tom Tromey <tom@tromey.com>
5102 * stack.c (func_command): Use gdb::def_vector.
5104 2017-09-09 Tom Tromey <tom@tromey.com>
5106 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
5107 ui_out_emit_list, ui_out_emit_tuple.
5108 (mi_cmd_var_update): Likewise.
5110 2017-09-09 Tom Tromey <tom@tromey.com>
5112 * mi/mi-interp.c (mi_user_selected_context_changed): Use
5113 ui_out_redirect_pop.
5114 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
5115 ui_out_redirect_pop.
5116 * utils.c (do_ui_out_redirect_pop)
5117 (make_cleanup_ui_out_redirect_pop): Remove.
5118 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
5119 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
5120 * ui-out.h (ui_out_redirect_pop): New class.
5122 2017-09-09 Tom Tromey <tom@tromey.com>
5124 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
5125 (list_available_thread_groups, mi_cmd_list_thread_groups)
5126 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
5127 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
5130 2017-09-09 Tom Tromey <tom@tromey.com>
5132 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5135 2017-09-09 Tom Tromey <tom@tromey.com>
5137 * target.c (flash_erase_command): Use ui_out_emit_tuple.
5138 * stack.c (print_frame): Use ui_out_emit_tuple.
5139 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
5140 (info_spu_mailbox_command, info_spu_dma_command)
5141 (info_spu_proxydma_command): Likewise.
5142 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
5143 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
5144 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
5146 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
5148 2017-09-09 Tom Tromey <tom@tromey.com>
5150 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
5151 (class ui_out_emit_table): Update comment.
5152 * ui-out.c (do_cleanup_table_end)
5153 (make_cleanup_ui_out_table_begin_end): Remove.
5154 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
5155 (info_spu_dma_cmdlist): Likewise.
5156 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
5157 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
5160 2017-09-09 Tom Tromey <tom@tromey.com>
5162 * thread.c (print_thread_info_1): Use ui_out_emit_table,
5163 ui_out_emit_list, gdb::optional.
5165 2017-09-09 John Baldwin <jhb@FreeBSD.org>
5167 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
5169 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
5171 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
5173 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
5174 * ada-exp.y: Remove _initialize_ada_exp prototype.
5175 * ada-lang.c: Remove _initialize_ada_language prototype.
5176 * ada-tasks.c: Remove _initialize_tasks prototype.
5177 * addrmap.c: Remove _initialize_addrmap prototype.
5178 * agent.c: Remove _initialize_agent prototype.
5179 * aix-thread.c: Remove _initialize_aix_thread prototype.
5180 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
5181 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
5182 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
5184 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
5185 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
5186 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
5187 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
5189 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
5191 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
5192 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
5193 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
5194 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
5196 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
5197 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
5198 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
5199 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
5200 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
5201 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
5202 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
5204 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
5206 * annotate.c: Remove _initialize_annotate prototype.
5207 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
5208 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
5209 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
5210 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
5211 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
5212 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
5213 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
5214 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
5216 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
5217 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
5218 * auto-load.c: Remove _initialize_auto_load prototype.
5219 * auxv.c: Remove _initialize_auxv prototype.
5220 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
5221 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
5222 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
5223 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
5224 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
5225 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
5227 * break-catch-throw.c: Remove _initialize_break_catch_throw
5229 * breakpoint.c: Remove _initialize_breakpoint prototype.
5230 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
5231 * btrace.c: Remove _initialize_btrace prototype.
5232 * charset.c: Remove _initialize_charset prototype.
5233 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
5234 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
5235 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
5236 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
5237 * cli/cli-script.c: Remove _initialize_cli_script prototype.
5238 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
5239 * coffread.c: Remove _initialize_coffread prototype.
5240 * compile/compile.c: Remove _initialize_compile prototype.
5241 * complaints.c: Remove _initialize_complaints prototype.
5242 * completer.c: Remove _initialize_completer prototype.
5243 * copying.awk: Remove _initialize_copying prototype.
5244 * copying.c: Regenerate.
5245 * core-regset.c: Remove _initialize_core_regset prototype.
5246 * corefile.c: Remove _initialize_core prototype.
5247 * corelow.c: Remove _initialize_corelow prototype.
5248 * cp-abi.c: Remove _initialize_cp_abi prototype.
5249 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
5250 * cp-support.c: Remove _initialize_cp_support prototype.
5251 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
5252 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
5253 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
5254 * ctf.c: Remove _initialize_ctf prototype.
5255 * d-lang.c: Remove _initialize_d_language prototype.
5256 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
5258 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
5259 * dbxread.c: Remove _initialize_dbxread prototype.
5260 * dcache.c: Remove _initialize_dcache prototype.
5261 * demangle.c: Remove _initialize_demangler prototype.
5262 * disasm-selftests.c: Remove _initialize_disasm_selftests
5264 * disasm.c: Remove _initialize_disasm prototype.
5265 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
5266 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
5267 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
5269 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
5270 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
5271 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
5272 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
5273 * elfread.c: Remove _initialize_elfread prototype.
5274 * exec.c: Remove _initialize_exec prototype.
5275 * extension.c: Remove _initialize_extension prototype.
5276 * f-lang.c: Remove _initialize_f_language prototype.
5277 * f-valprint.c: Remove _initialize_f_valprint prototype.
5278 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
5279 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
5280 * filesystem.c: Remove _initialize_filesystem prototype.
5281 * findcmd.c: Remove _initialize_mem_search prototype.
5282 * fork-child.c: Remove _initialize_fork_child prototype.
5283 * frame-base.c: Remove _initialize_frame_base prototype.
5284 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
5285 * frame.c: Remove _initialize_frame prototype.
5286 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
5287 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
5288 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
5289 * gcore.c: Remove _initialize_gcore prototype.
5290 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
5291 * gdbarch.c: Regenerate.
5292 * gdbarch.sh: Remove _initialize_gdbarch prototype.
5293 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
5294 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
5295 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
5296 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
5297 * go-lang.c: Remove _initialize_go_language prototype.
5298 * go32-nat.c: Remove _initialize_go32_nat prototype.
5299 * guile/guile.c: Remove _initialize_guile prototype.
5300 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
5301 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
5302 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
5303 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
5304 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
5305 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
5306 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
5307 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
5308 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
5309 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
5311 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
5313 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
5314 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
5315 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
5316 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
5317 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
5318 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
5319 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
5320 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
5321 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
5322 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
5323 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
5324 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
5325 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
5326 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
5327 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
5328 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
5330 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
5332 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
5333 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
5334 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
5335 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
5336 * infcall.c: Remove _initialize_infcall prototype.
5337 * infcmd.c: Remove _initialize_infcmd prototype.
5338 * inferior.c: Remove _initialize_inferiors prototype.
5339 * inflow.c: Remove _initialize_inflow prototype.
5340 * infrun.c: Remove _initialize_infrun prototype.
5341 * interps.c: Remove _initialize_interpreter prototype.
5342 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
5343 * jit.c: Remove _initialize_jit prototype.
5344 * language.c: Remove _initialize_language prototype.
5345 * linux-fork.c: Remove _initialize_linux_fork prototype.
5346 * linux-nat.c: Remove _initialize_linux_nat prototype.
5347 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
5348 * linux-thread-db.c: Remove _initialize_thread_db prototype.
5349 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
5350 * m2-lang.c: Remove _initialize_m2_language prototype.
5351 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
5352 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
5353 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
5354 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
5355 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
5356 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
5357 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
5358 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
5359 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
5360 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
5361 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
5362 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
5363 * machoread.c: Remove _initialize_machoread prototype.
5364 * macrocmd.c: Remove _initialize_macrocmd prototype.
5365 * macroscope.c: Remove _initialize_macroscope prototype.
5366 * maint.c: Remove _initialize_maint_cmds prototype.
5367 * mdebugread.c: Remove _initialize_mdebugread prototype.
5368 * memattr.c: Remove _initialize_mem prototype.
5369 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
5370 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
5371 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
5372 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
5373 * mi/mi-main.c: Remove _initialize_mi_main prototype.
5374 * microblaze-linux-tdep.c: Remove
5375 _initialize_microblaze_linux_tdep prototype.
5376 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
5377 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
5378 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
5379 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
5380 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
5381 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
5382 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
5383 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
5384 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
5385 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
5386 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
5388 * mipsread.c: Remove _initialize_mipsread prototype.
5389 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
5391 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
5392 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
5393 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
5394 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
5395 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
5396 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
5398 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
5399 * nto-procfs.c: Remove _initialize_procfs prototype.
5400 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
5401 * objc-lang.c: Remove _initialize_objc_language prototype.
5402 * objfiles.c: Remove _initialize_objfiles prototype.
5403 * observer.c: Remove observer_test_first_notification_function,
5404 observer_test_second_notification_function,
5405 observer_test_third_notification_function, and
5406 _initialize_observer prototypes.
5407 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
5408 * osabi.c: Remove _initialize_gdb_osabi prototype.
5409 * osdata.c: Remove _initialize_osdata prototype.
5410 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
5411 * parse.c: Remove _initialize_parse prototype.
5412 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
5413 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
5414 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
5415 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
5416 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
5417 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
5418 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
5419 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
5420 * printcmd.c: Remove _initialize_printcmd prototype.
5421 * probe.c: Remove _initialize_probe prototype.
5422 * proc-api.c: Remove _initialize_proc_api prototype.
5423 * proc-events.c: Remove _initialize_proc_events prototype.
5424 * proc-service.c: Remove _initialize_proc_service prototype.
5425 * procfs.c: Remove _initialize_procfs prototype.
5426 * psymtab.c: Remove _initialize_psymtab prototype.
5427 * python/python.c: Remove _initialize_python prototype.
5428 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
5429 * record-btrace.c: Remove _initialize_record_btrace prototype.
5430 * record-full.c: Remove _initialize_record_full prototype.
5431 * record.c: Remove _initialize_record prototype.
5432 * regcache.c: Remove _initialize_regcache prototype.
5433 * reggroups.c: Remove _initialize_reggroup prototype.
5434 * remote-notif.c: Remove _initialize_notif prototype.
5435 * remote-sim.c: Remove _initialize_remote_sim prototype.
5436 * remote.c: Remove _initialize_remote prototype.
5437 * reverse.c: Remove _initialize_reverse prototype.
5438 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
5439 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
5440 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
5442 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
5443 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
5444 * rust-exp.y: Remove _initialize_rust_exp prototype.
5445 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
5446 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
5447 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
5448 * score-tdep.c: Remove _initialize_score_tdep prototype.
5449 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
5451 * ser-go32.c: Remove _initialize_ser_dos prototype.
5452 * ser-mingw.c: Remove _initialize_ser_windows prototype.
5453 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
5454 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
5455 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
5456 * serial.c: Remove _initialize_serial prototype.
5457 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
5458 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
5459 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
5460 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
5461 * skip.c: Remove _initialize_step_skip prototype.
5462 * sol-thread.c: Remove _initialize_sol_thread prototype.
5463 * solib-aix.c: Remove _initialize_solib_aix prototype.
5464 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
5465 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
5466 * solib-frv.c: Remove _initialize_frv_solib prototype.
5467 * solib-spu.c: Remove _initialize_spu_solib prototype.
5468 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
5469 * solib-target.c: Remove _initialize_solib_target prototype.
5470 * solib.c: Remove _initialize_solib prototype.
5471 * source.c: Remove _initialize_source prototype.
5472 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
5473 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
5475 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
5476 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
5477 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
5478 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
5480 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
5481 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
5482 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
5483 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
5485 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
5487 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
5489 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
5491 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
5492 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
5494 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
5496 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
5498 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
5500 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
5502 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
5503 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
5504 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
5505 * stabsread.c: Remove _initialize_stabsread prototype.
5506 * stack.c: Remove _initialize_stack prototype.
5507 * stap-probe.c: Remove _initialize_stap_probe prototype.
5508 * std-regs.c: Remove _initialize_frame_reg prototype.
5509 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
5510 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
5511 * symfile.c: Remove _initialize_symfile prototype.
5512 * symmisc.c: Remove _initialize_symmisc prototype.
5513 * symtab.c: Remove _initialize_symtab prototype.
5514 * target-dcache.c: Remove _initialize_target_dcache prototype.
5515 * target-descriptions.c: Remove _initialize_target_descriptions
5517 * thread.c: Remove _initialize_thread prototype.
5518 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
5520 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
5521 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
5522 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
5524 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
5525 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
5526 * tracefile.c: Remove _initialize_tracefile prototype.
5527 * tracepoint.c: Remove _initialize_tracepoint prototype.
5528 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
5529 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
5530 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
5531 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
5532 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
5533 * tui/tui-win.c: Remove _initialize_tui_win prototype.
5534 * tui/tui.c: Remove _initialize_tui prototype.
5535 * typeprint.c: Remove _initialize_typeprint prototype.
5536 * user-regs.c: Remove _initialize_user_regs prototype.
5537 * utils.c: Remove _initialize_utils prototype.
5538 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
5539 * valarith.c: Remove _initialize_valarith prototype.
5540 * valops.c: Remove _initialize_valops prototype.
5541 * valprint.c: Remove _initialize_valprint prototype.
5542 * value.c: Remove _initialize_values prototype.
5543 * varobj.c: Remove _initialize_varobj prototype.
5544 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
5545 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
5546 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
5547 * windows-nat.c: Remove _initialize_windows_nat,
5548 _initialize_check_for_gdb_ini, and _initialize_loadable
5550 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
5551 * xcoffread.c: Remove _initialize_xcoffread prototype.
5552 * xml-support.c: Remove _initialize_xml_support prototype.
5553 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
5554 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
5556 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
5558 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
5560 2017-09-08 Keith Seitz <keiths@redhat.com>
5562 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
5565 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
5567 * f-valprint.c (f_val_print): Remove check for one byte
5568 sized integers. Remove printing of character type.
5570 2017-09-08 Frank Penczek <frank.penczek@intel.com>
5571 Christoph Weinmann <christoph.t.weinmann@intel.com>
5572 Bernhard Heckel <bernhard.heckel@intel.com>
5574 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
5575 to maintain proper indentation when printing pointers/refs.
5577 2017-09-07 Joel Brobecker <brobecker@adacore.com>
5581 2017-09-07 Joel Brobecker <brobecker@adacore.com>
5583 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
5585 2017-09-05 Tom Tromey <tom@tromey.com>
5587 * parse.c (funcall_chain): Now a std::vector.
5588 (start_arglist, end_arglist): Simplify.
5589 (free_funcalls): Remove.
5590 (parse_exp_in_context_1): Remove cleanup.
5592 2017-09-05 Tom Tromey <tom@tromey.com>
5594 * go-exp.y (go_parse): Don't create a cleanup.
5596 2017-09-05 Tom Tromey <tom@tromey.com>
5598 * d-exp.y (PrimaryExpression): Use std::string.
5599 (d_parse): Don't create a cleanup.
5601 2017-09-05 Tom Tromey <tom@tromey.com>
5603 * utils.c (do_clear_parser_state): Remove.
5604 (make_cleanup_clear_parser_state): Remove.
5605 * p-exp.y (pascal_parse): Use scoped_restore.
5606 * m2-exp.y (m2_parse): Use scoped_restore.
5607 * f-exp.y (f_parse): Use scoped_restore.
5608 * d-exp.y (d_parse): Use scoped_restore.
5609 * c-exp.y (c_parse): Use scoped_restore.
5610 * ada-exp.y (ada_parse): Use scoped_restore.
5611 * utils.h (make_cleanup_clear_parser_state): Remove.
5613 2017-09-06 Keith Seitz <keiths@redhat.com>
5615 * dwarf2read.c (dw2_linkage_name_attr): New function.
5616 (dw2_linkage_name): New function.
5617 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
5618 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
5619 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
5621 2017-09-06 Kamil Rytarowski <n54@gmx.com>
5623 * config/djgpp/djconfig.sh: Correct shell portability issue.
5625 2017-09-06 Kamil Rytarowski <n54@gmx.com>
5627 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
5629 2017-09-06 John Baldwin <jhb@FreeBSD.org>
5631 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
5632 * NEWS: Mention new FreeBSD/mips native configuration.
5633 * configure.host: Add aarch64*-*-freebsd*.
5634 * configure.nat: Likewise.
5635 * aarch64-fbsd-nat.c: New file.
5637 2017-09-06 John Baldwin <jhb@FreeBSD.org>
5639 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
5640 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
5641 * NEWS: Mention new FreeBSD/aarch64 target.
5642 * configure.tgt: Add aarch64*-*-freebsd*.
5643 * aarch64-fbsd-tdep.c: New file.
5644 * aarch64-fbsd-tdep.h: New file.
5646 2017-09-06 Kamil Rytarowski <n54@gmx.com>
5648 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
5650 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5652 * parse.c (find_minsym_type_and_address): Don't relocate addresses
5655 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5657 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
5660 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5662 * infrun.c (follow_exec): Call add_thread after
5663 target_find_description.
5665 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5667 * infrun.c (handle_inferior_event_1): When exec'ing, read
5668 stop_pc after follow_exec.
5670 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5672 * remote.c (process_g_packet): Update error message.
5674 2017-09-05 Yao Qi <yao.qi@linaro.org>
5676 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
5679 2017-09-05 Pedro Alves <palves@redhat.com>
5681 * eval.c (eval_call, evaluate_funcall): New functions, factored
5683 (evaluate_subexp_standard): ... this.
5685 2017-09-05 Yao Qi <yao.qi@linaro.org>
5687 * amd64-tdep.c (amd64_target_description): Create target
5689 (_initialize_amd64_tdep): Don't call functions
5690 initialize_tdesc_amd64_*. Add self tests.
5691 * arch/amd64.c (amd64_create_target_description): Add parameter
5692 is_linux. Call set_tdesc_osabi if is_linux is true.
5693 * arch/amd64.h (amd64_create_target_description): Update the
5695 * arch/i386.c (i386_create_target_description): Add parameter
5696 is_linux. Call set_tdesc_osabi if is_linux is true.
5697 * arch/i386.h (i386_create_target_description): Update
5699 * configure.tgt: Add i386.o to gdb_target_obs.
5700 * features/Makefile (XMLTOC): Remove i386/*.xml.
5701 * features/i386/amd64-avx-avx512.c: Remove.
5702 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
5703 * features/i386/amd64-avx-mpx.c: Remove.
5704 * features/i386/amd64-avx.c: Remove.
5705 * features/i386/amd64-mpx.c: Remove.
5706 * features/i386/amd64.c: Remove.
5707 * features/i386/i386-avx-avx512.c: Remove.
5708 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
5709 * features/i386/i386-avx-mpx.c: Remove.
5710 * features/i386/i386-avx.c: Remove.
5711 * features/i386/i386-mmx.c: Remove.
5712 * features/i386/i386-mpx.c: Remove.
5713 * features/i386/i386.c: Remove.
5714 * i386-tdep.c: Don't include features/i386/i386*.c., include
5715 target-descriptions.h and arch/i386.h.
5716 (i386_target_description): Create target descriptions.
5717 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
5718 functions. Do self tests.
5720 2017-09-05 Yao Qi <yao.qi@linaro.org>
5722 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
5723 * features/i386/amd64-avx-avx512-linux.c: Removed.
5724 * features/i386/amd64-avx-linux.c: Removed.
5725 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
5726 * features/i386/amd64-avx-mpx-linux.c: Removed.
5727 * features/i386/amd64-linux.c: Removed.
5728 * features/i386/amd64-mpx-linux.c: Removed.
5729 * features/i386/x32-avx-avx512-linux.c: Removed.
5730 * features/i386/x32-avx-linux.c: Removed.
5731 * features/i386/x32-linux.c: Removed.
5733 2017-09-05 Yao Qi <yao.qi@linaro.org>
5735 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
5737 (amd64_linux_read_description): Call
5738 amd64_create_target_description.
5739 * arch/amd64.c: New file.
5740 * arch/amd64.h: New file.
5741 * configure.tgt (x86_64-*-linux*): Append amd64.o.
5742 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
5744 2017-09-05 Yao Qi <yao.qi@linaro.org>
5746 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
5747 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
5748 (amd64_linux_read_description): Create target descriptions.
5749 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
5750 functions. Add unit tests.
5751 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
5753 * features/i386/64bit-avx.c: Generated.
5754 * features/i386/64bit-avx512.c: Generated.
5755 * features/i386/64bit-core.c: Generated.
5756 * features/i386/64bit-linux.c: Generated.
5757 * features/i386/64bit-mpx.c: Generated.
5758 * features/i386/64bit-pkeys.c: Generated.
5759 * features/i386/64bit-segments.c: Generated.
5760 * features/i386/64bit-sse.c: Generated.
5761 * features/i386/x32-core.c: Generated.
5762 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
5763 c files for amd64-linux and x32-linux.
5765 2017-09-05 Yao Qi <yao.qi@linaro.org>
5767 * amd64-linux-tdep.c (amd64_linux_read_description): New
5769 (amd64_linux_core_read_description): Call
5770 amd64_linux_read_description.
5771 (amd64_linux_init_abi): Likewise.
5772 (amd64_x32_linux_init_abi): Likewise.
5773 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
5774 * x86-linux-nat.c (x86_linux_read_description): Call
5775 amd64_linux_read_description.
5777 2017-09-05 Yao Qi <yao.qi@linaro.org>
5779 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
5782 2017-09-05 Yao Qi <yao.qi@linaro.org>
5784 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
5785 * features/i386/i386-avx-avx512-linux.c: Remove.
5786 * features/i386/i386-avx-linux.c: Remove.
5787 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
5788 * features/i386/i386-avx-mpx-linux.c: Remove.
5789 * features/i386/i386-linux.c: Remove.
5790 * features/i386/i386-mmx-linux.c: Remove.
5791 * features/i386/i386-mpx-linux.c: Remove.
5793 2017-09-05 Yao Qi <yao.qi@linaro.org>
5795 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
5796 (SFILES): Add arch/i386.c.
5797 (HFILES_NO_SRCDIR): Add arch/i386.h.
5798 * arch/i386.c: New file.
5799 * arch/i386.h: New file.
5800 * arch/tdesc.h (allocate_target_description): Declare.
5801 (set_tdesc_architecture): Declare.
5802 (set_tdesc_osabi): Declare.
5803 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
5804 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
5805 include arch/i386.h.
5806 (i386_linux_read_description): Remove code and call
5807 i386_create_target_description.
5808 (set_tdesc_architecture): New function.
5809 (set_tdesc_osabi): New function.
5810 * target-descriptions.h (allocate_target_description): Remove.
5812 2017-09-05 Yao Qi <yao.qi@linaro.org>
5814 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
5815 * target-descriptions.c (tdesc_create_feature): Likewise, and
5817 * features/i386/32bit-avx.c: Re-generated.
5818 * features/i386/32bit-avx512.c: Re-generated.
5819 * features/i386/32bit-core.c: Re-generated.
5820 * features/i386/32bit-linux.c: Re-generated.
5821 * features/i386/32bit-mpx.c: Re-generated.
5822 * features/i386/32bit-pkeys.c: Re-generated.
5823 * features/i386/32bit-sse.c: Re-generated.
5825 2017-09-05 Yao Qi <yao.qi@linaro.org>
5827 * regformats/regdef.h (struct reg): Override operator == and !=.
5829 2017-09-05 Yao Qi <yao.qi@linaro.org>
5831 * arch/tdesc.h: New file.
5832 * regformats/regdat.sh: Generate code using tdesc_create_reg.
5833 * target-descriptions.c: Update comments.
5834 * target-descriptions.h: Include "arch/tdesc.h". Remove the
5836 * features/i386/32bit-avx.c: Re-generated.
5837 * features/i386/32bit-avx512.c: Re-generated.
5838 * features/i386/32bit-core.c: Re-generated.
5839 * features/i386/32bit-linux.c: Re-generated.
5840 * features/i386/32bit-mpx.c: Re-generated.
5841 * features/i386/32bit-pkeys.c: Re-generated.
5842 * features/i386/32bit-sse.c: Re-generated.
5844 2017-09-05 Yao Qi <yao.qi@linaro.org>
5846 * regformats/regdat.sh: Update generated code.
5848 2017-09-05 Yao Qi <yao.qi@linaro.org>
5850 * regformats/regdat.sh: Adjust code order.
5852 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5854 * expprint.c (dump_subexp_body_standard): Use constant format
5855 string in fprintf_filtered call.
5857 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5859 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
5861 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
5863 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5865 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
5867 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5869 * bsd-kvm.o: Define _KMEMUSER.
5870 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
5871 * configure: Regenerate.
5873 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5875 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
5876 * i386-fbsd-nat.c: Likewise.
5878 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5880 * unittests/array-view-selftests.c: Add include of <array>.
5882 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5884 * spu-tdep.c (flush_ea_cache): Add missing argument to
5885 call_function_by_hand.
5887 2017-09-04 Pedro Alves <palves@redhat.com>
5889 * NEWS (Safer support for debugging with no debug info): New.
5891 2017-09-04 Pedro Alves <palves@redhat.com>
5893 * c-exp.y (function_method, function_method_void): Add current
5894 instance flags to TYPE_INSTANCE.
5895 * dwarf2read.c (check_modifier): New.
5896 (compute_delayed_physnames): Assert that only C++ adds delayed
5897 physnames. Mark fn_fields as const/volatile depending on
5899 * eval.c (make_params): New type_instance_flags parameter. Use
5900 it as the new type's instance flags.
5901 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
5902 flags element and pass it to make_params.
5903 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
5904 instance flags element.
5905 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
5906 * gdbtypes.h: Include "enum-flags.h".
5907 (type_instance_flags): New enum-flags type.
5908 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
5909 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
5910 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
5911 (follow_type_instance_flags): New function.
5912 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
5913 * parser-defs.h (follow_type_instance_flags): Declare.
5914 * valops.c (value_struct_elt_for_reference): const/volatile must
5917 2017-09-04 Pedro Alves <palves@redhat.com>
5919 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
5920 function/method scopes; lookup the nested name as a function local
5923 2017-09-04 Pedro Alves <palves@redhat.com>
5925 (%type <voidval>): Add function_method.
5926 * c-exp.y (exp): New production for calls with no arguments.
5927 (function_method, function_method_void_or_typelist): New
5929 (exp): New production for "method()::static_var".
5930 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
5931 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5932 Handle OP_FUNC_STATIC_VAR.
5933 * parse.c (operator_length_standard):
5934 Handle OP_FUNC_STATIC_VAR.
5936 2017-09-04 Pedro Alves <palves@redhat.com>
5938 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
5940 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5942 * parse.c (operator_length_standard, operator_check_standard):
5944 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
5946 2017-09-04 Pedro Alves <palves@redhat.com>
5948 * ax-gdb.c: Include "typeprint.h".
5949 (gen_expr_for_cast): New function.
5950 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
5951 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
5953 * dwarf2read.c (new_symbol_full): Fallback to int instead of
5954 nodebug_data_symbol.
5955 * eval.c: Include "typeprint.h".
5956 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
5957 Error out if symbol has unknown type.
5958 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
5959 evaluate_subexp_for_cast.
5960 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
5962 (evaluate_subexp_for_cast): New function.
5963 * gdbtypes.c (init_nodebug_var_type): New function.
5964 (objfile_type): Use it to initialize types of variables with no
5966 * typeprint.c (error_unknown_type): New.
5967 * typeprint.h (error_unknown_type): New declaration.
5968 * compile/compile-c-types.c (convert_type_basic): Handle
5969 TYPE_CODE_ERROR; warn and fallback to int for variables with
5972 2017-09-04 Pedro Alves <palves@redhat.com>
5974 * eval.c (evaluate_var_value): New function, factored out from ...
5975 (evaluate_subexp_standard): ... here.
5977 2017-09-04 Pedro Alves <palves@redhat.com>
5979 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
5980 Remove useless assignments to 'op'.
5982 2017-09-04 Pedro Alves <palves@redhat.com>
5984 * eval.c (eval_skip_value): New function.
5985 (evaluate_subexp_standard): Use it.
5987 2017-09-04 Pedro Alves <palves@redhat.com>
5989 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
5990 function name from symbol/minsym and pass it to
5991 error_call_unknown_return_type.
5993 2017-09-04 Pedro Alves <palves@redhat.com>
5995 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
5996 * ax-gdb.c (gen_msym_var_ref): New function.
5997 (gen_expr): Handle OP_VAR_MSYM_VALUE.
5998 * eval.c (evaluate_var_msym_value): New function.
5999 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
6000 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
6001 to call_function_by_hand.
6002 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6003 Handle OP_VAR_MSYM_VALUE.
6004 (union exp_element) <msymbol>: New field.
6005 * minsyms.h (struct type): Forward declare.
6006 (find_minsym_type_and_address): Declare.
6007 * parse.c (write_exp_elt_msym): New function.
6008 (write_exp_msymbol): Delete, refactored as ...
6009 (find_minsym_type_and_address): ... this new function.
6010 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
6011 (operator_length_standard, operator_check_standard): Handle
6013 * std-operator.def (OP_VAR_MSYM_VALUE): New.
6015 2017-09-04 Pedro Alves <palves@redhat.com>
6017 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
6018 TYPE_GNU_IFUNC specially here. Throw error if return type is
6020 * ada-typeprint.c (print_func_type): Handle functions with unknown
6022 * c-typeprint.c (c_type_print_base): Handle functions and methods
6023 with unknown return type.
6024 * compile/compile-c-symbols.c (convert_symbol_bmsym)
6025 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
6026 * compile/compile-c-types.c: Include "objfiles.h".
6027 (convert_func): For functions with unknown return type, warn and
6029 * compile/compile-object-run.c (compile_object_run): Adjust call
6030 to call_function_by_hand_dummy.
6031 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
6032 call_function_by_hand.
6033 * eval.c (evaluate_subexp_standard): Adjust calls to
6034 call_function_by_hand. Handle functions and methods with unknown
6035 return type. Pass expect_type to call_function_by_hand.
6036 * f-typeprint.c (f_type_print_base): Handle functions with unknown
6038 * gcore.c (call_target_sbrk): Adjust call to
6039 call_function_by_hand.
6040 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
6041 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
6042 an integer address type instead of nodebug.
6043 * guile/scm-value.c (gdbscm_value_call): Adjust call to
6044 call_function_by_hand.
6045 * infcall.c (error_call_unknown_return_type): New function.
6046 (call_function_by_hand): New "default_return_type" parameter.
6048 (call_function_by_hand_dummy): New "default_return_type"
6049 parameter. Use it instead of defaulting to int. If there's no
6050 default and the return type is unknown, throw an error. If
6051 there's a default return type, and the called function has no
6052 debug info, then assume the function is prototyped.
6053 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
6054 New "default_return_type" parameter.
6055 (error_call_unknown_return_type): New declaration.
6056 * linux-fork.c (call_lseek): Cast return type of lseek.
6057 (inferior_call_waitpid, checkpoint_command): Adjust calls to
6058 call_function_by_hand.
6059 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
6060 calls to call_function_by_hand.
6061 * m2-typeprint.c (m2_procedure): Handle functions with unknown
6063 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6064 (value_nsstring, print_object_command): Adjust calls to
6065 call_function_by_hand.
6066 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
6067 functions with unknown return type.
6068 (pascal_type_print_func_varspec_suffix): New function.
6069 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
6070 TYPE_CODE_METHOD>: Use it.
6071 * python/py-value.c (valpy_call): Adjust call to
6072 call_function_by_hand.
6073 * rust-lang.c (rust_evaluate_funcall): Adjust call to
6074 call_function_by_hand.
6075 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
6076 call_function_by_hand.
6077 * valops.c (value_allocate_space_in_inferior): Adjust call to
6078 call_function_by_hand.
6079 * typeprint.c (type_print_unknown_return_type): New function.
6080 * typeprint.h (type_print_unknown_return_type): New declaration.
6082 2017-09-04 Pedro Alves <palves@redhat.com>
6084 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
6085 types with more than one parameter as prototyped.
6087 2017-09-04 Pedro Alves <palves@redhat.com>
6089 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
6090 (disassemble_command): Use gdb_disassembly_flags instead of bare
6092 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
6093 (dump_insns, do_mixed_source_and_assembly_deprecated)
6094 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
6095 Use gdb_disassembly_flags instead of bare int.
6096 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
6097 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
6098 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
6099 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
6100 (enum gdb_disassembly_flag): ... values of this new enumeration.
6101 (gdb_disassembly_flags): Define.
6103 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
6104 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
6105 gdb_disassembly_flags instead of bare int.
6106 * record-btrace.c (btrace_insn_history)
6107 (record_btrace_insn_history, record_btrace_insn_history_range)
6108 (record_btrace_insn_history_from): Use gdb_disassembly_flags
6109 instead of bare int.
6110 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
6111 Use gdb_disassembly_flags instead of bare int.
6112 * target-debug.h (target_debug_print_gdb_disassembly_flags):
6114 * target-delegates.c: Regenerate.
6115 * target.c (target_insn_history, target_insn_history_from)
6116 (target_insn_history_range): Use gdb_disassembly_flags instead of
6118 * target.h: Include "disasm.h".
6119 (struct target_ops) <to_insn_history, to_insn_history_from,
6120 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
6122 (target_insn_history, target_insn_history_from)
6123 (target_insn_history_range): Use gdb_disassembly_flags instead of
6126 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6128 * cli/cli-script.c (build_command_line): For if/while commands,
6129 check whether args is empty.
6131 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6133 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
6134 (enum command_control_type): Likewise.
6135 (struct command_line): Likewise.
6136 (free_command_lines): Likewise.
6137 (struct command_lines_deleter): Likewise.
6138 (command_line_up): Likewise.
6139 (read_command_lines): Likewise.
6140 (read_command_lines_1): Likewise.
6141 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
6142 (enum command_control_type): Likewise.
6143 (struct command_line): Likewise.
6144 (free_command_lines): Likewise.
6145 (struct command_lines_deleter): Likewise.
6146 (command_line_up): Likewise.
6147 (read_command_lines): Likewise.
6148 (read_command_lines_1): Likewise.
6149 * breakpoint.h: Include cli/cli-script.h.
6150 * extension-priv.h: Likewise.
6151 * gdbcmd.h: Likewise.
6153 2017-09-04 Pedro Alves <palves@redhat.com>
6155 * ada-lang.c (is_known_support_routine): Move sal declaration to
6156 where it is initialized.
6157 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
6158 (parse_breakpoint_sals, decode_static_tracepoint_spec)
6159 (clear_command, update_static_tracepoint): Remove init_sal
6160 references. Move declarations closer to initializations.
6161 * cli/cli-cmds.c (list_command): Move sal declarations closer to
6163 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
6164 references. Move sal declarations closer to initializations.
6165 * frame.c (find_frame_sal): Return a symtab_and_line via function
6166 return instead of output parameter. Remove init_sal references.
6167 * frame.h (find_frame_sal): Return a symtab_and_line via function
6168 return instead of output parameter.
6169 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
6170 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
6172 (gdbscm_find_pc_line): Remove init_sal reference.
6173 * infcall.c (call_function_by_hand_dummy): Remove init_sal
6174 references. Move declarations closer to initializations.
6175 * infcmd.c (set_step_frame): Update. Move declarations closer to
6177 (finish_backward): Remove init_sal references. Move declarations
6178 closer to initializations.
6179 * infrun.c (process_event_stop_test, handle_step_into_function)
6180 (insert_hp_step_resume_breakpoint_at_frame)
6181 (insert_step_resume_breakpoint_at_caller): Likewise.
6182 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
6183 (symbol_to_sal): Likewise.
6184 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
6185 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
6186 to its initialization.
6187 * reverse.c (save_bookmark_command): Use new/delete. Remove
6188 init_sal references. Move declarations closer to initializations.
6189 * source.c (get_current_source_symtab_and_line): Remove brace
6191 (set_current_source_symtab_and_line): Now takes the sal by const
6192 reference. Remove brace initialization.
6193 (line_info): Remove init_sal reference.
6194 * source.h (set_current_source_symtab_and_line): Now takes a
6195 symtab_and_line via const reference.
6196 * stack.c (set_current_sal_from_frame): Adjust.
6197 (print_frame_info): Adjust.
6198 (get_last_displayed_sal): Return the sal via function return
6199 instead of via output parameter. Simplify.
6200 (frame_info): Adjust.
6201 * stack.h (get_last_displayed_sal): Return the sal via function
6202 return instead of via output parameter.
6203 * symtab.c (init_sal): Delete.
6204 (find_pc_sect_line): Remove init_sal references. Move
6205 declarations closer to initializations.
6206 (find_function_start_sal): Remove init_sal references. Move
6207 declarations closer to initializations.
6208 * symtab.h (struct symtab_and_line): In-class initialize all
6210 * tracepoint.c (set_traceframe_context)
6211 (print_one_static_tracepoint_marker): Remove init_sal references.
6212 Move declarations closer to initializations.
6213 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
6214 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
6215 declarations closer to initializations.
6216 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
6217 init_sal references. Adjust.
6219 2017-09-04 Pedro Alves <palves@redhat.com>
6221 * ax-gdb.c (agent_command_1): Use range-for.
6222 * break-catch-throw.c (re_set_exception_catchpoint): Update.
6223 * breakpoint.c: Include "common/array-view.h".
6224 (init_breakpoint_sal, create_breakpoint_sal): Change sals
6225 parameter from struct symtabs_and_lines to
6226 array_view<symtab_and_line>. Adjust. Use range-for. Update.
6227 (breakpoint_sals_to_pc): Change sals parameter from struct
6228 symtabs_and_lines to std::vector reference.
6229 (check_fast_tracepoint_sals): Change sals parameter from struct
6230 symtabs_and_lines to std::array_view. Use range-for.
6231 (decode_static_tracepoint_spec): Return a std::vector instead of
6232 symtabs_and_lines. Update.
6233 (create_breakpoint): Update.
6234 (break_range_command, until_break_command, clear_command): Update.
6235 (base_breakpoint_decode_location, bkpt_decode_location)
6236 (bkpt_probe_create_sals_from_location)
6237 (bkpt_probe_decode_location, tracepoint_decode_location)
6238 (tracepoint_probe_decode_location)
6239 (strace_marker_create_sals_from_location): Return a std::vector
6240 instead of symtabs_and_lines.
6241 (strace_marker_create_breakpoints_sal): Update.
6242 (strace_marker_decode_location): Return a std::vector instead of
6243 symtabs_and_lines. Update.
6244 (update_breakpoint_locations): Change struct symtabs_and_lines
6245 parameters to gdb::array_view. Adjust.
6246 (location_to_sals): Return a std::vector instead of
6247 symtabs_and_lines. Update.
6248 (breakpoint_re_set_default): Use std::vector instead of struct
6250 (decode_location_default): Return a std::vector instead of
6251 symtabs_and_lines. Update.
6252 * breakpoint.h: Include "common/array-view.h".
6253 (struct breakpoint_ops) <decode_location>: Now returns a
6254 std::vector instead of returning a symtabs_and_lines via output
6256 (update_breakpoint_locations): Change sals parameters to use
6258 * cli/cli-cmds.c (edit_command, list_command): Update to use
6259 std::vector and gdb::array_view.
6260 (ambiguous_line_spec): Adjust to use gdb::array_view and
6262 (compare_symtabs): Rename to ...
6263 (cmp_symtabs): ... this. Change parameters to symtab_and_line
6264 const reference and adjust.
6265 (filter_sals): Rewrite using std::vector and standard algorithms.
6266 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
6267 (jump_command): Update to use std::vector.
6268 * linespec.c (struct linespec_state) <canonical_names>: Update
6270 (add_sal_to_sals_basic): Delete.
6271 (add_sal_to_sals, filter_results, convert_results_to_lsals)
6272 (decode_line_2, create_sals_line_offset)
6273 (convert_address_location_to_sals, convert_linespec_to_sals)
6274 (convert_explicit_location_to_sals, parse_linespec)
6275 (event_location_to_sals, decode_line_full, decode_line_1)
6276 (decode_line_with_current_source)
6277 (decode_line_with_last_displayed, decode_objc)
6278 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
6279 (linespec_result::~linespec_result): Adjust to use std::vector
6280 instead of symtabs_and_lines.
6281 * linespec.h (linespec_sals::sals): Now a std::vector.
6282 (struct linespec_result): Use std::vector, bool, and in-class
6284 (decode_line_1, decode_line_with_current_source)
6285 (decode_line_with_last_displayed): Return std::vector.
6286 * macrocmd.c (info_macros_command): Use std::vector.
6287 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
6288 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
6290 * probe.h (parse_probes): Return a std::vector.
6291 * python/python.c (gdbpy_decode_line): Use std::vector and
6293 * source.c (select_source_symtab, line_info): Use std::vector.
6294 * stack.c (func_command): Use std::vector.
6295 * symtab.h (struct symtabs_and_lines): Delete.
6296 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
6298 2017-09-04 Pedro Alves <palves@redhat.com>
6300 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6301 unittests/array-view-selftests.c.
6302 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
6303 * common/array-view.h: New file.
6304 * unittests/array-view-selftests.c: New file.
6306 2017-09-04 Pedro Alves <palves@redhat.com>
6308 * cli/cli-cmds.c (edit_command): Pass message to
6309 ambiguous_line_spec.
6310 (list_command): Pass message to ambiguous_line_spec. Say
6311 "first"/"last" instead of "start" and "end" to be consistent with
6313 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
6314 them to print formatted message.
6316 2017-09-04 Pedro Alves <palves@redhat.com>
6318 * btrace.c (ftrace_add_pt): Pass btrace_insn to
6319 ftrace_update_insns by reference instead of pointer.
6321 2017-09-04 Yao Qi <yao.qi@linaro.org>
6323 * i386-go32-tdep.c: Include x86-xstate.h.
6324 (i386_go32_init_abi): Call i386_target_description.
6325 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
6326 if xcr0 is X86_XSTATE_X87_MASK.
6327 * i386-tdep.h (tdesc_i386): Remove the declaration.
6328 (tdesc_i386_mmx): Likewise.
6330 2017-09-04 Yao Qi <yao.qi@linaro.org>
6332 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
6333 X86_XSTATE_SSE_MASK instead of 0.
6335 2017-09-04 Yao Qi <yao.qi@linaro.org>
6337 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
6338 i386_target_description.
6339 * i386-fbsd-nat.c (i386fbsd_read_description): Call
6340 i386_target_description.
6341 * i386-tdep.c (i386_gdbarch_init): Likewise.
6343 2017-09-04 Yao Qi <yao.qi@linaro.org>
6345 * amd64-darwin-tdep.c: Include "x86-xstate.h".
6346 (x86_darwin_init_abi_64): Call amd64_target_description.
6347 * amd64-dicos-tdep.c: Likewise.
6348 * amd64-fbsd-nat.c: Likewise.
6349 * amd64-fbsd-tdep.c: Likewise.
6350 * amd64-nbsd-tdep.c: Likewise.
6351 * amd64-obsd-tdep.c: Likewise.
6352 * amd64-sol2-tdep.c: Likewise.
6353 * amd64-windows-tdep.c: Likewise.
6354 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
6356 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6358 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
6359 (btrace_function) <insn>: Change type to use std::vector.
6360 * btrace.c (ftrace_debug, ftrace_call_num_insn,
6361 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
6362 ftrace_update_insns, ftrace_compute_global_level_offset,
6363 btrace_stitch_bts, btrace_clear, btrace_insn_get,
6364 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
6365 change to std::vector.
6366 (ftrace_update_insns): Adjust to change to std::vector, change
6367 type of INSN parameter.
6368 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
6369 * record-btrace.c (btrace_call_history_insn_range,
6370 btrace_compute_src_line_range,
6371 record_btrace_frame_prev_register): Adjust to change to
6373 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
6374 to change to std::vector.
6376 2017-09-03 Tom Tromey <tom@tromey.com>
6378 * corefile.c (reopen_exec_file): Use std::string.
6380 2017-09-03 Tom Tromey <tom@tromey.com>
6382 * compile/compile.c (compile_register_name_mangled): Return
6384 * compile/compile-loc2c.c (pushf_register_address): Update.
6385 (pushf_register): Update.
6386 * compile/compile-c-types.c (convert_array): Update.
6387 * compile/compile-c-symbols.c (generate_vla_size): Update.
6388 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
6389 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
6390 (convert_one_symbol): Update.
6391 (generate_c_for_for_one_variable): Update.
6392 * compile/compile-c-support.c (c_get_range_decl_name): Return a
6394 (generate_register_struct): Update.
6395 * compile/compile-internal.h (c_get_range_decl_name): Return a
6397 (compile_register_name_mangled): Return std::string.
6399 2017-09-03 Tom Tromey <tom@tromey.com>
6401 * utils.c (perror_string): Return a std::string.
6402 (throw_perror_with_name, perror_warning_with_name): Update.
6404 2017-09-03 Tom Tromey <tom@tromey.com>
6406 * demangle.c (demangle_command): Use std::string,
6409 2017-09-03 Tom Tromey <tom@tromey.com>
6411 * cli/cli-setshow.c (do_set_command): Use std::string.
6413 2017-09-03 Tom Tromey <tom@tromey.com>
6415 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
6417 2017-09-03 Tom Tromey <tom@tromey.com>
6419 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
6421 2017-09-03 Tom Tromey <tom@tromey.com>
6423 * mi/mi-cmd-env.c (env_execute_cli_command): Use
6424 gdb::unique_xmalloc_ptr.
6426 2017-09-03 Tom Tromey <tom@tromey.com>
6428 * thread.c (print_thread_info_1): Use string_printf.
6429 (thread_apply_command, thread_apply_all_command): Use
6432 2017-09-03 Tom Tromey <tom@tromey.com>
6434 * valprint.c (val_print_string): Update.
6435 * gdbcore.h (memory_error_message): Return std::string.
6436 * corefile.c (memory_error_message): Return std::string.
6437 (memory_error): Update.
6438 * breakpoint.c (insert_bp_location): Update.
6440 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6442 * target/waitstatus.h (target_waitstatus_to_string): Change
6443 return type to std::string.
6444 * target/waitstatus.c (target_waitstatus_to_string): Return
6446 * target.h (target_waitstatus_to_string): Remove declaration.
6447 * infrun.c (resume, clear_proceed_status_thread,
6448 print_target_wait_results, do_target_wait, save_waitstatus,
6449 stop_all_threads): Adjust.
6450 * record-btrace.c (record_btrace_wait): Adjust.
6452 (target_debug_print_struct_target_waitstatus_p): Adjust.
6454 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6457 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
6460 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6462 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
6463 for setting/unsetting environment variables on the remote target.
6464 (New remote packets): Add entries for QEnvironmentHexEncoded,
6465 QEnvironmentUnset and QEnvironmentReset.
6466 * common/environ.c (gdb_environ::operator=): Extend method to
6467 handle m_user_set_env_list and m_user_unset_env_list.
6468 (gdb_environ::clear): Likewise.
6469 (match_var_in_string): Change type of first parameter from 'char
6470 *' to 'const char *'.
6471 (gdb_environ::set): Extend method to handle
6472 m_user_set_env_list and m_user_unset_env_list.
6473 (gdb_environ::unset): Likewise.
6474 (gdb_environ::clear_user_set_env): New method.
6475 (gdb_environ::user_set_envp): Likewise.
6476 (gdb_environ::user_unset_envp): Likewise.
6477 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
6478 m_user_unset_env_list on move constructor/assignment.
6479 (unset): Add new default parameter 'update_unset_list = true'.
6480 (clear_user_set_env): New method.
6481 (user_set_envp): Likewise.
6482 (user_unset_envp): Likewise.
6483 (m_user_set_env_list): New std::set.
6484 (m_user_unset_env_list): Likewise.
6485 * common/rsp-low.c (hex2str): New function.
6486 (bin2hex): New overload for bin2hex function.
6487 * common/rsp-low.c (hex2str): New prototype.
6488 (str2hex): New overload prototype.
6489 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
6490 QEnvironmentUnset and QEnvironmentReset.
6491 (remote_protocol_features): Add QEnvironmentHexEncoded,
6492 QEnvironmentUnset and QEnvironmentReset packets.
6493 (send_environment_packet): New function.
6494 (extended_remote_environment_support): Likewise.
6495 (extended_remote_create_inferior): Call
6496 extended_remote_environment_support.
6497 (_initialize_remote): Add QEnvironmentHexEncoded,
6498 QEnvironmentUnset and QEnvironmentReset packet configs.
6499 * unittests/environ-selftests.c (gdb_selftest_env_var):
6501 (test_vector_initialization): New function.
6502 (test_init_from_host_environ): Likewise.
6503 (test_reinit_from_host_environ): Likewise.
6504 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
6506 (test_unset_set_empty_vector): Likewise.
6507 (test_vector_clear): Likewise.
6508 (test_std_move): Likewise.
6509 (test_move_constructor):
6510 (test_self_move): Likewise.
6511 (test_set_unset_reset): Likewise.
6512 (run_tests): Rewrite in terms of the functions above.
6514 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
6516 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
6517 (adi_available): Use a temp variable of type CORE_ADDR as argument
6518 3 when calling target_auxv_search.
6519 (adi_normalize_address): Use masks and xor operators to calculate
6521 (adi_read_versions, adi_write_versions, adi_print_versions)
6522 (do_examine, do_assign): Use paddress.
6524 2017-08-29 John Baldwin <jhb@FreeBSD.org>
6526 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
6527 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
6528 out of loop and add supply of FIR.
6529 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
6532 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
6535 * cli/cli-script.c (define_command): Don't convert command name
6538 2017-08-25 Joel Brobecker <brobecker@adacore.com>
6540 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
6541 Update all callers accordingly. Remove all code blocks handling
6542 the case where DISPP is not NULL.
6544 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6547 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
6548 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6549 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
6551 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6553 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
6554 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
6555 (read_comp_units_from_section): New parameter abbrev_section, use
6556 read_and_check_comp_unit_head, allocate signatured_type if needed.
6557 (create_all_comp_units): Update read_comp_units_from_section caller.
6559 2017-08-23 Pedro Alves <palves@redhat.com>
6562 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
6563 to null_ptid and switch to thread without reading the registers
6564 after adding the inferior.
6566 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6568 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
6570 * compile/compile.c (compile_gcc, show_compile_gcc): New.
6571 (compile_to_object): Implement compile_gcc.
6572 (_initialize_compile): Install "set compile-gcc". Initialize
6575 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6577 * compile/compile.c (compile_to_object): Conditionally call
6578 set_verbose. Conditionally call compile or compile_v0.
6580 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
6582 * sparc64-tdep.h: (adi_normalize_address): New export.
6583 * sparc-nat.h: (open_adi_tag_fd): New export.
6584 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
6585 * sparc64-linux-tdep.c:
6586 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
6587 (sparc64_linux_handle_segmentation_fault): New function.
6588 (sparc64_linux_init_abi): Register
6589 sparc64_linux_handle_segmentation_fault
6590 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
6591 (sparc64_addr_bits_remove): New function.
6592 (sparc64_init_abi): Register sparc64_addr_bits_remove.
6593 (MAX_PROC_NAME_SIZE): New macro.
6594 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
6595 (sparc64adilist): New variable.
6596 (adi_proc_list): New variable.
6597 (find_adi_info): New function.
6598 (add_adi_info): New function.
6599 (get_adi_info_proc): New function.
6600 (get_adi_info): New function.
6601 (info_adi_command): New function.
6602 (read_maps_entry): New function.
6603 (adi_available): New function.
6604 (adi_normalize_address): New function.
6605 (adi_align_address): New function.
6606 (adi_convert_byte_count): New function.
6607 (adi_tag_fd): New function.
6608 (adi_is_addr_mapped): New function.
6609 (adi_read_versions): New function.
6610 (adi_write_versions): New function.
6611 (adi_print_versions): New function.
6612 (do_examine): New function.
6613 (do_assign): New function.
6614 (adi_examine_command): New function.
6615 (adi_assign_command): New function.
6616 (_initialize_sparc64_adi_tdep): New function.
6618 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
6620 * breakpoint.c (breakpoints_info): Rename to ...
6621 (info_breakpoints_command): ... this.
6622 (watchpoints_info): Rename to ...
6623 (info_watchpoints_command): ... this.
6624 (tracepoints_info): Rename to ...
6625 (info_tracepoints_command): ... this.
6626 (_initialize_breakpoint): Adjust.
6627 * dcache.c (dcache_info): Rename to ...
6628 (info_display_command): ... this.
6629 (_initialize_dcache): Adjust.
6630 * frame.h (args_info): Rename to ...
6631 (info_args_command): ... this.
6632 (locals_info): Rename to ...
6633 (info_locals_command): ... this.
6634 * infcmd.c (nofp_registers_info): Rename to ...
6635 (info_registers_command): ... this.
6636 (float_info): Rename to ...
6637 (info_float_command): ... this.
6638 (program_info): Rename to ...
6639 (info_program_command): ... this.
6640 (all_registers_info): Rename to ...
6641 (info_all_registers_command): ... this.
6642 (vector_info): Rename to ...
6643 (info_vector_command): ... this.
6644 (float_info): Rename to ...
6645 (info_float_command): ... this.
6646 (_initialize_infcmd): Adjust.
6647 * inferior.h (term_info): Rename to ...
6648 (info_terminal_command): ... this.
6649 * inflow.c (term_info): Rename to ...
6650 (info_terminal_command): ... this.
6651 (_initialize_inflow): Adjust.
6652 * infrun.c (signals_info): Rename to ...
6653 (info_signals_command): ... this.
6654 (_initialize_infrun): Adjust.
6655 * objc-lang.c (classes_info): Rename to ...
6656 (info_classes_command): ... this.
6657 (selectors_info): Rename to ...
6658 (info_selectors_command): ... this.
6659 (_initialize_objc_language): Adjust.
6660 * printcmd.c (sym_info): Rename to ...
6661 (info_symbol_command): ... this.
6662 (address_info): Rename to ...
6663 (info_address_command): ... this.
6664 (display_info): Rename to ...
6665 (info_display_command): ... this.
6666 (_initialize_printcmd): Adjust.
6667 * reverse.c (bookmarks_info): Rename to ...
6668 (info_breakpoints_command): ... this.
6669 (_initialize_reverse): Adjust.
6670 * ser-go32.c (dos_info): Rename to ...
6671 (info_serial_command): ... this.
6672 (_initialize_ser_dos): Adjust.
6673 * skip.c (skip_info): Rename to ...
6674 (info_skip_command): ... this.
6675 (_initialize_step_skip): Adjust.
6676 * source.c (line_info): Rename to ...
6677 (info_line_command): ... this.
6678 (source_info): Rename to ...
6679 (info_source_command)
6680 * stack.c (frame_info): Rename to ...
6681 (info_frame_command): ... this.
6682 (locals_info): Rename to ...
6683 (info_locals_command): ... this.
6684 (args_info): Rename to ...
6685 (info_args_command): ... this.
6686 (_initialize_stack): Adjust.
6687 * symtab.c (sources_info): Rename to ...
6688 (info_sources_command): ... this.
6689 (variables_info): Rename to ...
6690 (info_variables_command): ... this.
6691 (functions_info): Rename to ...
6692 (info_functions_command): ... this.
6693 (types_info): Rename to ...
6694 (info_types_command): ... this.
6695 (_initialize_symtab): Adjust.
6696 * target.c (target_info): Rename to ...
6697 (info_target_command): ... this.
6698 (initialize_targets): Adjust.
6699 * tracepoint.c (tvariables_info): Rename to ...
6700 (info_tvariables_command): ... this.
6701 (scope_info): Rename to ...
6702 (info_scope_command): ... this.
6703 (trace_dump_actions): Adjust.
6704 (_initialize_tracepoint): Adjust.
6706 2017-08-22 Tom Tromey <tom@tromey.com>
6708 * breakpoint.h (install_breakpoint): Update.
6709 * breakpoint.c (add_solib_catchpoint): Update.
6710 (install_breakpoint): Change argument to a std::unique_ptr.
6711 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
6712 (create_breakpoint_sal, create_breakpoint): Update.
6713 (watch_command_1, catch_exec_command_1)
6714 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
6715 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
6716 Return the breakpoint.
6717 (set_raw_breakpoint_without_location, set_raw_breakpoint)
6718 (new_single_step_breakpoint): Update.
6719 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
6721 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6723 * break-catch-sig.c (create_signal_catchpoint): Use
6725 * ada-lang.c (create_ada_exception_catchpoint): Use
6728 2017-08-22 Tom Tromey <tom@tromey.com>
6730 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
6732 2017-08-22 Tom Tromey <tom@tromey.com>
6734 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
6735 (lookup_partial_symbol): Update.
6737 2017-08-22 Tom Tromey <tom@tromey.com>
6739 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
6740 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
6741 (find_and_open_source, symtab_to_fullname): Update.
6742 * psymtab.c (psymtab_to_fullname): Update.
6744 2017-08-22 Tom Tromey <tom@tromey.com>
6746 * exec.c (exec_file_attach): Update.
6747 * linux-thread-db.c (try_thread_db_load): Update.
6748 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
6749 * utils.c (gdb_realpath): Change return type.
6750 (gdb_realpath_keepfile): Update.
6751 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
6752 (_initialize_utils): Register the new self test.
6753 * source.c (openp): Update.
6754 (find_and_open_source): Update.
6755 * nto-tdep.c (nto_find_and_open_solib): Update.
6756 * main.c (set_gdb_data_directory): Update.
6757 (captured_main_1): Update.
6758 * dwarf2read.c (dwarf2_get_dwz_file): Update
6759 (dw2_map_symbol_filenames): Update.
6760 * auto-load.c (auto_load_safe_path_vec_update): Update.
6761 (filename_is_in_auto_load_safe_path_vec): Change type of
6763 (auto_load_objfile_script): Update.
6764 (file_is_auto_load_safe): Update. Use std::string.
6765 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
6767 2017-08-22 Tom Tromey <tom@tromey.com>
6769 * utils.c (gdb_realpath_keepfile): Return a
6770 gdb::unique_xmalloc_ptr.
6771 * exec.c (exec_file_attach): Update.
6772 * utils.h (gdb_realpath_keepfile): Return a
6773 gdb::unique_xmalloc_ptr.
6775 2017-08-22 Tom Tromey <tom@tromey.com>
6777 * compile/compile.c (compile_file_command): Use
6778 gdb::unique_xmalloc_ptr, std::string.
6779 * utils.c (gdb_abspath): Change return type.
6780 * source.c (openp): Update.
6781 * objfiles.c (allocate_objfile): Update.
6782 * main.c (set_gdb_data_directory): Update.
6783 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
6785 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
6787 * cli-cmds.c (list_commands): List actual code around more than
6790 2017-08-21 John Baldwin <jhb@FreeBSD.org>
6792 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
6794 2017-08-21 Pedro Alves <palves@redhat.com>
6797 * c-exp.y (variable production): Handle function aliases.
6798 * minsyms.c (msymbol_is_text): New function.
6799 * minsyms.h (msymbol_is_text): Declare.
6800 * symtab.c (find_function_alias_target): New function.
6801 * symtab.h (find_function_alias_target): Declare.
6803 2017-08-21 Pedro Alves <palves@redhat.com>
6805 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
6807 * typeprint.c (whatis_exp): If handling "whatis", and expression
6808 is OP_TYPE, strip one typedef level. Otherwise don't strip
6810 * valops.c (value_cast): Save "to" type before resolving
6811 stubs/typedefs. Use that type as resulting value's type.
6813 2017-08-18 Tom Tromey <tom@tromey.com>
6814 Pedro Alves <palves@redhat.com>
6816 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
6817 * sol-thread.c (sol_thread_resume, sol_thread_wait)
6818 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
6819 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
6820 * proc-service.c (ps_xfer_memory): Use scoped_restore.
6821 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
6822 (linux_get_siginfo_data): Add "thread" argument. Use
6824 * linux-nat.c (linux_child_follow_fork)
6825 (check_stopped_by_watchpoint): Use scoped_restore.
6826 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
6827 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
6828 (restore_inferior_ptid, save_inferior_ptid): Remove.
6829 * btrace.c (btrace_fetch): Use scoped_restore.
6830 * bsd-uthread.c (bsd_uthread_fetch_registers)
6831 (bsd_uthread_store_registers): Use scoped_restore.
6832 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
6834 * aix-thread.c (aix_thread_resume, aix_thread_wait)
6835 (aix_thread_xfer_partial): Use scoped_restore.
6836 * inferior.h (save_inferior_ptid): Remove.
6838 2017-08-18 Yao Qi <yao.qi@linaro.org>
6841 * arm-tdep.c (gdb_print_insn_arm): Mark
6842 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
6844 2017-08-18 Yao Qi <yao.qi@linaro.org>
6846 * NEWS: Mention GDBserver's new option "--selftest".
6847 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
6848 * selftest.c: Move it to common/selftest.c.
6849 * selftest.h: Move it to common/selftest.h.
6850 * selftest-arch.c (reset): New function.
6851 (tests_with_arch): Call reset.
6853 2017-08-18 Yao Qi <yao.qi@linaro.org>
6855 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
6856 instead of exception_fprintf and printf_filtered.
6858 2017-08-18 Yao Qi <yao.qi@linaro.org>
6860 * selftest.c (register_self_test): Rename it to
6861 selftests::register_test.
6862 (run_self_tests): selftest::run_tests.
6863 * selftest.h: Update declarations.
6864 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
6865 selftests::register_test_foreach_arch.
6866 * selftest-arch.h: Update declaration.
6867 * aarch64-tdep.c: Update.
6868 * arm-tdep.c: Likewise.
6869 * disasm-selftests.c: Likewise.
6870 * dwarf2loc.c: Likewise.
6871 * dwarf2-frame.c: Likewise.
6872 * findvar.c: Likewise.
6873 * gdbarch-selftests.c: Likewise.
6874 * maint.c (maintenance_selftest): Likewise.
6875 * regcache.c: Likewise.
6876 * rust-exp.y: Likewise.
6877 * selftest-arch.c: Likewise.
6878 * unittests/environ-selftests.c: Likewise.
6879 * unittests/function-view-selftests.c: Likewise.
6880 * unittests/offset-type-selftests.c: Likewise.
6881 * unittests/optional-selftests.c: Likewise.
6882 * unittests/scoped_restore-selftests.c: Likewise.
6883 * utils-selftests.c: Likewise.
6885 2017-08-17 Pedro Alves <palves@redhat.com>
6887 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
6890 2017-08-17 Pedro Alves <palves@redhat.com>
6892 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
6894 (reset_die_in_process): Delete, replaced by ...
6895 (process_die_scope): ... this new class. Make it responsible for
6896 freeing cu->line_header too.
6897 (process_die): Use process_die_scope.
6898 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
6899 cu->line_header_die_owner. Don't release the line header if it's
6901 (setup_type_unit_groups): Make the CU/DIE own the line header.
6902 Don't release the line header here.
6904 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
6906 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
6908 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
6910 * NEWS: Mention new shortcuts for nexti and stepi in TUI
6913 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
6915 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
6918 2017-08-15 Stafford Horne <shorne@gmail.com>
6920 * MAINTAINERS (Write After Approval): Add Stafford Horne.
6922 2017-08-15 Stafford Horne <shorne@gmail.com>
6924 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
6926 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
6929 * infcmd.c (unset_environment_command): Use the 'clear' method on
6930 the environment instead of resetting it.
6932 2017-08-15 John Baldwin <jhb@FreeBSD.org>
6934 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
6937 2017-08-14 Tom Tromey <tom@tromey.com>
6939 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
6940 (print_binary_chars): Likewise.
6941 (BITS_IN_BYTES): Remove.
6943 2017-08-14 Tom Tromey <tom@tromey.com>
6946 * valprint.c (LOW_ZERO): Change value to 034.
6947 (print_octal_chars): Add static_asserts for octal constants.
6948 * printcmd.c (print_scalar_formatted): Add 'd' case.
6950 2017-08-11 Tom Tromey <tom@tromey.com>
6952 * symfile.c (add_symbol_file_command): Use std::vector.
6954 2017-08-14 Tom Tromey <tom@tromey.com>
6956 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
6957 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6959 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
6961 2017-08-11 Pedro Alves <palves@redhat.com>
6963 * infrun.c (process_event_stop_test): Adjust
6964 function_name_is_marked_for_skip call.
6965 * skip.c: Include <list>.
6966 (skiplist_entry): Make it a class with private fields, and
6968 (skiplist_entry_chain): Delete.
6969 (skiplist_entries): New.
6970 (skiplist_entry_count): Delete.
6971 (highest_skiplist_entry_num): New.
6972 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
6973 (add_skiplist_entry): Delete.
6974 (skiplist_entry::skiplist_entry): New.
6975 (skiplist_entry::add_entry): New.
6976 (skip_file_command, skip_function): Adjust.
6977 (compile_skip_regexp): Delete.
6978 (skip_command): Don't compile regexp here. Adjust to use
6979 skiplist_entry::add_entry.
6980 (skip_info): Adjust to use range-for and getters.
6981 (skip_enable_command, skip_disable_command): Adjust to use
6982 range-for and setters.
6983 (skip_delete_command): Adjust to use std::list.
6984 (add_skiplist_entry): Delete.
6985 (skip_file_p): Delete, refactored as ...
6986 (skiplist_entry::do_skip_file_p): ... this new method.
6987 (skip_gfile_p): Delete, refactored as ...
6988 (skiplist_entry::do_gskip_file_p): ... this new method.
6989 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
6990 (skiplist_entry::skip_function_p): ... this new method.
6991 (function_name_is_marked_for_skip): Now returns bool, and takes
6992 the function sal by const reference. Adjust to use range-for and
6993 skiplist_entry methods.
6994 (_initialize_step_skip): Remove references to
6995 skiplist_entry_chain, skiplist_entry_count.
6996 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
6997 takes the function sal by const reference.
6999 2017-08-11 Yao Qi <yao.qi@linaro.org>
7001 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
7002 (dwarf2_frame_cache): Remove reset_cache_cleanup.
7003 (dwarf2_frame_cache):
7004 * frame-unwind.c (frame_unwind_try_unwinder): Catch
7005 RETURN_MASK_ALL and set *this_case to NULL.
7006 * frame-unwind.h: Update comments.
7008 2017-08-11 Yao Qi <yao.qi@linaro.org>
7010 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
7011 (dwarf2_frame_state_copy_regs): Remove.
7012 (dwarf2_frame_state_free_regs): Remove.
7013 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
7014 (dwarf2_restore_rule): Call method .alloc_regs instead of
7015 dwarf2_frame_state_alloc_regs.
7016 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
7017 constructor. Call std::move.
7018 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
7019 (dwarf2_frame_cache): Likewise.
7021 [GDB_SELF_TEST]: Include selftest.h and
7023 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
7024 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
7025 execute_cfa_program_test.
7027 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
7028 copy ctor, assignment operator, move assignment.
7029 <alloc_regs>: New method.
7031 (struct dwarf2_frame_state): Delete dtor.
7032 (dwarf2_frame_state_alloc_regs): Remove declaration.
7033 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
7034 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
7036 2017-08-11 Yao Qi <yao.qi@linaro.org>
7038 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
7039 (dwarf2_frame_state::dwarf2_frame_state): New.
7040 (dwarf2_frame_state::~dwarf2_frame_state): New.
7041 (dwarf2_fetch_cfa_info): Update.
7042 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
7043 rather than a pointer. Update code.
7044 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
7046 <data_align, code_align, retaddr_column>: Change them to const.
7047 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
7050 2017-08-11 Yao Qi <yao.qi@linaro.org>
7052 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
7053 <loc.exp>: New field.
7054 * dwarf2-frame.c (execute_cfa_program): Update.
7055 (dwarf2_frame_prev_register): Update.
7057 2017-08-10 Pedro Alves <palves@redhat.com>
7059 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
7061 2017-08-09 John Baldwin <jhb@FreeBSD.org>
7063 * fbsd-nat.c (struct fbsd_fork_info): Remove.
7064 (fbsd_pending_children): Use std::list.
7065 (fbsd_remember_child): Likewise.
7066 (fbsd_is_child_pending): Likewise.
7067 (fbsd_pending_vfork_done): Use std::forward_list.
7068 (fbsd_add_vfork_done): Likewise.
7069 (fbsd_is_vfork_done_pending): Likewise.
7070 (fbsd_next_vfork_done): Likewise.
7072 2017-08-09 John Baldwin <jhb@FreeBSD.org>
7074 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
7075 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
7076 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
7078 (fbsd_xfer_partial): Use gdb::byte_vector.
7079 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
7081 2017-08-09 John Baldwin <jhb@FreeBSD.org>
7083 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
7085 (fbsd_find_memory_regions): Fix `mapfile' initialization.
7087 2017-08-09 Tom Tromey <tom@tromey.com>
7089 * skip.c (skiplist_entry): New constructor.
7090 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
7091 (skiplist_entry::file_is_glob): Now bool.
7092 (skiplist_entry::file, skiplist_entry::function): Now
7094 (make_skip_entry): Return a unique_ptr. Use new.
7095 (free_skiplist_entry, free_skiplist_entry_cleanup)
7096 (make_free_skiplist_entry_cleanup): Remove.
7097 (skip_command, skip_disable_command, add_skiplist_entry)
7098 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
7099 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
7100 (function_name_is_marked_for_skip): Update.
7101 (skip_delete_command): Update. Use delete.
7103 2017-08-09 Jiong Wang <jiong.wang@arm.com>
7105 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
7106 (aarch64_linux_core_read_description): New function.
7107 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
7109 2017-08-09 Pedro Alves <palves@redhat.com>
7111 * cp-name-parser.y (cp_comp_to_string): Return a
7112 gdb::unique_xmalloc_ptr<char>.
7113 * cp-support.c (replace_typedefs_qualified_name)
7114 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
7115 (cp_canonicalize_string_full): Use op= instead of explicit
7117 (cp_class_name_from_physname, method_name_from_physname)
7118 (cp_func_name, cp_remove_params): Adjust to use
7119 gdb::unique_xmalloc_ptr<char>.
7120 * cp-support.h (cp_comp_to_string): Return a
7121 gdb::unique_xmalloc_ptr<char>.
7122 * python/py-type.c (typy_lookup_type): Adjust to use
7123 gdb::unique_xmalloc_ptr<char>.
7125 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
7127 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
7129 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
7130 Yao Qi <yao.qi@linaro.org>
7132 * cp-support.c (cp_canonicalize_string_full): Use
7133 gdb::unique_xmalloc_ptr<char>.
7134 (cp_canonicalize_string): Likewise.
7136 2017-08-09 Yao Qi <yao.qi@linaro.org>
7138 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
7139 * regformats/i386/amd64-avx-avx512.dat: Remove.
7140 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
7141 * regformats/i386/amd64-avx-mpx.dat:Remove.
7142 * regformats/i386/amd64-avx.dat: Remove.
7143 * regformats/i386/amd64-mpx.dat: Remove.
7144 * regformats/i386/i386-avx-avx512.dat: Remove.
7145 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
7146 * regformats/i386/i386-avx-mpx.dat: Remove.
7147 * regformats/i386/i386-mmx.dat: Remove.
7148 * regformats/i386/i386-mpx.dat: Remove.
7150 2017-08-09 Yao Qi <yao.qi@linaro.org>
7152 * amd64-tdep.h (tdesc_x32): Remove the declaration.
7153 * amd64-tdep.c: Don't include features/i386/x32*.c.
7154 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
7156 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
7157 and i386/x32-avx-avx512.
7158 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
7160 * features/i386/x32-avx-avx512.c: Removed.
7161 * features/i386/x32-avx-avx512.xml: Removed.
7162 * features/i386/x32-avx.c: Removed.
7163 * features/i386/x32-avx.xml: Removed.
7164 * features/i386/x32.c: Removed.
7165 * features/i386/x32.xml: Removed.
7166 * regformats/i386/x32-avx-avx512.dat: Removed.
7167 * regformats/i386/x32-avx.dat: Removed.
7168 * regformats/i386/x32.dat: Removed.
7170 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7172 PR breakpoints/21886
7173 * mem-break.c (default_memory_insert_breakpoint): Use
7174 `->placed_address' rather than `->reqstd_address' for the
7175 breakpoint location.
7177 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7179 * arch-utils.c (default_print_insn): Remove arch/mach/endian
7182 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7184 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
7185 a union of `tdep_info', `tdesc_data' and `id'.
7186 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
7187 rather than `info.tdep_info'.
7188 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
7189 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7190 * i386-tdep.c (i386_gdbarch_init): Likewise.
7191 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
7192 * mips-tdep.c (mips_gdbarch_init): Likewise.
7193 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7194 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7195 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
7197 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
7199 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7200 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
7202 * spu-tdep.c (spu_gdbarch_init): Likewise.
7203 * gdbarch.h: Regenerate.
7205 2017-08-07 Leszek Swirski <leszeks@google.com>
7208 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
7210 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
7212 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
7213 (gdbsim_open): Rename gdb_argv args object to argv.
7215 2017-08-05 Tom Tromey <tom@tromey.com>
7217 * compile/compile-object-load.c (compile_object_load): Use
7218 gdb::unique_xmalloc_ptr.
7219 * cli/cli-dump.c (scan_filename): Rename from
7220 scan_filename_with_cleanup. Change return type.
7221 (scan_expression): Rename from scan_expression_with_cleanup.
7223 (dump_memory_to_file, dump_value_to_file, restore_command):
7224 Use gdb::unique_xmalloc_ptr. Update.
7225 * cli/cli-cmds.c (find_and_open_script): Use
7226 gdb::unique_xmalloc_ptr.
7227 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
7228 * symmisc.c (maintenance_print_symbols)
7229 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
7230 * symfile.c (symfile_bfd_open, generic_load)
7231 (add_symbol_file_command, remove_symbol_file_command): Use
7232 gdb::unique_xmalloc_ptr.
7233 * source.c (openp): Use gdb::unique_xmalloc_ptr.
7234 * psymtab.c (maintenance_print_psymbols): Use
7235 gdb::unique_xmalloc_ptr.
7236 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
7237 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
7238 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
7239 (reload_shared_libraries_1): Likewise.
7241 2017-08-05 Tom Tromey <tom@tromey.com>
7243 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
7244 (rust_op_vector, rust_set_vector): New typedefs.
7245 (current_parser): New global.
7246 (work_obstack): Change to pointer type. Update all users.
7247 (rust_ast, pstate): Remove globals.
7248 (struct rust_parser): New.
7249 (%union) <params, field_inits>: Change type.
7250 (start, tuple_expr, unit_expr, struct_expr_list, literal)
7251 (field_expr, expr_list, maybe_expr_list, type_list): Update.
7252 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
7253 (convert_params_to_types, convert_params_to_expression): Change
7255 (ast_string): Change type of "fields".
7256 (rust_parse): Make a rust_parser. Remove cleanups.
7257 (rust_lex_tests): Make and install an auto_obstack.
7259 2017-08-04 Yao Qi <yao.qi@linaro.org>
7261 * configure.srv (ipa_x32_linux_regobj): New.
7262 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
7263 instead of X86_TDESC_AVX512.
7264 (initialize_low_tracepoint): Call
7265 init_registers_x32_avx_avx512_linux.
7267 2017-08-04 Yao Qi <yao.qi@linaro.org>
7269 * utils.h (gdb_argv): Add namespace std for nullptr_t.
7271 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
7273 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
7275 2017-08-03 Tom Tromey <tom@tromey.com>
7277 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
7279 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
7281 2017-08-03 Tom Tromey <tom@tromey.com>
7283 * python/py-param.c (compute_enum_values): Use gdb_argv.
7285 2017-08-03 Tom Tromey <tom@tromey.com>
7287 * utils.h (struct gdb_argv_deleter): New.
7288 (gdb_argv): New class.
7289 * utils.c (gdb_argv::reset): New method.
7290 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
7291 * tracefile.c (tsave_command): Use gdb_argv.
7292 * top.c (new_ui_command): Use gdb_argv.
7293 * symmisc.c (maintenance_print_symbols)
7294 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
7295 * symfile.c (symbol_file_command, generic_load)
7296 (remove_symbol_file_command): Use gdb_argv.
7297 * stack.c (backtrace_command): Use gdb_argv.
7298 * source.c (add_path, show_substitute_path_command)
7299 (unset_substitute_path_command, set_substitute_path_command):
7301 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
7302 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
7303 * remote.c (extended_remote_run, remote_put_command)
7304 (remote_get_command, remote_delete_command): Use gdb_argv.
7305 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
7306 (gdbsim_open): Use gdb_argv.
7307 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
7308 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
7309 * procfs.c (procfs_info_proc): Use gdb_argv.
7310 * interps.c (interpreter_exec_cmd): Use gdb_argv.
7311 * infrun.c (handle_command): Use gdb_argv.
7312 * inferior.c (add_inferior_command, clone_inferior_command):
7314 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
7315 * exec.c (exec_file_command): Use gdb_argv.
7316 * cli/cli-cmds.c (alias_command): Use gdb_argv.
7317 * compile/compile.c (build_argc_argv): Use gdb_argv.
7319 2017-08-03 Tom Tromey <tom@tromey.com>
7321 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
7323 2017-08-03 Tom Tromey <tom@tromey.com>
7325 * python/python.c (compute_python_string): Return std::string.
7326 (gdbpy_eval_from_control_command): Update.
7327 (do_start_initialization): Use std::string.
7328 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
7330 * python/py-breakpoint.c (local_setattro): Use string_printf, not
7333 2017-08-03 Tom Tromey <tom@tromey.com>
7335 * top.h (do_restore_instream_cleanup): Remove.
7336 * top.c (do_restore_instream_cleanup): Remove.
7337 (read_command_file): Use scoped_restore.
7338 * cli/cli-script.c (execute_user_command): Use scoped_restore.
7340 2017-08-03 Tom Tromey <tom@tromey.com>
7342 * cli/cli-script.c (execute_user_command)
7343 (execute_control_command): Use scoped_restore.
7345 2017-08-03 Tom Tromey <tom@tromey.com>
7347 * cli/cli-script.c (do_restore_user_call_depth): Remove.
7348 (execute_user_command): Remove user_call_depth; use
7349 user_args_stack's size instead.
7351 2017-08-03 Tom Tromey <tom@tromey.com>
7353 * top.h (in_user_command): Remove.
7354 * top.c (in_user_command): Remove.
7355 * cli/cli-script.c (do_restore_user_call_depth)
7356 (execute_user_command): Update.
7358 2017-08-03 Tom Tromey <tom@tromey.com>
7360 * valops.c (search_struct_method): Use gdb::byte_vector.
7361 * valarith.c (value_concat): Use std::vector.
7362 * target.c (memory_xfer_partial): Use gdb::byte_vector.
7363 (simple_search_memory): Likewise.
7364 * printcmd.c (find_string_backward): Use gdb::byte_vector.
7365 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
7366 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
7367 * elfread.c (elf_rel_plt_read): Use std::string.
7368 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
7369 * cli/cli-dump.c (restore_section_callback): Use
7372 2017-08-03 Tom Tromey <tom@tromey.com>
7374 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
7376 2017-08-03 Tom Tromey <tom@tromey.com>
7378 * tui/tui-regs.c (tui_restore_gdbout): Remove.
7379 (tui_register_format): Use scoped_restore.
7381 2017-08-03 Tom Tromey <tom@tromey.com>
7383 * reverse.c (exec_direction_default): Remove.
7384 (exec_reverse_once): Use scoped_restore.
7385 * remote.c (restore_remote_timeout): Remove.
7386 (remote_flash_erase, remote_flash_write, remote_flash_done)
7387 (readchar, remote_serial_write): Use scoped_restore.
7388 * cli/cli-script.c (struct source_cleanup_lines_args)
7389 (source_cleanup_lines): Remove.
7390 (script_from_file): Use scoped_restore.
7391 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
7392 (source_command): Use scoped_restore.
7394 2017-08-03 Tom Tromey <tom@tromey.com>
7396 * utils.h (make_cleanup_free_so): Remove.
7397 * utils.c (do_free_so, make_cleanup_free_so): Remove.
7398 * solist.h (struct so_deleter): New.
7399 (so_list_up): New typedef.
7400 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
7402 2017-08-03 Tom Tromey <tom@tromey.com>
7404 * utils.h (make_cleanup_restore_current_language): Remove.
7405 * utils.c (do_restore_current_language)
7406 (make_cleanup_restore_current_language): Remove.
7407 * parse.c (parse_exp_in_context_1)
7408 (parse_expression_with_language): Use
7409 scoped_restore_current_language.
7410 * mi/mi-main.c (mi_cmd_execute): Use
7411 scoped_restore_current_language.
7412 * language.h (scoped_restore_current_language): New class.
7414 2017-08-03 Tom Tromey <tom@tromey.com>
7416 * compile/compile.c (cleanup_unlink_file): Remove.
7417 (compile_to_object): Use gdb::unlinker.
7418 (eval_compile_command): Likewise.
7420 2017-08-03 Tom Tromey <tom@tromey.com>
7422 * utils.h (make_cleanup_fclose): Remove.
7423 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
7425 2017-08-03 Tom Tromey <tom@tromey.com>
7427 * top.c (open_terminal_stream): Return gdb_file_up.
7428 (new_ui_command): Update.
7430 2017-08-03 Tom Tromey <tom@tromey.com>
7432 * source.c (print_source_lines_base, forward_search_command)
7433 (reverse_search_command): Use gdb_file_up.
7435 2017-08-03 Tom Tromey <tom@tromey.com>
7437 * fbsd-nat.c (fbsd_find_memory_regions): Update.
7439 2017-08-03 Tom Tromey <tom@tromey.com>
7441 * cli/cli-cmds.c (find_and_open_script): Change return type.
7442 Remove "streamp" and "full_path" parameters.
7443 (source_script_with_search): Update.
7444 * auto-load.c (source_script_file): Update.
7445 * cli/cli-cmds.h (find_and_open_script): Change type.
7446 (open_script): New struct.
7448 2017-08-03 Tom Tromey <tom@tromey.com>
7450 * xml-support.c (xml_fetch_content_from_file): Update.
7451 * ui-file.c (stdio_file::open): Update.
7452 * tracefile-tfile.c (tfile_start): Update.
7453 * remote.c (remote_file_put, remote_file_get): Update.
7454 * nat/linux-procfs.c (linux_proc_get_int)
7455 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
7456 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
7457 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
7458 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7459 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
7460 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
7461 * linux-nat.c (linux_proc_pending_signals): Update.
7462 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
7463 (file_closer): Remove.
7464 * compile/compile.c (compile_to_object): Update.
7465 * common/filestuff.h (struct gdb_file_deleter): New.
7466 (gdb_file_up): New typedef.
7467 (gdb_fopen_cloexec): Change return type.
7468 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
7469 * cli/cli-dump.c (fopen_with_cleanup): Remove.
7470 (dump_binary_file, restore_binary_file): Update.
7471 * auto-load.c (auto_load_objfile_script_1): Update.
7473 2017-08-03 Tom Tromey <tom@tromey.com>
7475 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
7476 (info_static_tracepoint_markers_command): Likewise.
7477 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
7478 * skip.c (skip_info): Use ui_out_emit_table.
7479 * progspace.c (print_program_space): Use ui_out_emit_table.
7480 * osdata.c (info_osdata): Use ui_out_emit_table.
7481 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
7483 * linux-thread-db.c (info_auto_load_libthread_db): Use
7485 * inferior.c (print_inferior): Use ui_out_emit_table.
7486 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
7487 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
7488 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
7489 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
7490 * ui-out.h (class ui_out_emit_table): New.
7492 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
7494 * mips-tdep.c (mips_fpu_type_str): New function.
7495 (mips_dump_tdep): Call it.
7497 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
7499 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
7502 2017-07-31 Xavier Roirand <roirand@adacore.com>
7504 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7506 2017-07-27 Xavier Roirand <roirand@adacore.com>
7508 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
7510 2017-07-26 Yao Qi <yao.qi@linaro.org>
7512 * cli/cli-cmds.c (maintenancechecklist): New variable.
7513 * gdbcmd.h (maintenancechecklist): Declare it.
7514 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
7515 Call i386_linux_read_description with different masks.
7516 * maint.c (maintenance_check_command): New function.
7517 (_initialize_maint_cmds): Call add_prefix_cmd.
7518 * target-descriptions.c (tdesc_reg): override operator != and ==.
7519 (tdesc_type): Likewise.
7520 (tdesc_feature): Likewise.
7521 (target_desc): Likewise.
7522 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
7523 (maintenance_check_xml_descriptions): New function.
7524 (_initialize_target_descriptions) Add command "xml-descriptions".
7525 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
7527 2017-07-26 Yao Qi <yao.qi@linaro.org>
7529 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
7530 Include features/i386/32bit-*.c.
7531 (i386_linux_read_description): Generate target description if it
7533 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
7535 * features/i386/32bit-linux.c: Re-generated.
7536 * features/i386/32bit-sse.c: Likewise.
7537 * target-descriptions.c (print_c_feature::visit): Print code to
7538 set register number if needed.
7539 (print_c_feature) <m_next_regnum>: New field.
7541 2017-07-26 Yao Qi <yao.qi@linaro.org>
7543 * features/Makefile (CFILES): Rename with TDESC_CFILES.
7544 (FEATURE_XMLFILES): New.
7545 (FEATURE_CFILES): New.
7547 (clean-cfiles): Remove generated c files.
7548 * features/i386/32bit-avx.c: Generated.
7549 * features/i386/32bit-avx512.c: Generated.
7550 * features/i386/32bit-core.c: Generated.
7551 * features/i386/32bit-linux.c: Generated.
7552 * features/i386/32bit-mpx.c: Generated.
7553 * features/i386/32bit-pkeys.c: Generated.
7554 * features/i386/32bit-sse.c: Generated.
7555 * target-descriptions.c: Include algorithm.
7556 (tdesc_element_visitor): Add method visit_end.
7557 (print_c_tdesc): Implement visit_end.
7558 (print_c_tdesc:: m_filename_after_features): Move it to
7560 (print_c_feature): New class.
7561 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
7562 name starts with "i386/32bit-".
7564 2017-07-26 Yao Qi <yao.qi@linaro.org>
7566 * target-descriptions.c (tdesc_element_visitor): New class.
7567 (tdesc_element): New class.
7568 (tdesc_reg): Inherit from tdesc_element.
7569 (tdesc_reg::accept): New function.
7570 (tdesc_type): Inherit from tdesc_element.
7571 (tdesc_type::accept): New function.
7572 (tdesc_feature): Inherit from tdesc_element.
7573 (tdesc_feature::accept): New function.
7574 (target_desc): Inherit from tdesc_element.
7575 (target_desc::target_desc): New.
7576 (target_desc::~target_desc): New.
7577 (target_desc::accept): New.
7578 (allocate_target_description): Use new.
7579 (free_target_description): Use delete.
7580 (print_c_tdesc): New class.
7581 (maint_print_c_tdesc_cmd): Adjust.
7583 * features/aarch64.c: Re-generated.
7584 * features/arc-arcompact.c: Re-generated.
7585 * features/arc-v2.c: Re-generated.
7586 * features/arm/arm-with-iwmmxt.c: Re-generated.
7587 * features/arm/arm-with-m.c: Re-generated.
7588 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
7589 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
7590 * features/arm/arm-with-neon.c: Re-generated.
7591 * features/arm/arm-with-vfpv2.c: Re-generated.
7592 * features/arm/arm-with-vfpv3.c: Re-generated.
7593 * features/i386/amd64-avx-avx512.c: Re-generated.
7594 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7595 * features/i386/amd64-avx.c: Re-generated.
7596 * features/i386/amd64-avx-linux.c: Re-generated.
7597 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
7598 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7599 * features/i386/amd64-avx-mpx.c: Re-generated.
7600 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
7601 * features/i386/amd64.c: Re-generated.
7602 * features/i386/amd64-linux.c: Re-generated.
7603 * features/i386/amd64-mpx.c: Re-generated.
7604 * features/i386/amd64-mpx-linux.c: Re-generated.
7605 * features/i386/i386-avx-avx512.c: Re-generated.
7606 * features/i386/i386-avx-avx512-linux.c: Re-generated.
7607 * features/i386/i386-avx.c: Re-generated.
7608 * features/i386/i386-avx-linux.c: Re-generated.
7609 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
7610 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
7611 * features/i386/i386-avx-mpx.c: Re-generated.
7612 * features/i386/i386-avx-mpx-linux.c: Re-generated.
7613 * features/i386/i386.c: Re-generated.
7614 * features/i386/i386-linux.c: Re-generated.
7615 * features/i386/i386-mmx.c: Re-generated.
7616 * features/i386/i386-mmx-linux.c: Re-generated.
7617 * features/i386/i386-mpx.c: Re-generated.
7618 * features/i386/i386-mpx-linux.c: Re-generated.
7619 * features/i386/x32-avx-avx512.c: Re-generated.
7620 * features/i386/x32-avx-avx512-linux.c: Re-generated.
7621 * features/i386/x32-avx.c: Re-generated.
7622 * features/i386/x32-avx-linux.c: Re-generated.
7623 * features/i386/x32.c: Re-generated.
7624 * features/i386/x32-linux.c: Re-generated.
7625 * features/microblaze.c: Re-generated.
7626 * features/microblaze-with-stack-protect.c: Re-generated.
7627 * features/mips64-dsp-linux.c: Re-generated.
7628 * features/mips64-linux.c: Re-generated.
7629 * features/mips-dsp-linux.c: Re-generated.
7630 * features/mips-linux.c: Re-generated.
7631 * features/nds32.c: Re-generated.
7632 * features/nios2.c: Re-generated.
7633 * features/nios2-linux.c: Re-generated.
7634 * features/rs6000/powerpc-32.c: Re-generated.
7635 * features/rs6000/powerpc-32l.c: Re-generated.
7636 * features/rs6000/powerpc-403.c: Re-generated.
7637 * features/rs6000/powerpc-403gc.c : Re-generated.
7638 * features/rs6000/powerpc-405.c: Re-generated.
7639 * features/rs6000/powerpc-505.c: Re-generated.
7640 * features/rs6000/powerpc-601.c: Re-generated.
7641 * features/rs6000/powerpc-602.c: Re-generated.
7642 * features/rs6000/powerpc-603.c: Re-generated.
7643 * features/rs6000/powerpc-604.c: Re-generated.
7644 * features/rs6000/powerpc-64.c: Re-generated.
7645 * features/rs6000/powerpc-64l.c: Re-generated.
7646 * features/rs6000/powerpc-7400.c: Re-generated.
7647 * features/rs6000/powerpc-750.c: Re-generated.
7648 * features/rs6000/powerpc-860.c: Re-generated.
7649 * features/rs6000/powerpc-altivec32.c: Re-generated.
7650 * features/rs6000/powerpc-altivec32l.c: Re-generated.
7651 * features/rs6000/powerpc-altivec64.c: Re-generated.
7652 * features/rs6000/powerpc-altivec64l.c: Re-generated.
7653 * features/rs6000/powerpc-cell32l.c: Re-generated.
7654 * features/rs6000/powerpc-cell64l.c: Re-generated.
7655 * features/rs6000/powerpc-e500.c: Re-generated.
7656 * features/rs6000/powerpc-e500l.c: Re-generated.
7657 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
7658 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
7659 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
7660 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
7661 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
7662 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
7663 * features/rs6000/powerpc-vsx32.c: Re-generated.
7664 * features/rs6000/powerpc-vsx32l.c: Re-generated.
7665 * features/rs6000/powerpc-vsx64.c: Re-generated.
7666 * features/rs6000/powerpc-vsx64l.c: Re-generated.
7667 * features/rs6000/rs6000.c: Re-generated.
7668 * features/s390-linux32.c: Re-generated.
7669 * features/s390-linux32v1.c: Re-generated.
7670 * features/s390-linux32v2.c: Re-generated.
7671 * features/s390-linux64.c: Re-generated.
7672 * features/s390-linux64v1.c: Re-generated.
7673 * features/s390-linux64v2.c: Re-generated.
7674 * features/s390-te-linux64.c: Re-generated.
7675 * features/s390-tevx-linux64.c: Re-generated.
7676 * features/s390-vx-linux64.c: Re-generated.
7677 * features/s390x-linux64.c: Re-generated.
7678 * features/s390x-linux64v1.c: Re-generated.
7679 * features/s390x-linux64v2.c: Re-generated.
7680 * features/s390x-te-linux64.c: Re-generated.
7681 * features/s390x-tevx-linux64.c: Re-generated.
7682 * features/s390x-vx-linux64.c: Re-generated.
7683 * features/sparc/sparc32-solaris.c: Re-generated.
7684 * features/sparc/sparc64-solaris.c: Re-generated.
7685 * features/tic6x-c62x.c: Re-generated.
7686 * features/tic6x-c62x-linux.c: Re-generated.
7687 * features/tic6x-c64x.c: Re-generated.
7688 * features/tic6x-c64x-linux.c: Re-generated.
7689 * features/tic6x-c64xp.c: Re-generated.
7690 * features/tic6x-c64xp-linux.c: Re-generated.
7692 2017-07-26 Yao Qi <yao.qi@linaro.org>
7694 * i386-linux-tdep.c (i386_linux_read_description): New function.
7695 (i386_linux_core_read_description): Call
7696 i386_linux_read_description.
7697 * i386-linux-tdep.h (i386_linux_read_description): Declare.
7698 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
7699 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
7700 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
7701 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
7702 * x86-linux-nat.c (x86_linux_read_description): Call
7703 i386_linux_read_description.
7705 2017-07-26 Yao Qi <yao.qi@linaro.org>
7708 * features/Makefile (%.c: %.xml): Pass the xml file name to
7709 command "maint print c-tdesc".
7710 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
7713 2017-07-26 Yao Qi <yao.qi@linaro.org>
7715 * target-descriptions.c (target_desc): Add ctor and dtor. Do
7716 in-class initialization.
7717 (tdesc_create_feature): Call new instead of XCNEW.
7718 (free_target_description): Ue delete.
7720 2017-07-25 John Baldwin <jhb@FreeBSD.org>
7722 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
7724 2017-07-25 Yao Qi <yao.qi@linaro.org>
7726 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
7728 (amd64_x32_init_abi): Likewise.
7729 * amd64-tdep.h (amd64_init_abi): Update declaration.
7730 (amd64_x32_init_abi): Likewise.
7732 2017-07-25 Yao Qi <yao.qi@linaro.org>
7735 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
7736 condition for FPSCR.
7737 (arm_linux_store_inferior_registers): Likewise.
7739 2017-07-22 Tom Tromey <tom@tromey.com>
7741 * break-catch-syscall.c (struct catch_syscall_inferior_data)
7742 <syscalls_counts>: Now a std::vector.
7743 (get_catch_syscall_inferior_data): Use "new".
7744 (catch_syscall_inferior_data_cleanup): Use "delete".
7745 (insert_catch_syscall, remove_catch_syscall)
7746 (clear_syscall_counts): Update.
7748 2017-07-22 Tom Tromey <tom@tromey.com>
7750 * break-catch-syscall.c (syscall_catchpoint)
7751 <syscalls_to_be_caught>: Now a std::vector<int>
7752 (~syscall_catchpoint): Remove.
7753 (insert_catch_syscall, remove_catch_syscall)
7754 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
7755 (print_mention_catch_syscall, print_recreate_catch_syscall):
7757 (create_syscall_event_catchpoint): Change type of "filter"
7759 (catch_syscall_split_args): Return a std::vector.
7760 (catch_syscall_command_1, catching_syscall_number_1): Update.
7762 2017-07-22 Tom Tromey <tom@tromey.com>
7764 * break-catch-throw.c (struct exception_catchpoint)
7765 <exception_rx>: Now a std::string.
7766 (~exception_catchpoint): Remove.
7767 (print_one_detail_exception_catchpoint): Update.
7768 (handle_gnu_v3_exceptions): Change type of except_rx.
7769 (extract_exception_regexp): Return a std::string.
7770 (catch_exception_command_1): Update.
7772 2017-07-22 Tom Tromey <tom@tromey.com>
7774 * break-catch-sig.c (gdb_signal_type): Remove typedef.
7775 (struct signal_catchpoint) <signals_to_be_caught>: Now a
7777 <catch_all>: Now a bool.
7778 (~signal_catchpoint): Remove.
7779 (signal_catchpoint_insert_location)
7780 (signal_catchpoint_remove_location)
7781 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
7782 (signal_catchpoint_print_mention)
7783 (signal_catchpoint_print_recreate)
7784 (signal_catchpoint_explains_signal): Update.
7785 (create_signal_catchpoint): Change type of "filter" and
7787 (catch_signal_split_args): Return a std::vector. Change type of
7789 (catch_signal_command): Update.
7791 2017-07-20 Pedro Alves <palves@redhat.com>
7793 * ada-lang.c (ada_language_defn): Make extern.
7794 (_initialize_ada_language): Remove add_language call.
7795 * c-lang.c (c_language_defn, cplus_language_defn)
7796 (asm_language_defn, minimal_language_defn): Make extern.
7797 (_initialize_c_language): Delete.
7798 * completer.c (compare_cstrings): Delete, moved to utils.h.
7799 * d-lang.c (d_language_defn): Make extern.
7800 (_initialize_d_language): Remove add_language calls.
7801 * defs.h (enum language): Add comment.
7802 * f-lang.c (f_language_defn): Make extern.
7803 (_initialize_f_language): Remove add_language call.
7804 * go-lang.c (go_language_defn): Make extern.
7805 (_initialize_go_language): Remove add_language call.
7806 * language.c: Include <algorithm>.
7807 (languages): Redefine as const array.
7808 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
7809 (set_language_command): Handle "local". Use for-range loop.
7810 (set_language): Remove loop.
7811 (language_enum): Rewrite.
7812 (language_def, language_str): Remove loops.
7813 (add_language): Delete.
7814 (add_set_language_command): New, based on add_languages.
7815 (skip_language_trampoline): Adjust.
7816 (local_language_defn): Delete.
7817 (language_gdbarch_post_init): Adjust.
7818 (_initialize_language): Remove add_language calls. Call
7819 add_set_language_command.
7820 * language.h (add_language): Delete.
7821 (auto_language_defn)
7822 (unknown_language_defn, minimal_language_defn, ada_language_defn)
7823 (asm_language_defn, c_language_defn, cplus_language_defn)
7824 (d_language_defn, f_language_defn, go_language_defn)
7825 (m2_language_defn, objc_language_defn, opencl_language_defn)
7826 (pascal_language_defn, rust_language_defn): Declare.
7827 * m2-lang.c (m2_language_defn): Make extern.
7828 (_initialize_m2_language): Remove add_language call.
7829 * objc-lang.c (objc_language_defn): Make extern.
7830 (_initialize_objc_language): Remove add_language call.
7831 * opencl-lang.c (opencl_language_defn): Make extern.
7832 (_initialize_opencl_language): Remove add_language call.
7833 * p-lang.c (pascal_language_defn): Make extern.
7834 (_initialize_pascal_language): Delete.
7835 * rust-lang.c (rust_language_defn): Make extern.
7836 (_initialize_rust_language): Delete.
7837 * utils.h (compare_cstrings): New static inline function.
7839 2017-07-20 Pedro Alves <palves@redhat.com>
7841 * ada-lang.c (ada_to_fixed_type_1): Adjust.
7842 (get_var_value): Constify parameters.
7843 (get_int_var_value): Change prototype.
7844 (to_fixed_range_type): Adjust.
7845 * ada-lang.h (get_int_var_value): Change prototype.
7847 2017-07-20 Pedro Alves <palves@redhat.com>
7849 * dwarf2read.c (dw2_lookup_symbol): Use
7850 SYMBOL_MATCHES_SEARCH_NAME.
7851 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
7853 2017-07-20 Pedro Alves <palves@redhat.com>
7855 * block.c (block_iter_name_step, block_iter_name_first)
7856 (block_iter_name_next): Delete.
7857 (block_lookup_symbol_primary): Adjust to use
7858 dict_iter_match_first/dict_iter_match_next.
7859 * block.h (block_iter_name_first, block_iter_name_next): Delete
7861 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
7862 dict_iter_match_first/dict_iter_match_next.
7864 2017-07-20 Pedro Alves <palves@redhat.com>
7866 * cp-support.c (cp_find_first_component_aux): Add missing case for
7869 2017-07-18 David Blaikie <dblaikie@gmail.com>
7871 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
7872 of dwo_cu's dwo_file.
7874 2017-07-18 Yao Qi <yao.qi@linaro.org>
7876 * remote.c (store_registers_using_G): Remove one line comment.
7878 2017-07-18 Yao Qi <yao.qi@linaro.org>
7880 * regcache.c (regcache_cpy): Simplify it.
7881 (regcache::cpy_no_passthrough): Remove it.
7882 * regcache.h (cpy_no_passthrough): Remove it.
7883 (regcache_dup, regcache_cpy): Update comments.
7885 2017-07-18 Pedro Alves <palves@redhat.com>
7887 * remote-sim.c (sim_command_completer): Adjust to work with a
7888 completion_tracker instead of a VEC.
7890 2017-07-17 Pedro Alves <palves@redhat.com>
7892 * completer.c (complete_source_filenames): New function.
7893 (complete_address_and_linespec_locations): New function.
7894 (location_completer): Use complete_address_and_linespec_locations.
7895 (completion_tracker::build_completion_result): Honor the tracker's
7896 request to suppress append.
7897 * completer.h (completion_tracker::suppress_append_ws)
7898 (completion_tracker::set_suppress_append_ws): New methods.
7899 (completion_tracker::m_suppress_append_ws): New field.
7900 (complete_source_filenames): New declaration.
7901 * linespec.c (linespec_complete_what): New.
7902 (struct ls_parser) <complete_what, completion_word,
7903 completion_quote_char, completion_quote_end, completion_tracker>:
7905 (string_find_incomplete_keyword_at_end): New.
7906 (linespec_lexer_lex_string): Record quote char. If in completion
7908 (linespec_lexer_consume_token): Advance the completion word point.
7909 (linespec_lexer_peek_token): Save/restore completion info.
7910 (save_stream_and_consume_token): New.
7911 (set_completion_after_number): New.
7912 (linespec_parse_basic): Set what to complete next depending on
7913 token. Handle function and label completions specially.
7914 (parse_linespec): Disable objc shortcut in completion mode. Set
7915 what to complete next depending on token type. Skip keyword if in
7917 (complete_linespec_component, linespec_complete): New.
7918 * linespec.h (linespec_complete): Declare.
7920 2017-07-17 Pedro Alves <palves@redhat.com>
7922 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
7923 Handle 'operator<' / 'operator<<'.
7925 2017-07-17 Pedro Alves <palves@redhat.com>
7927 * completer.c (collect_explicit_location_matches): Handle
7929 (convert_explicit_location_to_linespec): New, factored out from
7931 (convert_explicit_location_to_sals): ... this.
7932 (complete_label): New.
7933 (linespec_complete_label, find_label_symbols_in_block): New.
7934 (find_label_symbols): Add completion_mode parameter and adjust to
7935 call find_label_symbols_in_block.
7936 * linespec.h (linespec_complete_label): Declare.
7938 2017-07-17 Pedro Alves <palves@redhat.com>
7940 * ada-lang.c (ada_collect_symbol_completion_matches): Add
7941 complete_symbol_mode parameter.
7942 * cli/cli-cmds.c (complete_command): Get the completion result out
7943 of the handle_brkchars tracker if used a custom word point.
7944 * completer.c: Include "linespec.h".
7945 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
7946 (advance_to_expression_complete_word_point): New.
7947 (completion_tracker::completes_to_completion_word): New.
7948 (complete_files_symbols): Pass down
7949 complete_symbol_mode::EXPRESSION.
7950 (explicit_options, probe_options): New.
7951 (collect_explicit_location_matches): Complete on the
7952 explictit_loc->foo instead of word. Use
7953 linespec_complete_function. Handle MATCH_LINE. Handle offering
7954 keyword and options completions.
7955 (backup_text_ptr): Delete.
7956 (skip_keyword): New.
7957 (complete_explicit_location): Remove 'word' parameter. Add
7958 language, quoted_arg_start and quoted_arg_end parameters.
7959 Rewrite, parsing left to right.
7960 (location_completer): Rewrite.
7961 (location_completer_handle_brkchars): New function.
7962 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
7963 (enum complete_line_internal_reason): Adjust comments.
7964 (completion_tracker::discard_completions): New.
7965 (completer_handle_brkchars_func_for_completer): Handle
7967 (gdb_custom_word_point_brkchars)
7968 (gdb_org_rl_basic_quote_characters): New.
7969 (gdb_completion_word_break_characters_throw)
7970 (completion_find_completion_word): Handle trackers that use a
7972 (completion_tracker::advance_custom_word_point_by): New.
7973 (completion_tracker::build_completion_result): Don't rely on
7974 readline appending the quote char.
7975 (gdb_rl_attempted_completion_function_throw): Handle trackers that
7976 use a custom word point.
7977 (gdb_rl_attempted_completion_function): Restore
7978 rl_basic_quote_characters.
7979 * completer.h (class completion_tracker): Extend intro comment.
7980 (completion_tracker::set_quote_char)
7981 (completion_tracker::quote_char)
7982 (completion_tracker::set_use_custom_word_point)
7983 (completion_tracker::use_custom_word_point)
7984 (completion_tracker::custom_word_point)
7985 (completion_tracker::set_custom_word_point)
7986 (completion_tracker::advance_custom_word_point_by)
7987 (completion_tracker::completes_to_completion_word)
7988 (completion_tracker::discard_completions): New methods.
7989 (completion_tracker::m_quote_char)
7990 (completion_tracker::m_use_custom_word_point)
7991 (completion_tracker::m_custom_word_point): New fields.
7992 (advance_to_expression_complete_word_point): Declare.
7993 * f-lang.c (f_collect_symbol_completion_matches): Add
7994 complete_symbol_mode parameter.
7995 * language.h (struct language_defn)
7996 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
7998 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
7999 (linespec_complete_function): New function.
8000 (linespec_lexer_lex_keyword): Adjust.
8001 * linespec.h (linespec_keywords, linespec_complete_function): New
8003 * location.c (find_end_quote): New function.
8004 (explicit_location_lex_one): Add explicit_completion_info
8005 parameter. Save quoting info. Don't throw if being called for
8006 completion. Don't handle Ada operators here.
8007 (is_cp_operator, skip_op_false_positives, first_of)
8008 (explicit_location_lex_one_function): New function.
8009 (string_to_explicit_location): Replace 'dont_throw' parameter with
8010 an explicit_completion_info pointer parameter. Handle it. Don't
8011 use explicit_location_lex_one to lex function names. Use
8012 explicit_location_lex_one_function instead.
8013 * location.h (struct explicit_completion_info): New.
8014 (string_to_explicit_location): Replace 'dont_throw' parameter with
8015 an explicit_completion_info pointer parameter.
8016 * symtab.c (default_collect_symbol_completion_matches_break_on):
8017 Add complete_symbol_mode parameter. Handle LINESPEC mode.
8018 (default_collect_symbol_completion_matches)
8019 (collect_symbol_completion_matches): Add complete_symbol_mode
8021 (collect_symbol_completion_matches_type): Pass down
8022 complete_symbol_mode::EXPRESSION.
8023 (collect_file_symbol_completion_matches): Add complete_symbol_mode
8024 parameter. Handle LINESPEC mode.
8025 * symtab.h (complete_symbol_mode): New.
8026 (default_collect_symbol_completion_matches_break_on)
8027 (default_collect_symbol_completion_matches)
8028 (collect_symbol_completion_matches)
8029 (collect_file_symbol_completion_matches): Add complete_symbol_mode
8032 2017-07-17 Pedro Alves <palves@redhat.com>
8034 * utils.c (enum class strncmp_iw_mode): New.
8035 (strcmp_iw): Rename to ...
8036 (strncmp_iw_with_mode): ... this. Add string2_len and mode
8037 parameters. Handle them.
8039 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
8040 * utils.h (strncmp_iw): Declare.
8041 (strcmp_iw): Move describing comments here.
8043 2017-07-17 Pedro Alves <palves@redhat.com>
8045 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
8047 * c-typeprint.c (is_type_conversion_operator): Use
8049 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
8050 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
8052 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
8053 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
8054 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
8055 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
8057 * location.c: Include "cp-support.h".
8058 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
8060 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
8063 2017-07-17 Pedro Alves <palves@redhat.com>
8065 * cli/cli-cmds.c (complete_command): Use a completion tracker
8066 along with completion_find_completion_word for handle_brkchars
8068 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
8069 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
8070 (struct gdb_rl_completion_word_info): New.
8071 (gdb_rl_find_completion_word): New.
8072 (completion_find_completion_word): New.
8073 * completer.h (completion_find_completion_word): Declare.
8075 2017-07-17 Pedro Alves <palves@redhat.com>
8077 * ada-lang.c (symbol_completion_match): Adjust comments.
8078 (symbol_completion_add): Replace vector parameter with
8079 completion_tracker parameter. Use it.
8080 (ada_make_symbol_completion_list): Rename to...
8081 (ada_collect_symbol_completion_matches): ... this. Add
8082 completion_tracker parameter and use it.
8083 (ada_language_defn): Adjust.
8084 * break-catch-syscall.c (catch_syscall_completer): Adjust
8085 prototype and work with completion_tracker instead of VEC.
8086 * breakpoint.c (condition_completer): Adjust prototype and work
8087 with completion_tracker instead of VEC.
8088 * c-lang.c (c_language_defn, cplus_language_defn)
8089 (asm_language_defn, minimal_language_defn): Adjust to renames.
8090 * cli/cli-cmds.c (complete_command): Rework using
8091 completion_tracker. Catch exceptions when completing.
8092 * cli/cli-decode.c (integer_unlimited_completer)
8093 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
8094 with completion_tracker instead of VEC.
8095 * command.h (struct completion_tracker): Forward declare.
8096 (completer_ftype, completer_handle_brkchars_ftype): Change
8098 (complete_on_cmdlist, complete_on_enum): Adjust.
8099 * completer.c: Include <algorithm>.
8100 (struct gdb_completer_state): New.
8101 (current_completion): New global.
8102 (readline_line_completion_function): Delete.
8103 (noop_completer, filename_completer)
8104 (filename_completer_handle_brkchars, complete_files_symbols)
8105 (linespec_location_completer): Adjust to work with a
8106 completion_tracker instead of a VEC.
8107 (string_or_empty): New.
8108 (collect_explicit_location_matches): Adjust to work with a
8109 completion_tracker instead of a VEC.
8110 (explicit_location_completer): Rename to ...
8111 (complete_explicit_location): ... this and adjust to work with a
8112 completion_tracker instead of a VEC.
8113 (location_completer): Adjust to work with a completion_tracker
8115 (add_struct_fields): Adjust to work with a completion_list instead
8117 (expression_completer): Rename to ...
8118 (complete_expression): ... this and adjust to work with a
8119 completion_tracker instead of a VEC. Use complete_files_symbols.
8120 (expression_completer): Reimplement on top of complete_expression.
8121 (symbol_completer): Adjust to work with a completion_tracker
8123 (enum complete_line_internal_reason): Add describing comments.
8124 (complete_line_internal_normal_command): Adjust to work with a
8125 completion_tracker instead of a VEC.
8126 (complete_line_internal): Rename to ...
8127 (complete_line_internal_1): ... this and adjust to work with a
8128 completion_tracker instead of a VEC. Assert TEXT is NULL in the
8129 handle_brkchars phase.
8130 (new_completion_tracker): Delete.
8131 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
8132 complete_line_internal_1.
8133 (free_completion_tracker): Delete.
8134 (INITIAL_COMPLETION_HTAB_SIZE): New.
8135 (completion_tracker::completion_tracker)
8136 (completion_tracker::~completion_tracker): New.
8137 (maybe_add_completion): Delete.
8138 (completion_tracker::maybe_add_completion)
8139 (completion_tracker::add_completion)
8140 (completion_tracker::add_completions): New.
8141 (throw_max_completions_reached_error): Delete.
8142 (complete_line): Adjust to work with a completion_tracker instead
8143 of a VEC. Don't create a completion_tracker_t or check for max
8145 (command_completer, command_completer_handle_brkchars)
8146 (signal_completer, reg_or_group_completer_1)
8147 (reg_or_group_completer, default_completer_handle_brkchars):
8148 Adjust to work with a completion_tracker.
8149 (gdb_completion_word_break_characters_throw): New.
8150 (gdb_completion_word_break_characters): Reimplement.
8151 (line_completion_function): Delete.
8152 (completion_tracker::recompute_lowest_common_denominator)
8153 (expand_preserving_ws)
8154 (completion_tracker::build_completion_result)
8155 (completion_result::completion_result)
8156 (completion_result::completion_result)
8157 (completion_result::~completion_result)
8158 (completion_result::completion_result)
8159 (completion_result::release_match_list, compare_cstrings)
8160 (completion_result::sort_match_list)
8161 (completion_result::reset_match_list)
8162 (gdb_rl_attempted_completion_function_throw)
8163 (gdb_rl_attempted_completion_function): New.
8164 * completer.h (completion_list, struct completion_result)
8165 (class completion_tracker): New.
8166 (complete_line): Add completion_tracker parameter.
8167 (readline_line_completion_function): Delete.
8168 (gdb_rl_attempted_completion_function): New.
8169 (noop_completer, filename_completer, expression_completer)
8170 (location_completer, symbol_completer, command_completer)
8171 (signal_completer, reg_or_group_completer): Update prototypes.
8172 (completion_tracker_t, new_completion_tracker)
8173 (make_cleanup_free_completion_tracker): Delete.
8174 (enum maybe_add_completion_enum): Delete.
8175 (maybe_add_completion): Delete.
8176 (throw_max_completions_reached_error): Delete.
8177 * corefile.c (complete_set_gnutarget): Adjust to work with a
8178 completion_tracker instead of a VEC.
8179 * cp-abi.c (cp_abi_completer): Adjust to work with a
8180 completion_tracker instead of a VEC.
8181 * d-lang.c (d_language_defn): Adjust.
8182 * disasm.c (disassembler_options_completer): Adjust to work with a
8183 completion_tracker instead of a VEC.
8184 * f-lang.c (f_make_symbol_completion_list): Rename to ...
8185 (f_collect_symbol_completion_matches): ... this. Adjust to work
8186 with a completion_tracker instead of a VEC.
8187 (f_language_defn): Adjust.
8188 * go-lang.c (go_language_defn): Adjust.
8189 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
8190 Adjust to work with a completion_tracker instead of a VEC.
8191 * infrun.c (handle_completer): Likewise.
8192 * interps.c (interpreter_completer): Likewise.
8193 * interps.h (interpreter_completer): Likewise.
8194 * language.c (unknown_language_defn, auto_language_defn)
8195 (local_language_defn): Adjust.
8196 * language.h (language_defn::la_make_symbol_completion_list):
8198 (language_defn::la_collect_symbol_completion_matches): ... this
8199 and adjust to work with a completion_tracker instead of a VEC.
8200 * m2-lang.c (m2_language_defn): Adjust.
8201 * objc-lang.c (objc_language_defn): Adjust.
8202 * opencl-lang.c (opencl_language_defn): Adjust.
8203 * p-lang.c (pascal_language_defn): Adjust.
8204 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
8205 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
8206 with a completion_tracker.
8207 * rust-lang.c (rust_language_defn): Adjust.
8208 * symtab.c (free_completion_list, do_free_completion_list)
8209 (return_val, completion_tracker): Delete.
8210 (completion_list_add_name, completion_list_add_symbol)
8211 (completion_list_add_msymbol, completion_list_objc_symbol)
8212 (completion_list_add_fields, add_symtab_completions): Add
8213 completion_tracker parameter and use it.
8214 (default_make_symbol_completion_list_break_on_1): Rename to...
8215 (default_collect_symbol_completion_matches_break_on): ... this.
8216 Add completion_tracker parameter and use it instead of allocating
8217 a completion tracker here.
8218 (default_make_symbol_completion_list_break_on): Delete old
8220 (default_make_symbol_completion_list): Delete.
8221 (default_collect_symbol_completion_matches): New.
8222 (make_symbol_completion_list): Delete.
8223 (collect_symbol_completion_matches): New.
8224 (make_symbol_completion_type): Rename to ...
8225 (collect_symbol_completion_matches_type): ... this. Add
8226 completion_tracker parameter and use it instead of VEC.
8227 (make_file_symbol_completion_list_1): Rename to...
8228 (collect_file_symbol_completion_matches): ... this. Add
8229 completion_tracker parameter and use it instead of VEC.
8230 (make_file_symbol_completion_list): Delete.
8231 (add_filename_to_list): Use completion_list instead of a VEC.
8232 (add_partial_filename_data::list): Now a completion_list.
8233 (make_source_files_completion_list): Work with a completion_list
8235 * symtab.h: Include "completer.h".
8236 (default_make_symbol_completion_list_break_on)
8237 (default_make_symbol_completion_list, make_symbol_completion_list)
8238 (make_symbol_completion_type, make_file_symbol_completion_list)
8239 (make_source_files_completion_list): Delete.
8240 (default_collect_symbol_completion_matches_break_on)
8241 (default_collect_symbol_completion_matches)
8242 (collect_symbol_completion_matches)
8243 (collect_symbol_completion_matches_type)
8244 (collect_file_symbol_completion_matches)
8245 (make_source_files_completion_list): New.
8246 * top.c (init_main): Don't install a rl_completion_entry_function
8247 hook. Install a rl_attempted_completion_function hook instead.
8248 * tui/tui-layout.c (layout_completer): Adjust to work with a
8250 * tui/tui-regs.c (tui_reggroup_completer):
8251 * tui/tui-win.c (window_name_completer, focus_completer)
8252 (winheight_completer): Adjust to work with a completion_tracker.
8253 * value.c: Include "completer.h".
8254 (complete_internalvar): Adjust to work with a completion_tracker.
8255 * value.h (complete_internalvar): Likewise.
8257 2017-07-17 Pedro Alves <palves@redhat.com>
8259 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
8261 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
8262 comments to completer_ftype's declaration.
8263 <completer_handle_brkchars>: Change type to
8264 completer_handle_brkchars_ftype.
8265 * command.h (completer_ftype): Add describing comment and give
8266 names to parameters.
8267 (completer_ftype_void): Rename to ...
8268 (completer_handle_brkchars_ftype) ... this. Add describing comment.
8269 (set_cmd_completer_handle_brkchars): Adjust.
8270 * completer.c (filename_completer_handle_brkchars): New function.
8271 (complete_line_internal_normal_command): New function, factored
8273 (complete_line_internal): ... here.
8274 (command_completer_handle_brkchars)
8275 (default_completer_handle_brkchars)
8276 (completer_handle_brkchars_func_for_completer): New functions.
8277 * completer.h (set_gdb_completion_word_break_characters): Delete
8279 (completer_handle_brkchars_func_for_completer): New declaration.
8280 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
8281 completer_handle_brkchars_func_for_completer.
8283 2017-07-17 Pedro Alves <palves@redhat.com>
8285 * completer.c (symbol_completer): New function, based on
8286 make_symbol_completion_list_fn.
8287 * completer.h (symbol_completer): New declaration.
8288 * guile/scm-cmd.c (cmdscm_completers): Adjust.
8289 * python/py-cmd.c (completers): Adjust.
8290 * symtab.c (make_symbol_completion_list_fn): Delete.
8291 * symtab.h (make_symbol_completion_list_fn): Delete.
8292 * cli/cli-decode.c (add_cmd): Adjust.
8294 2017-07-17 Pedro Alves <palves@redhat.com>
8296 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
8297 * dwarf2read.c: Include "filename-seen-cache.h".
8298 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
8299 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
8300 * filename-seen-cache.c: New file.
8301 * filename-seen-cache.h: New file.
8302 * symtab.c: Include "filename-seen-cache.h".
8303 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
8304 (create_filename_seen_cache, clear_filename_seen_cache)
8305 (delete_filename_seen_cache, filename_seen): Delete, parts moved
8306 to filename-seen-cache.h/filename-seen-cache.c.
8307 (output_source_filename, sources_info)
8308 (maybe_add_partial_symtab_filename)
8309 (make_source_files_completion_list): Adjust to use
8310 filename_seen_cache.
8312 2017-07-17 Pedro Alves <palves@redhat.com>
8314 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
8316 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
8317 dwarf2_debug_sections*)): New.
8318 (dwarf2_per_objfile::dwarf2_per_objfile(const
8319 dwarf2_per_objfile&)): Declare as deleted.
8320 (dwarf2_per_objfile::operator=): Declare as deleted.
8321 (dwarf2_per_objfile::dwarf2_per_objfile)
8322 (dwarf2_per_objfile::~dwarf2_per_objfile)
8323 (dwarf2_per_objfile::free_cached_comp_units): New.
8324 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
8325 ctor. Call dwarf2_per_objfile's ctor manually.
8326 (dwarf2_locate_sections): Deleted/refactored as ...
8327 (dwarf2_per_objfile::locate_sections): ... this new method.
8328 (free_cached_comp_units): Defer to
8329 dwarf2_per_objfile::free_cached_comp_units.
8330 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
8332 2017-07-14 Tom Tromey <tom@tromey.com>
8335 * rust-exp.y (convert_ast_to_expression): Add "want_type"
8337 <UNOP_SIZEOF>: Split into separate case.
8338 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
8340 2017-07-14 Tom Tromey <tom@tromey.com>
8343 * symtab.c (symbol_matches_domain): Add language_rust to special
8345 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
8346 treat LOC_TYPEDEF symbols as variables.
8348 2017-07-14 Pedro Alves <palves@redhat.com>
8350 * symtab.c (make_file_symbol_completion_list_1): Iterate over
8351 symtabs matching all symtabs with SRCFILE as file name instead of
8352 only considering the first hit, with lookup_symtab.
8354 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8356 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
8357 operator_name parameters.
8358 (gen_expr): Update function call.
8360 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8362 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
8364 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
8366 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
8367 parameter, use agent_expr::gdbarch instead, update function
8369 (locexpr_tracepoint_var_ref): Likewise.
8370 (loclist_tracepoint_var_ref): Likewise.
8371 * ax-gdb.c (gen_trace_static_fields): Likewise.
8372 (gen_traced_pop): Likewise.
8373 (gen_frame_args_address): Likewise.
8374 (gen_frame_locals_address): Likewise.
8375 (gen_var_ref): Likewise.
8376 (gen_struct_ref_recursive): Likewise.
8377 (gen_static_field): Likewise.
8378 (gen_maybe_namespace_elt): Likewise.
8379 (gen_expr): Likewise.
8380 (gen_trace_for_var): Likewise.
8381 (gen_trace_for_expr): Likewise.
8382 (gen_trace_for_return_address): Likewise.
8384 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8386 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
8388 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
8390 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8392 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
8393 from ax, update calls.
8394 (gen_usual_arithmetic): Likewise.
8395 (gen_integral_promotions): Likewise.
8396 (gen_bitfield_ref): Likewise.
8397 (gen_primitive_field): Likewise.
8398 (gen_struct_ref_recursive): Likewise.
8399 (gen_struct_ref): Likewise.
8400 (gen_maybe_namespace_elt): Likewise.
8401 (gen_struct_elt_for_reference): Likewise.
8402 (gen_namespace_elt): Likewise.
8403 (gen_aggregate_elt_ref): Likewise.
8404 (gen_expr): Get gdbarch from ax, update calls.
8405 (gen_expr_binop_rest): Likewise.
8407 2017-07-13 Pedro Alves <palves@redhat.com>
8409 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
8411 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
8412 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
8413 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
8414 tdesc_amd64_linux as default tdesc. Get final tdesc from the
8416 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
8417 Get final tdesc from the tdep.
8418 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
8420 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
8421 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
8422 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
8423 Use it as default tdesc.
8424 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
8425 down to amd_init_abi. No longer handle fallback tdesc here.
8426 * amd64-tdep.h (tdesc_x32): Declare.
8427 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
8429 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
8432 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8434 * s390-linux-tdep.c (s390_process_record): Add support for
8435 instructions new in arch12.
8437 2017-07-11 John Baldwin <jhb@FreeBSD.org>
8439 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8440 PT_GETFSBASE and PT_GETGSBASE.
8441 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
8444 2017-07-11 John Baldwin <jhb@FreeBSD.org>
8446 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
8447 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
8448 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
8450 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
8451 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
8452 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
8453 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
8454 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
8455 * features/i386/amd64.xml: Add 64bit-segments.xml.
8456 * features/i386/amd64-avx-avx512.c: Regenerated.
8457 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
8458 * features/i386/amd64-avx-mpx.c: Regenerated.
8459 * features/i386/amd64-avx.c: Regenerated.
8460 * features/i386/amd64-mpx.c: Regenerated.
8461 * features/i386/amd64.c: Regenerated.
8462 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
8463 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8464 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
8465 * regformats/i386/amd64-avx.dat: Regenerated.
8466 * regformats/i386/amd64-mpx.dat: Regenerated.
8467 * regformats/i386/amd64.dat: Regenerated.
8469 2017-07-10 Yao Qi <yao.qi@linaro.org>
8471 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
8472 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
8474 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
8476 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
8478 * gnulib/aclocal.m4: Regenerate.
8479 * gnulib/config.in: Regenerate.
8480 * gnulib/configure: Regenerate.
8481 * gnulib/import/Makefile.am: Regenerate.
8482 * gnulib/import/Makefile.in: Regenerate.
8483 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
8484 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
8485 * gnulib/import/m4/environ.m4: New file.
8486 * gnulib/import/m4/setenv.m4: New file.
8487 * gnulib/import/setenv.c: New file.
8488 * gnulib/import/unsetenv.c: New file.
8490 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
8492 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
8493 address when op is DW_OP_addr.
8495 2017-07-09 Tom Tromey <tom@tromey.com>
8497 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
8498 check and apply to outer type.
8500 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8502 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
8503 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
8504 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
8505 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
8507 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8509 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
8511 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8513 * corelow.c (get_core_siginfo): Remove.
8514 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
8515 instead of get_core_siginfo.
8516 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
8517 * gdbarch.h: Re-generate.
8518 * gdbarch.c: Re-generate.
8519 * linux-tdep.c (linux_core_xfer_siginfo): New.
8520 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
8522 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8524 * corelow.c (thread_section_name): Move to ...
8525 * gdbcore.h (thread_section_name): ... here.
8527 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8529 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
8530 (struct siginfo32): New.
8531 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
8532 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
8533 via ptrace(PT_LWPINFO).
8535 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8537 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
8538 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
8539 (fbsd_get_siginfo_type): New.
8540 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
8541 (_initialize_fbsd_tdep): New.
8543 2017-07-06 David Blaikie <dblaikie@gmail.com>
8545 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
8546 a singular dwo_unit*) to support multiple CUs in the same way that
8547 multiple TUs are supported.
8548 (create_cus_hash_table): Replace create_dwo_cu with a function for
8549 parsing multiple CUs from a DWO file.
8550 (open_and_init_dwo_file): Use create_cus_hash_table rather than
8552 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
8553 htab_find, rather than comparing the signature to a singleton CU in
8556 2017-07-06 Pedro Alves <palves@redhat.com>
8558 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
8560 2017-07-04 Pedro Alves <palves@redhat.com>
8562 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
8563 * gdbtypes.h (TYPE_STATIC): Delete.
8564 (struct fn_field) <is_public, is_abstract, is_static, is_final,
8565 is_synchronized, is_native>: Delete.
8567 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
8568 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
8569 (TYPE_FN_FIELD_ABSTRACT): Delete.
8571 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
8573 * buffer.h (buffer_finish): Fix spelling mistakes.
8575 2017-07-01 Eli Zaretskii <eliz@gnu.org>
8577 * .dir-locals.el: Automatically switch to C-style comments in
8578 versions of Emacs that support the feature.
8580 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8581 Pedro Alves <palves@redhat.com>
8584 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
8585 (process_next_line): New variable 'inline_cmd'.
8586 Adjust 'if' clauses for "python", "compile" and "guile" to use
8587 'command_name_equals' and check for '!inline_cmd'.
8589 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8592 * cli/cli-script.c (command_name_equals_not_inline): New function.
8593 (process_next_line): Adjust 'if' clauses for "python", "compile"
8594 and "guile" to use command_name_equals_not_inline.
8596 2017-06-29 Pedro Alves <palves@redhat.com>
8598 * completer.c (expression_completer): Call
8599 linespec_location_completer instead of location_completer.
8601 2017-06-29 Pedro Alves <palves@redhat.com>
8603 * completer.c (expression_completer): Remove code that recomputes
8606 2017-06-29 Yao Qi <yao.qi@linaro.org>
8608 * regformats/regdat.sh: Generate code with
8609 "ifndef IN_PROCESS_AGENT".
8611 2017-06-28 Pedro Alves <palves@redhat.com>
8613 * command.h: Include "common/scoped_restore.h".
8615 2017-06-28 Yao Qi <yao.qi@linaro.org>
8617 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
8618 instead of obstack_grow.
8620 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
8623 * symfile.c (reread_symbols): Call objfiles_changed just before
8626 2017-06-27 Pedro Alves <palves@redhat.com>
8628 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
8629 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
8630 (completion_list_add_symbol, completion_list_add_msymbol):
8631 ... these new functions.
8632 (add_symtab_completions)
8633 (default_make_symbol_completion_list_break_on_1): Adjust.
8635 2017-06-27 Pedro Alves <palves@redhat.com>
8637 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
8638 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
8639 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
8641 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
8642 'storage_obstack' field an auto_obstack. In-class initialize all
8643 non-bitfield fields. Make minsyms_read bool.
8644 * symfile.c (read_symbols): Adjust.
8646 2017-06-27 Alan Hayward <alan.hayward@arm.com>
8648 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
8649 (gdbsim_store_register): Likewise.
8651 2017-06-27 Pedro Alves <palves@redhat.com>
8653 * c-exp.y (name_obstack): Now an auto_obstack.
8654 (yylex): Use auto_obstack::clear.
8655 (c_parse): Use auto_obstack::clear instead of reinitializing and
8656 freeing the obstack.
8657 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
8658 * d-exp.y (name_obstack): Now an auto_obstack.
8659 (yylex): Use auto_obstack::clear.
8660 (d_parse): Use auto_obstack::clear instead of reinitializing and
8661 freeing the obstack.
8662 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
8664 * dwarf2read.c (create_addrmap_from_index)
8665 (dwarf2_build_psymtabs_hard)
8666 (update_enumeration_type_from_children): Likewise.
8667 * gdb_obstack.h (auto_obstack): New type.
8668 * go-exp.y (name_obstack): Now an auto_obstack.
8669 (build_packaged_name): Use auto_obstack::clear.
8670 (go_parse): Use auto_obstack::clear instead of reinitializing and
8671 freeing the obstack.
8672 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
8674 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
8675 * rust-exp.y (work_obstack): Now an auto_obstack.
8676 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
8677 reinitializing and freeing the obstack.
8678 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
8679 (host_char_to_target): Use auto_obstack.
8680 * utils.h (make_cleanup_obstack_free): Delete declaration.
8681 * valprint.c (generic_emit_char, generic_printstr): Use
8684 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
8686 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
8688 (darwin_init_thread_list): Don't update dummy thread.
8689 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
8691 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8693 * record-full.c (netorder16): Remove.
8695 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8697 * common/diagnostics.h: Define macros for GCC.
8698 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
8699 * common/vec.h: Include diagnostics.h.
8700 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
8701 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
8704 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8706 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
8708 * ada-lex.l: Ignore deprecated register warnings.
8710 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8712 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
8713 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
8715 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8717 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
8720 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8722 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
8724 2017-06-23 Alan Hayward <alan.hayward@arm.com>
8726 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
8727 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
8728 (xtensa_register_read_masked): Likewise.
8730 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
8732 * common/environ.c (gdb_environ::unset): Update comment.
8734 2017-06-22 Alan Hayward <alan.hayward@arm.com>
8736 * python/py-unwind.c (pyuw_sniffer): Allocate space for
8739 2017-06-22 Alan Hayward <alan.hayward@arm.com>
8741 * record-full.c (record_full_exec_insn): Use byte_vector.
8743 2017-06-22 Yao Qi <yao.qi@linaro.org>
8745 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
8746 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8748 2017-06-22 Alan Hayward <alan.hayward@arm.com>
8750 * remote.c (cached_reg): Move from here...
8751 * regcache.h (cached_reg): ...to here.
8752 * python/py-unwind.c (struct reg_info): Remove.
8753 (cached_frame_info): Use cached_reg_t.
8754 (pyuw_prev_register): Likewise.
8755 (pyuw_sniffer): Use cached_reg_t and allocate registers.
8756 (pyuw_dealloc_cache): Free all registers.
8758 2017-06-22 Pedro Alves <palves@redhat.com>
8759 Simon Marchi <simon.marchi@ericsson.com>
8761 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
8763 * common/diagnostics.h: New file.
8765 2017-06-22 Pedro Alves <palves@redhat.com>
8767 * common/agent.h: Add include guards.
8769 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
8771 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
8772 talk about addressable units instead of bytes.
8774 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8776 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
8777 of '::const_iterator'.
8779 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8781 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8782 'unittests/environ-selftests.c'.
8783 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
8784 * charset.c (find_charset_names): Declare object 'iconv_env'.
8785 Update code to use 'iconv_env' object. Remove call to
8787 * common/environ.c: Include <utility>.
8788 (make_environ): Delete function.
8789 (free_environ): Delete function.
8790 (gdb_environ::clear): New function.
8791 (gdb_environ::operator=): New function.
8792 (gdb_environ::get): Likewise.
8793 (environ_vector): Delete function.
8794 (set_in_environ): Delete function.
8795 (gdb_environ::set): New function.
8796 (unset_in_environ): Delete function.
8797 (gdb_environ::unset): New function.
8798 (gdb_environ::envp): Likewise.
8799 * common/environ.h: Include <vector>.
8800 (struct gdb_environ): Delete; transform into...
8801 (class gdb_environ): ... this class.
8802 (free_environ): Delete prototype.
8803 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
8804 environ_vector): Likewise.
8805 * infcmd.c (run_command_1): Update code to call
8806 'envp' from 'gdb_environ' class.
8807 (environment_info): Update code to call methods from 'gdb_environ'
8809 (unset_environment_command): Likewise.
8810 (path_info): Likewise.
8811 (path_command): Likewise.
8812 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
8813 (inferior::inferior): Initialize 'environment' using the host's
8815 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
8816 Include "environ.h".
8817 (class inferior) <environment>: Change type from 'struct
8818 gdb_environ' to 'gdb_environ'.
8819 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
8820 methods from 'gdb_environ' class.
8821 * solib.c (solib_find_1): Likewise
8822 * unittests/environ-selftests.c: New file.
8824 2017-06-20 Yao Qi <yao.qi@linaro.org>
8826 * features/i386/i386-linux.xml: Exchange the order of including
8827 32bit-linux.xml and 32bit-sse.xml.
8828 * features/i386/i386-linux.c: Regenerated.
8830 2017-06-20 Yao Qi <yao.qi@linaro.org>
8832 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
8833 Delete copy ctor and assignment operator.
8834 (tdesc_type): Likewise.
8835 (tdesc_feature): Likewise.
8836 (tdesc_free_reg): Remove.
8837 (tdesc_create_reg): Use new.
8838 (tdesc_free_type): Remove.
8839 (tdesc_create_vector): Use new.
8840 (tdesc_create_union): Likewise.
8841 (tdesc_create_flags): Likewise.
8842 (tdesc_create_enum): Likewise.
8843 (tdesc_free_feature): Delete.
8844 (free_target_description): Use delete.
8846 2017-06-19 John Baldwin <jhb@FreeBSD.org>
8848 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
8851 2017-06-19 Pedro Alves <palves@redhat.com>
8853 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
8854 after gdb::unlinker.
8856 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
8858 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
8859 gdb_environ to access an environment variable.
8861 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8863 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
8866 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8868 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
8870 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8872 * configure: Re-generate.
8873 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
8875 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8877 * configure: Re-generate.
8878 * warning.m4: Pass -Werror to compiler when checking for
8879 supported warning flags.
8881 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8883 * Makefile.in (COMPILE.pre): Add "-x c++".
8885 2017-06-16 Alan Hayward <alan.hayward@arm.com>
8886 Pedro Alves <palves@redhat.com>
8887 Yao Qi <yao.qi@linaro.org>
8889 * defs.h (RequireLongest): New.
8890 (extract_integer): Declare function template.
8891 (extract_signed_integer): Remove the declaration, but define it
8893 (extract_unsigned_integer): Likewise.
8894 (store_integer): Declare function template.
8895 (store_signed_integer): Remove the declaration, but define it
8897 (store_unsigned_integer): Likewise.
8898 * findvar.c (extract_integer): New function template.
8899 (extract_signed_integer): Remove.
8900 (extract_unsigned_integer): Remove.
8901 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
8903 (store_integer): New function template.
8904 (store_signed_integer): Remove.
8905 (store_unsigned_integer): Remove.
8906 (store_integer): Explicit instantiations.
8907 * regcache.c (regcache_raw_read_signed): Update.
8908 (regcache::raw_read): New function.
8909 (regcache::raw_read_signed): Remove.
8910 (regcache::raw_read_unsigned): Remove.
8911 (regcache_raw_read_unsigned): Update.
8912 (regcache_raw_write_unsigned): Update.
8913 (regcache::raw_write_signed): Remove.
8914 (regcache::raw_write): New function.
8915 (regcache_cooked_read_signed): Update.
8916 (regcache::raw_write_unsigned): Remove.
8917 (regcache::cooked_read_signed): Remove.
8918 (regcache_cooked_read_unsigned): Update.
8919 (regcache::cooked_read_unsigned): Remove.
8920 (regcache_cooked_write_signed): Update.
8921 (regcache_cooked_write_unsigned): Update.
8922 * regcache.h (regcache) <raw_read_signed>: Remove.
8923 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
8924 <raw_read, raw_write>: New.
8925 <cooked_read_signed, cooked_write_signed>: Remove.
8926 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
8927 <cooked_read, cooked_write>: New.
8928 * sh64-tdep.c (sh64_pseudo_register_read): Update.
8929 (sh64_pseudo_register_write): Update.
8931 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
8933 * arc-tdep.c (arc_disassembler_options): New variable.
8934 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
8935 of default_print_insn.
8936 (arc_delayed_print_insn): Set info->section when needed,
8937 use default_print_insn to retrieve a disassembler.
8939 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
8942 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
8943 to mention $SHELL and startup-with-shell.
8945 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
8947 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
8949 2017-06-14 Yao Qi <yao.qi@linaro.org>
8951 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
8952 default_print_insn instead of print_insn_aarch64.
8953 * arm-tdep.c (gdb_print_insn_arm): Call
8954 default_print_insn instead of print_insn_big_arm
8955 and print_insn_little_arm.
8956 * i386-tdep.c (i386_print_insn): Call default_print_insn
8957 instead of print_insn_i386.
8958 * ia64-tdep.c (ia64_print_insn): Call
8959 default_print_insn instead of print_insn_ia64.
8960 * mips-tdep.c (gdb_print_insn_mips): Call
8961 default_print_insn instead of print_insn_big_mips
8962 and print_insn_little_mips.
8963 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
8964 instead of print_insn_spu.
8966 2017-06-14 Pedro Alves <palves@redhat.com>
8968 * ada-lang.c: Include "common/byte-vector.h".
8969 (ada_value_primitive_packed_val): Use gdb::byte_vector.
8970 * charset.c (wchar_iterator::iterate): Resize the vector instead
8972 * common/byte-vector.h: Include "common/def-vector.h".
8973 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
8974 * cli/cli-dump.c: Include "common/byte-vector.h".
8975 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
8976 * common/byte-vector.h: New file.
8977 * common/def-vector.h: New file.
8978 * common/default-init-alloc.h: New file.
8979 * dwarf2loc.c: Include "common/byte-vector.h".
8980 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
8981 instead of reserving it.
8982 * dwarf2read.c: Include "common/byte-vector.h".
8983 (data_buf::m_vec): Now a gdb::byte_vector.
8984 * gdb_regex.c: Include "common/def-vector.h".
8985 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
8986 * mi/mi-main.c: Include "common/byte-vector.h".
8987 (mi_cmd_data_read_memory): Use gdb::byte_vector.
8988 * printcmd.c: Include "common/byte-vector.h".
8989 (print_scalar_formatted): Use gdb::byte_vector.
8990 * valprint.c: Include "common/byte-vector.h".
8991 (maybe_negate_by_bytes, print_decimal_chars): Use
8994 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8996 * darwin-nat.c: Include "nat/fork-inferior.h".
8998 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9000 * configure.nat: Factor out Darwin bits that are not
9001 architecture-specific. Add fork-inferior.o.
9003 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9005 * configure.nat: Factor out AIX bits that are not
9006 architecture-specific. Add fork-inferior.o.
9008 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9010 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
9011 (read_pieced_value, write_pieced_value): ...here. Reduce to
9012 wrappers that just call rw_pieced_value.
9014 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9016 * dwarf2loc.c (write_pieced_value): When writing the data for a
9017 memory piece, use write_memory_with_notification instead of
9020 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9022 * valops.c (read_value_memory): Change embedded_offset to
9023 represent a bit offset instead of a byte offset.
9024 * value.h (read_value_memory): Adjust comment.
9026 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9028 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
9029 dest_offset_bits and source_offset_bits.
9030 (write_pieced_value): Likewise.
9032 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9034 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
9035 given by DW_OP_bit_piece.
9036 (write_pieced_value): Likewise.
9038 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9040 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
9041 some other preparations to the places where sufficient information
9043 (write_pieced_value): Likewise.
9045 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9047 * dwarf2loc.c (bits_to_bytes): New function.
9048 (read_pieced_value): Fix offset calculations for register pieces
9049 on big-endian targets.
9050 (write_pieced_value): Likewise.
9052 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9054 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
9055 (write_pieced_value): Likewise.
9057 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9059 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
9060 transfer the source value's least significant bits, instead of its
9061 lowest-addressed ones. Rename type_len to max_offset.
9062 (read_pieced_value): Mirror above changes to write_pieced_value as
9065 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9067 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
9068 truncate full bytes from dest_offset_bits before using it as an
9069 offset into the buffer.
9071 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9073 * dwarf2loc.c (write_pieced_value): Include transfer size in
9076 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9078 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
9079 calculation of this_size.
9081 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9083 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
9084 when targeting a bit-field.
9085 (write_pieced_value): Likewise.
9087 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9089 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
9090 (allocate_piece_closure): Drop addr_size parameter.
9091 (dwarf2_evaluate_loc_desc_full): Adjust call to
9092 allocate_piece_closure.
9094 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9097 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
9098 the LSB end, independent of endianness.
9100 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9102 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
9105 2017-06-13 Yao Qi <yao.qi@linaro.org>
9107 * mips-linux-nat.c: Move include features/mips*-linux.c to
9109 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
9110 to mips-linux-tdep.c.
9111 * mips-linux-tdep.c: Include features/mips*-linux.c
9112 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
9114 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
9115 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
9116 (tdesc_mips64_dsp_linux): Declare.
9118 2017-06-12 Tom Tromey <tom@tromey.com>
9120 * valprint.h (val_print_type_code_int): Remove.
9121 * valprint.c (generic_val_print_int): Always call
9122 val_print_scalar_formatted.
9123 (val_print_type_code_int): Remove.
9124 * printcmd.c (print_scalar_formatted): Handle options->format==0.
9125 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
9126 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
9127 * ada-valprint.c (ada_val_print_num): Use
9128 val_print_scalar_formatted.
9130 2017-06-12 Tom Tromey <tom@tromey.com>
9132 * printcmd.c (print_scalar_formatted): Unify the two switches.
9133 Don't convert scalars to LONGEST.
9135 2017-06-12 Tom Tromey <tom@tromey.com>
9138 * valprint.h (print_decimal_chars): Update.
9139 * valprint.c (maybe_negate_by_bytes): New function.
9140 (print_decimal_chars): Add "is_signed" argument.
9141 * printcmd.c (print_scalar_formatted): Update.
9143 2017-06-12 Tom Tromey <tom@tromey.com>
9146 * valprint.h (print_binary_chars, print_hex_chars): Update.
9147 * valprint.c (val_print_type_code_int): Update.
9148 (print_binary_chars): Add "zero_pad" argument.
9149 (emit_octal_digit): New function.
9150 (print_octal_chars): Don't zero-pad.
9151 (print_decimal_chars): Likewise.
9152 (print_hex_chars): Add "zero_pad" argument.
9153 * sh64-tdep.c (sh64_do_fp_register): Update.
9154 * regcache.c (regcache::dump): Update.
9155 * printcmd.c (print_scalar_formatted): Update.
9156 * infcmd.c (default_print_one_register_info): Update.
9158 2017-06-12 Pedro Alves <palves@redhat.com>
9159 Alan Hayward <alan.hayward@arm.com>
9161 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
9162 (mips_eabi_push_dummy_call): Rename local 'regsize' to
9163 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
9164 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
9165 Assert that abi_regsize bytes fit in 'ref_valbuf'.
9167 2017-06-12 Pedro Alves <palves@redhat.com>
9169 * dwarf2read.c (mapped_symtab::data): Now a vector of
9170 symtab_index_entry instead of vector of
9171 std::unique_ptr<symtab_index_entry>. All users adjusted to check
9172 whether an element's name is NULL instead of checking whether the
9173 element itself is NULL.
9174 (find_slot): Change return type. Adjust.
9175 (hash_expand, , add_index_entry, uniquify_cu_indices)
9176 (write_hash_table): Adjust.
9178 2017-06-12 Pedro Alves <palves@redhat.com>
9180 * dwarf2read.c (recursively_count_psymbols): New function.
9181 (write_psymtabs_to_index): Call it to compute number of psyms and
9182 pass estimate size of psyms_seen to unordered_set's ctor.
9184 2017-06-12 Pedro Alves <palves@redhat.com>
9186 * dwarf2read.c (write_hash_table): Check if key already exists
9189 2017-06-12 Pedro Alves <palves@redhat.com>
9191 * dwarf2read.c (data_buf::append_space): Rename to...
9192 (data_buf::grow): ... this, and make private. Adjust all callers.
9193 (data_buf::append_uint): New method.
9194 (add_address_entry, write_one_signatured_type)
9195 (write_psymtabs_to_index): Use it.
9197 2017-06-12 Pedro Alves <palves@redhat.com>
9199 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
9200 (file_write (FILE *, const std::vector<Elem>&)): Delete.
9201 (data_buf::file_write): Call ::fwrite directly.
9203 2017-06-12 Pedro Alves <palves@redhat.com>
9205 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
9208 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9210 Code cleanup: C++ify .gdb_index producer.
9211 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
9212 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
9213 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
9214 (create_strtab, add_string): Remove.
9215 (file_write, data_buf): New.
9216 (struct symtab_index_entry): Use std::vector for cu_indices.
9217 (struct mapped_symtab): Use std::vector for data.
9218 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
9219 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
9221 (find_slot): Change return type. Update it to the new data structures.
9222 (hash_expand, add_index_entry): Update it to the new data structures.
9223 (offset_type_compare): Remove.
9224 (uniquify_cu_indices): Update it to the new data structures.
9225 (c_str_view, c_str_view_hasher, vector_hasher): New.
9226 (add_indices_to_cpool): Remove.
9227 (write_hash_table): Update it to the new data structures.
9228 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
9229 (eq_psymtab_cu_index): Remove.
9230 (psym_index_map): New typedef.
9231 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
9232 reference and std::unordered_map for cu_index_htab.
9233 (add_address_entry, add_address_entry_worker, write_address_map)
9234 (write_psymbols): Update it to the new data structures.
9235 (write_obstack): Remove.
9236 (struct signatured_type_index_data): Change types_list to a data_buf
9237 reference and psyms_seen to a std::unordered_set reference.
9238 (write_one_signatured_type, recursively_write_psymbols)
9239 (write_psymtabs_to_index): Update it to the new data structures.
9241 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
9243 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
9244 separate-debug-file commands.
9245 * symfile.h (separate_debug_file_debug): New global.
9246 * symfile.c (separate_debug_file_debug): New global.
9247 (separate_debug_file_exists, find_separate_debug_file): Add
9249 (_initialize_symfile): Add "set debug separate-debug-file"
9251 * build-id.c (build_id_to_debug_bfd,
9252 find_separate_debug_file_by_buildid): Add debug output.
9254 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
9256 * gdbarch.sh (displaced_step_free_closure): Remove.
9257 * gdbarch.h, gdbarch.c: Re-generate.
9258 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
9259 displaced_step_free_closure.
9260 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
9261 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9262 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9263 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
9264 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9265 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9266 * arch-utils.h (simple_displaced_step_free_closure): Remove.
9267 * arch-utils.c (simple_displaced_step_free_closure): Remove.
9268 * infrun.c (displaced_step_clear): Call xfree instead of
9269 gdbarch_displaced_step_free_closure.
9271 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
9273 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
9276 2017-06-08 Alan Hayward <alan.hayward@arm.com>
9278 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
9279 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
9280 (mn10300_push_dummy_call): Likewise.
9282 2017-06-08 Alan Hayward <alan.hayward@arm.com>
9284 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
9286 2017-06-08 Alan Hayward <alan.hayward@arm.com>
9288 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
9290 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9292 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
9293 able to start inferiors using a shell.
9294 (New remote packets): Announce new packet "QStartupWithShell".
9295 * remote.c: Add PACKET_QStartupWithShell.
9296 (extended_remote_create_inferior): Handle new
9297 PACKET_QStartupWithShell.
9298 (remote_protocol_features) <QStartupWithShell>: New entry for
9299 PACKET_QStartupWithShell.
9300 (_initialize_remote): Call "add_packet_config_cmd" for
9303 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9304 Pedro Alves <palves@redhat.com>
9306 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
9307 and "nat/fork-inferior.h".
9308 * common/common-inferior.h: New file, with contents from
9310 * commom/common-utils.c: Include "common-utils.h".
9311 (stringify_argv): New function.
9312 * common/common-utils.h (stringify_argv): New prototype.
9313 * configure.nat: Add "fork-inferior.o" as a dependency for
9314 "*linux*", "fbsd*" and "nbsd*" hosts.
9315 * corefile.c (get_exec_file): Update comment.
9316 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
9317 instead of "startup_inferior".
9318 (darwin_create_inferior): Call "add_thread_silent" after
9320 * fork-child.c: Cleanup unnecessary includes.
9321 (SHELL_FILE): Move to "common/common-fork-child.c".
9322 (environ): Likewise.
9323 (exec_wrapper): Initialize.
9324 (get_exec_wrapper): New function.
9325 (breakup_args): Move to "common/common-fork-child.c"; rename to
9326 "breakup_args_for_exec".
9327 (escape_bang_in_quoted_argument): Move to
9328 "common/common-fork-child.c".
9329 (saved_ui): New variable.
9330 (prefork_hook): New function.
9331 (postfork_hook): Likewise.
9332 (postfork_child_hook): Likewise.
9333 (gdb_startup_inferior): Likewise.
9334 (fork_inferior): Move to "common/common-fork-child.c". Update
9335 function to support gdbserver.
9336 (startup_inferior): Likewise.
9337 * gdbcore.h (get_exec_file): Remove declaration.
9338 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
9339 instead of "startup_inferior". Call "add_thread_silent" after
9341 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
9342 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
9343 instead of "startup_inferior". Call "add_thread_silent" after
9345 * inferior.h: Include "common-inferior.h".
9346 (trace_start_error): Move to "common/common-utils.h".
9347 (trace_start_error_with_name): Likewise.
9348 (fork_inferior): Move prototype to "nat/fork-inferior.h".
9349 (startup_inferior): Likewise.
9350 (gdb_startup_inferior): New prototype.
9351 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
9352 * nat/fork-inferior.h: New file.
9353 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
9354 instead of "startup_inferior". Call "add_thread_silent" after
9356 * target.h (target_terminal_init): Move prototype to
9358 (target_terminal_inferior): Likewise.
9359 (target_terminal_ours): Likewise.
9360 * target/target.h (target_terminal_init): New prototype, moved
9362 (target_terminal_inferior): Likewise.
9363 (target_terminal_ours): Likewise.
9364 * utils.c (gdb_flush_out_err): New function.
9366 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9368 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
9369 * common/common-gdbthread.h: New file, with parts from
9371 * gdbthread.h: Include "common-gdbthread.h".
9372 (switch_to_thread): Moved to "common/common-gdbthread.h".
9374 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9376 * Makefile.in (SFILES): Add "common/job-control.c".
9377 (HFILES_NO_SRCDIR): Add "common/job-control.h".
9378 (COMMON_OBS): Add "job-control.o".
9379 * common/job-control.c: New file, with contents from
9381 * common/job-control.h: New file, with contents from "terminal.h".
9382 * fork-child.c: Include "job-control.h".
9383 * inflow.c: Include "job-control.h".
9384 (gdb_setpgid): Move to "common/common-inflow.c".
9385 (_initialize_inflow): Move setting of "job_control" to
9386 "handle_job_control".
9387 * terminal.h (job_control): Moved to "common/common-terminal.h".
9388 (gdb_setpgid): Likewise.
9389 * top.c: Include "job_control.h".
9390 * utils.c: Likewise.
9391 (job_control): Moved to "job-control.c".
9393 2017-06-07 Pedro Alves <palves@redhat.com>
9395 * Makefile.in (SFILES): Add gdb_regex.c.
9396 (COMMON_OBS): Add gdb_regex.o.
9397 * ada-lang.c (ada_add_standard_exceptions)
9398 (ada_add_exceptions_from_frame, name_matches_regex)
9399 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
9400 parameter type to compiled_regex. Adjust.
9401 (ada_exceptions_list): Use compiled_regex.
9402 * break-catch-throw.c (exception_catchpoint::pattern): Now a
9403 std::unique_ptr<compiled_regex>.
9404 (exception_catchpoint::~exception_catchpoint): Remove regfree
9406 (check_status_exception_catchpoint): Adjust to use compiled_regex.
9407 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
9408 * breakpoint.c (solib_catchpoint::compiled): Now a
9409 std::unique_ptr<compiled_regex>.
9410 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
9411 (check_status_catch_solib): Adjust to use compiled_regex.
9412 (add_solib_catchpoint): Adjust to use compiled_regex.
9413 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
9414 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
9415 compiled_regex reference. Adjust to use it.
9416 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
9417 declaration. Include "gdb_regex.h".
9418 (apropos_cmd): Change regex parameter to compiled_regex reference.
9419 * gdb_regex.c: New file.
9420 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
9422 (class compiled_regex): New.
9423 * linux-tdep.c: Include "common/gdb_optional.h".
9424 (struct mapping_regexes): New, factored out from
9425 mapping_is_anonymous_p, and adjusted to use compiled_regex.
9426 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
9427 gdb::optional and remove cleanups. Adjust to compiled_regex.
9428 * probe.c: Include "common/gdb_optional.h".
9429 (collect_probes): Use compiled_regex and gdb::optional and remove
9431 * skip.c: Include "common/gdb_optional.h".
9432 (skiplist_entry::compiled_function_regexp): Now a
9433 gdb::optional<compiled_regex>.
9434 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
9435 (free_skiplist_entry): Remove regfree call.
9436 (compile_skip_regexp, skip_rfunction_p): Adjust to use
9437 compiled_regex and gdb::optional.
9438 * symtab.c: Include "common/gdb_optional.h".
9439 (search_symbols): Use compiled_regex and gdb::optional.
9440 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
9441 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
9444 2017-06-07 Alan Hayward <alan.hayward@arm.com>
9446 * regcache.c (regcache::save): Avoid buffer use.
9447 (regcache::dump): Likewise.
9449 2017-06-07 Alan Hayward <alan.hayward@arm.com>
9451 * sh-tdep.c (sh_pseudo_register_read): Remove
9453 (sh_pseudo_register_write): Likewise.
9454 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
9455 (sh64_pseudo_register_write): Likewise
9457 2017-06-07 Alan Hayward <alan.hayward@arm.com>
9459 * aarch64-tdep.c (aarch64_store_return_value): Use
9461 (aarch64_pseudo_read_value): Likewise.
9462 (aarch64_pseudo_write): Likewise.
9464 2017-06-06 Yao Qi <yao.qi@linaro.org>
9466 * regformats/regdef.h (set_register_cache): Remove the
9469 2017-06-06 Alan Hayward <alan.hayward@arm.com>
9471 * frame.c (frame_unwind_register_signed): Use
9472 frame_unwind_register_value.
9474 2017-06-06 Pedro Alves <palves@redhat.com>
9476 PR breakpoints/21553
9477 * breakpoint.c (create_breakpoints_sal_default)
9478 (init_breakpoint_sal, create_breakpoint_sal): Use
9479 gdb::unique_xmalloc_ptr for string parameters.
9480 (create_breakpoint): Constify 'extra_string' and 'cond_string'
9481 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
9482 (base_breakpoint_create_breakpoints_sal)
9483 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
9484 (strace_marker_create_breakpoints_sal)
9485 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
9487 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
9488 gdb::unique_xmalloc_ptr for string parameters.
9489 (create_breakpoint): Constify 'extra_string' and 'cond_string'
9492 2017-06-06 Alan Hayward <alan.hayward@arm.com>
9494 * alpha-tdep.c (alpha_register_to_value): Use
9495 get_frame_register_value.
9496 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
9498 2017-06-06 Alan Hayward <alan.hayward@arm.com>
9500 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
9501 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
9502 (ia64_value_to_register): Likewise.
9503 (ia64_extract_return_value): Likewise.
9504 (ia64_store_return_value): Likewise.
9505 (ia64_push_dummy_call): Likewise.
9507 2017-06-04 Joel Brobecker <brobecker@adacore.com>
9511 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
9513 * x86-linux-nat.c (struct arch_lwp_info): Remove.
9515 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
9517 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
9519 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
9521 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
9523 * event-loop.c (poll_timers): Unallocate timer using delete
9526 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9528 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
9529 (struct breakpoint) <~breakpoint>: New.
9530 (struct watchpoint): Inherit from breakpoint.
9533 (struct tracepoint): Inherit from breakpoint.
9535 * breakpoint.c (longjmp_breakpoint_ops): Remove.
9536 (struct longjmp_breakpoint): Inherit from breakpoint.
9537 <~longjmp_breakpoint>: New.
9539 (new_breakpoint_from_type): Remove casts.
9540 (watchpoint_in_thread_scope): Remove reference to base field.
9541 (watchpoint_del_at_next_stop): Likewise.
9542 (update_watchpoint): Likewise.
9543 (watchpoint_check): Likewise.
9544 (bpstat_check_watchpoint): Likewise.
9545 (set_longjmp_breakpoint): Likewise.
9546 (struct fork_catchpoint): Inherit from breakpoint.
9548 (struct solib_catchpoint): Inherit from breakpoint.
9549 <~solib_catchpoint>: New.
9551 (dtor_catch_solib): Change to ...
9552 (solib_catchpoint::~solib_catchpoint): ... this.
9553 (breakpoint_hit_catch_solib): Remove reference to base field.
9554 (add_solib_catchpoint): Likewise.
9555 (create_fork_vfork_event_catchpoint): Likewise.
9556 (struct exec_catchpoint): Inherit from breakpoint.
9557 <~exec_catchpoint>: New.
9559 (dtor_catch_exec): Change to ...
9560 (exec_catchpoint::~exec_catchpoint): ... this.
9561 (dtor_watchpoint): Change to ...
9562 (watchpoint::~watchpoint): ... this.
9563 (watch_command_1): Remove reference to base field.
9564 (catch_exec_command_1): Likewise.
9565 (base_breakpoint_dtor): Change to ...
9566 (breakpoint::~breakpoint): ... this.
9567 (base_breakpoint_ops): Remove dtor field value.
9568 (longjmp_bkpt_dtor): Change to ...
9569 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
9570 (strace_marker_create_breakpoints_sal): Remove reference to base
9572 (delete_breakpoint): Don't manually call breakpoint destructor.
9573 (create_tracepoint_from_upload): Remove reference to base field.
9574 (trace_pass_set_count): Likewise.
9575 (initialize_breakpoint_ops): Don't initialize
9576 momentary_breakpoint_ops, don't set dtors.
9577 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
9578 <~ada_catchpoint>: New.
9580 (create_excep_cond_exprs): Remove reference to base field.
9581 (dtor_exception): Change to ...
9582 (ada_catchpoint::~ada_catchpoint): ... this.
9583 (dtor_catch_exception): Remove.
9584 (dtor_catch_exception_unhandled): Remove.
9585 (dtor_catch_assert): Remove.
9586 (create_ada_exception_catchpoint): Remove reference to base
9588 (initialize_ada_catchpoint_ops): Don't set dtors.
9589 * break-catch-sig.c (struct signal_catchpoint): Inherit from
9591 <~signal_catchpoint>: New.
9593 (signal_catchpoint_dtor): Change to ...
9594 (signal_catchpoint::~signal_catchpoint): ... this.
9595 (create_signal_catchpoint): Remove reference to base field.
9596 (initialize_signal_catchpoint_ops): Don't set dtor.
9597 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
9599 <~syscall_catchpoint>: New.
9601 (dtor_catch_syscall): Change to ...
9602 (syscall_catchpoint::~syscall_catchpoint): ... this.
9603 (create_syscall_event_catchpoint): Remove reference to base
9605 (initialize_syscall_catchpoint_ops): Don't set dtor.
9606 * break-catch-throw.c (struct exception_catchpoint): Inherit
9608 <~exception_catchpoint>: New.
9610 (dtor_exception_catchpoint): Change to ...
9611 (exception_catchpoint::~exception_catchpoint): ... this.
9612 (handle_gnu_v3_exceptions): Remove reference to base field.
9613 (initialize_throw_catchpoint_ops): Don't set dtor.
9614 * ctf.c (ctf_get_traceframe_address): Remove reference to base
9616 * remote.c (remote_get_tracepoint_status): Likewise.
9617 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
9618 * tracefile.c (tracefile_fetch_registers): Likewise.
9619 * tracepoint.c (actions_command): Likewise.
9620 (validate_actionline): Likewise.
9621 (tfind_1): Likewise.
9622 (get_traceframe_location): Likewise.
9623 (find_matching_tracepoint_location): Likewise.
9624 (parse_tracepoint_status): Likewise.
9625 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
9627 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9629 * breakpoint.c (struct longjmp_breakpoint): New struct.
9630 (is_tracepoint_type): Change return type to bool.
9631 (is_longjmp_type): New function.
9632 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
9633 (set_raw_breakpoint_without_location): Use
9634 new_breakpoint_from_type.
9635 (set_raw_breakpoint): Likewise.
9637 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9639 * breakpoint.c (new_breakpoint_from_type): New function.
9640 (create_breakpoint_sal): Use new_breakpoint_from_type and
9642 (create_breakpoint): Likewise.
9644 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
9646 * memattr.c (mem_info_command): Rename to ...
9647 (info_mem_command): ... this.
9648 (mem_enable_command): Rename to ...
9649 (enable_mem_command): ... this.
9650 (mem_disable_command): Rename to ...
9651 (disable_mem_command): ... this.
9652 (mem_delete_command): Rename to ...
9653 (delete_mem_command): ... this.
9654 (_initialize_mem): Adjust function names.
9656 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9658 * btrace.c (handle_pt_insn_events): New.
9659 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
9660 STATUS. Split into this and ...
9661 (handle_pt_insn_event_flags): ... this.
9663 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9665 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
9666 and struct pt_insn.resynced.
9667 * configure: Regenerated.
9668 * config.in: Regenerated.
9670 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9672 * btrace.c (ftrace_find_call_by_number): New function.
9673 (ftrace_new_function): Store objects, not pointers.
9674 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
9675 ftrace_new_gap, ftrace_update_function,
9676 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
9677 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
9678 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
9679 btrace_ends_with_single_insn, btrace_call_get): Account for
9680 btrace_thread_info::functions now storing objects.
9681 * btrace.h (struct btrace_thread_info): Add constructor.
9682 (struct btrace_thread_info) <functions>: Make std::vector.
9683 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
9684 Initialize with default values.
9685 * record-btrace.c (record_btrace_frame_sniffer): Account for
9686 btrace_thread_info::functions now storing objects.
9688 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9690 * btrace.c: Remove typedef bfun_s.
9691 (ftrace_new_gap): Directly add gaps to the list of gaps.
9692 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
9693 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
9694 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
9697 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9699 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
9700 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
9701 with btrace_thread_info::next_segment and
9702 btrace_thread_info::prev_segment.
9703 * btrace.h: Remove struct btrace_func_link.
9704 (struct btrace_function): Replace pair of function segment pointers
9705 with pair of indices.
9706 * python/py-record-btrace.c (btpy_call_prev_sibling,
9707 btpy_call_next_sibling): Replace references to
9708 btrace_thread_info::segment with btrace_thread_info::next_segment and
9709 btrace_thread_info::prev_segment.
9710 * record-btrace.c (record_btrace_frame_this_id): Use
9711 btrace_find_call_by_number.
9713 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9715 * btrace.c (ftrace_new_function, ftrace_fixup_level,
9716 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
9717 btrace_insn_next, btrace_insn_prev): Remove references to
9718 btrace_thread_info::flow.
9719 * btrace.h (struct btrace_function): Remove FLOW.
9721 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9723 * btrace.c (ftrace_find_call_by_number): New function.
9724 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
9725 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
9726 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
9727 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
9729 * btrace.h (struct btrace_function): Turn UP into an index.
9730 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
9732 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
9733 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
9734 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
9736 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9738 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9739 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9740 ftrace_update_function, ftrace_compute_global_level_offset,
9741 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
9742 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
9743 btrace_insn_end, btrace_is_empty): Remove references to
9744 btrace_thread_info::begin and btrace_thread_info::end.
9745 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
9746 (struct btrace_thread_info) <functions>: Adjust comment.
9747 * record-btrace.c (record_btrace_start_replaying): Remove reference to
9748 btrace_thread_info::begin.
9750 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9752 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9753 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9754 ftrace_update_function): Remove arguments that implicitly were always
9756 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
9757 Don't pass BTINFO->END.
9759 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9761 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
9762 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
9763 btrace_find_insn_by_number): Replace function segment pointer with
9765 (btrace_insn_cmp): Simplify.
9766 * btrace.h: (struct btrace_insn_iterator) Rename index to
9767 insn_index. Replace function segment pointer with index into function
9769 * record-btrace.c (record_btrace_call_history): Replace function
9770 segment pointer use with index.
9771 (record_btrace_frame_sniffer): Retrieve function call segment through
9773 (record_btrace_set_replay): Remove defunc't safety check.
9775 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9777 * btrace.c (btrace_ends_with_single_insn): New function.
9778 (btrace_call_get, btrace_call_number, btrace_call_begin,
9779 btrace_call_end, btrace_call_next, btrace_call_prev,
9780 btrace_find_call_by_number): Use index into call segment vector
9782 (btrace_call_cmp): Simplify.
9783 * btrace.h (struct btrace_call_iterator): Replace function call segment
9784 pointer with index into vector.
9785 * record-btrace.c (record_btrace_call_history): Use index instead of
9788 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9790 * btrace.c (btrace_insn_begin, btrace_insn_end,
9791 btrace_find_insn_by_number): Add btinfo to iterator.
9792 * btrace.h (struct btrace_insn_iterator): Add btinfo.
9794 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9796 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
9797 and save pointers directly.
9798 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
9799 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
9800 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
9801 changed signature of functions.
9802 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
9803 (btrace_fetch): Remove code that adds btrace_function pointers to
9804 vector of btrace_functions.
9805 (btrace_clear): Simplify freeing vector of btrace_functions.
9807 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9809 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
9810 Replace VEC_* with std::vector functions.
9811 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
9812 (struct btrace_thread_info)<functions>: Change type to std::vector.
9814 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
9816 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
9817 "Removed targets and native configurations" up. Merge duplicate
9818 "New commands" sub-sections. Add "New options" sub-sections.
9820 2017-05-26 Alan Hayward <alan.hayward@arm.com>
9822 * defs.h (copy_integer_to_size): New declaration.
9823 * findvar.c (copy_integer_to_size): New function.
9824 (do_cint_test): New selftest function.
9825 (copy_integer_to_size_test): Likewise.
9826 (_initialize_findvar): Likewise.
9827 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
9828 (mips_fbsd_collect_reg): Use raw_collect_integer.
9829 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
9830 (mips64_fill_gregset): Use raw_collect_integer
9831 (mips64_fill_fpregset): Use raw_supply_integer.
9832 * regcache.c (regcache::raw_supply_integer): New function.
9833 (regcache::raw_collect_integer): Likewise.
9834 * regcache.h: (regcache::raw_supply_integer): New declaration.
9835 (regcache::raw_collect_integer): Likewise.
9837 2017-05-24 Yao Qi <yao.qi@linaro.org>
9839 * Makefile.in (SFILES): Add gdbarch-selftests.c.
9840 (COMMON_OBS): Add gdbarch-selftests.o.
9841 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
9842 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
9843 * gdbarch-selftests.c: New file.
9844 * regcache.h (regcache) <~regcache>: Mark it virtual if
9846 <raw_write>: Likewise.
9848 2017-05-24 Yao Qi <yao.qi@linaro.org>
9850 * regcache.c (current_regcache): Change it to
9851 regcache::current_regcache.
9852 (regcache_observer_target_changed): Update.
9853 (regcache_thread_ptid_changed): Make it a regcache static
9855 (regcache_thread_ptid_changed): Update.
9856 (class regcache_access): New.
9857 (current_regcache_test): Update.
9858 (_initialize_regcache): Update.
9859 * regcache.h: Include forward_list.
9860 (regcache): Declare regcache_thread_ptid_changed and declare
9861 registers_changed_ptid as friend.
9863 2017-05-24 Yao Qi <yao.qi@linaro.org>
9865 * i387-tdep.c (i387_register_to_value): Use register_size
9866 instead of TYPE_LENGTH.
9867 * m68k-tdep.c (m68k_register_to_value): Likewise.
9869 2017-05-24 Yao Qi <yao.qi@linaro.org>
9871 * i387-tdep.c (i387_convert_register_p): Return false if type
9872 code isn't TYPE_CODE_FLT.
9874 2017-05-24 Yao Qi <yao.qi@linaro.org>
9876 * alpha-tdep.c (alpha_convert_register_p): Return true if type
9878 (alpha_register_to_value): Remove type length check.
9879 (alpha_value_to_register): Likewise.
9881 2017-05-24 Yao Qi <yao.qi@linaro.org>
9883 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
9886 2017-05-24 Yao Qi <yao.qi@linaro.org>
9888 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
9889 TYPE_CODE_FLT or not.
9891 2017-05-24 Yao Qi <yao.qi@linaro.org>
9893 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
9894 * avr-tdep.c (avr_gdbarch_init): Likewise.
9895 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9896 * cris-tdep.c (cris_gdbarch_init): Likewise.
9897 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9898 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9899 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9900 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9901 * mep-tdep.c (mep_gdbarch_init): Likewise.
9902 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9903 * mips-tdep.c (mips_gdbarch_init): Likewise.
9904 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9905 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9906 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9907 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9908 * v850-tdep.c (v850_gdbarch_init): Likewise.
9910 2017-05-24 Yao Qi <yao.qi@linaro.org>
9912 * selftest-arch.c (tests_with_arch): Call registers_changed
9913 and reinit_frame_cache.
9914 * selftest.c (run_self_tests): Likewise.
9916 2017-05-24 Yao Qi <yao.qi@linaro.org>
9918 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
9919 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
9921 2017-05-24 Yao Qi <yao.qi@linaro.org>
9923 * rl78-tdep.c (rl78_gdbarch_init): Don't call
9924 set_gdbarch_print_insn.
9926 2017-05-24 Yao Qi <yao.qi@linaro.org>
9928 * h8300-tdep.c (h8300_gdbarch_init): Don't call
9929 set_gdbarch_print_insn.
9931 2017-05-24 Yao Qi <yao.qi@linaro.org>
9933 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9934 set_gdbarch_print_insn.
9935 * arc-tdep.c (arc_gdbarch_init): Likewise.
9936 * arch-utils.c: include dis-asm.h.
9937 (default_print_insn): New function.
9938 * arch-utils.h (default_print_insn): Declare.
9939 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
9940 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9941 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
9942 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
9943 * frv-tdep.c (frv_gdbarch_init): Likewise.
9944 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9945 * gdbarch.sh (print_insn): Use default_print_insn.
9946 * gdbarch.c: Regenerated.
9947 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9948 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
9949 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9950 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
9951 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9952 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
9953 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
9954 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9955 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
9956 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9957 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9958 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9959 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9960 * mt-tdep.c (mt_gdbarch_init): Likewise.
9961 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9962 * nios2-tdep.c (nios2_print_insn): Remove.
9963 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
9964 * rx-tdep.c (rx_gdbarch_init): Likewise.
9965 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9966 * score-tdep.c (score_print_insn): Remove.
9967 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
9968 * sh-tdep.c (sh_gdbarch_init): Likewise.
9969 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9970 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9971 * tic6x-tdep.c (tic6x_print_insn): Remove.
9972 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
9973 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
9974 * v850-tdep.c (v850_gdbarch_init): Likewise.
9975 * vax-tdep.c (vax_gdbarch_init): Likewise.
9976 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9977 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
9979 2017-05-23 John Baldwin <jhb@FreeBSD.org>
9981 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
9982 (MIPS_FP0_REGNUM): Remove.
9983 (MIPS_FSR_REGNUM): Remove.
9984 (mips_fbsd_supply_fpregs): Use mips_regnum.
9985 (mips_fbsd_supply_gregs): Likewise.
9986 (mips_fbsd_collect_fpregs): Likewise.
9987 (mips_fbsd_collect_gregs): Likewise.
9989 2017-05-23 John Baldwin <jhb@FreeBSD.org>
9991 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
9992 (getpfpregs_supplies): New function.
9993 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
9995 (mips_fbsd_store_inferior_registers): Likewise.
9997 2017-05-22 Pedro Alves <palves@redhat.com>
9999 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
10002 2017-05-22 Alan Hayward <alan.hayward@arm.com>
10004 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
10005 (store_register): Likewise.
10006 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
10007 (get_decimal_float_return_value): Likewise.
10008 (do_ppc_sysv_return_value): Likewise.
10009 (ppc64_sysv_abi_push_integer): Likewise.
10010 (ppc64_sysv_abi_push_freg): Likewise.
10011 (ppc64_sysv_abi_return_value_base): Likewise.
10012 (ppc64_sysv_abi_return_value): Likewise.
10013 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
10014 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
10015 * rs6000-nat.c: Likewise.
10016 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
10017 (rs6000_value_to_register): Likewise.
10018 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
10020 2017-05-21 Tom Tromey <tom@tromey.com>
10023 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
10024 arrays as "[T]", not "[T; ]".
10026 2017-05-19 Tom Tromey <tom@tromey.com>
10029 * rust-lang.c (exp_descriptor_rust): New function.
10030 (rust_language_defn): Use it.
10031 * p-lang.c (pascal_language_defn): Update.
10032 * opencl-lang.c (opencl_language_defn): Update.
10033 * objc-lang.c (objc_language_defn): Update.
10034 * m2-lang.c (m2_language_defn): Update.
10035 * language.h (struct language_defn)
10036 <la_watch_location_expression>: New member.
10037 * language.c (unknown_language_defn, auto_language_defn)
10038 (local_language_defn): Update.
10039 * go-lang.c (go_language_defn): Update.
10040 * f-lang.c (f_language_defn): Update.
10041 * d-lang.c (d_language_defn): Update.
10042 * c-lang.h (c_watch_location_expression): Declare.
10043 * c-lang.c (c_watch_location_expression): New function.
10044 (c_language_defn, cplus_language_defn, asm_language_defn)
10045 (minimal_language_defn): Use it.
10046 * breakpoint.c (watch_command_1): Call
10047 la_watch_location_expression.
10048 * ada-lang.c (ada_language_defn): Update.
10050 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10053 * gdb_curses.h (NOMACROS): Define.
10054 (NCURSES_NOMACROS): Define.
10056 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10059 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
10061 * tui/tui-wingeneral.c (box_win): Likewise.
10062 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
10063 (tui_show_source_line): Likewise.
10064 (tui_show_exec_info_content): Likewise.
10066 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
10068 * sparc-tdep.c (sparc_structure_return_p)
10069 (sparc_arg_on_registers_p): New functions.
10070 (sparc32_store_arguments): Use them.
10071 * sparc64-tdep.c (sparc64_16_byte_align_p)
10072 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
10073 Handle TYPE_CODE_ARRAY.
10075 2017-05-17 Yao Qi <yao.qi@linaro.org>
10077 * cli/cli-decode.c (add_alias_cmd): New function.
10078 * command.h (add_alias_cmd): Declare.
10079 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
10080 instead call add_alias_cmd.
10082 2017-05-17 Pedro Alves <palves@redhat.com>
10084 * Makefile.in (nat_extra_makefile_frag): Rename to ...
10085 (nat_makefile_frag): ... this. All references updated.
10086 * configure.ac: Likewise.
10087 * configure.nat: Likewise. Enhance comments.
10088 * configure: Regenerate.
10090 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10092 * procfs.c (procfs_create_inferior): Change prototype to match
10095 2017-05-13 Eli Zaretskii <eliz@gnu.org>
10097 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
10098 C++ compiler warning.
10100 2017-05-12 Tom Tromey <tom@tromey.com>
10103 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
10104 recurse, just call value_struct_elt directly.
10106 2017-05-12 Tom Tromey <tom@tromey.com>
10108 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
10109 OP_RUST_ARRAY>: Fix.
10111 2017-05-12 Tom Tromey <tom@tromey.com>
10113 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
10115 2017-05-09 Yao Qi <yao.qi@linaro.org>
10117 * regcache.c: Include <forward_list>.
10118 (struct regcache_list): Remove.
10119 (current_regcache): Update.
10120 (get_thread_arch_aspace_regcache): Update for std::forward_list.
10121 (regcache_thread_ptid_changed): Likewise.
10122 (registers_changed_ptid): Likewise.
10123 (current_regcache_size): Likewise.
10125 2017-05-09 Yao Qi <yao.qi@linaro.org>
10127 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
10128 (current_regcache_size): New function.
10129 (current_regcache_test): New function.
10130 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
10132 2017-05-08 Alan Hayward <alan.hayward@arm.com>
10134 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
10135 (print_gp_register_row): Use get_frame_register_value.
10137 2017-05-08 Alan Hayward <alan.hayward@arm.com>
10139 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
10140 (mips_supply_fpregset): Likewise.
10141 (mips64_supply_gregset): Likewise.
10143 2017-05-08 Alan Hayward <alan.hayward@arm.com>
10145 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
10146 regcache->raw_supply_zeroed.
10148 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
10150 * configure.nat: Rearrange 'case' statements to match
10153 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
10155 * Makefile.in: Remove "@host_makefile_frag@". Add variables
10156 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
10157 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
10158 "@nat_extra_makefile_frag@".
10159 (Makefile): Remove dependency on "@frags@".
10160 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
10161 (data-directory/Makefile): Likewise.
10162 * config/aarch64/linux.mh: Deleted; moved contents to
10163 "gdb/configure.nat".
10164 * config/alpha/alpha-linux.mh: Likewise.
10165 * config/alpha/nbsd.mh: Likewise.
10166 * config/arm/linux.mh: Likewise.
10167 * config/arm/nbsdelf.mh: Likewise.
10168 * config/i386/cygwin.mh: Likewise.
10169 * config/i386/cygwin64.mh: Likewise.
10170 * config/i386/darwin.mh: Likewise.
10171 * config/i386/fbsd.mh: Likewise.
10172 * config/i386/fbsd64.mh: Likewise.
10173 * config/i386/go32.mh: Likewise.
10174 * config/i386/i386gnu.mh: Likewise.
10175 * config/i386/i386sol2.mh: Likewise.
10176 * config/i386/linux.mh: Likewise.
10177 * config/i386/linux64.mh: Likewise.
10178 * config/i386/mingw.mh: Likewise.
10179 * config/i386/mingw64.mh: Likewise.
10180 * config/i386/nbsd64.mh: Likewise.
10181 * config/i386/nbsdelf.mh: Likewise.
10182 * config/i386/nto.mh: Likewise.
10183 * config/i386/obsd.mh: Likewise.
10184 * config/i386/obsd64.mh: Likewise.
10185 * config/i386/sol2-64.mh: Likewise.
10186 * config/ia64/linux.mh: Likewise.
10187 * config/m32r/linux.mh: Likewise.
10188 * config/m68k/linux.mh: Likewise.
10189 * config/m68k/nbsdelf.mh: Likewise.
10190 * config/m68k/obsd.mh: Likewise.
10191 * config/m88k/obsd.mh: Likewise.
10192 * config/mips/fbsd.mh: Likewise.
10193 * config/mips/linux.mh: Likewise.
10194 * config/mips/nbsd.mh: Likewise.
10195 * config/mips/obsd64.mh: Likewise.
10196 * config/pa/linux.mh: Likewise.
10197 * config/pa/nbsd.mh: Likewise.
10198 * config/pa/obsd.mh: Likewise.
10199 * config/powerpc/aix.mh: Likewise.
10200 * config/powerpc/fbsd.mh: Likewise.
10201 * config/powerpc/linux.mh: Likewise.
10202 * config/powerpc/nbsd.mh: Likewise.
10203 * config/powerpc/obsd.mh: Likewise.
10204 * config/powerpc/ppc64-linux.mh: Likewise.
10205 * config/powerpc/spu-linux.mh: Likewise.
10206 * config/s390/linux.mh: Likewise.
10207 * config/sh/nbsd.mh: Likewise.
10208 * config/sparc/fbsd.mh: Likewise.
10209 * config/sparc/linux.mh: Likewise.
10210 * config/sparc/linux64.mh: Likewise.
10211 * config/sparc/nbsd64.mh: Likewise.
10212 * config/sparc/nbsdelf.mh: Likewise.
10213 * config/sparc/obsd64.mh: Likewise.
10214 * config/sparc/sol2.mh: Likewise.
10215 * config/tilegx/linux.mh: Likewise.
10216 * config/vax/nbsdelf.mh: Likewise.
10217 * config/vax/obsd.mh: Likewise.
10218 * config/xtensa/linux.mh: Likewise.
10219 * config/i386/i386gnu.mn: New file, with excerpts from
10220 "config/i386/i386gnu.mh".
10221 * configure: Regenerate.
10222 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
10223 *.mh files under "gdb/config".
10224 * configure.nat: New file, with contents from the
10225 "gdb/config/*/*.mh" files.
10227 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
10229 * btrace.c (btrace_clear): Free insn vector.
10231 2017-05-05 Pedro Alves <palves@redhat.com>
10233 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
10234 * configure: Regenerate.
10236 2017-05-04 Pedro Alves <palves@redhat.com>
10238 * Makefile.in (SFILES): Add progspace-and-thread.c.
10239 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
10240 (COMMON_OBS): Add progspace-and-thread.o.
10241 * breakpoint.c: Include "progspace-and-thread.h".
10242 (update_inserted_breakpoint_locations)
10243 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
10244 Use scoped_restore_current_pspace_and_thread.
10245 (create_std_terminate_master_breakpoint): Use
10246 scoped_restore_current_program_space.
10247 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
10248 (print_breakpoint_location): Use
10249 scoped_restore_current_program_space.
10250 (bp_loc_is_permanent): Use
10251 scoped_restore_current_pspace_and_thread.
10252 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
10253 (download_tracepoint_locations): Use
10254 scoped_restore_current_pspace_and_thread.
10255 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
10256 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
10257 (enum step_over_calls_kind): Moved from inferior.h.
10258 (class scoped_restore_current_thread): New class.
10259 * gdbthread.h (make_cleanup_restore_current_thread): Delete
10261 (scoped_restore_current_thread): New class.
10262 * infcmd.c: Include "common/gdb_optional.h".
10263 (continue_1, proceed_after_attach): Use
10264 scoped_restore_current_thread.
10265 (notice_new_inferior): Use scoped_restore_current_thread.
10266 * inferior.c: Include "progspace-and-thread.h".
10267 (restore_inferior, save_current_inferior): Delete.
10268 (add_inferior_command, clone_inferior_command): Use
10269 scoped_restore_current_pspace_and_thread.
10270 * inferior.h (scoped_restore_current_inferior): New class.
10271 * infrun.c: Include "progspace-and-thread.h" and
10272 "common/gdb_optional.h".
10273 (follow_fork_inferior): Use
10274 scoped_restore_current_pspace_and_thread.
10275 (scoped_restore_exited_inferior): New class.
10276 (handle_vfork_child_exec_or_exit): Use
10277 scoped_restore_exited_inferior,
10278 scoped_restore_current_pspace_and_thread,
10279 scoped_restore_current_thread and scoped_restore.
10280 (fetch_inferior_event): Use scoped_restore_current_thread.
10281 * linespec.c (decode_line_full, decode_line_1): Use
10282 scoped_restore_current_program_space.
10283 * mi/mi-main.c: Include "progspace-and-thread.h".
10284 (exec_continue): Use scoped_restore_current_thread.
10285 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
10286 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
10287 * proc-service.c (ps_pglobal_lookup): Use
10288 scoped_restore_current_program_space.
10289 * progspace-and-thread.c: New file.
10290 * progspace-and-thread.h: New file.
10291 * progspace.c (release_program_space, clone_program_space): Use
10292 scoped_restore_current_program_space.
10293 (restore_program_space, save_current_program_space)
10294 (save_current_space_and_thread): Delete.
10295 (switch_to_program_space_and_thread): Moved to
10296 progspace-and-thread.c.
10297 * progspace.h (save_current_program_space)
10298 (save_current_space_and_thread): Delete declarations.
10299 (scoped_restore_current_program_space): New class.
10300 * remote.c (remote_btrace_maybe_reopen): Use
10301 scoped_restore_current_thread.
10302 * symtab.c: Include "progspace-and-thread.h".
10303 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
10304 * thread.c (print_thread_info_1): Use
10305 scoped_restore_current_thread.
10306 (struct current_thread_cleanup): Delete.
10307 (do_restore_current_thread_cleanup)
10308 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
10309 (scoped_restore_current_thread::~scoped_restore_current_thread):
10311 (make_cleanup_restore_current_thread): Rename/convert to ...
10312 (scoped_restore_current_thread::scoped_restore_current_thread):
10314 (thread_apply_all_command): Use scoped_restore_current_thread.
10315 (thread_apply_command): Use scoped_restore_current_thread.
10316 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
10317 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
10319 2017-05-04 Pedro Alves <palves@redhat.com>
10321 * thread.c (make_cleanup_restore_current_thread): Move
10322 find_thread_ptid call before the is_stopped call. Assert that the
10323 thread is found. Replace is_stopped call by checking the thread's
10324 state directly. Remove unnecessary NULL-thread check.
10326 2017-05-04 Pedro Alves <palves@redhat.com>
10328 * corelow.c (thread_section_name): New class.
10329 (get_core_register_section, get_core_siginfo): Use it.
10331 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10333 * corelow.c (sniff_core_bfd): Remove extra semicolon.
10334 (get_core_register_section): Remove xfree of NULL pointer.
10336 2017-05-03 Alan Hayward <alan.hayward@arm.com>
10338 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
10339 * regcache.c (regcache::raw_supply_zeroed): New function.
10340 * regcache.h (regcache::raw_supply_zeroed): New declaration.
10342 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
10344 * gdbarch.sh: Remove commented out definition of
10346 * gdbarch.h: Re-generate.
10348 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
10350 * configure: Regenerate.
10352 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
10354 * solib-target.c (solib_target_relocate_section_addresses):
10355 Remove num_section_bases, num_bases, segment_bases variables.
10357 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10359 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
10361 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10363 * solib-target.c: Include <vector>
10364 (struct lm_info_target) <~lm_info_target>: Remove.
10365 <segment_bases, section_bases>: Change type to
10366 std::vector<CORE_ADDR>.
10367 (library_list_start_segment, library_list_start_section,
10368 library_list_end_library,
10369 solib_target_relocate_section_addresses): Adjust.
10371 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10373 * gdbarch.sh (software_single_step): Change return type to
10374 std::vector<CORE_ADDR>.
10375 * gdbarch.c, gdbarch.h: Re-generate.
10376 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
10378 (arm_deal_with_atomic_sequence_raw): Adjust.
10379 (thumb_get_next_pcs_raw): Adjust.
10380 (arm_get_next_pcs_raw): Adjust.
10381 (arm_get_next_pcs): Adjust.
10382 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
10383 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
10384 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
10385 (alpha_software_single_step): Adjust.
10386 * alpha-tdep.h (alpha_software_single_step): Adjust.
10387 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
10388 * arm-tdep.c (arm_software_single_step): Adjust.
10389 (arm_breakpoint_kind_from_current_state): Adjust.
10390 * arm-tdep.h (arm_software_single_step): Adjust.
10391 * breakpoint.c (insert_single_step_breakpoint): Adjust.
10392 * cris-tdep.c (cris_software_single_step): Adjust.
10393 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
10394 (micromips_deal_with_atomic_sequence): Adjust.
10395 (deal_with_atomic_sequence): Adjust.
10396 (mips_software_single_step): Adjust.
10397 * mips-tdep.h (mips_software_single_step): Adjust.
10398 * moxie-tdep.c (moxie_software_single_step): Adjust.
10399 * nios2-tdep.c (nios2_software_single_step): Adjust.
10400 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
10401 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
10402 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
10403 * s390-linux-tdep.c (s390_software_single_step): Adjust.
10404 * sparc-tdep.c (sparc_software_single_step): Adjust.
10405 * spu-tdep.c (spu_software_single_step): Adjust.
10406 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
10408 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10410 * gdbarch.sh: Use semi-colon as field separator instead of colon.
10411 * gdbarch.h: Re-generate.
10413 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10415 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
10416 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
10417 * python/py-instruction.c, python/py-instruction.h: New file.
10418 * python/py-record.c: Add py-instruction.h include.
10419 (gdbpy_initialize_record): Make gdb.Instruction a super class of
10420 gdb.RecordInstruction.
10421 * python/python-internal.h: Add gdbpy_initialize_instruction
10423 * python/python.c (do_start_initialization): Add
10424 gdbpy_initialize_instruction.
10426 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10428 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
10430 (btrace_func_from_recpy_func): New function.
10431 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
10432 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
10433 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
10434 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
10435 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
10436 Also, use new helper functions.
10437 (btpy_list_item): Use new helper functions.
10438 (recpy_bt_function_call_history): Use new type name.
10439 (btpy_call_getset): Remove.
10440 (gdbpy_initialize_btrace): Remove code to initialize
10441 gdb.BtraceFunctionCall.
10442 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
10443 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
10444 recpy_bt_func_prev, recpy_bt_func_next): New export.
10445 * python/py-record.c (recpy_func_type): New static object.
10446 (recpy_func_new, recpy_func_level, recpy_func_symbol,
10447 recpy_func_instructions, recpy_func_up, recpy_func_prev,
10448 recpy_func_next): New function.
10449 (recpy_element_hash, recpy_element_richcompare): Updated comment.
10450 (recpy_func_getset): New static object.
10451 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
10452 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
10454 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10456 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
10457 (btpy_object, btpy_insn_type, btpy_new): Remove.
10458 (btpy_list_object): Use gdb.RecordInstruction type instead of
10459 gdb.BtraceInstruction type.
10460 (btrace_insn_from_recpy_insn): New function.
10461 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
10463 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
10464 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
10465 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
10466 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
10467 instead of btpy_object.
10468 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
10469 btpy_insn_data, btpy_insn_decode): Rename to ...
10470 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
10471 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
10472 recpy_bt_insn_decode): This. Also, use new helper functions.
10473 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
10475 (btpy_insn_getset): Remove.
10476 (gdbpy_initialize_btrace): Remove code to initialize
10477 gdb.BtraceInstruction. Use recpy_element_object.
10478 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
10479 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
10480 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
10481 * python/py-record.c (recpy_insn_type): New static object.
10482 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
10483 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
10484 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
10486 (recpy_insn_getset): New static object.
10487 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
10488 * python/py-record.h (recpy_element_object): New typedef.
10489 (recpy_insn_type, recpy_insn_new): New export.
10491 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10493 * py-record-btrace.c (btpy_insn_new): Removed.
10494 (btpy_insn_or_gap_new): New function.
10495 (btpy_insn_error): Removed.
10496 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
10497 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
10498 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
10499 btpy_insn_or_gap_new instead of btpy_insn_new.
10500 (btpy_insn_getset): Remove btpy_insn_error.
10501 * py-record.c (recpy_gap_type): New static object.
10502 (recpy_gap_object): New typedef.
10503 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
10504 recpy_gap_reason_string): New function.
10505 (recpy_gap_getset): New static object.
10506 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
10507 * py-record.h (recpy_gap_new): New export.
10509 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10511 * python/py-record.c (recpy_ptid): Remove.
10512 (recpy_record_getset): Remove recpy_ptid.
10514 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10516 * btrace.c (btrace_fetch): Set inferior_ptid.
10517 * python/py-record-btrace.c: Add "py-record.h" include.
10518 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
10519 recpy_bt_end, recpy_bt_instruction_history,
10520 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
10521 in gdb.Record object instead of current ptid.
10522 * python/py-record.c: Include new "py-record.h" file.
10523 (recpy_record_object): Moved to py-record.h.
10524 * python/py-record.h: New file.
10526 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10528 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
10529 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
10532 2017-05-01 Joel Brobecker <brobecker@adacore.com>
10534 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
10535 the past maintainers section.
10537 2017-04-28 Yao Qi <yao.qi@linaro.org>
10539 * infcmd.c (get_return_value): Use regcache ctor, and remove
10542 2017-04-28 Yao Qi <yao.qi@linaro.org>
10543 Pedro Alves <palves@redhat.com>
10545 * regcache.c (regcache::regcache): New tag dispatch ctor.
10546 (do_cooked_read): Moved above.
10547 (regcache_dup): Use the tag dispatch ctor..
10548 * regcache.h (regcache): Declare ctor, delete copy ctor and
10549 assignment operator, remove friend regcache_dup.
10551 2017-04-28 Yao Qi <yao.qi@linaro.org>
10553 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
10554 call method save instead of regcache_cpy.
10555 * regcache.h (struct regcache): Make regcache_dup a friend.
10557 2017-04-28 Yao Qi <yao.qi@linaro.org>
10559 * regcache.c (struct regcache): Move to regcache.h
10560 (regcache::arch): New method.
10561 (regcache_get_ptid): Update.
10562 (get_regcache_arch): Call arch method.
10563 (get_regcache_aspace): Call method aspace.
10564 (register_buffer): Change it to method.
10565 (regcache_save): Change it to regcache::save.
10566 (regcache_restore): Likewise.
10567 (regcache_cpy_no_passthrough): Remove the declaration.
10568 (regcache_cpy): Call methods restore and cpy_no_passthrough.
10569 (regcache_cpy_no_passthrough): Change it to method
10570 cpy_no_passthrough.
10571 (regcache_register_status): Change it to method
10572 get_register_status.
10573 (regcache_invalidate): Change it to method invalidate.
10574 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
10575 (regcache_raw_update): Change it to method raw_update.
10576 (regcache_raw_read): Likewise.
10577 (regcache_raw_read_signed): Likewise.
10578 (regcache_raw_read_unsigned): Likewise.
10579 (regcache_raw_write_signed): Likewise.
10580 (regcache_raw_write_unsigned): Likewise.
10581 (regcache_cooked_read): Likewise.
10582 (regcache_cooked_read_value): Likewise.
10583 (regcache_cooked_read_signed): Likewise.
10584 (regcache_cooked_read_unsigned): Likewise.
10585 (regcache_cooked_write_signed): Likewise.
10586 (regcache_cooked_write_unsigned): Likewise.
10587 (regcache_raw_set_cached_value): Likewise.
10588 (regcache_raw_write): Likewise.
10589 (regcache_cooked_write): Likewise.
10590 (regcache_xfer_part): Likewise.
10591 (regcache_raw_read_part): Likewise.
10592 (regcache_raw_write_part): Likewise.
10593 (regcache_cooked_read_part): Likewise.
10594 (regcache_cooked_write_part): Likewise.
10595 (regcache_raw_supply): Likewise.
10596 (regcache_raw_collect): Likewise.
10597 (regcache_transfer_regset): Likewise.
10598 (regcache_supply_regset): Likewise.
10599 (regcache_collect_regset): Likewise.
10600 (regcache_debug_print_register): Likewise.
10601 (enum regcache_dump_what): Move it to regcache.h.
10602 (regcache_dump): Change it to method dump.
10603 * regcache.h (enum regcache_dump_what): New.
10604 (class regcache): New.
10605 * target.c (target_fetch_registers): Call method
10606 debug_print_register.
10607 (target_store_registers): Likewise.
10609 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10611 * windows-nat.c (struct lm_info_windows): Initialize field.
10612 (windows_make_so): Allocate lm_info_windows with new.
10613 (windows_free_so): Free lm_info_windows with delete.
10615 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10617 * solib-darwin.c (struct lm_info_darwin): Initialize field.
10618 (darwin_current_sos): Allocate lm_info_darwin with new, remove
10620 (darwin_free_so): Free lm_info_darwin with delete.
10622 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10624 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
10625 <l_addr_p>: Change type to bool.
10626 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
10627 (svr4_free_so): Free lm_info_svr4 with delete.
10628 (svr4_copy_library_list): Replace memcpy with call to copy
10630 (library_list_start_library, svr4_default_sos): Allocate
10631 lm_info_svr4 with new.
10633 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10635 * solib-target.c (struct lm_info_target): Add destructor,
10637 <name>: Change type to std::string.
10638 (library_list_start_library): Allocate lm_info_target with new.
10639 (solib_target_free_library_list): Free lm_info_target with
10641 (solib_target_current_sos): Adapt to std::string.
10642 (solib_target_free_so): Free lm_info_target with delete.
10644 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10646 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
10648 (frv_current_sos): Allocate lm_info_frv with new.
10649 (frv_relocate_main_executable): Free lm_info_frv with delete,
10651 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
10653 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10655 * solib-frv.c (struct lm_info_frv): Fix indentation.
10657 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10659 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
10661 (dsbt_current_sos): Allocate lm_info_dsbt with new.
10662 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
10663 and allocate with new.
10664 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
10666 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10668 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
10669 <filename, member_name>: Change type to std::string.
10670 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
10671 (library_list_start_library): Allocate lm_info_aix with new.
10672 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
10673 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
10674 with copy constructor.
10676 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10678 * solist.h (struct lm_info): Remove.
10679 (struct lm_info_base): New class.
10680 (struct so_list) <lm_info>: Change type to lm_info_base *.
10681 * nto-tdep.c (struct lm_info): Remove.
10683 * solib-aix.c (struct lm_info): Rename to ...
10684 (struct lm_info_aix): ... this. Extend lm_info_base.
10685 (lm_info_p): Rename to ...
10686 (lm_info_aix_p): ... this, and adjust.
10687 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
10688 solib_aix_parse_libraries, library_list_start_library,
10689 solib_aix_free_library_list, solib_aix_parse_libraries,
10690 solib_aix_get_library_list,
10691 solib_aix_relocate_section_addresses, solib_aix_free_so,
10692 solib_aix_get_section_offsets,
10693 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
10695 (struct solib_aix_inferior_data) <library_list>: Adjust.
10696 * solib-darwin.c (struct lm_info): Rename to ...
10697 (struct lm_info_darwin): ... this. Extend lm_info_base.
10698 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
10699 * solib-dsbt.c (struct lm_info): Rename to ...
10700 (struct lm_info_dsbt): ... this. Extend lm_info_base.
10701 (struct dsbt_info) <main_executable_lm_info): Adjust.
10702 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
10703 dsbt_relocate_section_addresses): Adjust.
10704 * solib-frv.c (struct lm_info): Rename to ...
10705 (struct lm_info_frv): ... this. Extend lm_info_base.
10706 (main_executable_lm_info): Adjust.
10707 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
10708 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
10709 find_canonical_descriptor_in_load_object,
10710 frv_fdpic_find_canonical_descriptor): Adjust.
10711 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
10713 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
10714 svr4_clear_so, svr4_copy_library_list,
10715 library_list_start_library, svr4_default_sos, svr4_read_so_list,
10716 svr4_current_sos, svr4_fetch_objfile_link_map,
10717 solist_update_incremental): Adjust.
10718 * solib-svr4.h (struct lm_info_svr4): Move here from
10720 * solib-target.c (struct lm_info): Rename to ...
10721 (struct lm_info_target): ... this. Extend lm_info_base.
10722 (lm_info_p): Rename to ...
10723 (lm_info_target_p): ... this.
10724 (solib_target_parse_libraries, library_list_start_segment,
10725 library_list_start_section, library_list_start_library,
10726 library_list_end_library, solib_target_free_library_list,
10727 solib_target_current_sos, solib_target_free_so,
10728 solib_target_relocate_section_addresses): Adjust.
10729 * windows-nat.c (struct lm_info): Rename to ...
10730 (struct lm_info_windows): ... this. Extend lm_info_base.
10731 (windows_make_so, handle_load_dll, handle_unload_dll,
10732 windows_xfer_shared_libraries): Adjust.
10734 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10736 * solib-darwin.c (struct darwin_so_list): Remove.
10737 (darwin_current_sos): Allocate an so_list object instead of a
10738 darwin_so_list, separately allocate an lm_info object.
10739 (darwin_free_so): Free lm_info.
10741 2017-04-28 John Baldwin <jhb@FreeBSD.org>
10743 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
10744 with fprintf_filtered.
10746 2017-04-28 Yao Qi <yao.qi@linaro.org>
10748 * regcache.c (regcache::regcache): New function.
10749 (regcache::~regcache): New function.
10750 (regcache_xmalloc_1): Remove.
10751 (regcache_xmalloc): Call new regcache.
10752 (regcache_xfree): Call delete regcache.
10753 (get_thread_arch_aspace_regcache): Call new regcache.
10755 2017-04-28 Yao Qi <yao.qi@linaro.org>
10757 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
10758 lwp instead of ptid_get_lwp.
10760 2017-04-28 Yao Qi <yao.qi@linaro.org>
10762 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
10763 lwp_info instead of getting from inferior_ptid.
10765 2017-04-27 Keith Seitz <keiths@redhat.com>
10767 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
10768 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
10769 (CV_CONVERSION_BADNESS): Define.
10770 (rank_one_type): Remove overly restrictive rvalue reference
10772 Add cv-qualifier checks and subranks for type equality.
10773 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
10774 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
10775 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
10777 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
10779 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
10780 count when creating the object.
10782 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
10783 Ulrich Weigand <uweigand@de.ibm.com>
10785 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
10786 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
10788 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
10789 (process_xcoff_symbol): Likewise.
10790 (scan_xcoff_symtab): Likewise.
10792 2017-04-26 Alan Hayward <alan.hayward@arm.com>
10794 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
10795 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
10796 (ia64_access_reg): Use get_frame_register_unsigned.
10797 (ia64_access_rse_reg): Likewise.
10798 (ia64_libunwind_frame_prev_register): Likewise.
10800 2017-04-26 Jiong Wang <jiong.wang@arm.com>
10802 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
10803 * gdbarch.c: Regenerated.
10804 * gdbarch.h: Regenerated.
10805 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
10806 visibility external.
10807 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
10808 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
10809 (enum cfa_how_kind): Move to ...
10810 (struct dwarf2_frame_state_reg_info): Likewise.
10811 (struct dwarf2_frame_state): Likewise.
10812 * dwarf2-frame.h: ... here.
10813 (dwarf2_frame_state_alloc_regs): New declaration.
10814 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
10815 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
10817 2017-04-26 Alan Hayward <alan.hayward@arm.com>
10819 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
10820 regcache_raw_read_unsigned.
10821 (xtensa_pseudo_register_write): Likewise.
10823 2017-04-26 Alan Hayward <alan.hayward@arm.com>
10825 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
10826 (nds32_pseudo_register_write): Likewise.
10828 2017-04-25 Yao Qi <yao.qi@linaro.org>
10830 * regcache.c (struct regcache) <readonly_p>: Change its type
10832 (regcache_xmalloc_1): Update parameter type and callers update.
10834 2017-04-25 Yao Qi <yao.qi@linaro.org>
10836 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10837 set_gdbarch_wchar_bit.
10838 * arm-tdep.c (arm_gdbarch_init): Likewise.
10840 2017-04-25 Pedro Alves <palves@redhat.com>
10842 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
10843 (BothAreRelocatable, memcopy, memmove): Don't define.
10844 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
10847 2017-04-25 Pedro Alves <palves@redhat.com>
10849 * common/common-defs.h: Include "common/poison.h".
10850 * common/function-view.h: (Not, Or, Requires): Move to traits.h
10852 * common/poison.h: New file.
10853 * common/traits.h: Include <type_traits>.
10854 (Not, Or, Requires): New, moved from common/function-view.h.
10856 2017-04-25 Pedro Alves <palves@redhat.com>
10858 * breakpoint.h (struct breakpoint): In-class initialize all
10859 fields. Make boolean fields "bool".
10860 * breakpoint.c (init_raw_breakpoint_without_location): Remove
10861 memset call and initializations no longer necessary.
10863 2017-04-25 Pedro Alves <palves@redhat.com>
10865 * btrace.c (pt_btrace_insn_flags): Change parameter type to
10867 (pt_btrace_insn): New function.
10868 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
10870 2017-04-25 Pedro Alves <palves@redhat.com>
10872 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
10873 "base" field and inherit from "bp_location" instead. Add
10875 (allocate_location_exception): Use new non-default ctor.
10876 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
10877 (init_bp_location): Convert to ...
10878 (bp_location::bp_location): ... this new ctor, and remove memset
10880 (base_breakpoint_allocate_location): Use the new non-default ctor.
10881 * breakpoint.h (bp_location): Now a class. Declare default and
10882 non-default ctors. In-class initialize all members.
10883 (init_bp_location): Remove declaration.
10885 2017-04-25 Pedro Alves <palves@redhat.com>
10887 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
10888 assignment operator.
10890 2017-04-24 Yao Qi <yao.qi@linaro.org>
10892 * doublest.c (convert_doublest_to_floatformat): Call
10893 floatformat_totalsize_bytes.
10895 2017-04-22 Tom Tromey <tom@tromey.com>
10897 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
10899 * stack.c (print_frame): Use ui_out_emit_list.
10900 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10902 * mi/mi-main.c (print_one_inferior)
10903 (mi_cmd_data_list_register_names)
10904 (mi_cmd_data_list_register_values, mi_cmd_list_features)
10905 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
10907 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
10908 (mi_output_solib_attribs): Use ui_out_emit_list,
10910 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
10911 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
10912 (mi_cmd_stack_list_args, list_args_or_locals): Use
10914 * disasm.c (do_assembly_only): Use ui_out_emit_list.
10915 * breakpoint.c (print_solib_event, output_thread_groups): Use
10918 2017-04-22 Tom Tromey <tom@tromey.com>
10920 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
10921 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
10922 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
10924 2017-04-22 Tom Tromey <tom@tromey.com>
10926 * tracepoint.c (tvariables_info_1)
10927 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
10929 2017-04-22 Tom Tromey <tom@tromey.com>
10931 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
10932 annotate_arg_emitter.
10933 * breakpoint.c (print_mention_watchpoint)
10934 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
10935 * annotate.h (struct annotate_arg_emitter): New.
10937 2017-04-22 Tom Tromey <tom@tromey.com>
10939 * record-btrace.c (record_btrace_insn_history)
10940 (record_btrace_insn_history_range, record_btrace_call_history)
10941 (record_btrace_call_history_range): Use ui_out_emit_tuple.
10942 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
10944 * stack.c (print_frame_info): Use ui_out_emit_tuple.
10945 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
10946 * skip.c (skip_info): Use ui_out_emit_tuple.
10947 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
10948 * progspace.c (print_program_space): Use ui_out_emit_tuple.
10949 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
10950 * osdata.c (info_osdata): Use ui_out_emit_tuple.
10951 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10953 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
10954 (output_register, mi_cmd_data_read_memory)
10955 (mi_cmd_data_read_memory_bytes, mi_load_progress)
10956 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
10957 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
10958 Use ui_out_emit_tuple.
10959 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
10961 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10962 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
10963 * linux-thread-db.c (info_auto_load_libthread_db): Use
10965 * inferior.c (print_inferior): Use ui_out_emit_tuple.
10966 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
10967 * disasm.c (do_mixed_source_and_assembly_deprecated)
10968 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
10969 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
10970 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
10971 * breakpoint.c (print_one_breakpoint_location)
10972 (print_one_breakpoint): Use ui_out_emit_tuple.
10973 * auto-load.c (print_script, info_auto_load_cmd): Use
10975 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
10977 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
10979 * thread.c (print_thread_info_1): Remove dead code.
10981 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10983 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
10985 * arm-tdep.c (selftests::arm_record_test): Likewise.
10987 2017-04-21 Yao Qi <yao.qi@linaro.org>
10989 * regcache.c (regcache_restore): Remove argument 2. Replace
10990 argument 3 with regcache. Get register status from
10991 src->register_status and get register contents from
10992 register_buffer (src, regnum).
10993 (regcache_cpy): Update.
10995 2017-04-19 Pedro Alves <palves@redhat.com>
10997 * gdbthread.h (thread): Add missing closing parenthesis in
11000 2017-04-19 Pedro Alves <palves@redhat.com>
11002 * common/refcounted-object.h: New file.
11003 * gdbthread.h: Include "common/refcounted-object.h".
11004 (thread_info): Inherit from refcounted_object and add comments.
11005 (thread_info::incref, thread_info::decref)
11006 (thread_info::m_refcount): Delete.
11007 (thread_info::deletable): Use the refcounted_object::refcount()
11009 * inferior.c (current_inferior_): Add comment.
11010 (set_current_inferior): Increment/decrement refcounts.
11011 (prune_inferiors, remove_inferior_command): Skip inferiors marked
11012 not-deletable instead of comparing with the current inferior.
11013 (initialize_inferiors): Increment the initial inferior's refcount.
11014 * inferior.h (struct inferior): Forward declare.
11015 Include "common/refcounted-object.h".
11016 (current_inferior, set_current_inferior): Move declaration to
11017 before struct inferior's definition, and fix comment.
11018 (inferior): Inherit from refcounted_object. Add comments.
11019 * thread.c (switch_to_thread_no_regs): Reference the thread's
11020 inferior pointer directly instead of doing a ptid lookup.
11021 (switch_to_no_thread): New function.
11022 (switch_to_thread(thread_info *)): New function, factored out
11024 (switch_to_thread(ptid_t)): ... this.
11025 (restore_current_thread): Delete.
11026 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
11027 fields, and add 'inf' field.
11028 (do_restore_current_thread_cleanup): Check whether old->inf is
11029 alive instead of looking up an inferior by ptid. Use
11030 switch_to_thread and switch_to_no_thread.
11031 (restore_current_thread_cleanup_dtor): Use old->inf directly
11032 instead of lookup up an inferior by id. Decref the inferior.
11033 Don't restore 'removable'.
11034 (make_cleanup_restore_current_thread): Same the inferior pointer
11035 in old, instead of the inferior number. Incref the inferior.
11036 Don't save/clear 'removable'.
11038 2017-04-19 Pedro Alves <palves@redhat.com>
11040 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11041 unittests/scoped_restore-selftests.c.
11042 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
11043 * common/scoped_restore.h (scoped_restore_base): Make "class".
11044 (scoped_restore_base::release): New public method.
11045 (scoped_restore_base::scoped_restore_base): New protected ctor.
11046 (scoped_restore_base::m_saved_var): New protected field.
11047 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
11048 scoped_restore_base base class instead of m_saved_var directly.
11049 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
11050 (scoped_restore_tmpl::scoped_restore_tmpl(const
11051 scoped_restore_tmpl<T>&)): Likewise.
11052 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
11054 (scoped_restore_tmpl::saved_var): New method.
11055 (scoped_restore_tmpl::m_saved_var): Delete.
11056 * inferior.h (inferior::detaching): Now a bool.
11057 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
11059 * unittests/scoped_restore-selftests.c: New file.
11061 2017-04-19 Pedro Alves <palves@redhat.com>
11063 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
11064 Re-sort in alphabetic order.
11066 2017-04-18 Pedro Alves <palves@redhat.com>
11068 * xml-support.c (obstack_xml_printf): Delete.
11069 * xml-support.h (obstack_xml_printf): Delete.
11071 2017-04-18 Pedro Alves <palves@redhat.com>
11073 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
11074 vdebug, verror, body_text, start_element, end_element, name,
11075 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
11076 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
11077 is_xinclude>: Make private and add m_ prefix.
11078 (gdb_xml_parser::body_text): New method, based on ...
11079 (gdb_xml_body_text): ... this. Adjust.
11080 (gdb_xml_parser::vdebug): New method, based on ...
11081 (gdb_xml_debug): ... this. Adjust.
11082 (gdb_xml_parser::verror): New method, based on ...
11083 (gdb_xml_error): ... this. Adjust.
11084 (gdb_xml_parser::start_element): New method, based on ...
11085 (gdb_xml_start_element): ... this. Adjust.
11086 (gdb_xml_start_element_wrapper): Defer to
11087 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
11088 (gdb_xml_parser::end_element): New method, based on ...
11089 (gdb_xml_end_element_wrapper): ... this. Adjust.
11090 (gdb_xml_parser::~gdb_xml_parser): Adjust.
11091 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
11092 (gdb_xml_parser::use_dtd): New method, based on ...
11093 (gdb_xml_use_dtd): ... this. Adjust.
11094 (gdb_xml_parser::parse): New method, based on ...
11095 (gdb_xml_parse): ... this. Adjust.
11096 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
11097 (xinclude_start_include): Adjust to call the parser's name method.
11098 (xml_xinclude_default, xml_xinclude_start_doctype)
11099 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
11101 (xml_process_xincludes): Adjust to call parser methods.
11102 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
11105 2017-04-18 Pedro Alves <palves@redhat.com>
11107 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
11108 gdb::optional<std::string>.
11109 * xml-support.c: Include <string>.
11110 (scope_level::scope_level(scope_level &&))
11111 (scope_level::~scope_level): Delete.
11112 (scope_level::body): Now a std::string.
11113 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
11114 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
11116 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
11117 (xinclude_parsing_data::output): Now a std::string reference.
11118 (xinclude_start_include): Adjust.
11119 (xml_xinclude_default): Adjust.
11120 (xml_process_xincludes): Add 'output' parameter, and return bool.
11121 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
11123 * xml-tdesc.c: Include <unordered_map> and <string>.
11124 (tdesc_xml_cache): Delete.
11125 (tdesc_xml_cache_s): Delete.
11126 (xml_cache): Now an std::unordered_map.
11127 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
11128 (target_fetch_description_xml): Change return type to
11129 gdb::optional<std::string>, and adjust.
11130 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
11131 (target_fetch_description_xml): Change return type to
11132 gdb::optional<std::string>.
11134 2017-04-18 Pedro Alves <palves@redhat.com>
11136 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11137 unittests/optional-selftests.c.
11138 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
11139 * unittests/optional-selftests.c: New file.
11140 * unittests/optional/assignment/1.cc: New file.
11141 * unittests/optional/assignment/2.cc: New file.
11142 * unittests/optional/assignment/3.cc: New file.
11143 * unittests/optional/assignment/4.cc: New file.
11144 * unittests/optional/assignment/5.cc: New file.
11145 * unittests/optional/assignment/6.cc: New file.
11146 * unittests/optional/assignment/7.cc: New file.
11147 * unittests/optional/cons/copy.cc: New file.
11148 * unittests/optional/cons/default.cc: New file.
11149 * unittests/optional/cons/move.cc: New file.
11150 * unittests/optional/cons/value.cc: New file.
11151 * unittests/optional/in_place.cc: New file.
11152 * unittests/optional/observers/1.cc: New file.
11153 * unittests/optional/observers/2.cc: New file.
11155 2017-04-18 Pedro Alves <palves@redhat.com>
11157 * common/gdb_optional.h: Include common/traits.h.
11158 (in_place_t): New type.
11159 (in_place): New constexpr variable.
11160 (optional::optional): Remove member initialization of
11162 (optional::optional(in_place_t...)): New constructor.
11163 (optional::~optional): Use reset.
11164 (optional::optional(const optional&)): New.
11165 (optional::optional(const optional&&)): New.
11166 (optional::optional(T &)): New.
11167 (optional::optional(T &&)): New.
11168 (operator::operator=(const optional &)): New.
11169 (operator::operator=(optional &&)): New.
11170 (operator::operator= (const T &))
11171 (operator::operator= (T &&))
11172 (operator::emplace (Args &&... args)): Return a T&. Use reset.
11173 (operator::reset): New.
11174 (operator::m_instantiated):: Add in-class initializer.
11175 * common/traits.h: Include <type_traits>.
11176 (struct And): New types.
11178 2017-04-18 Pedro Alves <palves@redhat.com>
11180 * xml-support.c: Include <vector>.
11181 (scope_level::scope_level(const gdb_xml_element *))
11182 (scope_level::scope_level(scope_level&&)): New.
11183 (scope_level::~scope_level): New.
11184 (scope_level_s): Delete.
11185 (gdb_xml_parser::scopes): Now a std::vector.
11186 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
11188 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
11189 scope cleanup code.
11190 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
11191 of the scopes member. Use std::vector::emplace_back.
11193 2017-04-18 Pedro Alves <palves@redhat.com>
11195 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
11197 (gdb_xml_end_element): Change type of first parameter.
11198 (gdb_xml_cleanup): Rename to ...
11199 (gdb_xml_parser::~gdb_xml_parser): ... this.
11200 (gdb_xml_create_parser_and_cleanup): Delete with ...
11201 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
11203 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
11204 using gdb_xml_create_parser_and_cleanup.
11205 (xinclude_parsing_data): Add ctor/dtor.
11206 (xml_xinclude_cleanup): Delete.
11207 (xml_process_xincludes): Create a local xinclude_parsing_data
11208 instead of heap-allocating one. Create a local gdb_xml_parser
11209 instead of heap-allocating one with
11210 gdb_xml_create_parser_and_cleanup.
11212 2017-04-18 John Baldwin <jhb@FreeBSD.org>
11215 * fbsd-nat.c (resume_one_thread_cb): Remove.
11216 (resume_all_threads_cb): Remove.
11217 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
11218 iterate_over_threads.
11220 2017-04-17 Joel Brobecker <brobecker@adacore.com>
11222 * NEWS: Create a new section for the next release branch.
11223 Rename the section of the current branch, now that it has
11226 2017-04-17 Joel Brobecker <brobecker@adacore.com>
11228 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
11229 * version.in: Bump version to 8.0.50.DATE-git.
11231 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
11234 * windows-nat.c (windows_create_inferior): Declare 'allargs'
11235 independently of the host, and fix build breakage on Cygwin.
11237 2017-04-13 Pedro Alves <palves@redhat.com>
11239 * inferior.c (free_inferior): Convert to ...
11240 (inferior::~inferior): ... this dtor.
11241 (inferior::inferior): New ctor, factored out from ...
11242 (add_inferior_silent): ... here. Allocate the inferior with a new
11244 (delete_inferior): Call delete instead of free_inferior.
11245 * inferior.h (gdb_environ, continuation): Forward declare.
11246 (inferior): Now a class. Add in-class initialization to all
11247 members. Make boolean fields bool, except 'detaching'.
11248 (inferior::inferior): New explicit ctor.
11249 (inferior::~inferior): New.
11251 2017-04-13 Pedro Alves <palves@redhat.com>
11253 * inferior.c (init_inferior_list): Delete.
11254 * inferior.h (init_inferior_list): Delete.
11256 2017-04-13 Pedro Alves <palves@redhat.com>
11259 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
11260 (top level): Call it twice, with different thread sets.
11262 2017-04-13 Pedro Alves <palves@redhat.com>
11264 * thread.c: Include <algorithm>.
11265 (thread_array_cleanup): Delete.
11266 (scoped_inc_dec_ref): New class.
11267 (live_threads_count): New function.
11268 (set_thread_refcount): Delete.
11269 (tp_array_compar_ascending): Now a bool.
11270 (tp_array_compar): Convert to a std::sort comparison function.
11271 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
11272 and live_threads_count.
11274 2017-04-13 Pedro Alves <palves@redhat.com>
11276 * infrun.c (follow_fork_inferior): Also switch the current
11279 2017-04-13 Pedro Alves <palves@redhat.com>
11281 * breakpoint.c (watch_command_1): Save watchpoint-frame info
11282 before calling create_internal_breakpoint.
11284 2017-04-13 Pedro Alves <palves@redhat.com>
11286 * fork-child.c (execv_argv): New class.
11287 (breakup_args): Refactored as ...
11288 (execv_argv::init_for_no_shell): .. this method of execv_argv.
11289 Copy arguments to storage and replace separators with NULL
11290 terminators in place.
11291 (escape_bang_in_quoted_argument): Adjust to return bool.
11292 (execv_argv::execv_argv): New ctor.
11293 (execv_argv::init_for_shell): New method, factored out from
11294 fork_inferior. Don't strdup strings into the vector.
11295 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
11296 Remove free_vector_argv call.
11298 2017-04-13 Yao Qi <yao.qi@linaro.org>
11300 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
11303 2017-04-13 Yao Qi <yao.qi@linaro.org>
11305 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
11306 * rx-tdep.c (rx_gdbarch_init): Likewise.
11308 2017-04-13 Pedro Alves <palves@redhat.com>
11310 * breakpoint.h (struct breakpoint): Reindent.
11312 2017-04-13 Pedro Alves <palves@redhat.com>
11314 * breakpoint.c (bp_location): Rename to ...
11315 (bp_locations): ... this. All references updated.
11316 (bp_location_count): Rename to ...
11317 (bp_locations_count): ... this. All references updated.
11318 (bp_location_placed_address_before_address_max): Rename to ...
11319 (bp_locations_placed_address_before_address_max): ... this. All
11320 references updated.
11321 (bp_location_shadow_len_after_address_max): Rename to ...
11322 (bp_locations_shadow_len_after_address_max): ... this. All
11323 references updated.
11324 (bp_location_compare_addrs): Rename to ...
11325 (bp_locations_compare_addrs): ... this. All references updated.
11326 (bp_location_compare):Rename to ...
11327 (bp_locations_compare): ... this. All references updated.
11328 (bp_location_target_extensions_update): Rename to ...
11329 (bp_locations_target_extensions_update): ... this. All references
11332 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11334 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
11335 * common/common.m4: Check headers 'termios.h', 'termio.h' and
11337 * common/gdb_termios.h: New file, with parts of "terminal.h".
11338 * inflow.c: Include "gdb_termios.h".
11339 * ser-unix.c: Include "gdb_termios.h".
11340 * terminal.h: Move terminal-related defines to
11341 "common/gdb_termios.h".
11343 2017-04-12 Tom Tromey <tom@tromey.com>
11345 * probe.c (parse_probes): Update.
11346 * location.h (delete_event_location): Don't declare.
11347 (event_location_deleter::operator()): Update.
11348 * location.c (event_location_deleter::operator()): Rename from
11349 delete_event_location.
11350 * linespec.h (linespec_result) <location>: Change type to
11352 * linespec.c (canonicalize_linespec, event_location_to_sals)
11353 (decode_objc): Update.
11354 (linespec_result): Don't call delete_event_location.
11355 * breakpoint.c (create_breakpoints_sal)
11356 (bkpt_probe_create_sals_from_location)
11357 (strace_marker_create_sals_from_location): Update.
11359 2017-04-12 Tom Tromey <tom@tromey.com>
11361 * linespec.h (struct linespec_result): Add constructor and
11363 (init_linespec_result, destroy_linespec_result)
11364 (make_cleanup_destroy_linespec_result): Don't declare.
11365 * linespec.c (init_linespec_result): Remove.
11366 (linespec_result::~linespec_result): Rename from
11367 destroy_linespec_result. Update.
11368 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
11370 * breakpoint.c (create_breakpoint, break_range_command)
11371 (decode_location_default): Update.
11372 * ax-gdb.c (agent_command_1): Update.
11374 2017-04-12 Tom Tromey <tom@tromey.com>
11376 * remote.c (remote_download_tracepoint): Update.
11377 * python/py-breakpoint.c (bppy_get_location): Update.
11378 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
11379 (gdbscm_breakpoint_location): Update.
11380 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
11381 * breakpoint.h (struct breakpoint) <location, location_range_end>:
11382 Change type to event_location_up.
11383 * breakpoint.c (create_overlay_event_breakpoint)
11384 (create_longjmp_master_breakpoint)
11385 (create_std_terminate_master_breakpoint)
11386 (create_exception_master_breakpoint)
11387 (breakpoint_event_location_empty_p, print_breakpoint_location)
11388 (print_one_breakpoint_location, create_thread_event_breakpoint)
11389 (init_breakpoint_sal, create_breakpoint)
11390 (print_recreate_ranged_breakpoint, break_range_command)
11391 (init_ada_exception_breakpoint, say_where): Update.
11392 (base_breakpoint_dtor): Don't call delete_event_location.
11393 (bkpt_print_recreate, tracepoint_print_recreate)
11394 (dprintf_print_recreate, update_static_tracepoint)
11395 (breakpoint_re_set_default): Update.
11397 2017-04-12 Tom Tromey <tom@tromey.com>
11399 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
11400 type of "to_do". Update.
11401 (compute_stack_depth): Use std::vector.
11403 2017-04-12 Tom Tromey <tom@tromey.com>
11405 * printcmd.c (find_instruction_backward): Use std::vector.
11407 2017-04-12 Tom Tromey <tom@tromey.com>
11409 * symfile.c (objfilep): Remove typedef.
11410 (reread_symbols): Use a std::vector.
11412 2017-04-12 Tom Tromey <tom@tromey.com>
11414 * mi/mi-main.c (exec_direction_forward): Remove.
11415 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
11416 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
11418 * guile/guile.c (guile_repl_command, guile_command)
11419 (gdbscm_execute_gdb_command): Use scoped_restore.
11420 * go-exp.y (go_parse): Use scoped_restore.
11421 * d-exp.y (d_parse): Use scoped_restore.
11422 * cli/cli-decode.c (cmd_func): Use scoped_restore.
11423 * c-exp.y (c_parse): Use scoped_restore.
11425 2017-04-12 Tom Tromey <tom@tromey.com>
11427 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
11428 (mi_parse): Update return type.
11429 (mi_parse_free): Remove.
11430 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
11431 (mi_parse::~mi_parse): Rename from mi_parse_free.
11432 (mi_parse_cleanup): Remove.
11433 (mi_parse): Return a unique_ptr. Use new.
11434 * mi/mi-main.c (mi_execute_command): Update.
11436 2017-04-12 Tom Tromey <tom@tromey.com>
11438 * location.c (explicit_location_lex_one): Return a
11439 unique_xmalloc_ptr.
11440 (string_to_explicit_location): Update. Remove cleanups.
11442 2017-04-12 Tom Tromey <tom@tromey.com>
11444 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
11445 (compare_value_and_voffset): Change type. Update.
11446 (compute_vtable_size): Change type of "offset_vec".
11447 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
11448 (gnuv3_get_typeid): Remove extraneous declaration.
11450 2017-04-12 Tom Tromey <tom@tromey.com>
11452 * charset.h (wchar_iterator): Fix comment.
11454 2017-04-12 Tom Tromey <tom@tromey.com>
11456 * charset.c (iconv_wrapper): New class.
11457 (cleanup_iconv): Remove.
11458 (convert_between_encodings): Use it.
11460 2017-04-12 Tom Tromey <tom@tromey.com>
11462 * symfile.h (increment_reading_symtab): Update type.
11463 * symfile.c (decrement_reading_symtab): Remove.
11464 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
11465 * psymtab.c (psymtab_to_symtab): Update.
11466 * dwarf2read.c (dw2_instantiate_symtab): Update.
11468 2017-04-12 Tom Tromey <tom@tromey.com>
11470 * jit.c (struct jit_reader): Declare separately. Add constructor
11471 and destructor. Change type of "handle".
11472 (loaded_jit_reader): Define separately.
11473 (jit_reader_load): Update. New "new".
11474 (jit_reader_unload_command): Use "delete".
11475 * gdb-dlfcn.h (struct dlclose_deleter): New.
11476 (gdb_dlhandle_up): New typedef.
11477 (gdb_dlopen, gdb_dlsym): Update types.
11478 (gdb_dlclose): Remove.
11479 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
11480 (gdb_dlsym): Change type of "handle".
11481 (make_cleanup_dlclose): Remove.
11482 (dlclose_deleter::operator()): Rename from gdb_dlclose.
11483 * compile/compile-c-support.c (load_libcc): Update.
11485 2017-04-12 Tom Tromey <tom@tromey.com>
11487 * symtab.h (find_pcs_for_symtab_line): Change return type.
11488 * symtab.c (find_pcs_for_symtab_line): Change return type.
11489 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
11490 type of "vec". Update.
11491 (ltpy_get_pcs_for_line): Update.
11492 * linespec.c (decode_digits_ordinary): Update.
11494 2017-04-12 Tom Tromey <tom@tromey.com>
11496 * tracepoint.c (actions_command): Update.
11497 * python/python.c (python_command, python_interactive_command):
11499 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
11500 * guile/guile.c (guile_command): Update.
11501 * defs.h (read_command_lines, read_command_lines_1): Return
11503 (command_lines_deleter): New struct.
11504 (command_line_up): New typedef.
11505 * compile/compile.c (compile_code_command)
11506 (compile_print_command): Update.
11507 * cli/cli-script.h (get_command_line, copy_command_lines): Return
11509 (make_cleanup_free_command_lines): Remove.
11510 * cli/cli-script.c (get_command_line, read_command_lines_1)
11511 (copy_command_lines): Return command_line_up.
11512 (while_command, if_command, read_command_lines, define_command)
11513 (document_command): Update.
11514 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
11516 * breakpoint.h (breakpoint_set_commands): Change type of
11518 * breakpoint.c (breakpoint_set_commands): Change type of
11519 "commands". Update.
11520 (do_map_commands_command, update_dprintf_command_list)
11521 (create_tracepoint_from_upload): Update.
11523 2017-04-12 Tom Tromey <tom@tromey.com>
11525 * tracepoint.c (scope_info): Update.
11526 * spu-tdep.c (spu_catch_start): Update.
11527 * python/python.c (gdbpy_decode_line): Update.
11528 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
11529 * python/py-breakpoint.c (bppy_init): Update.
11530 * probe.c (parse_probes): Update.
11531 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
11532 * location.h (event_location_deleter): New struct.
11533 (event_location_up): New typedef.
11534 (new_linespec_location, new_address_location, new_probe_location)
11535 (new_explicit_location, copy_event_location)
11536 (string_to_event_location, string_to_event_location_basic)
11537 (string_to_explicit_location): Update return type.
11538 (make_cleanup_delete_event_location): Remove.
11539 * location.c (new_linespec_location, new_address_location)
11540 (new_probe_location, new_explicit_location, copy_event_location):
11541 Return event_location_up.
11542 (delete_event_location_cleanup)
11543 (make_cleanup_delete_event_location): Remove.
11544 (string_to_explicit_location, string_to_event_location_basic)
11545 (string_to_event_location): Return event_location_up.
11546 * linespec.c (canonicalize_linespec, event_location_to_sals)
11547 (decode_line_with_current_source)
11548 (decode_line_with_last_displayed, decode_objc): Update.
11549 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11550 * completer.c (location_completer): Update.
11551 * cli/cli-cmds.c (edit_command, list_command): Update.
11552 * breakpoint.c (create_overlay_event_breakpoint)
11553 (create_longjmp_master_breakpoint)
11554 (create_std_terminate_master_breakpoint)
11555 (create_exception_master_breakpoint)
11556 (create_thread_event_breakpoint): Update.
11557 (init_breakpoint_sal): Update. Remove some dead code.
11558 (create_breakpoint_sal): Change type of "location". Update.
11559 (create_breakpoints_sal, create_breakpoint, break_command_1)
11560 (dprintf_command, break_range_command, until_break_command)
11561 (init_ada_exception_breakpoint)
11562 (strace_marker_create_sals_from_location)
11563 (update_static_tracepoint, trace_command, ftrace_command)
11564 (strace_command, create_tracepoint_from_upload): Update.
11565 * break-catch-throw.c (re_set_exception_catchpoint): Update.
11566 * ax-gdb.c (agent_command_1): Update.
11568 2017-04-12 Pedro Alves <palves@redhat.com>
11570 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
11571 * configure.tgt: Handle i[34567]86-*-go32* and
11572 i[34567]86-*-msdosdjgpp*.
11573 * i386-tdep.c (i386_svr4_reg_to_regnum):
11575 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
11577 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
11578 * i386-go32-tdep.c: New file.
11579 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
11582 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
11584 * aix-thread.c (pd_status2str): Change return type to const char *.
11586 2017-04-12 Pedro Alves <palves@redhat.com>
11588 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
11589 calls to set_gdbarch_gnu_triplet_regexp.
11591 2017-04-12 Pedro Alves <palves@redhat.com>
11594 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
11596 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
11597 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
11598 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
11599 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
11600 * gdbarch.h, gdbarch.c: Regenerate.
11601 * aarch64-tdep.c (aarch64_gdbarch_init): Override
11602 gdbarch_wchar_bit and gdbarch_wchar_signed.
11603 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
11604 * arm-tdep.c (arm_gdbarch_init): Likewise.
11605 * avr-tdep.c (avr_gdbarch_init): Likewise.
11606 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11607 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
11608 * i386-tdep.c (i386_go32_init_abi): Likewise.
11609 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11610 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11611 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11612 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11613 * sh-tdep.c (sh_gdbarch_init): Likewise.
11614 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11615 * sparc64-tdep.c (sparc64_init_abi): Likewise.
11616 * windows-tdep.c (windows_init_abi): Likewise.
11617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11619 2017-04-12 Pedro Alves <palves@redhat.com>
11622 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
11623 cplus_primitive_type_char32_t>: New enum values.
11624 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
11625 and cplus_primitive_type_char32_t.
11626 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
11627 32, use the archtecture's built-in type for char16_t and char32_t,
11628 respectively. Otherwise, fallback to init_integer_type as before,
11629 but make the type unsigned, and issue a complaint.
11630 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
11632 2017-04-12 Alan Hayward <alan.hayward@arm.com>
11634 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
11635 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
11637 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11639 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
11642 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11644 * common/common-utils.c (free_vector_argv): New function.
11645 * common/common-utils.h: Include <vector>.
11646 (free_vector_argv): New prototype.
11647 * darwin-nat.c (darwin_create_inferior): Rewrite function
11648 prototype in order to constify "exec_file" and accept a
11649 "std::string" for "allargs".
11650 * fork-child.c: Include <vector>.
11651 (breakup_args): Rewrite function, using C++.
11652 (fork_inferior): Rewrite function header, constify "exec_file_arg"
11653 and accept "std::string" for "allargs". Update the code to
11654 calculate "argv" based on "allargs". Update calls to "exec_fun"
11656 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
11657 order to constify "exec_file" and accept a "std::string" for
11659 * go32-nat.c (go32_create_inferior): Likewise.
11660 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
11661 * infcmd.c (run_command_1): Constify "exec_file". Use
11662 "std::string" for inferior arguments.
11663 * inferior.h (fork_inferior): Update prototype.
11664 * linux-nat.c (linux_nat_create_inferior): Rewrite function
11665 prototype in order to constify "exec_file" and accept a
11666 "std::string" for "allargs".
11667 * nto-procfs.c (procfs_create_inferior): Likewise.
11668 * procfs.c (procfs_create_inferior): Likewise.
11669 * remote-sim.c (gdbsim_create_inferior): Likewise.
11670 * remote.c (extended_remote_run): Update code to accept
11671 "std::string" as argument.
11672 (extended_remote_create_inferior): Rewrite function prototype in
11673 order to constify "exec_file" and accept a "std::string" for
11675 * rs6000-nat.c (super_create_inferior): Likewise.
11676 (rs6000_create_inferior): Likewise.
11677 * target.h (struct target_ops) <to_create_inferior>: Likewise.
11678 * windows-nat.c (windows_create_inferior): Likewise.
11680 2017-04-11 Pedro Alves <palves@redhat.com>
11682 * thread.c: Fix whitespace throughout.
11684 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
11686 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
11688 2017-04-11 Alan Hayward <alan.hayward@arm.com>
11690 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
11692 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
11695 * osdata.c (info_osdata): Check if 'type' is an empty string
11698 2017-04-10 Pedro Alves <palves@redhat.com>
11700 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
11701 (ptid_to_global_thread_id, in_thread_list)
11702 (do_captured_list_thread_ids, set_resumed, set_running)
11703 (set_executing, set_stop_requested, finish_thread_state)
11704 (validate_registers_access, can_access_registers_ptid)
11705 (print_thread_info_1, switch_to_thread)
11706 (do_restore_current_thread_cleanup)
11707 (make_cleanup_restore_current_thread, thread_command)
11708 (thread_name_command): Use operator== instead of ptid_equal.
11710 2017-04-10 Pedro Alves <palves@redhat.com>
11712 * thread.c (struct current_thread_cleanup) <next>: Delete field.
11713 (current_thread_cleanup_chain): Delete.
11714 (restore_current_thread_cleanup_dtor)
11715 (make_cleanup_restore_current_thread): Remove references to
11716 current_thread_cleanup_chain.
11718 2017-04-10 Alan Hayward <alan.hayward@arm.com>
11720 * msp430-tdep.c (msp430_pseudo_register_read): Never return
11723 2017-04-10 Yao Qi <yao.qi@linaro.org>
11726 * gdbthread.h (thread_info::deletable): New method.
11727 (thread_info::incref): New method.
11728 (thread_info::decref): New method.
11729 (thread_info::refcount): Move it to private.
11730 * infrun.c (save_stop_context): Call inc_refcount.
11731 (release_stop_context_cleanup): Likewise.
11732 * thread.c (set_thread_exited): New function.
11733 (init_thread_list): Delete "tp" only it is deletable, otherwise
11734 call set_thread_exited.
11735 (delete_thread_1): Call set_thread_exited.
11736 (current_thread_cleanup) <inferior_pid>: Remove.
11737 <thread>: New field.
11738 (restore_current_thread_ptid_changed): Removed.
11739 (do_restore_current_thread_cleanup): Adjust.
11740 (restore_current_thread_cleanup_dtor): Don't call
11742 (set_thread_refcount): Use dec_refcount.
11743 (make_cleanup_restore_current_thread): Adjust.
11744 (thread_apply_all_command): Call inc_refcount.
11745 (_initialize_thread): Don't call
11746 observer_attach_thread_ptid_changed.
11748 2017-04-10 Yao Qi <yao.qi@linaro.org>
11750 * thread.c (delete_thread_1): Hoist code on marking thread as
11753 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11755 * windows-nat.c (windows_detach): Initialize ptid with
11758 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
11760 * unittests/ptid-selftests.c: Fix erroneous assert messages.
11762 2017-04-07 Alan Hayward <alan.hayward@arm.com>
11764 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
11765 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
11766 (bfin_pseudo_register_write): Likewise
11768 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
11770 * common/ptid.h (struct ptid): Change to...
11771 (class ptid_t): ... this.
11772 <ptid_t>: New constructors.
11773 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
11774 matches>: New methods.
11775 <make_null, make_minus_one>: New static methods.
11776 <pid>: Rename to...
11778 <lwp>: Rename to...
11780 <tid>: Rename to...
11782 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
11783 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
11784 as references, move comment to class ptid_t.
11785 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
11786 ptid_t static methods.
11787 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
11788 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
11789 Take ptid arguments as references, implement using ptid_t methods.
11790 * unittests/ptid-selftests.c: New file.
11791 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11792 unittests/ptid-selftests.c.
11793 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
11795 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11797 * python/python.c (python_run_simple_file): Cast mode literal to
11798 non-const char pointer as expected by PyFile_FromString.
11800 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
11802 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
11803 minus_one_ptid and null_ptid.
11805 2017-04-05 Pedro Alves <palves@redhat.com>
11807 * warning.m4 (build_warnings): Remove -Wno-write-strings.
11808 * configure: Regenerate.
11810 2017-04-05 Pedro Alves <palves@redhat.com>
11812 * ada-exp.y (yyerror): Constify.
11813 * ada-lang.c (bound_name, get_selections)
11814 (ada_variant_discrim_type)
11815 (ada_variant_discrim_name, ada_value_struct_elt)
11816 (ada_lookup_struct_elt_type, is_unchecked_variant)
11817 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
11818 (catch_ada_exception_command_split)
11819 (catch_ada_assert_command_split, catch_assert_command)
11820 (ada_op_name): Constify.
11821 * ada-lang.h (ada_yyerror, get_selections)
11822 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
11823 * arc-tdep.c (arc_print_frame_cache): Constify.
11824 * arm-tdep.c (arm_skip_stub): Constify.
11825 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
11826 (gen_aggregate_elt_ref): Constify.
11827 * bcache.c (print_bcache_statistics): Constify.
11828 * bcache.h (print_bcache_statistics): Constify.
11829 * break-catch-throw.c (catch_exception_command_1):
11830 * breakpoint.c (struct ep_type_description::description):
11832 (add_solib_catchpoint): Constify.
11833 (catch_fork_command_1): Add cast.
11834 (add_catch_command): Constify.
11835 * breakpoint.h (add_catch_command, add_solib_catchpoint):
11837 * bsd-uthread.c (bsd_uthread_state): Constify.
11838 * buildsym.c (patch_subfile_names): Constify.
11839 * buildsym.h (next_symbol_text_func, patch_subfile_names):
11841 * c-exp.y (yyerror): Constify.
11842 (token::oper): Constify.
11843 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
11844 * c-varobj.c (cplus_describe_child): Constify.
11845 * charset.c (find_charset_names): Add cast.
11846 (find_charset_names): Constify array and add const_cast.
11847 * cli/cli-cmds.c (complete_command, cd_command): Constify.
11848 (edit_command): Constify.
11849 * cli/cli-decode.c (lookup_cmd): Constify.
11850 * cli/cli-dump.c (dump_memory_command, dump_value_command):
11852 (struct dump_context): Constify.
11853 (add_dump_command, restore_command): Constify.
11854 * cli/cli-script.c (get_command_line): Constify.
11855 * cli/cli-script.h (get_command_line): Constify.
11856 * cli/cli-utils.c (check_for_argument): Constify.
11857 * cli/cli-utils.h (check_for_argument): Constify.
11858 * coff-pe-read.c (struct read_pe_section_data): Constify.
11859 * command.h (lookup_cmd): Constify.
11860 * common/print-utils.c (decimal2str): Constify.
11861 * completer.c (gdb_print_filename): Constify.
11862 * corefile.c (set_gnutarget): Constify.
11863 * cp-name-parser.y (yyerror): Constify.
11864 * cp-valprint.c (cp_print_class_member): Constify.
11865 * cris-tdep.c (cris_register_name, crisv32_register_name):
11867 * d-exp.y (yyerror): Constify.
11868 (struct token::oper): Constify.
11869 * d-lang.h (d_yyerror): Constify.
11870 * dbxread.c (struct header_file_location::name): Constify.
11871 (add_old_header_file, add_new_header_file, last_function_name)
11872 (dbx_next_symbol_text, add_bincl_to_list)
11873 (find_corresponding_bincl_psymtab, set_namestring)
11874 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
11875 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
11876 * defs.h (command_line_input, print_address_symbolic)
11877 (deprecated_readline_begin_hook): Constify.
11878 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
11880 * event-top.c (handle_line_of_input): Constify and add cast.
11881 * exceptions.c (catch_errors): Constify.
11882 * exceptions.h (catch_errors): Constify.
11883 * expprint.c (print_subexp_standard, op_string, op_name)
11884 (op_name_standard, dump_raw_expression, dump_raw_expression):
11885 * expression.h (op_name, op_string, dump_raw_expression):
11887 * f-exp.y (yyerror): Constify.
11888 (struct token::oper): Constify.
11889 (struct f77_boolean_val::name): Constify.
11890 * f-lang.c (f_word_break_characters): Constify.
11891 * f-lang.h (f_yyerror): Constify.
11892 * fork-child.c (fork_inferior): Add cast.
11893 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
11894 (new_variant): Constify.
11895 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
11896 * gdbarch.c: Regenerate.
11897 * gdbcore.h (set_gnutarget): Constify.
11898 * go-exp.y (yyerror): Constify.
11899 (token::oper): Constify.
11900 * go-lang.h (go_yyerror): Constify.
11901 * go32-nat.c (go32_sysinfo): Constify.
11902 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
11903 * guile/scm-cmd.c (cmdscm_function): Constify.
11904 * guile/scm-param.c (pascm_param_value): Constify.
11905 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
11906 (h8300sx_register_name): Constify.
11907 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
11909 * ia64-tdep.c (ia64_register_names): Constify.
11910 * infcmd.c (construct_inferior_arguments): Constify.
11911 (path_command, attach_post_wait): Constify.
11912 * language.c (show_range_command, show_case_command)
11913 (unk_lang_error): Constify.
11914 * language.h (language_defn::la_error)
11915 (language_defn::la_name_of_this): Constify.
11916 * linespec.c (decode_line_2): Constify.
11917 * linux-thread-db.c (thread_db_err_str): Constify.
11918 * lm32-tdep.c (lm32_register_name): Constify.
11919 * m2-exp.y (yyerror): Constify.
11920 * m2-lang.h (m2_yyerror): Constify.
11921 * m32r-tdep.c (m32r_register_names): Constify and make static.
11922 * m68hc11-tdep.c (m68hc11_register_names): Constify.
11923 * m88k-tdep.c (m88k_register_name): Constify.
11924 * macroexp.c (appendmem): Constify.
11925 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
11926 (upgrade_type, parse_external, parse_partial_symbols)
11927 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
11928 (new_symbol): Constify.
11929 * memattr.c (mem_info_command): Constify.
11930 * mep-tdep.c (register_name_from_keyword): Constify.
11931 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
11933 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
11934 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
11935 * mi/mi-main.c (captured_mi_execute_command): Constify and add
11937 (mi_execute_async_cli_command): Constify.
11938 * mips-tdep.c (mips_register_name): Constify.
11939 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
11940 (am33_register_name, am33_2_register_name)
11941 * moxie-tdep.c (moxie_register_names): Constify.
11942 * nat/linux-osdata.c (osdata_type): Constify fields.
11943 * nto-tdep.c (nto_parse_redirection): Constify.
11944 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
11945 (lookup_child_selector): Constify.
11946 (objc_methcall::name): Constify.
11947 * objc-lang.h (lookup_objc_class, lookup_child_selector)
11948 (lookup_struct_typedef): Constify.
11949 * objfiles.c (pc_in_section): Constify.
11950 * objfiles.h (pc_in_section): Constify.
11951 * p-exp.y (struct token::oper): Constify.
11952 (yyerror): Constify.
11953 * p-lang.h (pascal_yyerror): Constify.
11954 * parser-defs.h (op_name_standard): Constify.
11955 (op_print::string): Constify.
11956 (exp_descriptor::op_name): Constify.
11957 * printcmd.c (print_address_symbolic): Constify.
11958 * psymtab.c (print_partial_symbols): Constify.
11959 * python/py-breakpoint.c (stop_func): Constify.
11960 (bppy_get_expression): Constify.
11961 * python/py-cmd.c (cmdpy_completer::name): Constify.
11962 (cmdpy_function): Constify.
11963 * python/py-event.c (evpy_add_attribute)
11964 (gdbpy_initialize_event_generic): Constify.
11965 * python/py-event.h (evpy_add_attribute)
11966 (gdbpy_initialize_event_generic): Constify.
11967 * python/py-evts.c (add_new_registry): Constify.
11968 * python/py-finishbreakpoint.c (outofscope_func): Constify.
11969 * python/py-framefilter.c (get_py_iter_from_func): Constify.
11970 * python/py-inferior.c (get_buffer): Add cast.
11971 * python/py-param.c (parm_constant::name): Constify.
11972 * python/py-unwind.c (fprint_frame_id): Constify.
11973 * python/python.c (gdbpy_parameter_value): Constify.
11974 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
11975 * remote.c (memory_packet_config::name): Constify.
11976 (show_packet_config_cmd, remote_write_bytes)
11977 (remote_buffer_add_string):
11978 * reverse.c (exec_reverse_once): Constify.
11979 * rs6000-tdep.c (variant::name, variant::description): Constify.
11980 * rust-exp.y (rustyyerror): Constify.
11981 * rust-lang.c (rust_op_name): Constify.
11982 * rust-lang.h (rustyyerror): Constify.
11983 * serial.h (serial_ops::name): Constify.
11984 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
11985 (sh_sh3e_register_name, sh_sh2e_register_name)
11986 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
11987 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
11988 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
11989 (sh_sh4al_dsp_register_name): Constify.
11990 * sh64-tdep.c (sh64_register_name): Constify.
11991 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
11992 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
11993 * stabsread.c (patch_block_stabs, read_type_number)
11994 (ref_map::stabs, ref_add, process_reference)
11995 (symbol_reference_defined, define_symbol, define_symbol)
11996 (error_type, read_type, read_member_functions, read_cpp_abbrev)
11997 (read_one_struct_field, read_struct_fields, read_baseclasses)
11998 (read_tilde_fields, read_struct_type, read_array_type)
11999 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
12000 (read_huge_number, read_range_type, read_args, common_block_start)
12001 (find_name_end): Constify.
12002 * stabsread.h (common_block_start, define_symbol)
12003 (process_one_symbol, symbol_reference_defined, ref_add):
12004 * symfile.c (get_section_index, add_symbol_file_command):
12005 * symfile.h (get_section_index): Constify.
12006 * target-descriptions.c (tdesc_type::name): Constify.
12007 (tdesc_free_type): Add cast.
12008 * target.c (find_default_run_target):
12009 (add_deprecated_target_alias, find_default_run_target)
12010 (target_announce_detach): Constify.
12011 (do_option): Constify.
12012 * target.h (add_deprecated_target_alias): Constify.
12013 * thread.c (print_thread_info_1): Constify.
12014 * top.c (deprecated_readline_begin_hook, command_line_input):
12016 (init_main): Add casts.
12017 * top.h (handle_line_of_input): Constify.
12018 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
12019 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
12020 (tfind_command): Rename to ...
12021 (tfind_command_1): ... this and constify.
12022 (tfind_command): New function.
12023 (tfind_end_command, tfind_start_command): Adjust.
12024 (encode_source_string): Constify.
12025 * tracepoint.h (encode_source_string): Constify.
12026 * tui/tui-data.c (tui_partial_win_by_name): Constify.
12027 * tui/tui-data.h (tui_partial_win_by_name): Constify.
12028 * tui/tui-source.c (tui_set_source_content_nil): Constify.
12029 * tui/tui-source.h (tui_set_source_content_nil): Constify.
12030 * tui/tui-win.c (parse_scrolling_args): Constify.
12031 * tui/tui-windata.c (tui_erase_data_content): Constify.
12032 * tui/tui-windata.h (tui_erase_data_content): Constify.
12033 * tui/tui-winsource.c (tui_erase_source_content): Constify.
12034 * tui/tui.c (tui_enable): Add cast.
12035 * utils.c (defaulted_query): Constify.
12036 (init_page_info): Add cast.
12037 (puts_debug, subset_compare): Constify.
12038 * utils.h (subset_compare): Constify.
12039 * varobj.c (varobj_format_string): Constify.
12040 * varobj.h (varobj_format_string): Constify.
12041 * vax-tdep.c (vax_register_name): Constify.
12042 * windows-nat.c (windows_detach): Constify.
12043 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
12044 * xml-support.c (gdb_xml_end_element): Constify.
12045 * xml-tdesc.c (tdesc_start_reg): Constify.
12046 * xstormy16-tdep.c (xstormy16_register_name): Constify.
12047 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
12048 * xtensa-tdep.h (xtensa_register_t::name): Constify.
12050 2017-04-05 Pedro Alves <palves@redhat.com>
12052 * proc-api.c (struct trans): Constify.
12053 (procfs_note): Constify.
12054 * proc-events.c (struct trans, syscall_table):
12055 * proc-flags.c (struct trans): Constify.
12056 * proc-utils.h (procfs_note): Constify.
12057 * proc-why.c (struct trans): Constify.
12058 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
12059 (procfs_detach): Constify.
12060 * sol-thread.c (struct string_map): Constify.
12061 (td_err_string, td_state_string): Constify.
12063 2017-04-05 Pedro Alves <palves@redhat.com>
12065 * proc-api.c (procfs_filename): Don't initialize
12067 (prepare_to_trace): Assume procfs_filename is non-NULL.
12068 (_initialize_proc_api): Give procfs_filename a default value here.
12070 2017-04-05 Pedro Alves <palves@redhat.com>
12072 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
12073 'cond_string' parameter.
12074 (extract_exception_regexp): Constify 'string' parameter.
12075 (catch_exception_command_1): Constify.
12076 * breakpoint.c (init_catchpoint)
12077 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
12079 (ep_parse_optional_if_clause, catch_fork_command_1)
12080 (catch_exec_command_1): Constify.
12081 * breakpoint.h (init_catchpoint): Constify 'cond_string'
12083 (ep_parse_optional_if_clause): Constify.
12084 * cli/cli-utils.c (remove_trailing_whitespace)
12085 (check_for_argument): Constify.
12086 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
12087 non-const overload.
12088 (check_for_argument): Likewise.
12090 2017-04-05 Pedro Alves <palves@redhat.com>
12092 * event-top.c (command_line_handler): Add cast to execute_command
12094 * record-btrace.c (cmd_record_btrace_bts_start)
12095 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
12096 (cmd_record_btrace_start): Add cast to execute_command call.
12097 * record-full.c (record_full_goto_insn):
12098 * record.c (record_start, record_stop): Add cast to
12099 execute_command_to_string calls.
12100 (cmd_record_start): Add cast to execute_command calls.
12102 2017-04-05 Pedro Alves <palves@redhat.com>
12104 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
12105 static inline function.
12106 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
12107 array and use gdb_PyArg_ParseTupleAndKeywords.
12108 * python/py-cmd.c (cmdpy_init): Likewise.
12109 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
12110 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
12111 (infpy_search_memory): Likewise.
12112 * python/py-objfile.c (objfpy_add_separate_debug_file)
12113 (gdbpy_lookup_objfile): Likewise.
12114 * python/py-symbol.c (gdbpy_lookup_symbol)
12115 (gdbpy_lookup_global_symbol): Likewise.
12116 * python/py-type.c (gdbpy_lookup_type): Likewise.
12117 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
12118 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
12121 2017-04-05 Pedro Alves <palves@redhat.com>
12123 * python/python-internal.h (gdb_PyGetSetDef): New type.
12124 * python/py-block.c (block_object_getset)
12125 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
12126 * python/py-event.c (event_object_getset)
12127 (finish_breakpoint_object_getset): Likewise.
12128 * python/py-inferior.c (inferior_object_getset): Likewise.
12129 * python/py-infthread.c (thread_object_getset): Likewise.
12130 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
12131 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
12132 * python/py-objfile.c (objfile_getset): Likewise.
12133 * python/py-progspace.c (pspace_getset): Likewise.
12134 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
12136 * python/py-record.c (recpy_record_getset): Likewise.
12137 * python/py-symbol.c (symbol_object_getset): Likewise.
12138 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
12140 * python/py-type.c (type_object_getset, field_object_getset):
12142 * python/py-value.c (value_object_getset): Likewise.
12144 2017-04-05 Pedro Alves <palves@redhat.com>
12146 * python/python-internal.h (gdb_PyObject_CallMethod)
12147 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
12149 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
12150 (PySys_GetObject, PySys_SetPath): New macros.
12152 2017-04-05 Pedro Alves <palves@redhat.com>
12154 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
12155 info_osdata_command.
12156 * osdata.c (info_osdata_command): Rename to ...
12157 (info_osdata): ... this. Constify 'type' parameter, and remove
12158 the 'from_tty' parameter. Accept NULL TYPE.
12159 (info_osdata_command): New function.
12160 * osdata.h (info_osdata_command): Remove declaration.
12161 (info_osdata): New declaration.
12163 2017-04-05 Pedro Alves <palves@redhat.com>
12165 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
12166 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
12167 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
12169 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
12170 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
12171 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
12173 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
12174 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
12175 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12176 (mi_cmd_file_list_exec_source_files)
12177 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
12178 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12179 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
12181 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
12182 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
12183 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
12184 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
12185 (mi_cmd_stack_info_frame): Constify 'command' parameter.
12186 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
12187 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
12188 'command' parameter.
12189 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
12190 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
12191 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
12192 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
12193 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
12194 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
12195 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
12196 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
12197 (mi_cmd_var_set_update_range): Constify 'command' parameter.
12198 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
12199 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
12201 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
12202 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
12203 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
12204 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
12205 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
12206 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
12207 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
12208 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
12209 (mi_cmd_data_list_changed_registers)
12210 (mi_cmd_data_write_register_values)
12211 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
12212 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
12213 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
12214 (mi_cmd_list_features, mi_cmd_list_target_features)
12215 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
12216 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
12217 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
12218 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
12219 (mi_cmd_trace_frame_collected): Constify 'command'
12221 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
12222 'command' parameter.
12224 2017-04-05 Pedro Alves <palves@redhat.com>
12226 * ada-lang.c (ada_completer_word_break_characters): Now a const
12228 (ada_get_gdb_completer_word_break_characters): Constify.
12229 * completer.c (gdb_completer_command_word_break_characters)
12230 (gdb_completer_file_name_break_characters)
12231 (gdb_completer_quote_characters): Now const arrays.
12232 (get_gdb_completer_quote_characters): Constify.
12233 (set_rl_completer_word_break_characters): New function.
12234 (set_gdb_completion_word_break_characters)
12235 (complete_line_internal): Use it.
12236 * completer.h (get_gdb_completer_quote_characters): Constify.
12237 (set_rl_completer_word_break_characters): Declare.
12238 * f-lang.c (f_word_break_characters): Constify.
12239 * language.c (default_word_break_characters): Constify.
12240 * language.h (language_defn::la_word_break_characters): Constify.
12241 (default_word_break_characters): Constify.
12242 * top.c (init_main): Use set_rl_completer_word_break_characters.
12244 2017-04-05 Pedro Alves <palves@redhat.com>
12246 * aix-thread.c (aix_thread_pid_to_str)
12247 (aix_thread_extra_thread_info): Constify.
12248 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
12249 * bsd-uthread.c (bsd_uthread_extra_thread_info)
12250 (bsd_uthread_pid_to_str): Constify.
12251 * corelow.c (core_pid_to_str): Constify.
12252 * darwin-nat.c (darwin_pid_to_str): Constify.
12253 * fbsd-nat.c (fbsd_pid_to_str): Constify.
12254 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
12256 * gnu-nat.c (gnu_pid_to_str): Constify.
12257 * go32-nat.c (go32_pid_to_str): Constify.
12258 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
12259 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
12260 * inferior.c (inferior_pid_to_str): Constify.
12261 * linux-nat.c (linux_nat_pid_to_str): Constify.
12262 * linux-tdep.c (linux_core_pid_to_str): Constify.
12263 * linux-thread-db.c (thread_db_pid_to_str)
12264 (thread_db_extra_thread_info): Constify.
12265 * nto-tdep.c (nto_extra_thread_info): Constify.
12266 * nto-tdep.h (nto_extra_thread_info): Constify.
12267 * obsd-nat.c (obsd_pid_to_str): Constify.
12268 * procfs.c (procfs_pid_to_str): Constify.
12269 * ravenscar-thread.c (ravenscar_extra_thread_info)
12270 (ravenscar_pid_to_str): Constify.
12271 * remote-sim.c (gdbsim_pid_to_str): Constify.
12272 * remote.c (remote_threads_extra_info, remote_pid_to_str):
12274 * sol-thread.c (solaris_pid_to_str): Constify.
12275 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
12276 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
12277 * target.c (default_pid_to_str, target_pid_to_str)
12278 (normal_pid_to_str, default_pid_to_str): Constify.
12279 * target.h (target_ops::to_pid_to_str)
12280 (target_ops::to_extra_thread_info): Constify.
12281 (target_pid_to_str, normal_pid_to_str): Constify.
12282 * windows-nat.c (windows_pid_to_str): Constify.
12283 * gdbarch.sh (core_pid_to_str): Constify.
12284 * target-delegates.c: Regenerate.
12285 * gdbarch.h, gdbarch.c: Regenerate.
12287 2017-04-05 Pedro Alves <palves@redhat.com>
12289 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
12290 the memory of the temporary warning_pre_print override.
12291 * utils.c (warning_pre_print): Constify.
12292 * utils.h (warning_pre_print): Constify.
12294 2017-04-05 Pedro Alves <palves@redhat.com>
12296 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
12297 (shell_command): New function.
12298 (make_command): Use std::string.
12299 (init_cli_cmds): Register shell_command instead of shell_escape.
12301 2017-04-05 Pedro Alves <palves@redhat.com>
12303 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
12304 * tracepoint.c (default_collect): Don't initialize.
12306 2017-04-05 Pedro Alves <palves@redhat.com>
12308 * macroexp.c (macro_buffer::shared): Now a bool.
12309 (init_buffer): Update.
12310 (init_shared_buffer): Constify 'addr' parameter.
12311 (substitute_args, expand, macro_expand, macro_expand_next): Remove
12314 2017-04-05 Pedro Alves <palves@redhat.com>
12316 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
12317 * disasm.c (set_disassembler_options): Constify local.
12318 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
12320 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
12323 * tracefile.c (tsave_command): Fix argument parsing for '-r'
12326 2017-04-05 Yao Qi <yao.qi@linaro.org>
12328 * frame.c (frame_unwind_register_unsigned): Call
12329 frame_unwind_register_value.
12331 2017-04-05 Yao Qi <yao.qi@linaro.org>
12333 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
12334 Use gdb_test_multiple, and don't match anchor.
12336 2017-04-05 Pedro Alves <palves@redhat.com>
12338 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
12339 (Write After Approval): Remove Simon Marchi.
12341 2017-04-05 Pedro Alves <palves@redhat.com>
12343 * common/gdb_optional.h (optional::optional): Make constexpr and
12344 initialize m_dummy.
12346 2017-04-04 John Baldwin <jhb@FreeBSD.org>
12348 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
12349 (amd64fbsd_jmp_buf_reg_offset): Remove.
12350 (amd64fbsd_supply_uthread): Remove function.
12351 (amd64fbsd_collect_uthread): Remove function.
12352 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
12353 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
12354 (x86_64-*-freebsd*): Remove bsd-uthread.o.
12355 (fbsd-nat.c): Update comment.
12356 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
12357 (i386fbsd_jmp_buf_reg_offset): Remove.
12358 (i386fbsd_supply_uthread): Remove function.
12359 (i386fbsd_collect_uthread): Remove function.
12360 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
12362 2017-04-04 John Baldwin <jhb@FreeBSD.org>
12364 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
12365 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
12366 * NEWS: Mention that support for FreeBSD/alpha was removed.
12367 * alpha-fbsd-tdep.c: Delete file.
12368 * config/alpha/fbsd.mh: Delete file.
12369 * configure.host: Delete alpha*-*-freebsd* and
12370 alpha*-*-kfreebsd*-gnu.
12371 * configure.tgt: Delete alpha*-*-freebsd* and
12372 alpha*-*-kfreebsd*-gnu.
12374 2017-04-04 John Baldwin <jhb@FreeBSD.org>
12376 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
12377 amd64bsd_store_inferior_registers): Use ptid from regcache.
12379 2017-04-04 Pedro Alves <palves@redhat.com>
12381 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
12382 data fields, make them private and add "m_" prefixes.
12383 (lnp_state_machine::lnp_state_machine): New ctor.
12384 (record_line, check_line_address, handle_set_discriminator)
12385 (handle_set_address, handle_advance_pc, handle_special_opcode)
12386 (handle_advance_line, handle_set_file, handle_negate_stmt)
12387 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
12388 (end_sequence, advance_line): New methods.
12389 (m_gdbarch, m_record_lines_p): New fields.
12390 (lnp_reader_state): Delete.
12391 (dwarf_record_line): Rename to ...
12392 (lnp_state_machine::record_line): ... adjust.
12393 (init_lnp_state_machine): Delete.
12394 (lnp_state_machine::lnp_state_machine): New.
12395 (check_line_address): Rename to ...
12396 (lnp_state_machine::check_line_address): This.
12397 (dwarf_decode_lines_1): Remove reference to "reader_state".
12398 Adjust lnp_state_machine having a non-default ctor. Use bool.
12399 State machine internal state manipulation moved to
12400 lnp_state_machine methods.
12402 2017-04-04 Pedro Alves <palves@redhat.com>
12404 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12405 unittests/offset-type-selftests.c.
12406 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
12407 * common/offset-type.h: New file.
12408 * common/preprocessor.h: New file.
12409 * common/traits.h: New file.
12410 * common/valid-expr.h: New file.
12411 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
12412 sect_offset and cu_offset strong typedefs throughout.
12413 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
12414 typedefs throughout.
12415 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
12416 sect_offset and cu_offset strong typedefs throughout.
12417 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
12418 typedefs throughout.
12419 * gdbtypes.h: Include "common/offset-type.h".
12420 (cu_offset): Now an offset type (strong typedef) instead of a
12422 (sect_offset): Likewise.
12423 (union call_site_parameter_u): Rename "param_offset" field to
12425 * unittests/offset-type-selftests.c: New file.
12427 2017-04-04 Pedro Alves <palves@redhat.com>
12429 * common/underlying.h: New file.
12430 * dwarf2read.c: Include "common/gdb_optional.h" and
12431 "common/underlying.h".
12432 (dir_index, file_name_index): New types.
12433 (file_entry): Use them.
12434 (file_entry::include): Use to_underlying.
12435 (line_header::add_file_name): Use dir_index.
12436 (read_formatted_entries): Use gdb::optional. Read form before
12437 writting to file_entry.
12438 (dwarf_decode_line_header): Use dir_index.
12439 (lnp_state_machine::current_file): Use to_underlying.
12440 (lnp_state_machine::file): Change type to file_name_index.
12441 (dwarf_record_line): Use to_underlying.
12442 (init_lnp_state_machine): Use file_name_index.
12443 (dwarf_decode_lines_1): Use dir_index and file_name_index.
12445 2017-04-04 Pedro Alves <palves@redhat.com>
12447 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
12448 operator bool, has_value and get methods.
12450 2017-04-04 Pedro Alves <palves@redhat.com>
12452 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
12454 (line_header): Initialize all data fields. Change type of
12455 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
12456 Change type of include_dirs to std::vector<const char *>. Remove
12457 num_include_dirs, include_dirs_size. Change type of file_names to
12458 std::vector<file_entry>. Remove num_file_names, file_names_size.
12459 (line_header::line_header): New.
12460 (line_header::add_include_dir, line_header::add_file_name): New
12462 (line_header::include_dir_at): Remove NULL check.
12463 (line_header::file_name_at): Add const overload.
12464 (line_header_up): New unique_ptr typedef.
12465 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
12466 std::vector. Remove free_line_header call.
12467 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
12468 free_line_header call.
12469 (free_cu_line_header): Delete.
12470 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
12471 (setup_type_unit_groups): Use line_header_up instead of cleanups.
12472 Adjust to use std::vector.
12473 (free_line_header): Delete.
12474 (free_line_header_voidp): Use delete.
12475 (add_include_dir): Replace with ...
12476 (line_header::add_include_dir): ... this method. Use std::vector.
12477 (add_file_name): Replace with ...
12478 (line_header::add_file_name): ... this method. Use std::vector.
12479 (add_include_dir_stub): Delete.
12480 (read_formatted_entries): Remove memset.
12481 (dwarf_decode_line_header): Return a line_header_up instead of a
12482 raw pointer. Remove cleanup handling. Pass lambdas to
12483 read_formatted_entries. Adjust to use line_header methods.
12484 (dwarf_decode_lines_1): Adjust to use line_header methods.
12485 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
12488 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
12490 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
12491 instead of struct ptid.
12493 2017-05-04 Alan Hayward <alan.hayward@arm.com>
12495 * frame.c (get_frame_register_bytes): Unwind using value.
12496 (put_frame_register_bytes): Likewise.
12498 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
12500 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
12503 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
12505 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
12507 2017-03-29 Yao Qi <yao.qi@linaro.org>
12509 * gdbthread.h (struct thread_info): Declare constructor and
12510 destructor. Add some in-class member initializers.
12511 * thread.c (free_thread): Remove.
12512 (init_thread_list): Call delete instead of free_thread.
12513 (new_thread): Call thread_info constructor.
12514 (thread_info::thread_info): New function.
12515 (thread_info::~thread_info): New function.
12516 (delete_thread_1): Call delete instead of free_thread.
12517 (make_cleanup_restore_current_thread): Move tp and frame to
12520 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12522 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
12523 (arc_skip_prologue): Likewise.
12524 (arc_make_frame_cache): Likewise.
12525 (arc_pv_get_operand): New function.
12526 (arc_is_in_prologue): Likewise.
12527 (arc_analyze_prologue): Likewise.
12528 (arc_print_frame_cache): Likewise.
12529 (MAX_PROLOGUE_LENGTH): New constant.
12531 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12533 * configure.tgt: Add arc-insn.o.
12534 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
12535 (dump_arc_instruction_command): New function.
12536 (arc_fprintf_disasm): Likewise.
12537 (arc_disassemble_info): Likewise.
12538 (arc_insn_get_operand_value): Likewise.
12539 (arc_insn_get_operand_value_signed): Likewise.
12540 (arc_insn_get_memory_base_reg): Likewise.
12541 (arc_insn_get_memory_offset): Likewise.
12542 (arc_insn_get_branch_target): Likewise.
12543 (arc_insn_dump): Likewise.
12544 (arc_insn_get_linear_next_pc): Likewise.
12545 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
12546 (arc_disassemble_info): Likewise.
12547 (arc_insn_get_branch_target): Likewise.
12548 (arc_insn_get_linear_next_pc): Likewise.
12549 * NEWS: Mention new "maint print arc arc-instruction".
12551 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12553 * arc-tdep (maintenance_print_arc_list): New variable.
12554 (maintenance_print_arc_command): New function.
12556 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12558 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
12559 Add "limm" and "reserved".
12560 (arc_cannot_fetch_register, arc_cannot_store_register): Add
12561 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
12562 * arc-tdep.h (arc_regnum): Likewise.
12564 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12566 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12567 for THREADPTR register.
12568 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
12570 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
12571 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
12572 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
12574 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12576 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
12577 registers above gdbarch_num_regs (gdbarch) as privileged in
12580 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12582 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12583 for a single specified register or for all registers in
12584 a0_base..a0_base + C0_NREGS range.
12585 (supply_gregset_reg): Call regcache_raw_supply for a single
12586 specified register or for all registers in a0_base..a0_base +
12589 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12591 * arch/xtensa.h (C0_NREGS): Add definition.
12592 * xtensa-tdep.c (C0_NREGS): Remove definition.
12594 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12596 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
12597 Drop xtensa_default_isa initialization.
12598 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
12600 2017-03-27 Pedro Alves <palves@redhat.com>
12602 * dwarf2read.c (file_entry) <dir_index>: Add comment.
12603 (file_entry::include_dir): New method.
12604 (line_header::include_dir_at, line_header::file_name_at): New
12606 (setup_type_unit_groups, setup_type_unit_groups)
12607 (psymtab_include_file_name): Simplify using the new methods.
12608 (lnp_state_machine) <the_line_header>: New field.
12609 <file>: Add comment.
12610 (lnp_state_machine::current_file): New method.
12611 (dwarf_record_line): Simplify using the new methods.
12612 (init_lnp_state_machine): Initialize the "the_line_header" field.
12613 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
12614 Simplify using the new methods.
12616 2017-03-27 Pedro Alves <palves@redhat.com>
12618 * cp-name-parser.y (make_empty): Delete.
12619 (demangler_special, nested_name, ptr_operator, array_indicator)
12620 (direct_declarator, declarator_1): Use fill_comp instead of
12623 2017-03-27 Pedro Alves <palves@redhat.com>
12625 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
12626 to ATTRIBUTE_PRINTF.
12627 * solib-target.c (library_list_start_list): Print "string" not
12629 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
12630 gdb_xml_error call.
12632 2017-03-27 Pedro Alves <palves@redhat.com>
12634 * dwarf2read.c (struct file_and_directory): New.
12635 (dwarf2_get_dwz_file): Adjust to use std::string.
12636 (dw2_get_file_names_reader): Adjust to use file_and_directory.
12637 (find_file_and_directory): Adjust to return a file_and_directory
12639 (read_file_scope): Adjust to use file_and_directory. Remove
12640 make_cleanup/do_cleanups calls.
12641 (open_and_init_dwp_file): Adjust to use std::string. Remove
12642 make_cleanup/do_cleanups calls.
12643 * python/python.c (do_start_initialization): Adjust to ldirname
12644 returning a std::string.
12645 * utils.c (ldirname): Now returns a std::string.
12646 * utils.h (ldirname): Change return type to std::string.
12647 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
12648 returning a std::string.
12649 * xml-tdesc.c (file_read_description_xml): Likewise.
12651 2017-03-24 Alan Hayward <alan.hayward@arm.com>
12653 * regcache.c (regcache_debug_print_register): New function.
12654 * regcache.h (regcache_debug_print_register): New declaration.
12655 * target.c (debug_print_register): Remove.
12656 (target_fetch_registers): Call regcache_debug_print_register.
12657 (target_store_registers): Likewise.
12659 2017-03-24 Pádraig Brady <pbrady@fb.com>
12661 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
12662 reference beyond the 'lh->include_dirs' array before accessing to
12664 (psymtab_include_file_name): Likewise.
12665 (dwarf_decode_lines_1): Likewise.
12666 (dwarf_decode_lines): Likewise.
12667 (file_file_name): Likewise.
12669 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
12671 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
12673 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12674 ps_lsetfpregs): Likewise.
12675 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
12676 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12677 ps_lsetfpregs): Likewise.
12678 * target.c (target_fetch_registers, target_store_registers):
12681 2017-03-23 Alan Hayward <alan.hayward@arm.com>
12683 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
12685 2017-03-23 Yao Qi <yao.qi@linaro.org>
12687 * aarch64-tdep.c (aarch64_process_record_test): Declare.
12688 (_initialize_aarch64_tdep): Register it.
12689 (aarch64_record_load_store): Handle PRFM instruction.
12690 (aarch64_process_record_test): New function.
12692 2017-03-23 Yao Qi <yao.qi@linaro.org>
12694 * aarch64-tdep.c (aarch64_record_load_store): Fix code
12697 2017-03-23 Yao Qi <yao.qi@linaro.org>
12699 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
12701 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12703 python/python.c (do_start_initialization): Fix memory leak.
12705 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12707 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
12708 using get_ptrace_pid.
12709 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
12711 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
12712 inferior_ptid instead of pid.
12714 2017-03-22 Yao Qi <yao.qi@linaro.org>
12716 * aarch64-tdep.c: Wrap locally used classes in anonymous
12718 * arm-tdep.c: Likewise.
12719 * linespec.c: Likewise.
12720 * ui-out.c: Likewise.
12722 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
12725 * python/lib/gdb/printer/bound_registers.py: Import sys.
12727 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12729 * windows-nat.c (do_windows_fetch_inferior_registers): Add
12730 windows_thread_info parameter and use it instead of
12732 (windows_fetch_inferior_registers): Don't set current_thread,
12733 pass the thread to do_windows_fetch_inferior_registers. Use
12734 ptid from regcache instead of inferior_ptid.
12735 (do_windows_store_inferior_registers): Add windows_thread_info
12736 parameter and use it instead of current_thread.
12737 (windows_store_inferior_registers): Don't set current_thread,
12738 pass the thread to do_windows_store_inferior_registers. Use
12739 ptid from regcache instead of inferior_ptid.
12741 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12743 * ser-mingw.c (ser_windows_raw): Remove reference to
12744 struct serial::current_timeout.
12746 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
12749 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
12750 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
12751 (sparc64_fsr_type): Fix %fsr decoding.
12753 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
12755 * python/py-record-btrace.c (btpy_insn_data): Change return type
12758 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12760 * spu-linux-nat.c (spu_fetch_inferior_registers,
12761 spu_store_inferior_registers): Use ptid from regcache, set and
12762 restore inferior_ptid.
12763 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
12766 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12768 * i386-linux-nat.c (fetch_register, store_register,
12769 i386_linux_fetch_inferior_registers,
12770 i386_linux_store_inferior_registers): Use ptid from regcache.
12771 * ia64-linux-nat.c (ia64_linux_fetch_register,
12772 ia64_linux_store_register): Likewise.
12773 * inf-ptrace.c (inf_ptrace_fetch_register,
12774 inf_ptrace_store_register): Likewise.
12775 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
12776 m32r_linux_store_inferior_registers): Likewise.
12777 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
12778 m68kbsd_store_inferior_registers): Likewise.
12779 * m68k-linux-nat.c (fetch_register, store_register,
12780 m68k_linux_fetch_inferior_registers,
12781 m68k_linux_store_inferior_registers): Likewise.
12782 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
12783 m88kbsd_store_inferior_registers): Likewise.
12784 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
12785 mips_fbsd_store_inferior_registers): Likewise.
12786 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
12787 mips64_linux_regsets_store_registers): Likewise.
12788 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
12789 mipsnbsd_store_inferior_registers): Likewise.
12790 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
12791 mips64obsd_store_inferior_registers): Likewise.
12792 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
12794 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
12795 ppcfbsd_store_inferior_registers): Likewise.
12796 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
12797 ppc_linux_store_inferior_registers): Likewise.
12798 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
12799 ppcnbsd_store_inferior_registers): Likewise.
12800 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
12801 ppcobsd_store_registers): Likewise.
12802 * procfs.c (procfs_fetch_registers, procfs_store_registers):
12804 * ravenscar-thread.c (ravenscar_fetch_registers,
12805 ravenscar_store_registers, ravenscar_prepare_to_store):
12807 * record-btrace.c (record_btrace_fetch_registers,
12808 record_btrace_store_registers, record_btrace_prepare_to_store):
12810 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
12811 Lookup inferior using ptid from regcache, instead of
12813 * remote.c (remote_fetch_registers, remote_store_registers): Use
12814 ptid from regcache.
12815 * rs6000-nat.c (fetch_register, store_register): Likewise.
12816 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
12817 s390_linux_store_inferior_registers): Likewise.
12818 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
12819 shnbsd_store_inferior_registers): Likewise.
12820 * sol-thread.c (sol_thread_fetch_registers,
12821 sol_thread_store_registers): Likewise.
12822 * sparc-nat.c (sparc_fetch_inferior_registers,
12823 sparc_store_inferior_registers): Likewise.
12824 * tilegx-linux-nat.c (fetch_inferior_registers,
12825 store_inferior_registers): Likewise.
12826 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
12827 vaxbsd_store_inferior_registers): Likewise.
12828 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
12829 store_xtregs): Likewise.
12831 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12834 * NEWS: Mention support for rvalue references in GDB and python.
12835 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
12836 supports both lvalue and rvalue references.
12838 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12841 * gdbtypes.c (rank_one_type): Implement overloading
12842 resolution rules regarding rvalue references.
12844 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12847 * aarch64-tdep.c (aarch64_type_align)
12848 (aarch64_extract_return_value, aarch64_store_return_value): Change
12849 lvalue reference type checks to general reference type checks.
12850 * amd64-tdep.c (amd64_classify): Likewise.
12851 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
12853 * arm-tdep.c (arm_type_align, arm_extract_return_value)
12854 (arm_store_return_value): Likewise.
12855 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
12856 * c-typeprint.c (c_print_type): Likewise.
12857 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
12858 (cplus_number_of_children, cplus_describe_child): Likewise.
12859 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
12860 * completer.c (expression_completer): Likewise.
12861 * cp-support.c (make_symbol_overload_list_adl_namespace):
12863 * darwin-nat-info.c (info_mach_region_command): Likewise.
12864 * dwarf2loc.c (entry_data_value_coerce_ref)
12865 (value_of_dwarf_reg_entry): Likewise.
12866 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
12867 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
12869 * findvar.c (extract_typed_address, store_typed_address):
12871 * gdbtypes.c (rank_one_type): Likewise.
12872 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
12873 * infcall.c (value_arg_coerce): Likewise.
12874 * language.c (pointer_type): Likewise.
12875 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
12877 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
12878 * mn10300-tdep.c (mn10300_type_align): Likewise.
12879 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
12880 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
12881 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
12883 * printcmd.c (print_formatted, x_command): Likewise.
12884 * python/py-type.c (typy_get_composite, typy_template_argument):
12886 * python/py-value.c (valpy_referenced_value)
12887 (valpy_get_dynamic_type, value_has_field): Likewise.
12888 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
12889 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
12890 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
12891 * spu-tdep.c (spu_scalar_value_p): Likewise.
12892 * symtab.c (lookup_symbol_aux): Likewise.
12893 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
12894 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
12896 * valops.c (value_cast_pointers, value_cast)
12897 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
12898 (value_struct_elt, value_struct_elt_bitpos)
12899 (value_find_oload_method_list, find_overload_match)
12900 (value_rtti_indirect_type): Likewise.
12901 * valprint.c (val_print_scalar_type_p, generic_val_print):
12903 * value.c (value_actual_type, value_as_address, unpack_long)
12904 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
12905 (coerce_ref): Likewise.
12906 * varobj.c (varobj_get_value_type): Likewise.
12908 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12911 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
12912 table of constants.
12913 * python/lib/gdb/command/explore.py: Support exploring values
12914 of rvalue reference types.
12915 * python/lib/gdb/types.py: Implement get_basic_type() for
12916 rvalue reference types.
12917 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
12919 * python/py-value.c (valpy_getitem): Add an rvalue reference
12921 (valpy_reference_value): Add new parameter "refcode".
12922 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
12923 New wrappers for valpy_reference_value().
12924 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12925 (gdbpy_invoke_xmethod): Likewise.
12927 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12930 * dwarf2read.c (process_die, read_type_die_1): Handle the
12931 DW_TAG_rvalue_reference_type DIE.
12932 (read_tag_reference_type): Add new parameter "refcode".
12934 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12937 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
12938 (c_type_print_modifier, c_type_print_varspec_suffix)
12939 (c_type_print_base): Support printing rvalue reference types.
12940 * c-valprint.c (c_val_print, c_value_print): Support printing
12941 rvalue reference values.
12943 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12946 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
12948 * cp-support.c (replace_typedefs): Handle
12949 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
12950 * python/py-type.c (typy_lookup_type): Likewise.
12952 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12955 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
12956 * parse.c (insert_type): Change assert statement.
12957 (follow_types): Handle rvalue reference types.
12958 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
12961 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12964 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
12965 value_ref() interface.
12966 * c-valprint.c (c_value_print): Likewise.
12967 * infcall.c (value_arg_coerce): Likewise.
12968 * python/py-value.c (valpy_reference_value): Likewise.
12969 * valops.c (value_cast, value_reinterpret_cast)
12970 (value_dynamic_cast, typecmp): Likewise.
12971 (value_ref): Parameterize by kind of return value reference type.
12972 * value.h (value_ref): Add new parameter "refcode".
12974 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12977 * dwarf2read.c (read_tag_reference_type): Use
12978 lookup_lvalue_reference_type() instead of lookup_reference_type().
12979 * eval.c (evaluate_subexp_standard): Likewise.
12980 * f-exp.y: Likewise.
12981 * gdbtypes.c (make_reference_type, lookup_reference_type):
12982 Generalize with rvalue reference types.
12983 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
12984 convenience wrappers for lookup_reference_type().
12985 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
12986 reference kind parameter.
12987 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
12988 wrappers for lookup_reference_type().
12989 * guile/scm-type.c (gdbscm_type_reference): Use
12990 lookup_lvalue_reference_type() instead of lookup_reference_type().
12991 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
12992 * parse.c (follow_types): Likewise.
12993 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
12994 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
12996 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12997 (gdbpy_invoke_xmethod): Likewise.
12998 * stabsread.c: Provide extra argument to make_reference_type()
13000 * valops.c (value_ref, value_rtti_indirect_type): Use
13001 lookup_lvalue_reference_type() instead of lookup_reference_type().
13003 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13006 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
13007 (TYPE_IS_REFERENCE): New macro.
13008 (struct type): Add rvalue_reference_type field.
13009 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
13011 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
13013 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
13014 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
13015 New function definition.
13016 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
13017 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
13018 New function declaration.
13019 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
13020 * mi/mi-interp.h: New file.
13021 * solib.c (info_sharedlibrary_command): Replace for loop with
13023 * solib.h (update_solib_list): New function declaration.
13024 (so_list_head): Move macro.
13025 * solist.h (ALL_SO_LIBS): New macro.
13027 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
13029 * infcmd.c (post_create_inferior): Remove unused argument in
13031 * remote.c (remote_start_remote): Likewise.
13032 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
13033 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
13034 (enable_break): Likewise.
13035 * solib.c (update_solib_list): Remove unused target argument
13036 and its documentation.
13037 (solib_add): Remove unused target argument. Remove unused
13038 argument in call to update_solib_list.
13039 (info_sharedlibrary_command): Remove unused argument in call
13040 to update_solib_list.
13041 (sharedlibrary_command): Remove unused argument in call to
13043 (handle_solib_event): Likewise.
13044 (reload_shared_libraries): Likewise.
13045 * solib.h (solib_add): Remove unused target argument.
13047 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
13049 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
13050 (s390_displaced_step_fixup): Cover relative branches with the
13051 default fixup handling. This fixes lack of support for some
13052 relative branch instructions.
13054 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13056 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
13057 ptid from regcache.
13059 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13061 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
13062 i386_darwin_store_inferior_registers): Use ptid from regcache.
13064 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13066 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
13067 i386bsd_store_inferior_registers): Use ptid from regcache.
13069 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13071 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
13072 hppaobsd_store_registers): Use ptid from regcache.
13074 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13076 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
13077 hppanbsd_store_registers): Use ptid from regcache.
13079 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13081 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
13082 from regcache. Use get_ptrace_pid.
13084 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13086 * corelow.c (get_core_register_section): Use ptid from regcache,
13089 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13091 * bsd-uthread.c (bsd_uthread_fetch_registers,
13092 bsd_uthread_store_registers): Use ptid from regcache, set and
13093 restore inferior_ptid.
13095 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13097 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
13098 fetch_fp_regs, store_register, store_regs, store_fp_register,
13099 store_fp_regs): Use ptid from regcache.
13101 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13103 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
13104 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
13105 store_vfp_regs): Use ptid from regcache.
13107 2017-03-17 Pedro Alves <palves@redhat.com>
13110 * ser-base.c (ser_base_wait_for): Add comment.
13111 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
13113 * ser-unix.c (hardwire_raw): Remove reference to
13114 scb->current_timeout.
13115 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
13116 (hardwire_ops): Install ser_base_readchar instead of
13118 * serial.h (struct serial) <current_timeout, timeout_remaining>:
13121 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
13124 * python/lib/gdb/printer/bound_registers.py: Add support for
13127 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
13129 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
13130 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
13131 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
13132 byte_offset to subobj_byte_offset. Fix the handling of
13133 DWARF_VALUE_STACK on big-endian targets when coming via an
13135 (dwarf2_evaluate_loc_desc): Adjust call to
13136 dwarf2_evaluate_loc_desc_full.
13137 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
13138 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
13140 2017-03-16 Yao Qi <yao.qi@linaro.org>
13142 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
13143 and REVSH instructions.
13145 2017-03-16 Yao Qi <yao.qi@linaro.org>
13147 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
13148 (arm_record_test): Declare.
13149 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
13150 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
13151 align with the manual.
13152 (thumb_record_misc): Adjust the code order to align with the
13154 (thumb2_record_decode_insn_handler): Fix instruction matching.
13155 (instruction_reader_thumb): New class.
13156 (arm_record_test): New function.
13158 2017-03-16 Yao Qi <yao.qi@linaro.org>
13160 * arm-tdep.c (abstract_memory_reader): New class.
13161 (instruction_reader): New class.
13162 (extract_arm_insn): Add argument 'reader'. Callers updated.
13163 (decode_insn): Likewise.
13165 2017-03-16 Doug Evans <dje@google.com>
13167 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
13168 member. Change type of TYPE member to SCM. All uses updated.
13169 (lsscm_make_lazy_string_smob): Add assert.
13170 (lsscm_make_lazy_string): Flag bad length values.
13171 (lsscm_elt_type): New function.
13172 (gdbscm_lazy_string_to_value): Rewrite to use
13173 lsscm_safe_lazy_string_to_value.
13174 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
13175 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
13176 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
13178 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
13179 * guile/scm-type.c (tyscm_scm_to_type): New function.
13181 2017-03-15 Doug Evans <dje@google.com>
13183 PR python/17728, python/18439, python/18779
13184 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
13185 member. Change type of TYPE member to PyObject *. All uses updated.
13186 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
13187 (gdbpy_create_lazy_string_object): Flag bad length values.
13188 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
13189 Handle typedefs in incoming type.
13190 (stpy_lazy_string_elt_type): New function.
13191 (gdbpy_extract_lazy_string): Call it.
13192 * python/py-value.c (valpy_lazy_string): Flag bad length values.
13193 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
13194 typedefs in incoming type.
13196 2017-03-16 Doug Evans <dje@google.com>
13198 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
13199 * guile/scm-type.c (tyscm_scm_to_type): New function.
13201 2017-03-16 Jiong Wang <jiong.wang@arm.com>
13203 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
13204 "ULONGEST" for "skip".
13206 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
13209 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
13210 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
13211 (inf_ptrace_peek_poke): ...here. New function. Now also loop
13212 over ptrace peek/poke until end of buffer or error.
13214 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
13216 * parse.c (length_of_subexp): Make static.
13217 * parser-defs.h (length_of_subexp): Remove.
13219 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
13221 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
13224 2017-03-14 Pedro Alves <palves@redhat.com>
13226 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
13227 (main): Use std::unique_ptr. Remove calls to
13228 cp_demangled_name_parse_free.
13230 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13232 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
13233 alphabsd_store_inferior_registers): Use regcache->ptid instead
13236 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13238 * aix-thread.c (aix_thread_fetch_registers,
13239 aix_thread_store_registers): Use regcache->ptid instead of
13242 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13244 * aarch64-linux-nat.c (fetch_gregs_from_thread,
13245 store_gregs_to_thread, fetch_fpregs_from_thread,
13246 store_fpregs_to_thread): Use regcache->ptid instead of
13249 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13251 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
13252 amd64_linux_fetch_inferior_registers): Use regcache->ptid
13253 instead of inferior_ptid.
13255 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13257 * target.c (target_fetch_registers, target_store_registers): Add
13260 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13262 * regcache.h (regcache_get_ptid): New function.
13263 * regcache.c (regcache_get_ptid): New function.
13265 2017-03-13 Mark Wielaard <mark@klomp.org>
13267 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
13269 2017-03-10 Keith Seitz <keiths@redhat.com>
13272 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
13274 2017-03-08 Pedro Alves <palves@redhat.com>
13277 * infrun.c (start_step_over, do_target_resume, resume)
13278 (restart_threads): Assert we're not resuming a thread that is
13279 meant to be stopped.
13280 (infrun_thread_stop_requested_callback): Delete.
13281 (infrun_thread_stop_requested): If the thread is internally
13282 stopped, queue a pending stop event and clear the thread's
13283 inline-frame state.
13284 (handle_stop_requested): New function.
13285 (handle_syscall_event, handle_inferior_event_1): Use
13286 handle_stop_requested.
13287 (handle_stop_requested): New function.
13288 (handle_signal_stop): Set the thread's stop_signal here instead of
13290 (finish_step_over): Clear step over info unconditionally.
13291 (handle_signal_stop): If the user had interrupted the event
13292 thread, consider the stop a random signal.
13293 (handle_signal_stop) <signal arrived while stepping over
13294 breakpoint>: Don't restart threads here.
13295 (stop_waiting): Don't clear step-over info here.
13297 2017-03-08 Pedro Alves <palves@redhat.com>
13300 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
13301 goes to argument 2, not 1.
13303 2017-03-08 Pedro Alves <palves@redhat.com>
13306 * top.c (gdb_readline_wrapper): Avoid passing NULL to
13307 display_gdb_prompt.
13308 (command_line_input): Add comment.
13310 2017-03-08 Pedro Alves <palves@redhat.com>
13313 * tui/tui-file.c (tui_file::write): New.
13314 * tui/tui-file.h (tui_file): Override "write".
13315 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
13316 factored out from ...
13317 (tui_puts): ... here.
13318 (tui_putc): Use them.
13319 (tui_write): New function.
13320 * tui/tui-io.h (tui_write): Declare.
13322 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
13324 * Makefile.in (SFILES): Replace "environ.c" with
13325 "common/environ.c".
13326 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
13327 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
13329 * common/environ.c: ... here.
13330 * environ.h: Moved to...
13331 * common/environ.h: ... here.
13333 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
13335 * gdbarch.sh (pstring_ptr): New static function.
13336 (gdbarch_disassembler_options): Use it.
13337 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
13338 not valid_disassembler_option->name.
13339 * gdbarch.c: Regenerate.
13341 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
13343 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
13345 2017-03-07 Pedro Alves <palves@redhat.com>
13347 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
13349 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
13351 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
13352 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
13353 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
13354 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
13356 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
13358 * xtensa-linux-nat.c (fetch_gregs): Remove const.
13360 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
13362 * remote.c (remote_add_target_side_commands): Use range-based
13365 2017-03-03 Yao Qi <yao.qi@linaro.org>
13368 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
13370 * valprint.c (common_val_print): Likewise.
13372 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
13374 * NEWS: Mention new set/show disassembler-options commands.
13375 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
13376 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
13377 (prospective_options): New static variable.
13378 (gdb_disassembler::gdb_disassembler): Initialize
13379 m_di.disassembler_options.
13380 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
13381 (get_disassembler_options): New function.
13382 (set_disassembler_options): Likewise.
13383 (set_disassembler_options_sfunc): Likewise.
13384 (show_disassembler_options_sfunc): Likewise.
13385 (disassembler_options_completer): Likewise.
13386 (_initialize_disasm): Likewise.
13387 * disasm.h (get_disassembler_options): New prototype.
13388 (set_disassembler_options): Likewise.
13389 * gdbarch.sh (gdbarch_disassembler_options): New variable.
13390 (gdbarch_verify_disassembler_options): Likewise.
13391 * gdbarch.c: Regenerate.
13392 * gdbarch.h: Likewise.
13393 * arm-tdep.c (num_disassembly_options): Delete.
13394 (set_disassembly_style): Likewise.
13395 (arm_disassembler_options): New static variable.
13396 (set_disassembly_style_sfunc): Convert short style name into long
13397 option name. Call set_disassembler_options.
13398 (show_disassembly_style_sfunc): New function.
13399 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
13400 set_gdbarch_verify_disassembler_options.
13401 (_initialize_arm_tdep): Delete regnames variable and update callers.
13402 (arm_disassembler_options): Initialize.
13403 (disasm_options): New variable.
13404 (num_disassembly_options): Rename from this...
13405 (num_disassembly_styles): ...to this. Compute by scanning through
13407 (valid_disassembly_styles): Initialize using disasm_options.
13408 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
13409 set_arm_regname_option.
13410 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
13411 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
13412 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
13413 set_gdbarch_verify_disassembler_options.
13414 * s390-tdep.c (s390_disassembler_options): New static variable.
13415 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
13416 set_gdbarch_verify_disassembler_options.
13418 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
13420 * remote.c (remote_add_target_side_condition): Remove "struct"
13421 keyword from range-based for loop.
13423 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
13425 * remote.c (remote_add_target_side_condition): Use range-based
13426 for loop. Update comment.
13428 2017-02-27 Yao Qi <yao.qi@linaro.org>
13430 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
13432 2017-02-26 Alan Hayward <alan.hayward@arm.com>
13434 * regcache.c (regcache_raw_update): New function.
13435 (regcache_raw_read): Move code to regcache_raw_update.
13436 * regcache.h (regcache_raw_update): New declaration.
13437 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
13439 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
13441 * dwarf2read.c (create_debug_type_hash_table): Initialize
13442 header.signature and header.type_offset_in_tu.
13444 2017-02-24 Pedro Alves <palves@redhat.com>
13446 * symtab.c (make_file_symbol_completion_list_1): Use
13447 add_symtab_completions.
13449 2017-02-24 Alan Hayward <alan.hayward@arm.com>
13451 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
13453 2017-02-24 Alan Hayward <alan.hayward@arm.com>
13455 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
13456 I386_MAX_REGISTER_SIZE.
13457 (i386_pseudo_register_write): Likewise.
13458 (i386_process_record): Likewise.
13459 * i387-tdep.c (i387_supply_xsave): Likewise.
13460 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
13461 (store_register): Likewise.
13463 2017-02-23 Pedro Alves <palves@redhat.com>
13465 * ada-lang.c: Include "common/function-view.h".
13466 (ada_iterate_over_symbols): Adjust to use function_view as
13468 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
13469 (ada_make_symbol_completion_list): Use a lambda.
13470 (ada_exc_search_name_matches): Delete.
13471 (name_matches_regex): New.
13472 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
13473 * compile/compile-c-support.c: Include "common/function-view.h".
13474 (print_one_macro): Change prototype to accept a ui_file pointer.
13475 (write_macro_definitions): Use a lambda.
13476 * dwarf2read.c: Include "common/function-view.h".
13477 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
13478 (dw2_expand_symtabs_matching): Adjust to use function_view as
13480 * language.h: Include "common/function-view.h".
13481 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
13482 function_view as callback type.
13483 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
13484 * linespec.c: Include "common/function-view.h".
13485 (collect_info::add_symbol): New method.
13486 (struct symbol_and_data_callback, iterate_inline_only, struct
13487 symbol_matcher_data, iterate_name_matcher): Delete.
13488 (iterate_over_all_matching_symtabs): Adjust to use function_view
13489 as callback type and lambdas.
13490 (iterate_over_file_blocks): Adjust to use function_view as
13492 (decode_compound_collector): Now a class with private fields.
13493 (decode_compound_collector::release_symbols): New method.
13494 (collect_one_symbol): Rename to...
13495 (decode_compound_collector::operator()): ... this and adjust.
13496 (lookup_prefix_sym): decode_compound_collector construction bits
13497 move to decode_compound_collector ctor. Pass the
13498 decode_compound_collector object directly as callback. Remove
13499 cleanups and use decode_compound_collector::release_symbols
13501 (symtab_collector): Now a class with private fields.
13502 (symtab_collector::release_symtabs): New method.
13503 (add_symtabs_to_list): Rename to...
13504 (symtab_collector::operator()): ... this and adjust.
13505 (collect_symtabs_from_filename): symtab_collector construction
13506 bits move to symtab_collector ctor. Pass the symtab_collector
13507 object directly as callback. Remove cleanups and use
13508 symtab_collector::release_symtabs instead.
13509 (collect_symbols): Delete.
13510 (add_matching_symbols_to_info): Use lambdas.
13511 * macrocmd.c (print_macro_callback): Delete.
13512 (info_macro_command): Use a lambda.
13513 (info_macros_command): Pass print_macro_definition as callable
13515 (print_one_macro): Remove 'ignore' parameter.
13516 (macro_list_command): Adjust.
13517 * macrotab.c (macro_for_each_data::fn): Now a function_view.
13518 (macro_for_each_data::user_data): Delete field.
13519 (foreach_macro): Adjust to call the function_view.
13520 (macro_for_each): Adjust to use function_view as callback type.
13521 (foreach_macro_in_scope): Adjust to call the function_view.
13522 (macro_for_each_in_scope): Adjust to use function_view as callback
13524 * macrotab.h: Include "common/function-view.h".
13525 (macro_callback_fn): Declare a prototype instead of a pointer.
13526 Remove "user_data" parameter.
13527 (macro_for_each, macro_for_each_in_scope): Adjust to use
13528 function_view as callback type.
13529 * psymtab.c (partial_map_expand_apply)
13530 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
13531 Adjust to use function_view as callback type and to return bool.
13532 (psym_expand_symtabs_matching): Adjust to use function_view as
13534 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
13535 to use function_view as callback type and to return bool.
13536 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
13538 * symfile.c (expand_symtabs_matching): Adjust to use function_view
13540 * symfile.h: Include "common/function-view.h".
13541 (expand_symtabs_file_matcher_ftype)
13542 (expand_symtabs_symbol_matcher_ftype)
13543 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
13545 (quick_symbol_functions::map_symtabs_matching_filename)
13546 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
13547 function_view as callback type and return bool.
13548 (expand_symtabs_matching): Adjust to use function_view as callback
13550 (maintenance_expand_name_matcher)
13551 (maintenance_expand_file_matcher): Delete.
13552 (maintenance_expand_symtabs): Use lambdas.
13553 * symtab.c (iterate_over_some_symtabs): Adjust to use
13554 function_view as callback types and return bool.
13555 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
13557 (lookup_symtab_callback): Delete.
13558 (lookup_symtab): Use a lambda.
13559 (iterate_over_symbols): Adjust to use function_view as callback
13561 (struct search_symbols_data, search_symbols_file_matches)
13562 (search_symbols_name_matches): Delete.
13563 (search_symbols): Use a pair of lambdas.
13564 (struct add_name_data, add_macro_name, symbol_completion_matcher)
13565 (symtab_expansion_callback): Delete.
13566 (default_make_symbol_completion_list_break_on_1): Use lambdas.
13567 * symtab.h: Include "common/function-view.h".
13568 (iterate_over_some_symtabs): Adjust to use function_view as
13569 callback type and return bool.
13570 (iterate_over_symtabs): Adjust to use function_view as callback
13572 (symbol_found_callback_ftype): Remove 'data' parameter and return
13574 (iterate_over_symbols): Adjust to use function_view as callback
13577 2017-02-23 Pedro Alves <palves@redhat.com>
13579 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
13580 (%.o) <unittests/%.c>: New pattern.
13581 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
13582 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
13583 * common/function-view.h: New file.
13584 * unittests/function-view-selftests.c: New file.
13585 * configure: Regenerate.
13587 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
13589 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
13591 * go32-nat.c (go32_thread_alive): Likewise.
13593 2017-02-23 Yao Qi <yao.qi@linaro.org>
13595 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
13598 2017-02-23 Yao Qi <yao.qi@linaro.org>
13600 * varobj.c (varobj_clear_saved_item): Use delete instead of
13602 (update_dynamic_varobj_children): Likewise.
13604 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13606 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
13608 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
13610 * common/enum-flags.h (enum_flags::enum_flags): Initialize
13611 m_enum_value to 0 in default constructor.
13613 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13615 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
13616 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
13617 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
13618 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
13619 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
13620 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
13621 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
13622 IS_STORE_CONDITIONAL_INSN.
13624 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13626 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
13628 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13630 * NEWS (Changes since GDB 7.12): Add DWARF-5.
13632 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13634 * dwarf2read.c (skip_one_die, read_attribute_value)
13635 (dwarf2_const_value_attr, dump_die_shallow)
13636 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
13637 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
13639 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13641 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
13642 (dwarf_parse_macro_header): Accept DWARF version 5.
13643 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
13645 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13647 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
13649 * common/common-exceptions.h (enum errors): Likewise.
13650 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
13651 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
13652 (dwarf_expr_context::execute_stack_op): Likewise.
13653 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
13655 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
13656 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13657 (show_entry_values_debug, call_site_to_target_addr)
13658 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
13659 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
13660 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
13661 (value_of_dwarf_block_entry, indirect_pieced_value)
13662 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
13663 (disassemble_dwarf_expression): Likewise.
13664 * dwarf2read.c (process_die, inherit_abstract_dies)
13665 (read_call_site_scope): Likewise.
13666 * gdbtypes.h (struct func_type, struct call_site_parameter)
13667 (struct call_site): Likewise.
13668 * stack.c (read_frame_arg): Likewise.
13669 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
13671 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13673 * defs.h (read_unsigned_leb128): New declaration.
13674 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
13675 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
13676 (dwarf2_find_location_expression): Call also
13677 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
13678 * dwarf2loc.h (dwarf2_version): New declaration.
13679 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
13681 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
13683 (struct dwop_section_names): Add loclists_dwo.
13684 (dwop_section_names): Add .debug_loclists.dwo.
13685 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
13686 (struct dwarf2_per_cu_data): Add dwarf_version.
13687 (struct dwo_sections): Add loclists.
13688 (struct attr_abbrev): Add implicit_const.
13689 (read_indirect_line_string): New declaration.
13690 (read_unsigned_leb128): Delete declaration.
13691 (rcuh_kind): New definition.
13692 (read_and_check_comp_unit_head): Change parameter
13693 is_debug_types_section to section_kind.
13694 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
13695 (read_comp_unit_head): Change parameter abfd to section, add parameter
13696 section_kind. Handle DWARF-5.
13697 (error_check_comp_unit_head): Accept also DWARF version 5.
13698 (read_and_check_comp_unit_head): Change parameter
13699 is_debug_types_section to section_kind.
13700 (read_and_check_type_unit_head): Delete function.
13701 (read_abbrev_offset): Handle DWARF-5.
13702 (create_debug_type_hash_table): Add parameter section_kind. Process
13703 only DW_UT_type. Use signature and type_offset_in_tu from struct
13705 (create_debug_types_hash_table): Update create_debug_type_hash_table
13707 (create_all_type_units): Call create_debug_type_hash_table.
13708 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
13709 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
13711 (skip_one_die): Handle DW_FORM_implicit_const.
13712 (dwarf2_rnglists_process): New function.
13713 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
13714 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
13715 (read_attribute_value): Handle DW_FORM_implicit_const,
13717 (read_attribute): Handle DW_FORM_implicit_const.
13718 (read_indirect_string_at_offset_from): New function from
13719 read_indirect_string_at_offset.
13720 (read_indirect_string_at_offset): Call
13721 read_indirect_string_at_offset_from.
13722 (read_indirect_line_string_at_offset): New function.
13723 (read_indirect_string): New function comment.
13724 (read_indirect_line_string): New function.
13725 (read_unsigned_leb128): Make it global.
13726 (dwarf2_string_attr): Handle DWARF-5.
13727 (add_include_dir_stub, read_formatted_entries): New functions.
13728 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
13730 (per_cu_header_read_in): Update read_comp_unit_head caller.
13731 (dwarf2_version): New function.
13732 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
13734 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
13737 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13739 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
13741 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13743 * dwarf2read.c (dwarf2_ranges_process): New function from
13744 dwarf2_ranges_read.
13745 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
13746 dwarf2_ranges_process.
13748 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13750 * dwarf2read.c (create_debug_type_hash_table): New function from
13751 create_debug_types_hash_table.
13752 (create_debug_types_hash_table): Call create_debug_type_hash_table.
13753 (create_all_type_units, open_and_init_dwo_file): Update
13754 create_debug_types_hash_table callers.
13756 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13759 * fork-child.c (trace_start_error): Fix thinko. va_end should
13760 refer to 'ap', not 'args'.
13762 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13763 Pedro Alves <palves@redhat.com>
13766 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
13768 * fork-child.c (trace_start_error): New function.
13769 (trace_start_error_with_name): Likewise.
13770 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
13771 * inf-ptrace.c (inf_ptrace_me): Likewise.
13772 * inferior.h (trace_start_error): New prototype.
13773 (trace_start_error_with_name): Likewise.
13775 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
13778 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
13779 NULL before using it.
13780 * symmisc.c (maintenance_print_symbols): Likewise.
13781 (maintenance_print_msymbols): Likewise.
13783 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13785 * NEWS: Add record Python bindings entry.
13787 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13789 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
13791 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
13792 * python/py-record-btrace.c, python/py-record-btrace.h,
13793 python/py-record-full.c, python/py-record-full.h: New file.
13794 * python/py-record.c: Add include for py-record-btrace.h and
13796 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
13797 recpy_instruction_history, recpy_function_call_history, recpy_begin,
13798 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
13799 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
13801 (gdbpy_initialize_btrace): New export.
13802 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
13804 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13806 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
13807 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
13808 * python/py-record.c: New file.
13809 * python/python-internal.h (gdbpy_start_recording,
13810 gdbpy_current_recording, gdpy_stop_recording,
13811 gdbpy_initialize_record): New export.
13812 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
13813 (python_GdbMethods): Add gdbpy_start_recording,
13814 gdbpy_current_recording and gdbpy_stop_recording.
13816 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13818 * record-btrace.c (record_btrace_record_method): New function.
13819 (init_record_btrace_ops): Initialize to_record_method.
13820 * record-full.c (record_full_record_method): New function.
13821 (init_record_full_ops, init_record_full_core_ops): Add
13822 record_full_record_method.
13823 * record.h (enum record_method): New enum.
13824 * target-debug.h (target_debug_print_enum_record_method: New define.
13825 * target-delegates.c: Regenerate.
13826 * target.c (target_record_method): New function.
13827 * target.h: Include record.h.
13828 (struct target_ops) <to_record_method>: New field.
13829 (target_record_method): New export.
13831 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13833 * record.h (record_start, record_stop): New export.
13834 * record.c (record_start, record_stop): New function.
13836 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13838 * btrace.c (btrace_fetch): Copy function call segments pointer
13840 (btrace_clear): Clear the vector.
13841 (btrace_find_insn_by_number): Use binary search to find the correct
13842 function call segment.
13843 * btrace.h (brace_fun_p): New typedef.
13844 (struct btrace_thread_info) <functions>: New field.
13846 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13848 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
13849 * btrace.c (btrace_decode_error): ... here. New function.
13850 * btrace.h (btrace_decode_error): New export.
13852 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13854 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
13855 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
13856 btrace_find_insn_by_number): Remove special case for gaps.
13857 * btrace.h (btrace_insn_get_error): New export.
13858 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
13859 * record-btrace.c (btrace_insn_history): Print number for gaps.
13860 (record_btrace_info, record_btrace_goto): Handle gaps.
13862 2017-02-14 Tom Tromey <tom@tromey.com>
13865 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
13867 * python/py-evts.c (gdbpy_initialize_py_events): Add
13868 before_prompt registry.
13869 * python/py-events.h (events_object) <before_prompt>: New field.
13871 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
13873 * btrace.c (ftrace_new_switch): Preserve up link and flags.
13875 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
13877 * symfile (_initialize_symfile): Add usage text to the load command's
13880 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
13882 * utils.c (defaulted_query): Don't query on secondary UIs.
13884 2017-02-10 Tom Tromey <tom@tromey.com>
13886 * rust-lang.c (rust_get_disr_info): Remove unused variable.
13888 2017-02-10 Tom Tromey <tom@tromey.com>
13890 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
13892 * python/py-type.c (typy_legacy_template_argument): Remove
13893 unnecessary "cleanup" local.
13895 2017-02-10 Tom Tromey <tom@tromey.com>
13897 * python/python.c (do_start_initialization): New function, from
13898 _initialize_python.
13899 (_initialize_python): Call do_start_initialization.
13900 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
13903 2017-02-10 Tom Tromey <tom@tromey.com>
13905 * python/py-prettyprint.c (pretty_print_one_value): Use
13908 2017-02-10 Tom Tromey <tom@tromey.com>
13910 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
13911 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
13913 * python/py-type.c (field_new): Use gdbpy_ref.
13914 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
13916 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
13917 (py_free_pspace): Likewise.
13918 (pspace_to_pspace_object): Likewise.
13919 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
13920 (py_free_objfile): Likewise.
13921 (objfile_to_objfile_object): Likewise.
13922 * python/py-inferior.c (delete_thread_object): Use
13924 (infpy_read_memory): Likewise.
13925 (py_free_inferior): Likewise.
13926 * python/py-evtregistry.c (create_eventregistry_object): Use
13928 * python/py-event.c (create_event_object): Use gdbpy_ref.
13930 2017-02-10 Tom Tromey <tom@tromey.com>
13932 * python/py-ref.h (gdbpy_ref_policy): Now a template.
13933 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
13935 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
13936 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
13937 python/py-exitedevent.c, python/py-finishbreakpoint.c,
13938 python/py-framefilter.c, python/py-function.c,
13939 python/py-inferior.c, python/py-infevents.c,
13940 python/py-linetable.c, python/py-newobjfileevent.c,
13941 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
13942 python/py-signalevent.c, python/py-stopevent.c,
13943 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
13944 python/py-unwind.c, python/py-utils.c, python/py-value.c,
13945 python/py-varobj.c, python/py-xmethods.c, python/python.c,
13946 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
13948 2017-02-10 Tom Tromey <tom@tromey.com>
13950 * ui-out.h (ui_out_emit_type): New class.
13951 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
13952 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
13953 and ui_out_emit_tuple.
13954 (enumerate_locals): Likewise.
13955 (py_mi_print_variables, py_print_locals, py_print_args): Use
13957 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
13959 * common/gdb_optional.h: New file.
13961 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
13963 * MAINTAINERS (Write After Approval): Update my e-mail address.
13965 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
13968 * breakpoint.c (_initialize_breakpoint): Update the help description
13969 of the 'commands' command to indicate that it takes a list argument.
13971 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
13973 * interps.c (current_interp_set_logging): Remove "return".
13975 2017-02-09 Gary Benson <gbenson@redhat.com>
13977 * symtab.c (add_symtab_completions): Prevent NULL pointer
13980 2017-02-08 Pedro Alves <palves@redhat.com>
13982 * interps.c (interp::interp): Remove reference to quiet_p.
13983 (interp_set): Make static. Remove dead "Switching to" output
13985 (interp_quiet_p, interp_set_quiet): Delete.
13986 (interpreter_exec_cmd): Don't set the interpreter quiet.
13987 * interps.h (interp_quiet_p): Make static.
13988 (class interp) <quiet_p>: Remove field
13990 2017-02-08 Jerome Guitton <guitton@adacore.com>
13992 * cli/cli-decode.c (find_command_name_length): Make it extern.
13993 * cli/cli-decode.h (find_command_name_length): Declare.
13994 * cli/cli-script.c (command_name_equals, line_first_arg):
13996 (process_next_line): Use cli-decode to parse command names.
13997 (build_command_line): Make args a constant pointer.
13999 2017-02-08 Jerome Guitton <guitton@adacore.com>
14001 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
14002 Remove case-insensitive search.
14004 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
14006 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
14007 at the end of the line. Avoids an ARI warning.
14009 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
14011 * NEWS: Mention support for record/replay of Intel 64 rdrand and
14012 rdseed instructions.
14013 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
14015 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
14018 Provide and use sparc32 and sparc64 target description XML files.
14019 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
14020 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
14021 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
14022 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
14023 * features/sparc/sparc32-solaris.xml: New file.
14024 * features/sparc/sparc64-solaris.xml: New file.
14025 * features/sparc/sparc32-solaris.c: Generated.
14026 * features/sparc/sparc64-solaris.c: Generated.
14027 * sparc-tdep.h: Account for differences in target descriptions.
14028 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
14029 (sparc32_register_type): Use target provided registers.
14030 (validate_tdesc_registers): New function.
14031 (sparc32_gdbarch_init): Use tdesc_has_registers.
14032 Set pseudoregister functions.
14033 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
14034 (sparc64_register_type): Use target provided registers.
14035 (sparc64_init_abi): Set pseudoregister functions.
14037 2017-02-03 Tom Tromey <tom@tromey.com>
14040 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
14041 with a single member.
14043 2017-02-03 Pedro Alves <palves@redhat.com>
14045 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
14046 (cli_interp_base::~cli_interp_base): New.
14047 (cli_interp): New struct.
14048 (as_cli_interp): Cast the interp itself to cli_interp.
14049 (cli_interpreter_pre_command_loop): Rename to ...
14050 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
14052 (cli_interpreter_init): Rename to ...
14053 (cli_interp::init): ... this. Remove 'self' parameter. Use
14054 boolean. Make extern.
14055 (cli_interpreter_resume): Rename to ...
14056 (cli_interp::resume): ... this. Remove 'data' parameter. Make
14058 (cli_interpreter_suspend): Rename to ...
14059 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
14061 (cli_interpreter_exec): Rename to ...
14062 (cli_interp::exec): ... this. Remove 'data' parameter. Make
14064 (cli_interpreter_supports_command_editing): Rename to ...
14065 (cli_interp_base::supports_command_editing): ... this. Remove
14066 'interp' parameter. Make extern.
14067 (cli_ui_out): Rename to ...
14068 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
14070 (cli_set_logging): Rename to ...
14071 (cli_interp_base::set_logging): ... this. Remove 'interp'
14072 parameter. Make extern.
14073 (cli_interp_procs): Delete.
14074 (cli_interp_factory): Adjust to use "new".
14075 * cli/cli-interp.h: Include "interps.h".
14076 (struct cli_interp_base): New struct.
14077 * interps.c (struct interp): Delete. Fields moved to interps.h.
14078 (interp_new): Delete.
14079 (interp::interp, interp::~interp): New.
14080 (interp_set): Use bool, and return void. Assume the interpreter
14081 has suspend, init and resume methods, and that the all return
14083 (set_top_level_interpreter): interp_set returns void.
14084 (interp_ui_out): Adapt.
14085 (current_interp_set_logging): Adapt.
14086 (interp_data): Delete.
14087 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
14088 (interp_exec): Adapt.
14089 (top_level_interpreter_data): Delete.
14090 * interps.h (interp_init_ftype, interp_resume_ftype)
14091 (interp_suspend_ftype, interp_exec_ftype)
14092 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
14093 (class interp): New.
14094 (interp_new): Delete.
14095 (interp_set): Now returns void. Use bool.
14096 (interp_data, top_level_interpreter_data): Delete.
14097 * mi/mi-common.h: Include interps.h.
14098 (class mi_interp): Inherit from interp. Define a ctor. Declare
14099 init, resume, suspect, exec, interp_ui_out, set_logging and
14100 pre_command_loop methods.
14101 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
14102 (mi_interpreter_init): Rename to ...
14103 (mi_interp::init): ... this. Remove the 'interp' parameter, use
14104 bool, return void and make extern. Adjust.
14105 (mi_interpreter_resume): ... Rename to ...
14106 (mi_interp::resume): ... this. Remove the 'data' parameter,
14107 return void and make extern. Adjust.
14108 (mi_interpreter_suspend): ... Rename to ...
14109 (mi_interp::suspend): ... this. Remove the 'data' parameter,
14110 return void and make extern. Adjust.
14111 (mi_interpreter_exec): ... Rename to ...
14112 (mi_interp::exec): ... this. Remove the 'data' parameter and make
14114 (mi_interpreter_pre_command_loop): ... Rename to ...
14115 (mi_interp::pre_command_loop): ... this. Remove the 'self'
14116 parameter and make extern.
14117 (mi_on_normal_stop_1): Adjust.
14118 (mi_ui_out): Rename to ...
14119 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
14120 parameter and make extern. Adjust.
14121 (mi_set_logging): Rename to ...
14122 (mi_interp::set_logging): ... this. Remove the 'interp'
14123 parameter and make extern. Adjust.
14124 (mi_interp_procs): Delete.
14125 (mi_interp_factory): Adjust to use 'new'.
14126 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
14127 (mi_print_exception, mi_execute_command, mi_load_progress):
14129 * tui/tui-interp.c (tui_interp): New class.
14130 (as_tui_interp): Return a tui_interp pointer.
14131 (tui_on_normal_stop, tui_on_signal_received)
14132 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
14133 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
14134 to use interp::interp_ui_out.
14135 (tui_init): Rename to ...
14136 (tui_interp::init): ... this. Remove the 'self' parameter, use
14137 bool, return void and make extern. Adjust.
14138 (tui_resume): Rename to ...
14139 (tui_interp::resume): ... this. Remove the 'data' parameter,
14140 return void and make extern. Adjust.
14141 (tui_suspend): Rename to ...
14142 (tui_interp::suspend): ... this. Remove the 'data' parameter,
14143 return void and make extern. Adjust.
14144 (tui_ui_out): Rename to ...
14145 (tui_interp::interp_ui_out): ... this. Remove the 'self'
14146 parameter, and make extern. Adjust.
14147 (tui_exec): Rename to ...
14148 (tui_interp::exec): ... this. Remove the 'data' parameter and
14150 (tui_interp_procs): Delete.
14151 (tui_interp_factory): Use "new".
14153 2017-02-02 Tom Tromey <tom@tromey.com>
14155 * rust-exp.y (ends_raw_string, space_then_number)
14156 (rust_identifier_start_p): Return bool.
14157 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
14158 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
14159 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
14160 (rust_chartype_p): Return bool.
14161 (val_print_struct, rust_print_struct_def, rust_print_type):
14163 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
14166 2017-02-02 Tom Tromey <tom@tromey.com>
14168 * rust-lang.c: Reindent.
14170 2017-02-02 Tom Tromey <tom@tromey.com>
14172 * rust-lang.h (rust_crate_for_block): Update.
14173 * rust-lang.c (rust_crate_for_block): Return std::string.
14174 (rust_get_disr_info): Use std:;string, not
14175 gdb::unique_xmalloc_ptr.
14176 * rust-exp.y (crate_name): Update.
14178 2017-02-02 Pedro Alves <palves@redhat.com>
14180 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
14181 field out of gdb_disassembler_test and make it static.
14183 2017-02-02 Pedro Alves <palves@redhat.com>
14185 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
14186 mi1_interp and mi_interp fields.
14188 2017-02-02 Pedro Alves <palves@redhat.com>
14190 * cli/cli-interp.c (struct saved_output_files, saved_output):
14191 Moved from cli/cli-logging.c.
14192 (cli_set_logging): New function.
14193 (cli_interp_procs): Install cli_set_logging.
14194 * cli/cli-interp.h (make_logging_output, cli_set_logging):
14196 * cli/cli-logging.c (struct saved_output_files, saved_output):
14197 Moved to cli/cli-interp.c.
14198 (pop_output_files): Don't save outputs here.
14199 (make_logging_output): New function.
14200 (handle_redirections): Don't build tee nor save previous outputs
14202 * interps.c (current_interp_set_logging): Change prototype.
14203 Assume there's always a set_logging_proc method installed.
14204 * interps.h (interp_set_logging_ftype): Change prototype.
14205 (current_interp_set_logging): Change prototype and adjust comment.
14206 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
14207 use make_logging_output.
14208 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
14209 2017-02-02 Pedro Alves <palves@redhat.com>
14211 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
14213 (set_logging_overwrite): ... here.
14214 (logging_no_redirect_file): Delete.
14215 (set_logging_redirect): Don't handle redirection on the fly.
14216 Instead warn that "logging off" / "logging on" is necessary.
14217 (pop_output_files): Delete references to logging_no_redirect_file.
14218 (show_logging_command): Always speak in terms of what will happen
14219 once logging is reenabled.
14221 2017-02-02 Pedro Alves <palves@redhat.com>
14223 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
14225 2017-02-02 Pedro Alves <palves@redhat.com>
14227 * disasm.c (gdb_pretty_print_insn): Rename to ...
14228 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
14229 Remove gdbarch parameter. Adapt to clear the object's buffers
14230 instead of allocating new buffers, and to print using the object's
14231 gdb_disassembler instead of calling gdb_print_insn.
14232 (dump_insns): Use gdb_pretty_print_disassembler.
14233 * disasm.h (gdb_pretty_print_insn): Delete declaration.
14234 (gdb_pretty_print_disassembler): New class.
14235 * record-btrace.c (btrace_insn_history): Use
14236 gdb_pretty_print_disassembler.
14238 2017-02-02 Pedro Alves <palves@redhat.com>
14240 * ada-lang.c (type_as_string): Use string_file.
14241 * ada-valprint.c (ada_print_floating): Use string_file.
14242 * ada-varobj.c (ada_varobj_scalar_image)
14243 (ada_varobj_get_value_image): Use string_file.
14244 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
14245 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
14246 * breakpoint.c (update_inserted_breakpoint_locations)
14247 (insert_breakpoint_locations, reattach_breakpoints)
14248 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
14249 (print_it_watchpoint): Use string_file.
14250 (save_breakpoints): Use stdio_file.
14251 * c-exp.y (oper): Use string_file.
14252 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
14254 (pop_output_files): Use delete.
14255 (handle_redirections): Use stdio_file and tee_file.
14256 * cli/cli-setshow.c (do_show_command): Use string_file.
14257 * compile/compile-c-support.c (c_compute_program): Use
14259 * compile/compile-c-symbols.c (generate_vla_size): Take a
14260 'string_file &' instead of a 'ui_file *'.
14261 (generate_c_for_for_one_variable): Take a 'string_file &' instead
14262 of a 'ui_file *'. Use string_file.
14263 (generate_c_for_variable_locations): Take a 'string_file &'
14264 instead of a 'ui_file *'.
14265 * compile/compile-internal.h (generate_c_for_for_one_variable):
14266 Take a 'string_file &' instead of a 'ui_file *'.
14267 * compile/compile-loc2c.c (push, pushf, unary, binary)
14268 (print_label, pushf_register_address, pushf_register)
14269 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
14270 'ui_file *'. Adjust.
14271 * compile/compile.c (compile_to_object): Use string_file.
14272 * compile/compile.h (compile_dwarf_expr_to_c)
14273 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
14275 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
14276 (replace_typedefs_qualified_name): Use string_file and
14278 * disasm.c (gdb_pretty_print_insn): Use string_file.
14279 (gdb_disassembly): Adjust reference the null_stream global.
14280 (do_ui_file_delete): Delete.
14281 (gdb_insn_length): Use null_stream.
14282 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
14283 * dwarf2loc.c (dwarf2_compile_property_to_c)
14284 (locexpr_generate_c_location, loclist_generate_c_location): Take a
14285 'string_file &' instead of a 'ui_file *'.
14286 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
14287 * dwarf2read.c (do_ui_file_peek_last): Delete.
14288 (dwarf2_compute_name): Use string_file.
14289 * event-top.c (gdb_setup_readline): Use stdio_file.
14290 * gdbarch.sh (verify_gdbarch): Use string_file.
14291 * gdbtypes.c (safe_parse_type): Use null_stream.
14292 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
14294 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
14295 'string_file *' instead of a 'ui_file *'.
14296 (gdbscm_arch_disassemble): Use string_file.
14297 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
14298 * guile/scm-ports.c (class ioscm_file_port): Now a class that
14299 inherits from ui_file.
14300 (ioscm_file_port_delete, ioscm_file_port_rewind)
14301 (ioscm_file_port_put): Delete.
14302 (ioscm_file_port_write): Rename to ...
14303 (ioscm_file_port::write): ... this. Remove file_port_magic
14305 (ioscm_file_port_new): Delete.
14306 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
14308 * guile/scm-type.c (tyscm_type_name): Use string_file.
14309 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
14311 * infcmd.c (print_return_value_1): Use string_file.
14312 * infrun.c (print_target_wait_results): Use string_file.
14313 * language.c (add_language): Use string_file.
14314 * location.c (explicit_to_string_internal): Use string_file.
14315 * main.c (captured_main_1): Use null_file.
14316 * maint.c (maintenance_print_architecture): Use stdio_file.
14317 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
14318 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
14319 event_channel>: Change type to mi_console_file pointer.
14320 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
14321 (mi_console_file_delete): Delete.
14322 (struct mi_console_file): Delete.
14323 (mi_console_file_magic): Delete.
14324 (mi_console_file_new): Delete.
14325 (mi_console_file::mi_console_file): New.
14326 (mi_console_file_delete): Delete.
14327 (mi_console_file_fputs): Delete.
14328 (mi_console_file::write): New.
14329 (mi_console_raw_packet): Delete.
14330 (mi_console_file::flush): New.
14331 (mi_console_file_flush): Delete.
14332 (mi_console_set_raw): Rename to ...
14333 (mi_console_file::set_raw): ... this.
14334 * mi/mi-console.h (class mi_console_file): New class.
14335 (mi_console_file_new, mi_console_set_raw): Delete.
14336 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
14337 (mi_set_logging): Use delete and tee_file. Adjust.
14338 * mi/mi-main.c (output_register): Use string_file.
14339 (mi_cmd_data_evaluate_expression): Use string_file.
14340 (mi_cmd_data_read_memory): Use string_file.
14341 (mi_cmd_execute, print_variable_or_computed): Use string_file.
14342 * mi/mi-out.c (mi_ui_out::main_stream): New.
14343 (mi_ui_out::rewind): Use main_stream and
14345 (mi_ui_out::put): Use main_stream and string_file.
14346 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
14347 Allocate a 'string_file' instead.
14348 (mi_out_new): Don't allocate a mem_fileopen stream here.
14349 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
14350 (mi_ui_out::main_stream): Declare method.
14351 * printcmd.c (eval_command): Use string_file.
14352 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
14353 * python/py-arch.c (archpy_disassemble): Use string_file.
14354 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
14355 * python/py-frame.c (frapy_str): Use string_file.
14356 * python/py-framefilter.c (py_print_type, py_print_single_arg):
14358 * python/py-type.c (typy_str): Use string_file.
14359 * python/py-unwind.c (unwind_infopy_str): Use string_file.
14360 * python/py-value.c (valpy_str): Use string_file.
14361 * record-btrace.c (btrace_insn_history): Use string_file.
14362 * regcache.c (regcache_print): Use stdio_file.
14363 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
14364 * remote.c (escape_buffer): Use string_file.
14365 * rust-lang.c (rust_get_disr_info): Use string_file.
14366 * serial.c (serial_open_ops_1): Use stdio_file.
14367 (do_serial_close): Use delete.
14368 * stack.c (print_frame_arg): Use string_file.
14369 (print_frame_args): Remove local mem_fileopen stream, not used.
14370 (print_frame): Use string_file.
14371 * symmisc.c (maintenance_print_symbols): Use stdio_file.
14372 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
14373 Take a 'string_file *' instead of a 'ui_file *'.
14374 * top.c (new_ui): Use stdio_file and stderr_file.
14375 (free_ui): Use delete.
14376 (execute_command_to_string): Use string_file.
14377 (quit_confirm): Use string_file.
14378 * tracepoint.c (collection_list::append_exp): Use string_file.
14379 * tui/tui-disasm.c (tui_disassemble): Use string_file.
14380 * tui/tui-file.c: Don't include "ui-file.h".
14381 (enum streamtype, struct tui_stream): Delete.
14382 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
14383 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
14384 (tui_file::tui_file): New method.
14385 (tui_file_fputs): Delete.
14386 (tui_file_get_strbuf): Delete.
14387 (tui_file::puts): New method.
14388 (tui_file_adjust_strbuf): Delete.
14389 (tui_file_flush): Delete.
14390 (tui_file::flush): New method.
14391 * tui/tui-file.h: Tweak intro comment.
14393 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
14394 (tui_file_adjust_strbuf): Delete declarations.
14395 (class tui_file): New class.
14396 * tui/tui-io.c (tui_initialize_io): Use tui_file.
14397 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
14398 (tui_register_format): Use string_stream.
14399 * tui/tui-stack.c (tui_make_status_line): Use string_file.
14400 (tui_get_function_from_frame): Use string_file.
14401 * typeprint.c (type_to_string): Use string_file.
14402 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
14403 (null_stream): New global.
14404 (ui_file_delete): Delete.
14405 (ui_file::ui_file): New.
14406 (null_file_isatty): Delete.
14407 (ui_file::~ui_file): New.
14408 (null_file_rewind): Delete.
14409 (ui_file::printf): New.
14410 (null_file_put): Delete.
14411 (null_file_flush): Delete.
14412 (ui_file::putstr): New.
14413 (null_file_write): Delete.
14414 (ui_file::putstrn): New.
14415 (null_file_read): Delete.
14416 (ui_file::putc): New.
14417 (null_file_fputs): Delete.
14418 (null_file_write_async_safe): Delete.
14419 (ui_file::vprintf): New.
14420 (null_file_delete): Delete.
14421 (null_file::write): New.
14422 (null_file_fseek): Delete.
14423 (null_file::puts): New.
14424 (ui_file_data): Delete.
14425 (null_file::write_async_safe): New.
14426 (gdb_flush, ui_file_isatty): Adjust.
14427 (ui_file_put, ui_file_rewind): Delete.
14428 (ui_file_write): Adjust.
14429 (ui_file_write_for_put): Delete.
14430 (ui_file_write_async_safe, ui_file_read): Adjust.
14431 (ui_file_fseek): Delete.
14432 (fputs_unfiltered): Adjust.
14433 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
14434 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
14435 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
14436 (set_ui_file_data): Delete.
14437 (string_file::~string_file, string_file::write)
14438 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
14439 (do_ui_file_as_string, ui_file_as_string): Delete.
14440 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
14441 (struct mem_file): Delete.
14442 (mem_file_new): Delete.
14443 (stdio_file::stdio_file): New.
14444 (mem_file_delete): Delete.
14445 (stdio_file::stdio_file): New.
14446 (mem_fileopen): Delete.
14447 (stdio_file::~stdio_file): New.
14448 (mem_file_rewind): Delete.
14449 (stdio_file::set_stream): New.
14450 (mem_file_put): Delete.
14451 (stdio_file::open): New.
14452 (mem_file_write): Delete.
14453 (stdio_file_magic, struct stdio_file): Delete.
14454 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
14455 (stdio_file::flush): New.
14456 (stdio_file_read): Rename to ...
14457 (stdio_file::read): ... this. Adjust.
14458 (stdio_file_write): Rename to ...
14459 (stdio_file::write): ... this. Adjust.
14460 (stdio_file_write_async_safe): Rename to ...
14461 (stdio_file::write_async_safe) ... this. Adjust.
14462 (stdio_file_fputs): Rename to ...
14463 (stdio_file::puts) ... this. Adjust.
14464 (stdio_file_isatty): Delete.
14465 (stdio_file_fseek): Delete.
14466 (stdio_file::isatty): New.
14467 (stderr_file_write): Rename to ...
14468 (stderr_file::write) ... this. Adjust.
14469 (stderr_file_fputs): Rename to ...
14470 (stderr_file::puts) ... this. Adjust.
14471 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
14472 (stderr_file::stderr_file): New.
14473 (tee_file_magic): Delete.
14474 (struct tee_file): Delete.
14475 (tee_file::tee_file): New.
14476 (tee_file_new): Delete.
14477 (tee_file::~tee_file): New.
14478 (tee_file_delete): Delete.
14479 (tee_file_flush): Rename to ...
14480 (tee_file::flush): ... this. Adjust.
14481 (tee_file_write): Rename to ...
14482 (tee_file::write): ... this. Adjust.
14483 (tee_file::write_async_safe): New.
14484 (tee_file_fputs): Rename to ...
14485 (tee_file::puts): ... this. Adjust.
14486 (tee_file_isatty): Rename to ...
14487 (tee_file::isatty): ... this. Adjust.
14488 * ui-file.h (struct obstack, struct ui_file): Don't
14490 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
14491 (ui_file_write_ftype)
14492 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
14493 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
14494 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
14495 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
14496 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
14497 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
14498 (set_ui_file_fseek): Delete.
14499 (ui_file_data, ui_file_delete, ui_file_rewind)
14500 (struct ui_file): New.
14502 (class null_file): New.
14503 (null_stream): Declare.
14504 (ui_file_write_for_put, ui_file_put): Delete.
14505 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
14507 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
14508 (gdb_fopen, tee_file_new): Delete.
14509 (struct string_file): New.
14510 (struct stdio_file): New.
14511 (stdio_file_up): New.
14512 (struct stderr_file): New.
14513 (class tee_file): New.
14514 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
14515 of a 'ui_file *'. Adjust.
14516 * ui-out.h (class ui_out) <field_stream>: Likewise.
14517 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
14518 (null_stream): Delete.
14519 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
14521 * utils.h (struct ui_file): Delete forward declaration..
14522 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
14523 (error_stream): Take a 'string_file &' instead of a
14525 * varobj.c (varobj_value_get_print_value): Use string_file.
14526 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
14527 * gdbarch.c: Regenerate.
14529 2017-02-02 Pedro Alves <palves@redhat.com>
14531 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
14532 (gdb_pretty_print_insn): ... this. Now a free function. Add back
14533 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
14534 Adjust to call gdb_print_insn instead of
14535 gdb_disassembler::print_insn.
14536 (dump_insns, do_mixed_source_and_assembly_deprecated)
14537 (do_mixed_source_and_assembly, do_assembly_only): Add back a
14538 'gdbarch' parameter. Remove gdb_disassembler parameter.
14539 (gdb_disassembly): Don't allocate a gdb_disassembler here.
14540 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
14542 (gdb_pretty_print_insn): Re-add declaration.
14543 * record-btrace.c (btrace_insn_history): Don't allocate a
14544 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
14546 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
14548 * disasm.h (gdb_disassembly): Remove file_string parameter.
14549 * disasm.c (gdb_disassembly): Likewise.
14550 * cli/cli-cmds.c (print_disassembly): Adapt.
14551 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
14552 * stack.c (do_gdb_disassembly): Likewise.
14554 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
14556 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
14557 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
14558 targets. And if the implicit value is longer than needed, extract
14559 the first bytes instead of the "least significant" ones.
14561 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14563 * btrace.c (btrace_enable): Do not call btrace_add_pc for
14564 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
14565 (btrace_fetch): Assert can_access_registers_ptid.
14566 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
14567 validate_registers_access.
14569 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14571 * gdbthread.h (can_access_registers_ptid): New.
14572 * thread.c (can_access_registers_ptid): New.
14574 2017-02-01 Pedro Alves <palves@redhat.com>
14576 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
14578 2017-01-31 Pedro Alves <palves@redhat.com>
14580 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
14583 2017-01-31 Pedro Alves <palves@redhat.com>
14585 * stack.c (print_frame_args): Remove local mem_fileopen stream,
14588 2017-01-31 Pedro Alves <palves@redhat.com>
14590 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
14592 2017-01-31 Pedro Alves <palves@redhat.com>
14594 * common/scoped_restore.h
14595 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
14596 change the value's parameter type to T2.
14597 (make_scoped_restore): Likewise.
14599 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14600 Richard Henderson <rth@redhat.com>
14602 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
14603 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
14604 GS_BASE for older kernels.
14605 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
14606 GS_BASE for older kernels.
14607 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
14608 and GS_BASE to the offset table.
14609 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
14610 system register group.
14611 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
14613 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
14615 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
14616 AMD64_GSBASE_REGNUM.
14617 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
14618 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
14619 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
14620 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
14621 i386/64bit-segments.xml in those rules.
14622 * features/i386/64bit-segments.xml: New file.
14623 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
14624 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
14625 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
14626 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
14627 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
14628 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
14629 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
14630 * features/i386/amd64-avx-linux.c: Regenerated.
14631 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
14632 * features/i386/amd64-avx-mpx.c: Regenerated.
14633 * features/i386/amd64-avx512-linux.c: Regenerated.
14634 * features/i386/amd64-linux.c: Regenerated.
14635 * features/i386/amd64-mpx-linux.c: Regenerated.
14636 * features/i386/i386-avx-mpx-linux.c: Regenerated.
14637 * features/i386/i386-avx-mpx.c: Regenerated.
14638 * features/i386/x32-avx-linux.c: Regenerated.
14639 * features/i386/x32-avx512-linux.c: Regenerated.
14640 * regformats/i386/amd64-avx-linux.dat: Regenerated.
14641 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
14642 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
14643 * regformats/i386/amd64-linux.dat: Regenerated.
14644 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
14645 * regformats/i386/x32-avx-linux.dat: Regenerated.
14646 * regformats/i386/x32-avx512-linux.dat: Regenerated.
14647 * regformats/i386/x32-linux.dat: Regenerated.
14649 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14651 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
14652 Set to AMD64_NUM_REGS.
14654 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14656 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
14657 that checks validity of a register number.
14659 2017-01-27 Kees Cook <keescook@google.com>
14661 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
14662 fetch_fpregs if target has fpa registers.
14663 (arm_linux_store_inferior_registers): Call store_fpregs if target
14666 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
14668 * cris-tdep.c (cris_gdbarch_init): Remove check for
14669 info.byte_order and force it to BFD_ENDIAN_LITTLE.
14671 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
14673 * corelow.c (get_core_register_section): Check for regset
14674 existence before checking for REGSET_VARIABLE_SIZE.
14676 2017-01-26 Yao Qi <yao.qi@linaro.org>
14677 Pedro Alves <palves@redhat.com>
14680 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
14681 call memory_error, save memaddr instead.
14682 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
14683 negative, cal memory_error.
14684 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
14686 2017-01-26 Yao Qi <yao.qi@linaro.org>
14688 * disasm-selftests.c (memory_error_test): New function.
14689 (_initialize_disasm_selftests): Register memory_error_test.
14691 2017-01-26 Yao Qi <yao.qi@linaro.org>
14693 * Makefile.in (SFILES): Add disasm-selftests.c and
14695 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
14696 * disasm-selftests.c: New file.
14697 * selftest-arch.c: New file.
14698 * selftest-arch.h: New file.
14700 2017-01-26 Yao Qi <yao.qi@linaro.org>
14702 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
14703 to bfd_arch_mep. Don't return 0 if section is not
14704 found. Call print_insn_mep.
14706 2017-01-26 Pedro Alves <palves@redhat.com>
14707 Yao Qi <yao.qi@linaro.org>
14709 * arm-tdep.c: Include "disasm.h".
14710 (gdb_print_insn_arm): Update code to get gdbarch.
14711 * disasm.c (dis_asm_read_memory): Change it to
14712 gdb_disassembler::dis_asm_read_memory.
14713 (dis_asm_memory_error): Likewise.
14714 (dis_asm_print_address): Likewise.
14715 (gdb_pretty_print_insn): Change it to
14716 gdb_disassembler::pretty_print_insn.
14717 (dump_insns): Add one argument gdb_disassemlber. All
14719 (do_mixed_source_and_assembly_deprecated): Likewise.
14720 (do_mixed_source_and_assembly): Likewise.
14721 (do_assembly_only): Likewise.
14722 (gdb_disassembler::gdb_disassembler): New.
14723 (gdb_disassembler::print_insn): New.
14724 * disasm.h (class gdb_disassembler): New.
14725 (gdb_pretty_print_insn): Remove declaration.
14726 (gdb_disassemble_info): Likewise.
14727 * guile/scm-disasm.c (class gdbscm_disassembler): New.
14728 (gdbscm_disasm_read_memory_worker): Update.
14729 (gdbscm_disasm_read_memory): Update.
14730 (gdbscm_disasm_memory_error): Remove.
14731 (gdbscm_disasm_print_address): Remove.
14732 (gdbscm_disassembler::gdbscm_disassembler): New.
14733 (gdbscm_print_insn_from_port): Update.
14734 * mips-tdep.c: Include disasm.h.
14735 (gdb_print_insn_mips): Update code to get gdbarch.
14736 * record-btrace.c (btrace_insn_history): Update.
14737 * spu-tdep.c: Include disasm.h.
14738 (struct spu_dis_asm_data): Remove.
14739 (struct spu_dis_asm_info): New.
14740 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
14742 (gdb_print_insn_spu): Cast disassemble_info to
14745 2017-01-26 Yao Qi <yao.qi@linaro.org>
14747 * disasm.c (do_ui_file_delete): Delete.
14748 (gdb_insn_length): Move code creating stream to ...
14749 * utils.c (null_stream): ... here. New function.
14750 * utils.h (null_stream): Declare.
14752 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14754 * python/py-inferior.c (find_thread_object): Return directly
14755 from the loop. Remove "found" variable.
14757 2017-01-21 Joel Brobecker <brobecker@adacore.com>
14759 GDB 7.12.1 released.
14761 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14763 * python/py-function.c (fnpy_call): Reorder declarations to have
14764 the gdbpy_enter object declared first.
14765 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
14767 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14770 * python/python-internal.h (PyMem_RawMalloc): Define for
14772 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
14773 PyMem_RawMalloc instead of PyMem_Malloc.
14775 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
14776 Luis Machado <lgustavo@codesourcery.com>
14778 * NEWS (New commands): Mention flash-erase.
14779 (New MI commands): Mention target-flash-erase.
14780 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
14782 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
14783 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
14784 * target.c (flash_erase_command): New function.
14785 (initialize_targets): Add new flash-erase command.
14786 * target.h (flash_erase_command): New declaration.
14788 2017-01-20 Joel Brobecker <brobecker@adacore.com>
14790 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
14791 HAVE_SYS_PROCFS_H is defined.
14793 2017-01-18 Alan Hayward <alan.hayward@arm.com>
14795 * remote.c (struct cached_reg): Change data into a pointer.
14796 * (stop_reply_dtr): Free data pointers before deleting vector.
14797 (process_stop_reply): Likewise.
14798 (remote_parse_stop_reply): Allocate space for data
14800 2017-01-18 Alan Hayward <alan.hayward@arm.com>
14802 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
14804 (amd64_pseudo_register_read_value): Likewise.
14805 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
14806 (store_register_using_P): Likewise.
14807 * regcache.c (regcache_xfer_part): Likewise.
14809 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
14811 Split real and pseudo registers.
14812 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
14813 (sparc32_pseudo_regnum): New enum.
14814 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
14815 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
14816 (SPARC32_CP0_REGISTERS): New macro.
14817 (sparc32_pseudo_register_name): New function.
14818 (sparc32_register_name): Use sparc32_pseudo_register_name.
14819 (sparc32_pseudo_register_type): New function.
14820 (sparc32_register_type): Use sparc32_pseudo_register_type.
14821 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
14822 pseudo register numbers.
14823 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
14824 (SPARC64_CP0_REGISTERS): New macro.
14825 (sparc64_pseudo_register_name): New function.
14826 (sparc64_register_name): Use sparc64_pseudo_register_name.
14827 (sparc64_pseudo_register_type): New function.
14828 (sparc64_register_type): Use sparc64_pseudo_register_type.
14829 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
14830 pseudo register numbers.
14831 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
14832 sparc64_store_arguments): Handle pseudo register numbers.
14834 2017-01-13 Yao Qi <yao.qi@linaro.org>
14836 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
14837 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
14839 (getpkt_or_notif_sane_1): Likewise.
14841 2017-01-13 Yao Qi <yao.qi@linaro.org>
14843 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
14844 of CC. Pass "-x c++-header" instead of "-x c".
14846 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14848 * remote.c (remote_can_async_p): Update comment.
14850 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14852 * linux-nat.c (linux_nat_can_async_p): Update comment.
14854 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14856 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
14858 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
14860 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
14862 2017-01-10 Tom Tromey <tom@tromey.com>
14864 * python/py-type.c (typy_legacy_template_argument): Update.
14865 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
14866 ~demangle_parse_info): Declare new members.
14867 (cp_demangled_name_to_comp): Return unique_ptr.
14868 (cp_demangled_name_parse_free)
14869 (make_cleanup_cp_demangled_name_parse_free)
14870 (cp_new_demangle_parse_info): Remove.
14871 * cp-support.c (do_demangled_name_parse_free_cleanup)
14872 (make_cleanup_cp_demangled_name_parse_free): Remove.
14873 (inspect_type, cp_canonicalize_string_full)
14874 (cp_canonicalize_string): Update.
14875 (mangled_name_to_comp): Change return type.
14876 (cp_class_name_from_physname, method_name_from_physname)
14877 (cp_func_name, cp_remove_params): Update.
14878 * cp-name-parser.y (demangle_parse_info): New constructor, from
14879 cp_new_demangle_parse_info.
14880 (~demangle_parse_info): New destructor, from
14881 cp_demangled_name_parse_free.
14882 (cp_merge_demangle_parse_infos): Update.
14883 (cp_demangled_name_to_comp): Change return type.
14885 2017-01-10 Tom Tromey <tom@tromey.com>
14887 * top.c (prevent_dont_repeat): Change return type.
14888 * python/python.c (execute_gdb_command): Use std::string.
14890 * guile/guile.c (gdbscm_execute_gdb_command): Update.
14891 * command.h (prevent_dont_repeat): Change return type.
14892 * breakpoint.c (bpstat_do_actions_1): Update.
14894 2017-01-10 Tom Tromey <tom@tromey.com>
14896 * value.h (scoped_value_mark::~scoped_value_mark): Call
14898 (scoped_value_mark::free_to_mark): New method.
14899 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
14902 2017-01-10 Tom Tromey <tom@tromey.com>
14904 * python/py-value.c (valpy_dereference, valpy_referenced_value)
14905 (valpy_reference_value, valpy_const_value, valpy_get_address)
14906 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
14907 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
14908 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
14909 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
14911 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
14912 * value.h (scoped_value_mark): New class.
14914 2017-01-10 Tom Tromey <tom@tromey.com>
14916 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
14917 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
14918 * psymtab.c (discard_psymtabs_upto): Remove.
14919 (make_cleanup_discard_psymtabs): Remove.
14920 (struct psymtab_state): Remove.
14922 2017-01-10 Tom Tromey <tom@tromey.com>
14924 * record-full.c (record_full_save_cleanups): Remove.
14925 (record_full_save): Use gdb::unlinker.
14926 * gcore.c (do_bfd_delete_cleanup): Remove.
14927 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
14929 * dwarf2read.c (unlink_if_set): Remove.
14930 (write_psymtabs_to_index): Use gdb::unlinker.
14931 * common/gdb_unlinker.h: New file.
14933 2017-01-10 Tom Tromey <tom@tromey.com>
14935 * windows-tdep.c (windows_xfer_shared_library): Update.
14936 * windows-nat.c (windows_make_so): Update.
14937 * utils.h (make_cleanup_bfd_unref): Remove.
14938 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
14939 * symfile.h (symfile_bfd_open)
14940 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
14941 * symfile.c (read_symbols, symbol_file_add)
14942 (separate_debug_file_exists): Update.
14943 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
14944 (generic_load, reread_symbols): Update.
14945 * symfile-mem.c (symbol_file_add_from_memory): Update.
14946 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
14947 (spu_symbol_file_add_from_memory): Update.
14948 * solist.h (struct target_so_ops) <bfd_open>: Return
14950 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
14951 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
14953 (solib_map_sections, reload_shared_libraries_1): Update.
14954 * solib-svr4.c (enable_break): Update.
14955 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
14956 * solib-frv.c (enable_break2): Update.
14957 * solib-dsbt.c (enable_break): Update.
14958 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
14960 (darwin_solib_get_all_image_info_addr_at_init): Update.
14961 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
14962 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
14963 * record-full.c (record_full_save): Update.
14964 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
14965 * procfs.c (insert_dbx_link_bpt_in_file): Update.
14966 * minidebug.c (find_separate_debug_file_in_section): Return
14968 * machoread.c (macho_add_oso_symfile): Change abfd to
14970 (macho_symfile_read_all_oso): Update.
14971 (macho_check_dsym): Return gdb_bfd_ref_ptr.
14972 (macho_symfile_read): Update.
14973 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
14974 (jit_bfd_try_read_symtab): Update.
14975 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14976 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14977 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14979 (gdb_bfd_ref_policy): New struct.
14980 (gdb_bfd_ref_ptr): New typedef.
14981 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14982 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14983 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14985 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14986 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14987 (gcore_command): Update.
14988 * exec.c (exec_file_attach): Update.
14989 * elfread.c (elf_symfile_read): Update.
14990 * dwarf2read.c (dwarf2_get_dwz_file): Update.
14991 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
14992 (open_and_init_dwo_file): Update.
14993 (open_dwp_file): Return gdb_bfd_ref_ptr.
14994 (open_and_init_dwp_file): Update.
14995 * corelow.c (core_open): Update.
14996 * compile/compile-object-load.c (compile_object_load): Update.
14997 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
14998 * coffread.c (coff_symfile_read): Update.
14999 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
15000 gdb_bfd_ref_ptr. Rename.
15001 (dump_bfd_file, restore_command): Update.
15002 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
15003 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
15004 (find_separate_debug_file_by_buildid): Update.
15006 2017-01-10 Tom Tromey <tom@tromey.com>
15008 * common/gdb_ref_ptr.h: New file.
15009 * python/py-ref.h (struct gdbpy_ref_policy): New.
15010 (gdbpy_ref): Now a typedef.
15012 2017-01-10 Tom Tromey <tom@tromey.com>
15014 * utils.h (make_cleanup_htab_delete): Don't declare.
15015 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
15017 * linespec.c (decode_compound_collector): Add constructor,
15019 (lookup_prefix_sym): Remove cleanup.
15020 (symtab_collector): Add constructor, destructor.
15021 (collect_symtabs_from_filename): Remove cleanup.
15022 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
15023 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
15025 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
15026 * dwarf2read.c (dw2_expand_symtabs_matching)
15027 (dw2_map_symbol_filenames, dwarf_decode_macros)
15028 (write_psymtabs_to_index): Use htab_up.
15029 * dwarf2loc.c (func_verify_no_selftailcall)
15030 (call_site_find_chain_1, func_verify_no_selftailcall)
15031 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
15032 std::vector, gdb::unique_xmalloc_ptr.
15033 (call_sitep): Remove typedef.
15034 (dwarf2_locexpr_baton_eval): Remove unused variable.
15036 2017-01-10 Tom Tromey <tom@tromey.com>
15038 * python/python-internal.h (make_cleanup_py_decref)
15039 (make_cleanup_py_xdecref): Don't declare.
15040 * python/py-utils.c (py_decref, make_cleanup_py_decref)
15041 (py_xdecref, make_cleanup_py_xdecref): Remove.
15043 2017-01-10 Tom Tromey <tom@tromey.com>
15045 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
15046 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
15048 2017-01-10 Tom Tromey <tom@tromey.com>
15050 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
15052 2017-01-10 Tom Tromey <tom@tromey.com>
15054 * python/py-utils.c (unicode_to_encoded_string)
15055 (python_string_to_target_string)
15056 (python_string_to_target_python_string)
15057 (python_string_to_host_string, gdbpy_obj_to_string)
15058 (get_addr_from_python): Use gdbpy_ref.
15060 2017-01-10 Tom Tromey <tom@tromey.com>
15062 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
15065 2017-01-10 Tom Tromey <tom@tromey.com>
15067 * python/python.c (eval_python_command, gdbpy_decode_line)
15068 (gdbpy_run_events, gdbpy_start_type_printers)
15069 (gdbpy_apply_type_printers): Use gdbpy_ref.
15071 2017-01-10 Tom Tromey <tom@tromey.com>
15073 * python/py-param.c (get_doc_string, compute_enum_values): Use
15076 2017-01-10 Tom Tromey <tom@tromey.com>
15078 * python/py-inferior.c (find_thread_object, build_inferior_list):
15081 2017-01-10 Tom Tromey <tom@tromey.com>
15083 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
15085 2017-01-10 Tom Tromey <tom@tromey.com>
15087 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
15090 2017-01-10 Tom Tromey <tom@tromey.com>
15092 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
15094 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
15097 2017-01-10 Tom Tromey <tom@tromey.com>
15099 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
15102 2017-01-10 Tom Tromey <tom@tromey.com>
15104 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
15105 decref results of PyArg_ParseTupleAndKeywords.
15107 2017-01-10 Tom Tromey <tom@tromey.com>
15109 * python/python.c (python_run_simple_file): Use
15110 unique_xmalloc_ptr, gdbpy_ref.
15112 2017-01-10 Tom Tromey <tom@tromey.com>
15114 * python/py-prettyprint.c (print_stack_unless_memory_error)
15115 (print_string_repr, print_children): Use gdbpy_ref.
15116 (dummy_python_frame): New class.
15117 (dummy_python_frame::dummy_python_frame): Rename from
15118 push_dummy_python_frame.
15119 (py_restore_tstate): Remove.
15121 2017-01-10 Tom Tromey <tom@tromey.com>
15123 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
15125 2017-01-10 Tom Tromey <tom@tromey.com>
15127 * python/python.c (ensure_python_env, restore_python_env):
15129 * python/python-internal.h (ensure_python_env): Don't declare.
15130 * varobj.h (varobj_ensure_python_env): Don't declare.
15131 * varobj.c (varobj_ensure_python_env): Remove.
15133 2017-01-10 Tom Tromey <tom@tromey.com>
15135 * varobj.c (varobj_value_get_print_value): Use
15136 gdbpy_enter_varobj.
15138 2017-01-10 Tom Tromey <tom@tromey.com>
15140 * python/py-prettyprint.c (print_string_repr, print_children):
15142 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
15144 * varobj.c (varobj_value_get_print_value): Update.
15145 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
15147 2017-01-10 Tom Tromey <tom@tromey.com>
15149 * varobj.c (varobj_get_display_hint)
15150 (dynamic_varobj_has_child_method, install_new_value_visualizer)
15151 (varobj_set_visualizer, free_variable): Use
15152 gdbpy_enter_varobj.
15154 2017-01-10 Tom Tromey <tom@tromey.com>
15156 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
15157 (do_finish_initialization): New function. Use gdbpy_ref.
15158 (gdbpy_finish_initialization): Use gdbpy_enter. Call
15159 do_finish_initialization.
15161 2017-01-10 Tom Tromey <tom@tromey.com>
15163 * python/py-param.c (get_set_value, get_show_value): Use
15164 gdbpy_enter, gdbpy_ref.
15166 2017-01-10 Tom Tromey <tom@tromey.com>
15168 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
15170 2017-01-10 Tom Tromey <tom@tromey.com>
15172 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
15174 2017-01-10 Tom Tromey <tom@tromey.com>
15176 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
15177 Use gdbpy_enter_varobj.
15179 2017-01-10 Tom Tromey <tom@tromey.com>
15181 * varobj.c (gdbpy_enter_varobj): New constructor.
15182 * python/python-internal.h (gdbpy_enter_varobj): New class.
15183 * python/py-varobj.c (py_varobj_get_iterator): Use
15184 gdbpy_enter_varobj.
15186 2017-01-10 Tom Tromey <tom@tromey.com>
15188 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
15189 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
15190 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
15191 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
15192 unique_xmalloc_ptr.
15193 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
15195 2017-01-10 Tom Tromey <tom@tromey.com>
15197 * python/py-xmethods.c (invoke_match_method): Use
15200 2017-01-10 Tom Tromey <tom@tromey.com>
15202 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
15203 gdbpy_enter, gdbpy_ref.
15205 2017-01-10 Tom Tromey <tom@tromey.com>
15207 * python/python.c (python_interactive_command): Use gdbpy_enter.
15209 2017-01-10 Tom Tromey <tom@tromey.com>
15211 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
15214 2017-01-10 Tom Tromey <tom@tromey.com>
15216 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
15217 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
15219 2017-01-10 Tom Tromey <tom@tromey.com>
15221 * utils.h (htab_deleter): New struct.
15222 (htab_up): New typedef.
15223 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
15224 gdbpy_enter, gdbpy_ref, htab_up.
15226 2017-01-10 Tom Tromey <tom@tromey.com>
15228 * python/py-unwind.c (pending_frame_invalidate): Remove.
15229 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
15231 2017-01-10 Tom Tromey <tom@tromey.com>
15233 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
15234 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
15236 2017-01-10 Tom Tromey <tom@tromey.com>
15238 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
15240 2017-01-10 Tom Tromey <tom@tromey.com>
15242 * python/python.c (gdbpy_eval_from_control_command)
15243 (gdbpy_source_script, gdbpy_run_events)
15244 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
15245 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
15248 2017-01-10 Tom Tromey <tom@tromey.com>
15250 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
15252 2017-01-10 Tom Tromey <tom@tromey.com>
15254 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
15256 2017-01-10 Tom Tromey <tom@tromey.com>
15258 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
15259 (python_on_inferior_call_pre, python_on_inferior_call_post)
15260 (python_on_memory_change, python_on_register_change)
15261 (python_inferior_exit, python_new_objfile, add_thread_object)
15262 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
15264 2017-01-10 Tom Tromey <tom@tromey.com>
15266 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
15267 (bpfinishpy_handle_exit): Use gdbpy_enter.
15269 2017-01-10 Tom Tromey <tom@tromey.com>
15271 * python/py-cmd.c (cmdpy_destroyer)
15272 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
15275 2017-01-10 Tom Tromey <tom@tromey.com>
15277 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
15279 (gdbpy_breakpoint_has_cond): Likewise.
15281 2017-01-10 Tom Tromey <tom@tromey.com>
15283 * python/python.c (gdbpy_enter): New constructor.
15284 (~gdbpy_enter): New destructor.
15285 (restore_python_env, ensure_python_env): Rewrite.
15286 * python/python-internal.h (gdbpy_enter): New class.
15288 2017-01-10 Tom Tromey <tom@tromey.com>
15290 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
15292 2017-01-10 Tom Tromey <tom@tromey.com>
15294 * python/py-value.c (value_has_field, get_field_flag)
15295 (get_field_type, valpy_getitem, convert_value_from_python): Use
15298 2017-01-10 Tom Tromey <tom@tromey.com>
15300 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
15303 2017-01-10 Tom Tromey <tom@tromey.com>
15305 * python/py-prettyprint.c (search_pp_list)
15306 (find_pretty_printer_from_objfiles)
15307 (find_pretty_printer_from_progspace)
15308 (find_pretty_printer_from_gdb, find_pretty_printer)
15309 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
15312 2017-01-10 Tom Tromey <tom@tromey.com>
15314 * python/py-param.c (call_doc_function): Use gdbpy_ref.
15316 2017-01-10 Tom Tromey <tom@tromey.com>
15318 * python/py-linetable.c (build_line_table_tuple_from_pcs)
15319 (ltpy_get_all_source_lines): Use gdbpy_ref.
15321 2017-01-10 Tom Tromey <tom@tromey.com>
15323 * python/py-framefilter.c (extract_sym, extract_value)
15324 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
15327 2017-01-10 Tom Tromey <tom@tromey.com>
15329 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
15331 2017-01-10 Tom Tromey <tom@tromey.com>
15333 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
15335 2017-01-10 Tom Tromey <tom@tromey.com>
15337 * python/py-function.c (convert_values_to_python, fnpy_init): Use
15340 2017-01-10 Tom Tromey <tom@tromey.com>
15342 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
15344 2017-01-10 Tom Tromey <tom@tromey.com>
15346 * python/py-type.c (convert_field, make_fielditem, typy_fields)
15347 (typy_range): Use gdbpy_ref.
15349 2017-01-10 Tom Tromey <tom@tromey.com>
15351 * python/py-threadevent.c (create_thread_event_object): Use
15353 * python/py-stopevent.c (create_stop_event_object): Simplify.
15354 (emit_stop_event): Use gdbpy_ref.
15355 * python/py-signalevent.c (create_signal_event_object): Use
15357 * python/py-newobjfileevent.c (create_new_objfile_event_object)
15358 (emit_new_objfile_event, create_clear_objfiles_event_object)
15359 (emit_clear_objfiles_event): Use gdbpy_ref.
15360 * python/py-infevents.c (create_inferior_call_event_object)
15361 (create_register_changed_event_object)
15362 (create_memory_changed_event_object, emit_inferior_call_event)
15363 (emit_memory_changed_event, emit_register_changed_event): Use
15365 * python/py-exitedevent.c (create_exited_event_object)
15366 (emit_exited_event): Use gdbpy_ref.
15367 * python/py-event.h (evpy_emit_event): Remove
15368 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
15369 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
15370 * python/py-continueevent.c (emit_continue_event): Use
15372 * python/py-breakpoint.c (gdbpy_breakpoint_created)
15373 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
15375 * python/py-bpevent.c (create_breakpoint_event_object): Use
15378 2017-01-10 Tom Tromey <tom@tromey.com>
15380 * python/py-ref.h: New file.
15382 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
15384 * cli-out.c (cli_ui_out::do_redirect): Change return type to
15386 * cli-out.h (cli_ui_out::do_redirect): Likewise.
15387 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
15388 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
15389 * ui-out.c (ui_out::redirect): Likewise.
15390 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
15391 * cli/cli-logging.c (set_logging_redirect): Update call site of
15393 (handle_redirections): Likewise.
15394 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
15395 * top.c (execute_command_to_string): Likewise.
15396 * utils.c (do_ui_out_redirect_pop): Likewise.
15398 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
15400 * stack.c (_initialize_stack): Update "frame" command help message.
15402 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
15404 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
15406 2017-01-06 Yao Qi <yao.qi@linaro.org>
15408 * x86-linux-nat.h: Include gdb_proc_service.h.
15410 2017-01-06 Yao Qi <yao.qi@linaro.org>
15412 * ser-base.h: Include serial.h.
15414 2017-01-06 Yao Qi <yao.qi@linaro.org>
15416 * ppc-linux-tdep.h: Include ppc-tdep.h.
15418 2017-01-06 Yao Qi <yao.qi@linaro.org>
15420 * nat/amd64-linux-siginfo.h: Include signal.h.
15422 2017-01-06 Yao Qi <yao.qi@linaro.org>
15424 * nat/aarch64-linux-hw-point.h: Include break-common.h.
15426 2017-01-06 Yao Qi <yao.qi@linaro.org>
15428 * mi/mi-parse.h: Include mi-cmds.h.
15430 2017-01-06 Yao Qi <yao.qi@linaro.org>
15432 * inf-loop.c: Don't include "target.h".
15433 * inf-loop.h: Include it here.
15435 2017-01-06 Yao Qi <yao.qi@linaro.org>
15437 * dfp.h: Include "dboulest.h" and "expression.h".
15439 2017-01-06 Yao Qi <yao.qi@linaro.org>
15441 * ax-gdb.h: Include "ax.h".
15443 2017-01-06 Yao Qi <yao.qi@linaro.org>
15445 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
15446 with nat/gdb_ptrace.h.
15448 2017-01-05 Yao Qi <yao.qi@linaro.org>
15450 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
15452 (mips64_fbsd_sigframe_init): Likewise.
15454 2017-01-04 John Baldwin <jhb@FreeBSD.org>
15456 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
15457 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
15459 2017-01-04 John Baldwin <jhb@FreeBSD.org>
15461 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
15462 * NEWS: Mention new FreeBSD/mips native configuration.
15463 * config/mips/fbsd.mh: New file.
15464 * configure.host: Add mips*-*-freebsd*.
15465 * mips-fbsd-nat.c: New file.
15467 2017-01-04 John Baldwin <jhb@FreeBSD.org>
15469 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
15470 (ALLDEPFILES): Add mips-fbsd-tdep.c.
15471 * NEWS: Mention new FreeBSD/mips target.
15472 * configure.tgt: Add mips*-*-freebsd*.
15473 * mips-fbsd-tdep.c: New file.
15474 * mips-fbsd-tdep.h: New file.
15476 2017-01-04 Yao Qi <yao.qi@linaro.org>
15478 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
15479 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
15481 2017-01-01 Joel Brobecker <brobecker@adacore.com>
15483 Update copyright year range in all GDB files.
15485 2017-01-01 Joel Brobecker <brobecker@adacore.com>
15487 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
15489 For older changes see ChangeLog-2016.
15495 version-control: never