1 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
5 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7 * common/filestuff.c: Include <algorithm>.
8 (open_fds): Change type to std::vector<int>.
9 (do_mark_open_fd): Adjust.
10 (unmark_fd_no_cloexec): Adjust.
13 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
15 * breakpoint.c (output_thread_groups): Take an std::vector.
16 (print_one_breakpoint_location): Adjust.
18 2017-11-17 Joel Brobecker <brobecker@adacore.com>
20 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
21 (ada_evaluate_subexp_for_cast): New function.
22 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
23 ada_evaluate_subexp_for_cast.
24 (ada_evaluate_subexp) <nosideret>: Replace code by call to
26 * eval.c (evaluate_var_value): Make non-static.
27 (evaluate_var_msym_value, eval_skip_value): Likewise.
28 * value.h (evaluate_var_value, evaluate_var_msym_value)
29 (eval_skip_value): Declare.
31 2017-11-16 Joel Brobecker <brobecker@adacore.com>
33 * ada-lang.c (ada_value_cast): Remove parameter "noside".
36 2017-11-16 Pedro Alves <palves@redhat.com>
38 * python/py-unwind.c (pyuw_sniffer): Translate
39 PyExc_KeyboardInterrupt to a GDB Quit exception.
41 2017-11-16 Pedro Alves <palves@redhat.com>
43 * infrun.c (resume_cleanups): Delete.
44 (resume): No longer install a resume_cleanups cleanup nor call
46 (proceed): Pass the terminal to the inferior.
47 (keep_going_pass_signal): No longer install a resume_cleanups
50 2017-11-16 Pedro Alves <palves@redhat.com>
52 * inf-loop.c (inferior_event_handler): Don't swallow the exception
53 if the prompt is blocked.
55 2017-11-16 Pedro Alves <palves@redhat.com>
57 * breakpoint.c (insert_bp_location): Replace bp_err and
58 bp_err_message locals by a gdb_exception local.
60 2017-11-16 Pedro Alves <palves@redhat.com>
62 * inflow.c (scoped_ignore_sigttou): New class.
63 (child_terminal_ours_1, new_tty): Use it.
65 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
67 * target-float.c (decimal_from_number): Add byte_order argument and
68 call match_endianness. Error if unknown floating-point type.
69 (decimal_to_number): Add byte_order argument and call match_endianness.
70 (decimal_from_longest): Update call. Do not call match_endianness.
71 (decimal_from_ulongest): Likewise.
72 (decimal_binop): Likewise.
73 (decimal_is_zero): Likewise.
74 (decimal_compare): Likewise.
75 (decimal_convert): Likewise.
77 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
79 * python/python.c (gdbpy_rbreak): New function.
80 * NEWS: Document Python rbreak feature.
82 2017-11-16 Yao Qi <yao.qi@linaro.org>
84 * features/tic6x-c62x.xml: Remove.
85 * features/tic6x-c64x.xml: Remove.
86 * features/tic6x-c64xp.xml: Remove.
88 2017-11-15 John Baldwin <jhb@FreeBSD.org>
90 * symtab.h: Include <array>.
92 2017-11-15 John Baldwin <jhb@FreeBSD.org>
94 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
95 (bsd_kvm_proc_cmd): Likewise.
97 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
99 * tui/tui-win.c (window_name_completer): Replace VEC with
102 2017-11-15 Andrew Cagney <cagney@gnu.org>
104 * MAINTAINERS: Remove no-longer applicable entries.
106 2017-11-15 Andrew Cagney <cagney@gnu.org>
108 * MAINTAINERS: Move self to Past Maintainers.
110 2017-11-15 Yao Qi <yao.qi@linaro.org>
112 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
113 * features/nios2-linux.c: Remove.
114 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
115 initialize_tdesc_nios2_linux.
117 2017-11-15 Yao Qi <yao.qi@linaro.org>
119 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
120 M68HC11_LAST_HARD_REG + 1.
122 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
125 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
126 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
127 Return TARGET_XFER_EOF if size of returned data is 0.
129 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
131 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
132 memory-map-selftests.c.
133 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
134 * memory-map.c (memory_map_start_memory): Fix computation of hi
136 * unittests/memory-map-selftests.c: New file.
138 2017-11-09 Joel Brobecker <brobecker@adacore.com>
140 * ada-lang.c: Fix some typos in the general command documenting
141 how Ada expressions are being evaluated and how their result
144 2017-11-09 Tom Tromey <tom@tromey.com>
146 * psymtab.c (psymbol_hash): Do not hash string contents.
147 (psymbol_compare): Add comment.
149 2017-11-09 Tom Tromey <tom@tromey.com>
151 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
153 2017-11-08 Joel Brobecker <brobecker@adacore.com>
155 * ada-exp.y (write_var_from_sym): Remove parameter
156 "orig_left_context". Update all callers.
158 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
160 * tracepoint.h (class collection_list) <stringify>: Return
161 std::vector<std::string>.
162 (encode_actions_rsp): Change parameters to
163 std::vector<std::string> *.
164 * tracepoint.c (collection_list::stringify): Return
165 std::vector<std::string> and adjust accordingly.
166 (encode_actions_rsp): Changee parameters to
167 std::vector<std::string> and adjust accordingly.
168 * remote.c (free_actions_list),
169 free_actions_list_cleanup_wrapper): Remove.
170 (remote_download_tracepoint): Adjust to std::vector.
172 2017-11-08 Tom Tromey <tom@tromey.com>
174 * dwarf2read.c (symbolp): Remove typedef.
175 (read_func_scope): Use std::vector.
176 (process_structure_scope): Use std::vector.
178 2017-11-08 Pedro Alves <palves@redhat.com>
180 * ada-lang.c (ada_make_symbol_completion_list): Use
181 completion_skip_symbol.
182 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
183 (symbol_is_function_or_method(symbol*)): New.
184 (add_symtab_completions): Add complete_symbol_mode parameter. Use
185 completion_skip_symbol.
186 (default_collect_symbol_completion_matches_break_on): Use
187 completion_skip_symbol. Pass down mode.
188 (collect_file_symbol_completion_matches): Pass down mode.
189 * symtab.h (symbol_is_function_or_method): New declarations.
190 (completion_skip_symbol): New template function.
192 2017-11-08 Pedro Alves <palves@redhat.com>
194 * linespec.c (iterate_over_all_matching_symtabs): Add
195 search_domain parameter. Pass it down to expand_symtabs_matching.
196 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
197 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
199 (add_all_symbol_names_from_pspace): Add search_domain parameter.
201 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
203 (add_matching_symbols_to_info): Add search_domain parameter. Pass
206 2017-11-08 Pedro Alves <palves@redhat.com>
208 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
209 text_len locals and don't pass them down.
210 * symtab.c (completion_list_add_name): Remove
211 sym_text/sym_text_len parameters and adjust.
212 (completion_list_add_symbol, completion_list_add_msymbol)
213 (completion_list_objc_symbol, completion_list_add_fields)
214 (add_symtab_completions): Likewise.
215 (default_collect_symbol_completion_matches_break_on)
216 (collect_file_symbol_completion_matches): Remove sym_text_len
217 local and don't pass it down.
218 * symtab.h (completion_list_add_name): Remove
219 sym_text/sym_text_len parameters.
221 2017-11-08 Pedro Alves <palves@redhat.com>
223 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
224 unittests/lookup_name_info-selftests.c.
225 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
226 * cp-support.c: Include "selftest.h".
227 (cp_remove_params_1): Rename from cp_remove_params. Add
228 'require_param' parameter, and handle it.
229 (cp_remove_params): Reimplement.
230 (cp_remove_params_if_any): New.
231 (selftests::quote): New.
232 (selftests::check_remove_params): New.
233 (selftests::test_cp_remove_params): New.
234 (_initialize_cp_support): Install
235 selftests::test_cp_remove_params.
236 * cp-support.h (cp_remove_params_if_any): Declare.
237 * dwarf2read.c :Include "selftest.h".
238 (dw2_expand_symtabs_matching_symbol): Use
239 lookup_name_info::make_ignore_params.
240 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
241 (selftests::dw2_expand_symtabs_matching::string_or_null)
242 (selftests::dw2_expand_symtabs_matching::check_match)
243 (selftests::dw2_expand_symtabs_matching::test_symbols)
244 (selftests::dw2_expand_symtabs_matching::run_test): New.
245 (_initialize_dwarf2_read): Register
246 selftests::dw2_expand_symtabs_matching::run_test.
247 * psymtab.c (psym_expand_symtabs_matching): Use
248 lookup_name_info::make_ignore_params.
249 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
250 If the lookup name wants to ignore parameters, strip them.
251 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
253 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
254 (default_collect_symbol_completion_matches_break_on): Don't try to
256 * symtab.h (lookup_name_info::lookup_name_info): Add
257 'ignore_parameters' parameter.
258 (lookup_name_info::ignore_parameters)
259 (lookup_name_info::make_ignore_params): New methods.
260 (lookup_name_info::m_ignore_parameters): New field.
261 * unittests/lookup_name_info-selftests.c: New file.
263 2017-11-08 Pedro Alves <palves@redhat.com>
265 * dwarf2read.c (dw2_expand_marked_cus)
266 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
267 (dw2_expand_symtabs_matching): Move further below.
268 (dw2_expand_marked_cus): Reindent.
270 2017-11-08 Pedro Alves <palves@redhat.com>
272 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
273 (struct name_component): New.
274 (mapped_index::name_components): New field.
275 (mapped_index::symbol_name_at): New method.
276 (dwarf2_read_index): Call mapped_index ctor.
277 (dw2_map_matching_symbols): Add comment about name_components
279 (dw2_expand_symtabs_matching): Factor part to...
280 (dw2_expand_symtabs_matching_symbol): ... this new function.
281 Build name components table, and lookup symbols in it before
282 calling the name matcher.
283 (dw2_expand_marked_cus): New, factored out from
284 dw2_expand_symtabs_matching.
285 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
287 2017-11-08 Pedro Alves <palves@redhat.com>
289 * ada-lang.c (ada_encode): Rename to ..
290 (ada_encode_1): ... this. Add throw_errors parameter and handle
292 (ada_encode): Reimplement.
293 (match_name): Delete, folded into full_name.
294 (resolve_subexp): No longer pass the encoded name to
295 ada_lookup_symbol_list.
296 (should_use_wild_match): Delete.
297 (name_match_type_from_name): New.
298 (ada_lookup_simple_minsym): Use lookup_name_info and the
299 language's symbol_name_matcher_ftype.
300 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
301 (ada_add_block_renamings): Adjust to use lookup_name_info.
302 (ada_lookup_name): New.
303 (add_nonlocal_symbols, ada_add_all_symbols)
304 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
305 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
306 (ada_name_for_lookup): Delete.
307 (ada_lookup_encoded_symbol): Construct a verbatim name.
308 (wild_match): Reverse sense of return type. Use bool.
309 (full_match): Reverse sense of return type. Inline bits of old
311 (ada_add_block_symbols): Adjust to use lookup_name_info.
312 (symbol_completion_match): Delete, folded into...
313 (ada_lookup_name_info::matches): ... .this new method.
314 (symbol_completion_add): Delete.
315 (ada_collect_symbol_completion_matches): Add name_match_type
316 parameter. Adjust to use lookup_name_info and
317 completion_list_add_name.
318 (get_var_value, ada_add_global_exceptions): Adjust to use
320 (ada_get_symbol_name_cmp): Delete.
321 (do_wild_match, do_full_match): New functions.
322 (ada_lookup_name_info::ada_lookup_name_info): New method.
323 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
325 (ada_language_defn): Install ada_get_symbol_name_matcher.
326 * ada-lex.l (processId): If name starts with '<', copy it
328 * block.c (block_iter_match_step, block_iter_match_first)
329 (block_iter_match_next, block_lookup_symbol)
330 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
332 * block.h (block_iter_match_first, block_iter_match_next)
333 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
334 * c-lang.c (c_language_defn, cplus_language_defn)
335 (asm_language_defn, minimal_language_defn): Adjust comments to
336 refer to la_get_symbol_name_matcher.
337 * completer.c (complete_files_symbols)
338 (collect_explicit_location_matches, symbol_completer): Pass a
339 symbol_name_match_type down.
340 * completer.h (class completion_match, completion_match_result):
342 (completion_tracker::reset_completion_match_result): New method.
343 (completion_tracker::m_completion_match_result): New field.
344 * cp-support.c (make_symbol_overload_list_block): Adjust to use
346 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
348 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
349 * d-lang.c: Adjust comments to refer to
350 la_get_symbol_name_matcher.
351 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
352 Adjust to use lookup_name_info.
353 (dict_iter_match_first, dict_iter_match_next)
354 (iter_match_first_hashed, iter_match_next_hashed)
355 (iter_match_first_linear, iter_match_next_linear): Adjust to work
356 with a lookup_name_info.
357 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
359 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
360 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
361 (gdb_index_symbol_name_matcher): New class.
362 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
363 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
364 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
365 with a symbol_name_match_type.
366 (f_language_defn): Adjust comments to refer to
367 la_get_symbol_name_matcher.
368 * go-lang.c (go_language_defn): Adjust comments to refer to
369 la_get_symbol_name_matcher.
370 * language.c (default_symbol_name_matcher)
371 (language_get_symbol_name_matcher): New functions.
372 (unknown_language_defn, auto_language_defn): Adjust comments to
373 refer to la_get_symbol_name_matcher.
374 * language.h (symbol_name_cmp_ftype): Delete.
375 (language_defn) <la_collect_symbol_completion_matches>: Add match
377 <la_get_symbol_name_cmp>: Delete field.
378 <la_get_symbol_name_matcher>: New field.
379 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
380 (default_symbol_name_matcher, language_get_symbol_name_matcher):
382 * linespec.c (iterate_over_all_matching_symtabs)
383 (iterate_over_file_blocks): Adjust to use lookup_name_info.
384 (find_methods): Add language parameter, and use lookup_name_info
385 and the language's symbol_name_matcher_ftype.
386 (linespec_complete_function): Adjust.
387 (lookup_prefix_sym): Use lookup_name_info.
388 (add_all_symbol_names_from_pspace): Adjust.
389 (find_superclass_methods): Add language parameter and pass it
391 (find_method): Pass symbol language down.
392 (find_linespec_symbols): Don't demangle or Ada encode here.
393 (search_minsyms_for_name): Add lookup_name_info parameter.
394 (add_matching_symbols_to_info): Add name_match_type parameter.
395 Use lookup_name_info.
396 * m2-lang.c (m2_language_defn): Adjust comments to refer to
397 la_get_symbol_name_matcher.
398 * minsyms.c: Include <algorithm>.
399 (add_minsym_to_demangled_hash_table): Remove table parameter and
400 add objfile parameter. Use search_name_hash, and add language to
401 demangled languages vector.
402 (struct found_minimal_symbols): New struct.
403 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
405 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
406 input names here. Use lookup_name_info instead. Lookup up
407 demangled names once for each language in the demangled names
409 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
410 demangled names once for each language in the demangled names
412 (build_minimal_symbol_hash_tables): Adjust.
413 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
415 * objc-lang.c (objc_language_defn): Adjust comment to refer to
416 la_get_symbol_name_matcher.
417 * objfiles.h: Include <vector>.
418 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
419 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
420 la_get_symbol_name_matcher.
421 * p-lang.c (pascal_language_defn): Adjust comment to refer to
422 la_get_symbol_name_matcher.
423 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
424 (match_partial_symbol): Use symbol_name_match_type,
425 lookup_name_info and psymbol_name_matches.
426 (lookup_partial_symbol): Use lookup_name_info.
427 (map_block): Use symbol_name_match_type and lookup_name_info.
428 (psym_map_matching_symbols): Use symbol_name_match_type.
429 (psymbol_name_matches): New.
430 (recursively_search_psymtabs): Use lookup_name_info and
431 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
432 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
433 'kind' parameter to 'domain'.
434 * rust-lang.c (rust_language_defn): Adjust comment to refer to
435 la_get_symbol_name_matcher.
436 * symfile-debug.c (debug_qf_map_matching_symbols)
437 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
438 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
439 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
440 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
441 Adjust to use symbol_name_match_type.
442 <expand_symtabs_matching>: Adjust to use lookup_name_info.
443 (expand_symtabs_matching): Adjust to use lookup_name_info.
444 * symmisc.c (maintenance_expand_symtabs): Use
445 lookup_name_info::match_any ().
446 * symtab.c (symbol_matches_search_name): New.
447 (eq_symbol_entry): Adjust to use lookup_name_info and the
449 (demangle_for_lookup_info::demangle_for_lookup_info): New.
450 (lookup_name_info::match_any): New.
451 (iterate_over_symbols, search_symbols): Use lookup_name_info.
452 (compare_symbol_name): Add language, lookup_name_info and
453 completion_match_result parameters, and use them.
454 (completion_list_add_name): Make extern. Add language and
455 lookup_name_info parameters. Use them.
456 (completion_list_add_symbol, completion_list_add_msymbol)
457 (completion_list_objc_symbol): Add lookup_name_info parameters and
458 adjust. Pass down language.
459 (completion_list_add_fields): Add lookup_name_info parameters and
460 adjust. Pass down language.
461 (add_symtab_completions): Add lookup_name_info parameters and
463 (default_collect_symbol_completion_matches_break_on): Add
464 name_match_type parameter, and use it. Use lookup_name_info.
465 (default_collect_symbol_completion_matches)
466 (collect_symbol_completion_matches): Add name_match_type
467 parameter, and pass it down.
468 (collect_symbol_completion_matches_type): Adjust.
469 (collect_file_symbol_completion_matches): Add name_match_type
470 parameter, and use lookup_name_info.
471 * symtab.h: Include <string> and "common/gdb_optional.h".
472 (enum class symbol_name_match_type): New.
473 (class ada_lookup_name_info): New.
474 (struct demangle_for_lookup_info): New.
475 (class lookup_name_info): New.
476 (symbol_name_matcher_ftype): New.
477 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
478 (symbol_matches_search_name): Declare.
479 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
480 (default_collect_symbol_completion_matches)
481 (collect_symbol_completion_matches)
482 (collect_file_symbol_completion_matches): Add name_match_type
484 (iterate_over_symbols): Use lookup_name_info.
485 (completion_list_add_name): Declare.
486 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
487 (strncmp_iw_with_mode): Now extern.
488 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
489 (strncmp_iw_with_mode): Declare.
491 2017-11-08 Keith Seitz <keiths@redhat.com>
492 Pedro Alves <palves@redhat.com>
494 * ada-lang.c (ada_language_defn): Install
495 default_search_name_hash.
496 * buildsym.c (struct buildsym_compunit): <language>: New field.
497 (finish_block_internal): Pass language when creating dictionaries.
498 (start_buildsym_compunit, start_symtab): New language parameters.
500 (restart_symtab): Pass down compilation unit's language.
501 * buildsym.h (enum language): Forward declare.
502 (start_symtab): New 'language' parameter.
503 * c-lang.c (c_language_defn, cplus_language_defn)
504 (asm_language_defn, minimal_language_defn): Install
505 default_search_name_hash.
506 * coffread.c (coff_start_symtab): Adjust.
507 * d-lang.c (d_language_defn): Install default_search_name_hash.
508 * dbxread.c (struct symloc): Add 'pst_language' field.
509 (PST_LANGUAGE): Define.
510 (start_psymtab, read_ofile_symtab): Use it.
511 (process_one_symbol): New 'language' parameter. Pass it down.
512 * dictionary.c (struct dictionary) <language>: New field.
513 (DICT_LANGUAGE): Define.
514 (dict_create_hashed, dict_create_hashed_expandable)
515 (dict_create_linear, dict_create_linear_expandable): New parameter
516 'language'. Set the dictionary's language.
517 (iter_match_first_hashed): Adjust to rename.
518 (insert_symbol_hashed): Assert we don't see mismatching
519 languages. Adjust to rename.
520 (dict_hash): Rename to ...
521 (default_search_name_hash): ... this and make extern.
522 * dictionary.h (struct language_defn): Forward declare.
523 (dict_create_hashed): New parameter 'language'.
524 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
525 * f-lang.c (f_language_defn): Install default_search_name_hash.
526 * go-lang.c (go_language_defn): Install default_search_name_hash.
527 * jit.c (finalize_symtab): Pass compunit's language to dictionary
529 * language.c (unknown_language_defn, auto_language_defn):
530 * language.h (language_defn::la_search_name_hash): New field.
531 (default_search_name_hash): Declare.
532 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
533 * mdebugread.c (new_block): New parameter 'language'.
534 * mdebugread.c (parse_symbol): Pass symbol language to block
536 (psymtab_to_symtab_1): Pass down language.
537 (new_symtab): Pass compunit's language to block allocation.
538 * objc-lang.c (objc_language_defn): Install
539 default_search_name_hash.
540 * opencl-lang.c (opencl_language_defn):
541 * p-lang.c (pascal_language_defn): Install
542 default_search_name_hash.
543 * rust-lang.c (rust_language_defn): Install
544 default_search_name_hash.
545 * stabsread.h (enum language): Forward declare.
546 (process_one_symbol): Add 'language' parameter.
547 * symtab.c (search_name_hash): New function.
548 * symtab.h (search_name_hash): Declare.
549 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
551 2017-11-08 Pedro Alves <palves@redhat.com>
553 * cp-name-parser.y (main): Don't initialize extra_chars.
555 2017-11-07 Tom Tromey <tom@tromey.com>
557 * event-top.h (command_handler): Constify.
558 * record-full.c (cmd_record_full_start): Update.
559 * thread.c (thread_apply_all_command): Update.
560 * printcmd.c (eval_command): Update.
561 * mi/mi-main.c (mi_execute_cli_command): Update.
562 (mi_execute_async_cli_command): Update.
563 * tui/tui-stack.c (tui_update_command): Update.
564 * cli/cli-interp.c (safe_execute_command): Constify.
565 * record.c (record_start): Update.
566 (record_start, record_stop, cmd_record_start): Update.
567 * record-btrace.c (cmd_record_btrace_bts_start): Update.
568 (cmd_record_btrace_pt_start): Update.
569 (cmd_record_btrace_start): Update.
570 (cmd_record_btrace_start): Update.
571 * reverse.c (exec_reverse_once): Update.
572 * python/python.c (execute_gdb_command): Don't copy the command.
573 * event-top.c (command_line_handler): Update.
574 (command_handler): Constify.
575 * defs.h (deprecated_call_command_hook): Constify.
576 * cli/cli-script.h (execute_user_command): Constify.
577 * cli/cli-script.c (execute_user_command): Constify.
578 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
579 (enum command_control_type): Update.
580 * main.c (catch_command_errors): Remove non-const overload.
581 (catch_command_errors_ftype): Remove.
582 * python/py-cmd.c (cmdpy_function): Constify.
583 * guile/scm-cmd.c (cmdscm_function): Constify.
584 * cli/cli-dump.c (call_dump_func): Constify.
585 * cli/cli-decode.c (do_const_cfunc): Constify.
586 (do_sfunc): Constify.
587 (cmd_func): Constify.
588 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
589 * top.h (execute_command): Constify.
590 * top.c (execute_command): Constify.
591 (execute_command_to_string): Constify.
592 (deprecated_call_command_hook): Constify.
593 * command.h (cmd_func): Constify.
594 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
596 2017-11-07 Tom Tromey <tom@tromey.com>
598 * ada-lang.c (catch_ada_exception_command): Constify.
599 (catch_assert_command): Constify.
600 * break-catch-throw.c (catch_catch_command, catch_throw_command)
601 (catch_rethrow_command): Constify.
602 (catch_exception_command_1): Constify.
603 * breakpoint.h (add_catch_command): Constify.
604 * break-catch-syscall.c (catch_syscall_command_1): Constify.
605 (catch_syscall_split_args): Constify.
606 * break-catch-sig.c (catch_signal_command): Constify.
607 (catch_signal_split_args): Constify.
608 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
609 cmd_const_sfunc_ftype.
610 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
611 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
612 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
613 (add_setshow_string_cmd, struct cmd_list_element)
614 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
615 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
616 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
618 (set_cmd_sfunc): Constify.
619 (empty_sfunc): Constify.
620 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
621 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
622 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
623 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
624 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
625 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
627 (set_cmd_sfunc): Constify.
628 (cmd_sfunc_ftype): Remove.
629 * compile/compile.c (set_compile_args): Constify.
630 * infrun.c (set_disable_randomization): Constify.
631 * infcmd.c (set_args_command, set_cwd_command): Constify.
632 * breakpoint.c (set_condition_evaluation_mode): Constify.
633 (add_catch_command): Constify.
634 (catch_fork_command_1, catch_exec_command_1)
635 (catch_load_command_1, catch_unload_command_1): Constify.
636 (catch_load_or_unload): Constify.
637 * guile/scm-param.c (pascm_set_func): Constify.
638 (add_setshow_generic): Constify.
639 * python/py-param.c (get_set_value): Constify.
640 * top.h (set_verbose): Constify.
641 * tui/tui-win.c (tui_set_var_cmd): Constify.
642 * mi/mi-main.c (set_mi_async_command): Constify.
643 * cli/cli-logging.c (set_logging_overwrite)
644 (set_logging_redirect): Constify.
645 * value.c (set_max_value_size): Constify.
646 * valprint.c (set_input_radix, set_output_radix): Constify.
647 * utils.c (set_width_command, set_height_command): Constify.
648 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
649 * tracepoint.c (set_disconnected_tracing)
650 (set_circular_trace_buffer, set_trace_buffer_size)
651 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
652 * top.c (set_history_size_command, set_verbose, set_editing)
653 (set_gdb_datadir, set_history_filename): Constify.
654 * target.c (set_targetdebug, maint_set_target_async_command)
655 (maint_set_target_non_stop_command, set_target_permissions)
656 (set_write_memory_permission): Constify.
657 (open_target): Constify.
658 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
659 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
660 * symtab.c (set_symbol_cache_size_handler): Constify.
661 * symfile.c (set_ext_lang_command): Constify.
662 * symfile-debug.c (set_debug_symfile): Constify.
663 * source.c (set_directories_command): Constify.
664 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
665 * serial.c (set_parity): Constify.
666 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
667 * remote.c (set_remote_exec_file, set_remotebreak)
668 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
669 * record.c (set_record_insn_history_size)
670 (set_record_call_history_size): Constify.
671 * record-full.c (set_record_full_insn_max_num): Constify.
672 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
673 * osabi.c (set_osabi): Constify.
674 * mips-tdep.c (set_mips64_transfers_32bit_regs)
675 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
676 * maint.c (maintenance_set_profile_cmd): Constify.
677 * linux-thread-db.c (set_libthread_db_search_path): Constify.
678 * language.c (set_language_command, set_range_command)
679 (set_case_command): Constify.
680 * infrun.c (set_non_stop, set_observer_mode)
681 (set_stop_on_solib_events, set_schedlock_func)
682 (set_exec_direction_func): Constify.
683 * infcmd.c (set_inferior_tty_command): Constify.
684 * disasm.c (set_disassembler_options_sfunc): Constify.
685 * demangle.c (set_demangling_command): Constify.
686 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
687 * cris-tdep.c (set_cris_version, set_cris_mode)
688 (set_cris_dwarf2_cfi): Constify.
689 * corefile.c (set_gnutarget_command): Constify.
690 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
691 (set_target_wide_charset_sfunc): Constify.
692 * breakpoint.c (update_dprintf_commands): Constify.
693 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
694 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
695 (set_disassembly_style_sfunc): Constify.
696 * arch-utils.c (set_endian, set_architecture): Constify.
697 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
698 * agent.c (set_can_use_agent): Constify.
700 2017-11-07 Tom Tromey <tom@tromey.com>
702 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
703 (go32_pde, go32_pte, go32_pte_for_address): Constify.
704 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
705 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
706 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
707 (parse_int_arg, show_thread_default_detach_sc_cmd)
708 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
709 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
710 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
711 (show_task_pause_cmd, set_task_detach_sc_cmd)
712 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
713 (set_noninvasive_cmd, set_thread_pause_cmd)
714 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
715 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
716 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
717 * windows-nat.c (display_selectors): Constify.
718 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
720 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
721 (cmd_cfunc_eq): Likewise.
722 (struct cmd_list_element): Likewise.
724 (cli_user_command_p): Update.
725 * command.h (add_cmd): Remove non-const overload.
726 (cmd_cfunc_ftype): Remove typedef.
727 (cmd_cfunc_eq): Remove non-const overload.
728 * value.c (show_values): Constify.
729 * thread.c (thread_apply_all_command): Constify.
730 * symfile.c (load_command): Constify.
731 * source.c (directory_command): Constify.
732 * maint.c (maintenance_internal_error)
733 (maintenance_demangler_warning, maintenance_space_display)
734 (maintenance_print_architecture, maintenance_translate_address)
735 (maintenance_info_selftests, maintenance_internal_warning):
737 * breakpoint.c (disable_trace_command, enable_trace_command):
739 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
741 (add_auto_load_safe_path): Constify.
742 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
743 * top.h (show_commands): Constify.
744 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
745 * sparc64-tdep.c (adi_examine_command): Constify.
746 (adi_assign_command): Constify.
748 2017-11-07 Tom Tromey <tom@tromey.com>
750 * frame.h (info_locals_command, info_args_command): Constify.
751 * auto-load.h (auto_load_info_scripts): Constify.
752 * inferior.h (registers_info): Constify.
753 * copying.c: Rebuild.
754 * copying.awk: Constify generated commands.
755 * auto-load.c (auto_load_info_scripts)
756 (info_auto_load_gdb_scripts): Constify.
757 * cli/cli-decode.c (struct cmd_list_element): Take a
758 cmd_const_cfunc_ftype.
759 * command.h (add_info): Take a cmd_const_cfunc_ftype.
760 * tui/tui-win.c (tui_all_windows_info): Constify.
761 * python/py-auto-load.c (info_auto_load_python_scripts):
763 * cli/cli-cmds.c (show_command): Remove non-const overload.
764 * tracepoint.c (info_tvariables_command, info_scope_command):
766 (info_static_tracepoint_markers_command): Constify.
767 * thread.c (info_threads_command): Constify.
768 (print_thread_info_1): Constify.
769 * target.c (info_target_command): Constify.
770 * symtab.c (info_sources_command, info_functions_command)
771 (info_types_command): Constify.
772 (info_variables_command): Remove non-const overload.
773 * symfile.c (info_ext_lang_command): Constify.
774 * stack.c (info_frame_command, info_locals_command)
775 (info_args_command): Constify.
776 (backtrace_command): Remove non-const overload.
777 * source.c (info_source_command, info_line_command): Constify.
778 * solib.c (info_sharedlibrary_command): Constify.
779 * skip.c (info_skip_command): Constify.
780 * ser-go32.c (info_serial_command): Constify.
781 * reverse.c (info_bookmarks_command): Constify.
782 * printcmd.c (info_symbol_command, info_address_command)
783 (info_display_command): Constify.
784 * osdata.c (info_osdata_command): Constify.
785 * objc-lang.c (info_selectors_command, info_classes_command):
787 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
788 * memattr.c (info_mem_command): Constify.
789 * macrocmd.c (info_macro_command, info_macros_command): Constify.
790 * linux-fork.c (info_checkpoints_command): Constify.
791 * infrun.c (info_signals_command): Constify.
792 * inflow.c (info_terminal_command): Constify.
793 * inferior.c (info_inferiors_command): Constify.
794 (print_inferior): Constify.
795 * infcmd.c (info_program_command, info_all_registers_command)
796 (info_registers_command, info_vector_command)
797 (info_float_command): Constify.
798 (registers_info): Constify.
799 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
800 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
802 * f-valprint.c (info_common_command): Constify.
803 * dcache.c (info_dcache_command): Constify.
804 (dcache_info_1): Constify.
805 * darwin-nat-info.c (info_mach_tasks_command)
806 (info_mach_task_command, info_mach_ports_command)
807 (info_mach_port_command, info_mach_threads_command)
808 (info_mach_thread_command, info_mach_regions_command)
809 (info_mach_regions_recurse_command, info_mach_region_command)
810 (info_mach_exceptions_command): Constify.
811 (get_task_from_args): Constify.
812 * cp-support.c (info_vtbl_command): Constify.
813 * breakpoint.c (info_watchpoints_command)
814 (info_tracepoints_command): Constify.
815 (info_breakpoints_command): Remove non-const overload.
816 * avr-tdep.c (avr_io_reg_read_command): Constify.
817 * auxv.c (info_auxv_command): Constify.
818 * ada-tasks.c (info_tasks_command): Constify.
819 (info_task): Constify.
820 * ada-lang.c (info_exceptions_command): Constify.
822 2017-11-07 Tom Tromey <tom@tromey.com>
824 * solib.h (no_shared_libraries): Constify.
825 * frame.h (return_command): Constify.
826 * cli/cli-cmds.h (quit_command): Constify.
827 * top.h (quit_command, execute_command): Constify.
828 * target.h (flash_erase_command): Constify.
829 * inferior.h (set_inferior_args, attach_command): Constify.
830 * tracepoint.h (start_tracing, stop_tracing): Constify.
831 * breakpoint.h (break_command, tbreak_command)
832 (hbreak_command_wrapper, thbreak_command_wrapper)
833 (rbreak_command_wrapper, watch_command_wrapper)
834 (awatch_command_wrapper, rwatch_command_wrapper)
835 (get_tracepoint_by_number): Constify.
836 * symtab.c (info_variables_command, rbreak_command)
837 (symtab_symbol_info): Constify.
838 (info_variables_command): Add non-const overload.
839 * top.c (dont_repeat_command): Constify.
840 * breakpoint.c (ignore_command, commands_command)
841 (condition_command, tbreak_command, hbreak_command)
842 (thbreak_command, clear_command, break_command)
843 (info_breakpoints_command, watch_command, rwatch_command)
844 (awatch_command, trace_command, ftrace_command, strace_command)
845 (trace_pass_command, break_range_command, dprintf_command)
846 (agent_printf_command, get_tracepoint_by_number)
847 (watch_maybe_just_location, trace_pass_command): Constify.
848 (info_breakpoints_command): Add non-const overload.
849 * tracefile.c (tsave_command): Constify.
850 * infcmd.c (attach_command, disconnect_command, signal_command)
851 (queue_signal_command, stepi_command, nexti_command)
852 (finish_command, next_command, step_command, until_command)
853 (advance_command, jump_command, continue_command, run_command)
854 (start_command, starti_command, interrupt_command)
855 (run_command_1, set_inferior_args, step_1): Constify.
856 * inferior.c (add_inferior_command, remove_inferior_command)
857 (clone_inferior_command): Constify.
858 * linux-fork.c (checkpoint_command, restart_command): Constify.
859 * windows-nat.c (signal_event_command): Constify.
860 * guile/guile.c (guile_repl_command, guile_command): Constify.
861 * printcmd.c (x_command, display_command, printf_command)
862 (output_command, set_command, call_command, print_command)
863 (eval_command): Constify.
864 (non_const_set_command): Remove.
865 (_initialize_printcmd): Update.
866 * source.c (forward_search_command, reverse_search_command):
868 * jit.c (jit_reader_load_command, jit_reader_unload_command):
870 * infrun.c (handle_command): Constify.
871 * memattr.c (mem_command): Constify.
872 * stack.c (return_command, up_command, up_silently_command)
873 (down_command, down_silently_command, frame_command)
874 (backtrace_command, func_command, backtrace_command_1): Constify.
875 (backtrace_command): Add non-const overload.
876 * remote-sim.c (simulator_command): Constify.
877 * exec.c (set_section_command): Constify.
878 * tracepoint.c (tdump_command, trace_variable_command)
879 (tstatus_command, tstop_command, tstart_command)
880 (end_actions_pseudocommand, while_stepping_pseudocommand)
881 (collect_pseudocommand, teval_pseudocommand, actions_command)
882 (start_tracing, stop_tracing): Constify.
883 * value.c (init_if_undefined_command): Constify.
884 * tui/tui-stack.c (tui_update_command): Constify.
885 * tui/tui-win.c (tui_refresh_all_command)
886 (tui_set_tab_width_command, tui_set_win_height_command)
887 (tui_set_focus_command, tui_scroll_forward_command)
888 (tui_scroll_backward_command, tui_scroll_left_command)
889 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
890 (tui_set_win_height): Constify.
891 * tui/tui-layout.c (tui_layout_command): Constify.
892 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
893 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
894 (proc_untrace_sysexit_cmd): Constify.
895 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
896 (threadset_test_cmd, threadlist_update_test_cmd)
897 (threadalive_test): Constify.
898 * objc-lang.c (print_object_command): Constify.
899 * command.h (add_com): Constify.
900 * cli/cli-dump.c (restore_command): Constify.
901 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
902 (help_command, complete_command, shell_command, edit_command)
903 (list_command, disassemble_command, make_command)
904 (apropos_command, alias_command): Constify.
905 * cli/cli-script.c (document_command, define_command)
906 (while_command, if_command, validate_comname): Constify.
907 * cli/cli-decode.c (struct cmd_list_element): Change type of
909 * target.c (do_monitor_command, flash_erase_command): Constify.
910 * regcache.c (reg_flush_command): Constify.
911 * reverse.c (reverse_step, reverse_next, reverse_stepi)
912 (reverse_nexti, reverse_continue, reverse_finish)
913 (save_bookmark_command, goto_bookmark_command)
914 (exec_reverse_once): Constify.
915 * python/python.c (python_interactive_command, python_command):
917 * typeprint.c (ptype_command, whatis_command, whatis_exp):
919 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
920 * gcore.c (gcore_command): Constify.
922 2017-11-07 Tom Tromey <tom@tromey.com>
924 * printcmd.c (x_command): Call set_repeat_arguments.
925 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
926 * top.c (repeat_arguments): New global.
927 (set_repeat_arguments): New function.
928 (execute_command): Handle repeat_arguments.
929 (show_commands): Calls set_repeat_arguments.
930 * command.h (set_repeat_arguments): Declare.
932 2017-11-07 Tom Tromey <tom@tromey.com>
934 * stack.c (backtrace_command): Use std::string.
935 (backtrace_command_1): Make "count_exp" const.
937 2017-11-07 Tom Tromey <tom@tromey.com>
939 * source.c (directory_switch, mod_path, add_path): Constify.
940 * defs.h (add_path, mod_path, directory_switch): Constify.
941 * mi/mi-cmd-env.c (env_mod_path): Constify.
943 2017-11-07 Tom Tromey <tom@tromey.com>
945 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
946 (run_command_1, continue_command, step_1, jump_command)
947 (signal_command, until_command, advance_command, finish_command)
948 (attach_command): Update.
950 2017-11-07 Tom Tromey <tom@tromey.com>
952 * command.h (set_cmd_cfunc): Don't declare.
953 * cli/cli-decode.c (set_cmd_cfunc): Now static.
955 2017-11-07 Tom Tromey <tom@tromey.com>
957 * stack.c (select_frame_command): Constify.
958 * cli/cli-decode.c (add_com_suppress_notification): Constify.
959 * command.h (add_com_suppress_notification): Constify.
961 2017-11-07 Tom Tromey <tom@tromey.com>
963 * breakpoint.c (stop_command): Constify.
964 * cli/cli-decode.c (struct cmd_list_element): Constify.
965 * command.h (add_abbrev_prefix_cmd): Constify.
967 2017-11-07 Pedro Alves <palves@redhat.com>
969 * breakpoint.c (extract_bp_kind): New enum.
970 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
971 factored out from ...
972 (extract_bp_number_and_location): ... here.
973 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
975 2017-11-07 Pedro Alves <palves@redhat.com>
977 * breakpoint.c (extract_bp_number_and_location): Change return
978 type to void. Throw error instead of warning.
979 (enable_disable_command): Adjust.
981 2017-11-07 Xavier Roirand <roirand@adacore.com>
982 Pedro Alves <palves@redhat.com>
984 * breakpoint.c (map_breakpoint_number_range): New, factored out
986 (map_breakpoint_numbers): ... here.
987 (find_location_by_number): Change parameters from string to
988 breakpoint number and location.
989 (extract_bp_number_and_location): New function.
990 (enable_disable_bp_num_loc)
991 (enable_disable_breakpoint_location_range)
992 (enable_disable_command): New functions, factored out ...
993 (enable_command, disable_command): ... these functions, and
994 adjusted to support ranges.
995 * NEWS: Document enable/disable breakpoint location range feature.
997 2017-11-06 Luis Machado <luis.machado@linaro.org>
999 * MAINTAINERS (Write After Approval): Update my e-mail address.
1001 2017-11-06 Pedro Alves <palves@redhat.com>
1003 * gnu-nat.c (gnu_terminal_init): Delete.
1004 (gnu_target): Don't install gnu_terminal_init.
1005 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
1006 (child_terminal_init): ... this function.
1008 2017-11-06 Pedro Alves <palves@redhat.com>
1010 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
1012 * config.in, configure: Regenerate.
1014 2017-11-06 Pedro Alves <palves@redhat.com>
1016 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
1017 (async_init_signals): Adjust.
1018 (handle_stop_sig): Rename to ...
1019 (handle_sigtstp): ... this.
1020 (async_stop_sig): Rename to ...
1021 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
1023 * event-top.h: Move signal.h include to the top. Check SIGTSTP
1024 instead of STOP_SIGNAL thoughout.
1025 (handle_stop_sig): Rename to ...
1026 (handle_sigtstp): ... this.
1027 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
1029 2017-11-06 Pedro Alves <palves@redhat.com>
1031 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
1032 longer set flags twice in row.
1034 2017-11-06 Pedro Alves <palves@redhat.com>
1036 * Makefile.in (SER_HARDWIRE): Update comment.
1037 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
1038 * common/gdb_termios.h: Delete file.
1039 * common/job-control.c: Include termios.h and unistd.h instead of
1041 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
1043 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
1045 * configure.ac: No longer check for termio.h and sgtty.h.
1046 * configure: Regenerate.
1047 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
1048 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
1049 Replace PROCESS_GROUP_TYPE references with pid_t references
1051 (gdb_getpgrp): Delete.
1052 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
1053 (child_terminal_inferior): Remove comment. Remove sgtty code.
1054 (child_terminal_ours_1): Use tcgetpgrp directly instead of
1055 gdb_getpgrp. Use serial_set_tty_state instead aof
1056 serial_noflush_set_tty_state. Remove sgtty code.
1057 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
1058 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
1059 (inferior_process_group): Now returns pid_t.
1060 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
1061 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
1062 * ser-event.c (serial_event_ops): Update.
1063 * ser-go32.c (dos_noflush_set_tty_state): Delete.
1065 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
1066 * ser-pipe.c (pipe_ops): Update.
1067 * ser-tcp.c (tcp_ops): Update.
1068 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
1069 HAVE_TERMIOS checks.
1070 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
1071 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
1072 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
1074 (hardwire_noflush_set_tty_state): Delete.
1075 (hardwire_print_tty_state, hardwire_drain_output)
1076 (hardwire_flush_output, hardwire_flush_input)
1077 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
1078 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
1079 code, and assume termios.
1080 (hardwire_ops): Update.
1081 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
1082 * serial.c (serial_noflush_set_tty_state): Delete.
1083 * serial.h (serial_noflush_set_tty_state): Delete.
1084 (serial_ops::noflush_set_tty_state): Delete.
1086 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1088 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
1089 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
1090 (COMMON_OBS): Remove doublest.o and dfp.o.
1091 Do not build target-float.c (instead of doublest.c)
1092 with -Wformat-nonliteral.
1094 * doublest.c: Remove file.
1095 * doublest.h: Remove file.
1096 * dfp.c: Remove file.
1097 * dfp.h: Remove file.
1099 * target-float.c: Do not include "doublest.h" and "dfp.h".
1100 (DOUBLEST): Move here from doublest.h.
1101 (enum float_kind): Likewise.
1102 (FLOATFORMAT_CHAR_BIT): Likewise.
1103 (FLOATFORMAT_LARGEST_BYTES): Likewise.
1104 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
1105 (floatformat_precision): Likewise.
1106 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
1107 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
1109 (host_float_format, host_double_format, host_long_double_format):
1111 (floatformat_to_string, floatformat_from_string): Likewise.
1112 (floatformat_to_doublest): Likewise. Also, inline the original
1113 convert_floatformat_to_doublest.
1114 (floatformat_from_doublest): Likewise. Also, inline the original
1115 convert_floatformat_from_doublest.
1117 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
1118 (MAX_DECIMAL_STRING): Move here from dfp.c.
1119 (match_endianness): Likewise.
1120 (set_decnumber_context, decimal_check_errors): Likewise.
1121 (decimal_from_number, decimal_to_number): Likewise.
1122 (decimal_to_string, decimal_from_string): Likewise. Make static.
1123 (decimal_from_longest, decimal_from_ulongest): Likewise.
1124 (decimal_to_longest): Likewise.
1125 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
1126 (decimal_convert): Likewise.
1128 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1130 * doublest.c: Do not include "gdbtypes.h".
1131 (extract_typed_floating): Remove.
1132 (store_typed_floating): Remove.
1133 (convert_typed_floating): Remove.
1134 * doublest.h (struct type): Remove.
1135 (DOUBLEST_PRINT_FORMAT): Remove.
1136 (DOUBLEST_SCAN_FORMAT): Remove.
1137 (extract_typed_floating): Remove.
1138 (store_typed_floating): Remove.
1139 (convert_typed_floating): Remove.
1141 * dfp.c (decimal_from_doublest): Remove.
1142 (decimal_to_doublest): Remove.
1143 * dfp.h: Do not include "doublest.h".
1144 (decimal_from_doublest): Remove.
1145 (decimal_to_doublest): Remove.
1147 * value.c: Do not include "doublest.h" and "dfp.h".
1148 (value_as_double): Remove.
1149 (unpack_double): Remove.
1150 (value_from_double): Remove.
1151 (value_from_decfloat): Remove.
1152 * value.h: Do not include "doublest.h".
1153 (value_as_double): Remove.
1154 (unpack_double): Remove.
1155 (value_from_double): Remove.
1156 (value_from_decfloat): Remove.
1158 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1160 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
1161 (i386_extract_return_value): Use target_float_convert.
1162 (i386_store_return_value): Likewise.
1163 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
1164 (i387_value_to_register): Likewise.
1165 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
1166 (ia64_register_to_value): Use target_float_convert.
1167 (ia64_value_to_register): Likewise.
1168 (ia64_extract_return_value): Likewise.
1169 (ia64_store_return_value): Likewise.
1170 (ia64_push_dummy_call): Likewise.
1171 * m68k-tdep.c: Include "target-float.h".
1172 (m68k_register_to_value): Use target_float_convert.
1173 (m68k_value_to_register): Likewise.
1174 (m68k_svr4_extract_return_value): Likewise.
1175 (m68k_svr4_store_return_value): Likewise.
1176 * ppc-sysv-tdep.c: Include "target-float.h".
1177 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
1178 (do_ppc_sysv_return_value): Likewise.
1179 (ppc64_sysv_abi_push_freg): Likewise.
1180 (ppc64_sysv_abi_return_value_base): Likewise.
1181 * rs6000-aix-tdep.c: Include "target-float.h".
1182 (rs6000_push_dummy_call): Use target_float_convert.
1183 (rs6000_return_value): Likewise.
1184 * rs6000-lynx178-tdep.c: Include "target-float.h".
1185 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
1186 (rs6000_lynx178_return_value): Likewise.
1187 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
1188 (rs6000_register_to_value): Use target_float_convert.
1189 (rs6000_value_to_register): Likewise.
1190 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
1191 (arm_extract_return_value): Use target_float_convert.
1192 (arm_store_return_value): Likewise.
1193 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
1194 (sh_register_convert_to_virtual): Use target_float_convert.
1195 (sh_register_convert_to_raw): Likewise.
1196 * sh64-tdep.c: Include "target-float.h".
1197 (sh64_extract_return_value): Use target_float_convert.
1198 (sh64_register_convert_to_virtual): Likewise.
1199 (sh64_register_convert_to_raw): Likewise. Fix argument types.
1201 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1203 * target-float.c (floatformat_to_host_double): New function.
1204 (floatformat_from_host_double): Likewise.
1205 (target_float_to_host_double): Likewise.
1206 (target_float_from_host_double): Likewise.
1207 * target-float.h (target_float_to_host_double): Add prototype.
1208 (target_float_from_host_double): Likewise.
1210 * guile/scm-value.c: Include "target-float.h".
1211 (gdbscm_value_to_real): Use target_float_to_host_double.
1212 Handle integer source values via value_as_long.
1213 * guile/scm-math.c: Include "target-float.h". Do not include
1214 "doublest.h", "dfp.h", and "expression.h".
1215 (vlscm_convert_typed_number): Use target_float_from_host_double.
1216 (vlscm_convert_number): Likewise.
1218 * python/py-value.c (valpy_float): Use target_float_to_host_double.
1219 (convert_value_from_python): Use target_float_from_host_double.
1221 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1223 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
1224 (cast_from_fixed): Likewise.
1225 (ada_scaling_type): New function.
1226 (ada_delta): Return value instead of DOUBLEST. Perform target
1227 arithmetic instead of host arithmetic.
1228 (scaling_factor): Rename to ...
1229 (ada_scaling_factor) ... this. Make non-static. Return value instead
1230 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
1231 (ada_fixed_to_float): Remove.
1232 (ada_float_to_fixed): Remove.
1233 * ada-lang.h (ada_fixed_to_float): Remove.
1234 (ada_float_to_fixed): Remove.
1235 (ada_delta): Return value instead of DOUBLEST.
1236 (ada_scaling_factor): Add prototype.
1238 * ada-typeprint.c: Include "target-float.h".
1239 (print_fixed_point_type): Perform target arithmetic instead of
1241 * ada-valprint.c: Include "target-float.h".
1242 (ada_val_print_num): Perform target arithmetic instead of
1243 host arithmetic for fixed-point types.
1245 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1247 * target-float.c: Include <math.h>.
1248 (floatformat_binop): New function.
1249 (floatformat_compare): Likewise.
1250 (target_float_binop): Likewise.
1251 (target_float_compare): Likewise.
1252 * target-float.h: Include "expression.h".
1253 (target_float_binop): Add prototype.
1254 (target_float_compare): Likewise.
1256 * valarith.c: Do not include "doublest.h" and "dfp.h".
1257 Include "common/byte-vector.h".
1258 (value_args_as_decimal): Remove, replace by ...
1259 (value_args_as_target_float): ... this function. Handle both
1260 binary and decimal target floating-point formats.
1261 (scalar_binop): Handle both binary and decimal FP using
1262 value_args_as_target_float and target_float_binop.
1263 (value_equal): Handle both binary and decimal FP using
1264 value_args_as_target_float and target_float_compare.
1265 (value_less): Likewise.
1266 (value_pos): Handle all scalar types as simple copy.
1267 (value_neg): Handle all scalar types via BINOP_SUB from 0.
1268 * dfp.c (decimal_binop): Throw error instead of internal_error
1269 when called with an unsupported operation code.
1271 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1273 * target-float.c (target_float_to_string): New function.
1274 (target_float_from_string): New function.
1275 * target-float.h (target_float_to_string): Add prototype.
1276 (target_float_from_string): Add prototype.
1278 * valprint.c: Include "target-float.h". Do not include
1279 "doublest.h" and "dfp.h".
1280 (print_floating): Use target_float_to_string.
1281 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
1282 (printf_floating): Use target_float_to_string.
1283 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
1284 (print_i387_value): Use target_float_to_string.
1285 * mips-tdep.c: Include "target-float.h".
1286 (mips_print_fp_register): Use target_float_to_string.
1287 * sh64-tdep.c: Include "target-float.h".
1288 (sh64_do_fp_register): Use target_float_to_string.
1290 * parse.c: Include "target-float.h". Do not include
1291 "doublest.h" and "dfp.h".
1292 (parse_float): Use target_float_from_string.
1293 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
1294 (define_symbol): Use target_float_from_string.
1295 * gdbarch-selftests.c: Include "target-float.h".
1296 (register_to_value_test): Use target_float_from_string.
1298 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1300 * Makefile.c (SFILES): Add target-float.c.
1301 (HFILES_NO_SRCDIR): Add target-float.h.
1302 (COMMON_OBS): Add target-float.o.
1303 * target-float.h: New file.
1304 * target-float.c: New file.
1306 * doublest.c (floatformat_classify): Fix detection of float_zero.
1308 * gdbtypes.c (is_floating_type): New function.
1309 * gdbtypes.h (is_floating_type): Add prototype.
1311 * value.c: Do not include "floatformat.h".
1312 (unpack_double): Use target_float_is_valid.
1313 (is_floating_value): New function.
1314 * value.h (is_floating_value): Add prototype-
1316 * valarith.c: Include "target-float.h".
1317 (value_logical_not): Use target_float_is_zero.
1319 * python/py-value.c: Include "target-float.h".
1320 (valpy_nonzero): Use target_float_is_zero.
1322 2017-11-04 Tom Tromey <tom@tromey.com>
1324 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
1326 2017-11-04 Tom Tromey <tom@tromey.com>
1328 * breakpoint.c (set_momentary_breakpoint): Return
1330 (until_break_command): Update.
1331 (new_until_break_fsm): Change argument types to
1333 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
1334 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
1336 * infcmd.c (finish_forward): Update.
1337 * breakpoint.h (set_momentary_breakpoint)
1338 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
1339 (make_cleanup_delete_breakpoint): Remove.
1340 (struct breakpoint_deleter): New.
1341 (breakpoint_up): New typedef.
1342 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
1343 (insert_exception_resume_breakpoint): Update.
1344 (insert_exception_resume_from_probe): Update.
1345 (insert_longjmp_resume_breakpoint): Update.
1346 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
1347 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
1348 * infcall.c (call_function_by_hand_dummy): Update
1350 2017-11-04 Tom Tromey <tom@tromey.com>
1352 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
1354 2017-11-04 Tom Tromey <tom@tromey.com>
1356 * linux-tdep.c (linux_core_info_proc_mappings): Use
1358 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
1360 (linux_corefile_thread): Update.
1361 (linux_make_corefile_notes): Remove unused variable.
1363 2017-11-04 Tom Tromey <tom@tromey.com>
1365 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
1368 2017-11-04 Tom Tromey <tom@tromey.com>
1370 * objfiles.c (do_free_objfile_cleanup): Remove.
1371 * compile/compile-object-load.c (compile_object_load): Update.
1372 * objfiles.h (make_cleanup_free_objfile): Remove.
1374 2017-11-04 Tom Tromey <tom@tromey.com>
1376 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
1377 (adi_read_versions): Change "tags" to "gdb_byte *".
1378 (adi_print_versions): Likewise.
1380 2017-11-04 Tom Tromey <tom@tromey.com>
1383 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
1384 from start_rbreak_breakpoints.
1385 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
1386 * breakpoint.h (class scoped_rbreak_breakpoints): New.
1387 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
1388 * symtab.c (do_end_rbreak_breakpoints): Remove.
1389 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
1391 2017-11-04 Tom Tromey <tom@tromey.com>
1393 * cp-namespace.c (reset_directive_searched): Remove.
1394 (cp_lookup_symbol_via_imports): Use scoped_restore.
1395 * cp-support.c (reset_directive_searched): Remove.
1396 (make_symbol_overload_list_using): Use scoped_restore.
1397 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
1398 (reset_directive_searched): Remove.
1400 2017-11-04 Tom Tromey <tom@tromey.com>
1402 * symfile.c (find_separate_debug_file_by_debuglink): Use
1405 2017-11-04 Tom Tromey <tom@tromey.com>
1407 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
1409 (compute_stack_depth): Likewise.
1410 (do_compile_dwarf_expr_to_c): Use std::vector.
1412 2017-11-04 Tom Tromey <tom@tromey.com>
1414 * compile/compile-object-load.c (link_callbacks_einfo): Use
1417 2017-11-04 Tom Tromey <tom@tromey.com>
1419 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
1420 Use scoped_free_pendings.
1421 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
1422 scoped_free_pendings.
1423 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
1424 (xcoff_initial_scan): Likewise.
1425 * buildsym.c (reset_symtab_globals): Update comment.
1426 (scoped_free_pendings): Rename from really_free_pendings.
1427 (prepare_for_building): Update comment.
1428 (buildsym_init): Likewise.
1429 * buildsym.h (class scoped_free_pendings): New class.
1430 (really_free_pendings): Don't declare.
1432 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
1434 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
1435 output when converting a zero value to a special byteorder format.
1437 2017-11-02 Yao Qi <yao.qi@linaro.org>
1439 * frame.c (do_frame_register_read): Remove aspace.
1440 * jit.c (jit_frame_sniffer): Likwise.
1441 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
1442 * regcache.c (regcache::regcache): Pass nullptr.
1443 (regcache_print): Caller updated.
1444 * regcache.h (regcache::regcache): Remove one constructor
1447 2017-11-02 Yao Qi <yao.qi@linaro.org>
1449 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
1451 2017-11-02 Yao Qi <yao.qi@linaro.org>
1453 * breakpoint.c (insert_single_step_breakpoints): Update.
1454 * frame.c (struct frame_info) <aspace>: Add const.
1455 (frame_save_as_regcache): Add const.
1456 (get_frame_address_space): Return const address_space *.
1457 * frame.h (get_frame_address_space): Update declaration.
1458 * infrun.c (struct step_over_info) <aspace>: Add const.
1459 (set_step_over_info): Make aspace const.
1460 (displaced_step_prepare_throw): Change variable const.
1462 (proceed): Likewise.
1463 (adjust_pc_after_break): Likewise.
1464 (save_waitstatus): Likewise.
1465 (handle_signal_stop): Likewise.
1466 (keep_going_pass_signal): Likewise.
1467 * jit.c (jit_frame_sniffer): Add const.
1468 * mips-tdep.c (mips_single_step_through_delay): Likewise.
1469 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
1470 * record-full.c (record_full_wait_1): Likewise.
1471 * regcache.c (regcache::regcache): Change parameter to const.
1472 * regcache.h (regcache::regcache): Likewise.
1473 (regcache::aspace): Return const address_space *.
1474 (regcache) <m_aspace>: Add const.
1476 2017-11-02 Yao Qi <yao.qi@linaro.org>
1478 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
1479 * frame.c (create_sentinel_frame): Likewise.
1480 * infrun.c (displaced_step_prepare_throw): Likewise.
1482 (thread_still_needs_step_over_bp): Likewise.
1483 (proceed): Likewise.
1484 (do_target_wait): Likewise.
1485 (adjust_pc_after_break): Likewise.
1486 (handle_syscall_event): Likewise.
1487 (save_waitstatus): Likewise.
1488 (handle_inferior_event_1): Likewise.
1489 (handle_signal_stop): Likewise.
1490 (keep_going_pass_signal): Likewise.
1491 * linux-nat.c (status_callback): Likewise.
1492 (save_stop_reason): Likewise.
1493 (resume_stopped_resumed_lwps): Likewise.
1494 * record-full.c (record_full_exec_insn): Likewise.
1495 (record_full_wait_1): Likewise.
1496 * regcache.c (get_regcache_aspace): Remove.
1497 * regcache.h (get_regcache_aspace): Remove.
1499 2017-11-02 Yao Qi <yao.qi@linaro.org>
1501 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
1502 (init_regcache_descr): Use gdbarch_num_regs.
1503 (regcache::regcache): Likewise.
1504 (regcache::get_register_status): Likewise.
1505 (regcache::assert_raw_regnum): Likewise.
1506 (regcache::cooked_read): Likewise.
1507 (regcache::cooked_read_value): Likewise.
1508 (regcache::cooked_write): Likewise.
1509 (regcache::dump): Likewise.
1510 (regcache::num_raw_registers): New method.
1511 * regcache.h (class regcache) <num_raw_registers>: New.
1513 2017-11-02 Yao Qi <yao.qi@linaro.org>
1515 * regcache.c (regcache::assert_regnum): New method.
1516 (regcache::invalidate): Call assert_regnum.
1517 (regcache::raw_update): Likewise.
1518 (regcache::raw_write): Likewise.
1519 (regcache::raw_read_part): Likewise.
1520 (regcache::raw_write_part): Likewise.
1521 (regcache::raw_supply): Likewise.
1522 (regcache::raw_supply_integer): Likewise.
1523 (regcache::raw_supply_zeroed): Likewise.
1524 (regcache::raw_collect): Likewise.
1525 (regcache::raw_collect_integer): Likewise.
1526 * regcache.h (regcache::assert_regnum): Declare.
1528 2017-11-02 Yao Qi <yao.qi@linaro.org>
1530 * regcache.c (regcache::dump): Remove code.
1532 2017-11-02 Yao Qi <yao.qi@linaro.org>
1534 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
1536 <sizeof_cooked_register_status>: Remove.
1537 (init_regcache_descr): Update.
1538 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
1539 (regcache::save): Likewise.
1540 (regcache::dump): Likewise.
1542 2017-11-01 James Bowman <james.bowman@ftdichip.com>
1544 * ft32-tdep.c (ft32_fetch_instruction): New function.
1545 (ft32_analyze_prologue): Use ft32_fetch_instruction().
1547 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1549 * cli/cli-script.c (execute_control_command): Rename to ...
1550 (execute_control_command_1): ... this.
1551 (execute_control_command): New function.
1553 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
1555 * tracepoint.c (tfind_command): Remove const_cast.
1557 2017-10-30 Mike Gulick <mgulick@mathworks.com>
1559 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
1561 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
1563 * common/common-utils.h (in_inclusive_range): New function.
1564 * arm-tdep.c (arm_record_extension_space): Use
1566 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
1567 * cris-tdep.c (cris_spec_reg_applicable): Use
1570 2017-10-30 Pedro Alves <palves@redhat.com>
1571 Simon Marchi <simon.marchi@ericsson.com>
1573 * remote.c (remote_set_syscall_catchpoint): Build a std::string
1574 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
1576 2017-10-30 Pedro Alves <palves@redhat.com>
1578 * common/common-utils.c (string_appendf, string_vappendf): New
1580 * common/common-utils.h (string_appendf, string_vappendf): New
1582 * unittests/common-utils-selftests.c (string_appendf_func)
1583 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
1584 (string_vappendf_tests): New functions.
1585 (_initialize_common_utils_selftests): Register "string_appendf" and
1586 "string_vappendf tests".
1588 2017-10-30 Pedro Alves <palves@redhat.com>
1590 * unittests/common-utils-selftests.c (format_func): New typedef.
1591 (string_printf_tests, string_vprintf_tests): Tests factored out
1593 (test_format_func): ... this new function.
1594 (string_printf_tests, string_vprintf_tests): Reimplement on top of
1597 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1599 * darwin-nat.c: Remove include of gdb.h.
1601 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1603 * xtensa-xtregs.c: Fix formatting issues.
1605 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1607 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
1609 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
1612 * python/py-infthread.c (thpy_get_inferior): Increment reference
1613 of inferior before returning it.
1615 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1617 * unittests/common-utils-selftests.c (format): Add
1620 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1622 * xml-syscall.c (struct syscall_desc): Add constructor.
1623 <name>: Change type to std::string.
1624 (syscall_desc_up): New typedef.
1625 (syscall_desc_p): Remove typeder.
1626 (DEF_VEC_P(syscall_desc_p)): Remove.
1627 (struct syscall_group_desc): Add constructor.
1628 <name>: Change type to std::string.
1629 <syscalls>: Change type to std::vector.
1630 (syscall_group_desc_up): New typedef.
1631 (syscall_group_desc_p): Remove typedef.
1632 (DEF_VEC_P(syscall_group_desc_p)): Remove.
1633 (struct syscalls_info) <syscalls>: Change type to std::vector of
1636 <my_gdb_datadir>: Change type to std::string.
1637 (syscalls_info_up): New typedef.
1638 (allocate_syscalls_info): Remove.
1639 (syscalls_info_free_syscalls_desc): Remove.
1640 (syscalls_info_free_syscall_group_desc): Remove.
1641 (free_syscalls_info): Remove.
1642 (make_cleanup_free_syscalls_info): Remove.
1643 (syscall_group_create_syscall_group_desc): Adjust.
1644 (syscall_group_add_syscall): Adjust.
1645 (syscall_create_syscall_desc): Adjust.
1646 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
1647 (init_syscalls_info): Adjust.
1648 (syscall_group_get_group_by_name): Adjust.
1649 (xml_get_syscall_number): Adjust.
1650 (xml_get_syscall_name): Adjust.
1651 (xml_list_of_syscalls): Adjust.
1652 (xml_list_syscalls_by_group): Adjust.
1653 (xml_list_of_groups): Adjust.
1655 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1657 * probe.h: Don't include gdb_vecs.h.
1658 (DEF_VEC_P (probe_p)): Remove.
1659 (find_probes_in_objfile): Return an std::vector.
1660 * probe.c (find_probes_in_objfile): Likewise.
1661 * breakpoint.c (breakpoint_objfile_data)
1662 <longjmp_probes>: Change type to std::vector.
1663 <exception_probes>: Likewise.
1664 (free_breakpoint_probes): Don't manually free vectors.
1665 (create_longjmp_master_breakpoint): Adjust.
1666 (create_exception_master_breakpoint): Adjust.
1667 * solib-svr4.c (svr4_create_probe_breakpoints): Change
1668 parameter type, adjust.
1669 (svr4_create_solib_event_breakpoints): Adjust.
1671 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1673 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
1674 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
1676 (free_breakpoint_probes): Rename to ...
1677 (free_breakpoint_objfile_data): ... this, and call delete on
1680 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1682 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
1683 (loaded_script_ptr): Remove typedef.
1684 (DEF_VEC_P (loaded_script_ptr)): Remove.
1685 (struct collect_matching_scripts_data): Add constructor.
1686 <scripts_p>: Change type to (pointer to) std::vector.
1687 (collect_matching_scripts_data): Adjust.
1688 (sort_scripts_by_name): Make suitable for std::sort.
1689 (print_scripts): Don't sort vector, adjust to std::vector.
1690 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
1692 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1694 * symfile.c (filename_language): Make struct, not typedef. Add
1696 <ext>: Change type to std::string.
1697 (DEF_VEC_O (filename_language)): Remove.
1698 (filename_language_table): Change type to std::vector.
1699 (add_filename_language): Adjust.
1700 (set_ext_lang_command): Adjust.
1701 (info_ext_lang_command): Adjust.
1702 (deduce_language_from_filename): Adjust.
1703 (class scoped_restore_filename_language_table): Remove.
1704 (test_filename_language): Use scoped_restore.
1705 (test_set_ext_lang_command): Use scoped_restore, adjust to
1708 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1710 * symfile.c: Include selftest.h.
1711 (class scoped_restore_filename_language_table): New.
1712 (test_filename_language): New test.
1713 (test_set_ext_lang_command): New test.
1714 (_initialize_symfile): Register tests.
1716 2017-10-27 Keith Seitz <keiths@redhat.com>
1718 * breakpoint.c (print_breakpoint_location): Use the symbol saved
1719 in the bp_location, falling back to find_pc_sect_function when
1721 (add_location_to_breakpoint): Save sal->symbol.
1722 * breakpoint.h (struct bp_location) <symbol>: New field.
1723 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
1724 * symtab.h (struct symtab_and_line) <symbol>: New field.
1726 2017-10-26 Patrick Frants <osscontribute@gmail.com>
1729 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
1732 2017-10-26 Pedro Alves <palves@redhat.com>
1734 * remote.c (remote_async_terminal_ours_p): Delete.
1735 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
1736 Remove references to 'remote_async_terminal_ours_p'.
1738 2017-10-26 Yao Qi <yao.qi@linaro.org>
1740 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
1742 2017-10-26 Yao Qi <yao.qi@linaro.org>
1744 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
1746 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
1748 * breakpoint.c (bpstat_check_location): Remove cast.
1749 (breakpoint_hit_catch_fork): Make aspce const.
1750 (breakpoint_hit_catch_solib): Likewise.
1751 (breakpoint_hit_catch_exec): Likewise.
1752 (breakpoint_hit_ranged_breakpoint): Likewise.
1753 (breakpoint_hit_watchpoint): Likewise.
1754 (base_breakpoint_breakpoint_hit): Likewise.
1755 (bkpt_breakpoint_hit): Likewise.
1756 (dprintf_breakpoint_hit): Likewise.
1757 (tracepoint_breakpoint_hit): Likewise.
1758 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
1760 2017-10-26 Yao Qi <yao.qi@linaro.org>
1762 * breakpoint.c (breakpoint_location_address_match): Change
1763 "struct address_space *" to "const address_space".
1764 (breakpoint_location_address_range_overlap): Likewise.
1765 (breakpoint_here_p): Likewise.
1766 (breakpoint_in_range_p): Likewise.
1767 (moribund_breakpoint_here_p): Likewise.
1768 (bp_location_inserted_here_p): Likewise.
1769 (software_breakpoint_inserted_here_p): Likewise.
1770 (hardware_breakpoint_inserted_here_p): Likewise.
1771 (hardware_watchpoint_inserted_in_range): Likewise.
1772 (bpstat_check_location): Likewise.
1773 (bpstat_stop_status): Likewise.
1774 (breakpoint_address_match): Likewise.
1775 (breakpoint_address_match_range): Likewise.
1776 (breakpoint_location_address_match): Likewise.
1777 (breakpoint_location_address_range_overlap): Likewise.
1778 (insert_single_step_breakpoint): Likewise.
1779 (breakpoint_has_location_inserted_here): Likewise.
1780 (single_step_breakpoint_inserted_here_p): Likewise.
1781 (pc_at_non_inline_function): Likewise.
1782 * breakpoint.h (bpstat_stop_status): Update declaration.
1783 (breakpoint_here_p): Likewise.
1784 (breakpoint_in_range_p): Likewise.
1785 (moribund_breakpoint_here_p): Likewise.
1786 (breakpoint_inserted_here_p): Likewise.
1787 (software_breakpoint_inserted_here_p): Likewise.
1788 (hardware_breakpoint_inserted_here_p): Likewise.
1789 (breakpoint_has_location_inserted_here): Likewise.
1790 (single_step_breakpoint_inserted_here_p): Likewise.
1791 (hardware_watchpoint_inserted_in_range): Likewise.
1792 (breakpoint_address_match): Likewise.
1793 (insert_single_step_breakpoint): Likewise.
1794 (pc_at_non_inline_function): Likewise.
1795 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
1796 * record.c (record_check_stopped_by_breakpoint): Likewise.
1797 * record.h (record_check_stopped_by_breakpoint): Likewise.
1798 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
1800 2017-10-25 Yao Qi <yao.qi@linaro.org>
1802 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
1803 regcache->arch () instead get_regcache_arch.
1804 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
1806 (aarch64_fbsd_store_inferior_registers): Likewise.
1807 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
1808 (store_gregs_to_thread): Likewise.
1809 (fetch_fpregs_from_thread): Likewise.
1810 (store_fpregs_to_thread): Likewise.
1811 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
1812 (aarch64_store_return_value): Likewise.
1813 (aarch64_software_single_step): Likewise.
1814 * aix-thread.c (aix_thread_wait): Likewise.
1815 (supply_reg32): Likewise.
1816 (supply_sprs64): Likewise.
1817 (supply_sprs32): Likewise.
1818 (fill_gprs64): Likewise.
1819 (fill_gprs32): Likewise.
1820 (fill_sprs64): Likewise.
1821 (fill_sprs32): Likewise.
1822 (store_regs_user_thread): Likewise.
1823 (store_regs_kernel_thread): Likewise.
1824 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
1825 (alphabsd_store_inferior_registers): Likewise.
1826 * alpha-tdep.c (alpha_extract_return_value): Likewise.
1827 (alpha_store_return_value): Likewise.
1828 (alpha_deal_with_atomic_sequence): Likewise.
1829 (alpha_next_pc): Likewise.
1830 (alpha_software_single_step): Likewise.
1831 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
1832 (amd64bsd_store_inferior_registers): Likewise.
1833 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
1835 (amd64_linux_store_inferior_registers): Likewise.
1836 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1837 (amd64_collect_native_gregset): Likewise.
1838 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
1839 (amd64obsd_collect_uthread): Likewise.
1840 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
1841 (amd64_collect_fpregset): Likewise.
1842 (amd64_supply_fxsave): Likewise.
1843 (amd64_supply_xsave): Likewise.
1844 (amd64_collect_fxsave): Likewise.
1845 (amd64_collect_xsave): Likewise.
1846 * arc-tdep.c (arc_write_pc): Likewise.
1847 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
1848 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
1849 (arm_fbsd_store_inferior_registers): Likewise.
1850 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
1851 (store_vfp_regs): Likewise.
1852 (arm_linux_fetch_inferior_registers): Likewise.
1853 (arm_linux_store_inferior_registers): Likewise.
1854 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1855 (arm_linux_sigreturn_next_pc): Likewise.
1856 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
1857 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
1858 (fetch_register): Likewise.
1859 (store_register): Likewise.
1860 * arm-tdep.c (arm_is_thumb): Likewise.
1861 (displaced_in_arm_mode): Likewise.
1862 (bx_write_pc): Likewise.
1863 (arm_get_next_pcs_addr_bits_remove): Likewise.
1864 (arm_software_single_step): Likewise.
1865 (arm_extract_return_value): Likewise.
1866 (arm_store_return_value): Likewise.
1867 (arm_write_pc): Likewise.
1868 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1869 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
1870 (bsd_uthread_store_registers): Likewise.
1871 * core-regset.c (fetch_core_registers): Likewise.
1872 * corelow.c (get_core_registers): Likewise.
1873 * cris-tdep.c (cris_store_return_value): Likewise.
1874 (cris_extract_return_value): Likewise.
1875 (find_step_target): Likewise.
1876 (find_step_target): Likewise.
1877 (cris_software_single_step): Likewise.
1878 * ctf.c (ctf_fetch_registers): Likewise.
1879 * darwin-nat.c (cancel_breakpoint): Likewise.
1880 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
1881 * frv-tdep.c (frv_extract_return_value): Likewise.
1882 * ft32-tdep.c (ft32_store_return_value): Likewise.
1883 (ft32_extract_return_value): Likewise.
1884 * go32-nat.c (fetch_register): Likewise.
1885 (go32_fetch_registers): Likewise.
1886 (go32_store_registers): Likewise.
1887 (store_register): Likewise.
1888 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1889 (h8300_store_return_value): Likewise.
1890 * hppa-linux-nat.c (fetch_register): Likewise.
1891 (store_register): Likewise.
1892 (hppa_linux_fetch_inferior_registers): Likewise.
1893 (hppa_linux_store_inferior_registers): Likewise.
1894 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
1895 (i386_darwin_store_inferior_registers): Likewise.
1896 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
1897 (gnu_store_registers): Likewise.
1898 * i386-linux-nat.c (fetch_register): Likewise.
1899 (store_register): Likewise.
1900 (supply_gregset): Likewise.
1901 (fill_gregset): Likewise.
1902 (i386_linux_fetch_inferior_registers): Likewise.
1903 (i386_linux_store_inferior_registers): Likewise.
1904 (i386_linux_resume): Likewise.
1905 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
1907 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
1908 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
1909 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
1910 (i386obsd_collect_uthread): Likewise.
1911 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1912 (i386_supply_gregset): Likewise.
1913 (i386_collect_gregset): Likewise.
1914 (i386_supply_fpregset): Likewise.
1915 (i386_collect_fpregset): Likewise.
1916 (i386_mpx_bd_base): Likewise.
1917 * i386-v4-nat.c (supply_fpregset): Likewise.
1918 (fill_fpregset): Likewise.
1919 * i387-tdep.c (i387_supply_fsave): Likewise.
1920 (i387_collect_fsave): Likewise.
1921 (i387_supply_fxsave): Likewise.
1922 (i387_collect_fxsave): Likewise.
1923 (i387_supply_xsave): Likewise.
1924 (i387_collect_xsave): Likewise.
1925 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
1926 (ia64_linux_store_registers): Likewise.
1927 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
1928 (ia64_extract_return_value): Likewise.
1929 (ia64_store_return_value): Likewise.
1930 (find_func_descr): Likewise.
1931 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1932 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
1933 (inf_ptrace_store_registers): Likewise.
1934 * infrun.c (use_displaced_stepping): Likewise.
1935 (displaced_step_prepare_throw): Likewise.
1937 (proceed): Likewise.
1938 (do_target_wait): Likewise.
1939 (adjust_pc_after_break): Likewise.
1940 (handle_inferior_event_1): Likewise.
1941 (handle_signal_stop): Likewise.
1942 (save_infcall_suspend_state): Likewise.
1943 (restore_infcall_suspend_state): Likewise.
1944 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
1945 * jit.c (jit_frame_prev_register): Likewise.
1946 * linux-nat.c (save_stop_reason): Likewise.
1947 (linux_nat_wait_1): Likewise.
1948 (resume_stopped_resumed_lwps): Likewise.
1949 * linux-record.c (record_linux_sockaddr): Likewise.
1950 (record_linux_msghdr): Likewise.
1951 (record_linux_system_call): Likewise.
1952 * linux-tdep.c (linux_collect_thread_registers): Likewise.
1953 * lm32-tdep.c (lm32_extract_return_value): Likewise.
1954 (lm32_store_return_value): Likewise.
1955 * m32c-tdep.c (m32c_read_flg): Likewise.
1956 (m32c_pseudo_register_read): Likewise.
1957 (m32c_pseudo_register_write): Likewise.
1958 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
1959 (m32r_linux_collect_gregset): Likewise.
1960 * m32r-tdep.c (m32r_store_return_value): Likewise.
1961 (m32r_extract_return_value): Likewise.
1962 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1963 (m68kbsd_collect_fpregset): Likewise.
1964 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1965 * m68k-linux-nat.c (fetch_register): Likewise.
1966 (old_fetch_inferior_registers): Likewise.
1967 (old_store_inferior_registers): Likewise.
1968 (store_regs): Likewise.
1969 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
1970 (m68k_svr4_store_return_value): Likewise.
1971 * m88k-tdep.c (m88k_store_arguments): Likewise.
1972 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
1973 (mi_cmd_data_write_register_values): Likewise.
1974 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
1975 (mips_fbsd_store_inferior_registers): Likewise.
1976 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
1977 (mips_fbsd_supply_gregs): Likewise.
1978 (mips_fbsd_collect_fpregs): Likewise.
1979 (mips_fbsd_collect_gregs): Likewise.
1980 (mips_fbsd_supply_fpregset): Likewise.
1981 (mips_fbsd_collect_fpregset): Likewise.
1982 (mips_fbsd_supply_gregset): Likewise.
1983 (mips_fbsd_collect_gregset): Likewise.
1984 * mips-linux-nat.c (supply_gregset): Likewise.
1985 (fill_gregset): Likewise.
1986 (supply_fpregset): Likewise.
1987 (fill_fpregset): Likewise.
1988 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
1989 (mips_fill_gregset): Likewise.
1990 (mips_supply_fpregset): Likewise.
1991 (mips_fill_fpregset): Likewise.
1992 (mips64_supply_gregset): Likewise.
1993 (micromips_linux_sigframe_validate): Likewise.
1994 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
1995 (mipsnbsd_fetch_inferior_registers): Likewise.
1996 (mipsnbsd_store_inferior_registers): Likewise.
1997 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1998 (mipsnbsd_supply_gregset): Likewise.
1999 (mipsnbsd_iterate_over_regset_sections): Likewise.
2000 (mipsnbsd_supply_reg): Likewise.
2001 (mipsnbsd_supply_fpreg): Likewise.
2002 * mips-tdep.c (mips_in_frame_stub): Likewise.
2003 (mips_dummy_id): Likewise.
2004 (is_octeon_bbit_op): Likewise.
2005 (micromips_bc1_pc): Likewise.
2006 (extended_mips16_next_pc): Likewise.
2007 (mips16_next_pc): Likewise.
2008 (deal_with_atomic_sequence): Likewise.
2009 * moxie-tdep.c (moxie_process_readu): Likewise.
2010 * nios2-tdep.c (nios2_get_next_pc): Likewise.
2011 * nto-procfs.c (procfs_store_registers): Likewise.
2012 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
2013 (ppcfbsd_store_inferior_registers): Likewise.
2014 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
2015 (fetch_altivec_register): Likewise.
2016 (get_spe_registers): Likewise.
2017 (fetch_spe_register): Likewise.
2018 (fetch_altivec_registers): Likewise.
2019 (fetch_all_gp_regs): Likewise.
2020 (fetch_all_fp_regs): Likewise.
2021 (store_vsx_register): Likewise.
2022 (store_altivec_register): Likewise.
2023 (set_spe_registers): Likewise.
2024 (store_spe_register): Likewise.
2025 (store_altivec_registers): Likewise.
2026 (store_all_gp_regs): Likewise.
2027 (store_all_fp_regs): Likewise.
2028 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
2029 (ppc_linux_collect_gregset): Likewise.
2030 (ppc_canonicalize_syscall): Likewise.
2031 (ppc_linux_record_signal): Likewise.
2032 (ppu2spu_prev_register): Likewise.
2033 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
2034 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
2035 (ppcobsd_store_registers): Likewise.
2036 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
2038 (ppc_ravenscar_generic_store_registers): Likewise.
2039 * procfs.c (procfs_fetch_registers): Likewise.
2040 (procfs_store_registers): Likewise.
2041 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
2042 (ravenscar_store_registers): Likewise.
2043 (ravenscar_prepare_to_store): Likewise.
2044 * record-btrace.c (record_btrace_fetch_registers): Likewise.
2045 * record-full.c (record_full_wait_1): Likewise.
2046 (record_full_registers_change): Likewise.
2047 (record_full_store_registers): Likewise.
2048 (record_full_core_fetch_registers): Likewise.
2049 (record_full_save): Likewise.
2050 (record_full_goto_insn): Likewise.
2051 * regcache.c (regcache_register_size): Likewise.
2052 (get_regcache_arch): Remove.
2053 (regcache_read_pc): Likewise.
2054 * regcache.h (get_regcache_arch): Remove.
2055 * remote-sim.c (gdbsim_fetch_register): Likewise.
2056 (gdbsim_store_register): Likewise.
2057 * remote.c (fetch_register_using_p): Likewise.
2058 (send_g_packet): Likewise.
2059 (remote_prepare_to_store): Likewise.
2060 (store_registers_using_G): Likewise.
2061 * reverse.c (save_bookmark_command): Likewise.
2062 (goto_bookmark_command): Likewise.
2063 * rs6000-aix-tdep.c (branch_dest): Likewise.
2064 * rs6000-nat.c (rs6000_ptrace64): Likewise.
2065 (fetch_register): Likewise.
2066 * rs6000-tdep.c (ppc_supply_reg): Likewise.
2067 (ppc_collect_reg): Likewise.
2068 (ppc_collect_gregset): Likewise.
2069 (ppc_collect_fpregset): Likewise.
2070 (ppc_collect_vsxregset): Likewise.
2071 (ppc_collect_vrregset): Likewise.
2072 (ppc_displaced_step_hw_singlestep): Likewise.
2073 (rs6000_pseudo_register_read): Likewise.
2074 (rs6000_pseudo_register_write): Likewise.
2075 * s390-linux-nat.c (supply_gregset): Likewise.
2076 (fill_gregset): Likewise.
2077 (s390_linux_fetch_inferior_registers): Likewise.
2078 * s390-linux-tdep.c (s390_write_pc): Likewise.
2079 (s390_software_single_step): Likewise.
2080 (s390_all_but_pc_registers_record): Likewise.
2081 (s390_linux_syscall_record): Likewise.
2082 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
2083 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
2084 (shnbsd_store_inferior_registers): Likewise.
2085 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
2086 (sh_extract_return_value_fpu): Likewise.
2087 (sh_store_return_value_nofpu): Likewise.
2088 (sh_corefile_supply_regset): Likewise.
2089 (sh_corefile_collect_regset): Likewise.
2090 * sh64-tdep.c (sh64_extract_return_value): Likewise.
2091 (sh64_store_return_value): Likewise.
2092 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
2093 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
2094 (sparc_store_inferior_registers): Likewise.
2095 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
2096 (sparc_ravenscar_prepare_to_store): Likewise.
2097 * sparc-tdep.c (sparc32_store_arguments): Likewise.
2098 (sparc_analyze_control_transfer): Likewise.
2099 (sparc_step_trap): Likewise.
2100 (sparc_software_single_step): Likewise.
2101 (sparc32_gdbarch_init): Likewise.
2102 (sparc_supply_rwindow): Likewise.
2103 (sparc_collect_rwindow): Likewise.
2104 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
2105 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
2106 (sparc64nbsd_collect_gregset): Likewise.
2107 (sparc64nbsd_supply_fpregset): Likewise.
2108 (sparc64nbsd_collect_fpregset): Likewise.
2109 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
2110 (sparc64_supply_gregset): Likewise.
2111 (sparc64_collect_gregset): Likewise.
2112 (sparc64_supply_fpregset): Likewise.
2113 (sparc64_collect_fpregset): Likewise.
2114 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2115 * spu-tdep.c (spu_unwind_sp): Likewise.
2116 (spu2ppu_prev_register): Likewise.
2117 (spu_memory_remove_breakpoint): Likewise.
2118 * stack.c (return_command): Likewise.
2119 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
2120 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2121 * tracefile.c (trace_save_ctf): Likewise.
2122 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
2123 (do_windows_store_inferior_registers): Likewise.
2124 (windows_resume): Likewise.
2125 * xtensa-linux-nat.c (fill_gregset): Likewise.
2126 (supply_gregset_reg): Likewise.
2127 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
2128 (xtensa_register_read_masked): Likewise.
2129 (xtensa_supply_gregset): Likewise.
2130 (xtensa_extract_return_value): Likewise.
2131 (xtensa_store_return_value): Likewise.
2133 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
2135 * doublest.c (floatformat_from_string): New function.
2136 * doublest.h (floatformat_from_string): Add prototype.
2138 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
2139 (OP_FLOAT): ... this.
2140 * expression.h: Do not include "doublest.h".
2141 (union exp_element): Replace doubleconst and decfloatconst by
2142 new element floatconst.
2143 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
2144 (ada_evaluate_subexp): Likewise.
2145 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
2146 OP_DOUBLE and OP_DECFLOAT.
2147 * expprint.c (print_subexp_standard): Likewise.
2148 (dump_subexp_body_standard): Likewise.
2149 * breakpoint.c (watchpoint_exp_is_const): Likewise.
2151 * parse.c: Include "dfp.h".
2152 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
2153 (write_exp_elt_floatcst): New function.
2154 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
2156 (operator_check_standard): Likewise.
2157 (parse_float): Do not accept suffix. Take type as input. Return bool.
2158 Return target format buffer instead of host DOUBLEST.
2159 Use floatformat_from_string and decimal_from_string to parse
2160 either binary or decimal floating-point types.
2161 (parse_c_float): Remove.
2162 * parser-defs.h: Do not include "doublest.h".
2163 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
2164 (write_exp_elt_floatcst): Add prototype.
2165 (parse_float): Update prototype.
2166 (parse_c_float): Remove.
2168 * c-exp.y: Do not include "dfp.h".
2169 (typed_val_float): Use byte buffer instead of DOUBLEST.
2170 (typed_val_decfloat): Remove.
2172 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2173 (parse_number): Update to new parse_float interface.
2174 Parse suffixes and determine type before calling parse_float.
2175 Handle decimal and binary FP types the same way.
2177 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2178 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
2179 (parse_number): Update to new parse_float interface.
2180 Parse suffixes and determine type before calling parse_float.
2182 * f-exp.y: Replace dval by typed_val_float.
2183 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2184 (parse_number): Use parse_float instead of atof.
2186 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2187 (parse_go_float): Remove.
2188 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2189 (parse_number): Call parse_float instead of parse_go_float.
2190 Parse suffixes and determine type before calling parse_float.
2192 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2193 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2194 (parse_number): Update to new parse_float interface.
2195 Parse suffixes and determine type before calling parse_float.
2197 * m2-exp.y: Replace dval by byte buffer val.
2198 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2199 (parse_number): Call parse_float instead of atof.
2201 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2202 (lex_number): Call parse_float instead of strtod.
2203 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
2204 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
2205 Use write_exp_elt_floatcst.
2206 (unit_testing): Remove static variable.
2207 (rust_type): Do not check unit_testing.
2208 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
2210 * ada-exp.y (type_float, type_double): Remove.
2211 (typed_val_float): Use byte buffer instead of DOUBLEST.
2212 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2213 * ada-lex.l (processReal): Use parse_float instead of sscanf.
2215 2017-10-25 Alan Hayward <alan.hayward@arm.com>
2217 * aarch64-tdep.h (enum aarch64_regnum): Remove.
2218 * arch/aarch64.h: New file.
2220 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2222 * dfp.h (decimal_from_string): Use const reference for argument.
2223 * dfp.c (decimal_from_string): Likewise.
2225 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2227 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
2228 * sh64-tdep.c (sh64_do_fp_register): Likewise.
2229 * mips-tdep.c (mips_print_fp_register): Likewise.
2231 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2233 * common/format.h (enum argclass): Replace decfloat_arg by
2234 dec32float_arg, dec64float_arg, and dec128float_arg.
2235 * common/format.c (parse_format_string): Update to return
2236 new decimal float argument classes.
2238 * printcmd.c (printf_decfloat): Rename to ...
2239 (printf_floating): ... this. Add argclass argument, and use it
2240 instead of parsing the format string again. Add support for
2241 binary floating-point values, using floatformat_to_string.
2242 Convert value to the target format if it doesn't already match.
2243 (ui_printf): Call printf_floating instead of printf_decfloat,
2244 also for double_arg / long_double_arg. Pass argclass.
2246 * dfp.c (decimal_to_string): Add format string argument.
2247 * dfp.h (decimal_to_string): Likewise.
2249 * doublest.c (floatformat_to_string): Add format string argument.
2250 * doublest.h (floatformat_to_string): Likewise.
2252 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2254 * doublest.c (floatformat_precision): New routine.
2255 (floatformat_to_string): Likewise.
2256 * doublest.c (floatformat_to_string): Add prototype.
2258 * printcmd.c (print_scalar_formatted): Only call print_floating
2259 on floating-point types.
2260 * valprint.c: Do not include "floatformat.h".
2261 (generic_val_print_decfloat): Remove.
2262 (generic_val_print): Call generic_val_print_float for both
2263 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
2264 (print_floating): Use floatformat_to_string. Handle decimal float.
2265 (print_decimal_floating): Remove, merge into floatformat_to_string.
2266 * value.h (print_decimal_floating): Remove.
2268 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
2270 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2272 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
2274 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2276 * memattr.h: Don't include vec.h.
2277 (struct mem_attrib): Initialize fields.
2278 <unknown>: New static method.
2279 (struct mem_region): Add constructors, operator<, initialize
2281 * memattr.c: Include algorithm.
2282 (default_mem_attrib, unknown_mem_attrib): Remove.
2283 (user_mem_region_list): New global.
2284 (target_mem_region_list, mem_region_list): Change type to
2285 std::vector<mem_region>.
2286 (mem_use_target): Now a function.
2287 (target_mem_regions_valid): Change type to bool.
2288 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
2289 (require_user_regions): Adjust.
2290 (require_target_regions): Adjust.
2291 (create_mem_region): Adjust.
2292 (lookup_mem_region): Adjust.
2293 (invalidate_target_mem_regions): Adjust.
2294 (mem_clear): Rename to...
2295 (user_mem_clear): ... this, and adjust.
2296 (mem_command): Adjust.
2297 (info_mem_command): Adjust.
2298 (mem_enable, enable_mem_command, mem_disable,
2299 disable_mem_command): Adjust.
2300 (mem_delete): Adjust.
2301 (delete_mem_command): Adjust.
2302 * memory-map.h (parse_memory_map): Return an std::vector.
2303 * memory-map.c (parse_memory_map): Likewise.
2304 (struct memory_map_parsing_data): Add constructor.
2305 <memory_map>: Point to std::vector.
2306 (memory_map_start_memory): Adjust.
2307 (memory_map_end_memory): Adjust.
2308 (memory_map_end_property): Adjust.
2309 (clear_result): Remove.
2310 * remote.c (remote_memory_map): Return an std::vector.
2311 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
2313 (target_debug_print_mem_region_vector): New.
2314 * target-delegates.c: Regenerate.
2315 * target.h (mem_region_vector): New typedef.
2316 (to_memory_map): Return mem_region_vector.
2317 (target_memory_map): Return an std::vector.
2318 * target.c (target_memory_map): Return an std::vector.
2319 (flash_erase_command): Adjust.
2321 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2323 * memory-map.c (struct memory_map_parsing_data) <property_name>:
2324 Change type to std::string.
2325 (memory_map_start_property): Adjust.
2326 (memory_map_end_property): Adjust.
2328 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2330 * infrun.h: Include common/byte-vector.h.
2331 (struct displaced_step_closure): New struct.
2332 (struct buf_displaced_step_closure): New struct.
2333 * infrun.c (displaced_step_closure::~displaced_step_closure):
2334 Provide default implementation.
2335 (displaced_step_clear): Deallocate step closure with delete.
2336 * aarch64-tdep.c (displaced_step_closure): Rename to ...
2337 (aarch64_displaced_step_closure): ... this, extend
2338 displaced_step_closure.
2339 (aarch64_displaced_step_data) <dsc>: Change type to
2340 aarch64_displaced_step_closure.
2341 (aarch64_displaced_step_copy_insn): Adjust to type change, use
2343 (aarch64_displaced_step_fixup): Add cast for displaced step
2345 * amd64-tdep.c (displaced_step_closure): Rename to ...
2346 (amd64_displaced_step_closure): ... this, extend
2347 displaced_step_closure.
2348 <insn_buf>: Change type to std::vector<gdb_byte>.
2350 (fixup_riprel): Change type of DSC parameter, adjust to type
2352 (fixup_displaced_copy): Change type of DSC parameter.
2353 (amd64_displaced_step_copy_insn): Instantiate
2354 amd64_displaced_step_closure.
2355 (amd64_displaced_step_fixup): Add cast for closure type, adjust
2356 to type change of insn_buf.
2357 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
2359 (arm_linux_copy_svc): Likewise.
2360 (cleanup_kernel_helper_return): Likewise.
2361 (arm_catch_kernel_helper_return): Likewise.
2362 (arm_linux_displaced_step_copy_insn): Instantiate
2363 arm_displaced_step_closure.
2364 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
2365 (displaced_read_reg): Change type of parameter DSC.
2366 (branch_write_pc): Likewise.
2367 (load_write_pc): Likewise.
2368 (alu_write_pc): Likewise.
2369 (displaced_write_reg): Likewise.
2370 (arm_copy_unmodified): Likewise.
2371 (thumb_copy_unmodified_32bit): Likewise.
2372 (thumb_copy_unmodified_16bit): Likewise.
2373 (cleanup_preload): Likewise.
2374 (install_preload): Likewise.
2375 (arm_copy_preload): Likewise.
2376 (thumb2_copy_preload): Likewise.
2377 (install_preload_reg): Likewise.
2378 (arm_copy_preload_reg): Likewise.
2379 (cleanup_copro_load_store): Likewise.
2380 (install_copro_load_store): Likewise.
2381 (arm_copy_copro_load_store) Likewise.
2382 (thumb2_copy_copro_load_store): Likewise.
2383 (cleanup_branch): Likewise.
2384 (install_b_bl_blx): Likewise.
2385 (arm_copy_b_bl_blx): Likewise.
2386 (thumb2_copy_b_bl_blx): Likewise.
2387 (thumb_copy_b): Likewise.
2388 (install_bx_blx_reg): Likewise.
2389 (arm_copy_bx_blx_reg): Likewise.
2390 (thumb_copy_bx_blx_reg): Likewise.
2391 (cleanup_alu_imm): Likewise.
2392 (arm_copy_alu_imm): Likewise.
2393 (thumb2_copy_alu_imm): Likewise.
2394 (cleanup_alu_reg): Likewise.
2395 (install_alu_reg): Likewise.
2396 (arm_copy_alu_reg): Likewise.
2397 (thumb_copy_alu_reg): Likewise.
2398 (cleanup_alu_shifted_reg): Likewise.
2399 (install_alu_shifted_reg): Likewise.
2400 (arm_copy_alu_shifted_reg): Likewise.
2401 (cleanup_load): Likewise.
2402 (cleanup_store): Likewise.
2403 (arm_copy_extra_ld_st): Likewise.
2404 (install_load_store): Likewise.
2405 (thumb2_copy_load_literal): Likewise.
2406 (thumb2_copy_load_reg_imm): Likewise.
2407 (arm_copy_ldr_str_ldrb_strb): Likewise.
2408 (cleanup_block_load_all): Likewise.
2409 (cleanup_block_store_pc): Likewise.
2410 (cleanup_block_load_pc): Likewise.
2411 (arm_copy_block_xfer): Likewise.
2412 (thumb2_copy_block_xfer): Likewise.
2413 (cleanup_svc): Likewise.
2414 (install_svc): Likewise.
2415 (arm_copy_svc): Likewise.
2416 (thumb_copy_svc): Likewise.
2417 (arm_copy_undef): Likewise.
2418 (thumb_32bit_copy_undef): Likewise.
2419 (arm_copy_unpred): Likewise.
2420 (arm_decode_misc_memhint_neon): Likewise.
2421 (arm_decode_unconditional): Likewise.
2422 (arm_decode_miscellaneous): Likewise.
2423 (arm_decode_dp_misc): Likewise.
2424 (arm_decode_ld_st_word_ubyte): Likewise.
2425 (arm_decode_media): Likewise.
2426 (arm_decode_b_bl_ldmstm): Likewise.
2427 (arm_decode_ext_reg_ld_st): Likewise.
2428 (thumb2_decode_dp_shift_reg): Likewise.
2429 (thumb2_decode_ext_reg_ld_st): Likewise.
2430 (arm_decode_svc_copro): Likewise.
2431 (thumb2_decode_svc_copro): Likewise.
2432 (install_pc_relative): Likewise.
2433 (thumb_copy_pc_relative_16bit): Likewise.
2434 (thumb_decode_pc_relative_16bit): Likewise.
2435 (thumb_copy_pc_relative_32bit): Likewise.
2436 (thumb_copy_16bit_ldr_literal): Likewise.
2437 (thumb_copy_cbnz_cbz): Likewise.
2438 (thumb2_copy_table_branch): Likewise.
2439 (cleanup_pop_pc_16bit_all): Likewise.
2440 (thumb_copy_pop_pc_16bit): Likewise.
2441 (thumb_process_displaced_16bit_insn): Likewise.
2442 (decode_thumb_32bit_ld_mem_hints): Likewise.
2443 (thumb_process_displaced_32bit_insn): Likewise.
2444 (thumb_process_displaced_insn): Likewise.
2445 (arm_process_displaced_insn): Likewise.
2446 (arm_displaced_init_closure): Likewise.
2447 (arm_displaced_step_fixup): Add cast for closure.
2448 * arm-tdep.h: Include infrun.h.
2449 (displaced_step_closure): Rename to ...
2450 (arm_displaced_step_closure): ... this, extend
2451 displaced_step_closure.
2452 <u::svc::copy_svc_os>: Change type of parameter DSC.
2453 <cleanup>: Likewise.
2454 (arm_process_displaced_insn): Likewise.
2455 (arm_displaced_init_closure): Likewise.
2456 (displaced_read_reg): Likewise.
2457 (displaced_write_reg): Likewise.
2458 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
2460 * i386-tdep.h: Include infrun.h.
2461 (i386_displaced_step_closure): New typedef.
2462 * i386-tdep.c (i386_displaced_step_copy_insn): Use
2463 i386_displaced_step_closure.
2464 (i386_displaced_step_fixup): Adjust.
2465 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
2466 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
2468 (ppc_displaced_step_fixup): Adjust.
2469 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
2470 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
2472 (s390_displaced_step_fixup): Adjust.
2474 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2476 * interps.h (interp_resume, interp_suspend, interp_set_temp):
2477 Remove declarations.
2479 2017-10-20 Tom Tromey <tom@tromey.com>
2481 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
2483 (gdb_bfd_record_inclusion): Update.
2484 (bfdp): Remove typedef.
2486 2017-10-20 Tom Tromey <tom@tromey.com>
2488 * gdb_bfd.c (gdb_bfd_ref): Use new.
2489 (struct gdb_bfd_data): Add constructor, destructor, and member
2491 (gdb_bfd_unref): Use delete.
2493 2017-10-20 Tom Tromey <tom@tromey.com>
2495 * exec.c (exec_file_attach): Use new_bfd_ref.
2496 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
2497 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
2498 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
2500 * gdb_bfd.h (new_bfd_ref): New function.
2502 2017-10-20 Pedro Alves <palves@redhat.com>
2504 * main.c (captured_command_loop): Add attribute noinline.
2506 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
2508 * interps.c (struct interp_factory): Add constructor.
2509 (interp_factory_p): Remove typedef.
2510 (DEF_VEC_P(interp_factory_p)): Remove.
2511 (interpreter_factories): Change type to std::vector.
2512 (interp_factory_register): Adjust.
2513 (interp_lookup): Adjust.
2514 (interpreter_completer): Adjust.
2516 2017-10-19 Tom Tromey <tom@tromey.com>
2518 * break-catch-syscall.c (catch_syscall_completer): Use
2519 std::string, gdb::unique_xmalloc_ptr.
2521 2017-10-19 Tom Tromey <tom@tromey.com>
2523 * infcall.c (call_function_by_hand_dummy): Use std::string.
2525 2017-10-19 Tom Tromey <tom@tromey.com>
2527 * mi/mi-main.c (mi_cmd_execute): Update.
2528 * top.h (prepare_execute_command): Return scoped_value_mark.
2529 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
2530 Add move constructor.
2531 * top.c (prepare_execute_command): Return scoped_value_mark.
2532 (execute_command): Update.
2534 2017-10-19 Pedro Alves <palves@redhat.com>
2536 * xml-support.c (xml_fetch_content_from_file): Check fread's
2539 2017-10-19 Pedro Alves <palves@redhat.com>
2541 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
2543 (handle_error_fd): New function.
2544 (ser_base_async): Add/delete an event loop file handler for
2547 2017-10-19 Pedro Alves <palves@redhat.com>
2549 * xml-support.c (xml_fetch_content_from_file): Don't read in
2550 chunks. Instead use fseek to determine the file's size, and read
2553 2017-11-18 Keith Seitz <keiths@redhat.com>
2555 * c-exp.y (oper): Canonicalize conversion operators of user-defined
2557 Add whitespace to front of type name.
2559 2017-10-18 Keith Seitz <keiths@redhat.com>
2561 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
2562 DW_AT_accessibility.
2564 2017-10-18 Yao Qi <yao.qi@linaro.org>
2566 * features/tic6x-c62x-linux.c: Remove.
2568 2017-10-17 Tom Tromey <tom@tromey.com>
2570 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
2571 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
2572 (do_mixed_source_and_assembly): Likewise.
2574 2017-10-17 Tom Tromey <tom@tromey.com>
2576 * regcache.c (regcache::xfer_part): Remove assertion.
2578 2017-10-17 Pedro Alves <palves@redhat.com>
2580 * xml-support.c (xml_fetch_content_from_file): Call
2581 unique_ptr::release() instead unique_ptr::get() when passing
2584 2017-10-17 Yao Qi <yao.qi@linaro.org>
2586 * regcache.c (regcache::xfer_part): Remove parameters read and
2587 write, add parameter is_raw. All callers are updated.
2589 2017-10-16 Keith Seitz <keiths@redhat.com>
2591 * c-typeprint.c (enum access_specifier): Moved here from
2593 (output_access_specifier): New function.
2594 (c_type_print_base): Consider typedefs when assessing
2595 whether access labels are needed.
2596 Use output_access_specifier as needed.
2597 Output access specifier for typedefs, if needed.
2598 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
2599 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
2601 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
2604 2017-10-16 Tom Tromey <tom@tromey.com>
2606 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
2607 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
2608 * target.c (target_fileio_read_stralloc): Update.
2609 * sparc64-tdep.c (adi_is_addr_mapped): Update.
2610 * target.h (target_fileio_read_stralloc): Return
2613 2017-10-16 Tom Tromey <tom@tromey.com>
2615 * xml-syscall.c (xml_init_syscalls_info): Update.
2616 * xml-support.c (xinclude_start_include): Update.
2617 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
2618 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
2619 (xml_fetch_content_from_file): Likewise.
2620 * osdata.c (get_osdata): Update.
2621 * target.h (target_read_stralloc, target_get_osdata): Return
2623 * solib-aix.c (solib_aix_get_library_list): Update.
2624 * solib-target.c (solib_target_current_sos): Update.
2625 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
2626 * xml-tdesc.c (fetch_available_features_from_target): Update.
2627 (target_fetch_description_xml): Update.
2628 (file_read_description_xml): Update.
2629 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
2630 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
2631 (remote_pid_to_exec_file): Update.
2632 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
2633 (target_get_osdata): Likewise.
2635 2017-10-16 Tom Tromey <tom@tromey.com>
2637 * remote.c (remote_register_number_and_offset): Use std::vector.
2638 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
2639 (putpkt_binary): Use gdb::def_vector.
2640 (compare_sections_command): Use gdb::byte_vector.
2642 2017-10-16 Tom Tromey <tom@tromey.com>
2644 * ppc-linux-nat.c (hwdebug_insert_point): Use
2645 gdb::unique_xmalloc_ptr, XDUP.
2647 2017-10-16 Tom Tromey <tom@tromey.com>
2649 * probe.c (parse_probes): Use std::string.
2650 (info_probes_for_ops, enable_probes_command)
2651 (disable_probes_command): Remove cleanups.
2653 2017-10-16 Tom Tromey <tom@tromey.com>
2655 * buildsym.c (block_compar): Remove.
2656 (end_symtab_get_static_block): Use std::vector.
2658 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
2660 * memrange.h (struct mem_range): Define operator< and operator==.
2661 (mem_range_s): Remove.
2662 (DEF_VEC_O (mem_range_s)): Remove.
2663 (normalize_mem_ranges): Change parameter type to std::vector.
2664 * memrange.c (compare_mem_ranges): Remove.
2665 (normalize_mem_ranges): Change parameter type to std::vector,
2666 adjust to vector change.
2667 * exec.c (section_table_available_memory): Return vector, remove
2669 (section_table_read_available_memory): Adjust to std::vector
2671 * remote.c (remote_read_bytes): Adjust to std::vector
2673 * tracepoint.h (traceframe_available_memory): Change parameter
2674 type to std::vector.
2675 * tracepoint.c (traceframe_available_memory): Change parameter
2676 type to std::vector, adjust.
2677 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
2679 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2680 unittests/memrange-selftests.c.
2681 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
2682 * gdb/unittests/memrange-selftests.c: New file.
2684 2017-10-16 Pedro Alves <palves@redhat.com>
2686 * elfread.c (probe_key_free): Rename range-for variable.
2687 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
2688 (find_probe_by_pc, collect_probes): Rename range-for variable.
2690 2017-10-16 Yao Qi <yao.qi@linaro.org>
2692 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
2693 * features/tic6x-c62x.c: Remove.
2694 * features/tic6x-c64x-linux.c: Remove.
2695 * features/tic6x-c64x.c: Remove.
2696 * features/tic6x-c64xp-linux.c: Remove.
2697 * features/tic6x-c64xp.c: Remove.
2698 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
2699 initialize_tdesc_tic6x_*_linux functions.
2700 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
2701 initialize_tdesc_tic6x_* functions.
2703 2017-10-16 Yao Qi <yao.qi@linaro.org>
2705 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
2707 * regformats/tic6x-c62x.dat: Remove.
2708 * regformats/tic6x-c64x.dat: Remove.
2709 * regformats/tic6x-c64xp.dat: Remove.
2711 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
2713 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
2714 (the !HAVE_LIBEXPAT version).
2716 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2718 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
2721 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2723 * target.h: Include tracepoint.h.
2724 (enum trace_find_type): Move to tracepoint.h.
2725 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
2726 * tracepoint.h: Don't include target.h
2727 (enum trace_find_type): Move from target.h.
2728 (parse_traceframe_info): Return a unique ptr.
2729 * tracepoint.c (current_traceframe_info): Change type to unique
2731 (free_traceframe_info): Remove.
2732 (clear_traceframe_info): Don't manually free
2733 current_traceframe_info.
2734 (free_result): Remove.
2735 (parse_traceframe_info): Return a unique ptr.
2736 (get_traceframe_info): Adjust to unique ptr.
2737 * ctf.c (ctf_traceframe_info): Return a unique ptr.
2738 * remote.c (remote_traceframe_info): Return a unique ptr.
2739 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
2741 * target-debug.h (target_debug_print_traceframe_info_up): New
2743 * target-delegates.c: Regenerate.
2745 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2747 * memrange.h (struct mem_range): Add constructors.
2748 * tracepoint.h (struct traceframe_info) <memory>: Change type to
2749 std::vector<mem_range>.
2750 * tracepoint.c (free_traceframe_info): Don't manually free
2752 (traceframe_info_start_memory): Adjust to vector change.
2753 (traceframe_available_memory): Likewise.
2754 * tracefile-tfile.c (build_traceframe_info): Likewise.
2755 * ctf.c (ctf_traceframe_info): Likewise.
2757 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2759 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
2761 * tracepoint.c (free_traceframe_info): Deallocate with delete.
2762 (traceframe_info_start_tvar): Adjust to vector change.
2763 (parse_traceframe_info): Allocate with new.
2764 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
2766 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
2768 tfile_traceframe_info): Allocate with new.
2769 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
2772 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2774 * tracepoint.c (traceframe_info): Rename to...
2775 (current_traceframe_info): ...this.
2776 (clear_traceframe_info): Adjust.
2777 (get_traceframe_info): Adjust.
2779 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2781 * nat/linux-osdata.c: Include algorithm.
2782 (compare_processes): Remove.
2783 (struct pid_pgid_entry): New struct.
2784 (linux_xfer_osdata_processgroups): Use std::vector instead of
2787 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2789 * objfiles.h: Don't include symfile.h.
2790 (struct partial_symbol): Remove forward-declaration.
2791 (struct objfile) <global_psymbols, static_psymbols>: Change type
2792 to std::vector<partial_symbol *>.
2793 * objfiles.c (objfile::objfile): Don't memset those fields.
2794 (objfile::~objfile): Don't free those fields.
2795 * psympriv.h (struct psymbol_allocation_list): Remove
2796 forward-declaration.
2797 (add_psymbol_to_list): Change psymbol_allocation_list parameter
2799 (start_psymtab_common): Change parameters to std::vector.
2800 * psymtab.c: Include algorithm.
2801 (require_partial_symbols): Call shrink_to_fit.
2802 (find_pc_sect_psymbol): Adjust to vector change.
2803 (match_partial_symbol): Likewise.
2804 (lookup_partial_symbol): Likewise.
2805 (psym_relocate): Likewise.
2806 (dump_psymtab): Likewise.
2807 (recursively_search_psymtabs): Likewise.
2808 (compare_psymbols): Remove.
2809 (sort_pst_symbols): Adjust to vector change.
2810 (start_psymtab_common): Likewise.
2811 (end_psymtab_common): Likewise.
2812 (psymbol_bcache_full): De-constify return value.
2813 (add_psymbol_to_bcache): Likewise.
2814 (extend_psymbol_list): Remove.
2815 (append_psymbol_to_list): Adjust to vector change.
2816 (add_psymbol_to_list): Likewise.
2817 (init_psymbol_list): Likewise.
2818 (maintenance_info_psymtabs): Likewise.
2819 (maintenance_check_psymtabs): Likewise.
2820 * symfile.h (struct psymbol_allocation_list): Remove.
2821 * symfile.c (reread_symbols): Adjust to vector change.
2822 * dbxread.c (start_psymtab): Change type of parameters.
2823 (dbx_symfile_read): Adjust to vector change.
2824 (read_dbx_symtab): Likewise.
2825 (start_psymtab): Change type of parameters.
2826 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
2827 (create_partial_symtab): Likewise.
2828 (add_partial_symbol): Likewise.
2829 (write_one_signatured_type): Likewise.
2830 (recursively_write_psymbols): Likewise.
2831 * mdebugread.c (parse_partial_symbols): Likewise.
2832 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
2833 (scan_xcoff_symtab): Adjust to vector change.
2834 (xcoff_initial_scan): Likewise.
2836 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
2838 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
2840 2017-10-13 Yao Qi <yao.qi@linaro.org>
2842 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
2843 Remove s390x-*-expedite, add s390x-expedite.
2845 2017-10-13 Yao Qi <yao.qi@linaro.org>
2847 * features/s390-gs-linux64.c: Regenerated.
2848 * features/s390x-gs-linux64.c: Regenerated.
2850 2017-10-13 Tom Tromey <tom@tromey.com>
2852 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2853 * solib.c (update_solib_list, reload_shared_libraries_1): Use
2855 * symfile.c (symbol_file_add_with_addrs): Use new.
2856 (symbol_file_add_separate): Update comment.
2857 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
2858 * jit.c (jit_object_close_impl): Use new.
2859 (jit_unregister_code): Use delete.
2860 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
2861 (~objfile): Rename from free_objfile.
2862 (free_objfile_separate_debug, do_free_objfile_cleanup)
2863 (free_all_objfiles, objfile_purge_solibs): Use delete.
2864 * objfiles.h (struct objfile): Add constructor and destructor.
2865 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
2866 (allocate_objfile, free_objfile): Don't declare.
2867 (struct objstats): Add initializers.
2869 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2871 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
2872 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
2873 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
2874 * gdbarch.h: Regenerate.
2875 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
2877 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
2878 (i386_displaced_step_fixup): Adjust comment.
2879 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
2881 2017-10-12 Tom Tromey <tom@tromey.com>
2883 * prologue-value.h (pv_area::store_would_trash): Return bool.
2884 (pv_area::find_reg): Likewise.
2885 * prologue-value.c (pv_area::store_would_trash): Return bool.
2886 (pv_area::find_reg): Likewise.
2888 2017-10-12 Tom Tromey <tom@tromey.com>
2890 * s390-linux-tdep.c (s390_store, s390_load)
2891 (s390_check_for_saved, s390_analyze_prologue): Update.
2892 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
2893 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
2894 * prologue-value.h (class pv_area): Move from prologue-value.c.
2895 Change names of members. Add constructor, destructor, member
2897 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
2898 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
2899 (pv_area_fetch, pv_area_scan): Don't declare.
2900 * prologue-value.c (struct pv_area::area_entry): Now member of
2902 (struct pv_area): Move to prologue-value.h.
2903 (pv_area::pv_area): Rename from make_pv_area.
2904 (pv_area::~pv_area): Rename from free_pv_area.
2905 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
2906 (clear_entries, find_entry, overlaps, store_would_trash, store)
2907 (fetch, find_reg, scan): Now member of pv_area.
2908 Remove "area" argument. Update.
2909 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
2911 * mn10300-tdep.c (push_reg, check_for_saved)
2912 (mn10300_analyze_prologue): Update.
2913 * mep-tdep.c (is_arg_spill, check_for_saved)
2914 (mep_analyze_prologue): Update.
2915 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
2916 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
2917 (m32c_is_struct_return, m32c_analyze_prologue): Update.
2918 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
2920 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
2921 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
2923 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2925 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
2926 * linux-nat.c (linux_nat_delete_thread): New variable.
2927 (lwp_free): Invoke linux_nat_delete_thread if set.
2928 (linux_nat_set_delete_thread): New function.
2929 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
2930 thread delete callback.
2931 * arm-linux-nat.c (arm_linux_delete_thread): New function.
2932 (_initialize_arm_linux_nat): Assign thread delete callback.
2933 * s390-linux-nat.c (s390_delete_thread): New function.
2934 (_initialize_s390_nat): Assign thread delete callback.
2935 * x86-linux-nat.c (x86_linux_add_target): Likewise.
2936 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
2938 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
2940 * nat/x86-linux.c (x86_linux_delete_thread): New function.
2941 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
2943 2017-10-09 Tom Tromey <tom@tromey.com>
2945 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
2947 * tui/tui-layout.c (enum tui_status): Use std::string.
2949 2017-10-11 Tom Tromey <tom@tromey.com>
2951 * gdbthread.h (thread_command): Constify.
2952 * inferior.h (detach_command): Constify.
2953 * top.h (set_history, show_history): Constify.
2954 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
2955 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
2956 * bsd-kvm.c (bsd_kvm_cmd): Constify.
2957 * printcmd.c (set_command): Constify.
2958 (non_const_set_command): New function.
2959 * dcache.c (set_dcache_command, show_dcache_command): Constify.
2960 * breakpoint.c (enable_command, disable_command, delete_command)
2961 (catch_command, tcatch_command, set_breakpoint_cmd)
2962 (show_breakpoint_cmd): Constify.
2963 * macrocmd.c (macro_command): Constify.
2964 * infcmd.c (unset_command, kill_command, detach_command)
2965 (info_proc_cmd): Constify.
2966 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
2967 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
2968 (info_auto_load_cmd): Constify.
2969 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
2970 (unset_tdesc_cmd): Constify.
2971 * ada-lang.c (set_ada_command, show_ada_command)
2972 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
2973 * guile/guile.c (set_guile_command, show_guile_command)
2974 (info_guile_command): Constify.
2975 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
2977 * skip.c (skip_command): Constify.
2978 * compile/compile.c (_initialize_compile): Constify.
2979 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
2980 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
2981 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
2982 (maint_btrace_pt_show_cmd): Constify.
2983 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
2985 * python/python.c (user_show_python, user_set_python): Constify.
2986 * mips-tdep.c (set_mips_command, show_mips_command)
2987 (set_mipsfpu_command): Constify.
2988 * record-btrace.c (cmd_record_btrace_start)
2989 (cmd_set_record_btrace, cmd_show_record_btrace)
2990 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
2991 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
2992 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
2994 * symfile.c (overlay_command): Constify.
2995 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
2996 * cli/cli-logging.c (set_logging_command, show_logging_command):
2998 * cli/cli-dump.c (dump_command, append_command)
2999 (srec_dump_command, ihex_dump_command, verilog_dump_command)
3000 (tekhex_dump_command, binary_dump_command)
3001 (binary_append_command): Constify.
3002 * cli/cli-decode.c (struct cmd_list_element): Change type of
3004 * cli/cli-cmds.c (info_command, show_command, set_debug)
3005 (show_debug): Constify.
3006 (show_command): Add non-const overload.
3007 * top.c (set_history, show_history): Constify.
3008 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
3009 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
3010 * target.c (target_command): Constify.
3011 * sparc64-tdep.c (info_adi_command): Constify.
3012 * record-full.c (cmd_record_full_start): Constify.
3013 (set_record_full_command): Constify. Fix typo.
3014 (show_record_full_command): Constify.
3015 * thread.c (thread_command, thread_apply_command): Constify.
3016 * memattr.c (dummy_cmd): Constify.
3017 * value.c (function_command): Constify.
3018 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
3019 * probe.c (info_probes_command): Constify.
3020 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
3021 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
3022 (show_thread_cmd, set_thread_default_cmd)
3023 (show_thread_default_cmd): Constify.
3024 (check_empty): Constify.
3025 * tracepoint.c (tfind_command): Constify.
3026 * cp-support.c (maint_cplus_command): Constify.
3027 * windows-tdep.c (info_w32_command): Constify.
3028 * record.c (cmd_record_start, set_record_command)
3029 (show_record_command, info_record_command, cmd_record_goto):
3031 * ravenscar-thread.c (set_ravenscar_command)
3032 (show_ravenscar_command): Constify.
3033 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3035 (add_internal_problem_command): Remove casts.
3036 * arc-tdep.c (maintenance_print_arc_command): Constify.
3037 * valprint.c (set_print, show_print, set_print_raw)
3038 (show_print_raw): Constify.
3039 * maint.c (maintenance_command, maintenance_info_command)
3040 (maintenance_print_command, maintenance_set_cmd)
3041 (maintenance_show_cmd, set_per_command_cmd)
3042 (show_per_command_cmd, maintenance_check_command): Constify.
3043 * language.c (set_check, show_check): Constify.
3044 * typeprint.c (show_print_type, set_print_type): Constify.
3045 * go32-nat.c (go32_info_dos_command): Constify.
3047 2017-10-11 Tom Tromey <tom@tromey.com>
3049 * breakpoint.c (prepare_re_set_context): Remove.
3050 (breakpoint_re_set_one): Update. Don't use cleanups.
3051 (breakpoint_re_set): Use scoped_restore, std::string, and
3052 scoped_restore_current_language.
3054 2017-10-11 Tom Tromey <tom@tromey.com>
3056 * breakpoint.c (commands_command_1): Use std::string.
3057 (cleanup_executing_breakpoints): Remove.
3058 (bpstat_do_actions_1): Use scoped_restore.
3059 (bpstat_check_watchpoint): Use std::string.
3060 (decode_static_tracepoint_spec): Likewise.
3061 (break_range_command): Likewise.
3062 (watch_command_1): Likewise.
3063 (compare_breakpoints): Change argument types.
3064 (clear_command): Use std::vector.
3065 (cleanup_executing_breakpoints): Remove.
3066 (update_global_location_list): Use unique_xmalloc_ptr.
3067 (strace_command): Remove unused declaration.
3069 2017-10-11 John Baldwin <jhb@FreeBSD.org>
3071 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
3072 * NEWS: Mention new FreeBSD/arm native configuration.
3073 * configure.host: Add arm*-*-freebsd*.
3074 * configure.nat: Likewise.
3075 * arm-fbsd-nat.c: New file.
3077 2017-10-11 John Baldwin <jhb@FreeBSD.org>
3079 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
3080 (ALLDEPFILES): Add arm-fbsd-tdep.c.
3081 * NEWS: Mention new FreeBSD/arm target.
3082 * configure.tgt: Add arm*-*-freebsd*.
3083 * arm-fbsd-tdep.c: New file.
3084 * arm-fbsd-tdep.h: New file.
3086 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
3088 * linux-tdep.c (linux_make_corefile_notes): Remove call to
3089 `gdbarch_elfcore_write_linux_prpsinfo'.
3090 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
3092 (elf_internal_linux_prpsinfo): Remove declaration.
3093 * gdbarch.h: Regenerate.
3094 * gdbarch.c: Regenerate.
3096 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
3098 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
3099 `set_gdbarch_elfcore_write_linux_prpsinfo'.
3101 2017-10-11 Pedro Alves <palves@redhat.com>
3103 * breakpoint.c (reattach_breakpoints): Delete.
3104 * breakpoint.h (reattach_breakpoints): Delete.
3106 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
3108 * symfile.c (registered_sym_fns): Make struct, not typedef.
3109 (DEF_VEC_O (registered_sym_fns)): Remove.
3110 (symtab_fns): Change type to std::vector.
3111 (add_symtab_fns): Adjust.
3112 (find_sym_fns): Adjust.
3114 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
3116 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
3117 * arc-tdep.h (arc_arch_is_em): New function.
3118 (arc_arch_is_hs): Likewise.
3120 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
3122 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
3123 parentheses in the declaration.
3124 (macro_lookup_inclusion): Likewise.
3125 (macro_lookup_definition): Likewise.
3126 * p-lang.h (pascal_builtin_types): Likewise.
3127 * tui/tui-data.c (tui_win_list): Likewise.
3128 * tui/tui-data.h (tui_win_list): Likewise.
3129 * utils.h (make_cleanup_free_section_addr_info): Likewise.
3131 2017-10-11 Mark Rages <markrages@gmail.com>
3133 * target-memory.c (block_boundaries): Fix for block address not
3134 aligned on block size.
3136 2017-10-10 Pedro Alves <palves@redhat.com>
3137 Tom Tromey <tom@tromey.com>
3139 * breakpoint.c (struct captured_breakpoint_query_args)
3140 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
3141 (print_breakpoint): New.
3142 * breakpoint.h (print_breakpoint): Declare.
3143 * common/common-exceptions.h (enum return_reason): Remove
3144 references to catch_exceptions.
3145 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
3147 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
3148 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
3150 * gdbthread.h (thread_select): Declare.
3151 * mi/mi-cmd-break.c: Don't include gdb.h.
3152 (breakpoint_notify): Use print_breakpoint.
3153 * mi/mi-cmd-catch.c: Don't include gdb.h.
3154 * mi/mi-interp.c: Don't include gdb.h.
3155 (mi_print_breakpoint_for_event): New.
3156 (mi_breakpoint_created, mi_breakpoint_modified): Use
3157 mi_print_breakpoint_for_event.
3158 * mi/mi-main.c: Don't include gdb.h.
3159 (mi_cmd_thread_select): Parse the global thread ID here. Use
3160 thread_select instead of gdb_thread_select.
3161 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
3162 of using gdb_list_thread_ids.
3163 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
3165 (remote_fileio_request): Use TRY/CATCH instead of
3167 * symfile-mem.c (struct symbol_file_add_from_memory_args)
3168 (symbol_file_add_from_memory_wrapper): Delete.
3169 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
3170 * thread.c: Don't include gdb.h.
3171 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
3172 (thread_alive): Use thread_select.
3173 (do_captured_thread_select): Delete, parts salvaged as ...
3174 (thread_select): ... this new function.
3175 (gdb_thread_select): Delete.
3177 2017-10-10 Pedro Alves <palves@redhat.com>
3178 Tom Tromey <tom@tromey.com>
3180 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
3182 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
3183 No longer macros. Instead ...
3184 (enum wp_check_result): They're now values of this new
3186 (watchpoint_check): Change return type to wp_check_result and
3187 parameter type to bpstat.
3188 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
3189 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
3190 catch_errors. Reverse logic of watchpoint_check call.
3191 (breakpoint_re_set_one): Now returns void and takes a breakpoint
3192 pointer as parameter.
3193 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
3194 * common/common-exceptions.c (throw_exception_sjlj): Update
3195 comments to avoid mentioning catch_errors.
3196 * exceptions.c (catch_errors): Delete.
3197 * exceptions.h: Update comments to avoid mentioning catch_errors.
3198 (catch_errors_ftype, catch_errors): Delete.
3199 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
3200 (hook_stop_stub): Delete.
3201 (restore_selected_frame): Change return type to void, and
3202 parameter type to const frame_id &.
3203 (restore_infcall_control_state): Use TRY/CATCH instead of
3205 * main.c (captured_command_loop): Return void and remove
3206 parameter. Remove references to catch_errors.
3207 (captured_main): Use TRY/CATCH instead of catch_errors.
3208 * objc-lang.c (objc_submethod_helper_data)
3209 (find_objc_msgcall_submethod_helper): Delete.
3210 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
3212 * record-full.c (record_full_message): Return void.
3213 (record_full_message_args, record_full_message_wrapper): Delete.
3214 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
3215 instead of catch_errors.
3216 * solib-aix.c (solib_aix_open_symbol_file_object): Change
3217 parameter type to int.
3218 * solib-darwin.c (open_symbol_file_object): Ditto.
3219 * solib-dsbt.c (open_symbol_file_object): Ditto.
3220 * solib-frv.c (open_symbol_file_object): Ditto.
3221 * solib-svr4.c (open_symbol_file_object): Ditto.
3222 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
3223 * solib.c (update_solib_list): Use TRY/CATCH instead of
3225 * solist.h (struct target_so_ops) <open_symbol_file_object>:
3227 * symmisc.c (struct print_symbol_args): Remove.
3228 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
3229 (print_symbol): Change type.
3230 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
3231 and remove parameters.
3232 (catch_errors): New.
3233 (get_windows_debug_event): Adjust.
3235 2017-10-09 Tom Tromey <tom@tromey.com>
3237 * mi/mi-main.c (free_splay_tree): Remove.
3238 (list_available_thread_groups): Use splay_tree_up.
3239 * common/gdb_splay_tree.h: New file.
3241 2017-10-09 Tom Tromey <tom@tromey.com>
3243 * mi/mi-main.c (do_nothing): Remove.
3244 (list_available_thread_groups): Update.
3246 2017-10-09 Pedro Alves <palves@redhat.com>
3248 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
3249 reading registers when switching context.
3251 2017-10-09 John Baldwin <jhb@FreeBSD.org>
3253 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
3254 (fbsd_convert_siginfo): Likewise.
3255 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
3257 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
3259 * configure.ac (try_guile_versions): Remove guile-2.2.
3260 * configure: Regenerate.
3262 2017-10-09 Tom Tromey <tom@tromey.com>
3264 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
3265 (COMPILE.pre): Use $(CXX).
3267 2017-10-09 Pedro Alves <palves@redhat.com>
3269 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
3271 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
3272 * cp-support.h (cp_remove_params): Now returns a
3273 gdb::unique_xmalloc_ptr.
3274 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
3275 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
3276 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
3277 returning a gdb::unique_xmalloc_ptr.
3278 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
3279 * stack.c (find_frame_funname): Adjust to cp_remove_params
3280 returning a gdb::unique_xmalloc_ptr.
3282 2017-10-08 Tom Tromey <tom@tromey.com>
3284 * dwarf2read.c (dwarf2_get_dwz_file): Use
3285 gdb::unique_xmalloc_ptr.
3286 (find_slot_in_mapped_hash): Likewise.
3287 (dwarf2_physname): Likewise.
3288 (create_dwo_unit_in_dwp_v1): Use std::string.
3289 (create_dwo_unit_in_dwp_v2): Likewise.
3290 (lookup_dwo_cutu): Likewise.
3291 (inherit_abstract_dies): Use std::vector.
3292 (read_array_type): Likewise.
3293 (dwarf_decode_macros): Remove unused declaration.
3294 (unsigned_int_compar): Remove.
3295 (dwarf2_build_psymtabs_hard): Use scoped_restore.
3296 (psymtabs_addrmap_cleanup): Remove.
3298 2017-10-08 Tom Tromey <tom@tromey.com>
3300 * frame-unwind.c (frame_unwind_try_unwinder): Update.
3301 * frame.h (frame_cleanup_after_sniffer): Declare.
3302 (frame_prepare_for_sniffer): Return void.
3303 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
3305 (frame_prepare_for_sniffer): Return void.
3307 2017-10-08 Tom Tromey <tom@tromey.com>
3309 * utils.h (make_cleanup_value_free): Remove.
3310 * utils.c (do_value_free, struct cleanup): Remove.
3311 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
3313 * value.h (struct value_deleter): New.
3314 (gdb_value_up): New typedef.
3316 2017-10-08 Tom Tromey <tom@tromey.com>
3318 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
3319 (make_cleanup_free_search_symbols): Remove.
3320 (search_symbols): Return std::vector.
3321 (symbol_search::compare_search_syms): Now member of
3322 symbol_search. Change arguments.
3323 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
3324 (symtab_symbol_info, rbreak_command): Update.
3325 * symtab.h (struct symbol_search) <next>: Remove.
3327 (symbol_search::operator<): New function.
3328 (symbol_search::operator==): New function.
3329 (search_symbols): Remove std::vector.
3330 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
3331 (symbol_search::compare_search_syms): Declare.
3333 2017-10-06 Yao Qi <yao.qi@linaro.org>
3335 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
3336 arch/aarch64-insn.o.
3338 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
3340 2017-10-06 Yao Qi <yao.qi@linaro.org>
3342 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
3343 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
3344 arch/arm-linux.o respectively.
3345 * configure.tgt: Likewise.
3347 2017-10-06 Yao Qi <yao.qi@linaro.org>
3349 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
3350 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
3352 2017-10-06 Pedro Alves <palves@redhat.com>
3354 * windows-nat.c: Include <algorithm>.
3356 2017-10-06 Yao Qi <yao.qi@linaro.org>
3358 * configure.tgt (i386_tobjs): New variable.
3359 (amd64_tobjs): New variable.
3360 Set $cpu_obs and $os_obs.
3362 2017-10-06 Yao Qi <yao.qi@linaro.org>
3364 * Makefile.in (CONFIG_SRC_SUBDIR): New.
3365 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
3366 (clean): Remove object files and dependency files.
3367 (distclean): Remove the directory.
3368 * configure.ac: Invoke AC_CONFIG_COMMANDS.
3369 * configure: Re-generated.
3370 * configure.tgt: Replace amd64.o with arch/amd64.o.
3372 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
3375 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
3378 2017-10-05 Pedro Alves <palves@redhat.com>
3380 * linux-nat.c (linux_child_follow_fork): When following the parent
3381 and detaching the child, consult the parent thread's architecture
3382 instead of the child's.
3384 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3386 * ax.h: Do not include "doublest.h".
3387 (union agent_val): Remove.
3389 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3391 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
3392 (decimal_to_string): Return std::string object.
3393 (decimal_from_string): Accept std::string object. Return bool.
3394 (decimal_from_integral, decimal_from_doublest): Remove.
3395 (decimal_from_longest): Add prototype.
3396 (decimal_from_ulongest): Likewise.
3397 (decimal_to_longest): Likewise.
3398 (decimal_from_doublest): Likewise.
3399 * dfp.c: Do not include "gdbtypes.h" or "value.h".
3400 (MAX_DECIMAL_STRING): Move here.
3401 (decimal_to_string): Return std::string object.
3402 (decimal_from_string): Accept std::string object. Return bool.
3403 (decimal_from_integral): Remove, replace by ...
3404 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
3405 (decimal_to_longest): New function.
3406 (decimal_from_floating): Remove, replace by ...
3407 (decimal_from_doublest): ... this new function.
3408 (decimal_to_doublest): Update to new decimal_to_string interface.
3410 * value.c (unpack_long): Use decimal_to_longest.
3411 * valops.c (value_cast): Use decimal_from_doublest instead of
3412 decimal_from_floating. Use decimal_from_[u]longest isntead of
3413 decimal_from_integral.
3414 * valarith.c (value_args_as_decimal): Likewise.
3415 * valprint.c (print_decimal_floating): Update to new
3416 decimal_to_string interface.
3417 * printcmd.c (printf_decfloat): Likewise.
3418 * c-exp.y (parse_number): Update to new decimal_from_string interface.
3420 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3422 * doublest.h: Do not include "floatformat.h". Remove stale comments.
3423 * gdbtypes.c: Include "floatformat.h".
3424 * value.c: Likewise.
3425 * m68k-tdep.c: Likewise.
3427 * findvar.c: Do not include "floatformat.h".
3428 * amd64-darwin-tdep.c: Likewise.
3429 * arm-linux-tdep.c: Likewise.
3430 * i386-darwin-tdep.c: Likewise.
3431 * i387-tdep.c: Likewise.
3432 * m68k-linux-tdep.c: Likewise.
3433 * mep-tdep.c: Likewise.
3434 * mips-tdep.c: Likewise.
3435 * nios2-tdep.c: Likewise.
3436 * s390-linux-tdep.c: Likewise.
3437 * sparc-obsd-tdep.c: Likewise.
3438 * sparc-tdep.c: Likewise.
3439 * sparc64-tdep.c: Likewise.
3440 * spu-tdep.c: Likewise.
3441 * tic6x-tdep.c: Likewise.
3442 * tilegx-tdep.c: Likewise.
3443 * vax-tdep.c: Likewise.
3444 * xstormy16-tdep.c: Likewise.
3445 * xtensa-tdep.c: Likewise.
3447 * top.c: Do not include "doublest.h".
3448 * aarch64-tdep.c: Likewise.
3449 * alpha-tdep.c: Likewise.
3450 * arm-linux-tdep.c: Likewise.
3451 * m68k-linux-tdep.c: Likewise.
3452 * tilegx-tdep.c: Likewise.
3453 * xstormy16-tdep.c: Likewise.
3455 2017-10-05 John Baldwin <jhb@FreeBSD.org>
3457 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
3458 (mipsn32_fbsd_sigframe): Define.
3459 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
3460 for FreeBSD/mipsn32.
3462 2017-10-05 John Baldwin <jhb@FreeBSD.org>
3464 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
3467 2017-10-05 Tristan Gingold <tgingold@free.fr>
3469 * MAINTAINERS (Misc): Update my email address.
3471 2017-10-04 Pedro Alves <palves@redhat.com>
3473 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
3474 it instead of target_gdbarch.
3475 (get_remote_state, get_remote_packet_size): Adjust
3476 get_remote_arch_state calls, passing down target_gdbarch
3478 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
3479 'gdbarch' and use it instead of target_gdbarch.
3480 (get_memory_packet_size): Adjust get_remote_arch_state calls,
3481 passing down target_gdbarch explicitly.
3482 (struct stop_reply) <arch>: New field.
3483 (remote_parse_stop_reply): Use the stopped thread's architecture,
3484 not the current inferior's. Save the architecture in the
3486 (process_stop_reply): Use the stop reply's architecture.
3487 (process_g_packet, remote_fetch_registers)
3488 (remote_prepare_to_store, store_registers_using_G)
3489 (remote_store_registers): Adjust get_remote_arch_state calls,
3490 using the regcache's architecture.
3491 (remote_get_trace_status): Adjust get_remote_arch_state calls,
3492 passing down target_gdbarch explicitly.
3493 * spu-multiarch.c (spu_thread_architecture): Defer to the target
3494 beneath instead of calling target_gdbarch.
3495 * target.c (default_thread_architecture): Use the specified
3496 inferior's architecture, instead of the current inferior's
3497 architecture (via target_gdbarch).
3499 2017-10-04 Pedro Alves <palves@redhat.com>
3501 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
3503 (regcache_print): Handle !target_has_registers here instead.
3505 2017-10-04 Pedro Alves <palves@redhat.com>
3507 * frame.c (create_test_frame): Delete.
3508 * frame.h (create_test_frame): Delete.
3509 * gdbarch-selftests.c: Include gdbthread.h and target.h.
3510 (class regcache_test): Delete.
3511 (test_target_has_registers, test_target_has_stack)
3512 (test_target_has_memory, test_target_prepare_to_store)
3513 (test_target_store_registers): New functions.
3514 (test_target_ops): New class.
3515 (register_to_value_test): Error out if there's already a
3516 process_stratum (or higher) target pushed. Create a fuller mock
3517 environment, with mock target_ops, inferior, address space, thread
3519 * progspace.c (struct address_space): Move to ...
3520 * progspace.h (struct address_space): ... here.
3521 * regcache.h (regcache::~regcache, regcache::raw_write)
3522 [GDB_SELF_TEST]: No longer virtual.
3524 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
3526 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
3528 2017-10-04 Pedro Alves <palves@redhat.com>
3530 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
3531 out of 'between TRY and CATCH'.
3533 2017-10-04 Pedro Alves <palves@redhat.com>
3535 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
3536 * common/common-exceptions.h (TRY): Open an outermost scope.
3537 Expand intro comment.
3539 (END_CATCH): Close the outermost scope.
3540 * completer.c (complete_line_internal): Add missing END_CATCH.
3542 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3544 * NEWS (Changes since GDB 8.0): Add entry about new
3545 'set-cwd-on-gdbserver' feature.
3546 (New remote packets): Add entry for QSetWorkingDir.
3547 * common/common-inferior.h (set_inferior_cwd): New prototype.
3548 * infcmd.c (set_inferior_cwd): Remove "static".
3549 (show_cwd_command): Expand text to include remote debugging.
3550 * remote.c: Add PACKET_QSetWorkingDir.
3551 (remote_protocol_features) <QSetWorkingDir>: New entry for
3552 PACKET_QSetWorkingDir.
3553 (extended_remote_set_inferior_cwd): New function.
3554 (extended_remote_create_inferior): Call
3555 "extended_remote_set_inferior_cwd".
3556 (_initialize_remote): Call "add_packet_config_cmd" for
3559 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3561 * NEWS (New commands): Mention "set/show cwd".
3562 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
3563 "cd" command's help text.
3564 * common/common-inferior.h (get_inferior_cwd): New prototype.
3565 * infcmd.c (inferior_cwd_scratch): New global variable.
3566 (set_inferior_cwd): New function.
3567 (get_inferior_cwd): Likewise.
3568 (set_cwd_command): Likewise.
3569 (show_cwd_command): Likewise.
3570 (_initialize_infcmd): Add "set/show cwd" commands.
3571 * inferior.h (class inferior) <cwd>: New field.
3572 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
3573 (fork_inferior): Change inferior's cwd before its execution.
3574 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
3577 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3579 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
3580 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
3581 (COMMON_OBS): Add gdb_tilde_expand.o.
3582 * common/gdb_tilde_expand.c: New file.
3583 * common/gdb_tilde_expand.h: Likewise.
3585 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
3587 * gdbarch.sh (objfile): Remove duplicate declaration.
3588 * gdbarch.h: Regenerate.
3590 2017-10-03 Tom Tromey <tom@tromey.com>
3592 * utils.c (internal_vproblem): Use string_vprintf.
3594 2017-10-03 Tom Tromey <tom@tromey.com>
3596 * printcmd.c (info_symbol_command): Use std::string.
3598 2017-10-03 Tom Tromey <tom@tromey.com>
3600 * top.c (gdb_safe_append_history): Use std::string.
3602 2017-10-03 Tom Tromey <tom@tromey.com>
3604 * event-top.c (stdin_event_handler): Update.
3605 * main.c (captured_main_1): Update.
3606 * top.h (make_delete_ui_cleanup): Remove.
3607 (struct ui): Add constructor and destructor.
3608 (new_ui, delete_ui): Remove.
3609 * top.c (make_delete_ui_cleanup): Remove.
3610 (new_ui_command): Use std::unique_ptr.
3611 (delete_ui_cleanup): Remove.
3612 (ui::ui): Rename from new_ui. Update.
3614 (ui::~ui): Rename from delete_ui. Update.
3616 2017-10-03 Tom Tromey <tom@tromey.com>
3618 * symfile.c (load_progress): Use gdb::byte_vector.
3620 2017-10-03 Tom Tromey <tom@tromey.com>
3622 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
3624 * printcmd.c (x_command): Remove unused declaration.
3625 * symfile.c (symbol_file_command): Remove unused declaration.
3627 2017-10-03 Tom Tromey <tom@tromey.com>
3629 * utils.c (internal_vproblem): Use std::string.
3630 (defaulted_query): Likewise.
3632 2017-10-03 Tom Tromey <tom@tromey.com>
3634 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
3635 * top.c (execute_command_to_string): Update.
3636 * utils.c (make_cleanup_restore_page_info): Remove.
3637 (do_restore_page_info_cleanup): Remove.
3638 (set_batch_flag_and_restore_page_info):
3640 (make_cleanup_restore_page_info): Remove.
3641 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
3642 (~set_batch_flag_and_restore_page_info): New
3643 (make_cleanup_restore_uinteger): Remove.
3644 (make_cleanup_restore_integer): Remove.
3645 (struct restore_integer_closure): Remove.
3646 (restore_integer): Remove.
3647 * utils.h (struct set_batch_flag_and_restore_page_info): New
3649 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
3650 (make_cleanup_restore_page_info): Remove.
3651 (make_cleanup_restore_uinteger) Remove.
3652 (make_cleanup_restore_integer) Remove.
3654 2017-10-03 Tom Tromey <tom@tromey.com>
3656 * record-full.h (record_full_gdb_operation_disable_set): Return
3657 scoped_restore_tmpl<int>.
3658 * infrun.c (adjust_pc_after_break): Update.
3659 (handle_signal_stop): Update.
3660 * record-full.c (record_full_gdb_operation_disable_set): Return
3661 scoped_restore_tmpl<int>.
3662 (record_full_wait_1, record_full_insert_breakpoint)
3663 (record_full_remove_breakpoint, record_full_save)
3664 (record_full_goto_insn): Update.
3666 2017-10-02 Tom Tromey <tom@tromey.com>
3669 * rust-lang.c (rust_val_print_str): New function.
3670 (val_print_struct): Call it.
3671 (rust_subscript): Preserve name of slice type.
3673 2017-10-02 Tom Tromey <tom@tromey.com>
3675 * rust-lang.c (rust_subscript): Handle slices in
3676 EVAL_AVOID_SIDE_EFFECTS case.
3678 2017-10-02 Tom Tromey <tom@tromey.com>
3680 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
3682 2017-10-02 Tom Tromey <tom@tromey.com>
3684 * rust-lang.h (rust_slice_type): Add "extern".
3686 2017-10-02 Tom Tromey <tom@tromey.com>
3687 Pedro Alves <palves@redhat.com>
3689 * ada-lang.h (ada_exc_info::operator<): Make const.
3690 (ada_exc_info::operator==): Make const.
3691 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
3694 2017-09-29 Tom Tromey <tom@tromey.com>
3696 * target.c (read_whatever_is_readable): Change type of "result".
3698 (free_memory_read_result_vector): Remove.
3699 (read_memory_robust): Change return type. Update.
3700 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
3701 bin2hex, std::string.
3702 * target.h (memory_read_result_s): Remove typedef.
3703 (free_memory_read_result_vector): Remove.
3704 (read_memory_robust): Return std::vector.
3706 2017-09-29 Tom Tromey <tom@tromey.com>
3708 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
3710 2017-09-29 Tom Tromey <tom@tromey.com>
3712 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
3713 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
3714 operator< and operator==.
3715 (ada_exceptions_list): Return a std::vector.
3716 * ada-lang.c (ada_exc_info::operator<): Rename from
3717 compare_ada_exception_info.
3718 (ada_exc_info::operator==): New.
3719 (sort_remove_dups_ada_exceptions_list): Change type of
3721 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
3722 (ada_add_global_exceptions): Likewise.
3723 (ada_exceptions_list_1): Return a std::vector.
3724 (ada_exceptions_list): Likewise.
3726 2017-09-29 Tom Tromey <tom@tromey.com>
3728 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
3730 (print_one_inferior): Update.
3731 (free_vector_of_ints): Remove.
3732 (list_available_thread_groups): Change "ids" to std::set.
3733 (mi_cmd_list_thread_groups): Update.
3734 (struct collect_cores_data) <core>: Now a std::set.
3735 (collect_cores): Update.
3737 (print_one_inferior): Update.
3739 2017-09-29 Tom Tromey <tom@tromey.com>
3741 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
3742 (mi_execute_async_cli_command): Likewise.
3743 (mi_cmd_trace_frame_collected): Use field_fmt.
3745 2017-09-29 Tom Tromey <tom@tromey.com>
3747 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
3750 2017-09-29 Tom Tromey <tom@tromey.com>
3752 * mi/mi-parse.c (mi_parse): Remove unused declaration.
3754 2017-09-29 Tom Tromey <tom@tromey.com>
3756 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
3758 2017-09-29 Tom Tromey <tom@tromey.com>
3760 * varobj.h (varobj_gen_name): Return std::string.
3761 * varobj.c (varobj_gen_name): Return std::string.
3762 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
3763 (mi_cmd_var_delete): Don't copy "name".
3765 2017-09-29 Tom Tromey <tom@tromey.com>
3767 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
3768 (mi_cmd_break_insert_1): Update.
3770 2017-09-29 Tom Tromey <tom@tromey.com>
3772 * target.h (make_scoped_defer_target_commit_resume): Update.
3773 * target.c (make_scoped_defer_target_commit_resume): Rename from
3774 make_cleanup_defer_target_commit_resume. Return a
3776 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
3778 2017-09-29 Tom Tromey <tom@tromey.com>
3780 * main.c (captured_main_1): Remove unused declaration.
3781 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
3783 2017-09-29 Tom Tromey <tom@tromey.com>
3785 * symtab.c (search_symbols): Remove unused outer cleanup.
3786 (make_source_files_completion_list): Remove unused declaration.
3788 2017-09-29 Tom Tromey <tom@tromey.com>
3790 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
3792 2017-09-29 Tom Tromey <tom@tromey.com>
3794 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
3797 2017-09-29 Tom Tromey <tom@tromey.com>
3799 * complaints.c (vcomplaint): Use std::string.
3801 2017-09-29 Tom Tromey <tom@tromey.com>
3803 * tracepoint.c (trace_variable_command): Use std::string.
3804 (encode_actions_1): Remove unused declarations.
3805 (create_tsv_from_upload): Use std::string.
3807 2017-09-29 Tom Tromey <tom@tromey.com>
3809 * cp-support.c (gdb_demangle): Use std::string.
3811 2017-09-29 Tom Tromey <tom@tromey.com>
3813 * stack.c (parse_frame_specification): Use std::string
3814 (info_frame_command): Use gdb::unique_xmalloc_ptr.
3816 2017-09-29 Tom Tromey <tom@tromey.com>
3818 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
3820 2017-09-29 Tom Tromey <tom@tromey.com>
3822 * utils.c (vfprintf_maybe_filtered): Use std::string.
3823 (vfprintf_unfiltered): Likewise.
3825 2017-09-29 Tom Tromey <tom@tromey.com>
3827 * event-top.c (top_level_prompt): Return std::string.
3828 (display_gdb_prompt): Update.
3830 2017-09-29 Tom Tromey <tom@tromey.com>
3832 * unittests/common-utils-selftests.c (format): New function.
3833 (string_vprintf_tests): New function.
3834 (_initialize_common_utils_selftests): Register new tests.
3835 * common/common-utils.c (string_vprintf): New function.
3836 * common/common-utils.h (string_vprintf): Declare.
3838 2017-09-29 Pedro Alves <palves@redhat.com>
3840 * common/rsp-low.c (unpack_varlen_hex): Constify.
3841 * common/rsp-low.h (unpack_varlen_hex): Constify.
3842 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3844 * remote.c (remote_set_permissions, read_ptid)
3845 (remote_current_thread, remote_get_threads_with_qthreadinfo)
3846 (remote_static_tracepoint_marker_at)
3847 (remote_static_tracepoint_markers_by_strid)
3848 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
3849 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
3850 (parse_tracepoint_definition, parse_tsv_definition)
3851 (parse_static_tracepoint_marker_definition): Constify.
3852 * tracepoint.h (parse_static_tracepoint_marker_definition)
3853 (parse_trace_status, parse_tracepoint_status)
3854 (parse_tracepoint_definition, parse_tsv_definition): Constify.
3856 2017-09-29 Pedro Alves <palves@redhat.com>
3858 * remote.c (target_buf, target_buf_size): Delete.
3859 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
3860 Use the connection's packet buffer instead.
3861 All callers adjusted.
3862 (_initialize_remote): Remove references to target_buf and
3865 2017-09-28 Pedro Alves <palves@redhat.com>
3867 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3868 unittests/common-utils-selftests.c.
3869 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
3870 (COMMON_OBS): Remove utils-selftests.o.
3871 * utils-selftests.c: Move to ...
3872 * unittests/common-utils-selftests.c: ... here and rename self
3873 test to "string_printf".
3875 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
3877 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
3878 having NULL cus or tus.
3880 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3882 * arm-tdep.c: (convert_from_extended): Remove.
3883 (convert_to_extended): Likewise.
3884 (arm_extract_return_value): Use convert_typed_floating.
3885 (arm_store_return_value): Likewise.
3887 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3888 * sh-tdep.c: Do not include "floatformat.h".
3889 (sh_littlebyte_bigword_type): New function.
3890 (sh_register_convert_to_virtual): Use convert_typed_floating.
3891 (sh_register_convert_to_raw): Likewise.
3892 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3893 (sh64_littlebyte_bigword_type): New function.
3894 (sh64_extract_return_value): Use convert_typed_floating.
3895 (sh64_register_convert_to_virtual): Likewise.
3896 (sh64_register_convert_to_raw): Likewise.
3898 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3900 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
3901 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
3903 * gdbtypes.h (union type_specific): Make field floatformat hold
3904 just a single struct floatformat, not an array.
3905 (floatformat_from_type): Move here.
3906 * gdbtypes.c (floatformat_from_type): Move here. Update to
3907 changed TYPE_FLOATFORMAT definition.
3908 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
3909 (recursive_dump_type): Likewise.
3910 (init_float_type): Install correct floatformat for byte order.
3911 (arch_float_type): Likewise.
3913 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3915 * gdbtypes.c (init_type): Change incoming argument from
3916 length-in-bytes to length-in-bits. Assert length is a
3917 multiple of TARGET_CHAR_BITS.
3918 (arch_type, arch_flags_type): Likewise.
3919 (init_integer_type): Update call to init_type.
3920 (init_character_type): Likewise.
3921 (init_boolean_type): Likewise.
3922 (init_float_type): Likewise.
3923 (init_decfloat_type): Likewise.
3924 (init_complex_type): Likewise.
3925 (init_pointer_type): Likewise.
3926 (objfile_type): Likewise.
3927 (arch_integer_type): Update call to arch_type.
3928 (arch_character_type): Likewise.
3929 (arch_boolean_type): Likewise.
3930 (arch_float_type): Likewise.
3931 (arch_decfloat_type): Likewise.
3932 (arch_complex_type): Likewise.
3933 (arch_pointer_type): Likewise.
3934 (gdbtypes_post_init): Likewise.
3936 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
3937 (read_base_type): Likewise.
3938 * mdebugread.c (basic_type): Likewise.
3939 * stabsread.c (dbx_init_float_type): Likewise.
3940 (rs6000_builtin_type): Likewise.
3941 (read_range_type): Likewise. Also, fix call to init_integer_type
3942 with erroneous length argument.
3944 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
3945 * d-lang.c (build_d_types): Likewise.
3946 * f-lang.c (build_fortran_types): Likewise.
3947 * go-lang.c (build_go_types): Likewise.
3948 * opencl-lang.c (build_opencl_types): Likewise.
3949 * jit.c (finalize_symtab): Likewise.
3950 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3951 (build_std_type_info_type): Likewise.
3952 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
3953 update call to arch_flags_type.
3955 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
3957 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
3958 * windows-tdep.c (windows_get_tlb_type): Likewise.
3960 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
3961 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
3962 * m32c-tdep.c (make_types): Likewise.
3963 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3964 (rl78_psw_type): Update call to arch_flags_type.
3965 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
3966 * rx-tdep.c (rx_psw_type): Likewise.
3967 (rx_fpsw_type): Likewise.
3968 * sparc-tdep.c (sparc_psr_type): Likewise.
3969 (sparc_fsr_type): Likewise.
3970 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
3971 (sparc64_ccr_type): Likewise.
3972 (sparc64_fsr_type): Likewise.
3973 (sparc64_fprs_type): Likewise.
3975 2017-09-27 Tom Tromey <tom@tromey.com>
3977 * findcmd.c (find_command): Constify.
3979 2017-09-27 Tom Tromey <tom@tromey.com>
3981 * ada-tasks.c (task_command_1, task_command): Constify.
3983 2017-09-27 Tom Tromey <tom@tromey.com>
3985 * symtab.c (maintenance_print_symbol_cache)
3986 (maintenance_flush_symbol_cache)
3987 (maintenance_print_symbol_cache_statistics): Constify.
3989 2017-09-27 Tom Tromey <tom@tromey.com>
3991 * inferior.c (detach_inferior_command, kill_inferior_command)
3992 (inferior_command): Constify.
3994 2017-09-27 Tom Tromey <tom@tromey.com>
3996 * regcache.c (regcache_print, maintenance_print_registers)
3997 (maintenance_print_raw_registers)
3998 (maintenance_print_cooked_registers)
3999 (maintenance_print_register_groups)
4000 (maintenance_print_remote_registers): Constify.
4002 2017-09-27 Tom Tromey <tom@tromey.com>
4004 * printcmd.c (map_display_numbers, undisplay_command)
4005 (enable_disable_display_command, enable_display_command)
4006 (disable_display_command): Constify.
4008 2017-09-27 Tom Tromey <tom@tromey.com>
4010 * breakpoint.h (delete_command): Don't declare.
4011 * breakpoint.c (delete_command, enable_once_command)
4012 (enable_count_command, enable_delete_command, breakpoint_1)
4013 (maintenance_info_breakpoints, stopin_command, stopat_command)
4014 (delete_command, delete_trace_command, save_breakpoints)
4015 (save_breakpoints_command, save_tracepoints_command): Constify.
4017 2017-09-27 Tom Tromey <tom@tromey.com>
4019 * macrocmd.c (macro_expand_command, macro_expand_once_command)
4020 (skip_ws, extract_identifier, macro_define_command)
4021 (macro_undef_command, macro_list_command): Constify.
4023 2017-09-27 Tom Tromey <tom@tromey.com>
4025 * infcmd.c (environment_info, set_environment_command)
4026 (unset_environment_command, path_info, info_proc_cmd_1)
4027 (info_proc_cmd_mappings, info_proc_cmd_stat)
4028 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
4029 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
4031 2017-09-27 Tom Tromey <tom@tromey.com>
4033 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
4036 2017-09-27 Tom Tromey <tom@tromey.com>
4038 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
4040 2017-09-27 Tom Tromey <tom@tromey.com>
4042 * demangle.c (demangle_command): Constify.
4044 2017-09-27 Tom Tromey <tom@tromey.com>
4046 * progspace.c (maintenance_info_program_spaces_command):
4049 2017-09-27 Tom Tromey <tom@tromey.com>
4051 * compile/compile.c (check_raw_argument, compile_file_command)
4052 (compile_code_command, compile_print_command): Constify.
4054 2017-09-27 Tom Tromey <tom@tromey.com>
4056 * reggroups.c (maintenance_print_reggroups): Constify.
4058 2017-09-27 Tom Tromey <tom@tromey.com>
4060 * dwarf2read.c (save_gdb_index_command): Constify.
4062 2017-09-27 Tom Tromey <tom@tromey.com>
4064 * stap-probe.c (info_probes_stap_command): Constify.
4066 2017-09-27 Tom Tromey <tom@tromey.com>
4068 * fork-child.c (unset_exec_wrapper_command): Constify.
4070 2017-09-27 Tom Tromey <tom@tromey.com>
4072 * btrace.c (get_uint, get_context_size, no_chunk)
4073 (maint_btrace_packet_history_cmd)
4074 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
4075 (maint_info_btrace_cmd): Constify.
4077 2017-09-27 Tom Tromey <tom@tromey.com>
4079 * reverse.c (delete_bookmark_command): Constify.
4081 2017-09-27 Tom Tromey <tom@tromey.com>
4083 * remote.c (set_memory_packet_size)
4084 (set_memory_write_packet_size, show_memory_write_packet_size)
4085 (set_memory_read_packet_size, show_memory_read_packet_size)
4086 (compare_sections_command, packet_command, remote_put_command)
4087 (remote_get_command, remote_delete_command): Constify.
4089 2017-09-27 Tom Tromey <tom@tromey.com>
4091 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
4092 (set_mipsfpu_double_command, set_mipsfpu_none_command)
4093 (set_mipsfpu_auto_command): Constify.
4095 2017-09-27 Tom Tromey <tom@tromey.com>
4097 * cli/cli-cmds.h (cd_command): Constify.
4098 * cli/cli-cmds.c (cd_command): Constify.
4100 2017-09-27 Tom Tromey <tom@tromey.com>
4102 * thread.c (thread_name_command, thread_find_command): Constify.
4104 2017-09-27 Tom Tromey <tom@tromey.com>
4106 * probe.c (enable_probes_command, disable_probes_command):
4109 2017-09-27 Tom Tromey <tom@tromey.com>
4111 * symfile.c (symbol_file_command): Constify.
4112 * gdbcore.h (deprecated_file_changed_hook): Constify.
4113 * exec.c (deprecated_file_changed_hook, exec_file_command)
4114 (file_command): Constify.
4115 * defs.h (symbol_file_command): Constify.
4117 2017-09-27 Tom Tromey <tom@tromey.com>
4119 * remote-fileio.c (set_system_call_allowed)
4120 (show_system_call_allowed): Constify.
4122 2017-09-27 Tom Tromey <tom@tromey.com>
4124 * tracepoint.c (delete_trace_variable_command)
4125 (tfind_end_command, tfind_start_command, tfind_pc_command)
4126 (tfind_tracepoint_command, tfind_line_command)
4127 (tfind_range_command, tfind_outside_command): Constify.
4129 2017-09-27 Tom Tromey <tom@tromey.com>
4131 * ax-gdb.c (maint_agent_printf_command, agent_command)
4132 (agent_eval_command): Constify.
4134 2017-09-27 Tom Tromey <tom@tromey.com>
4136 * tracepoint.c (info_scope_command): Constify.
4137 * python/python.c (gdbpy_decode_line): Constify.
4138 * python/py-breakpoint.c (bppy_init): Constify.
4139 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
4140 * location.h: (new_linespec_location)
4141 (string_to_event_location_basic, string_to_event_location):
4143 * location.c (new_linespec_location)
4144 (string_to_event_location_basic, string_to_event_location):
4146 * linespec.h (decode_line_with_current_source)
4147 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
4148 * linespec.c (linespec_lex_to_end)
4149 (decode_line_with_current_source)
4150 (decode_line_with_last_displayed): Constify.
4151 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
4153 * cli/cli-cmds.c (edit_command, list_command): Constify.
4154 * breakpoint.h (until_break_command, watch_command_wrapper)
4155 (awatch_command_wrapper, rwatch_command_wrapper)
4156 (init_ada_exception_breakpoint): Constify.
4157 * breakpoint.c (break_command_1, dprintf_command)
4158 (break_range_command, watch_command_wrapper)
4159 (rwatch_command_wrapper, awatch_command_wrapper)
4160 (until_break_command, init_ada_exception_breakpoint)
4161 (strace_marker_create_sals_from_location, trace_command)
4162 (ftrace_command, strace_command, struct tracepoint): Constify.
4163 * ax-gdb.c (agent_command_1): Constify.
4164 * ada-lang.c (ada_exception_sal): Constify.
4166 2017-09-27 Tom Tromey <tom@tromey.com>
4168 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
4169 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
4170 (get_context_size, no_chunk, get_insn_history_modifiers)
4171 (cmd_record_insn_history, get_call_history_modifiers)
4172 (cmd_record_call_history): Constify.
4174 2017-09-27 Tom Tromey <tom@tromey.com>
4176 * source.c (show_substitute_path_command)
4177 (unset_substitute_path_command, set_substitute_path_command):
4180 2017-09-27 Tom Tromey <tom@tromey.com>
4182 * typeprint.c (maintenance_print_type): Constify.
4183 * maint.c (maintenance_dump_me, maintenance_demangle)
4184 (maintenance_time_display, maintenance_info_sections)
4185 (maintenance_print_statistics, maintenance_deprecate)
4186 (maintenance_undeprecate): Constify.
4187 (maintenance_do_deprecate): Constify. Use std::string.
4188 (maintenance_selftest): Constify.
4189 * gdbtypes.h (maintenance_print_type): Constify.
4191 2017-09-27 Tom Tromey <tom@tromey.com>
4193 * hppa-tdep.c (unwind_command): Constify.
4195 2017-09-27 Tom Tromey <tom@tromey.com>
4197 * target-descriptions.c (unset_tdesc_filename_cmd)
4198 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
4201 2017-09-27 Tom Tromey <tom@tromey.com>
4203 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
4205 2017-09-27 Tom Tromey <tom@tromey.com>
4207 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
4209 2017-09-27 Tom Tromey <tom@tromey.com>
4211 * tui/tui-regs.c (tui_reg_command): Constify.
4213 2017-09-27 Tom Tromey <tom@tromey.com>
4215 * skip.c (skip_file_command, skip_function_command)
4216 (skip_enable_command, skip_disable_command, skip_delete_command):
4219 2017-09-27 Tom Tromey <tom@tromey.com>
4221 * record-btrace.c (cmd_record_btrace_bts_start)
4222 (cmd_record_btrace_pt_start): Constify.
4224 2017-09-27 Tom Tromey <tom@tromey.com>
4226 * symmisc.c (maintenance_print_symbols)
4227 (maintenance_print_msymbols, maintenance_print_objfiles)
4228 (maintenance_info_symtabs, maintenance_check_symtabs)
4229 (maintenance_expand_symtabs, maintenance_info_line_tables):
4232 2017-09-27 Tom Tromey <tom@tromey.com>
4234 * top.c (new_ui_command): Constify.
4236 2017-09-27 Tom Tromey <tom@tromey.com>
4238 * symfile.c (add_symbol_file_command)
4239 (remove_symbol_file_command, list_overlays_command)
4240 (map_overlay_command, unmap_overlay_command)
4241 (overlay_auto_command, overlay_manual_command)
4242 (overlay_off_command, overlay_load_command): Constify.
4244 2017-09-27 Tom Tromey <tom@tromey.com>
4246 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4247 (info_spu_mailbox_command, info_spu_dma_command)
4248 (info_spu_proxydma_command): Constify.
4250 2017-09-27 Tom Tromey <tom@tromey.com>
4252 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
4254 2017-09-27 Tom Tromey <tom@tromey.com>
4256 * cli/cli-script.c (user_defined_command): Constify.
4258 2017-09-27 Tom Tromey <tom@tromey.com>
4260 * cli/cli-dump.c (dump_memory_command, dump_value_command)
4261 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
4262 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
4263 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
4264 (dump_binary_value, append_binary_memory, append_binary_value):
4266 (struct dump_context) <func>: Constify.
4267 (add_dump_command): Update.
4269 2017-09-27 Tom Tromey <tom@tromey.com>
4271 * cli/cli-cmds.c (show_version, show_configuration)
4272 (source_command, show_user): Constify.
4274 2017-09-27 Tom Tromey <tom@tromey.com>
4276 * target.c (maintenance_print_target_stack): Constify.
4278 2017-09-27 Tom Tromey <tom@tromey.com>
4280 * interps.c (interpreter_exec_cmd): Constify.
4282 2017-09-27 Tom Tromey <tom@tromey.com>
4284 * record-full.c (cmd_record_full_restore): Constify.
4286 2017-09-27 Tom Tromey <tom@tromey.com>
4288 * memattr.c (enable_mem_command, disable_mem_command)
4289 (delete_mem_command): Constify.
4291 2017-09-27 Tom Tromey <tom@tromey.com>
4293 * value.c (show_convenience): Constify.
4295 2017-09-27 Tom Tromey <tom@tromey.com>
4297 * gdbcore.h (core_file_command): Update.
4298 * corefile.c (core_file_command): Constify.
4300 2017-09-27 Tom Tromey <tom@tromey.com>
4302 * user-regs.c (maintenance_print_user_registers): Constify.
4304 2017-09-27 Tom Tromey <tom@tromey.com>
4306 * cp-namespace.c (maintenance_cplus_namespace): Constify.
4308 2017-09-27 Tom Tromey <tom@tromey.com>
4310 * cp-support.c (first_component_command): Constify.
4312 2017-09-27 Tom Tromey <tom@tromey.com>
4314 * psymtab.c (maintenance_print_psymbols)
4315 (maintenance_info_psymtabs, maintenance_check_psymtabs):
4318 2017-09-27 Tom Tromey <tom@tromey.com>
4320 * windows-tdep.c (display_tib): Constify.
4322 2017-09-27 Tom Tromey <tom@tromey.com>
4324 * linux-fork.c (delete_checkpoint_command)
4325 (detach_checkpoint_command): Constify.
4327 2017-09-27 Tom Tromey <tom@tromey.com>
4329 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
4331 2017-09-27 Tom Tromey <tom@tromey.com>
4333 * arc-tdep.c (dump_arc_instruction_command): Constify.
4335 2017-09-27 Tom Tromey <tom@tromey.com>
4337 * valprint.c (set_radix, show_radix): Constify.
4339 2017-09-27 Tom Tromey <tom@tromey.com>
4341 * dtrace-probe.c (info_probes_dtrace_command): Constify.
4343 2017-09-27 Tom Tromey <tom@tromey.com>
4345 * command.h (not_just_help_class_command): Update.
4346 * cli/cli-decode.h (not_just_help_class_command): Update.
4347 * cli/cli-decode.c (not_just_help_class_command): Constify.
4349 2017-09-27 Tom Tromey <tom@tromey.com>
4351 * gdb_bfd.c (maintenance_info_bfds): Constify.
4353 2017-09-27 Tom Tromey <tom@tromey.com>
4355 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
4357 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
4358 (do_const_cfunc): New function.
4359 (cmd_cfunc_eq): New overload.
4360 (cli_user_command_p): Check do_const_cfunc.
4361 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
4363 * command.h (add_cmd): Add const overload and no-function
4365 (set_cmd_cfunc): Add const overload.
4366 (cmd_const_cfunc_ftype): Declare.
4367 (cmd_cfunc_eq): Add const overload.
4368 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
4369 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
4372 2017-09-27 Tom Tromey <tom@tromey.com>
4374 * macroexp.c (get_next_token_for_substitution): New function.
4375 (substitute_args): Call it. Check for __VA_OPT__.
4377 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
4378 Pedro Alves <palves@redhat.com>
4380 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
4381 producer_is_icc_lt_14.
4382 (producer_is_icc_lt_14): New function.
4383 (check_producer): Add code for checking version of ICC.
4384 (producer_is_icc): Move to producer.c.
4385 (read_structure_type): Restrict ICC workaround to ICC<14.
4386 * producer.c: Include selftest.h.
4387 (producer_is_icc, producer_parsing_tests, _initialize_producer):
4389 * producer.h (producer_is_icc): New declaration.
4391 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
4393 * Makefile.in (SFILES): Add producer.c.
4394 (COMMON_OBS): Add producer.o
4395 * amd64-tdep.c (producer.h): Add new include.
4396 * dwarf2read.c (producer.h): Add new include.
4397 * producer.c: New file.
4398 * producer.h: New file.
4399 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
4401 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
4404 2017-09-26 Matthias Klose <doko@ubuntu.com>
4406 * configure.ac: Search ncursesw before ncurses.
4407 Check ncursesw/ncurses.h before ncurses/ncurses.h.
4408 * gdb_curses.h: Include <ncursesw/ncurses.h>
4409 * config.in, configure: Regenerate.
4411 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4414 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
4416 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
4417 Remove i386sol2 support.
4418 * configure.nat <i386sol2>: Remove.
4419 <sol2-64>: Fold into ...
4421 Move common settings to default section.
4423 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
4424 x86_64-*-solaris2.1[0-9]*>: Rename to ...
4425 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
4426 <i[34567]86-*-solaris*>: Remove.
4427 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
4429 * configure.ac: Remove wctype in libw check.
4430 (_MSE_INT_H): Don't define on Solaris 7-9.
4431 <solaris*>: Remove libthread_db.so.1 check.
4432 * configure: Regenerate.
4433 * config.in: Regenerate.
4435 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
4436 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
4437 (gdb_ps_size_t): Remove.
4438 Use base types in users.
4439 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
4441 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
4443 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4446 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
4447 (adi_is_addr_mapped): Likewise.
4448 (PSR_ICC): Don't redefine.
4449 (PSR_IMPL): Likewise.
4451 2017-09-25 Tom Tromey <tom@tromey.com>
4453 * regcache.c (regcache::dump): Use string_printf.
4455 2017-09-25 Tom Tromey <tom@tromey.com>
4457 * regcache.c (class regcache_invalidator): New.
4458 (struct register_to_invalidate): Remove.
4459 (make_cleanup_regcache_invalidate): Remove.
4460 (regcache::raw_write): Use regcache_invalidator.
4462 2017-09-25 Tom Tromey <tom@tromey.com>
4464 * spu-tdep.c (spu2ppu_sniffer): Update.
4465 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
4466 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
4468 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
4469 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
4470 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
4471 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
4472 (frame_pop): Update.
4474 2017-09-25 Tom Tromey <tom@tromey.com>
4476 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
4477 * regcache.h (regcache_xfree): Don't declare.
4478 * regcache.c (regcache_xfree): Remove.
4479 (do_regcache_xfree): Use delete.
4480 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
4481 * linux-fork.c (free_fork): Use delete.
4482 (fork_save_infrun_state): Likewise.
4483 * jit.c (jit_dealloc_cache): Use delete.
4484 * infrun.c (discard_infcall_suspend_state): Use delete.
4486 2017-09-25 Tom Tromey <tom@tromey.com>
4488 * regcache.h (regcache_xmalloc): Don't declare.
4489 (regcache_raw_set_cached_value): Update comment.
4490 * regcache.c (regcache_xmalloc): Remove.
4491 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
4492 * jit.c (jit_frame_sniffer): Use new.
4493 * frame.c (frame_save_as_regcache): Use new.
4495 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4497 * NEWS: Advertise support for guarded-storage registers on IBM z.
4499 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4501 * s390-linux-nat.c (have_regset_gs): New static variable.
4502 (s390_linux_fetch_inferior_registers): Handle guarded-storage
4503 control block and guarded-storage broadcast control regsets.
4504 (s390_read_description): Detect whether the target has
4505 guarded-storage support, return appropriate tdesc.
4506 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
4507 (features/s390x-gs-linux64.c): Likewise.
4508 (struct gdbarch_tdep) <have_gs>: New field.
4509 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
4510 (s390_gsbc_regset): New variables.
4511 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
4512 and s390_gsbc_regset, if applicable.
4513 (s390_core_read_description): Check whether core file was from a
4514 target with guarded-storage support; include appropriate regsets.
4515 (s390_gdbarch_init): Add registers for guarded-storage support.
4516 (_initialize_s390_tdep): Initialize new target descriptions that
4517 include registers for guarded-storage support.
4518 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
4519 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
4520 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
4521 (S390_NUM_REGS): Adjust macro definition.
4522 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
4523 (tdesc_s390x_gs_linux64): New declarations.
4525 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4527 * features/s390-gs-linux64.xml: New file.
4528 * features/s390-gs.xml: New file.
4529 * features/s390-gsbc.xml: New file.
4530 * features/s390x-gs-linux64.xml: New file.
4531 * features/Makefile (WHICH): Add s390-gs-linux64 and
4533 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
4534 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
4535 * features/s390-gs-linux64.c: New generated file.
4536 * features/s390x-gs-linux64.c: New file.
4537 * regformats/s390-gs-linux64.dat: New file.
4538 * regformats/s390x-gs-linux64.dat: New file.
4540 2017-09-23 Tom Tromey <tom@tromey.com>
4542 * defs.h (make_cleanup_override_quit_handler): Don't declare.
4544 2017-09-22 Tom Tromey <tom@tromey.com>
4546 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
4547 type to scoped_restore_tmpl.
4548 <scoped_input_handler>: Initialize m_quit_handler directly.
4550 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
4552 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
4553 (cd_command): Likewise. Free "current_directory" before
4555 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
4556 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
4557 * top.c (gdb_dirbuf): Remove global declaration.
4558 * top.h (gdb_dirbuf): Likewise.
4560 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
4562 * gnulib/aclocal.m4: Regenerate.
4563 * gnulib/config.in: Regenerate.
4564 * gnulib/configure: Regenerate.
4565 * gnulib/import/Makefile.am: Regenerate.
4566 * gnulib/import/Makefile.in: Regenerate.
4567 * gnulib/import/assure.h: New file.
4568 * gnulib/import/at-func.c: Likewise
4569 * gnulib/import/chdir-long.c: New file.
4570 * gnulib/import/chdir-long.h: New file.
4571 * gnulib/import/cloexec.c: New file.
4572 * gnulib/import/cloexec.h: New file.
4573 * gnulib/import/close.c: New file.
4574 * gnulib/import/closedir.c: New file.
4575 * gnulib/import/dirent-private.h: New file.
4576 * gnulib/import/dup-safer.c: New file.
4577 * gnulib/import/dup.c: New file.
4578 * gnulib/import/dup2.c: New file.
4579 * gnulib/import/error.c: New file.
4580 * gnulib/import/error.h: New file.
4581 * gnulib/import/exitfail.c: New file.
4582 * gnulib/import/exitfail.h: New file.
4583 * gnulib/import/fchdir.c: New file.
4584 * gnulib/import/fcntl.c: New file.
4585 * gnulib/import/fcntl.in.h: New file.
4586 * gnulib/import/fd-hook.c: New file.
4587 * gnulib/import/fd-hook.h: New file.
4588 * gnulib/import/fd-safer.c: New file.
4589 * gnulib/import/fdopendir.c: New file.
4590 * gnulib/import/filename.h: New file.
4591 * gnulib/import/filenamecat-lgpl.c: New file.
4592 * gnulib/import/filenamecat.h: New file.
4593 * gnulib/import/fstat.c: New file.
4594 * gnulib/import/fstatat.c: New file.
4595 * gnulib/import/getcwd-lgpl.c: New file.
4596 * gnulib/import/getcwd.c: New file.
4597 * gnulib/import/getdtablesize.c: New file.
4598 * gnulib/import/getlogin_r.c: New file.
4599 * gnulib/import/getprogname.c: New file.
4600 * gnulib/import/getprogname.h: New file.
4601 * gnulib/import/gettext.h: New file.
4602 * gnulib/import/glob-libc.h: New file.
4603 * gnulib/import/glob.c: New file.
4604 * gnulib/import/glob.in.h: New file.
4605 * gnulib/import/intprops.h: New file.
4606 * gnulib/import/m4/chdir-long.m4: New file.
4607 * gnulib/import/m4/close.m4: New file.
4608 * gnulib/import/m4/closedir.m4: New file.
4609 * gnulib/import/m4/d-ino.m4: New file.
4610 * gnulib/import/m4/d-type.m4: New file.
4611 * gnulib/import/m4/dup.m4: New file.
4612 * gnulib/import/m4/dup2.m4: New file.
4613 * gnulib/import/m4/error.m4: New file.
4614 * gnulib/import/m4/fchdir.m4: New file.
4615 * gnulib/import/m4/fcntl.m4: New file.
4616 * gnulib/import/m4/fcntl_h.m4: New file.
4617 * gnulib/import/m4/fdopendir.m4: New file.
4618 * gnulib/import/m4/filenamecat.m4: New file.
4619 * gnulib/import/m4/fstat.m4: New file.
4620 * gnulib/import/m4/fstatat.m4: New file.
4621 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
4622 * gnulib/import/m4/getcwd-path-max.m4: New file.
4623 * gnulib/import/m4/getcwd.m4: New file.
4624 * gnulib/import/m4/getdtablesize.m4: New file.
4625 * gnulib/import/m4/getlogin_r.m4: New file.
4626 * gnulib/import/m4/getprogname.m4: New file.
4627 * gnulib/import/m4/glob.m4: New file.
4628 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4629 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4630 * gnulib/import/m4/mempcpy.m4: New file.
4631 * gnulib/import/m4/memrchr.m4: New file.
4632 * gnulib/import/m4/mode_t.m4: New file.
4633 * gnulib/import/m4/msvc-inval.m4: New file.
4634 * gnulib/import/m4/msvc-nothrow.m4: New file.
4635 * gnulib/import/m4/open.m4: New file.
4636 * gnulib/import/m4/openat.m4: New file.
4637 * gnulib/import/m4/opendir.m4: New file.
4638 * gnulib/import/m4/readdir.m4: New file.
4639 * gnulib/import/m4/realloc.m4: New file.
4640 * gnulib/import/m4/rewinddir.m4: New file.
4641 * gnulib/import/m4/save-cwd.m4: New file.
4642 * gnulib/import/m4/strdup.m4: New file.
4643 * gnulib/import/m4/strerror.m4: New file.
4644 * gnulib/import/m4/unistd-safer.m4: New file.
4645 * gnulib/import/mempcpy.c: New file.
4646 * gnulib/import/memrchr.c: New file.
4647 * gnulib/import/msvc-inval.c: New file.
4648 * gnulib/import/msvc-inval.h: New file.
4649 * gnulib/import/msvc-nothrow.c: New file.
4650 * gnulib/import/msvc-nothrow.h: New file.
4651 * gnulib/import/open.c: New file.
4652 * gnulib/import/openat-die.c: New file.
4653 * gnulib/import/openat-priv.h: New file.
4654 * gnulib/import/openat-proc.c: New file.
4655 * gnulib/import/openat.c: New file.
4656 * gnulib/import/openat.h: New file.
4657 * gnulib/import/opendir.c: New file.
4658 * gnulib/import/pipe-safer.c: New file.
4659 * gnulib/import/readdir.c: New file.
4660 * gnulib/import/realloc.c: New file.
4661 * gnulib/import/rewinddir.c: New file.
4662 * gnulib/import/save-cwd.c: New file.
4663 * gnulib/import/save-cwd.h: New file.
4664 * gnulib/import/strdup.c: New file.
4665 * gnulib/import/strerror-override.c: New file.
4666 * gnulib/import/strerror-override.h: New file.
4667 * gnulib/import/strerror.c: New file.
4668 * gnulib/import/unistd--.h: New file.
4669 * gnulib/import/unistd-safer.h: New file.
4670 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
4671 "getcwd" and "glob".
4672 * ser-tcp.c: Undefine "close" before redefining it.
4674 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4676 * guile/scm-value.c (gdbscm_value_address): Initialize address,
4679 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4681 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
4682 <sol2,sparc>: Likewise.
4683 <sol2-64,i386>: Likewise.
4685 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
4686 -Wdeprecated-declarations on *-*-solaris*.
4687 * configure: Regenerate.
4689 * procfs.c: Include "nat/inferior.h".
4690 (procfs_info_proc): Fix typo.
4692 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4694 * remote.c (vector): Include.
4695 (struct private_thread_info): Add field, thread_handle.
4696 (free_private_thread_info): Deallocate storage associated with
4698 (get_private_info_thread): Initialize `thread_handle' field.
4699 (struct thread_item): Add field, thread_handle.
4700 (clear_threads_listing_context): Deallocate storage associated
4702 (start_thread): Add support for "handle" attribute.
4703 (thread_attributes): Add "handle".
4704 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
4706 (remote_update_thread_list): Update thread_handle.
4707 (remote_thread_handle_to_thread_info): New function.
4708 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
4710 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4712 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
4714 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
4715 * python/python-internal.h (thread_object_type): Declare.
4717 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4719 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
4720 (target_thread_handle_to_thread_info): Declare.
4721 * target.c (target_thread_handle_to_thread_info): New function.
4722 * target-delegates.c: Regenerate.
4723 * gdbthread.h (find_thread_by_handle): Declare.
4724 * thread.c (find_thread_by_handle): New function.
4725 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
4727 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
4729 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4731 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
4733 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4735 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
4737 2017-09-21 Yao Qi <yao.qi@linaro.org>
4739 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
4742 2017-09-20 Tom Tromey <tom@tromey.com>
4744 * breakpoint.c (struct counted_command_line): Remove.
4745 (breakpoint_commands): Update.
4746 (alloc_counted_command_line, incref_counted_command_line)
4747 (decref_counted_command_line, do_cleanup_counted_command_line)
4748 (make_cleanup_decref_counted_command_line): Remove.
4749 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
4750 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
4751 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
4752 (save_breakpoints): Update.
4753 * breakpoint.h (counted_command_line): Now a typedef to
4755 (struct breakpoint) <commands>: Now a counted_command_line.
4756 (struct bpstats) <command>: Likewise.
4758 2017-09-20 Tom Tromey <tom@tromey.com>
4760 * breakpoint.c (struct commands_info, do_map_commands_command):
4762 (commands_command_1): Update.
4763 (iterate_over_related_breakpoints): Take a function_view.
4764 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
4765 (delete_command): Update.
4766 (map_breakpoint_numbers): Take a function_view.
4767 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
4768 (disable_command): Update.
4769 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
4770 (enable_command): Update.
4771 (struct disp_data, do_enable_breakpoint_disp)
4772 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
4773 (do_map_enable_delete_breakpoint): Remove.
4774 (enable_once_command, enable_count_command, enable_delete_command)
4775 (delete_trace_variable_command): Update.
4777 2017-09-20 Tom Tromey <tom@tromey.com>
4779 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
4780 (bpstat_clear): Use delete.
4781 (bpstats): New constructors.
4782 (bpstat_copy, bpstat_stop_status): Use new.
4783 (dprintf_after_condition_true): Update.
4784 * breakpoint.h (bpstats::bpstats): Add constructors.
4785 (bpstats::~bpstats): Add destructor.
4787 2017-09-20 Pedro Alves <palves@redhat.com>
4789 * eval.c (make_params): Delete, refactored as ...
4790 (class fake_method): ... this new type's ctor.
4791 (fake_method::~fake_method): New.
4792 (evaluate_subexp_standard): Use 'fake_method'.
4794 2017-09-20 Tom Tromey <tom@tromey.com>
4796 * windows-nat.c (get_windows_debug_event, windows_wait)
4797 (do_initial_windows_stuff, windows_attach): Update.
4798 * utils.c (vwarning, internal_vproblem): Update.
4799 (ui_unregister_input_event_handler_cleanup)
4800 (prepare_to_handle_input): Remove.
4801 (class scoped_input_handler): New.
4802 (defaulted_query, prompt_for_continue): Update.
4803 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4805 * top.c (undo_terminal_modifications_before_exit): Update.
4806 * target/target.h (target_terminal_init, target_terminal_inferior)
4807 (target_terminal_ours): Don't declare.
4808 (class target_terminal): New.
4809 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
4810 (target_terminal_ours_for_output)
4811 (make_cleanup_restore_target_terminal): Don't declare.
4812 (target_terminal_info): Remove.
4813 * target.c (enum terminal_state, terminal_state): Remove.
4814 (target_terminal::terminal_state): Define.
4815 (target_terminal::init): Rename from target_terminal_init.
4816 (target_terminal::inferior): Rename from
4817 target_terminal_inferior.
4818 (target_terminal::ours): Rename from target_terminal_ours.
4819 (target_terminal::ours_for_output): Rename from
4820 target_terminal_ours_for_output.
4821 (target_terminal::info): New method.
4822 (cleanup_restore_target_terminal)
4823 (make_cleanup_restore_target_terminal): Remove.
4824 * solib.c (handle_solib_event): Update.
4825 * remote.c (remote_serial_quit_handler): Update.
4826 (remote_terminal_inferior, remote_wait_as): Update.
4827 * record-full.c (record_full_wait_1): Update.
4828 * nto-procfs.c (procfs_create_inferior): Update.
4829 * nat/fork-inferior.c (startup_inferior): Update.
4830 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
4831 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
4832 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
4833 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
4834 (mi_breakpoint_created, mi_breakpoint_deleted)
4835 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
4836 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
4837 (mi_user_selected_context_changed, report_initial_inferior):
4839 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
4840 (linux_nat_terminal_inferior): Update.
4841 * infrun.c (follow_fork_inferior)
4842 (handle_vfork_child_exec_or_exit, do_target_resume)
4843 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
4844 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
4846 * inflow.c (child_terminal_init, info_terminal_command): Update.
4847 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
4848 (attach_command): Update.
4849 * infcall.c (call_thread_fsm_should_stop): Update.
4850 * gnu-nat.c (gnu_attach): Update.
4851 * extension.c (struct active_ext_lang_state)
4852 (restore_active_ext_lang): Update.
4853 * exceptions.c (print_flush): Update.
4854 * event-top.c (async_enable_stdin, default_quit_handler): Update.
4855 (struct quit_handler_cleanup_data, restore_quit_handler)
4856 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
4858 * cp-support.c (gdb_demangle): Update.
4859 * breakpoint.c (update_inserted_breakpoint_locations)
4860 (insert_breakpoint_locations, handle_jit_event)
4861 (disable_breakpoints_in_unloaded_shlib): Update.
4862 * annotate.c (annotate_breakpoints_invalid)
4863 (annotate_frames_invalid): Update.
4865 2017-09-20 Tom Tromey <tom@tromey.com>
4867 * main.c (catch_command_errors): Rename from
4868 catch_command_errors_const.
4869 (captured_main_1): Update.
4871 2017-09-20 Pedro Alves <palves@redhat.com>
4873 * cli/cli-cmds.c (list_command): Use print_sal_location.
4874 (print_sal_location): New function.
4875 (ambiguous_line_spec): Use print_sal_location.
4876 * linespec.c (symbol_to_sal): Record the symbol in the sal.
4877 * symtab.c (find_function_start_sal): Likewise.
4878 * symtab.h (symtab_and_line::symbol): New field.
4880 2017-09-20 Pedro Alves <palves@redhat.com>
4882 * linespec.c (minsym_found): Handle non-text minsyms.
4883 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
4885 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4887 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
4890 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4892 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
4893 vmovups instead vmovaps.
4894 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
4896 2017-09-19 John Baldwin <jhb@FreeBSD.org>
4898 * NEWS (Changes since GDB 8.0): Add starti.
4899 * infcmd.c (enum run_break): New.
4900 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
4902 (run_command): Use enum run_how.
4903 (start_command): Likewise.
4904 (starti_command): New function.
4905 (RUN_ARGS_HELP): New macro.
4906 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
4907 commands. Add starti command.
4909 2017-09-19 Yao Qi <yao.qi@linaro.org>
4911 * Makefile.in (monitor.o): Remove the rule.
4913 2017-09-19 Yao Qi <yao.qi@linaro.org>
4915 * annotate.h (struct annotate_arg_emitter): Use
4916 DISABLE_COPY_AND_ASSIGN.
4917 * common/refcounted-object.h (refcounted_object): Likewise.
4918 * completer.h (struct completion_result): Likewise.
4919 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
4920 * filename-seen-cache.h (filename_seen_cache): Likewise.
4921 * gdbcore.h (thread_section_name): Likewise.
4922 * gdb_regex.h (compiled_regex): Likewise.
4923 * gdbthread.h (scoped_restore_current_thread): Likewise.
4924 * inferior.h (scoped_restore_current_inferior): Likewise.
4925 * jit.c (jit_reader): Likewise.
4926 * linespec.h (struct linespec_result): Likewise.
4927 * mi/mi-parse.h (struct mi_parse): Likewise.
4928 * nat/fork-inferior.c (execv_argv): Likewise.
4929 * progspace.h (scoped_restore_current_program_space): Likewise.
4930 * python/python-internal.h (class gdbpy_enter): Likewise.
4931 * regcache.h (regcache): Likewise.
4932 * target-descriptions.c (struct tdesc_reg): Likewise.
4933 (struct tdesc_type): Likewise.
4934 (struct tdesc_feature): Likewise.
4935 * ui-out.h (ui_out_emit_type): Likewise.
4937 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
4939 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
4940 label abort_expression.
4942 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4944 * common/buffer.c (buffer_xml_printf): Adjust.
4945 * common/xml-utils.c (xml_escape_text): Change return type to
4946 std::string, update code accordingly.
4947 * common/xml-utils.h (xml_escape_text): Change return type to
4949 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
4950 * windows-tdep.c (windows_xfer_shared_library): Adjust.
4951 * unittests/xml-utils-selftests.c (test_xml_escape_text):
4954 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4956 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
4957 (SUBDIR_UNITTESTS_OBS): Add new object file.
4958 * unittests/xml-utils-selftests.c: New file.
4960 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4962 * common/selftest.h (selftest): New struct/interface.
4963 (register_test): Add name parameter, add new overload.
4964 (run_tests): Add filter parameter.
4965 (for_each_selftest_ftype): New typedef.
4966 (for_each_selftest): New declaration.
4967 * common/selftest.c (tests): Change type to
4968 map<string, unique_ptr<selftest>>.
4969 (simple_selftest): New struct.
4970 (register_test): New function.
4971 (register_test): Add name parameter and use it.
4972 (run_tests): Add filter parameter and use it. Add prints.
4973 Adjust to vector -> map change.
4974 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
4975 registering selftests.
4976 * arm-tdep.c (_initialize_arm_tdep): Likewise.
4977 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
4978 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
4979 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
4980 * findvar.c (_initialize_findvar): Likewise.
4981 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
4982 * maint.c (maintenance_selftest): Update call to run_tests.
4983 (maintenance_info_selftests): New function.
4984 (_initialize_maint_cmds): Register "maintenance info selftests"
4985 command. Update "maintenance selftest" doc.
4986 * regcache.c (_initialize_regcache): Add names when registering
4988 * rust-exp.y (_initialize_rust_exp): Likewise.
4989 * selftest-arch.c (gdbarch_selftest): New struct.
4990 (gdbarch_tests): Remove.
4991 (register_test_foreach_arch): Add name parameter. Call
4993 (tests_with_arch): Remove, move most content to
4994 gdbarch_selftest::operator().
4995 (_initialize_selftests_foreach_arch): Remove.
4996 * selftest-arch.h (register_test_foreach_arch): Add name
4998 (run_tests_with_arch): New declaration.
4999 * utils-selftests.c (_initialize_utils_selftests): Add names
5000 when registering selftests.
5001 * utils.c (_initialize_utils): Likewise.
5002 * unittests/array-view-selftests.c
5003 (_initialize_array_view_selftests): Likewise.
5004 * unittests/environ-selftests.c (_initialize_environ_selftests):
5006 * unittests/function-view-selftests.c
5007 (_initialize_function_view_selftests): Likewise.
5008 * unittests/offset-type-selftests.c
5009 (_initialize_offset_type_selftests): Likewise.
5010 * unittests/optional-selftests.c
5011 (_initialize_optional_selftests): Likewise.
5012 * unittests/scoped_restore-selftests.c
5013 (_initialize_scoped_restore_selftests): Likewise.
5014 * NEWS: Document "maintenance selftest" and "maint info
5017 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5019 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
5022 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5024 * mi/mi-main.c (mi_load_progress): Make uiout variable
5027 2017-09-15 Pedro Alves <palves@redhat.com>
5029 * compile/compile-c-types.c (convert_enum, convert_int)
5030 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
5032 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5034 * dwarf2read.c (copy_string): Remove.
5035 (parse_macro_definition): Replace copy_string with savestring.
5037 2017-09-15 Yao Qi <yao.qi@linaro.org>
5039 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
5041 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
5043 (i[34567]86-*-linux*): Likewise.
5045 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5047 * dwarf2expr.h (dwarf_stack_value): Add constructor.
5048 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
5049 <stack>: Change type to std::vector.
5050 <stack_len, stack_allocated>: Remove.
5051 <grow_stack>: Remove.
5052 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
5053 (dwarf_expr_context::~dwarf_expr_context): Remove.
5054 (dwarf_expr_context::grow_stack): Remove.
5055 (dwarf_expr_context::push): Adjust.
5056 (dwarf_expr_context::pop): Adjust.
5057 (dwarf_expr_context::fetch): Adjust.
5058 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
5059 (dwarf_expr_context::stack_empty_p): Adjust.
5060 (dwarf_expr_context::execute_stack_op): Adjust.
5062 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5064 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
5065 return type to bool.
5066 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
5068 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5070 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
5071 Change type to bool.
5072 (dwarf_stack_value) <in_stack_memory>: Likewise.
5073 (dwarf_expr_context) <push_address>: Change parameter type to
5075 <fetch_in_stack_memory>: Change return type to bool.
5076 <push>: Change parameter type to bool.
5077 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
5079 (dwarf_expr_context::push_address): Likewise.
5080 (dwarf_expr_context::fetch_in_stack_memory): Change return type
5082 (dwarf_expr_context::execute_stack_op): Adjust.
5083 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
5085 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5087 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
5088 (struct dwarf_expr_context) <n_pieces>: Remove.
5089 <pieces>: Change type to std::vector.
5090 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
5091 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
5093 (dwarf_expr_context::add_piece): Adjust.
5094 * dwarf2loc.c (struct piece_closure): Initialize fields.
5096 <pieces>: Change type to std::vector.
5097 (allocate_piece_closure): Adjust, change parameter to
5098 std::vector rvalue and std::move it to piece_closure.
5099 (rw_pieced_value): Adjust.
5100 (check_pieced_synthetic_pointer): Adjust.
5101 (indirect_synthetic_pointer): Adjust.
5102 (coerce_pieced_ref): Adjust.
5103 (free_pieced_value_closure): Adjust. Use delete to free
5105 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
5106 to allocate_piece_closure.
5107 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
5109 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5111 * probe.h (probe_ops_cp): Remove typedef.
5112 (DEF_VEC_P (probe_ops_cp)): Remove.
5113 (all_probe_ops): Change type to std::vector.
5114 * probe.c (info_probes_for_ops): Adjust to vector change.
5115 (probe_linespec_to_ops): Likewise.
5116 (all_probe_ops): Change type to std::vector.
5117 (_initialize_probe): Adjust to vector change.
5118 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
5119 * elfread.c (elf_get_probes): Likewise.
5120 * stap-probe.c (_initialize_stap_probe): Likewise.
5122 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5124 * probe.h (struct bound_probe): Define constructors.
5125 * probe.c (bound_probe_s): Remove typedef.
5126 (DEF_VEC_O (bound_probe_s)): Remove VEC.
5127 (collect_probes): Change return type to std::vector, remove
5129 (compare_probes): Return bool, change parameter type. Change
5130 semantic to "less than".
5131 (gen_ui_out_table_header_info): Change parameter to std::vector
5133 (exists_probe_with_pops): Likewise.
5134 (info_probes_for_ops): Update to std::vector change.
5135 (enable_probes_command): Likewise.
5136 (disable_probes_command): Likewise.
5138 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5140 * probe.h (struct probe_ops) <get_probes>: Change parameter from
5142 * probe.c (parse_probes_in_pspace): Update.
5143 (find_probes_in_objfile): Update.
5144 (find_probe_by_pc): Update.
5145 (collect_probes): Update.
5146 (probe_any_get_probes): Update.
5147 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
5148 return type to reference to std::vector.
5149 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
5150 std::vector and update.
5151 (dtrace_process_dof): Likewise.
5152 (dtrace_get_probes): Likewise.
5153 * elfread.c (elf_get_probes): Change return type to std::vector,
5154 store an std::vector in bfd_data.
5155 (probe_key_free): Update to std::vector.
5156 * stap-probe.c (handle_stap_probe): Change parameter to
5157 std::vector and update.
5158 (stap_get_probes): Likewise.
5159 * symfile-debug.c (debug_sym_get_probes): Change return type to
5160 std::vector and update.
5162 2017-09-11 Tom Tromey <tom@tromey.com>
5164 * breakpoint.c (program_breakpoint_here_p): Update.
5165 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
5166 from make_show_memory_breakpoints_cleanup. Return a
5167 scoped_restore_tmpl<int>.
5168 (restore_show_memory_breakpoints): Remove.
5169 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
5170 * mem-break.c (memory_validate_breakpoint): Update.
5171 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
5172 (ia64_memory_remove_breakpoint): Update.
5173 (ia64_breakpoint_from_pc): Update.
5174 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
5175 from make_show_memory_breakpoints_cleanup.
5177 2017-09-11 Tom Tromey <tom@tromey.com>
5179 * d-namespace.c (d_lookup_symbol): Use std::string.
5180 (find_symbol_in_baseclass): Likewise.
5182 2017-09-11 Tom Tromey <tom@tromey.com>
5184 * ctf.c (ctf_start): Use std::string.
5186 2017-09-11 Tom Tromey <tom@tromey.com>
5188 * ada-lang.c (is_known_support_routine): Update.
5189 (ada_unhandled_exception_name_addr_from_raise): Update.
5190 * guile/scm-frame.c (gdbscm_frame_name): Update.
5191 * python/py-frame.c (frapy_name): Update.
5192 (frapy_function): Update.
5193 * stack.h (find_frame_funname): Update.
5194 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
5195 (print_frame): Update.
5197 2017-09-11 Tom Tromey <tom@tromey.com>
5199 * findcmd.c (put_bits): Take a gdb::byte_vector.
5200 (parse_find_args): Return gdb::byte_vector. "args" now const.
5201 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
5203 (find_command): Update.
5205 2017-09-11 Tom Tromey <tom@tromey.com>
5207 * cli/cli-script.c (class scoped_restore_hook_in): New.
5208 (clear_hook_in_cleanup): Remove.
5209 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
5210 scoped_restore_hook_in.
5212 2017-09-11 Tom Tromey <tom@tromey.com>
5214 * cli/cli-script.c (restore_interp): Remove.
5215 (read_command_lines): Use scoped_restore_interp.
5216 * interps.c (scoped_restore_interp::set_temp): Rename from
5218 * interps.h (class scoped_restore_interp): New.
5219 (interp_set_temp): Remove.
5221 2017-09-11 Tom Tromey <tom@tromey.com>
5223 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
5224 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
5225 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
5227 (mi_cmd_break_insert_1): Update.
5228 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
5231 2017-09-11 Tom Tromey <tom@tromey.com>
5233 * demangle.c (demangle_command): Update.
5234 * breakpoint.c (disable_command): Update.
5235 (enable_command): Update.
5236 (find_location_by_number): Make "number" const. Use
5238 * cli/cli-utils.c (extract_arg): Return std::string.
5239 * probe.c (parse_probe_linespec): Update. Change types.
5240 (collect_probes): Take string arguments.
5241 (parse_probe_linespec): Likewise.
5242 (info_probes_for_ops): Update.
5243 (enable_probes_command): Update.
5244 (disable_probes_command): Update.
5245 * break-catch-sig.c (catch_signal_split_args): Update.
5246 * mi/mi-parse.c (mi_parse): Update.
5248 2017-09-11 Tom Tromey <tom@tromey.com>
5250 * language.h (language_enum): Make argument const.
5251 * language.c (language_enum): Make argument const.
5253 2017-09-11 Tom Tromey <tom@tromey.com>
5255 * common/common-utils.h (skip_to_space): Remove macro, redeclare
5257 (skip_to_space): Rename from skip_to_space_const.
5258 * common/common-utils.c (skip_to_space): New function.
5259 (skip_to_space): Rename from skip_to_space_const.
5260 * cli/cli-utils.h (get_number): Rename from get_number_const.
5261 (extract_arg): Rename from extract_arg_const.
5262 * cli/cli-utils.c (get_number): Rename from get_number_const.
5263 (extract_arg): Rename from extract_arg_const.
5264 (number_or_range_parser::get_number): Use ::get_number.
5265 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
5266 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
5267 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
5268 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
5269 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
5270 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
5271 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
5272 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
5274 2017-09-11 Tom Tromey <tom@tromey.com>
5276 * python/python.c (do_start_initialization): Use
5277 py-event-types.def to initialize types.
5278 Define all object type structures.
5279 * python/python-internal.h: Don't declare event initialization
5281 * python/py-threadevent.c (thread_event_object_type): Don't
5283 * python/py-stopevent.c (stop_event_object_type): Don't define.
5284 * python/py-signalevent.c (signal_event_object_type): Don't
5286 * python/py-newobjfileevent.c (new_objfile_event_object_type)
5287 (clear_objfiles_event_object_type): Don't declare or define.
5288 * python/py-infevents.c (inferior_call_pre_event_object_type)
5289 (inferior_call_post_event_object_type)
5290 (register_changed_event_object_type)
5291 (memory_changed_event_object_type): Don't declare or define.
5292 * python/py-inferior.c (new_thread_event_object_type)
5293 (new_inferior_event_object_type)
5294 (inferior_deleted_event_object_type): Don't declare or define.
5295 * python/py-exitedevent.c (exited_event_object_type): Don't
5297 * python/py-evts.c (gdbpy_initialize_py_events): Use
5299 * python/py-events.h (thread_event_object_type): Don't declare.
5300 (events_object): Use py-all-events.def.
5301 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
5303 * python/py-event-types.def: New file.
5304 * python/py-continueevent.c (create_continue_event_object): Don't
5306 * python/py-bpevent.c (breakpoint_event_object_type): Don't
5308 * python/py-all-events.def: New file.
5310 2017-09-11 Tom Tromey <tom@tromey.com>
5312 * python/py-threadevent.c (create_thread_event_object): Return
5314 * python/py-stopevent.h (create_stop_event_object)
5315 (create_breakpoint_event_object, create_signal_event_object):
5317 * python/py-stopevent.c (create_stop_event_object): Return
5319 (emit_stop_event): Update.
5320 * python/py-signalevent.c (create_signal_event_object): Return
5322 * python/py-infevents.c (create_inferior_call_event_object):
5324 * python/py-event.h (create_event_object)
5325 (create_thread_event_object): Update.
5326 * python/py-event.c (create_event_object): Return gdbpy_ref.
5327 * python/py-continueevent.c: Return gdbpy_ref.
5328 * python/py-bpevent.c (create_breakpoint_event_object): Return
5331 2017-09-11 Tom Tromey <tom@tromey.com>
5335 * python/python.c (do_start_initialization): Initialize new event
5337 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
5338 (gdbpy_initialize_inferior_deleted_event)
5339 (gdbpy_initialize_new_thread_event): Declare.
5340 * python/py-threadevent.c (create_thread_event_object): Add option
5342 * python/py-inferior.c (new_thread_event_object_type)
5343 (new_inferior_event_object_type)
5344 (inferior_deleted_event_object_type): Declare.
5345 (python_new_inferior, python_inferior_deleted): New functions.
5346 (add_thread_object): Emit new_thread event.
5347 (gdbpy_initialize_inferior): Attach new functions to corresponding
5349 (new_thread, new_inferior, inferior_deleted): Define new event
5351 * python/py-evts.c (gdbpy_initialize_py_events): Add new
5353 * python/py-events.h (events_object) <new_inferior,
5354 inferior_deleted, new_thread>: New fields.
5355 * python/py-event.h (create_thread_event_breakpoint): Add optional
5358 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
5360 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
5361 check current_ui instead.
5362 (internal_vproblem): Likewise.
5364 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
5366 * thread.c (print_thread_info_1): Remove unnecessary calls to
5367 uiout->is_mi_like_p.
5369 2017-09-09 Tom Tromey <tom@tromey.com>
5371 * namespace.h (add_using_directive): Update.
5372 * namespace.c (add_using_directive): Change type of excludes to
5374 * dwarf2read.c (read_import_statement): Use std::vector.
5375 (read_namespace): Update.
5376 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5378 2017-09-09 Tom Tromey <tom@tromey.com>
5380 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
5382 2017-09-09 Tom Tromey <tom@tromey.com>
5384 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
5386 2017-09-09 Tom Tromey <tom@tromey.com>
5388 * stack.c (func_command): Use gdb::def_vector.
5390 2017-09-09 Tom Tromey <tom@tromey.com>
5392 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
5393 ui_out_emit_list, ui_out_emit_tuple.
5394 (mi_cmd_var_update): Likewise.
5396 2017-09-09 Tom Tromey <tom@tromey.com>
5398 * mi/mi-interp.c (mi_user_selected_context_changed): Use
5399 ui_out_redirect_pop.
5400 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
5401 ui_out_redirect_pop.
5402 * utils.c (do_ui_out_redirect_pop)
5403 (make_cleanup_ui_out_redirect_pop): Remove.
5404 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
5405 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
5406 * ui-out.h (ui_out_redirect_pop): New class.
5408 2017-09-09 Tom Tromey <tom@tromey.com>
5410 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
5411 (list_available_thread_groups, mi_cmd_list_thread_groups)
5412 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
5413 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
5416 2017-09-09 Tom Tromey <tom@tromey.com>
5418 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5421 2017-09-09 Tom Tromey <tom@tromey.com>
5423 * target.c (flash_erase_command): Use ui_out_emit_tuple.
5424 * stack.c (print_frame): Use ui_out_emit_tuple.
5425 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
5426 (info_spu_mailbox_command, info_spu_dma_command)
5427 (info_spu_proxydma_command): Likewise.
5428 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
5429 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
5430 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
5432 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
5434 2017-09-09 Tom Tromey <tom@tromey.com>
5436 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
5437 (class ui_out_emit_table): Update comment.
5438 * ui-out.c (do_cleanup_table_end)
5439 (make_cleanup_ui_out_table_begin_end): Remove.
5440 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
5441 (info_spu_dma_cmdlist): Likewise.
5442 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
5443 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
5446 2017-09-09 Tom Tromey <tom@tromey.com>
5448 * thread.c (print_thread_info_1): Use ui_out_emit_table,
5449 ui_out_emit_list, gdb::optional.
5451 2017-09-09 John Baldwin <jhb@FreeBSD.org>
5453 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
5455 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
5457 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
5459 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
5460 * ada-exp.y: Remove _initialize_ada_exp prototype.
5461 * ada-lang.c: Remove _initialize_ada_language prototype.
5462 * ada-tasks.c: Remove _initialize_tasks prototype.
5463 * addrmap.c: Remove _initialize_addrmap prototype.
5464 * agent.c: Remove _initialize_agent prototype.
5465 * aix-thread.c: Remove _initialize_aix_thread prototype.
5466 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
5467 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
5468 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
5470 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
5471 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
5472 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
5473 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
5475 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
5477 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
5478 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
5479 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
5480 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
5482 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
5483 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
5484 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
5485 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
5486 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
5487 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
5488 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
5490 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
5492 * annotate.c: Remove _initialize_annotate prototype.
5493 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
5494 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
5495 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
5496 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
5497 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
5498 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
5499 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
5500 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
5502 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
5503 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
5504 * auto-load.c: Remove _initialize_auto_load prototype.
5505 * auxv.c: Remove _initialize_auxv prototype.
5506 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
5507 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
5508 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
5509 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
5510 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
5511 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
5513 * break-catch-throw.c: Remove _initialize_break_catch_throw
5515 * breakpoint.c: Remove _initialize_breakpoint prototype.
5516 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
5517 * btrace.c: Remove _initialize_btrace prototype.
5518 * charset.c: Remove _initialize_charset prototype.
5519 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
5520 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
5521 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
5522 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
5523 * cli/cli-script.c: Remove _initialize_cli_script prototype.
5524 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
5525 * coffread.c: Remove _initialize_coffread prototype.
5526 * compile/compile.c: Remove _initialize_compile prototype.
5527 * complaints.c: Remove _initialize_complaints prototype.
5528 * completer.c: Remove _initialize_completer prototype.
5529 * copying.awk: Remove _initialize_copying prototype.
5530 * copying.c: Regenerate.
5531 * core-regset.c: Remove _initialize_core_regset prototype.
5532 * corefile.c: Remove _initialize_core prototype.
5533 * corelow.c: Remove _initialize_corelow prototype.
5534 * cp-abi.c: Remove _initialize_cp_abi prototype.
5535 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
5536 * cp-support.c: Remove _initialize_cp_support prototype.
5537 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
5538 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
5539 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
5540 * ctf.c: Remove _initialize_ctf prototype.
5541 * d-lang.c: Remove _initialize_d_language prototype.
5542 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
5544 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
5545 * dbxread.c: Remove _initialize_dbxread prototype.
5546 * dcache.c: Remove _initialize_dcache prototype.
5547 * demangle.c: Remove _initialize_demangler prototype.
5548 * disasm-selftests.c: Remove _initialize_disasm_selftests
5550 * disasm.c: Remove _initialize_disasm prototype.
5551 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
5552 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
5553 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
5555 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
5556 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
5557 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
5558 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
5559 * elfread.c: Remove _initialize_elfread prototype.
5560 * exec.c: Remove _initialize_exec prototype.
5561 * extension.c: Remove _initialize_extension prototype.
5562 * f-lang.c: Remove _initialize_f_language prototype.
5563 * f-valprint.c: Remove _initialize_f_valprint prototype.
5564 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
5565 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
5566 * filesystem.c: Remove _initialize_filesystem prototype.
5567 * findcmd.c: Remove _initialize_mem_search prototype.
5568 * fork-child.c: Remove _initialize_fork_child prototype.
5569 * frame-base.c: Remove _initialize_frame_base prototype.
5570 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
5571 * frame.c: Remove _initialize_frame prototype.
5572 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
5573 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
5574 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
5575 * gcore.c: Remove _initialize_gcore prototype.
5576 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
5577 * gdbarch.c: Regenerate.
5578 * gdbarch.sh: Remove _initialize_gdbarch prototype.
5579 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
5580 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
5581 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
5582 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
5583 * go-lang.c: Remove _initialize_go_language prototype.
5584 * go32-nat.c: Remove _initialize_go32_nat prototype.
5585 * guile/guile.c: Remove _initialize_guile prototype.
5586 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
5587 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
5588 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
5589 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
5590 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
5591 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
5592 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
5593 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
5594 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
5595 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
5597 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
5599 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
5600 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
5601 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
5602 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
5603 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
5604 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
5605 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
5606 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
5607 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
5608 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
5609 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
5610 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
5611 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
5612 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
5613 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
5614 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
5616 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
5618 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
5619 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
5620 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
5621 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
5622 * infcall.c: Remove _initialize_infcall prototype.
5623 * infcmd.c: Remove _initialize_infcmd prototype.
5624 * inferior.c: Remove _initialize_inferiors prototype.
5625 * inflow.c: Remove _initialize_inflow prototype.
5626 * infrun.c: Remove _initialize_infrun prototype.
5627 * interps.c: Remove _initialize_interpreter prototype.
5628 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
5629 * jit.c: Remove _initialize_jit prototype.
5630 * language.c: Remove _initialize_language prototype.
5631 * linux-fork.c: Remove _initialize_linux_fork prototype.
5632 * linux-nat.c: Remove _initialize_linux_nat prototype.
5633 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
5634 * linux-thread-db.c: Remove _initialize_thread_db prototype.
5635 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
5636 * m2-lang.c: Remove _initialize_m2_language prototype.
5637 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
5638 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
5639 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
5640 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
5641 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
5642 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
5643 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
5644 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
5645 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
5646 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
5647 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
5648 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
5649 * machoread.c: Remove _initialize_machoread prototype.
5650 * macrocmd.c: Remove _initialize_macrocmd prototype.
5651 * macroscope.c: Remove _initialize_macroscope prototype.
5652 * maint.c: Remove _initialize_maint_cmds prototype.
5653 * mdebugread.c: Remove _initialize_mdebugread prototype.
5654 * memattr.c: Remove _initialize_mem prototype.
5655 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
5656 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
5657 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
5658 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
5659 * mi/mi-main.c: Remove _initialize_mi_main prototype.
5660 * microblaze-linux-tdep.c: Remove
5661 _initialize_microblaze_linux_tdep prototype.
5662 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
5663 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
5664 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
5665 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
5666 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
5667 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
5668 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
5669 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
5670 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
5671 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
5672 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
5674 * mipsread.c: Remove _initialize_mipsread prototype.
5675 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
5677 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
5678 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
5679 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
5680 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
5681 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
5682 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
5684 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
5685 * nto-procfs.c: Remove _initialize_procfs prototype.
5686 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
5687 * objc-lang.c: Remove _initialize_objc_language prototype.
5688 * objfiles.c: Remove _initialize_objfiles prototype.
5689 * observer.c: Remove observer_test_first_notification_function,
5690 observer_test_second_notification_function,
5691 observer_test_third_notification_function, and
5692 _initialize_observer prototypes.
5693 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
5694 * osabi.c: Remove _initialize_gdb_osabi prototype.
5695 * osdata.c: Remove _initialize_osdata prototype.
5696 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
5697 * parse.c: Remove _initialize_parse prototype.
5698 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
5699 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
5700 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
5701 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
5702 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
5703 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
5704 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
5705 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
5706 * printcmd.c: Remove _initialize_printcmd prototype.
5707 * probe.c: Remove _initialize_probe prototype.
5708 * proc-api.c: Remove _initialize_proc_api prototype.
5709 * proc-events.c: Remove _initialize_proc_events prototype.
5710 * proc-service.c: Remove _initialize_proc_service prototype.
5711 * procfs.c: Remove _initialize_procfs prototype.
5712 * psymtab.c: Remove _initialize_psymtab prototype.
5713 * python/python.c: Remove _initialize_python prototype.
5714 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
5715 * record-btrace.c: Remove _initialize_record_btrace prototype.
5716 * record-full.c: Remove _initialize_record_full prototype.
5717 * record.c: Remove _initialize_record prototype.
5718 * regcache.c: Remove _initialize_regcache prototype.
5719 * reggroups.c: Remove _initialize_reggroup prototype.
5720 * remote-notif.c: Remove _initialize_notif prototype.
5721 * remote-sim.c: Remove _initialize_remote_sim prototype.
5722 * remote.c: Remove _initialize_remote prototype.
5723 * reverse.c: Remove _initialize_reverse prototype.
5724 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
5725 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
5726 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
5728 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
5729 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
5730 * rust-exp.y: Remove _initialize_rust_exp prototype.
5731 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
5732 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
5733 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
5734 * score-tdep.c: Remove _initialize_score_tdep prototype.
5735 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
5737 * ser-go32.c: Remove _initialize_ser_dos prototype.
5738 * ser-mingw.c: Remove _initialize_ser_windows prototype.
5739 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
5740 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
5741 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
5742 * serial.c: Remove _initialize_serial prototype.
5743 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
5744 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
5745 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
5746 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
5747 * skip.c: Remove _initialize_step_skip prototype.
5748 * sol-thread.c: Remove _initialize_sol_thread prototype.
5749 * solib-aix.c: Remove _initialize_solib_aix prototype.
5750 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
5751 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
5752 * solib-frv.c: Remove _initialize_frv_solib prototype.
5753 * solib-spu.c: Remove _initialize_spu_solib prototype.
5754 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
5755 * solib-target.c: Remove _initialize_solib_target prototype.
5756 * solib.c: Remove _initialize_solib prototype.
5757 * source.c: Remove _initialize_source prototype.
5758 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
5759 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
5761 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
5762 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
5763 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
5764 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
5766 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
5767 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
5768 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
5769 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
5771 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
5773 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
5775 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
5777 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
5778 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
5780 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
5782 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
5784 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
5786 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
5788 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
5789 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
5790 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
5791 * stabsread.c: Remove _initialize_stabsread prototype.
5792 * stack.c: Remove _initialize_stack prototype.
5793 * stap-probe.c: Remove _initialize_stap_probe prototype.
5794 * std-regs.c: Remove _initialize_frame_reg prototype.
5795 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
5796 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
5797 * symfile.c: Remove _initialize_symfile prototype.
5798 * symmisc.c: Remove _initialize_symmisc prototype.
5799 * symtab.c: Remove _initialize_symtab prototype.
5800 * target-dcache.c: Remove _initialize_target_dcache prototype.
5801 * target-descriptions.c: Remove _initialize_target_descriptions
5803 * thread.c: Remove _initialize_thread prototype.
5804 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
5806 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
5807 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
5808 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
5810 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
5811 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
5812 * tracefile.c: Remove _initialize_tracefile prototype.
5813 * tracepoint.c: Remove _initialize_tracepoint prototype.
5814 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
5815 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
5816 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
5817 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
5818 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
5819 * tui/tui-win.c: Remove _initialize_tui_win prototype.
5820 * tui/tui.c: Remove _initialize_tui prototype.
5821 * typeprint.c: Remove _initialize_typeprint prototype.
5822 * user-regs.c: Remove _initialize_user_regs prototype.
5823 * utils.c: Remove _initialize_utils prototype.
5824 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
5825 * valarith.c: Remove _initialize_valarith prototype.
5826 * valops.c: Remove _initialize_valops prototype.
5827 * valprint.c: Remove _initialize_valprint prototype.
5828 * value.c: Remove _initialize_values prototype.
5829 * varobj.c: Remove _initialize_varobj prototype.
5830 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
5831 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
5832 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
5833 * windows-nat.c: Remove _initialize_windows_nat,
5834 _initialize_check_for_gdb_ini, and _initialize_loadable
5836 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
5837 * xcoffread.c: Remove _initialize_xcoffread prototype.
5838 * xml-support.c: Remove _initialize_xml_support prototype.
5839 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
5840 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
5842 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
5844 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
5846 2017-09-08 Keith Seitz <keiths@redhat.com>
5848 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
5851 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
5853 * f-valprint.c (f_val_print): Remove check for one byte
5854 sized integers. Remove printing of character type.
5856 2017-09-08 Frank Penczek <frank.penczek@intel.com>
5857 Christoph Weinmann <christoph.t.weinmann@intel.com>
5858 Bernhard Heckel <bernhard.heckel@intel.com>
5860 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
5861 to maintain proper indentation when printing pointers/refs.
5863 2017-09-07 Joel Brobecker <brobecker@adacore.com>
5867 2017-09-07 Joel Brobecker <brobecker@adacore.com>
5869 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
5871 2017-09-05 Tom Tromey <tom@tromey.com>
5873 * parse.c (funcall_chain): Now a std::vector.
5874 (start_arglist, end_arglist): Simplify.
5875 (free_funcalls): Remove.
5876 (parse_exp_in_context_1): Remove cleanup.
5878 2017-09-05 Tom Tromey <tom@tromey.com>
5880 * go-exp.y (go_parse): Don't create a cleanup.
5882 2017-09-05 Tom Tromey <tom@tromey.com>
5884 * d-exp.y (PrimaryExpression): Use std::string.
5885 (d_parse): Don't create a cleanup.
5887 2017-09-05 Tom Tromey <tom@tromey.com>
5889 * utils.c (do_clear_parser_state): Remove.
5890 (make_cleanup_clear_parser_state): Remove.
5891 * p-exp.y (pascal_parse): Use scoped_restore.
5892 * m2-exp.y (m2_parse): Use scoped_restore.
5893 * f-exp.y (f_parse): Use scoped_restore.
5894 * d-exp.y (d_parse): Use scoped_restore.
5895 * c-exp.y (c_parse): Use scoped_restore.
5896 * ada-exp.y (ada_parse): Use scoped_restore.
5897 * utils.h (make_cleanup_clear_parser_state): Remove.
5899 2017-09-06 Keith Seitz <keiths@redhat.com>
5901 * dwarf2read.c (dw2_linkage_name_attr): New function.
5902 (dw2_linkage_name): New function.
5903 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
5904 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
5905 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
5907 2017-09-06 Kamil Rytarowski <n54@gmx.com>
5909 * config/djgpp/djconfig.sh: Correct shell portability issue.
5911 2017-09-06 Kamil Rytarowski <n54@gmx.com>
5913 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
5915 2017-09-06 John Baldwin <jhb@FreeBSD.org>
5917 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
5918 * NEWS: Mention new FreeBSD/mips native configuration.
5919 * configure.host: Add aarch64*-*-freebsd*.
5920 * configure.nat: Likewise.
5921 * aarch64-fbsd-nat.c: New file.
5923 2017-09-06 John Baldwin <jhb@FreeBSD.org>
5925 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
5926 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
5927 * NEWS: Mention new FreeBSD/aarch64 target.
5928 * configure.tgt: Add aarch64*-*-freebsd*.
5929 * aarch64-fbsd-tdep.c: New file.
5930 * aarch64-fbsd-tdep.h: New file.
5932 2017-09-06 Kamil Rytarowski <n54@gmx.com>
5934 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
5936 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5938 * parse.c (find_minsym_type_and_address): Don't relocate addresses
5941 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5943 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
5946 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5948 * infrun.c (follow_exec): Call add_thread after
5949 target_find_description.
5951 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5953 * infrun.c (handle_inferior_event_1): When exec'ing, read
5954 stop_pc after follow_exec.
5956 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5958 * remote.c (process_g_packet): Update error message.
5960 2017-09-05 Yao Qi <yao.qi@linaro.org>
5962 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
5965 2017-09-05 Pedro Alves <palves@redhat.com>
5967 * eval.c (eval_call, evaluate_funcall): New functions, factored
5969 (evaluate_subexp_standard): ... this.
5971 2017-09-05 Yao Qi <yao.qi@linaro.org>
5973 * amd64-tdep.c (amd64_target_description): Create target
5975 (_initialize_amd64_tdep): Don't call functions
5976 initialize_tdesc_amd64_*. Add self tests.
5977 * arch/amd64.c (amd64_create_target_description): Add parameter
5978 is_linux. Call set_tdesc_osabi if is_linux is true.
5979 * arch/amd64.h (amd64_create_target_description): Update the
5981 * arch/i386.c (i386_create_target_description): Add parameter
5982 is_linux. Call set_tdesc_osabi if is_linux is true.
5983 * arch/i386.h (i386_create_target_description): Update
5985 * configure.tgt: Add i386.o to gdb_target_obs.
5986 * features/Makefile (XMLTOC): Remove i386/*.xml.
5987 * features/i386/amd64-avx-avx512.c: Remove.
5988 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
5989 * features/i386/amd64-avx-mpx.c: Remove.
5990 * features/i386/amd64-avx.c: Remove.
5991 * features/i386/amd64-mpx.c: Remove.
5992 * features/i386/amd64.c: Remove.
5993 * features/i386/i386-avx-avx512.c: Remove.
5994 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
5995 * features/i386/i386-avx-mpx.c: Remove.
5996 * features/i386/i386-avx.c: Remove.
5997 * features/i386/i386-mmx.c: Remove.
5998 * features/i386/i386-mpx.c: Remove.
5999 * features/i386/i386.c: Remove.
6000 * i386-tdep.c: Don't include features/i386/i386*.c., include
6001 target-descriptions.h and arch/i386.h.
6002 (i386_target_description): Create target descriptions.
6003 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
6004 functions. Do self tests.
6006 2017-09-05 Yao Qi <yao.qi@linaro.org>
6008 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
6009 * features/i386/amd64-avx-avx512-linux.c: Removed.
6010 * features/i386/amd64-avx-linux.c: Removed.
6011 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
6012 * features/i386/amd64-avx-mpx-linux.c: Removed.
6013 * features/i386/amd64-linux.c: Removed.
6014 * features/i386/amd64-mpx-linux.c: Removed.
6015 * features/i386/x32-avx-avx512-linux.c: Removed.
6016 * features/i386/x32-avx-linux.c: Removed.
6017 * features/i386/x32-linux.c: Removed.
6019 2017-09-05 Yao Qi <yao.qi@linaro.org>
6021 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
6023 (amd64_linux_read_description): Call
6024 amd64_create_target_description.
6025 * arch/amd64.c: New file.
6026 * arch/amd64.h: New file.
6027 * configure.tgt (x86_64-*-linux*): Append amd64.o.
6028 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
6030 2017-09-05 Yao Qi <yao.qi@linaro.org>
6032 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
6033 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
6034 (amd64_linux_read_description): Create target descriptions.
6035 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
6036 functions. Add unit tests.
6037 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
6039 * features/i386/64bit-avx.c: Generated.
6040 * features/i386/64bit-avx512.c: Generated.
6041 * features/i386/64bit-core.c: Generated.
6042 * features/i386/64bit-linux.c: Generated.
6043 * features/i386/64bit-mpx.c: Generated.
6044 * features/i386/64bit-pkeys.c: Generated.
6045 * features/i386/64bit-segments.c: Generated.
6046 * features/i386/64bit-sse.c: Generated.
6047 * features/i386/x32-core.c: Generated.
6048 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
6049 c files for amd64-linux and x32-linux.
6051 2017-09-05 Yao Qi <yao.qi@linaro.org>
6053 * amd64-linux-tdep.c (amd64_linux_read_description): New
6055 (amd64_linux_core_read_description): Call
6056 amd64_linux_read_description.
6057 (amd64_linux_init_abi): Likewise.
6058 (amd64_x32_linux_init_abi): Likewise.
6059 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
6060 * x86-linux-nat.c (x86_linux_read_description): Call
6061 amd64_linux_read_description.
6063 2017-09-05 Yao Qi <yao.qi@linaro.org>
6065 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
6068 2017-09-05 Yao Qi <yao.qi@linaro.org>
6070 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
6071 * features/i386/i386-avx-avx512-linux.c: Remove.
6072 * features/i386/i386-avx-linux.c: Remove.
6073 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
6074 * features/i386/i386-avx-mpx-linux.c: Remove.
6075 * features/i386/i386-linux.c: Remove.
6076 * features/i386/i386-mmx-linux.c: Remove.
6077 * features/i386/i386-mpx-linux.c: Remove.
6079 2017-09-05 Yao Qi <yao.qi@linaro.org>
6081 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
6082 (SFILES): Add arch/i386.c.
6083 (HFILES_NO_SRCDIR): Add arch/i386.h.
6084 * arch/i386.c: New file.
6085 * arch/i386.h: New file.
6086 * arch/tdesc.h (allocate_target_description): Declare.
6087 (set_tdesc_architecture): Declare.
6088 (set_tdesc_osabi): Declare.
6089 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
6090 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
6091 include arch/i386.h.
6092 (i386_linux_read_description): Remove code and call
6093 i386_create_target_description.
6094 (set_tdesc_architecture): New function.
6095 (set_tdesc_osabi): New function.
6096 * target-descriptions.h (allocate_target_description): Remove.
6098 2017-09-05 Yao Qi <yao.qi@linaro.org>
6100 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
6101 * target-descriptions.c (tdesc_create_feature): Likewise, and
6103 * features/i386/32bit-avx.c: Re-generated.
6104 * features/i386/32bit-avx512.c: Re-generated.
6105 * features/i386/32bit-core.c: Re-generated.
6106 * features/i386/32bit-linux.c: Re-generated.
6107 * features/i386/32bit-mpx.c: Re-generated.
6108 * features/i386/32bit-pkeys.c: Re-generated.
6109 * features/i386/32bit-sse.c: Re-generated.
6111 2017-09-05 Yao Qi <yao.qi@linaro.org>
6113 * regformats/regdef.h (struct reg): Override operator == and !=.
6115 2017-09-05 Yao Qi <yao.qi@linaro.org>
6117 * arch/tdesc.h: New file.
6118 * regformats/regdat.sh: Generate code using tdesc_create_reg.
6119 * target-descriptions.c: Update comments.
6120 * target-descriptions.h: Include "arch/tdesc.h". Remove the
6122 * features/i386/32bit-avx.c: Re-generated.
6123 * features/i386/32bit-avx512.c: Re-generated.
6124 * features/i386/32bit-core.c: Re-generated.
6125 * features/i386/32bit-linux.c: Re-generated.
6126 * features/i386/32bit-mpx.c: Re-generated.
6127 * features/i386/32bit-pkeys.c: Re-generated.
6128 * features/i386/32bit-sse.c: Re-generated.
6130 2017-09-05 Yao Qi <yao.qi@linaro.org>
6132 * regformats/regdat.sh: Update generated code.
6134 2017-09-05 Yao Qi <yao.qi@linaro.org>
6136 * regformats/regdat.sh: Adjust code order.
6138 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6140 * expprint.c (dump_subexp_body_standard): Use constant format
6141 string in fprintf_filtered call.
6143 2017-09-04 John Baldwin <jhb@FreeBSD.org>
6145 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
6147 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
6149 2017-09-04 John Baldwin <jhb@FreeBSD.org>
6151 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
6153 2017-09-04 John Baldwin <jhb@FreeBSD.org>
6155 * bsd-kvm.o: Define _KMEMUSER.
6156 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
6157 * configure: Regenerate.
6159 2017-09-04 John Baldwin <jhb@FreeBSD.org>
6161 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
6162 * i386-fbsd-nat.c: Likewise.
6164 2017-09-04 John Baldwin <jhb@FreeBSD.org>
6166 * unittests/array-view-selftests.c: Add include of <array>.
6168 2017-09-04 John Baldwin <jhb@FreeBSD.org>
6170 * spu-tdep.c (flush_ea_cache): Add missing argument to
6171 call_function_by_hand.
6173 2017-09-04 Pedro Alves <palves@redhat.com>
6175 * NEWS (Safer support for debugging with no debug info): New.
6177 2017-09-04 Pedro Alves <palves@redhat.com>
6179 * c-exp.y (function_method, function_method_void): Add current
6180 instance flags to TYPE_INSTANCE.
6181 * dwarf2read.c (check_modifier): New.
6182 (compute_delayed_physnames): Assert that only C++ adds delayed
6183 physnames. Mark fn_fields as const/volatile depending on
6185 * eval.c (make_params): New type_instance_flags parameter. Use
6186 it as the new type's instance flags.
6187 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
6188 flags element and pass it to make_params.
6189 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
6190 instance flags element.
6191 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
6192 * gdbtypes.h: Include "enum-flags.h".
6193 (type_instance_flags): New enum-flags type.
6194 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
6195 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
6196 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
6197 (follow_type_instance_flags): New function.
6198 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
6199 * parser-defs.h (follow_type_instance_flags): Declare.
6200 * valops.c (value_struct_elt_for_reference): const/volatile must
6203 2017-09-04 Pedro Alves <palves@redhat.com>
6205 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
6206 function/method scopes; lookup the nested name as a function local
6209 2017-09-04 Pedro Alves <palves@redhat.com>
6211 (%type <voidval>): Add function_method.
6212 * c-exp.y (exp): New production for calls with no arguments.
6213 (function_method, function_method_void_or_typelist): New
6215 (exp): New production for "method()::static_var".
6216 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
6217 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6218 Handle OP_FUNC_STATIC_VAR.
6219 * parse.c (operator_length_standard):
6220 Handle OP_FUNC_STATIC_VAR.
6222 2017-09-04 Pedro Alves <palves@redhat.com>
6224 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
6226 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6228 * parse.c (operator_length_standard, operator_check_standard):
6230 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
6232 2017-09-04 Pedro Alves <palves@redhat.com>
6234 * ax-gdb.c: Include "typeprint.h".
6235 (gen_expr_for_cast): New function.
6236 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
6237 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
6239 * dwarf2read.c (new_symbol_full): Fallback to int instead of
6240 nodebug_data_symbol.
6241 * eval.c: Include "typeprint.h".
6242 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
6243 Error out if symbol has unknown type.
6244 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
6245 evaluate_subexp_for_cast.
6246 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
6248 (evaluate_subexp_for_cast): New function.
6249 * gdbtypes.c (init_nodebug_var_type): New function.
6250 (objfile_type): Use it to initialize types of variables with no
6252 * typeprint.c (error_unknown_type): New.
6253 * typeprint.h (error_unknown_type): New declaration.
6254 * compile/compile-c-types.c (convert_type_basic): Handle
6255 TYPE_CODE_ERROR; warn and fallback to int for variables with
6258 2017-09-04 Pedro Alves <palves@redhat.com>
6260 * eval.c (evaluate_var_value): New function, factored out from ...
6261 (evaluate_subexp_standard): ... here.
6263 2017-09-04 Pedro Alves <palves@redhat.com>
6265 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
6266 Remove useless assignments to 'op'.
6268 2017-09-04 Pedro Alves <palves@redhat.com>
6270 * eval.c (eval_skip_value): New function.
6271 (evaluate_subexp_standard): Use it.
6273 2017-09-04 Pedro Alves <palves@redhat.com>
6275 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
6276 function name from symbol/minsym and pass it to
6277 error_call_unknown_return_type.
6279 2017-09-04 Pedro Alves <palves@redhat.com>
6281 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
6282 * ax-gdb.c (gen_msym_var_ref): New function.
6283 (gen_expr): Handle OP_VAR_MSYM_VALUE.
6284 * eval.c (evaluate_var_msym_value): New function.
6285 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
6286 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
6287 to call_function_by_hand.
6288 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6289 Handle OP_VAR_MSYM_VALUE.
6290 (union exp_element) <msymbol>: New field.
6291 * minsyms.h (struct type): Forward declare.
6292 (find_minsym_type_and_address): Declare.
6293 * parse.c (write_exp_elt_msym): New function.
6294 (write_exp_msymbol): Delete, refactored as ...
6295 (find_minsym_type_and_address): ... this new function.
6296 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
6297 (operator_length_standard, operator_check_standard): Handle
6299 * std-operator.def (OP_VAR_MSYM_VALUE): New.
6301 2017-09-04 Pedro Alves <palves@redhat.com>
6303 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
6304 TYPE_GNU_IFUNC specially here. Throw error if return type is
6306 * ada-typeprint.c (print_func_type): Handle functions with unknown
6308 * c-typeprint.c (c_type_print_base): Handle functions and methods
6309 with unknown return type.
6310 * compile/compile-c-symbols.c (convert_symbol_bmsym)
6311 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
6312 * compile/compile-c-types.c: Include "objfiles.h".
6313 (convert_func): For functions with unknown return type, warn and
6315 * compile/compile-object-run.c (compile_object_run): Adjust call
6316 to call_function_by_hand_dummy.
6317 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
6318 call_function_by_hand.
6319 * eval.c (evaluate_subexp_standard): Adjust calls to
6320 call_function_by_hand. Handle functions and methods with unknown
6321 return type. Pass expect_type to call_function_by_hand.
6322 * f-typeprint.c (f_type_print_base): Handle functions with unknown
6324 * gcore.c (call_target_sbrk): Adjust call to
6325 call_function_by_hand.
6326 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
6327 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
6328 an integer address type instead of nodebug.
6329 * guile/scm-value.c (gdbscm_value_call): Adjust call to
6330 call_function_by_hand.
6331 * infcall.c (error_call_unknown_return_type): New function.
6332 (call_function_by_hand): New "default_return_type" parameter.
6334 (call_function_by_hand_dummy): New "default_return_type"
6335 parameter. Use it instead of defaulting to int. If there's no
6336 default and the return type is unknown, throw an error. If
6337 there's a default return type, and the called function has no
6338 debug info, then assume the function is prototyped.
6339 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
6340 New "default_return_type" parameter.
6341 (error_call_unknown_return_type): New declaration.
6342 * linux-fork.c (call_lseek): Cast return type of lseek.
6343 (inferior_call_waitpid, checkpoint_command): Adjust calls to
6344 call_function_by_hand.
6345 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
6346 calls to call_function_by_hand.
6347 * m2-typeprint.c (m2_procedure): Handle functions with unknown
6349 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6350 (value_nsstring, print_object_command): Adjust calls to
6351 call_function_by_hand.
6352 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
6353 functions with unknown return type.
6354 (pascal_type_print_func_varspec_suffix): New function.
6355 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
6356 TYPE_CODE_METHOD>: Use it.
6357 * python/py-value.c (valpy_call): Adjust call to
6358 call_function_by_hand.
6359 * rust-lang.c (rust_evaluate_funcall): Adjust call to
6360 call_function_by_hand.
6361 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
6362 call_function_by_hand.
6363 * valops.c (value_allocate_space_in_inferior): Adjust call to
6364 call_function_by_hand.
6365 * typeprint.c (type_print_unknown_return_type): New function.
6366 * typeprint.h (type_print_unknown_return_type): New declaration.
6368 2017-09-04 Pedro Alves <palves@redhat.com>
6370 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
6371 types with more than one parameter as prototyped.
6373 2017-09-04 Pedro Alves <palves@redhat.com>
6375 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
6376 (disassemble_command): Use gdb_disassembly_flags instead of bare
6378 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
6379 (dump_insns, do_mixed_source_and_assembly_deprecated)
6380 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
6381 Use gdb_disassembly_flags instead of bare int.
6382 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
6383 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
6384 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
6385 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
6386 (enum gdb_disassembly_flag): ... values of this new enumeration.
6387 (gdb_disassembly_flags): Define.
6389 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
6390 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
6391 gdb_disassembly_flags instead of bare int.
6392 * record-btrace.c (btrace_insn_history)
6393 (record_btrace_insn_history, record_btrace_insn_history_range)
6394 (record_btrace_insn_history_from): Use gdb_disassembly_flags
6395 instead of bare int.
6396 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
6397 Use gdb_disassembly_flags instead of bare int.
6398 * target-debug.h (target_debug_print_gdb_disassembly_flags):
6400 * target-delegates.c: Regenerate.
6401 * target.c (target_insn_history, target_insn_history_from)
6402 (target_insn_history_range): Use gdb_disassembly_flags instead of
6404 * target.h: Include "disasm.h".
6405 (struct target_ops) <to_insn_history, to_insn_history_from,
6406 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
6408 (target_insn_history, target_insn_history_from)
6409 (target_insn_history_range): Use gdb_disassembly_flags instead of
6412 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6414 * cli/cli-script.c (build_command_line): For if/while commands,
6415 check whether args is empty.
6417 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6419 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
6420 (enum command_control_type): Likewise.
6421 (struct command_line): Likewise.
6422 (free_command_lines): Likewise.
6423 (struct command_lines_deleter): Likewise.
6424 (command_line_up): Likewise.
6425 (read_command_lines): Likewise.
6426 (read_command_lines_1): Likewise.
6427 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
6428 (enum command_control_type): Likewise.
6429 (struct command_line): Likewise.
6430 (free_command_lines): Likewise.
6431 (struct command_lines_deleter): Likewise.
6432 (command_line_up): Likewise.
6433 (read_command_lines): Likewise.
6434 (read_command_lines_1): Likewise.
6435 * breakpoint.h: Include cli/cli-script.h.
6436 * extension-priv.h: Likewise.
6437 * gdbcmd.h: Likewise.
6439 2017-09-04 Pedro Alves <palves@redhat.com>
6441 * ada-lang.c (is_known_support_routine): Move sal declaration to
6442 where it is initialized.
6443 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
6444 (parse_breakpoint_sals, decode_static_tracepoint_spec)
6445 (clear_command, update_static_tracepoint): Remove init_sal
6446 references. Move declarations closer to initializations.
6447 * cli/cli-cmds.c (list_command): Move sal declarations closer to
6449 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
6450 references. Move sal declarations closer to initializations.
6451 * frame.c (find_frame_sal): Return a symtab_and_line via function
6452 return instead of output parameter. Remove init_sal references.
6453 * frame.h (find_frame_sal): Return a symtab_and_line via function
6454 return instead of output parameter.
6455 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
6456 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
6458 (gdbscm_find_pc_line): Remove init_sal reference.
6459 * infcall.c (call_function_by_hand_dummy): Remove init_sal
6460 references. Move declarations closer to initializations.
6461 * infcmd.c (set_step_frame): Update. Move declarations closer to
6463 (finish_backward): Remove init_sal references. Move declarations
6464 closer to initializations.
6465 * infrun.c (process_event_stop_test, handle_step_into_function)
6466 (insert_hp_step_resume_breakpoint_at_frame)
6467 (insert_step_resume_breakpoint_at_caller): Likewise.
6468 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
6469 (symbol_to_sal): Likewise.
6470 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
6471 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
6472 to its initialization.
6473 * reverse.c (save_bookmark_command): Use new/delete. Remove
6474 init_sal references. Move declarations closer to initializations.
6475 * source.c (get_current_source_symtab_and_line): Remove brace
6477 (set_current_source_symtab_and_line): Now takes the sal by const
6478 reference. Remove brace initialization.
6479 (line_info): Remove init_sal reference.
6480 * source.h (set_current_source_symtab_and_line): Now takes a
6481 symtab_and_line via const reference.
6482 * stack.c (set_current_sal_from_frame): Adjust.
6483 (print_frame_info): Adjust.
6484 (get_last_displayed_sal): Return the sal via function return
6485 instead of via output parameter. Simplify.
6486 (frame_info): Adjust.
6487 * stack.h (get_last_displayed_sal): Return the sal via function
6488 return instead of via output parameter.
6489 * symtab.c (init_sal): Delete.
6490 (find_pc_sect_line): Remove init_sal references. Move
6491 declarations closer to initializations.
6492 (find_function_start_sal): Remove init_sal references. Move
6493 declarations closer to initializations.
6494 * symtab.h (struct symtab_and_line): In-class initialize all
6496 * tracepoint.c (set_traceframe_context)
6497 (print_one_static_tracepoint_marker): Remove init_sal references.
6498 Move declarations closer to initializations.
6499 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
6500 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
6501 declarations closer to initializations.
6502 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
6503 init_sal references. Adjust.
6505 2017-09-04 Pedro Alves <palves@redhat.com>
6507 * ax-gdb.c (agent_command_1): Use range-for.
6508 * break-catch-throw.c (re_set_exception_catchpoint): Update.
6509 * breakpoint.c: Include "common/array-view.h".
6510 (init_breakpoint_sal, create_breakpoint_sal): Change sals
6511 parameter from struct symtabs_and_lines to
6512 array_view<symtab_and_line>. Adjust. Use range-for. Update.
6513 (breakpoint_sals_to_pc): Change sals parameter from struct
6514 symtabs_and_lines to std::vector reference.
6515 (check_fast_tracepoint_sals): Change sals parameter from struct
6516 symtabs_and_lines to std::array_view. Use range-for.
6517 (decode_static_tracepoint_spec): Return a std::vector instead of
6518 symtabs_and_lines. Update.
6519 (create_breakpoint): Update.
6520 (break_range_command, until_break_command, clear_command): Update.
6521 (base_breakpoint_decode_location, bkpt_decode_location)
6522 (bkpt_probe_create_sals_from_location)
6523 (bkpt_probe_decode_location, tracepoint_decode_location)
6524 (tracepoint_probe_decode_location)
6525 (strace_marker_create_sals_from_location): Return a std::vector
6526 instead of symtabs_and_lines.
6527 (strace_marker_create_breakpoints_sal): Update.
6528 (strace_marker_decode_location): Return a std::vector instead of
6529 symtabs_and_lines. Update.
6530 (update_breakpoint_locations): Change struct symtabs_and_lines
6531 parameters to gdb::array_view. Adjust.
6532 (location_to_sals): Return a std::vector instead of
6533 symtabs_and_lines. Update.
6534 (breakpoint_re_set_default): Use std::vector instead of struct
6536 (decode_location_default): Return a std::vector instead of
6537 symtabs_and_lines. Update.
6538 * breakpoint.h: Include "common/array-view.h".
6539 (struct breakpoint_ops) <decode_location>: Now returns a
6540 std::vector instead of returning a symtabs_and_lines via output
6542 (update_breakpoint_locations): Change sals parameters to use
6544 * cli/cli-cmds.c (edit_command, list_command): Update to use
6545 std::vector and gdb::array_view.
6546 (ambiguous_line_spec): Adjust to use gdb::array_view and
6548 (compare_symtabs): Rename to ...
6549 (cmp_symtabs): ... this. Change parameters to symtab_and_line
6550 const reference and adjust.
6551 (filter_sals): Rewrite using std::vector and standard algorithms.
6552 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
6553 (jump_command): Update to use std::vector.
6554 * linespec.c (struct linespec_state) <canonical_names>: Update
6556 (add_sal_to_sals_basic): Delete.
6557 (add_sal_to_sals, filter_results, convert_results_to_lsals)
6558 (decode_line_2, create_sals_line_offset)
6559 (convert_address_location_to_sals, convert_linespec_to_sals)
6560 (convert_explicit_location_to_sals, parse_linespec)
6561 (event_location_to_sals, decode_line_full, decode_line_1)
6562 (decode_line_with_current_source)
6563 (decode_line_with_last_displayed, decode_objc)
6564 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
6565 (linespec_result::~linespec_result): Adjust to use std::vector
6566 instead of symtabs_and_lines.
6567 * linespec.h (linespec_sals::sals): Now a std::vector.
6568 (struct linespec_result): Use std::vector, bool, and in-class
6570 (decode_line_1, decode_line_with_current_source)
6571 (decode_line_with_last_displayed): Return std::vector.
6572 * macrocmd.c (info_macros_command): Use std::vector.
6573 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
6574 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
6576 * probe.h (parse_probes): Return a std::vector.
6577 * python/python.c (gdbpy_decode_line): Use std::vector and
6579 * source.c (select_source_symtab, line_info): Use std::vector.
6580 * stack.c (func_command): Use std::vector.
6581 * symtab.h (struct symtabs_and_lines): Delete.
6582 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
6584 2017-09-04 Pedro Alves <palves@redhat.com>
6586 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6587 unittests/array-view-selftests.c.
6588 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
6589 * common/array-view.h: New file.
6590 * unittests/array-view-selftests.c: New file.
6592 2017-09-04 Pedro Alves <palves@redhat.com>
6594 * cli/cli-cmds.c (edit_command): Pass message to
6595 ambiguous_line_spec.
6596 (list_command): Pass message to ambiguous_line_spec. Say
6597 "first"/"last" instead of "start" and "end" to be consistent with
6599 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
6600 them to print formatted message.
6602 2017-09-04 Pedro Alves <palves@redhat.com>
6604 * btrace.c (ftrace_add_pt): Pass btrace_insn to
6605 ftrace_update_insns by reference instead of pointer.
6607 2017-09-04 Yao Qi <yao.qi@linaro.org>
6609 * i386-go32-tdep.c: Include x86-xstate.h.
6610 (i386_go32_init_abi): Call i386_target_description.
6611 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
6612 if xcr0 is X86_XSTATE_X87_MASK.
6613 * i386-tdep.h (tdesc_i386): Remove the declaration.
6614 (tdesc_i386_mmx): Likewise.
6616 2017-09-04 Yao Qi <yao.qi@linaro.org>
6618 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
6619 X86_XSTATE_SSE_MASK instead of 0.
6621 2017-09-04 Yao Qi <yao.qi@linaro.org>
6623 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
6624 i386_target_description.
6625 * i386-fbsd-nat.c (i386fbsd_read_description): Call
6626 i386_target_description.
6627 * i386-tdep.c (i386_gdbarch_init): Likewise.
6629 2017-09-04 Yao Qi <yao.qi@linaro.org>
6631 * amd64-darwin-tdep.c: Include "x86-xstate.h".
6632 (x86_darwin_init_abi_64): Call amd64_target_description.
6633 * amd64-dicos-tdep.c: Likewise.
6634 * amd64-fbsd-nat.c: Likewise.
6635 * amd64-fbsd-tdep.c: Likewise.
6636 * amd64-nbsd-tdep.c: Likewise.
6637 * amd64-obsd-tdep.c: Likewise.
6638 * amd64-sol2-tdep.c: Likewise.
6639 * amd64-windows-tdep.c: Likewise.
6640 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
6642 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6644 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
6645 (btrace_function) <insn>: Change type to use std::vector.
6646 * btrace.c (ftrace_debug, ftrace_call_num_insn,
6647 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
6648 ftrace_update_insns, ftrace_compute_global_level_offset,
6649 btrace_stitch_bts, btrace_clear, btrace_insn_get,
6650 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
6651 change to std::vector.
6652 (ftrace_update_insns): Adjust to change to std::vector, change
6653 type of INSN parameter.
6654 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
6655 * record-btrace.c (btrace_call_history_insn_range,
6656 btrace_compute_src_line_range,
6657 record_btrace_frame_prev_register): Adjust to change to
6659 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
6660 to change to std::vector.
6662 2017-09-03 Tom Tromey <tom@tromey.com>
6664 * corefile.c (reopen_exec_file): Use std::string.
6666 2017-09-03 Tom Tromey <tom@tromey.com>
6668 * compile/compile.c (compile_register_name_mangled): Return
6670 * compile/compile-loc2c.c (pushf_register_address): Update.
6671 (pushf_register): Update.
6672 * compile/compile-c-types.c (convert_array): Update.
6673 * compile/compile-c-symbols.c (generate_vla_size): Update.
6674 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
6675 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
6676 (convert_one_symbol): Update.
6677 (generate_c_for_for_one_variable): Update.
6678 * compile/compile-c-support.c (c_get_range_decl_name): Return a
6680 (generate_register_struct): Update.
6681 * compile/compile-internal.h (c_get_range_decl_name): Return a
6683 (compile_register_name_mangled): Return std::string.
6685 2017-09-03 Tom Tromey <tom@tromey.com>
6687 * utils.c (perror_string): Return a std::string.
6688 (throw_perror_with_name, perror_warning_with_name): Update.
6690 2017-09-03 Tom Tromey <tom@tromey.com>
6692 * demangle.c (demangle_command): Use std::string,
6695 2017-09-03 Tom Tromey <tom@tromey.com>
6697 * cli/cli-setshow.c (do_set_command): Use std::string.
6699 2017-09-03 Tom Tromey <tom@tromey.com>
6701 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
6703 2017-09-03 Tom Tromey <tom@tromey.com>
6705 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
6707 2017-09-03 Tom Tromey <tom@tromey.com>
6709 * mi/mi-cmd-env.c (env_execute_cli_command): Use
6710 gdb::unique_xmalloc_ptr.
6712 2017-09-03 Tom Tromey <tom@tromey.com>
6714 * thread.c (print_thread_info_1): Use string_printf.
6715 (thread_apply_command, thread_apply_all_command): Use
6718 2017-09-03 Tom Tromey <tom@tromey.com>
6720 * valprint.c (val_print_string): Update.
6721 * gdbcore.h (memory_error_message): Return std::string.
6722 * corefile.c (memory_error_message): Return std::string.
6723 (memory_error): Update.
6724 * breakpoint.c (insert_bp_location): Update.
6726 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6728 * target/waitstatus.h (target_waitstatus_to_string): Change
6729 return type to std::string.
6730 * target/waitstatus.c (target_waitstatus_to_string): Return
6732 * target.h (target_waitstatus_to_string): Remove declaration.
6733 * infrun.c (resume, clear_proceed_status_thread,
6734 print_target_wait_results, do_target_wait, save_waitstatus,
6735 stop_all_threads): Adjust.
6736 * record-btrace.c (record_btrace_wait): Adjust.
6738 (target_debug_print_struct_target_waitstatus_p): Adjust.
6740 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6743 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
6746 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6748 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
6749 for setting/unsetting environment variables on the remote target.
6750 (New remote packets): Add entries for QEnvironmentHexEncoded,
6751 QEnvironmentUnset and QEnvironmentReset.
6752 * common/environ.c (gdb_environ::operator=): Extend method to
6753 handle m_user_set_env_list and m_user_unset_env_list.
6754 (gdb_environ::clear): Likewise.
6755 (match_var_in_string): Change type of first parameter from 'char
6756 *' to 'const char *'.
6757 (gdb_environ::set): Extend method to handle
6758 m_user_set_env_list and m_user_unset_env_list.
6759 (gdb_environ::unset): Likewise.
6760 (gdb_environ::clear_user_set_env): New method.
6761 (gdb_environ::user_set_envp): Likewise.
6762 (gdb_environ::user_unset_envp): Likewise.
6763 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
6764 m_user_unset_env_list on move constructor/assignment.
6765 (unset): Add new default parameter 'update_unset_list = true'.
6766 (clear_user_set_env): New method.
6767 (user_set_envp): Likewise.
6768 (user_unset_envp): Likewise.
6769 (m_user_set_env_list): New std::set.
6770 (m_user_unset_env_list): Likewise.
6771 * common/rsp-low.c (hex2str): New function.
6772 (bin2hex): New overload for bin2hex function.
6773 * common/rsp-low.c (hex2str): New prototype.
6774 (str2hex): New overload prototype.
6775 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
6776 QEnvironmentUnset and QEnvironmentReset.
6777 (remote_protocol_features): Add QEnvironmentHexEncoded,
6778 QEnvironmentUnset and QEnvironmentReset packets.
6779 (send_environment_packet): New function.
6780 (extended_remote_environment_support): Likewise.
6781 (extended_remote_create_inferior): Call
6782 extended_remote_environment_support.
6783 (_initialize_remote): Add QEnvironmentHexEncoded,
6784 QEnvironmentUnset and QEnvironmentReset packet configs.
6785 * unittests/environ-selftests.c (gdb_selftest_env_var):
6787 (test_vector_initialization): New function.
6788 (test_init_from_host_environ): Likewise.
6789 (test_reinit_from_host_environ): Likewise.
6790 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
6792 (test_unset_set_empty_vector): Likewise.
6793 (test_vector_clear): Likewise.
6794 (test_std_move): Likewise.
6795 (test_move_constructor):
6796 (test_self_move): Likewise.
6797 (test_set_unset_reset): Likewise.
6798 (run_tests): Rewrite in terms of the functions above.
6800 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
6802 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
6803 (adi_available): Use a temp variable of type CORE_ADDR as argument
6804 3 when calling target_auxv_search.
6805 (adi_normalize_address): Use masks and xor operators to calculate
6807 (adi_read_versions, adi_write_versions, adi_print_versions)
6808 (do_examine, do_assign): Use paddress.
6810 2017-08-29 John Baldwin <jhb@FreeBSD.org>
6812 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
6813 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
6814 out of loop and add supply of FIR.
6815 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
6818 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
6821 * cli/cli-script.c (define_command): Don't convert command name
6824 2017-08-25 Joel Brobecker <brobecker@adacore.com>
6826 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
6827 Update all callers accordingly. Remove all code blocks handling
6828 the case where DISPP is not NULL.
6830 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6833 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
6834 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6835 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
6837 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6839 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
6840 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
6841 (read_comp_units_from_section): New parameter abbrev_section, use
6842 read_and_check_comp_unit_head, allocate signatured_type if needed.
6843 (create_all_comp_units): Update read_comp_units_from_section caller.
6845 2017-08-23 Pedro Alves <palves@redhat.com>
6848 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
6849 to null_ptid and switch to thread without reading the registers
6850 after adding the inferior.
6852 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6854 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
6856 * compile/compile.c (compile_gcc, show_compile_gcc): New.
6857 (compile_to_object): Implement compile_gcc.
6858 (_initialize_compile): Install "set compile-gcc". Initialize
6861 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6863 * compile/compile.c (compile_to_object): Conditionally call
6864 set_verbose. Conditionally call compile or compile_v0.
6866 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
6868 * sparc64-tdep.h: (adi_normalize_address): New export.
6869 * sparc-nat.h: (open_adi_tag_fd): New export.
6870 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
6871 * sparc64-linux-tdep.c:
6872 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
6873 (sparc64_linux_handle_segmentation_fault): New function.
6874 (sparc64_linux_init_abi): Register
6875 sparc64_linux_handle_segmentation_fault
6876 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
6877 (sparc64_addr_bits_remove): New function.
6878 (sparc64_init_abi): Register sparc64_addr_bits_remove.
6879 (MAX_PROC_NAME_SIZE): New macro.
6880 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
6881 (sparc64adilist): New variable.
6882 (adi_proc_list): New variable.
6883 (find_adi_info): New function.
6884 (add_adi_info): New function.
6885 (get_adi_info_proc): New function.
6886 (get_adi_info): New function.
6887 (info_adi_command): New function.
6888 (read_maps_entry): New function.
6889 (adi_available): New function.
6890 (adi_normalize_address): New function.
6891 (adi_align_address): New function.
6892 (adi_convert_byte_count): New function.
6893 (adi_tag_fd): New function.
6894 (adi_is_addr_mapped): New function.
6895 (adi_read_versions): New function.
6896 (adi_write_versions): New function.
6897 (adi_print_versions): New function.
6898 (do_examine): New function.
6899 (do_assign): New function.
6900 (adi_examine_command): New function.
6901 (adi_assign_command): New function.
6902 (_initialize_sparc64_adi_tdep): New function.
6904 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
6906 * breakpoint.c (breakpoints_info): Rename to ...
6907 (info_breakpoints_command): ... this.
6908 (watchpoints_info): Rename to ...
6909 (info_watchpoints_command): ... this.
6910 (tracepoints_info): Rename to ...
6911 (info_tracepoints_command): ... this.
6912 (_initialize_breakpoint): Adjust.
6913 * dcache.c (dcache_info): Rename to ...
6914 (info_display_command): ... this.
6915 (_initialize_dcache): Adjust.
6916 * frame.h (args_info): Rename to ...
6917 (info_args_command): ... this.
6918 (locals_info): Rename to ...
6919 (info_locals_command): ... this.
6920 * infcmd.c (nofp_registers_info): Rename to ...
6921 (info_registers_command): ... this.
6922 (float_info): Rename to ...
6923 (info_float_command): ... this.
6924 (program_info): Rename to ...
6925 (info_program_command): ... this.
6926 (all_registers_info): Rename to ...
6927 (info_all_registers_command): ... this.
6928 (vector_info): Rename to ...
6929 (info_vector_command): ... this.
6930 (float_info): Rename to ...
6931 (info_float_command): ... this.
6932 (_initialize_infcmd): Adjust.
6933 * inferior.h (term_info): Rename to ...
6934 (info_terminal_command): ... this.
6935 * inflow.c (term_info): Rename to ...
6936 (info_terminal_command): ... this.
6937 (_initialize_inflow): Adjust.
6938 * infrun.c (signals_info): Rename to ...
6939 (info_signals_command): ... this.
6940 (_initialize_infrun): Adjust.
6941 * objc-lang.c (classes_info): Rename to ...
6942 (info_classes_command): ... this.
6943 (selectors_info): Rename to ...
6944 (info_selectors_command): ... this.
6945 (_initialize_objc_language): Adjust.
6946 * printcmd.c (sym_info): Rename to ...
6947 (info_symbol_command): ... this.
6948 (address_info): Rename to ...
6949 (info_address_command): ... this.
6950 (display_info): Rename to ...
6951 (info_display_command): ... this.
6952 (_initialize_printcmd): Adjust.
6953 * reverse.c (bookmarks_info): Rename to ...
6954 (info_breakpoints_command): ... this.
6955 (_initialize_reverse): Adjust.
6956 * ser-go32.c (dos_info): Rename to ...
6957 (info_serial_command): ... this.
6958 (_initialize_ser_dos): Adjust.
6959 * skip.c (skip_info): Rename to ...
6960 (info_skip_command): ... this.
6961 (_initialize_step_skip): Adjust.
6962 * source.c (line_info): Rename to ...
6963 (info_line_command): ... this.
6964 (source_info): Rename to ...
6965 (info_source_command)
6966 * stack.c (frame_info): Rename to ...
6967 (info_frame_command): ... this.
6968 (locals_info): Rename to ...
6969 (info_locals_command): ... this.
6970 (args_info): Rename to ...
6971 (info_args_command): ... this.
6972 (_initialize_stack): Adjust.
6973 * symtab.c (sources_info): Rename to ...
6974 (info_sources_command): ... this.
6975 (variables_info): Rename to ...
6976 (info_variables_command): ... this.
6977 (functions_info): Rename to ...
6978 (info_functions_command): ... this.
6979 (types_info): Rename to ...
6980 (info_types_command): ... this.
6981 (_initialize_symtab): Adjust.
6982 * target.c (target_info): Rename to ...
6983 (info_target_command): ... this.
6984 (initialize_targets): Adjust.
6985 * tracepoint.c (tvariables_info): Rename to ...
6986 (info_tvariables_command): ... this.
6987 (scope_info): Rename to ...
6988 (info_scope_command): ... this.
6989 (trace_dump_actions): Adjust.
6990 (_initialize_tracepoint): Adjust.
6992 2017-08-22 Tom Tromey <tom@tromey.com>
6994 * breakpoint.h (install_breakpoint): Update.
6995 * breakpoint.c (add_solib_catchpoint): Update.
6996 (install_breakpoint): Change argument to a std::unique_ptr.
6997 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
6998 (create_breakpoint_sal, create_breakpoint): Update.
6999 (watch_command_1, catch_exec_command_1)
7000 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
7001 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
7002 Return the breakpoint.
7003 (set_raw_breakpoint_without_location, set_raw_breakpoint)
7004 (new_single_step_breakpoint): Update.
7005 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
7007 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
7009 * break-catch-sig.c (create_signal_catchpoint): Use
7011 * ada-lang.c (create_ada_exception_catchpoint): Use
7014 2017-08-22 Tom Tromey <tom@tromey.com>
7016 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
7018 2017-08-22 Tom Tromey <tom@tromey.com>
7020 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
7021 (lookup_partial_symbol): Update.
7023 2017-08-22 Tom Tromey <tom@tromey.com>
7025 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
7026 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
7027 (find_and_open_source, symtab_to_fullname): Update.
7028 * psymtab.c (psymtab_to_fullname): Update.
7030 2017-08-22 Tom Tromey <tom@tromey.com>
7032 * exec.c (exec_file_attach): Update.
7033 * linux-thread-db.c (try_thread_db_load): Update.
7034 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
7035 * utils.c (gdb_realpath): Change return type.
7036 (gdb_realpath_keepfile): Update.
7037 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
7038 (_initialize_utils): Register the new self test.
7039 * source.c (openp): Update.
7040 (find_and_open_source): Update.
7041 * nto-tdep.c (nto_find_and_open_solib): Update.
7042 * main.c (set_gdb_data_directory): Update.
7043 (captured_main_1): Update.
7044 * dwarf2read.c (dwarf2_get_dwz_file): Update
7045 (dw2_map_symbol_filenames): Update.
7046 * auto-load.c (auto_load_safe_path_vec_update): Update.
7047 (filename_is_in_auto_load_safe_path_vec): Change type of
7049 (auto_load_objfile_script): Update.
7050 (file_is_auto_load_safe): Update. Use std::string.
7051 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
7053 2017-08-22 Tom Tromey <tom@tromey.com>
7055 * utils.c (gdb_realpath_keepfile): Return a
7056 gdb::unique_xmalloc_ptr.
7057 * exec.c (exec_file_attach): Update.
7058 * utils.h (gdb_realpath_keepfile): Return a
7059 gdb::unique_xmalloc_ptr.
7061 2017-08-22 Tom Tromey <tom@tromey.com>
7063 * compile/compile.c (compile_file_command): Use
7064 gdb::unique_xmalloc_ptr, std::string.
7065 * utils.c (gdb_abspath): Change return type.
7066 * source.c (openp): Update.
7067 * objfiles.c (allocate_objfile): Update.
7068 * main.c (set_gdb_data_directory): Update.
7069 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
7071 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
7073 * cli-cmds.c (list_commands): List actual code around more than
7076 2017-08-21 John Baldwin <jhb@FreeBSD.org>
7078 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
7080 2017-08-21 Pedro Alves <palves@redhat.com>
7083 * c-exp.y (variable production): Handle function aliases.
7084 * minsyms.c (msymbol_is_text): New function.
7085 * minsyms.h (msymbol_is_text): Declare.
7086 * symtab.c (find_function_alias_target): New function.
7087 * symtab.h (find_function_alias_target): Declare.
7089 2017-08-21 Pedro Alves <palves@redhat.com>
7091 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
7093 * typeprint.c (whatis_exp): If handling "whatis", and expression
7094 is OP_TYPE, strip one typedef level. Otherwise don't strip
7096 * valops.c (value_cast): Save "to" type before resolving
7097 stubs/typedefs. Use that type as resulting value's type.
7099 2017-08-18 Tom Tromey <tom@tromey.com>
7100 Pedro Alves <palves@redhat.com>
7102 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
7103 * sol-thread.c (sol_thread_resume, sol_thread_wait)
7104 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
7105 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
7106 * proc-service.c (ps_xfer_memory): Use scoped_restore.
7107 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
7108 (linux_get_siginfo_data): Add "thread" argument. Use
7110 * linux-nat.c (linux_child_follow_fork)
7111 (check_stopped_by_watchpoint): Use scoped_restore.
7112 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
7113 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
7114 (restore_inferior_ptid, save_inferior_ptid): Remove.
7115 * btrace.c (btrace_fetch): Use scoped_restore.
7116 * bsd-uthread.c (bsd_uthread_fetch_registers)
7117 (bsd_uthread_store_registers): Use scoped_restore.
7118 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
7120 * aix-thread.c (aix_thread_resume, aix_thread_wait)
7121 (aix_thread_xfer_partial): Use scoped_restore.
7122 * inferior.h (save_inferior_ptid): Remove.
7124 2017-08-18 Yao Qi <yao.qi@linaro.org>
7127 * arm-tdep.c (gdb_print_insn_arm): Mark
7128 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
7130 2017-08-18 Yao Qi <yao.qi@linaro.org>
7132 * NEWS: Mention GDBserver's new option "--selftest".
7133 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
7134 * selftest.c: Move it to common/selftest.c.
7135 * selftest.h: Move it to common/selftest.h.
7136 * selftest-arch.c (reset): New function.
7137 (tests_with_arch): Call reset.
7139 2017-08-18 Yao Qi <yao.qi@linaro.org>
7141 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
7142 instead of exception_fprintf and printf_filtered.
7144 2017-08-18 Yao Qi <yao.qi@linaro.org>
7146 * selftest.c (register_self_test): Rename it to
7147 selftests::register_test.
7148 (run_self_tests): selftest::run_tests.
7149 * selftest.h: Update declarations.
7150 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
7151 selftests::register_test_foreach_arch.
7152 * selftest-arch.h: Update declaration.
7153 * aarch64-tdep.c: Update.
7154 * arm-tdep.c: Likewise.
7155 * disasm-selftests.c: Likewise.
7156 * dwarf2loc.c: Likewise.
7157 * dwarf2-frame.c: Likewise.
7158 * findvar.c: Likewise.
7159 * gdbarch-selftests.c: Likewise.
7160 * maint.c (maintenance_selftest): Likewise.
7161 * regcache.c: Likewise.
7162 * rust-exp.y: Likewise.
7163 * selftest-arch.c: Likewise.
7164 * unittests/environ-selftests.c: Likewise.
7165 * unittests/function-view-selftests.c: Likewise.
7166 * unittests/offset-type-selftests.c: Likewise.
7167 * unittests/optional-selftests.c: Likewise.
7168 * unittests/scoped_restore-selftests.c: Likewise.
7169 * utils-selftests.c: Likewise.
7171 2017-08-17 Pedro Alves <palves@redhat.com>
7173 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
7176 2017-08-17 Pedro Alves <palves@redhat.com>
7178 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
7180 (reset_die_in_process): Delete, replaced by ...
7181 (process_die_scope): ... this new class. Make it responsible for
7182 freeing cu->line_header too.
7183 (process_die): Use process_die_scope.
7184 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
7185 cu->line_header_die_owner. Don't release the line header if it's
7187 (setup_type_unit_groups): Make the CU/DIE own the line header.
7188 Don't release the line header here.
7190 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
7192 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
7194 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
7196 * NEWS: Mention new shortcuts for nexti and stepi in TUI
7199 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
7201 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
7204 2017-08-15 Stafford Horne <shorne@gmail.com>
7206 * MAINTAINERS (Write After Approval): Add Stafford Horne.
7208 2017-08-15 Stafford Horne <shorne@gmail.com>
7210 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
7212 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
7215 * infcmd.c (unset_environment_command): Use the 'clear' method on
7216 the environment instead of resetting it.
7218 2017-08-15 John Baldwin <jhb@FreeBSD.org>
7220 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
7223 2017-08-14 Tom Tromey <tom@tromey.com>
7225 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
7226 (print_binary_chars): Likewise.
7227 (BITS_IN_BYTES): Remove.
7229 2017-08-14 Tom Tromey <tom@tromey.com>
7232 * valprint.c (LOW_ZERO): Change value to 034.
7233 (print_octal_chars): Add static_asserts for octal constants.
7234 * printcmd.c (print_scalar_formatted): Add 'd' case.
7236 2017-08-11 Tom Tromey <tom@tromey.com>
7238 * symfile.c (add_symbol_file_command): Use std::vector.
7240 2017-08-14 Tom Tromey <tom@tromey.com>
7242 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
7243 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
7245 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
7247 2017-08-11 Pedro Alves <palves@redhat.com>
7249 * infrun.c (process_event_stop_test): Adjust
7250 function_name_is_marked_for_skip call.
7251 * skip.c: Include <list>.
7252 (skiplist_entry): Make it a class with private fields, and
7254 (skiplist_entry_chain): Delete.
7255 (skiplist_entries): New.
7256 (skiplist_entry_count): Delete.
7257 (highest_skiplist_entry_num): New.
7258 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
7259 (add_skiplist_entry): Delete.
7260 (skiplist_entry::skiplist_entry): New.
7261 (skiplist_entry::add_entry): New.
7262 (skip_file_command, skip_function): Adjust.
7263 (compile_skip_regexp): Delete.
7264 (skip_command): Don't compile regexp here. Adjust to use
7265 skiplist_entry::add_entry.
7266 (skip_info): Adjust to use range-for and getters.
7267 (skip_enable_command, skip_disable_command): Adjust to use
7268 range-for and setters.
7269 (skip_delete_command): Adjust to use std::list.
7270 (add_skiplist_entry): Delete.
7271 (skip_file_p): Delete, refactored as ...
7272 (skiplist_entry::do_skip_file_p): ... this new method.
7273 (skip_gfile_p): Delete, refactored as ...
7274 (skiplist_entry::do_gskip_file_p): ... this new method.
7275 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
7276 (skiplist_entry::skip_function_p): ... this new method.
7277 (function_name_is_marked_for_skip): Now returns bool, and takes
7278 the function sal by const reference. Adjust to use range-for and
7279 skiplist_entry methods.
7280 (_initialize_step_skip): Remove references to
7281 skiplist_entry_chain, skiplist_entry_count.
7282 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
7283 takes the function sal by const reference.
7285 2017-08-11 Yao Qi <yao.qi@linaro.org>
7287 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
7288 (dwarf2_frame_cache): Remove reset_cache_cleanup.
7289 (dwarf2_frame_cache):
7290 * frame-unwind.c (frame_unwind_try_unwinder): Catch
7291 RETURN_MASK_ALL and set *this_case to NULL.
7292 * frame-unwind.h: Update comments.
7294 2017-08-11 Yao Qi <yao.qi@linaro.org>
7296 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
7297 (dwarf2_frame_state_copy_regs): Remove.
7298 (dwarf2_frame_state_free_regs): Remove.
7299 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
7300 (dwarf2_restore_rule): Call method .alloc_regs instead of
7301 dwarf2_frame_state_alloc_regs.
7302 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
7303 constructor. Call std::move.
7304 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
7305 (dwarf2_frame_cache): Likewise.
7307 [GDB_SELF_TEST]: Include selftest.h and
7309 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
7310 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
7311 execute_cfa_program_test.
7313 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
7314 copy ctor, assignment operator, move assignment.
7315 <alloc_regs>: New method.
7317 (struct dwarf2_frame_state): Delete dtor.
7318 (dwarf2_frame_state_alloc_regs): Remove declaration.
7319 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
7320 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
7322 2017-08-11 Yao Qi <yao.qi@linaro.org>
7324 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
7325 (dwarf2_frame_state::dwarf2_frame_state): New.
7326 (dwarf2_frame_state::~dwarf2_frame_state): New.
7327 (dwarf2_fetch_cfa_info): Update.
7328 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
7329 rather than a pointer. Update code.
7330 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
7332 <data_align, code_align, retaddr_column>: Change them to const.
7333 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
7336 2017-08-11 Yao Qi <yao.qi@linaro.org>
7338 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
7339 <loc.exp>: New field.
7340 * dwarf2-frame.c (execute_cfa_program): Update.
7341 (dwarf2_frame_prev_register): Update.
7343 2017-08-10 Pedro Alves <palves@redhat.com>
7345 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
7347 2017-08-09 John Baldwin <jhb@FreeBSD.org>
7349 * fbsd-nat.c (struct fbsd_fork_info): Remove.
7350 (fbsd_pending_children): Use std::list.
7351 (fbsd_remember_child): Likewise.
7352 (fbsd_is_child_pending): Likewise.
7353 (fbsd_pending_vfork_done): Use std::forward_list.
7354 (fbsd_add_vfork_done): Likewise.
7355 (fbsd_is_vfork_done_pending): Likewise.
7356 (fbsd_next_vfork_done): Likewise.
7358 2017-08-09 John Baldwin <jhb@FreeBSD.org>
7360 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
7361 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
7362 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
7364 (fbsd_xfer_partial): Use gdb::byte_vector.
7365 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
7367 2017-08-09 John Baldwin <jhb@FreeBSD.org>
7369 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
7371 (fbsd_find_memory_regions): Fix `mapfile' initialization.
7373 2017-08-09 Tom Tromey <tom@tromey.com>
7375 * skip.c (skiplist_entry): New constructor.
7376 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
7377 (skiplist_entry::file_is_glob): Now bool.
7378 (skiplist_entry::file, skiplist_entry::function): Now
7380 (make_skip_entry): Return a unique_ptr. Use new.
7381 (free_skiplist_entry, free_skiplist_entry_cleanup)
7382 (make_free_skiplist_entry_cleanup): Remove.
7383 (skip_command, skip_disable_command, add_skiplist_entry)
7384 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
7385 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
7386 (function_name_is_marked_for_skip): Update.
7387 (skip_delete_command): Update. Use delete.
7389 2017-08-09 Jiong Wang <jiong.wang@arm.com>
7391 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
7392 (aarch64_linux_core_read_description): New function.
7393 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
7395 2017-08-09 Pedro Alves <palves@redhat.com>
7397 * cp-name-parser.y (cp_comp_to_string): Return a
7398 gdb::unique_xmalloc_ptr<char>.
7399 * cp-support.c (replace_typedefs_qualified_name)
7400 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
7401 (cp_canonicalize_string_full): Use op= instead of explicit
7403 (cp_class_name_from_physname, method_name_from_physname)
7404 (cp_func_name, cp_remove_params): Adjust to use
7405 gdb::unique_xmalloc_ptr<char>.
7406 * cp-support.h (cp_comp_to_string): Return a
7407 gdb::unique_xmalloc_ptr<char>.
7408 * python/py-type.c (typy_lookup_type): Adjust to use
7409 gdb::unique_xmalloc_ptr<char>.
7411 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
7413 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
7415 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
7416 Yao Qi <yao.qi@linaro.org>
7418 * cp-support.c (cp_canonicalize_string_full): Use
7419 gdb::unique_xmalloc_ptr<char>.
7420 (cp_canonicalize_string): Likewise.
7422 2017-08-09 Yao Qi <yao.qi@linaro.org>
7424 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
7425 * regformats/i386/amd64-avx-avx512.dat: Remove.
7426 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
7427 * regformats/i386/amd64-avx-mpx.dat:Remove.
7428 * regformats/i386/amd64-avx.dat: Remove.
7429 * regformats/i386/amd64-mpx.dat: Remove.
7430 * regformats/i386/i386-avx-avx512.dat: Remove.
7431 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
7432 * regformats/i386/i386-avx-mpx.dat: Remove.
7433 * regformats/i386/i386-mmx.dat: Remove.
7434 * regformats/i386/i386-mpx.dat: Remove.
7436 2017-08-09 Yao Qi <yao.qi@linaro.org>
7438 * amd64-tdep.h (tdesc_x32): Remove the declaration.
7439 * amd64-tdep.c: Don't include features/i386/x32*.c.
7440 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
7442 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
7443 and i386/x32-avx-avx512.
7444 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
7446 * features/i386/x32-avx-avx512.c: Removed.
7447 * features/i386/x32-avx-avx512.xml: Removed.
7448 * features/i386/x32-avx.c: Removed.
7449 * features/i386/x32-avx.xml: Removed.
7450 * features/i386/x32.c: Removed.
7451 * features/i386/x32.xml: Removed.
7452 * regformats/i386/x32-avx-avx512.dat: Removed.
7453 * regformats/i386/x32-avx.dat: Removed.
7454 * regformats/i386/x32.dat: Removed.
7456 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7458 PR breakpoints/21886
7459 * mem-break.c (default_memory_insert_breakpoint): Use
7460 `->placed_address' rather than `->reqstd_address' for the
7461 breakpoint location.
7463 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7465 * arch-utils.c (default_print_insn): Remove arch/mach/endian
7468 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7470 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
7471 a union of `tdep_info', `tdesc_data' and `id'.
7472 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
7473 rather than `info.tdep_info'.
7474 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
7475 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7476 * i386-tdep.c (i386_gdbarch_init): Likewise.
7477 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
7478 * mips-tdep.c (mips_gdbarch_init): Likewise.
7479 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7480 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7481 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
7483 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
7485 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7486 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
7488 * spu-tdep.c (spu_gdbarch_init): Likewise.
7489 * gdbarch.h: Regenerate.
7491 2017-08-07 Leszek Swirski <leszeks@google.com>
7494 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
7496 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
7498 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
7499 (gdbsim_open): Rename gdb_argv args object to argv.
7501 2017-08-05 Tom Tromey <tom@tromey.com>
7503 * compile/compile-object-load.c (compile_object_load): Use
7504 gdb::unique_xmalloc_ptr.
7505 * cli/cli-dump.c (scan_filename): Rename from
7506 scan_filename_with_cleanup. Change return type.
7507 (scan_expression): Rename from scan_expression_with_cleanup.
7509 (dump_memory_to_file, dump_value_to_file, restore_command):
7510 Use gdb::unique_xmalloc_ptr. Update.
7511 * cli/cli-cmds.c (find_and_open_script): Use
7512 gdb::unique_xmalloc_ptr.
7513 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
7514 * symmisc.c (maintenance_print_symbols)
7515 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
7516 * symfile.c (symfile_bfd_open, generic_load)
7517 (add_symbol_file_command, remove_symbol_file_command): Use
7518 gdb::unique_xmalloc_ptr.
7519 * source.c (openp): Use gdb::unique_xmalloc_ptr.
7520 * psymtab.c (maintenance_print_psymbols): Use
7521 gdb::unique_xmalloc_ptr.
7522 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
7523 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
7524 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
7525 (reload_shared_libraries_1): Likewise.
7527 2017-08-05 Tom Tromey <tom@tromey.com>
7529 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
7530 (rust_op_vector, rust_set_vector): New typedefs.
7531 (current_parser): New global.
7532 (work_obstack): Change to pointer type. Update all users.
7533 (rust_ast, pstate): Remove globals.
7534 (struct rust_parser): New.
7535 (%union) <params, field_inits>: Change type.
7536 (start, tuple_expr, unit_expr, struct_expr_list, literal)
7537 (field_expr, expr_list, maybe_expr_list, type_list): Update.
7538 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
7539 (convert_params_to_types, convert_params_to_expression): Change
7541 (ast_string): Change type of "fields".
7542 (rust_parse): Make a rust_parser. Remove cleanups.
7543 (rust_lex_tests): Make and install an auto_obstack.
7545 2017-08-04 Yao Qi <yao.qi@linaro.org>
7547 * configure.srv (ipa_x32_linux_regobj): New.
7548 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
7549 instead of X86_TDESC_AVX512.
7550 (initialize_low_tracepoint): Call
7551 init_registers_x32_avx_avx512_linux.
7553 2017-08-04 Yao Qi <yao.qi@linaro.org>
7555 * utils.h (gdb_argv): Add namespace std for nullptr_t.
7557 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
7559 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
7561 2017-08-03 Tom Tromey <tom@tromey.com>
7563 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
7565 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
7567 2017-08-03 Tom Tromey <tom@tromey.com>
7569 * python/py-param.c (compute_enum_values): Use gdb_argv.
7571 2017-08-03 Tom Tromey <tom@tromey.com>
7573 * utils.h (struct gdb_argv_deleter): New.
7574 (gdb_argv): New class.
7575 * utils.c (gdb_argv::reset): New method.
7576 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
7577 * tracefile.c (tsave_command): Use gdb_argv.
7578 * top.c (new_ui_command): Use gdb_argv.
7579 * symmisc.c (maintenance_print_symbols)
7580 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
7581 * symfile.c (symbol_file_command, generic_load)
7582 (remove_symbol_file_command): Use gdb_argv.
7583 * stack.c (backtrace_command): Use gdb_argv.
7584 * source.c (add_path, show_substitute_path_command)
7585 (unset_substitute_path_command, set_substitute_path_command):
7587 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
7588 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
7589 * remote.c (extended_remote_run, remote_put_command)
7590 (remote_get_command, remote_delete_command): Use gdb_argv.
7591 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
7592 (gdbsim_open): Use gdb_argv.
7593 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
7594 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
7595 * procfs.c (procfs_info_proc): Use gdb_argv.
7596 * interps.c (interpreter_exec_cmd): Use gdb_argv.
7597 * infrun.c (handle_command): Use gdb_argv.
7598 * inferior.c (add_inferior_command, clone_inferior_command):
7600 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
7601 * exec.c (exec_file_command): Use gdb_argv.
7602 * cli/cli-cmds.c (alias_command): Use gdb_argv.
7603 * compile/compile.c (build_argc_argv): Use gdb_argv.
7605 2017-08-03 Tom Tromey <tom@tromey.com>
7607 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
7609 2017-08-03 Tom Tromey <tom@tromey.com>
7611 * python/python.c (compute_python_string): Return std::string.
7612 (gdbpy_eval_from_control_command): Update.
7613 (do_start_initialization): Use std::string.
7614 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
7616 * python/py-breakpoint.c (local_setattro): Use string_printf, not
7619 2017-08-03 Tom Tromey <tom@tromey.com>
7621 * top.h (do_restore_instream_cleanup): Remove.
7622 * top.c (do_restore_instream_cleanup): Remove.
7623 (read_command_file): Use scoped_restore.
7624 * cli/cli-script.c (execute_user_command): Use scoped_restore.
7626 2017-08-03 Tom Tromey <tom@tromey.com>
7628 * cli/cli-script.c (execute_user_command)
7629 (execute_control_command): Use scoped_restore.
7631 2017-08-03 Tom Tromey <tom@tromey.com>
7633 * cli/cli-script.c (do_restore_user_call_depth): Remove.
7634 (execute_user_command): Remove user_call_depth; use
7635 user_args_stack's size instead.
7637 2017-08-03 Tom Tromey <tom@tromey.com>
7639 * top.h (in_user_command): Remove.
7640 * top.c (in_user_command): Remove.
7641 * cli/cli-script.c (do_restore_user_call_depth)
7642 (execute_user_command): Update.
7644 2017-08-03 Tom Tromey <tom@tromey.com>
7646 * valops.c (search_struct_method): Use gdb::byte_vector.
7647 * valarith.c (value_concat): Use std::vector.
7648 * target.c (memory_xfer_partial): Use gdb::byte_vector.
7649 (simple_search_memory): Likewise.
7650 * printcmd.c (find_string_backward): Use gdb::byte_vector.
7651 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
7652 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
7653 * elfread.c (elf_rel_plt_read): Use std::string.
7654 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
7655 * cli/cli-dump.c (restore_section_callback): Use
7658 2017-08-03 Tom Tromey <tom@tromey.com>
7660 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
7662 2017-08-03 Tom Tromey <tom@tromey.com>
7664 * tui/tui-regs.c (tui_restore_gdbout): Remove.
7665 (tui_register_format): Use scoped_restore.
7667 2017-08-03 Tom Tromey <tom@tromey.com>
7669 * reverse.c (exec_direction_default): Remove.
7670 (exec_reverse_once): Use scoped_restore.
7671 * remote.c (restore_remote_timeout): Remove.
7672 (remote_flash_erase, remote_flash_write, remote_flash_done)
7673 (readchar, remote_serial_write): Use scoped_restore.
7674 * cli/cli-script.c (struct source_cleanup_lines_args)
7675 (source_cleanup_lines): Remove.
7676 (script_from_file): Use scoped_restore.
7677 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
7678 (source_command): Use scoped_restore.
7680 2017-08-03 Tom Tromey <tom@tromey.com>
7682 * utils.h (make_cleanup_free_so): Remove.
7683 * utils.c (do_free_so, make_cleanup_free_so): Remove.
7684 * solist.h (struct so_deleter): New.
7685 (so_list_up): New typedef.
7686 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
7688 2017-08-03 Tom Tromey <tom@tromey.com>
7690 * utils.h (make_cleanup_restore_current_language): Remove.
7691 * utils.c (do_restore_current_language)
7692 (make_cleanup_restore_current_language): Remove.
7693 * parse.c (parse_exp_in_context_1)
7694 (parse_expression_with_language): Use
7695 scoped_restore_current_language.
7696 * mi/mi-main.c (mi_cmd_execute): Use
7697 scoped_restore_current_language.
7698 * language.h (scoped_restore_current_language): New class.
7700 2017-08-03 Tom Tromey <tom@tromey.com>
7702 * compile/compile.c (cleanup_unlink_file): Remove.
7703 (compile_to_object): Use gdb::unlinker.
7704 (eval_compile_command): Likewise.
7706 2017-08-03 Tom Tromey <tom@tromey.com>
7708 * utils.h (make_cleanup_fclose): Remove.
7709 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
7711 2017-08-03 Tom Tromey <tom@tromey.com>
7713 * top.c (open_terminal_stream): Return gdb_file_up.
7714 (new_ui_command): Update.
7716 2017-08-03 Tom Tromey <tom@tromey.com>
7718 * source.c (print_source_lines_base, forward_search_command)
7719 (reverse_search_command): Use gdb_file_up.
7721 2017-08-03 Tom Tromey <tom@tromey.com>
7723 * fbsd-nat.c (fbsd_find_memory_regions): Update.
7725 2017-08-03 Tom Tromey <tom@tromey.com>
7727 * cli/cli-cmds.c (find_and_open_script): Change return type.
7728 Remove "streamp" and "full_path" parameters.
7729 (source_script_with_search): Update.
7730 * auto-load.c (source_script_file): Update.
7731 * cli/cli-cmds.h (find_and_open_script): Change type.
7732 (open_script): New struct.
7734 2017-08-03 Tom Tromey <tom@tromey.com>
7736 * xml-support.c (xml_fetch_content_from_file): Update.
7737 * ui-file.c (stdio_file::open): Update.
7738 * tracefile-tfile.c (tfile_start): Update.
7739 * remote.c (remote_file_put, remote_file_get): Update.
7740 * nat/linux-procfs.c (linux_proc_get_int)
7741 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
7742 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
7743 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
7744 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7745 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
7746 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
7747 * linux-nat.c (linux_proc_pending_signals): Update.
7748 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
7749 (file_closer): Remove.
7750 * compile/compile.c (compile_to_object): Update.
7751 * common/filestuff.h (struct gdb_file_deleter): New.
7752 (gdb_file_up): New typedef.
7753 (gdb_fopen_cloexec): Change return type.
7754 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
7755 * cli/cli-dump.c (fopen_with_cleanup): Remove.
7756 (dump_binary_file, restore_binary_file): Update.
7757 * auto-load.c (auto_load_objfile_script_1): Update.
7759 2017-08-03 Tom Tromey <tom@tromey.com>
7761 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
7762 (info_static_tracepoint_markers_command): Likewise.
7763 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
7764 * skip.c (skip_info): Use ui_out_emit_table.
7765 * progspace.c (print_program_space): Use ui_out_emit_table.
7766 * osdata.c (info_osdata): Use ui_out_emit_table.
7767 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
7769 * linux-thread-db.c (info_auto_load_libthread_db): Use
7771 * inferior.c (print_inferior): Use ui_out_emit_table.
7772 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
7773 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
7774 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
7775 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
7776 * ui-out.h (class ui_out_emit_table): New.
7778 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
7780 * mips-tdep.c (mips_fpu_type_str): New function.
7781 (mips_dump_tdep): Call it.
7783 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
7785 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
7788 2017-07-31 Xavier Roirand <roirand@adacore.com>
7790 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7792 2017-07-27 Xavier Roirand <roirand@adacore.com>
7794 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
7796 2017-07-26 Yao Qi <yao.qi@linaro.org>
7798 * cli/cli-cmds.c (maintenancechecklist): New variable.
7799 * gdbcmd.h (maintenancechecklist): Declare it.
7800 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
7801 Call i386_linux_read_description with different masks.
7802 * maint.c (maintenance_check_command): New function.
7803 (_initialize_maint_cmds): Call add_prefix_cmd.
7804 * target-descriptions.c (tdesc_reg): override operator != and ==.
7805 (tdesc_type): Likewise.
7806 (tdesc_feature): Likewise.
7807 (target_desc): Likewise.
7808 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
7809 (maintenance_check_xml_descriptions): New function.
7810 (_initialize_target_descriptions) Add command "xml-descriptions".
7811 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
7813 2017-07-26 Yao Qi <yao.qi@linaro.org>
7815 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
7816 Include features/i386/32bit-*.c.
7817 (i386_linux_read_description): Generate target description if it
7819 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
7821 * features/i386/32bit-linux.c: Re-generated.
7822 * features/i386/32bit-sse.c: Likewise.
7823 * target-descriptions.c (print_c_feature::visit): Print code to
7824 set register number if needed.
7825 (print_c_feature) <m_next_regnum>: New field.
7827 2017-07-26 Yao Qi <yao.qi@linaro.org>
7829 * features/Makefile (CFILES): Rename with TDESC_CFILES.
7830 (FEATURE_XMLFILES): New.
7831 (FEATURE_CFILES): New.
7833 (clean-cfiles): Remove generated c files.
7834 * features/i386/32bit-avx.c: Generated.
7835 * features/i386/32bit-avx512.c: Generated.
7836 * features/i386/32bit-core.c: Generated.
7837 * features/i386/32bit-linux.c: Generated.
7838 * features/i386/32bit-mpx.c: Generated.
7839 * features/i386/32bit-pkeys.c: Generated.
7840 * features/i386/32bit-sse.c: Generated.
7841 * target-descriptions.c: Include algorithm.
7842 (tdesc_element_visitor): Add method visit_end.
7843 (print_c_tdesc): Implement visit_end.
7844 (print_c_tdesc:: m_filename_after_features): Move it to
7846 (print_c_feature): New class.
7847 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
7848 name starts with "i386/32bit-".
7850 2017-07-26 Yao Qi <yao.qi@linaro.org>
7852 * target-descriptions.c (tdesc_element_visitor): New class.
7853 (tdesc_element): New class.
7854 (tdesc_reg): Inherit from tdesc_element.
7855 (tdesc_reg::accept): New function.
7856 (tdesc_type): Inherit from tdesc_element.
7857 (tdesc_type::accept): New function.
7858 (tdesc_feature): Inherit from tdesc_element.
7859 (tdesc_feature::accept): New function.
7860 (target_desc): Inherit from tdesc_element.
7861 (target_desc::target_desc): New.
7862 (target_desc::~target_desc): New.
7863 (target_desc::accept): New.
7864 (allocate_target_description): Use new.
7865 (free_target_description): Use delete.
7866 (print_c_tdesc): New class.
7867 (maint_print_c_tdesc_cmd): Adjust.
7869 * features/aarch64.c: Re-generated.
7870 * features/arc-arcompact.c: Re-generated.
7871 * features/arc-v2.c: Re-generated.
7872 * features/arm/arm-with-iwmmxt.c: Re-generated.
7873 * features/arm/arm-with-m.c: Re-generated.
7874 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
7875 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
7876 * features/arm/arm-with-neon.c: Re-generated.
7877 * features/arm/arm-with-vfpv2.c: Re-generated.
7878 * features/arm/arm-with-vfpv3.c: Re-generated.
7879 * features/i386/amd64-avx-avx512.c: Re-generated.
7880 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7881 * features/i386/amd64-avx.c: Re-generated.
7882 * features/i386/amd64-avx-linux.c: Re-generated.
7883 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
7884 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7885 * features/i386/amd64-avx-mpx.c: Re-generated.
7886 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
7887 * features/i386/amd64.c: Re-generated.
7888 * features/i386/amd64-linux.c: Re-generated.
7889 * features/i386/amd64-mpx.c: Re-generated.
7890 * features/i386/amd64-mpx-linux.c: Re-generated.
7891 * features/i386/i386-avx-avx512.c: Re-generated.
7892 * features/i386/i386-avx-avx512-linux.c: Re-generated.
7893 * features/i386/i386-avx.c: Re-generated.
7894 * features/i386/i386-avx-linux.c: Re-generated.
7895 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
7896 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
7897 * features/i386/i386-avx-mpx.c: Re-generated.
7898 * features/i386/i386-avx-mpx-linux.c: Re-generated.
7899 * features/i386/i386.c: Re-generated.
7900 * features/i386/i386-linux.c: Re-generated.
7901 * features/i386/i386-mmx.c: Re-generated.
7902 * features/i386/i386-mmx-linux.c: Re-generated.
7903 * features/i386/i386-mpx.c: Re-generated.
7904 * features/i386/i386-mpx-linux.c: Re-generated.
7905 * features/i386/x32-avx-avx512.c: Re-generated.
7906 * features/i386/x32-avx-avx512-linux.c: Re-generated.
7907 * features/i386/x32-avx.c: Re-generated.
7908 * features/i386/x32-avx-linux.c: Re-generated.
7909 * features/i386/x32.c: Re-generated.
7910 * features/i386/x32-linux.c: Re-generated.
7911 * features/microblaze.c: Re-generated.
7912 * features/microblaze-with-stack-protect.c: Re-generated.
7913 * features/mips64-dsp-linux.c: Re-generated.
7914 * features/mips64-linux.c: Re-generated.
7915 * features/mips-dsp-linux.c: Re-generated.
7916 * features/mips-linux.c: Re-generated.
7917 * features/nds32.c: Re-generated.
7918 * features/nios2.c: Re-generated.
7919 * features/nios2-linux.c: Re-generated.
7920 * features/rs6000/powerpc-32.c: Re-generated.
7921 * features/rs6000/powerpc-32l.c: Re-generated.
7922 * features/rs6000/powerpc-403.c: Re-generated.
7923 * features/rs6000/powerpc-403gc.c : Re-generated.
7924 * features/rs6000/powerpc-405.c: Re-generated.
7925 * features/rs6000/powerpc-505.c: Re-generated.
7926 * features/rs6000/powerpc-601.c: Re-generated.
7927 * features/rs6000/powerpc-602.c: Re-generated.
7928 * features/rs6000/powerpc-603.c: Re-generated.
7929 * features/rs6000/powerpc-604.c: Re-generated.
7930 * features/rs6000/powerpc-64.c: Re-generated.
7931 * features/rs6000/powerpc-64l.c: Re-generated.
7932 * features/rs6000/powerpc-7400.c: Re-generated.
7933 * features/rs6000/powerpc-750.c: Re-generated.
7934 * features/rs6000/powerpc-860.c: Re-generated.
7935 * features/rs6000/powerpc-altivec32.c: Re-generated.
7936 * features/rs6000/powerpc-altivec32l.c: Re-generated.
7937 * features/rs6000/powerpc-altivec64.c: Re-generated.
7938 * features/rs6000/powerpc-altivec64l.c: Re-generated.
7939 * features/rs6000/powerpc-cell32l.c: Re-generated.
7940 * features/rs6000/powerpc-cell64l.c: Re-generated.
7941 * features/rs6000/powerpc-e500.c: Re-generated.
7942 * features/rs6000/powerpc-e500l.c: Re-generated.
7943 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
7944 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
7945 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
7946 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
7947 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
7948 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
7949 * features/rs6000/powerpc-vsx32.c: Re-generated.
7950 * features/rs6000/powerpc-vsx32l.c: Re-generated.
7951 * features/rs6000/powerpc-vsx64.c: Re-generated.
7952 * features/rs6000/powerpc-vsx64l.c: Re-generated.
7953 * features/rs6000/rs6000.c: Re-generated.
7954 * features/s390-linux32.c: Re-generated.
7955 * features/s390-linux32v1.c: Re-generated.
7956 * features/s390-linux32v2.c: Re-generated.
7957 * features/s390-linux64.c: Re-generated.
7958 * features/s390-linux64v1.c: Re-generated.
7959 * features/s390-linux64v2.c: Re-generated.
7960 * features/s390-te-linux64.c: Re-generated.
7961 * features/s390-tevx-linux64.c: Re-generated.
7962 * features/s390-vx-linux64.c: Re-generated.
7963 * features/s390x-linux64.c: Re-generated.
7964 * features/s390x-linux64v1.c: Re-generated.
7965 * features/s390x-linux64v2.c: Re-generated.
7966 * features/s390x-te-linux64.c: Re-generated.
7967 * features/s390x-tevx-linux64.c: Re-generated.
7968 * features/s390x-vx-linux64.c: Re-generated.
7969 * features/sparc/sparc32-solaris.c: Re-generated.
7970 * features/sparc/sparc64-solaris.c: Re-generated.
7971 * features/tic6x-c62x.c: Re-generated.
7972 * features/tic6x-c62x-linux.c: Re-generated.
7973 * features/tic6x-c64x.c: Re-generated.
7974 * features/tic6x-c64x-linux.c: Re-generated.
7975 * features/tic6x-c64xp.c: Re-generated.
7976 * features/tic6x-c64xp-linux.c: Re-generated.
7978 2017-07-26 Yao Qi <yao.qi@linaro.org>
7980 * i386-linux-tdep.c (i386_linux_read_description): New function.
7981 (i386_linux_core_read_description): Call
7982 i386_linux_read_description.
7983 * i386-linux-tdep.h (i386_linux_read_description): Declare.
7984 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
7985 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
7986 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
7987 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
7988 * x86-linux-nat.c (x86_linux_read_description): Call
7989 i386_linux_read_description.
7991 2017-07-26 Yao Qi <yao.qi@linaro.org>
7994 * features/Makefile (%.c: %.xml): Pass the xml file name to
7995 command "maint print c-tdesc".
7996 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
7999 2017-07-26 Yao Qi <yao.qi@linaro.org>
8001 * target-descriptions.c (target_desc): Add ctor and dtor. Do
8002 in-class initialization.
8003 (tdesc_create_feature): Call new instead of XCNEW.
8004 (free_target_description): Ue delete.
8006 2017-07-25 John Baldwin <jhb@FreeBSD.org>
8008 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
8010 2017-07-25 Yao Qi <yao.qi@linaro.org>
8012 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
8014 (amd64_x32_init_abi): Likewise.
8015 * amd64-tdep.h (amd64_init_abi): Update declaration.
8016 (amd64_x32_init_abi): Likewise.
8018 2017-07-25 Yao Qi <yao.qi@linaro.org>
8021 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
8022 condition for FPSCR.
8023 (arm_linux_store_inferior_registers): Likewise.
8025 2017-07-22 Tom Tromey <tom@tromey.com>
8027 * break-catch-syscall.c (struct catch_syscall_inferior_data)
8028 <syscalls_counts>: Now a std::vector.
8029 (get_catch_syscall_inferior_data): Use "new".
8030 (catch_syscall_inferior_data_cleanup): Use "delete".
8031 (insert_catch_syscall, remove_catch_syscall)
8032 (clear_syscall_counts): Update.
8034 2017-07-22 Tom Tromey <tom@tromey.com>
8036 * break-catch-syscall.c (syscall_catchpoint)
8037 <syscalls_to_be_caught>: Now a std::vector<int>
8038 (~syscall_catchpoint): Remove.
8039 (insert_catch_syscall, remove_catch_syscall)
8040 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
8041 (print_mention_catch_syscall, print_recreate_catch_syscall):
8043 (create_syscall_event_catchpoint): Change type of "filter"
8045 (catch_syscall_split_args): Return a std::vector.
8046 (catch_syscall_command_1, catching_syscall_number_1): Update.
8048 2017-07-22 Tom Tromey <tom@tromey.com>
8050 * break-catch-throw.c (struct exception_catchpoint)
8051 <exception_rx>: Now a std::string.
8052 (~exception_catchpoint): Remove.
8053 (print_one_detail_exception_catchpoint): Update.
8054 (handle_gnu_v3_exceptions): Change type of except_rx.
8055 (extract_exception_regexp): Return a std::string.
8056 (catch_exception_command_1): Update.
8058 2017-07-22 Tom Tromey <tom@tromey.com>
8060 * break-catch-sig.c (gdb_signal_type): Remove typedef.
8061 (struct signal_catchpoint) <signals_to_be_caught>: Now a
8063 <catch_all>: Now a bool.
8064 (~signal_catchpoint): Remove.
8065 (signal_catchpoint_insert_location)
8066 (signal_catchpoint_remove_location)
8067 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
8068 (signal_catchpoint_print_mention)
8069 (signal_catchpoint_print_recreate)
8070 (signal_catchpoint_explains_signal): Update.
8071 (create_signal_catchpoint): Change type of "filter" and
8073 (catch_signal_split_args): Return a std::vector. Change type of
8075 (catch_signal_command): Update.
8077 2017-07-20 Pedro Alves <palves@redhat.com>
8079 * ada-lang.c (ada_language_defn): Make extern.
8080 (_initialize_ada_language): Remove add_language call.
8081 * c-lang.c (c_language_defn, cplus_language_defn)
8082 (asm_language_defn, minimal_language_defn): Make extern.
8083 (_initialize_c_language): Delete.
8084 * completer.c (compare_cstrings): Delete, moved to utils.h.
8085 * d-lang.c (d_language_defn): Make extern.
8086 (_initialize_d_language): Remove add_language calls.
8087 * defs.h (enum language): Add comment.
8088 * f-lang.c (f_language_defn): Make extern.
8089 (_initialize_f_language): Remove add_language call.
8090 * go-lang.c (go_language_defn): Make extern.
8091 (_initialize_go_language): Remove add_language call.
8092 * language.c: Include <algorithm>.
8093 (languages): Redefine as const array.
8094 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
8095 (set_language_command): Handle "local". Use for-range loop.
8096 (set_language): Remove loop.
8097 (language_enum): Rewrite.
8098 (language_def, language_str): Remove loops.
8099 (add_language): Delete.
8100 (add_set_language_command): New, based on add_languages.
8101 (skip_language_trampoline): Adjust.
8102 (local_language_defn): Delete.
8103 (language_gdbarch_post_init): Adjust.
8104 (_initialize_language): Remove add_language calls. Call
8105 add_set_language_command.
8106 * language.h (add_language): Delete.
8107 (auto_language_defn)
8108 (unknown_language_defn, minimal_language_defn, ada_language_defn)
8109 (asm_language_defn, c_language_defn, cplus_language_defn)
8110 (d_language_defn, f_language_defn, go_language_defn)
8111 (m2_language_defn, objc_language_defn, opencl_language_defn)
8112 (pascal_language_defn, rust_language_defn): Declare.
8113 * m2-lang.c (m2_language_defn): Make extern.
8114 (_initialize_m2_language): Remove add_language call.
8115 * objc-lang.c (objc_language_defn): Make extern.
8116 (_initialize_objc_language): Remove add_language call.
8117 * opencl-lang.c (opencl_language_defn): Make extern.
8118 (_initialize_opencl_language): Remove add_language call.
8119 * p-lang.c (pascal_language_defn): Make extern.
8120 (_initialize_pascal_language): Delete.
8121 * rust-lang.c (rust_language_defn): Make extern.
8122 (_initialize_rust_language): Delete.
8123 * utils.h (compare_cstrings): New static inline function.
8125 2017-07-20 Pedro Alves <palves@redhat.com>
8127 * ada-lang.c (ada_to_fixed_type_1): Adjust.
8128 (get_var_value): Constify parameters.
8129 (get_int_var_value): Change prototype.
8130 (to_fixed_range_type): Adjust.
8131 * ada-lang.h (get_int_var_value): Change prototype.
8133 2017-07-20 Pedro Alves <palves@redhat.com>
8135 * dwarf2read.c (dw2_lookup_symbol): Use
8136 SYMBOL_MATCHES_SEARCH_NAME.
8137 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
8139 2017-07-20 Pedro Alves <palves@redhat.com>
8141 * block.c (block_iter_name_step, block_iter_name_first)
8142 (block_iter_name_next): Delete.
8143 (block_lookup_symbol_primary): Adjust to use
8144 dict_iter_match_first/dict_iter_match_next.
8145 * block.h (block_iter_name_first, block_iter_name_next): Delete
8147 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
8148 dict_iter_match_first/dict_iter_match_next.
8150 2017-07-20 Pedro Alves <palves@redhat.com>
8152 * cp-support.c (cp_find_first_component_aux): Add missing case for
8155 2017-07-18 David Blaikie <dblaikie@gmail.com>
8157 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
8158 of dwo_cu's dwo_file.
8160 2017-07-18 Yao Qi <yao.qi@linaro.org>
8162 * remote.c (store_registers_using_G): Remove one line comment.
8164 2017-07-18 Yao Qi <yao.qi@linaro.org>
8166 * regcache.c (regcache_cpy): Simplify it.
8167 (regcache::cpy_no_passthrough): Remove it.
8168 * regcache.h (cpy_no_passthrough): Remove it.
8169 (regcache_dup, regcache_cpy): Update comments.
8171 2017-07-18 Pedro Alves <palves@redhat.com>
8173 * remote-sim.c (sim_command_completer): Adjust to work with a
8174 completion_tracker instead of a VEC.
8176 2017-07-17 Pedro Alves <palves@redhat.com>
8178 * completer.c (complete_source_filenames): New function.
8179 (complete_address_and_linespec_locations): New function.
8180 (location_completer): Use complete_address_and_linespec_locations.
8181 (completion_tracker::build_completion_result): Honor the tracker's
8182 request to suppress append.
8183 * completer.h (completion_tracker::suppress_append_ws)
8184 (completion_tracker::set_suppress_append_ws): New methods.
8185 (completion_tracker::m_suppress_append_ws): New field.
8186 (complete_source_filenames): New declaration.
8187 * linespec.c (linespec_complete_what): New.
8188 (struct ls_parser) <complete_what, completion_word,
8189 completion_quote_char, completion_quote_end, completion_tracker>:
8191 (string_find_incomplete_keyword_at_end): New.
8192 (linespec_lexer_lex_string): Record quote char. If in completion
8194 (linespec_lexer_consume_token): Advance the completion word point.
8195 (linespec_lexer_peek_token): Save/restore completion info.
8196 (save_stream_and_consume_token): New.
8197 (set_completion_after_number): New.
8198 (linespec_parse_basic): Set what to complete next depending on
8199 token. Handle function and label completions specially.
8200 (parse_linespec): Disable objc shortcut in completion mode. Set
8201 what to complete next depending on token type. Skip keyword if in
8203 (complete_linespec_component, linespec_complete): New.
8204 * linespec.h (linespec_complete): Declare.
8206 2017-07-17 Pedro Alves <palves@redhat.com>
8208 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
8209 Handle 'operator<' / 'operator<<'.
8211 2017-07-17 Pedro Alves <palves@redhat.com>
8213 * completer.c (collect_explicit_location_matches): Handle
8215 (convert_explicit_location_to_linespec): New, factored out from
8217 (convert_explicit_location_to_sals): ... this.
8218 (complete_label): New.
8219 (linespec_complete_label, find_label_symbols_in_block): New.
8220 (find_label_symbols): Add completion_mode parameter and adjust to
8221 call find_label_symbols_in_block.
8222 * linespec.h (linespec_complete_label): Declare.
8224 2017-07-17 Pedro Alves <palves@redhat.com>
8226 * ada-lang.c (ada_collect_symbol_completion_matches): Add
8227 complete_symbol_mode parameter.
8228 * cli/cli-cmds.c (complete_command): Get the completion result out
8229 of the handle_brkchars tracker if used a custom word point.
8230 * completer.c: Include "linespec.h".
8231 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
8232 (advance_to_expression_complete_word_point): New.
8233 (completion_tracker::completes_to_completion_word): New.
8234 (complete_files_symbols): Pass down
8235 complete_symbol_mode::EXPRESSION.
8236 (explicit_options, probe_options): New.
8237 (collect_explicit_location_matches): Complete on the
8238 explictit_loc->foo instead of word. Use
8239 linespec_complete_function. Handle MATCH_LINE. Handle offering
8240 keyword and options completions.
8241 (backup_text_ptr): Delete.
8242 (skip_keyword): New.
8243 (complete_explicit_location): Remove 'word' parameter. Add
8244 language, quoted_arg_start and quoted_arg_end parameters.
8245 Rewrite, parsing left to right.
8246 (location_completer): Rewrite.
8247 (location_completer_handle_brkchars): New function.
8248 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
8249 (enum complete_line_internal_reason): Adjust comments.
8250 (completion_tracker::discard_completions): New.
8251 (completer_handle_brkchars_func_for_completer): Handle
8253 (gdb_custom_word_point_brkchars)
8254 (gdb_org_rl_basic_quote_characters): New.
8255 (gdb_completion_word_break_characters_throw)
8256 (completion_find_completion_word): Handle trackers that use a
8258 (completion_tracker::advance_custom_word_point_by): New.
8259 (completion_tracker::build_completion_result): Don't rely on
8260 readline appending the quote char.
8261 (gdb_rl_attempted_completion_function_throw): Handle trackers that
8262 use a custom word point.
8263 (gdb_rl_attempted_completion_function): Restore
8264 rl_basic_quote_characters.
8265 * completer.h (class completion_tracker): Extend intro comment.
8266 (completion_tracker::set_quote_char)
8267 (completion_tracker::quote_char)
8268 (completion_tracker::set_use_custom_word_point)
8269 (completion_tracker::use_custom_word_point)
8270 (completion_tracker::custom_word_point)
8271 (completion_tracker::set_custom_word_point)
8272 (completion_tracker::advance_custom_word_point_by)
8273 (completion_tracker::completes_to_completion_word)
8274 (completion_tracker::discard_completions): New methods.
8275 (completion_tracker::m_quote_char)
8276 (completion_tracker::m_use_custom_word_point)
8277 (completion_tracker::m_custom_word_point): New fields.
8278 (advance_to_expression_complete_word_point): Declare.
8279 * f-lang.c (f_collect_symbol_completion_matches): Add
8280 complete_symbol_mode parameter.
8281 * language.h (struct language_defn)
8282 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
8284 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
8285 (linespec_complete_function): New function.
8286 (linespec_lexer_lex_keyword): Adjust.
8287 * linespec.h (linespec_keywords, linespec_complete_function): New
8289 * location.c (find_end_quote): New function.
8290 (explicit_location_lex_one): Add explicit_completion_info
8291 parameter. Save quoting info. Don't throw if being called for
8292 completion. Don't handle Ada operators here.
8293 (is_cp_operator, skip_op_false_positives, first_of)
8294 (explicit_location_lex_one_function): New function.
8295 (string_to_explicit_location): Replace 'dont_throw' parameter with
8296 an explicit_completion_info pointer parameter. Handle it. Don't
8297 use explicit_location_lex_one to lex function names. Use
8298 explicit_location_lex_one_function instead.
8299 * location.h (struct explicit_completion_info): New.
8300 (string_to_explicit_location): Replace 'dont_throw' parameter with
8301 an explicit_completion_info pointer parameter.
8302 * symtab.c (default_collect_symbol_completion_matches_break_on):
8303 Add complete_symbol_mode parameter. Handle LINESPEC mode.
8304 (default_collect_symbol_completion_matches)
8305 (collect_symbol_completion_matches): Add complete_symbol_mode
8307 (collect_symbol_completion_matches_type): Pass down
8308 complete_symbol_mode::EXPRESSION.
8309 (collect_file_symbol_completion_matches): Add complete_symbol_mode
8310 parameter. Handle LINESPEC mode.
8311 * symtab.h (complete_symbol_mode): New.
8312 (default_collect_symbol_completion_matches_break_on)
8313 (default_collect_symbol_completion_matches)
8314 (collect_symbol_completion_matches)
8315 (collect_file_symbol_completion_matches): Add complete_symbol_mode
8318 2017-07-17 Pedro Alves <palves@redhat.com>
8320 * utils.c (enum class strncmp_iw_mode): New.
8321 (strcmp_iw): Rename to ...
8322 (strncmp_iw_with_mode): ... this. Add string2_len and mode
8323 parameters. Handle them.
8325 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
8326 * utils.h (strncmp_iw): Declare.
8327 (strcmp_iw): Move describing comments here.
8329 2017-07-17 Pedro Alves <palves@redhat.com>
8331 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
8333 * c-typeprint.c (is_type_conversion_operator): Use
8335 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
8336 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
8338 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
8339 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
8340 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
8341 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
8343 * location.c: Include "cp-support.h".
8344 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
8346 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
8349 2017-07-17 Pedro Alves <palves@redhat.com>
8351 * cli/cli-cmds.c (complete_command): Use a completion tracker
8352 along with completion_find_completion_word for handle_brkchars
8354 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
8355 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
8356 (struct gdb_rl_completion_word_info): New.
8357 (gdb_rl_find_completion_word): New.
8358 (completion_find_completion_word): New.
8359 * completer.h (completion_find_completion_word): Declare.
8361 2017-07-17 Pedro Alves <palves@redhat.com>
8363 * ada-lang.c (symbol_completion_match): Adjust comments.
8364 (symbol_completion_add): Replace vector parameter with
8365 completion_tracker parameter. Use it.
8366 (ada_make_symbol_completion_list): Rename to...
8367 (ada_collect_symbol_completion_matches): ... this. Add
8368 completion_tracker parameter and use it.
8369 (ada_language_defn): Adjust.
8370 * break-catch-syscall.c (catch_syscall_completer): Adjust
8371 prototype and work with completion_tracker instead of VEC.
8372 * breakpoint.c (condition_completer): Adjust prototype and work
8373 with completion_tracker instead of VEC.
8374 * c-lang.c (c_language_defn, cplus_language_defn)
8375 (asm_language_defn, minimal_language_defn): Adjust to renames.
8376 * cli/cli-cmds.c (complete_command): Rework using
8377 completion_tracker. Catch exceptions when completing.
8378 * cli/cli-decode.c (integer_unlimited_completer)
8379 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
8380 with completion_tracker instead of VEC.
8381 * command.h (struct completion_tracker): Forward declare.
8382 (completer_ftype, completer_handle_brkchars_ftype): Change
8384 (complete_on_cmdlist, complete_on_enum): Adjust.
8385 * completer.c: Include <algorithm>.
8386 (struct gdb_completer_state): New.
8387 (current_completion): New global.
8388 (readline_line_completion_function): Delete.
8389 (noop_completer, filename_completer)
8390 (filename_completer_handle_brkchars, complete_files_symbols)
8391 (linespec_location_completer): Adjust to work with a
8392 completion_tracker instead of a VEC.
8393 (string_or_empty): New.
8394 (collect_explicit_location_matches): Adjust to work with a
8395 completion_tracker instead of a VEC.
8396 (explicit_location_completer): Rename to ...
8397 (complete_explicit_location): ... this and adjust to work with a
8398 completion_tracker instead of a VEC.
8399 (location_completer): Adjust to work with a completion_tracker
8401 (add_struct_fields): Adjust to work with a completion_list instead
8403 (expression_completer): Rename to ...
8404 (complete_expression): ... this and adjust to work with a
8405 completion_tracker instead of a VEC. Use complete_files_symbols.
8406 (expression_completer): Reimplement on top of complete_expression.
8407 (symbol_completer): Adjust to work with a completion_tracker
8409 (enum complete_line_internal_reason): Add describing comments.
8410 (complete_line_internal_normal_command): Adjust to work with a
8411 completion_tracker instead of a VEC.
8412 (complete_line_internal): Rename to ...
8413 (complete_line_internal_1): ... this and adjust to work with a
8414 completion_tracker instead of a VEC. Assert TEXT is NULL in the
8415 handle_brkchars phase.
8416 (new_completion_tracker): Delete.
8417 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
8418 complete_line_internal_1.
8419 (free_completion_tracker): Delete.
8420 (INITIAL_COMPLETION_HTAB_SIZE): New.
8421 (completion_tracker::completion_tracker)
8422 (completion_tracker::~completion_tracker): New.
8423 (maybe_add_completion): Delete.
8424 (completion_tracker::maybe_add_completion)
8425 (completion_tracker::add_completion)
8426 (completion_tracker::add_completions): New.
8427 (throw_max_completions_reached_error): Delete.
8428 (complete_line): Adjust to work with a completion_tracker instead
8429 of a VEC. Don't create a completion_tracker_t or check for max
8431 (command_completer, command_completer_handle_brkchars)
8432 (signal_completer, reg_or_group_completer_1)
8433 (reg_or_group_completer, default_completer_handle_brkchars):
8434 Adjust to work with a completion_tracker.
8435 (gdb_completion_word_break_characters_throw): New.
8436 (gdb_completion_word_break_characters): Reimplement.
8437 (line_completion_function): Delete.
8438 (completion_tracker::recompute_lowest_common_denominator)
8439 (expand_preserving_ws)
8440 (completion_tracker::build_completion_result)
8441 (completion_result::completion_result)
8442 (completion_result::completion_result)
8443 (completion_result::~completion_result)
8444 (completion_result::completion_result)
8445 (completion_result::release_match_list, compare_cstrings)
8446 (completion_result::sort_match_list)
8447 (completion_result::reset_match_list)
8448 (gdb_rl_attempted_completion_function_throw)
8449 (gdb_rl_attempted_completion_function): New.
8450 * completer.h (completion_list, struct completion_result)
8451 (class completion_tracker): New.
8452 (complete_line): Add completion_tracker parameter.
8453 (readline_line_completion_function): Delete.
8454 (gdb_rl_attempted_completion_function): New.
8455 (noop_completer, filename_completer, expression_completer)
8456 (location_completer, symbol_completer, command_completer)
8457 (signal_completer, reg_or_group_completer): Update prototypes.
8458 (completion_tracker_t, new_completion_tracker)
8459 (make_cleanup_free_completion_tracker): Delete.
8460 (enum maybe_add_completion_enum): Delete.
8461 (maybe_add_completion): Delete.
8462 (throw_max_completions_reached_error): Delete.
8463 * corefile.c (complete_set_gnutarget): Adjust to work with a
8464 completion_tracker instead of a VEC.
8465 * cp-abi.c (cp_abi_completer): Adjust to work with a
8466 completion_tracker instead of a VEC.
8467 * d-lang.c (d_language_defn): Adjust.
8468 * disasm.c (disassembler_options_completer): Adjust to work with a
8469 completion_tracker instead of a VEC.
8470 * f-lang.c (f_make_symbol_completion_list): Rename to ...
8471 (f_collect_symbol_completion_matches): ... this. Adjust to work
8472 with a completion_tracker instead of a VEC.
8473 (f_language_defn): Adjust.
8474 * go-lang.c (go_language_defn): Adjust.
8475 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
8476 Adjust to work with a completion_tracker instead of a VEC.
8477 * infrun.c (handle_completer): Likewise.
8478 * interps.c (interpreter_completer): Likewise.
8479 * interps.h (interpreter_completer): Likewise.
8480 * language.c (unknown_language_defn, auto_language_defn)
8481 (local_language_defn): Adjust.
8482 * language.h (language_defn::la_make_symbol_completion_list):
8484 (language_defn::la_collect_symbol_completion_matches): ... this
8485 and adjust to work with a completion_tracker instead of a VEC.
8486 * m2-lang.c (m2_language_defn): Adjust.
8487 * objc-lang.c (objc_language_defn): Adjust.
8488 * opencl-lang.c (opencl_language_defn): Adjust.
8489 * p-lang.c (pascal_language_defn): Adjust.
8490 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
8491 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
8492 with a completion_tracker.
8493 * rust-lang.c (rust_language_defn): Adjust.
8494 * symtab.c (free_completion_list, do_free_completion_list)
8495 (return_val, completion_tracker): Delete.
8496 (completion_list_add_name, completion_list_add_symbol)
8497 (completion_list_add_msymbol, completion_list_objc_symbol)
8498 (completion_list_add_fields, add_symtab_completions): Add
8499 completion_tracker parameter and use it.
8500 (default_make_symbol_completion_list_break_on_1): Rename to...
8501 (default_collect_symbol_completion_matches_break_on): ... this.
8502 Add completion_tracker parameter and use it instead of allocating
8503 a completion tracker here.
8504 (default_make_symbol_completion_list_break_on): Delete old
8506 (default_make_symbol_completion_list): Delete.
8507 (default_collect_symbol_completion_matches): New.
8508 (make_symbol_completion_list): Delete.
8509 (collect_symbol_completion_matches): New.
8510 (make_symbol_completion_type): Rename to ...
8511 (collect_symbol_completion_matches_type): ... this. Add
8512 completion_tracker parameter and use it instead of VEC.
8513 (make_file_symbol_completion_list_1): Rename to...
8514 (collect_file_symbol_completion_matches): ... this. Add
8515 completion_tracker parameter and use it instead of VEC.
8516 (make_file_symbol_completion_list): Delete.
8517 (add_filename_to_list): Use completion_list instead of a VEC.
8518 (add_partial_filename_data::list): Now a completion_list.
8519 (make_source_files_completion_list): Work with a completion_list
8521 * symtab.h: Include "completer.h".
8522 (default_make_symbol_completion_list_break_on)
8523 (default_make_symbol_completion_list, make_symbol_completion_list)
8524 (make_symbol_completion_type, make_file_symbol_completion_list)
8525 (make_source_files_completion_list): Delete.
8526 (default_collect_symbol_completion_matches_break_on)
8527 (default_collect_symbol_completion_matches)
8528 (collect_symbol_completion_matches)
8529 (collect_symbol_completion_matches_type)
8530 (collect_file_symbol_completion_matches)
8531 (make_source_files_completion_list): New.
8532 * top.c (init_main): Don't install a rl_completion_entry_function
8533 hook. Install a rl_attempted_completion_function hook instead.
8534 * tui/tui-layout.c (layout_completer): Adjust to work with a
8536 * tui/tui-regs.c (tui_reggroup_completer):
8537 * tui/tui-win.c (window_name_completer, focus_completer)
8538 (winheight_completer): Adjust to work with a completion_tracker.
8539 * value.c: Include "completer.h".
8540 (complete_internalvar): Adjust to work with a completion_tracker.
8541 * value.h (complete_internalvar): Likewise.
8543 2017-07-17 Pedro Alves <palves@redhat.com>
8545 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
8547 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
8548 comments to completer_ftype's declaration.
8549 <completer_handle_brkchars>: Change type to
8550 completer_handle_brkchars_ftype.
8551 * command.h (completer_ftype): Add describing comment and give
8552 names to parameters.
8553 (completer_ftype_void): Rename to ...
8554 (completer_handle_brkchars_ftype) ... this. Add describing comment.
8555 (set_cmd_completer_handle_brkchars): Adjust.
8556 * completer.c (filename_completer_handle_brkchars): New function.
8557 (complete_line_internal_normal_command): New function, factored
8559 (complete_line_internal): ... here.
8560 (command_completer_handle_brkchars)
8561 (default_completer_handle_brkchars)
8562 (completer_handle_brkchars_func_for_completer): New functions.
8563 * completer.h (set_gdb_completion_word_break_characters): Delete
8565 (completer_handle_brkchars_func_for_completer): New declaration.
8566 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
8567 completer_handle_brkchars_func_for_completer.
8569 2017-07-17 Pedro Alves <palves@redhat.com>
8571 * completer.c (symbol_completer): New function, based on
8572 make_symbol_completion_list_fn.
8573 * completer.h (symbol_completer): New declaration.
8574 * guile/scm-cmd.c (cmdscm_completers): Adjust.
8575 * python/py-cmd.c (completers): Adjust.
8576 * symtab.c (make_symbol_completion_list_fn): Delete.
8577 * symtab.h (make_symbol_completion_list_fn): Delete.
8578 * cli/cli-decode.c (add_cmd): Adjust.
8580 2017-07-17 Pedro Alves <palves@redhat.com>
8582 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
8583 * dwarf2read.c: Include "filename-seen-cache.h".
8584 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
8585 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
8586 * filename-seen-cache.c: New file.
8587 * filename-seen-cache.h: New file.
8588 * symtab.c: Include "filename-seen-cache.h".
8589 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
8590 (create_filename_seen_cache, clear_filename_seen_cache)
8591 (delete_filename_seen_cache, filename_seen): Delete, parts moved
8592 to filename-seen-cache.h/filename-seen-cache.c.
8593 (output_source_filename, sources_info)
8594 (maybe_add_partial_symtab_filename)
8595 (make_source_files_completion_list): Adjust to use
8596 filename_seen_cache.
8598 2017-07-17 Pedro Alves <palves@redhat.com>
8600 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
8602 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
8603 dwarf2_debug_sections*)): New.
8604 (dwarf2_per_objfile::dwarf2_per_objfile(const
8605 dwarf2_per_objfile&)): Declare as deleted.
8606 (dwarf2_per_objfile::operator=): Declare as deleted.
8607 (dwarf2_per_objfile::dwarf2_per_objfile)
8608 (dwarf2_per_objfile::~dwarf2_per_objfile)
8609 (dwarf2_per_objfile::free_cached_comp_units): New.
8610 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
8611 ctor. Call dwarf2_per_objfile's ctor manually.
8612 (dwarf2_locate_sections): Deleted/refactored as ...
8613 (dwarf2_per_objfile::locate_sections): ... this new method.
8614 (free_cached_comp_units): Defer to
8615 dwarf2_per_objfile::free_cached_comp_units.
8616 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
8618 2017-07-14 Tom Tromey <tom@tromey.com>
8621 * rust-exp.y (convert_ast_to_expression): Add "want_type"
8623 <UNOP_SIZEOF>: Split into separate case.
8624 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
8626 2017-07-14 Tom Tromey <tom@tromey.com>
8629 * symtab.c (symbol_matches_domain): Add language_rust to special
8631 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
8632 treat LOC_TYPEDEF symbols as variables.
8634 2017-07-14 Pedro Alves <palves@redhat.com>
8636 * symtab.c (make_file_symbol_completion_list_1): Iterate over
8637 symtabs matching all symtabs with SRCFILE as file name instead of
8638 only considering the first hit, with lookup_symtab.
8640 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8642 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
8643 operator_name parameters.
8644 (gen_expr): Update function call.
8646 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8648 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
8650 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
8652 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
8653 parameter, use agent_expr::gdbarch instead, update function
8655 (locexpr_tracepoint_var_ref): Likewise.
8656 (loclist_tracepoint_var_ref): Likewise.
8657 * ax-gdb.c (gen_trace_static_fields): Likewise.
8658 (gen_traced_pop): Likewise.
8659 (gen_frame_args_address): Likewise.
8660 (gen_frame_locals_address): Likewise.
8661 (gen_var_ref): Likewise.
8662 (gen_struct_ref_recursive): Likewise.
8663 (gen_static_field): Likewise.
8664 (gen_maybe_namespace_elt): Likewise.
8665 (gen_expr): Likewise.
8666 (gen_trace_for_var): Likewise.
8667 (gen_trace_for_expr): Likewise.
8668 (gen_trace_for_return_address): Likewise.
8670 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8672 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
8674 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
8676 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8678 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
8679 from ax, update calls.
8680 (gen_usual_arithmetic): Likewise.
8681 (gen_integral_promotions): Likewise.
8682 (gen_bitfield_ref): Likewise.
8683 (gen_primitive_field): Likewise.
8684 (gen_struct_ref_recursive): Likewise.
8685 (gen_struct_ref): Likewise.
8686 (gen_maybe_namespace_elt): Likewise.
8687 (gen_struct_elt_for_reference): Likewise.
8688 (gen_namespace_elt): Likewise.
8689 (gen_aggregate_elt_ref): Likewise.
8690 (gen_expr): Get gdbarch from ax, update calls.
8691 (gen_expr_binop_rest): Likewise.
8693 2017-07-13 Pedro Alves <palves@redhat.com>
8695 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
8697 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
8698 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
8699 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
8700 tdesc_amd64_linux as default tdesc. Get final tdesc from the
8702 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
8703 Get final tdesc from the tdep.
8704 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
8706 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
8707 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
8708 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
8709 Use it as default tdesc.
8710 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
8711 down to amd_init_abi. No longer handle fallback tdesc here.
8712 * amd64-tdep.h (tdesc_x32): Declare.
8713 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
8715 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
8718 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8720 * s390-linux-tdep.c (s390_process_record): Add support for
8721 instructions new in arch12.
8723 2017-07-11 John Baldwin <jhb@FreeBSD.org>
8725 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8726 PT_GETFSBASE and PT_GETGSBASE.
8727 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
8730 2017-07-11 John Baldwin <jhb@FreeBSD.org>
8732 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
8733 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
8734 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
8736 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
8737 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
8738 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
8739 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
8740 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
8741 * features/i386/amd64.xml: Add 64bit-segments.xml.
8742 * features/i386/amd64-avx-avx512.c: Regenerated.
8743 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
8744 * features/i386/amd64-avx-mpx.c: Regenerated.
8745 * features/i386/amd64-avx.c: Regenerated.
8746 * features/i386/amd64-mpx.c: Regenerated.
8747 * features/i386/amd64.c: Regenerated.
8748 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
8749 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8750 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
8751 * regformats/i386/amd64-avx.dat: Regenerated.
8752 * regformats/i386/amd64-mpx.dat: Regenerated.
8753 * regformats/i386/amd64.dat: Regenerated.
8755 2017-07-10 Yao Qi <yao.qi@linaro.org>
8757 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
8758 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
8760 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
8762 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
8764 * gnulib/aclocal.m4: Regenerate.
8765 * gnulib/config.in: Regenerate.
8766 * gnulib/configure: Regenerate.
8767 * gnulib/import/Makefile.am: Regenerate.
8768 * gnulib/import/Makefile.in: Regenerate.
8769 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
8770 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
8771 * gnulib/import/m4/environ.m4: New file.
8772 * gnulib/import/m4/setenv.m4: New file.
8773 * gnulib/import/setenv.c: New file.
8774 * gnulib/import/unsetenv.c: New file.
8776 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
8778 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
8779 address when op is DW_OP_addr.
8781 2017-07-09 Tom Tromey <tom@tromey.com>
8783 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
8784 check and apply to outer type.
8786 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8788 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
8789 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
8790 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
8791 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
8793 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8795 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
8797 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8799 * corelow.c (get_core_siginfo): Remove.
8800 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
8801 instead of get_core_siginfo.
8802 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
8803 * gdbarch.h: Re-generate.
8804 * gdbarch.c: Re-generate.
8805 * linux-tdep.c (linux_core_xfer_siginfo): New.
8806 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
8808 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8810 * corelow.c (thread_section_name): Move to ...
8811 * gdbcore.h (thread_section_name): ... here.
8813 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8815 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
8816 (struct siginfo32): New.
8817 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
8818 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
8819 via ptrace(PT_LWPINFO).
8821 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8823 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
8824 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
8825 (fbsd_get_siginfo_type): New.
8826 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
8827 (_initialize_fbsd_tdep): New.
8829 2017-07-06 David Blaikie <dblaikie@gmail.com>
8831 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
8832 a singular dwo_unit*) to support multiple CUs in the same way that
8833 multiple TUs are supported.
8834 (create_cus_hash_table): Replace create_dwo_cu with a function for
8835 parsing multiple CUs from a DWO file.
8836 (open_and_init_dwo_file): Use create_cus_hash_table rather than
8838 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
8839 htab_find, rather than comparing the signature to a singleton CU in
8842 2017-07-06 Pedro Alves <palves@redhat.com>
8844 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
8846 2017-07-04 Pedro Alves <palves@redhat.com>
8848 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
8849 * gdbtypes.h (TYPE_STATIC): Delete.
8850 (struct fn_field) <is_public, is_abstract, is_static, is_final,
8851 is_synchronized, is_native>: Delete.
8853 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
8854 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
8855 (TYPE_FN_FIELD_ABSTRACT): Delete.
8857 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
8859 * buffer.h (buffer_finish): Fix spelling mistakes.
8861 2017-07-01 Eli Zaretskii <eliz@gnu.org>
8863 * .dir-locals.el: Automatically switch to C-style comments in
8864 versions of Emacs that support the feature.
8866 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8867 Pedro Alves <palves@redhat.com>
8870 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
8871 (process_next_line): New variable 'inline_cmd'.
8872 Adjust 'if' clauses for "python", "compile" and "guile" to use
8873 'command_name_equals' and check for '!inline_cmd'.
8875 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8878 * cli/cli-script.c (command_name_equals_not_inline): New function.
8879 (process_next_line): Adjust 'if' clauses for "python", "compile"
8880 and "guile" to use command_name_equals_not_inline.
8882 2017-06-29 Pedro Alves <palves@redhat.com>
8884 * completer.c (expression_completer): Call
8885 linespec_location_completer instead of location_completer.
8887 2017-06-29 Pedro Alves <palves@redhat.com>
8889 * completer.c (expression_completer): Remove code that recomputes
8892 2017-06-29 Yao Qi <yao.qi@linaro.org>
8894 * regformats/regdat.sh: Generate code with
8895 "ifndef IN_PROCESS_AGENT".
8897 2017-06-28 Pedro Alves <palves@redhat.com>
8899 * command.h: Include "common/scoped_restore.h".
8901 2017-06-28 Yao Qi <yao.qi@linaro.org>
8903 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
8904 instead of obstack_grow.
8906 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
8909 * symfile.c (reread_symbols): Call objfiles_changed just before
8912 2017-06-27 Pedro Alves <palves@redhat.com>
8914 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
8915 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
8916 (completion_list_add_symbol, completion_list_add_msymbol):
8917 ... these new functions.
8918 (add_symtab_completions)
8919 (default_make_symbol_completion_list_break_on_1): Adjust.
8921 2017-06-27 Pedro Alves <palves@redhat.com>
8923 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
8924 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
8925 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
8927 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
8928 'storage_obstack' field an auto_obstack. In-class initialize all
8929 non-bitfield fields. Make minsyms_read bool.
8930 * symfile.c (read_symbols): Adjust.
8932 2017-06-27 Alan Hayward <alan.hayward@arm.com>
8934 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
8935 (gdbsim_store_register): Likewise.
8937 2017-06-27 Pedro Alves <palves@redhat.com>
8939 * c-exp.y (name_obstack): Now an auto_obstack.
8940 (yylex): Use auto_obstack::clear.
8941 (c_parse): Use auto_obstack::clear instead of reinitializing and
8942 freeing the obstack.
8943 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
8944 * d-exp.y (name_obstack): Now an auto_obstack.
8945 (yylex): Use auto_obstack::clear.
8946 (d_parse): Use auto_obstack::clear instead of reinitializing and
8947 freeing the obstack.
8948 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
8950 * dwarf2read.c (create_addrmap_from_index)
8951 (dwarf2_build_psymtabs_hard)
8952 (update_enumeration_type_from_children): Likewise.
8953 * gdb_obstack.h (auto_obstack): New type.
8954 * go-exp.y (name_obstack): Now an auto_obstack.
8955 (build_packaged_name): Use auto_obstack::clear.
8956 (go_parse): Use auto_obstack::clear instead of reinitializing and
8957 freeing the obstack.
8958 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
8960 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
8961 * rust-exp.y (work_obstack): Now an auto_obstack.
8962 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
8963 reinitializing and freeing the obstack.
8964 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
8965 (host_char_to_target): Use auto_obstack.
8966 * utils.h (make_cleanup_obstack_free): Delete declaration.
8967 * valprint.c (generic_emit_char, generic_printstr): Use
8970 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
8972 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
8974 (darwin_init_thread_list): Don't update dummy thread.
8975 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
8977 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8979 * record-full.c (netorder16): Remove.
8981 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8983 * common/diagnostics.h: Define macros for GCC.
8984 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
8985 * common/vec.h: Include diagnostics.h.
8986 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
8987 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
8990 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8992 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
8994 * ada-lex.l: Ignore deprecated register warnings.
8996 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8998 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
8999 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
9001 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
9003 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
9006 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
9008 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
9010 2017-06-23 Alan Hayward <alan.hayward@arm.com>
9012 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
9013 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
9014 (xtensa_register_read_masked): Likewise.
9016 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
9018 * common/environ.c (gdb_environ::unset): Update comment.
9020 2017-06-22 Alan Hayward <alan.hayward@arm.com>
9022 * python/py-unwind.c (pyuw_sniffer): Allocate space for
9025 2017-06-22 Alan Hayward <alan.hayward@arm.com>
9027 * record-full.c (record_full_exec_insn): Use byte_vector.
9029 2017-06-22 Yao Qi <yao.qi@linaro.org>
9031 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
9032 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
9034 2017-06-22 Alan Hayward <alan.hayward@arm.com>
9036 * remote.c (cached_reg): Move from here...
9037 * regcache.h (cached_reg): ...to here.
9038 * python/py-unwind.c (struct reg_info): Remove.
9039 (cached_frame_info): Use cached_reg_t.
9040 (pyuw_prev_register): Likewise.
9041 (pyuw_sniffer): Use cached_reg_t and allocate registers.
9042 (pyuw_dealloc_cache): Free all registers.
9044 2017-06-22 Pedro Alves <palves@redhat.com>
9045 Simon Marchi <simon.marchi@ericsson.com>
9047 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
9049 * common/diagnostics.h: New file.
9051 2017-06-22 Pedro Alves <palves@redhat.com>
9053 * common/agent.h: Add include guards.
9055 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
9057 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
9058 talk about addressable units instead of bytes.
9060 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
9062 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
9063 of '::const_iterator'.
9065 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
9067 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9068 'unittests/environ-selftests.c'.
9069 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
9070 * charset.c (find_charset_names): Declare object 'iconv_env'.
9071 Update code to use 'iconv_env' object. Remove call to
9073 * common/environ.c: Include <utility>.
9074 (make_environ): Delete function.
9075 (free_environ): Delete function.
9076 (gdb_environ::clear): New function.
9077 (gdb_environ::operator=): New function.
9078 (gdb_environ::get): Likewise.
9079 (environ_vector): Delete function.
9080 (set_in_environ): Delete function.
9081 (gdb_environ::set): New function.
9082 (unset_in_environ): Delete function.
9083 (gdb_environ::unset): New function.
9084 (gdb_environ::envp): Likewise.
9085 * common/environ.h: Include <vector>.
9086 (struct gdb_environ): Delete; transform into...
9087 (class gdb_environ): ... this class.
9088 (free_environ): Delete prototype.
9089 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
9090 environ_vector): Likewise.
9091 * infcmd.c (run_command_1): Update code to call
9092 'envp' from 'gdb_environ' class.
9093 (environment_info): Update code to call methods from 'gdb_environ'
9095 (unset_environment_command): Likewise.
9096 (path_info): Likewise.
9097 (path_command): Likewise.
9098 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
9099 (inferior::inferior): Initialize 'environment' using the host's
9101 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
9102 Include "environ.h".
9103 (class inferior) <environment>: Change type from 'struct
9104 gdb_environ' to 'gdb_environ'.
9105 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
9106 methods from 'gdb_environ' class.
9107 * solib.c (solib_find_1): Likewise
9108 * unittests/environ-selftests.c: New file.
9110 2017-06-20 Yao Qi <yao.qi@linaro.org>
9112 * features/i386/i386-linux.xml: Exchange the order of including
9113 32bit-linux.xml and 32bit-sse.xml.
9114 * features/i386/i386-linux.c: Regenerated.
9116 2017-06-20 Yao Qi <yao.qi@linaro.org>
9118 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
9119 Delete copy ctor and assignment operator.
9120 (tdesc_type): Likewise.
9121 (tdesc_feature): Likewise.
9122 (tdesc_free_reg): Remove.
9123 (tdesc_create_reg): Use new.
9124 (tdesc_free_type): Remove.
9125 (tdesc_create_vector): Use new.
9126 (tdesc_create_union): Likewise.
9127 (tdesc_create_flags): Likewise.
9128 (tdesc_create_enum): Likewise.
9129 (tdesc_free_feature): Delete.
9130 (free_target_description): Use delete.
9132 2017-06-19 John Baldwin <jhb@FreeBSD.org>
9134 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
9137 2017-06-19 Pedro Alves <palves@redhat.com>
9139 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
9140 after gdb::unlinker.
9142 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
9144 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
9145 gdb_environ to access an environment variable.
9147 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9149 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
9152 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9154 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
9156 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9158 * configure: Re-generate.
9159 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
9161 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9163 * configure: Re-generate.
9164 * warning.m4: Pass -Werror to compiler when checking for
9165 supported warning flags.
9167 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9169 * Makefile.in (COMPILE.pre): Add "-x c++".
9171 2017-06-16 Alan Hayward <alan.hayward@arm.com>
9172 Pedro Alves <palves@redhat.com>
9173 Yao Qi <yao.qi@linaro.org>
9175 * defs.h (RequireLongest): New.
9176 (extract_integer): Declare function template.
9177 (extract_signed_integer): Remove the declaration, but define it
9179 (extract_unsigned_integer): Likewise.
9180 (store_integer): Declare function template.
9181 (store_signed_integer): Remove the declaration, but define it
9183 (store_unsigned_integer): Likewise.
9184 * findvar.c (extract_integer): New function template.
9185 (extract_signed_integer): Remove.
9186 (extract_unsigned_integer): Remove.
9187 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
9189 (store_integer): New function template.
9190 (store_signed_integer): Remove.
9191 (store_unsigned_integer): Remove.
9192 (store_integer): Explicit instantiations.
9193 * regcache.c (regcache_raw_read_signed): Update.
9194 (regcache::raw_read): New function.
9195 (regcache::raw_read_signed): Remove.
9196 (regcache::raw_read_unsigned): Remove.
9197 (regcache_raw_read_unsigned): Update.
9198 (regcache_raw_write_unsigned): Update.
9199 (regcache::raw_write_signed): Remove.
9200 (regcache::raw_write): New function.
9201 (regcache_cooked_read_signed): Update.
9202 (regcache::raw_write_unsigned): Remove.
9203 (regcache::cooked_read_signed): Remove.
9204 (regcache_cooked_read_unsigned): Update.
9205 (regcache::cooked_read_unsigned): Remove.
9206 (regcache_cooked_write_signed): Update.
9207 (regcache_cooked_write_unsigned): Update.
9208 * regcache.h (regcache) <raw_read_signed>: Remove.
9209 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
9210 <raw_read, raw_write>: New.
9211 <cooked_read_signed, cooked_write_signed>: Remove.
9212 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
9213 <cooked_read, cooked_write>: New.
9214 * sh64-tdep.c (sh64_pseudo_register_read): Update.
9215 (sh64_pseudo_register_write): Update.
9217 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
9219 * arc-tdep.c (arc_disassembler_options): New variable.
9220 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
9221 of default_print_insn.
9222 (arc_delayed_print_insn): Set info->section when needed,
9223 use default_print_insn to retrieve a disassembler.
9225 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
9228 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
9229 to mention $SHELL and startup-with-shell.
9231 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
9233 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
9235 2017-06-14 Yao Qi <yao.qi@linaro.org>
9237 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
9238 default_print_insn instead of print_insn_aarch64.
9239 * arm-tdep.c (gdb_print_insn_arm): Call
9240 default_print_insn instead of print_insn_big_arm
9241 and print_insn_little_arm.
9242 * i386-tdep.c (i386_print_insn): Call default_print_insn
9243 instead of print_insn_i386.
9244 * ia64-tdep.c (ia64_print_insn): Call
9245 default_print_insn instead of print_insn_ia64.
9246 * mips-tdep.c (gdb_print_insn_mips): Call
9247 default_print_insn instead of print_insn_big_mips
9248 and print_insn_little_mips.
9249 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
9250 instead of print_insn_spu.
9252 2017-06-14 Pedro Alves <palves@redhat.com>
9254 * ada-lang.c: Include "common/byte-vector.h".
9255 (ada_value_primitive_packed_val): Use gdb::byte_vector.
9256 * charset.c (wchar_iterator::iterate): Resize the vector instead
9258 * common/byte-vector.h: Include "common/def-vector.h".
9259 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
9260 * cli/cli-dump.c: Include "common/byte-vector.h".
9261 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
9262 * common/byte-vector.h: New file.
9263 * common/def-vector.h: New file.
9264 * common/default-init-alloc.h: New file.
9265 * dwarf2loc.c: Include "common/byte-vector.h".
9266 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
9267 instead of reserving it.
9268 * dwarf2read.c: Include "common/byte-vector.h".
9269 (data_buf::m_vec): Now a gdb::byte_vector.
9270 * gdb_regex.c: Include "common/def-vector.h".
9271 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
9272 * mi/mi-main.c: Include "common/byte-vector.h".
9273 (mi_cmd_data_read_memory): Use gdb::byte_vector.
9274 * printcmd.c: Include "common/byte-vector.h".
9275 (print_scalar_formatted): Use gdb::byte_vector.
9276 * valprint.c: Include "common/byte-vector.h".
9277 (maybe_negate_by_bytes, print_decimal_chars): Use
9280 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9282 * darwin-nat.c: Include "nat/fork-inferior.h".
9284 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9286 * configure.nat: Factor out Darwin bits that are not
9287 architecture-specific. Add fork-inferior.o.
9289 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9291 * configure.nat: Factor out AIX bits that are not
9292 architecture-specific. Add fork-inferior.o.
9294 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9296 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
9297 (read_pieced_value, write_pieced_value): ...here. Reduce to
9298 wrappers that just call rw_pieced_value.
9300 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9302 * dwarf2loc.c (write_pieced_value): When writing the data for a
9303 memory piece, use write_memory_with_notification instead of
9306 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9308 * valops.c (read_value_memory): Change embedded_offset to
9309 represent a bit offset instead of a byte offset.
9310 * value.h (read_value_memory): Adjust comment.
9312 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9314 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
9315 dest_offset_bits and source_offset_bits.
9316 (write_pieced_value): Likewise.
9318 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9320 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
9321 given by DW_OP_bit_piece.
9322 (write_pieced_value): Likewise.
9324 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9326 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
9327 some other preparations to the places where sufficient information
9329 (write_pieced_value): Likewise.
9331 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9333 * dwarf2loc.c (bits_to_bytes): New function.
9334 (read_pieced_value): Fix offset calculations for register pieces
9335 on big-endian targets.
9336 (write_pieced_value): Likewise.
9338 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9340 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
9341 (write_pieced_value): Likewise.
9343 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9345 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
9346 transfer the source value's least significant bits, instead of its
9347 lowest-addressed ones. Rename type_len to max_offset.
9348 (read_pieced_value): Mirror above changes to write_pieced_value as
9351 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9353 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
9354 truncate full bytes from dest_offset_bits before using it as an
9355 offset into the buffer.
9357 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9359 * dwarf2loc.c (write_pieced_value): Include transfer size in
9362 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9364 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
9365 calculation of this_size.
9367 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9369 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
9370 when targeting a bit-field.
9371 (write_pieced_value): Likewise.
9373 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9375 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
9376 (allocate_piece_closure): Drop addr_size parameter.
9377 (dwarf2_evaluate_loc_desc_full): Adjust call to
9378 allocate_piece_closure.
9380 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9383 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
9384 the LSB end, independent of endianness.
9386 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9388 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
9391 2017-06-13 Yao Qi <yao.qi@linaro.org>
9393 * mips-linux-nat.c: Move include features/mips*-linux.c to
9395 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
9396 to mips-linux-tdep.c.
9397 * mips-linux-tdep.c: Include features/mips*-linux.c
9398 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
9400 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
9401 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
9402 (tdesc_mips64_dsp_linux): Declare.
9404 2017-06-12 Tom Tromey <tom@tromey.com>
9406 * valprint.h (val_print_type_code_int): Remove.
9407 * valprint.c (generic_val_print_int): Always call
9408 val_print_scalar_formatted.
9409 (val_print_type_code_int): Remove.
9410 * printcmd.c (print_scalar_formatted): Handle options->format==0.
9411 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
9412 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
9413 * ada-valprint.c (ada_val_print_num): Use
9414 val_print_scalar_formatted.
9416 2017-06-12 Tom Tromey <tom@tromey.com>
9418 * printcmd.c (print_scalar_formatted): Unify the two switches.
9419 Don't convert scalars to LONGEST.
9421 2017-06-12 Tom Tromey <tom@tromey.com>
9424 * valprint.h (print_decimal_chars): Update.
9425 * valprint.c (maybe_negate_by_bytes): New function.
9426 (print_decimal_chars): Add "is_signed" argument.
9427 * printcmd.c (print_scalar_formatted): Update.
9429 2017-06-12 Tom Tromey <tom@tromey.com>
9432 * valprint.h (print_binary_chars, print_hex_chars): Update.
9433 * valprint.c (val_print_type_code_int): Update.
9434 (print_binary_chars): Add "zero_pad" argument.
9435 (emit_octal_digit): New function.
9436 (print_octal_chars): Don't zero-pad.
9437 (print_decimal_chars): Likewise.
9438 (print_hex_chars): Add "zero_pad" argument.
9439 * sh64-tdep.c (sh64_do_fp_register): Update.
9440 * regcache.c (regcache::dump): Update.
9441 * printcmd.c (print_scalar_formatted): Update.
9442 * infcmd.c (default_print_one_register_info): Update.
9444 2017-06-12 Pedro Alves <palves@redhat.com>
9445 Alan Hayward <alan.hayward@arm.com>
9447 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
9448 (mips_eabi_push_dummy_call): Rename local 'regsize' to
9449 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
9450 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
9451 Assert that abi_regsize bytes fit in 'ref_valbuf'.
9453 2017-06-12 Pedro Alves <palves@redhat.com>
9455 * dwarf2read.c (mapped_symtab::data): Now a vector of
9456 symtab_index_entry instead of vector of
9457 std::unique_ptr<symtab_index_entry>. All users adjusted to check
9458 whether an element's name is NULL instead of checking whether the
9459 element itself is NULL.
9460 (find_slot): Change return type. Adjust.
9461 (hash_expand, , add_index_entry, uniquify_cu_indices)
9462 (write_hash_table): Adjust.
9464 2017-06-12 Pedro Alves <palves@redhat.com>
9466 * dwarf2read.c (recursively_count_psymbols): New function.
9467 (write_psymtabs_to_index): Call it to compute number of psyms and
9468 pass estimate size of psyms_seen to unordered_set's ctor.
9470 2017-06-12 Pedro Alves <palves@redhat.com>
9472 * dwarf2read.c (write_hash_table): Check if key already exists
9475 2017-06-12 Pedro Alves <palves@redhat.com>
9477 * dwarf2read.c (data_buf::append_space): Rename to...
9478 (data_buf::grow): ... this, and make private. Adjust all callers.
9479 (data_buf::append_uint): New method.
9480 (add_address_entry, write_one_signatured_type)
9481 (write_psymtabs_to_index): Use it.
9483 2017-06-12 Pedro Alves <palves@redhat.com>
9485 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
9486 (file_write (FILE *, const std::vector<Elem>&)): Delete.
9487 (data_buf::file_write): Call ::fwrite directly.
9489 2017-06-12 Pedro Alves <palves@redhat.com>
9491 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
9494 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9496 Code cleanup: C++ify .gdb_index producer.
9497 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
9498 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
9499 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
9500 (create_strtab, add_string): Remove.
9501 (file_write, data_buf): New.
9502 (struct symtab_index_entry): Use std::vector for cu_indices.
9503 (struct mapped_symtab): Use std::vector for data.
9504 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
9505 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
9507 (find_slot): Change return type. Update it to the new data structures.
9508 (hash_expand, add_index_entry): Update it to the new data structures.
9509 (offset_type_compare): Remove.
9510 (uniquify_cu_indices): Update it to the new data structures.
9511 (c_str_view, c_str_view_hasher, vector_hasher): New.
9512 (add_indices_to_cpool): Remove.
9513 (write_hash_table): Update it to the new data structures.
9514 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
9515 (eq_psymtab_cu_index): Remove.
9516 (psym_index_map): New typedef.
9517 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
9518 reference and std::unordered_map for cu_index_htab.
9519 (add_address_entry, add_address_entry_worker, write_address_map)
9520 (write_psymbols): Update it to the new data structures.
9521 (write_obstack): Remove.
9522 (struct signatured_type_index_data): Change types_list to a data_buf
9523 reference and psyms_seen to a std::unordered_set reference.
9524 (write_one_signatured_type, recursively_write_psymbols)
9525 (write_psymtabs_to_index): Update it to the new data structures.
9527 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
9529 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
9530 separate-debug-file commands.
9531 * symfile.h (separate_debug_file_debug): New global.
9532 * symfile.c (separate_debug_file_debug): New global.
9533 (separate_debug_file_exists, find_separate_debug_file): Add
9535 (_initialize_symfile): Add "set debug separate-debug-file"
9537 * build-id.c (build_id_to_debug_bfd,
9538 find_separate_debug_file_by_buildid): Add debug output.
9540 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
9542 * gdbarch.sh (displaced_step_free_closure): Remove.
9543 * gdbarch.h, gdbarch.c: Re-generate.
9544 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
9545 displaced_step_free_closure.
9546 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
9547 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9548 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9549 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
9550 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9551 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9552 * arch-utils.h (simple_displaced_step_free_closure): Remove.
9553 * arch-utils.c (simple_displaced_step_free_closure): Remove.
9554 * infrun.c (displaced_step_clear): Call xfree instead of
9555 gdbarch_displaced_step_free_closure.
9557 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
9559 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
9562 2017-06-08 Alan Hayward <alan.hayward@arm.com>
9564 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
9565 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
9566 (mn10300_push_dummy_call): Likewise.
9568 2017-06-08 Alan Hayward <alan.hayward@arm.com>
9570 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
9572 2017-06-08 Alan Hayward <alan.hayward@arm.com>
9574 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
9576 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9578 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
9579 able to start inferiors using a shell.
9580 (New remote packets): Announce new packet "QStartupWithShell".
9581 * remote.c: Add PACKET_QStartupWithShell.
9582 (extended_remote_create_inferior): Handle new
9583 PACKET_QStartupWithShell.
9584 (remote_protocol_features) <QStartupWithShell>: New entry for
9585 PACKET_QStartupWithShell.
9586 (_initialize_remote): Call "add_packet_config_cmd" for
9589 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9590 Pedro Alves <palves@redhat.com>
9592 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
9593 and "nat/fork-inferior.h".
9594 * common/common-inferior.h: New file, with contents from
9596 * commom/common-utils.c: Include "common-utils.h".
9597 (stringify_argv): New function.
9598 * common/common-utils.h (stringify_argv): New prototype.
9599 * configure.nat: Add "fork-inferior.o" as a dependency for
9600 "*linux*", "fbsd*" and "nbsd*" hosts.
9601 * corefile.c (get_exec_file): Update comment.
9602 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
9603 instead of "startup_inferior".
9604 (darwin_create_inferior): Call "add_thread_silent" after
9606 * fork-child.c: Cleanup unnecessary includes.
9607 (SHELL_FILE): Move to "common/common-fork-child.c".
9608 (environ): Likewise.
9609 (exec_wrapper): Initialize.
9610 (get_exec_wrapper): New function.
9611 (breakup_args): Move to "common/common-fork-child.c"; rename to
9612 "breakup_args_for_exec".
9613 (escape_bang_in_quoted_argument): Move to
9614 "common/common-fork-child.c".
9615 (saved_ui): New variable.
9616 (prefork_hook): New function.
9617 (postfork_hook): Likewise.
9618 (postfork_child_hook): Likewise.
9619 (gdb_startup_inferior): Likewise.
9620 (fork_inferior): Move to "common/common-fork-child.c". Update
9621 function to support gdbserver.
9622 (startup_inferior): Likewise.
9623 * gdbcore.h (get_exec_file): Remove declaration.
9624 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
9625 instead of "startup_inferior". Call "add_thread_silent" after
9627 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
9628 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
9629 instead of "startup_inferior". Call "add_thread_silent" after
9631 * inferior.h: Include "common-inferior.h".
9632 (trace_start_error): Move to "common/common-utils.h".
9633 (trace_start_error_with_name): Likewise.
9634 (fork_inferior): Move prototype to "nat/fork-inferior.h".
9635 (startup_inferior): Likewise.
9636 (gdb_startup_inferior): New prototype.
9637 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
9638 * nat/fork-inferior.h: New file.
9639 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
9640 instead of "startup_inferior". Call "add_thread_silent" after
9642 * target.h (target_terminal_init): Move prototype to
9644 (target_terminal_inferior): Likewise.
9645 (target_terminal_ours): Likewise.
9646 * target/target.h (target_terminal_init): New prototype, moved
9648 (target_terminal_inferior): Likewise.
9649 (target_terminal_ours): Likewise.
9650 * utils.c (gdb_flush_out_err): New function.
9652 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9654 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
9655 * common/common-gdbthread.h: New file, with parts from
9657 * gdbthread.h: Include "common-gdbthread.h".
9658 (switch_to_thread): Moved to "common/common-gdbthread.h".
9660 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9662 * Makefile.in (SFILES): Add "common/job-control.c".
9663 (HFILES_NO_SRCDIR): Add "common/job-control.h".
9664 (COMMON_OBS): Add "job-control.o".
9665 * common/job-control.c: New file, with contents from
9667 * common/job-control.h: New file, with contents from "terminal.h".
9668 * fork-child.c: Include "job-control.h".
9669 * inflow.c: Include "job-control.h".
9670 (gdb_setpgid): Move to "common/common-inflow.c".
9671 (_initialize_inflow): Move setting of "job_control" to
9672 "handle_job_control".
9673 * terminal.h (job_control): Moved to "common/common-terminal.h".
9674 (gdb_setpgid): Likewise.
9675 * top.c: Include "job_control.h".
9676 * utils.c: Likewise.
9677 (job_control): Moved to "job-control.c".
9679 2017-06-07 Pedro Alves <palves@redhat.com>
9681 * Makefile.in (SFILES): Add gdb_regex.c.
9682 (COMMON_OBS): Add gdb_regex.o.
9683 * ada-lang.c (ada_add_standard_exceptions)
9684 (ada_add_exceptions_from_frame, name_matches_regex)
9685 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
9686 parameter type to compiled_regex. Adjust.
9687 (ada_exceptions_list): Use compiled_regex.
9688 * break-catch-throw.c (exception_catchpoint::pattern): Now a
9689 std::unique_ptr<compiled_regex>.
9690 (exception_catchpoint::~exception_catchpoint): Remove regfree
9692 (check_status_exception_catchpoint): Adjust to use compiled_regex.
9693 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
9694 * breakpoint.c (solib_catchpoint::compiled): Now a
9695 std::unique_ptr<compiled_regex>.
9696 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
9697 (check_status_catch_solib): Adjust to use compiled_regex.
9698 (add_solib_catchpoint): Adjust to use compiled_regex.
9699 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
9700 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
9701 compiled_regex reference. Adjust to use it.
9702 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
9703 declaration. Include "gdb_regex.h".
9704 (apropos_cmd): Change regex parameter to compiled_regex reference.
9705 * gdb_regex.c: New file.
9706 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
9708 (class compiled_regex): New.
9709 * linux-tdep.c: Include "common/gdb_optional.h".
9710 (struct mapping_regexes): New, factored out from
9711 mapping_is_anonymous_p, and adjusted to use compiled_regex.
9712 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
9713 gdb::optional and remove cleanups. Adjust to compiled_regex.
9714 * probe.c: Include "common/gdb_optional.h".
9715 (collect_probes): Use compiled_regex and gdb::optional and remove
9717 * skip.c: Include "common/gdb_optional.h".
9718 (skiplist_entry::compiled_function_regexp): Now a
9719 gdb::optional<compiled_regex>.
9720 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
9721 (free_skiplist_entry): Remove regfree call.
9722 (compile_skip_regexp, skip_rfunction_p): Adjust to use
9723 compiled_regex and gdb::optional.
9724 * symtab.c: Include "common/gdb_optional.h".
9725 (search_symbols): Use compiled_regex and gdb::optional.
9726 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
9727 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
9730 2017-06-07 Alan Hayward <alan.hayward@arm.com>
9732 * regcache.c (regcache::save): Avoid buffer use.
9733 (regcache::dump): Likewise.
9735 2017-06-07 Alan Hayward <alan.hayward@arm.com>
9737 * sh-tdep.c (sh_pseudo_register_read): Remove
9739 (sh_pseudo_register_write): Likewise.
9740 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
9741 (sh64_pseudo_register_write): Likewise
9743 2017-06-07 Alan Hayward <alan.hayward@arm.com>
9745 * aarch64-tdep.c (aarch64_store_return_value): Use
9747 (aarch64_pseudo_read_value): Likewise.
9748 (aarch64_pseudo_write): Likewise.
9750 2017-06-06 Yao Qi <yao.qi@linaro.org>
9752 * regformats/regdef.h (set_register_cache): Remove the
9755 2017-06-06 Alan Hayward <alan.hayward@arm.com>
9757 * frame.c (frame_unwind_register_signed): Use
9758 frame_unwind_register_value.
9760 2017-06-06 Pedro Alves <palves@redhat.com>
9762 PR breakpoints/21553
9763 * breakpoint.c (create_breakpoints_sal_default)
9764 (init_breakpoint_sal, create_breakpoint_sal): Use
9765 gdb::unique_xmalloc_ptr for string parameters.
9766 (create_breakpoint): Constify 'extra_string' and 'cond_string'
9767 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
9768 (base_breakpoint_create_breakpoints_sal)
9769 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
9770 (strace_marker_create_breakpoints_sal)
9771 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
9773 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
9774 gdb::unique_xmalloc_ptr for string parameters.
9775 (create_breakpoint): Constify 'extra_string' and 'cond_string'
9778 2017-06-06 Alan Hayward <alan.hayward@arm.com>
9780 * alpha-tdep.c (alpha_register_to_value): Use
9781 get_frame_register_value.
9782 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
9784 2017-06-06 Alan Hayward <alan.hayward@arm.com>
9786 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
9787 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
9788 (ia64_value_to_register): Likewise.
9789 (ia64_extract_return_value): Likewise.
9790 (ia64_store_return_value): Likewise.
9791 (ia64_push_dummy_call): Likewise.
9793 2017-06-04 Joel Brobecker <brobecker@adacore.com>
9797 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
9799 * x86-linux-nat.c (struct arch_lwp_info): Remove.
9801 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
9803 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
9805 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
9807 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
9809 * event-loop.c (poll_timers): Unallocate timer using delete
9812 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9814 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
9815 (struct breakpoint) <~breakpoint>: New.
9816 (struct watchpoint): Inherit from breakpoint.
9819 (struct tracepoint): Inherit from breakpoint.
9821 * breakpoint.c (longjmp_breakpoint_ops): Remove.
9822 (struct longjmp_breakpoint): Inherit from breakpoint.
9823 <~longjmp_breakpoint>: New.
9825 (new_breakpoint_from_type): Remove casts.
9826 (watchpoint_in_thread_scope): Remove reference to base field.
9827 (watchpoint_del_at_next_stop): Likewise.
9828 (update_watchpoint): Likewise.
9829 (watchpoint_check): Likewise.
9830 (bpstat_check_watchpoint): Likewise.
9831 (set_longjmp_breakpoint): Likewise.
9832 (struct fork_catchpoint): Inherit from breakpoint.
9834 (struct solib_catchpoint): Inherit from breakpoint.
9835 <~solib_catchpoint>: New.
9837 (dtor_catch_solib): Change to ...
9838 (solib_catchpoint::~solib_catchpoint): ... this.
9839 (breakpoint_hit_catch_solib): Remove reference to base field.
9840 (add_solib_catchpoint): Likewise.
9841 (create_fork_vfork_event_catchpoint): Likewise.
9842 (struct exec_catchpoint): Inherit from breakpoint.
9843 <~exec_catchpoint>: New.
9845 (dtor_catch_exec): Change to ...
9846 (exec_catchpoint::~exec_catchpoint): ... this.
9847 (dtor_watchpoint): Change to ...
9848 (watchpoint::~watchpoint): ... this.
9849 (watch_command_1): Remove reference to base field.
9850 (catch_exec_command_1): Likewise.
9851 (base_breakpoint_dtor): Change to ...
9852 (breakpoint::~breakpoint): ... this.
9853 (base_breakpoint_ops): Remove dtor field value.
9854 (longjmp_bkpt_dtor): Change to ...
9855 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
9856 (strace_marker_create_breakpoints_sal): Remove reference to base
9858 (delete_breakpoint): Don't manually call breakpoint destructor.
9859 (create_tracepoint_from_upload): Remove reference to base field.
9860 (trace_pass_set_count): Likewise.
9861 (initialize_breakpoint_ops): Don't initialize
9862 momentary_breakpoint_ops, don't set dtors.
9863 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
9864 <~ada_catchpoint>: New.
9866 (create_excep_cond_exprs): Remove reference to base field.
9867 (dtor_exception): Change to ...
9868 (ada_catchpoint::~ada_catchpoint): ... this.
9869 (dtor_catch_exception): Remove.
9870 (dtor_catch_exception_unhandled): Remove.
9871 (dtor_catch_assert): Remove.
9872 (create_ada_exception_catchpoint): Remove reference to base
9874 (initialize_ada_catchpoint_ops): Don't set dtors.
9875 * break-catch-sig.c (struct signal_catchpoint): Inherit from
9877 <~signal_catchpoint>: New.
9879 (signal_catchpoint_dtor): Change to ...
9880 (signal_catchpoint::~signal_catchpoint): ... this.
9881 (create_signal_catchpoint): Remove reference to base field.
9882 (initialize_signal_catchpoint_ops): Don't set dtor.
9883 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
9885 <~syscall_catchpoint>: New.
9887 (dtor_catch_syscall): Change to ...
9888 (syscall_catchpoint::~syscall_catchpoint): ... this.
9889 (create_syscall_event_catchpoint): Remove reference to base
9891 (initialize_syscall_catchpoint_ops): Don't set dtor.
9892 * break-catch-throw.c (struct exception_catchpoint): Inherit
9894 <~exception_catchpoint>: New.
9896 (dtor_exception_catchpoint): Change to ...
9897 (exception_catchpoint::~exception_catchpoint): ... this.
9898 (handle_gnu_v3_exceptions): Remove reference to base field.
9899 (initialize_throw_catchpoint_ops): Don't set dtor.
9900 * ctf.c (ctf_get_traceframe_address): Remove reference to base
9902 * remote.c (remote_get_tracepoint_status): Likewise.
9903 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
9904 * tracefile.c (tracefile_fetch_registers): Likewise.
9905 * tracepoint.c (actions_command): Likewise.
9906 (validate_actionline): Likewise.
9907 (tfind_1): Likewise.
9908 (get_traceframe_location): Likewise.
9909 (find_matching_tracepoint_location): Likewise.
9910 (parse_tracepoint_status): Likewise.
9911 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
9913 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9915 * breakpoint.c (struct longjmp_breakpoint): New struct.
9916 (is_tracepoint_type): Change return type to bool.
9917 (is_longjmp_type): New function.
9918 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
9919 (set_raw_breakpoint_without_location): Use
9920 new_breakpoint_from_type.
9921 (set_raw_breakpoint): Likewise.
9923 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9925 * breakpoint.c (new_breakpoint_from_type): New function.
9926 (create_breakpoint_sal): Use new_breakpoint_from_type and
9928 (create_breakpoint): Likewise.
9930 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
9932 * memattr.c (mem_info_command): Rename to ...
9933 (info_mem_command): ... this.
9934 (mem_enable_command): Rename to ...
9935 (enable_mem_command): ... this.
9936 (mem_disable_command): Rename to ...
9937 (disable_mem_command): ... this.
9938 (mem_delete_command): Rename to ...
9939 (delete_mem_command): ... this.
9940 (_initialize_mem): Adjust function names.
9942 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9944 * btrace.c (handle_pt_insn_events): New.
9945 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
9946 STATUS. Split into this and ...
9947 (handle_pt_insn_event_flags): ... this.
9949 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9951 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
9952 and struct pt_insn.resynced.
9953 * configure: Regenerated.
9954 * config.in: Regenerated.
9956 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9958 * btrace.c (ftrace_find_call_by_number): New function.
9959 (ftrace_new_function): Store objects, not pointers.
9960 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
9961 ftrace_new_gap, ftrace_update_function,
9962 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
9963 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
9964 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
9965 btrace_ends_with_single_insn, btrace_call_get): Account for
9966 btrace_thread_info::functions now storing objects.
9967 * btrace.h (struct btrace_thread_info): Add constructor.
9968 (struct btrace_thread_info) <functions>: Make std::vector.
9969 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
9970 Initialize with default values.
9971 * record-btrace.c (record_btrace_frame_sniffer): Account for
9972 btrace_thread_info::functions now storing objects.
9974 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9976 * btrace.c: Remove typedef bfun_s.
9977 (ftrace_new_gap): Directly add gaps to the list of gaps.
9978 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
9979 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
9980 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
9983 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9985 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
9986 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
9987 with btrace_thread_info::next_segment and
9988 btrace_thread_info::prev_segment.
9989 * btrace.h: Remove struct btrace_func_link.
9990 (struct btrace_function): Replace pair of function segment pointers
9991 with pair of indices.
9992 * python/py-record-btrace.c (btpy_call_prev_sibling,
9993 btpy_call_next_sibling): Replace references to
9994 btrace_thread_info::segment with btrace_thread_info::next_segment and
9995 btrace_thread_info::prev_segment.
9996 * record-btrace.c (record_btrace_frame_this_id): Use
9997 btrace_find_call_by_number.
9999 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10001 * btrace.c (ftrace_new_function, ftrace_fixup_level,
10002 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
10003 btrace_insn_next, btrace_insn_prev): Remove references to
10004 btrace_thread_info::flow.
10005 * btrace.h (struct btrace_function): Remove FLOW.
10007 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10009 * btrace.c (ftrace_find_call_by_number): New function.
10010 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
10011 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
10012 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
10013 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
10015 * btrace.h (struct btrace_function): Turn UP into an index.
10016 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
10018 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
10019 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
10020 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
10022 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10024 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
10025 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
10026 ftrace_update_function, ftrace_compute_global_level_offset,
10027 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
10028 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
10029 btrace_insn_end, btrace_is_empty): Remove references to
10030 btrace_thread_info::begin and btrace_thread_info::end.
10031 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
10032 (struct btrace_thread_info) <functions>: Adjust comment.
10033 * record-btrace.c (record_btrace_start_replaying): Remove reference to
10034 btrace_thread_info::begin.
10036 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10038 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
10039 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
10040 ftrace_update_function): Remove arguments that implicitly were always
10042 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
10043 Don't pass BTINFO->END.
10045 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10047 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
10048 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
10049 btrace_find_insn_by_number): Replace function segment pointer with
10051 (btrace_insn_cmp): Simplify.
10052 * btrace.h: (struct btrace_insn_iterator) Rename index to
10053 insn_index. Replace function segment pointer with index into function
10055 * record-btrace.c (record_btrace_call_history): Replace function
10056 segment pointer use with index.
10057 (record_btrace_frame_sniffer): Retrieve function call segment through
10059 (record_btrace_set_replay): Remove defunc't safety check.
10061 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10063 * btrace.c (btrace_ends_with_single_insn): New function.
10064 (btrace_call_get, btrace_call_number, btrace_call_begin,
10065 btrace_call_end, btrace_call_next, btrace_call_prev,
10066 btrace_find_call_by_number): Use index into call segment vector
10067 instead of pointer.
10068 (btrace_call_cmp): Simplify.
10069 * btrace.h (struct btrace_call_iterator): Replace function call segment
10070 pointer with index into vector.
10071 * record-btrace.c (record_btrace_call_history): Use index instead of
10074 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10076 * btrace.c (btrace_insn_begin, btrace_insn_end,
10077 btrace_find_insn_by_number): Add btinfo to iterator.
10078 * btrace.h (struct btrace_insn_iterator): Add btinfo.
10080 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10082 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
10083 and save pointers directly.
10084 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
10085 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
10086 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
10087 changed signature of functions.
10088 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
10089 (btrace_fetch): Remove code that adds btrace_function pointers to
10090 vector of btrace_functions.
10091 (btrace_clear): Simplify freeing vector of btrace_functions.
10093 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10095 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
10096 Replace VEC_* with std::vector functions.
10097 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
10098 (struct btrace_thread_info)<functions>: Change type to std::vector.
10100 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
10102 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
10103 "Removed targets and native configurations" up. Merge duplicate
10104 "New commands" sub-sections. Add "New options" sub-sections.
10106 2017-05-26 Alan Hayward <alan.hayward@arm.com>
10108 * defs.h (copy_integer_to_size): New declaration.
10109 * findvar.c (copy_integer_to_size): New function.
10110 (do_cint_test): New selftest function.
10111 (copy_integer_to_size_test): Likewise.
10112 (_initialize_findvar): Likewise.
10113 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
10114 (mips_fbsd_collect_reg): Use raw_collect_integer.
10115 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
10116 (mips64_fill_gregset): Use raw_collect_integer
10117 (mips64_fill_fpregset): Use raw_supply_integer.
10118 * regcache.c (regcache::raw_supply_integer): New function.
10119 (regcache::raw_collect_integer): Likewise.
10120 * regcache.h: (regcache::raw_supply_integer): New declaration.
10121 (regcache::raw_collect_integer): Likewise.
10123 2017-05-24 Yao Qi <yao.qi@linaro.org>
10125 * Makefile.in (SFILES): Add gdbarch-selftests.c.
10126 (COMMON_OBS): Add gdbarch-selftests.o.
10127 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
10128 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
10129 * gdbarch-selftests.c: New file.
10130 * regcache.h (regcache) <~regcache>: Mark it virtual if
10132 <raw_write>: Likewise.
10134 2017-05-24 Yao Qi <yao.qi@linaro.org>
10136 * regcache.c (current_regcache): Change it to
10137 regcache::current_regcache.
10138 (regcache_observer_target_changed): Update.
10139 (regcache_thread_ptid_changed): Make it a regcache static
10141 (regcache_thread_ptid_changed): Update.
10142 (class regcache_access): New.
10143 (current_regcache_test): Update.
10144 (_initialize_regcache): Update.
10145 * regcache.h: Include forward_list.
10146 (regcache): Declare regcache_thread_ptid_changed and declare
10147 registers_changed_ptid as friend.
10149 2017-05-24 Yao Qi <yao.qi@linaro.org>
10151 * i387-tdep.c (i387_register_to_value): Use register_size
10152 instead of TYPE_LENGTH.
10153 * m68k-tdep.c (m68k_register_to_value): Likewise.
10155 2017-05-24 Yao Qi <yao.qi@linaro.org>
10157 * i387-tdep.c (i387_convert_register_p): Return false if type
10158 code isn't TYPE_CODE_FLT.
10160 2017-05-24 Yao Qi <yao.qi@linaro.org>
10162 * alpha-tdep.c (alpha_convert_register_p): Return true if type
10164 (alpha_register_to_value): Remove type length check.
10165 (alpha_value_to_register): Likewise.
10167 2017-05-24 Yao Qi <yao.qi@linaro.org>
10169 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
10172 2017-05-24 Yao Qi <yao.qi@linaro.org>
10174 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
10175 TYPE_CODE_FLT or not.
10177 2017-05-24 Yao Qi <yao.qi@linaro.org>
10179 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
10180 * avr-tdep.c (avr_gdbarch_init): Likewise.
10181 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10182 * cris-tdep.c (cris_gdbarch_init): Likewise.
10183 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
10184 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10185 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10186 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10187 * mep-tdep.c (mep_gdbarch_init): Likewise.
10188 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10189 * mips-tdep.c (mips_gdbarch_init): Likewise.
10190 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10191 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10192 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
10193 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10194 * v850-tdep.c (v850_gdbarch_init): Likewise.
10196 2017-05-24 Yao Qi <yao.qi@linaro.org>
10198 * selftest-arch.c (tests_with_arch): Call registers_changed
10199 and reinit_frame_cache.
10200 * selftest.c (run_self_tests): Likewise.
10202 2017-05-24 Yao Qi <yao.qi@linaro.org>
10204 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
10205 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
10207 2017-05-24 Yao Qi <yao.qi@linaro.org>
10209 * rl78-tdep.c (rl78_gdbarch_init): Don't call
10210 set_gdbarch_print_insn.
10212 2017-05-24 Yao Qi <yao.qi@linaro.org>
10214 * h8300-tdep.c (h8300_gdbarch_init): Don't call
10215 set_gdbarch_print_insn.
10217 2017-05-24 Yao Qi <yao.qi@linaro.org>
10219 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10220 set_gdbarch_print_insn.
10221 * arc-tdep.c (arc_gdbarch_init): Likewise.
10222 * arch-utils.c: include dis-asm.h.
10223 (default_print_insn): New function.
10224 * arch-utils.h (default_print_insn): Declare.
10225 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
10226 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10227 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
10228 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
10229 * frv-tdep.c (frv_gdbarch_init): Likewise.
10230 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
10231 * gdbarch.sh (print_insn): Use default_print_insn.
10232 * gdbarch.c: Regenerated.
10233 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10234 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
10235 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10236 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
10237 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10238 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
10239 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
10240 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10241 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
10242 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10243 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10244 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10245 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
10246 * mt-tdep.c (mt_gdbarch_init): Likewise.
10247 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10248 * nios2-tdep.c (nios2_print_insn): Remove.
10249 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
10250 * rx-tdep.c (rx_gdbarch_init): Likewise.
10251 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10252 * score-tdep.c (score_print_insn): Remove.
10253 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
10254 * sh-tdep.c (sh_gdbarch_init): Likewise.
10255 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10256 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10257 * tic6x-tdep.c (tic6x_print_insn): Remove.
10258 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
10259 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
10260 * v850-tdep.c (v850_gdbarch_init): Likewise.
10261 * vax-tdep.c (vax_gdbarch_init): Likewise.
10262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10263 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
10265 2017-05-23 John Baldwin <jhb@FreeBSD.org>
10267 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
10268 (MIPS_FP0_REGNUM): Remove.
10269 (MIPS_FSR_REGNUM): Remove.
10270 (mips_fbsd_supply_fpregs): Use mips_regnum.
10271 (mips_fbsd_supply_gregs): Likewise.
10272 (mips_fbsd_collect_fpregs): Likewise.
10273 (mips_fbsd_collect_gregs): Likewise.
10275 2017-05-23 John Baldwin <jhb@FreeBSD.org>
10277 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
10278 (getpfpregs_supplies): New function.
10279 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
10280 getfpregs_supplies.
10281 (mips_fbsd_store_inferior_registers): Likewise.
10283 2017-05-22 Pedro Alves <palves@redhat.com>
10285 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
10288 2017-05-22 Alan Hayward <alan.hayward@arm.com>
10290 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
10291 (store_register): Likewise.
10292 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
10293 (get_decimal_float_return_value): Likewise.
10294 (do_ppc_sysv_return_value): Likewise.
10295 (ppc64_sysv_abi_push_integer): Likewise.
10296 (ppc64_sysv_abi_push_freg): Likewise.
10297 (ppc64_sysv_abi_return_value_base): Likewise.
10298 (ppc64_sysv_abi_return_value): Likewise.
10299 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
10300 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
10301 * rs6000-nat.c: Likewise.
10302 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
10303 (rs6000_value_to_register): Likewise.
10304 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
10306 2017-05-21 Tom Tromey <tom@tromey.com>
10309 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
10310 arrays as "[T]", not "[T; ]".
10312 2017-05-19 Tom Tromey <tom@tromey.com>
10315 * rust-lang.c (exp_descriptor_rust): New function.
10316 (rust_language_defn): Use it.
10317 * p-lang.c (pascal_language_defn): Update.
10318 * opencl-lang.c (opencl_language_defn): Update.
10319 * objc-lang.c (objc_language_defn): Update.
10320 * m2-lang.c (m2_language_defn): Update.
10321 * language.h (struct language_defn)
10322 <la_watch_location_expression>: New member.
10323 * language.c (unknown_language_defn, auto_language_defn)
10324 (local_language_defn): Update.
10325 * go-lang.c (go_language_defn): Update.
10326 * f-lang.c (f_language_defn): Update.
10327 * d-lang.c (d_language_defn): Update.
10328 * c-lang.h (c_watch_location_expression): Declare.
10329 * c-lang.c (c_watch_location_expression): New function.
10330 (c_language_defn, cplus_language_defn, asm_language_defn)
10331 (minimal_language_defn): Use it.
10332 * breakpoint.c (watch_command_1): Call
10333 la_watch_location_expression.
10334 * ada-lang.c (ada_language_defn): Update.
10336 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10339 * gdb_curses.h (NOMACROS): Define.
10340 (NCURSES_NOMACROS): Define.
10342 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10345 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
10347 * tui/tui-wingeneral.c (box_win): Likewise.
10348 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
10349 (tui_show_source_line): Likewise.
10350 (tui_show_exec_info_content): Likewise.
10352 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
10354 * sparc-tdep.c (sparc_structure_return_p)
10355 (sparc_arg_on_registers_p): New functions.
10356 (sparc32_store_arguments): Use them.
10357 * sparc64-tdep.c (sparc64_16_byte_align_p)
10358 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
10359 Handle TYPE_CODE_ARRAY.
10361 2017-05-17 Yao Qi <yao.qi@linaro.org>
10363 * cli/cli-decode.c (add_alias_cmd): New function.
10364 * command.h (add_alias_cmd): Declare.
10365 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
10366 instead call add_alias_cmd.
10368 2017-05-17 Pedro Alves <palves@redhat.com>
10370 * Makefile.in (nat_extra_makefile_frag): Rename to ...
10371 (nat_makefile_frag): ... this. All references updated.
10372 * configure.ac: Likewise.
10373 * configure.nat: Likewise. Enhance comments.
10374 * configure: Regenerate.
10376 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10378 * procfs.c (procfs_create_inferior): Change prototype to match
10381 2017-05-13 Eli Zaretskii <eliz@gnu.org>
10383 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
10384 C++ compiler warning.
10386 2017-05-12 Tom Tromey <tom@tromey.com>
10389 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
10390 recurse, just call value_struct_elt directly.
10392 2017-05-12 Tom Tromey <tom@tromey.com>
10394 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
10395 OP_RUST_ARRAY>: Fix.
10397 2017-05-12 Tom Tromey <tom@tromey.com>
10399 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
10401 2017-05-09 Yao Qi <yao.qi@linaro.org>
10403 * regcache.c: Include <forward_list>.
10404 (struct regcache_list): Remove.
10405 (current_regcache): Update.
10406 (get_thread_arch_aspace_regcache): Update for std::forward_list.
10407 (regcache_thread_ptid_changed): Likewise.
10408 (registers_changed_ptid): Likewise.
10409 (current_regcache_size): Likewise.
10411 2017-05-09 Yao Qi <yao.qi@linaro.org>
10413 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
10414 (current_regcache_size): New function.
10415 (current_regcache_test): New function.
10416 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
10418 2017-05-08 Alan Hayward <alan.hayward@arm.com>
10420 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
10421 (print_gp_register_row): Use get_frame_register_value.
10423 2017-05-08 Alan Hayward <alan.hayward@arm.com>
10425 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
10426 (mips_supply_fpregset): Likewise.
10427 (mips64_supply_gregset): Likewise.
10429 2017-05-08 Alan Hayward <alan.hayward@arm.com>
10431 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
10432 regcache->raw_supply_zeroed.
10434 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
10436 * configure.nat: Rearrange 'case' statements to match
10439 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
10441 * Makefile.in: Remove "@host_makefile_frag@". Add variables
10442 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
10443 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
10444 "@nat_extra_makefile_frag@".
10445 (Makefile): Remove dependency on "@frags@".
10446 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
10447 (data-directory/Makefile): Likewise.
10448 * config/aarch64/linux.mh: Deleted; moved contents to
10449 "gdb/configure.nat".
10450 * config/alpha/alpha-linux.mh: Likewise.
10451 * config/alpha/nbsd.mh: Likewise.
10452 * config/arm/linux.mh: Likewise.
10453 * config/arm/nbsdelf.mh: Likewise.
10454 * config/i386/cygwin.mh: Likewise.
10455 * config/i386/cygwin64.mh: Likewise.
10456 * config/i386/darwin.mh: Likewise.
10457 * config/i386/fbsd.mh: Likewise.
10458 * config/i386/fbsd64.mh: Likewise.
10459 * config/i386/go32.mh: Likewise.
10460 * config/i386/i386gnu.mh: Likewise.
10461 * config/i386/i386sol2.mh: Likewise.
10462 * config/i386/linux.mh: Likewise.
10463 * config/i386/linux64.mh: Likewise.
10464 * config/i386/mingw.mh: Likewise.
10465 * config/i386/mingw64.mh: Likewise.
10466 * config/i386/nbsd64.mh: Likewise.
10467 * config/i386/nbsdelf.mh: Likewise.
10468 * config/i386/nto.mh: Likewise.
10469 * config/i386/obsd.mh: Likewise.
10470 * config/i386/obsd64.mh: Likewise.
10471 * config/i386/sol2-64.mh: Likewise.
10472 * config/ia64/linux.mh: Likewise.
10473 * config/m32r/linux.mh: Likewise.
10474 * config/m68k/linux.mh: Likewise.
10475 * config/m68k/nbsdelf.mh: Likewise.
10476 * config/m68k/obsd.mh: Likewise.
10477 * config/m88k/obsd.mh: Likewise.
10478 * config/mips/fbsd.mh: Likewise.
10479 * config/mips/linux.mh: Likewise.
10480 * config/mips/nbsd.mh: Likewise.
10481 * config/mips/obsd64.mh: Likewise.
10482 * config/pa/linux.mh: Likewise.
10483 * config/pa/nbsd.mh: Likewise.
10484 * config/pa/obsd.mh: Likewise.
10485 * config/powerpc/aix.mh: Likewise.
10486 * config/powerpc/fbsd.mh: Likewise.
10487 * config/powerpc/linux.mh: Likewise.
10488 * config/powerpc/nbsd.mh: Likewise.
10489 * config/powerpc/obsd.mh: Likewise.
10490 * config/powerpc/ppc64-linux.mh: Likewise.
10491 * config/powerpc/spu-linux.mh: Likewise.
10492 * config/s390/linux.mh: Likewise.
10493 * config/sh/nbsd.mh: Likewise.
10494 * config/sparc/fbsd.mh: Likewise.
10495 * config/sparc/linux.mh: Likewise.
10496 * config/sparc/linux64.mh: Likewise.
10497 * config/sparc/nbsd64.mh: Likewise.
10498 * config/sparc/nbsdelf.mh: Likewise.
10499 * config/sparc/obsd64.mh: Likewise.
10500 * config/sparc/sol2.mh: Likewise.
10501 * config/tilegx/linux.mh: Likewise.
10502 * config/vax/nbsdelf.mh: Likewise.
10503 * config/vax/obsd.mh: Likewise.
10504 * config/xtensa/linux.mh: Likewise.
10505 * config/i386/i386gnu.mn: New file, with excerpts from
10506 "config/i386/i386gnu.mh".
10507 * configure: Regenerate.
10508 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
10509 *.mh files under "gdb/config".
10510 * configure.nat: New file, with contents from the
10511 "gdb/config/*/*.mh" files.
10513 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
10515 * btrace.c (btrace_clear): Free insn vector.
10517 2017-05-05 Pedro Alves <palves@redhat.com>
10519 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
10520 * configure: Regenerate.
10522 2017-05-04 Pedro Alves <palves@redhat.com>
10524 * Makefile.in (SFILES): Add progspace-and-thread.c.
10525 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
10526 (COMMON_OBS): Add progspace-and-thread.o.
10527 * breakpoint.c: Include "progspace-and-thread.h".
10528 (update_inserted_breakpoint_locations)
10529 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
10530 Use scoped_restore_current_pspace_and_thread.
10531 (create_std_terminate_master_breakpoint): Use
10532 scoped_restore_current_program_space.
10533 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
10534 (print_breakpoint_location): Use
10535 scoped_restore_current_program_space.
10536 (bp_loc_is_permanent): Use
10537 scoped_restore_current_pspace_and_thread.
10538 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
10539 (download_tracepoint_locations): Use
10540 scoped_restore_current_pspace_and_thread.
10541 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
10542 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
10543 (enum step_over_calls_kind): Moved from inferior.h.
10544 (class scoped_restore_current_thread): New class.
10545 * gdbthread.h (make_cleanup_restore_current_thread): Delete
10547 (scoped_restore_current_thread): New class.
10548 * infcmd.c: Include "common/gdb_optional.h".
10549 (continue_1, proceed_after_attach): Use
10550 scoped_restore_current_thread.
10551 (notice_new_inferior): Use scoped_restore_current_thread.
10552 * inferior.c: Include "progspace-and-thread.h".
10553 (restore_inferior, save_current_inferior): Delete.
10554 (add_inferior_command, clone_inferior_command): Use
10555 scoped_restore_current_pspace_and_thread.
10556 * inferior.h (scoped_restore_current_inferior): New class.
10557 * infrun.c: Include "progspace-and-thread.h" and
10558 "common/gdb_optional.h".
10559 (follow_fork_inferior): Use
10560 scoped_restore_current_pspace_and_thread.
10561 (scoped_restore_exited_inferior): New class.
10562 (handle_vfork_child_exec_or_exit): Use
10563 scoped_restore_exited_inferior,
10564 scoped_restore_current_pspace_and_thread,
10565 scoped_restore_current_thread and scoped_restore.
10566 (fetch_inferior_event): Use scoped_restore_current_thread.
10567 * linespec.c (decode_line_full, decode_line_1): Use
10568 scoped_restore_current_program_space.
10569 * mi/mi-main.c: Include "progspace-and-thread.h".
10570 (exec_continue): Use scoped_restore_current_thread.
10571 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
10572 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
10573 * proc-service.c (ps_pglobal_lookup): Use
10574 scoped_restore_current_program_space.
10575 * progspace-and-thread.c: New file.
10576 * progspace-and-thread.h: New file.
10577 * progspace.c (release_program_space, clone_program_space): Use
10578 scoped_restore_current_program_space.
10579 (restore_program_space, save_current_program_space)
10580 (save_current_space_and_thread): Delete.
10581 (switch_to_program_space_and_thread): Moved to
10582 progspace-and-thread.c.
10583 * progspace.h (save_current_program_space)
10584 (save_current_space_and_thread): Delete declarations.
10585 (scoped_restore_current_program_space): New class.
10586 * remote.c (remote_btrace_maybe_reopen): Use
10587 scoped_restore_current_thread.
10588 * symtab.c: Include "progspace-and-thread.h".
10589 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
10590 * thread.c (print_thread_info_1): Use
10591 scoped_restore_current_thread.
10592 (struct current_thread_cleanup): Delete.
10593 (do_restore_current_thread_cleanup)
10594 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
10595 (scoped_restore_current_thread::~scoped_restore_current_thread):
10597 (make_cleanup_restore_current_thread): Rename/convert to ...
10598 (scoped_restore_current_thread::scoped_restore_current_thread):
10600 (thread_apply_all_command): Use scoped_restore_current_thread.
10601 (thread_apply_command): Use scoped_restore_current_thread.
10602 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
10603 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
10605 2017-05-04 Pedro Alves <palves@redhat.com>
10607 * thread.c (make_cleanup_restore_current_thread): Move
10608 find_thread_ptid call before the is_stopped call. Assert that the
10609 thread is found. Replace is_stopped call by checking the thread's
10610 state directly. Remove unnecessary NULL-thread check.
10612 2017-05-04 Pedro Alves <palves@redhat.com>
10614 * corelow.c (thread_section_name): New class.
10615 (get_core_register_section, get_core_siginfo): Use it.
10617 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10619 * corelow.c (sniff_core_bfd): Remove extra semicolon.
10620 (get_core_register_section): Remove xfree of NULL pointer.
10622 2017-05-03 Alan Hayward <alan.hayward@arm.com>
10624 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
10625 * regcache.c (regcache::raw_supply_zeroed): New function.
10626 * regcache.h (regcache::raw_supply_zeroed): New declaration.
10628 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
10630 * gdbarch.sh: Remove commented out definition of
10632 * gdbarch.h: Re-generate.
10634 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
10636 * configure: Regenerate.
10638 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
10640 * solib-target.c (solib_target_relocate_section_addresses):
10641 Remove num_section_bases, num_bases, segment_bases variables.
10643 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10645 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
10647 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10649 * solib-target.c: Include <vector>
10650 (struct lm_info_target) <~lm_info_target>: Remove.
10651 <segment_bases, section_bases>: Change type to
10652 std::vector<CORE_ADDR>.
10653 (library_list_start_segment, library_list_start_section,
10654 library_list_end_library,
10655 solib_target_relocate_section_addresses): Adjust.
10657 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10659 * gdbarch.sh (software_single_step): Change return type to
10660 std::vector<CORE_ADDR>.
10661 * gdbarch.c, gdbarch.h: Re-generate.
10662 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
10664 (arm_deal_with_atomic_sequence_raw): Adjust.
10665 (thumb_get_next_pcs_raw): Adjust.
10666 (arm_get_next_pcs_raw): Adjust.
10667 (arm_get_next_pcs): Adjust.
10668 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
10669 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
10670 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
10671 (alpha_software_single_step): Adjust.
10672 * alpha-tdep.h (alpha_software_single_step): Adjust.
10673 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
10674 * arm-tdep.c (arm_software_single_step): Adjust.
10675 (arm_breakpoint_kind_from_current_state): Adjust.
10676 * arm-tdep.h (arm_software_single_step): Adjust.
10677 * breakpoint.c (insert_single_step_breakpoint): Adjust.
10678 * cris-tdep.c (cris_software_single_step): Adjust.
10679 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
10680 (micromips_deal_with_atomic_sequence): Adjust.
10681 (deal_with_atomic_sequence): Adjust.
10682 (mips_software_single_step): Adjust.
10683 * mips-tdep.h (mips_software_single_step): Adjust.
10684 * moxie-tdep.c (moxie_software_single_step): Adjust.
10685 * nios2-tdep.c (nios2_software_single_step): Adjust.
10686 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
10687 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
10688 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
10689 * s390-linux-tdep.c (s390_software_single_step): Adjust.
10690 * sparc-tdep.c (sparc_software_single_step): Adjust.
10691 * spu-tdep.c (spu_software_single_step): Adjust.
10692 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
10694 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10696 * gdbarch.sh: Use semi-colon as field separator instead of colon.
10697 * gdbarch.h: Re-generate.
10699 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10701 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
10702 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
10703 * python/py-instruction.c, python/py-instruction.h: New file.
10704 * python/py-record.c: Add py-instruction.h include.
10705 (gdbpy_initialize_record): Make gdb.Instruction a super class of
10706 gdb.RecordInstruction.
10707 * python/python-internal.h: Add gdbpy_initialize_instruction
10709 * python/python.c (do_start_initialization): Add
10710 gdbpy_initialize_instruction.
10712 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10714 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
10716 (btrace_func_from_recpy_func): New function.
10717 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
10718 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
10719 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
10720 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
10721 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
10722 Also, use new helper functions.
10723 (btpy_list_item): Use new helper functions.
10724 (recpy_bt_function_call_history): Use new type name.
10725 (btpy_call_getset): Remove.
10726 (gdbpy_initialize_btrace): Remove code to initialize
10727 gdb.BtraceFunctionCall.
10728 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
10729 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
10730 recpy_bt_func_prev, recpy_bt_func_next): New export.
10731 * python/py-record.c (recpy_func_type): New static object.
10732 (recpy_func_new, recpy_func_level, recpy_func_symbol,
10733 recpy_func_instructions, recpy_func_up, recpy_func_prev,
10734 recpy_func_next): New function.
10735 (recpy_element_hash, recpy_element_richcompare): Updated comment.
10736 (recpy_func_getset): New static object.
10737 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
10738 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
10740 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10742 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
10743 (btpy_object, btpy_insn_type, btpy_new): Remove.
10744 (btpy_list_object): Use gdb.RecordInstruction type instead of
10745 gdb.BtraceInstruction type.
10746 (btrace_insn_from_recpy_insn): New function.
10747 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
10749 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
10750 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
10751 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
10752 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
10753 instead of btpy_object.
10754 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
10755 btpy_insn_data, btpy_insn_decode): Rename to ...
10756 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
10757 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
10758 recpy_bt_insn_decode): This. Also, use new helper functions.
10759 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
10761 (btpy_insn_getset): Remove.
10762 (gdbpy_initialize_btrace): Remove code to initialize
10763 gdb.BtraceInstruction. Use recpy_element_object.
10764 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
10765 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
10766 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
10767 * python/py-record.c (recpy_insn_type): New static object.
10768 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
10769 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
10770 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
10772 (recpy_insn_getset): New static object.
10773 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
10774 * python/py-record.h (recpy_element_object): New typedef.
10775 (recpy_insn_type, recpy_insn_new): New export.
10777 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10779 * py-record-btrace.c (btpy_insn_new): Removed.
10780 (btpy_insn_or_gap_new): New function.
10781 (btpy_insn_error): Removed.
10782 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
10783 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
10784 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
10785 btpy_insn_or_gap_new instead of btpy_insn_new.
10786 (btpy_insn_getset): Remove btpy_insn_error.
10787 * py-record.c (recpy_gap_type): New static object.
10788 (recpy_gap_object): New typedef.
10789 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
10790 recpy_gap_reason_string): New function.
10791 (recpy_gap_getset): New static object.
10792 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
10793 * py-record.h (recpy_gap_new): New export.
10795 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10797 * python/py-record.c (recpy_ptid): Remove.
10798 (recpy_record_getset): Remove recpy_ptid.
10800 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10802 * btrace.c (btrace_fetch): Set inferior_ptid.
10803 * python/py-record-btrace.c: Add "py-record.h" include.
10804 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
10805 recpy_bt_end, recpy_bt_instruction_history,
10806 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
10807 in gdb.Record object instead of current ptid.
10808 * python/py-record.c: Include new "py-record.h" file.
10809 (recpy_record_object): Moved to py-record.h.
10810 * python/py-record.h: New file.
10812 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10814 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
10815 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
10818 2017-05-01 Joel Brobecker <brobecker@adacore.com>
10820 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
10821 the past maintainers section.
10823 2017-04-28 Yao Qi <yao.qi@linaro.org>
10825 * infcmd.c (get_return_value): Use regcache ctor, and remove
10828 2017-04-28 Yao Qi <yao.qi@linaro.org>
10829 Pedro Alves <palves@redhat.com>
10831 * regcache.c (regcache::regcache): New tag dispatch ctor.
10832 (do_cooked_read): Moved above.
10833 (regcache_dup): Use the tag dispatch ctor..
10834 * regcache.h (regcache): Declare ctor, delete copy ctor and
10835 assignment operator, remove friend regcache_dup.
10837 2017-04-28 Yao Qi <yao.qi@linaro.org>
10839 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
10840 call method save instead of regcache_cpy.
10841 * regcache.h (struct regcache): Make regcache_dup a friend.
10843 2017-04-28 Yao Qi <yao.qi@linaro.org>
10845 * regcache.c (struct regcache): Move to regcache.h
10846 (regcache::arch): New method.
10847 (regcache_get_ptid): Update.
10848 (get_regcache_arch): Call arch method.
10849 (get_regcache_aspace): Call method aspace.
10850 (register_buffer): Change it to method.
10851 (regcache_save): Change it to regcache::save.
10852 (regcache_restore): Likewise.
10853 (regcache_cpy_no_passthrough): Remove the declaration.
10854 (regcache_cpy): Call methods restore and cpy_no_passthrough.
10855 (regcache_cpy_no_passthrough): Change it to method
10856 cpy_no_passthrough.
10857 (regcache_register_status): Change it to method
10858 get_register_status.
10859 (regcache_invalidate): Change it to method invalidate.
10860 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
10861 (regcache_raw_update): Change it to method raw_update.
10862 (regcache_raw_read): Likewise.
10863 (regcache_raw_read_signed): Likewise.
10864 (regcache_raw_read_unsigned): Likewise.
10865 (regcache_raw_write_signed): Likewise.
10866 (regcache_raw_write_unsigned): Likewise.
10867 (regcache_cooked_read): Likewise.
10868 (regcache_cooked_read_value): Likewise.
10869 (regcache_cooked_read_signed): Likewise.
10870 (regcache_cooked_read_unsigned): Likewise.
10871 (regcache_cooked_write_signed): Likewise.
10872 (regcache_cooked_write_unsigned): Likewise.
10873 (regcache_raw_set_cached_value): Likewise.
10874 (regcache_raw_write): Likewise.
10875 (regcache_cooked_write): Likewise.
10876 (regcache_xfer_part): Likewise.
10877 (regcache_raw_read_part): Likewise.
10878 (regcache_raw_write_part): Likewise.
10879 (regcache_cooked_read_part): Likewise.
10880 (regcache_cooked_write_part): Likewise.
10881 (regcache_raw_supply): Likewise.
10882 (regcache_raw_collect): Likewise.
10883 (regcache_transfer_regset): Likewise.
10884 (regcache_supply_regset): Likewise.
10885 (regcache_collect_regset): Likewise.
10886 (regcache_debug_print_register): Likewise.
10887 (enum regcache_dump_what): Move it to regcache.h.
10888 (regcache_dump): Change it to method dump.
10889 * regcache.h (enum regcache_dump_what): New.
10890 (class regcache): New.
10891 * target.c (target_fetch_registers): Call method
10892 debug_print_register.
10893 (target_store_registers): Likewise.
10895 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10897 * windows-nat.c (struct lm_info_windows): Initialize field.
10898 (windows_make_so): Allocate lm_info_windows with new.
10899 (windows_free_so): Free lm_info_windows with delete.
10901 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10903 * solib-darwin.c (struct lm_info_darwin): Initialize field.
10904 (darwin_current_sos): Allocate lm_info_darwin with new, remove
10906 (darwin_free_so): Free lm_info_darwin with delete.
10908 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10910 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
10911 <l_addr_p>: Change type to bool.
10912 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
10913 (svr4_free_so): Free lm_info_svr4 with delete.
10914 (svr4_copy_library_list): Replace memcpy with call to copy
10916 (library_list_start_library, svr4_default_sos): Allocate
10917 lm_info_svr4 with new.
10919 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10921 * solib-target.c (struct lm_info_target): Add destructor,
10923 <name>: Change type to std::string.
10924 (library_list_start_library): Allocate lm_info_target with new.
10925 (solib_target_free_library_list): Free lm_info_target with
10927 (solib_target_current_sos): Adapt to std::string.
10928 (solib_target_free_so): Free lm_info_target with delete.
10930 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10932 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
10934 (frv_current_sos): Allocate lm_info_frv with new.
10935 (frv_relocate_main_executable): Free lm_info_frv with delete,
10937 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
10939 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10941 * solib-frv.c (struct lm_info_frv): Fix indentation.
10943 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10945 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
10947 (dsbt_current_sos): Allocate lm_info_dsbt with new.
10948 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
10949 and allocate with new.
10950 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
10952 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10954 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
10955 <filename, member_name>: Change type to std::string.
10956 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
10957 (library_list_start_library): Allocate lm_info_aix with new.
10958 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
10959 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
10960 with copy constructor.
10962 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10964 * solist.h (struct lm_info): Remove.
10965 (struct lm_info_base): New class.
10966 (struct so_list) <lm_info>: Change type to lm_info_base *.
10967 * nto-tdep.c (struct lm_info): Remove.
10969 * solib-aix.c (struct lm_info): Rename to ...
10970 (struct lm_info_aix): ... this. Extend lm_info_base.
10971 (lm_info_p): Rename to ...
10972 (lm_info_aix_p): ... this, and adjust.
10973 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
10974 solib_aix_parse_libraries, library_list_start_library,
10975 solib_aix_free_library_list, solib_aix_parse_libraries,
10976 solib_aix_get_library_list,
10977 solib_aix_relocate_section_addresses, solib_aix_free_so,
10978 solib_aix_get_section_offsets,
10979 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
10981 (struct solib_aix_inferior_data) <library_list>: Adjust.
10982 * solib-darwin.c (struct lm_info): Rename to ...
10983 (struct lm_info_darwin): ... this. Extend lm_info_base.
10984 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
10985 * solib-dsbt.c (struct lm_info): Rename to ...
10986 (struct lm_info_dsbt): ... this. Extend lm_info_base.
10987 (struct dsbt_info) <main_executable_lm_info): Adjust.
10988 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
10989 dsbt_relocate_section_addresses): Adjust.
10990 * solib-frv.c (struct lm_info): Rename to ...
10991 (struct lm_info_frv): ... this. Extend lm_info_base.
10992 (main_executable_lm_info): Adjust.
10993 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
10994 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
10995 find_canonical_descriptor_in_load_object,
10996 frv_fdpic_find_canonical_descriptor): Adjust.
10997 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
10999 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
11000 svr4_clear_so, svr4_copy_library_list,
11001 library_list_start_library, svr4_default_sos, svr4_read_so_list,
11002 svr4_current_sos, svr4_fetch_objfile_link_map,
11003 solist_update_incremental): Adjust.
11004 * solib-svr4.h (struct lm_info_svr4): Move here from
11006 * solib-target.c (struct lm_info): Rename to ...
11007 (struct lm_info_target): ... this. Extend lm_info_base.
11008 (lm_info_p): Rename to ...
11009 (lm_info_target_p): ... this.
11010 (solib_target_parse_libraries, library_list_start_segment,
11011 library_list_start_section, library_list_start_library,
11012 library_list_end_library, solib_target_free_library_list,
11013 solib_target_current_sos, solib_target_free_so,
11014 solib_target_relocate_section_addresses): Adjust.
11015 * windows-nat.c (struct lm_info): Rename to ...
11016 (struct lm_info_windows): ... this. Extend lm_info_base.
11017 (windows_make_so, handle_load_dll, handle_unload_dll,
11018 windows_xfer_shared_libraries): Adjust.
11020 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11022 * solib-darwin.c (struct darwin_so_list): Remove.
11023 (darwin_current_sos): Allocate an so_list object instead of a
11024 darwin_so_list, separately allocate an lm_info object.
11025 (darwin_free_so): Free lm_info.
11027 2017-04-28 John Baldwin <jhb@FreeBSD.org>
11029 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
11030 with fprintf_filtered.
11032 2017-04-28 Yao Qi <yao.qi@linaro.org>
11034 * regcache.c (regcache::regcache): New function.
11035 (regcache::~regcache): New function.
11036 (regcache_xmalloc_1): Remove.
11037 (regcache_xmalloc): Call new regcache.
11038 (regcache_xfree): Call delete regcache.
11039 (get_thread_arch_aspace_regcache): Call new regcache.
11041 2017-04-28 Yao Qi <yao.qi@linaro.org>
11043 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
11044 lwp instead of ptid_get_lwp.
11046 2017-04-28 Yao Qi <yao.qi@linaro.org>
11048 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
11049 lwp_info instead of getting from inferior_ptid.
11051 2017-04-27 Keith Seitz <keiths@redhat.com>
11053 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
11054 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
11055 (CV_CONVERSION_BADNESS): Define.
11056 (rank_one_type): Remove overly restrictive rvalue reference
11058 Add cv-qualifier checks and subranks for type equality.
11059 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
11060 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
11061 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
11063 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
11065 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
11066 count when creating the object.
11068 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
11069 Ulrich Weigand <uweigand@de.ibm.com>
11071 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
11072 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
11074 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
11075 (process_xcoff_symbol): Likewise.
11076 (scan_xcoff_symtab): Likewise.
11078 2017-04-26 Alan Hayward <alan.hayward@arm.com>
11080 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
11081 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
11082 (ia64_access_reg): Use get_frame_register_unsigned.
11083 (ia64_access_rse_reg): Likewise.
11084 (ia64_libunwind_frame_prev_register): Likewise.
11086 2017-04-26 Jiong Wang <jiong.wang@arm.com>
11088 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
11089 * gdbarch.c: Regenerated.
11090 * gdbarch.h: Regenerated.
11091 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
11092 visibility external.
11093 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
11094 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
11095 (enum cfa_how_kind): Move to ...
11096 (struct dwarf2_frame_state_reg_info): Likewise.
11097 (struct dwarf2_frame_state): Likewise.
11098 * dwarf2-frame.h: ... here.
11099 (dwarf2_frame_state_alloc_regs): New declaration.
11100 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
11101 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
11103 2017-04-26 Alan Hayward <alan.hayward@arm.com>
11105 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
11106 regcache_raw_read_unsigned.
11107 (xtensa_pseudo_register_write): Likewise.
11109 2017-04-26 Alan Hayward <alan.hayward@arm.com>
11111 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
11112 (nds32_pseudo_register_write): Likewise.
11114 2017-04-25 Yao Qi <yao.qi@linaro.org>
11116 * regcache.c (struct regcache) <readonly_p>: Change its type
11118 (regcache_xmalloc_1): Update parameter type and callers update.
11120 2017-04-25 Yao Qi <yao.qi@linaro.org>
11122 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
11123 set_gdbarch_wchar_bit.
11124 * arm-tdep.c (arm_gdbarch_init): Likewise.
11126 2017-04-25 Pedro Alves <palves@redhat.com>
11128 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
11129 (BothAreRelocatable, memcopy, memmove): Don't define.
11130 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
11133 2017-04-25 Pedro Alves <palves@redhat.com>
11135 * common/common-defs.h: Include "common/poison.h".
11136 * common/function-view.h: (Not, Or, Requires): Move to traits.h
11138 * common/poison.h: New file.
11139 * common/traits.h: Include <type_traits>.
11140 (Not, Or, Requires): New, moved from common/function-view.h.
11142 2017-04-25 Pedro Alves <palves@redhat.com>
11144 * breakpoint.h (struct breakpoint): In-class initialize all
11145 fields. Make boolean fields "bool".
11146 * breakpoint.c (init_raw_breakpoint_without_location): Remove
11147 memset call and initializations no longer necessary.
11149 2017-04-25 Pedro Alves <palves@redhat.com>
11151 * btrace.c (pt_btrace_insn_flags): Change parameter type to
11153 (pt_btrace_insn): New function.
11154 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
11156 2017-04-25 Pedro Alves <palves@redhat.com>
11158 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
11159 "base" field and inherit from "bp_location" instead. Add
11161 (allocate_location_exception): Use new non-default ctor.
11162 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
11163 (init_bp_location): Convert to ...
11164 (bp_location::bp_location): ... this new ctor, and remove memset
11166 (base_breakpoint_allocate_location): Use the new non-default ctor.
11167 * breakpoint.h (bp_location): Now a class. Declare default and
11168 non-default ctors. In-class initialize all members.
11169 (init_bp_location): Remove declaration.
11171 2017-04-25 Pedro Alves <palves@redhat.com>
11173 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
11174 assignment operator.
11176 2017-04-24 Yao Qi <yao.qi@linaro.org>
11178 * doublest.c (convert_doublest_to_floatformat): Call
11179 floatformat_totalsize_bytes.
11181 2017-04-22 Tom Tromey <tom@tromey.com>
11183 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
11185 * stack.c (print_frame): Use ui_out_emit_list.
11186 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
11188 * mi/mi-main.c (print_one_inferior)
11189 (mi_cmd_data_list_register_names)
11190 (mi_cmd_data_list_register_values, mi_cmd_list_features)
11191 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
11193 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
11194 (mi_output_solib_attribs): Use ui_out_emit_list,
11196 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
11197 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
11198 (mi_cmd_stack_list_args, list_args_or_locals): Use
11200 * disasm.c (do_assembly_only): Use ui_out_emit_list.
11201 * breakpoint.c (print_solib_event, output_thread_groups): Use
11204 2017-04-22 Tom Tromey <tom@tromey.com>
11206 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
11207 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
11208 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
11210 2017-04-22 Tom Tromey <tom@tromey.com>
11212 * tracepoint.c (tvariables_info_1)
11213 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
11215 2017-04-22 Tom Tromey <tom@tromey.com>
11217 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
11218 annotate_arg_emitter.
11219 * breakpoint.c (print_mention_watchpoint)
11220 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
11221 * annotate.h (struct annotate_arg_emitter): New.
11223 2017-04-22 Tom Tromey <tom@tromey.com>
11225 * record-btrace.c (record_btrace_insn_history)
11226 (record_btrace_insn_history_range, record_btrace_call_history)
11227 (record_btrace_call_history_range): Use ui_out_emit_tuple.
11228 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
11230 * stack.c (print_frame_info): Use ui_out_emit_tuple.
11231 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
11232 * skip.c (skip_info): Use ui_out_emit_tuple.
11233 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
11234 * progspace.c (print_program_space): Use ui_out_emit_tuple.
11235 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
11236 * osdata.c (info_osdata): Use ui_out_emit_tuple.
11237 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
11239 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
11240 (output_register, mi_cmd_data_read_memory)
11241 (mi_cmd_data_read_memory_bytes, mi_load_progress)
11242 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
11243 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
11244 Use ui_out_emit_tuple.
11245 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
11247 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11248 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
11249 * linux-thread-db.c (info_auto_load_libthread_db): Use
11251 * inferior.c (print_inferior): Use ui_out_emit_tuple.
11252 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
11253 * disasm.c (do_mixed_source_and_assembly_deprecated)
11254 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
11255 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
11256 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
11257 * breakpoint.c (print_one_breakpoint_location)
11258 (print_one_breakpoint): Use ui_out_emit_tuple.
11259 * auto-load.c (print_script, info_auto_load_cmd): Use
11261 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
11263 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
11265 * thread.c (print_thread_info_1): Remove dead code.
11267 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11269 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
11271 * arm-tdep.c (selftests::arm_record_test): Likewise.
11273 2017-04-21 Yao Qi <yao.qi@linaro.org>
11275 * regcache.c (regcache_restore): Remove argument 2. Replace
11276 argument 3 with regcache. Get register status from
11277 src->register_status and get register contents from
11278 register_buffer (src, regnum).
11279 (regcache_cpy): Update.
11281 2017-04-19 Pedro Alves <palves@redhat.com>
11283 * gdbthread.h (thread): Add missing closing parenthesis in
11286 2017-04-19 Pedro Alves <palves@redhat.com>
11288 * common/refcounted-object.h: New file.
11289 * gdbthread.h: Include "common/refcounted-object.h".
11290 (thread_info): Inherit from refcounted_object and add comments.
11291 (thread_info::incref, thread_info::decref)
11292 (thread_info::m_refcount): Delete.
11293 (thread_info::deletable): Use the refcounted_object::refcount()
11295 * inferior.c (current_inferior_): Add comment.
11296 (set_current_inferior): Increment/decrement refcounts.
11297 (prune_inferiors, remove_inferior_command): Skip inferiors marked
11298 not-deletable instead of comparing with the current inferior.
11299 (initialize_inferiors): Increment the initial inferior's refcount.
11300 * inferior.h (struct inferior): Forward declare.
11301 Include "common/refcounted-object.h".
11302 (current_inferior, set_current_inferior): Move declaration to
11303 before struct inferior's definition, and fix comment.
11304 (inferior): Inherit from refcounted_object. Add comments.
11305 * thread.c (switch_to_thread_no_regs): Reference the thread's
11306 inferior pointer directly instead of doing a ptid lookup.
11307 (switch_to_no_thread): New function.
11308 (switch_to_thread(thread_info *)): New function, factored out
11310 (switch_to_thread(ptid_t)): ... this.
11311 (restore_current_thread): Delete.
11312 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
11313 fields, and add 'inf' field.
11314 (do_restore_current_thread_cleanup): Check whether old->inf is
11315 alive instead of looking up an inferior by ptid. Use
11316 switch_to_thread and switch_to_no_thread.
11317 (restore_current_thread_cleanup_dtor): Use old->inf directly
11318 instead of lookup up an inferior by id. Decref the inferior.
11319 Don't restore 'removable'.
11320 (make_cleanup_restore_current_thread): Same the inferior pointer
11321 in old, instead of the inferior number. Incref the inferior.
11322 Don't save/clear 'removable'.
11324 2017-04-19 Pedro Alves <palves@redhat.com>
11326 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11327 unittests/scoped_restore-selftests.c.
11328 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
11329 * common/scoped_restore.h (scoped_restore_base): Make "class".
11330 (scoped_restore_base::release): New public method.
11331 (scoped_restore_base::scoped_restore_base): New protected ctor.
11332 (scoped_restore_base::m_saved_var): New protected field.
11333 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
11334 scoped_restore_base base class instead of m_saved_var directly.
11335 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
11336 (scoped_restore_tmpl::scoped_restore_tmpl(const
11337 scoped_restore_tmpl<T>&)): Likewise.
11338 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
11340 (scoped_restore_tmpl::saved_var): New method.
11341 (scoped_restore_tmpl::m_saved_var): Delete.
11342 * inferior.h (inferior::detaching): Now a bool.
11343 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
11345 * unittests/scoped_restore-selftests.c: New file.
11347 2017-04-19 Pedro Alves <palves@redhat.com>
11349 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
11350 Re-sort in alphabetic order.
11352 2017-04-18 Pedro Alves <palves@redhat.com>
11354 * xml-support.c (obstack_xml_printf): Delete.
11355 * xml-support.h (obstack_xml_printf): Delete.
11357 2017-04-18 Pedro Alves <palves@redhat.com>
11359 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
11360 vdebug, verror, body_text, start_element, end_element, name,
11361 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
11362 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
11363 is_xinclude>: Make private and add m_ prefix.
11364 (gdb_xml_parser::body_text): New method, based on ...
11365 (gdb_xml_body_text): ... this. Adjust.
11366 (gdb_xml_parser::vdebug): New method, based on ...
11367 (gdb_xml_debug): ... this. Adjust.
11368 (gdb_xml_parser::verror): New method, based on ...
11369 (gdb_xml_error): ... this. Adjust.
11370 (gdb_xml_parser::start_element): New method, based on ...
11371 (gdb_xml_start_element): ... this. Adjust.
11372 (gdb_xml_start_element_wrapper): Defer to
11373 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
11374 (gdb_xml_parser::end_element): New method, based on ...
11375 (gdb_xml_end_element_wrapper): ... this. Adjust.
11376 (gdb_xml_parser::~gdb_xml_parser): Adjust.
11377 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
11378 (gdb_xml_parser::use_dtd): New method, based on ...
11379 (gdb_xml_use_dtd): ... this. Adjust.
11380 (gdb_xml_parser::parse): New method, based on ...
11381 (gdb_xml_parse): ... this. Adjust.
11382 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
11383 (xinclude_start_include): Adjust to call the parser's name method.
11384 (xml_xinclude_default, xml_xinclude_start_doctype)
11385 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
11387 (xml_process_xincludes): Adjust to call parser methods.
11388 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
11391 2017-04-18 Pedro Alves <palves@redhat.com>
11393 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
11394 gdb::optional<std::string>.
11395 * xml-support.c: Include <string>.
11396 (scope_level::scope_level(scope_level &&))
11397 (scope_level::~scope_level): Delete.
11398 (scope_level::body): Now a std::string.
11399 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
11400 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
11402 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
11403 (xinclude_parsing_data::output): Now a std::string reference.
11404 (xinclude_start_include): Adjust.
11405 (xml_xinclude_default): Adjust.
11406 (xml_process_xincludes): Add 'output' parameter, and return bool.
11407 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
11409 * xml-tdesc.c: Include <unordered_map> and <string>.
11410 (tdesc_xml_cache): Delete.
11411 (tdesc_xml_cache_s): Delete.
11412 (xml_cache): Now an std::unordered_map.
11413 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
11414 (target_fetch_description_xml): Change return type to
11415 gdb::optional<std::string>, and adjust.
11416 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
11417 (target_fetch_description_xml): Change return type to
11418 gdb::optional<std::string>.
11420 2017-04-18 Pedro Alves <palves@redhat.com>
11422 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11423 unittests/optional-selftests.c.
11424 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
11425 * unittests/optional-selftests.c: New file.
11426 * unittests/optional/assignment/1.cc: New file.
11427 * unittests/optional/assignment/2.cc: New file.
11428 * unittests/optional/assignment/3.cc: New file.
11429 * unittests/optional/assignment/4.cc: New file.
11430 * unittests/optional/assignment/5.cc: New file.
11431 * unittests/optional/assignment/6.cc: New file.
11432 * unittests/optional/assignment/7.cc: New file.
11433 * unittests/optional/cons/copy.cc: New file.
11434 * unittests/optional/cons/default.cc: New file.
11435 * unittests/optional/cons/move.cc: New file.
11436 * unittests/optional/cons/value.cc: New file.
11437 * unittests/optional/in_place.cc: New file.
11438 * unittests/optional/observers/1.cc: New file.
11439 * unittests/optional/observers/2.cc: New file.
11441 2017-04-18 Pedro Alves <palves@redhat.com>
11443 * common/gdb_optional.h: Include common/traits.h.
11444 (in_place_t): New type.
11445 (in_place): New constexpr variable.
11446 (optional::optional): Remove member initialization of
11448 (optional::optional(in_place_t...)): New constructor.
11449 (optional::~optional): Use reset.
11450 (optional::optional(const optional&)): New.
11451 (optional::optional(const optional&&)): New.
11452 (optional::optional(T &)): New.
11453 (optional::optional(T &&)): New.
11454 (operator::operator=(const optional &)): New.
11455 (operator::operator=(optional &&)): New.
11456 (operator::operator= (const T &))
11457 (operator::operator= (T &&))
11458 (operator::emplace (Args &&... args)): Return a T&. Use reset.
11459 (operator::reset): New.
11460 (operator::m_instantiated):: Add in-class initializer.
11461 * common/traits.h: Include <type_traits>.
11462 (struct And): New types.
11464 2017-04-18 Pedro Alves <palves@redhat.com>
11466 * xml-support.c: Include <vector>.
11467 (scope_level::scope_level(const gdb_xml_element *))
11468 (scope_level::scope_level(scope_level&&)): New.
11469 (scope_level::~scope_level): New.
11470 (scope_level_s): Delete.
11471 (gdb_xml_parser::scopes): Now a std::vector.
11472 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
11474 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
11475 scope cleanup code.
11476 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
11477 of the scopes member. Use std::vector::emplace_back.
11479 2017-04-18 Pedro Alves <palves@redhat.com>
11481 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
11483 (gdb_xml_end_element): Change type of first parameter.
11484 (gdb_xml_cleanup): Rename to ...
11485 (gdb_xml_parser::~gdb_xml_parser): ... this.
11486 (gdb_xml_create_parser_and_cleanup): Delete with ...
11487 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
11489 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
11490 using gdb_xml_create_parser_and_cleanup.
11491 (xinclude_parsing_data): Add ctor/dtor.
11492 (xml_xinclude_cleanup): Delete.
11493 (xml_process_xincludes): Create a local xinclude_parsing_data
11494 instead of heap-allocating one. Create a local gdb_xml_parser
11495 instead of heap-allocating one with
11496 gdb_xml_create_parser_and_cleanup.
11498 2017-04-18 John Baldwin <jhb@FreeBSD.org>
11501 * fbsd-nat.c (resume_one_thread_cb): Remove.
11502 (resume_all_threads_cb): Remove.
11503 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
11504 iterate_over_threads.
11506 2017-04-17 Joel Brobecker <brobecker@adacore.com>
11508 * NEWS: Create a new section for the next release branch.
11509 Rename the section of the current branch, now that it has
11512 2017-04-17 Joel Brobecker <brobecker@adacore.com>
11514 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
11515 * version.in: Bump version to 8.0.50.DATE-git.
11517 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
11520 * windows-nat.c (windows_create_inferior): Declare 'allargs'
11521 independently of the host, and fix build breakage on Cygwin.
11523 2017-04-13 Pedro Alves <palves@redhat.com>
11525 * inferior.c (free_inferior): Convert to ...
11526 (inferior::~inferior): ... this dtor.
11527 (inferior::inferior): New ctor, factored out from ...
11528 (add_inferior_silent): ... here. Allocate the inferior with a new
11530 (delete_inferior): Call delete instead of free_inferior.
11531 * inferior.h (gdb_environ, continuation): Forward declare.
11532 (inferior): Now a class. Add in-class initialization to all
11533 members. Make boolean fields bool, except 'detaching'.
11534 (inferior::inferior): New explicit ctor.
11535 (inferior::~inferior): New.
11537 2017-04-13 Pedro Alves <palves@redhat.com>
11539 * inferior.c (init_inferior_list): Delete.
11540 * inferior.h (init_inferior_list): Delete.
11542 2017-04-13 Pedro Alves <palves@redhat.com>
11545 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
11546 (top level): Call it twice, with different thread sets.
11548 2017-04-13 Pedro Alves <palves@redhat.com>
11550 * thread.c: Include <algorithm>.
11551 (thread_array_cleanup): Delete.
11552 (scoped_inc_dec_ref): New class.
11553 (live_threads_count): New function.
11554 (set_thread_refcount): Delete.
11555 (tp_array_compar_ascending): Now a bool.
11556 (tp_array_compar): Convert to a std::sort comparison function.
11557 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
11558 and live_threads_count.
11560 2017-04-13 Pedro Alves <palves@redhat.com>
11562 * infrun.c (follow_fork_inferior): Also switch the current
11565 2017-04-13 Pedro Alves <palves@redhat.com>
11567 * breakpoint.c (watch_command_1): Save watchpoint-frame info
11568 before calling create_internal_breakpoint.
11570 2017-04-13 Pedro Alves <palves@redhat.com>
11572 * fork-child.c (execv_argv): New class.
11573 (breakup_args): Refactored as ...
11574 (execv_argv::init_for_no_shell): .. this method of execv_argv.
11575 Copy arguments to storage and replace separators with NULL
11576 terminators in place.
11577 (escape_bang_in_quoted_argument): Adjust to return bool.
11578 (execv_argv::execv_argv): New ctor.
11579 (execv_argv::init_for_shell): New method, factored out from
11580 fork_inferior. Don't strdup strings into the vector.
11581 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
11582 Remove free_vector_argv call.
11584 2017-04-13 Yao Qi <yao.qi@linaro.org>
11586 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
11589 2017-04-13 Yao Qi <yao.qi@linaro.org>
11591 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
11592 * rx-tdep.c (rx_gdbarch_init): Likewise.
11594 2017-04-13 Pedro Alves <palves@redhat.com>
11596 * breakpoint.h (struct breakpoint): Reindent.
11598 2017-04-13 Pedro Alves <palves@redhat.com>
11600 * breakpoint.c (bp_location): Rename to ...
11601 (bp_locations): ... this. All references updated.
11602 (bp_location_count): Rename to ...
11603 (bp_locations_count): ... this. All references updated.
11604 (bp_location_placed_address_before_address_max): Rename to ...
11605 (bp_locations_placed_address_before_address_max): ... this. All
11606 references updated.
11607 (bp_location_shadow_len_after_address_max): Rename to ...
11608 (bp_locations_shadow_len_after_address_max): ... this. All
11609 references updated.
11610 (bp_location_compare_addrs): Rename to ...
11611 (bp_locations_compare_addrs): ... this. All references updated.
11612 (bp_location_compare):Rename to ...
11613 (bp_locations_compare): ... this. All references updated.
11614 (bp_location_target_extensions_update): Rename to ...
11615 (bp_locations_target_extensions_update): ... this. All references
11618 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11620 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
11621 * common/common.m4: Check headers 'termios.h', 'termio.h' and
11623 * common/gdb_termios.h: New file, with parts of "terminal.h".
11624 * inflow.c: Include "gdb_termios.h".
11625 * ser-unix.c: Include "gdb_termios.h".
11626 * terminal.h: Move terminal-related defines to
11627 "common/gdb_termios.h".
11629 2017-04-12 Tom Tromey <tom@tromey.com>
11631 * probe.c (parse_probes): Update.
11632 * location.h (delete_event_location): Don't declare.
11633 (event_location_deleter::operator()): Update.
11634 * location.c (event_location_deleter::operator()): Rename from
11635 delete_event_location.
11636 * linespec.h (linespec_result) <location>: Change type to
11638 * linespec.c (canonicalize_linespec, event_location_to_sals)
11639 (decode_objc): Update.
11640 (linespec_result): Don't call delete_event_location.
11641 * breakpoint.c (create_breakpoints_sal)
11642 (bkpt_probe_create_sals_from_location)
11643 (strace_marker_create_sals_from_location): Update.
11645 2017-04-12 Tom Tromey <tom@tromey.com>
11647 * linespec.h (struct linespec_result): Add constructor and
11649 (init_linespec_result, destroy_linespec_result)
11650 (make_cleanup_destroy_linespec_result): Don't declare.
11651 * linespec.c (init_linespec_result): Remove.
11652 (linespec_result::~linespec_result): Rename from
11653 destroy_linespec_result. Update.
11654 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
11656 * breakpoint.c (create_breakpoint, break_range_command)
11657 (decode_location_default): Update.
11658 * ax-gdb.c (agent_command_1): Update.
11660 2017-04-12 Tom Tromey <tom@tromey.com>
11662 * remote.c (remote_download_tracepoint): Update.
11663 * python/py-breakpoint.c (bppy_get_location): Update.
11664 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
11665 (gdbscm_breakpoint_location): Update.
11666 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
11667 * breakpoint.h (struct breakpoint) <location, location_range_end>:
11668 Change type to event_location_up.
11669 * breakpoint.c (create_overlay_event_breakpoint)
11670 (create_longjmp_master_breakpoint)
11671 (create_std_terminate_master_breakpoint)
11672 (create_exception_master_breakpoint)
11673 (breakpoint_event_location_empty_p, print_breakpoint_location)
11674 (print_one_breakpoint_location, create_thread_event_breakpoint)
11675 (init_breakpoint_sal, create_breakpoint)
11676 (print_recreate_ranged_breakpoint, break_range_command)
11677 (init_ada_exception_breakpoint, say_where): Update.
11678 (base_breakpoint_dtor): Don't call delete_event_location.
11679 (bkpt_print_recreate, tracepoint_print_recreate)
11680 (dprintf_print_recreate, update_static_tracepoint)
11681 (breakpoint_re_set_default): Update.
11683 2017-04-12 Tom Tromey <tom@tromey.com>
11685 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
11686 type of "to_do". Update.
11687 (compute_stack_depth): Use std::vector.
11689 2017-04-12 Tom Tromey <tom@tromey.com>
11691 * printcmd.c (find_instruction_backward): Use std::vector.
11693 2017-04-12 Tom Tromey <tom@tromey.com>
11695 * symfile.c (objfilep): Remove typedef.
11696 (reread_symbols): Use a std::vector.
11698 2017-04-12 Tom Tromey <tom@tromey.com>
11700 * mi/mi-main.c (exec_direction_forward): Remove.
11701 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
11702 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
11704 * guile/guile.c (guile_repl_command, guile_command)
11705 (gdbscm_execute_gdb_command): Use scoped_restore.
11706 * go-exp.y (go_parse): Use scoped_restore.
11707 * d-exp.y (d_parse): Use scoped_restore.
11708 * cli/cli-decode.c (cmd_func): Use scoped_restore.
11709 * c-exp.y (c_parse): Use scoped_restore.
11711 2017-04-12 Tom Tromey <tom@tromey.com>
11713 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
11714 (mi_parse): Update return type.
11715 (mi_parse_free): Remove.
11716 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
11717 (mi_parse::~mi_parse): Rename from mi_parse_free.
11718 (mi_parse_cleanup): Remove.
11719 (mi_parse): Return a unique_ptr. Use new.
11720 * mi/mi-main.c (mi_execute_command): Update.
11722 2017-04-12 Tom Tromey <tom@tromey.com>
11724 * location.c (explicit_location_lex_one): Return a
11725 unique_xmalloc_ptr.
11726 (string_to_explicit_location): Update. Remove cleanups.
11728 2017-04-12 Tom Tromey <tom@tromey.com>
11730 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
11731 (compare_value_and_voffset): Change type. Update.
11732 (compute_vtable_size): Change type of "offset_vec".
11733 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
11734 (gnuv3_get_typeid): Remove extraneous declaration.
11736 2017-04-12 Tom Tromey <tom@tromey.com>
11738 * charset.h (wchar_iterator): Fix comment.
11740 2017-04-12 Tom Tromey <tom@tromey.com>
11742 * charset.c (iconv_wrapper): New class.
11743 (cleanup_iconv): Remove.
11744 (convert_between_encodings): Use it.
11746 2017-04-12 Tom Tromey <tom@tromey.com>
11748 * symfile.h (increment_reading_symtab): Update type.
11749 * symfile.c (decrement_reading_symtab): Remove.
11750 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
11751 * psymtab.c (psymtab_to_symtab): Update.
11752 * dwarf2read.c (dw2_instantiate_symtab): Update.
11754 2017-04-12 Tom Tromey <tom@tromey.com>
11756 * jit.c (struct jit_reader): Declare separately. Add constructor
11757 and destructor. Change type of "handle".
11758 (loaded_jit_reader): Define separately.
11759 (jit_reader_load): Update. New "new".
11760 (jit_reader_unload_command): Use "delete".
11761 * gdb-dlfcn.h (struct dlclose_deleter): New.
11762 (gdb_dlhandle_up): New typedef.
11763 (gdb_dlopen, gdb_dlsym): Update types.
11764 (gdb_dlclose): Remove.
11765 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
11766 (gdb_dlsym): Change type of "handle".
11767 (make_cleanup_dlclose): Remove.
11768 (dlclose_deleter::operator()): Rename from gdb_dlclose.
11769 * compile/compile-c-support.c (load_libcc): Update.
11771 2017-04-12 Tom Tromey <tom@tromey.com>
11773 * symtab.h (find_pcs_for_symtab_line): Change return type.
11774 * symtab.c (find_pcs_for_symtab_line): Change return type.
11775 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
11776 type of "vec". Update.
11777 (ltpy_get_pcs_for_line): Update.
11778 * linespec.c (decode_digits_ordinary): Update.
11780 2017-04-12 Tom Tromey <tom@tromey.com>
11782 * tracepoint.c (actions_command): Update.
11783 * python/python.c (python_command, python_interactive_command):
11785 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
11786 * guile/guile.c (guile_command): Update.
11787 * defs.h (read_command_lines, read_command_lines_1): Return
11789 (command_lines_deleter): New struct.
11790 (command_line_up): New typedef.
11791 * compile/compile.c (compile_code_command)
11792 (compile_print_command): Update.
11793 * cli/cli-script.h (get_command_line, copy_command_lines): Return
11795 (make_cleanup_free_command_lines): Remove.
11796 * cli/cli-script.c (get_command_line, read_command_lines_1)
11797 (copy_command_lines): Return command_line_up.
11798 (while_command, if_command, read_command_lines, define_command)
11799 (document_command): Update.
11800 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
11802 * breakpoint.h (breakpoint_set_commands): Change type of
11804 * breakpoint.c (breakpoint_set_commands): Change type of
11805 "commands". Update.
11806 (do_map_commands_command, update_dprintf_command_list)
11807 (create_tracepoint_from_upload): Update.
11809 2017-04-12 Tom Tromey <tom@tromey.com>
11811 * tracepoint.c (scope_info): Update.
11812 * spu-tdep.c (spu_catch_start): Update.
11813 * python/python.c (gdbpy_decode_line): Update.
11814 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
11815 * python/py-breakpoint.c (bppy_init): Update.
11816 * probe.c (parse_probes): Update.
11817 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
11818 * location.h (event_location_deleter): New struct.
11819 (event_location_up): New typedef.
11820 (new_linespec_location, new_address_location, new_probe_location)
11821 (new_explicit_location, copy_event_location)
11822 (string_to_event_location, string_to_event_location_basic)
11823 (string_to_explicit_location): Update return type.
11824 (make_cleanup_delete_event_location): Remove.
11825 * location.c (new_linespec_location, new_address_location)
11826 (new_probe_location, new_explicit_location, copy_event_location):
11827 Return event_location_up.
11828 (delete_event_location_cleanup)
11829 (make_cleanup_delete_event_location): Remove.
11830 (string_to_explicit_location, string_to_event_location_basic)
11831 (string_to_event_location): Return event_location_up.
11832 * linespec.c (canonicalize_linespec, event_location_to_sals)
11833 (decode_line_with_current_source)
11834 (decode_line_with_last_displayed, decode_objc): Update.
11835 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11836 * completer.c (location_completer): Update.
11837 * cli/cli-cmds.c (edit_command, list_command): Update.
11838 * breakpoint.c (create_overlay_event_breakpoint)
11839 (create_longjmp_master_breakpoint)
11840 (create_std_terminate_master_breakpoint)
11841 (create_exception_master_breakpoint)
11842 (create_thread_event_breakpoint): Update.
11843 (init_breakpoint_sal): Update. Remove some dead code.
11844 (create_breakpoint_sal): Change type of "location". Update.
11845 (create_breakpoints_sal, create_breakpoint, break_command_1)
11846 (dprintf_command, break_range_command, until_break_command)
11847 (init_ada_exception_breakpoint)
11848 (strace_marker_create_sals_from_location)
11849 (update_static_tracepoint, trace_command, ftrace_command)
11850 (strace_command, create_tracepoint_from_upload): Update.
11851 * break-catch-throw.c (re_set_exception_catchpoint): Update.
11852 * ax-gdb.c (agent_command_1): Update.
11854 2017-04-12 Pedro Alves <palves@redhat.com>
11856 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
11857 * configure.tgt: Handle i[34567]86-*-go32* and
11858 i[34567]86-*-msdosdjgpp*.
11859 * i386-tdep.c (i386_svr4_reg_to_regnum):
11861 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
11863 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
11864 * i386-go32-tdep.c: New file.
11865 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
11868 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
11870 * aix-thread.c (pd_status2str): Change return type to const char *.
11872 2017-04-12 Pedro Alves <palves@redhat.com>
11874 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
11875 calls to set_gdbarch_gnu_triplet_regexp.
11877 2017-04-12 Pedro Alves <palves@redhat.com>
11880 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
11882 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
11883 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
11884 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
11885 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
11886 * gdbarch.h, gdbarch.c: Regenerate.
11887 * aarch64-tdep.c (aarch64_gdbarch_init): Override
11888 gdbarch_wchar_bit and gdbarch_wchar_signed.
11889 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
11890 * arm-tdep.c (arm_gdbarch_init): Likewise.
11891 * avr-tdep.c (avr_gdbarch_init): Likewise.
11892 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11893 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
11894 * i386-tdep.c (i386_go32_init_abi): Likewise.
11895 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11896 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11897 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11898 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11899 * sh-tdep.c (sh_gdbarch_init): Likewise.
11900 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11901 * sparc64-tdep.c (sparc64_init_abi): Likewise.
11902 * windows-tdep.c (windows_init_abi): Likewise.
11903 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11905 2017-04-12 Pedro Alves <palves@redhat.com>
11908 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
11909 cplus_primitive_type_char32_t>: New enum values.
11910 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
11911 and cplus_primitive_type_char32_t.
11912 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
11913 32, use the archtecture's built-in type for char16_t and char32_t,
11914 respectively. Otherwise, fallback to init_integer_type as before,
11915 but make the type unsigned, and issue a complaint.
11916 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
11918 2017-04-12 Alan Hayward <alan.hayward@arm.com>
11920 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
11921 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
11923 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11925 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
11928 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11930 * common/common-utils.c (free_vector_argv): New function.
11931 * common/common-utils.h: Include <vector>.
11932 (free_vector_argv): New prototype.
11933 * darwin-nat.c (darwin_create_inferior): Rewrite function
11934 prototype in order to constify "exec_file" and accept a
11935 "std::string" for "allargs".
11936 * fork-child.c: Include <vector>.
11937 (breakup_args): Rewrite function, using C++.
11938 (fork_inferior): Rewrite function header, constify "exec_file_arg"
11939 and accept "std::string" for "allargs". Update the code to
11940 calculate "argv" based on "allargs". Update calls to "exec_fun"
11942 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
11943 order to constify "exec_file" and accept a "std::string" for
11945 * go32-nat.c (go32_create_inferior): Likewise.
11946 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
11947 * infcmd.c (run_command_1): Constify "exec_file". Use
11948 "std::string" for inferior arguments.
11949 * inferior.h (fork_inferior): Update prototype.
11950 * linux-nat.c (linux_nat_create_inferior): Rewrite function
11951 prototype in order to constify "exec_file" and accept a
11952 "std::string" for "allargs".
11953 * nto-procfs.c (procfs_create_inferior): Likewise.
11954 * procfs.c (procfs_create_inferior): Likewise.
11955 * remote-sim.c (gdbsim_create_inferior): Likewise.
11956 * remote.c (extended_remote_run): Update code to accept
11957 "std::string" as argument.
11958 (extended_remote_create_inferior): Rewrite function prototype in
11959 order to constify "exec_file" and accept a "std::string" for
11961 * rs6000-nat.c (super_create_inferior): Likewise.
11962 (rs6000_create_inferior): Likewise.
11963 * target.h (struct target_ops) <to_create_inferior>: Likewise.
11964 * windows-nat.c (windows_create_inferior): Likewise.
11966 2017-04-11 Pedro Alves <palves@redhat.com>
11968 * thread.c: Fix whitespace throughout.
11970 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
11972 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
11974 2017-04-11 Alan Hayward <alan.hayward@arm.com>
11976 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
11978 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
11981 * osdata.c (info_osdata): Check if 'type' is an empty string
11984 2017-04-10 Pedro Alves <palves@redhat.com>
11986 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
11987 (ptid_to_global_thread_id, in_thread_list)
11988 (do_captured_list_thread_ids, set_resumed, set_running)
11989 (set_executing, set_stop_requested, finish_thread_state)
11990 (validate_registers_access, can_access_registers_ptid)
11991 (print_thread_info_1, switch_to_thread)
11992 (do_restore_current_thread_cleanup)
11993 (make_cleanup_restore_current_thread, thread_command)
11994 (thread_name_command): Use operator== instead of ptid_equal.
11996 2017-04-10 Pedro Alves <palves@redhat.com>
11998 * thread.c (struct current_thread_cleanup) <next>: Delete field.
11999 (current_thread_cleanup_chain): Delete.
12000 (restore_current_thread_cleanup_dtor)
12001 (make_cleanup_restore_current_thread): Remove references to
12002 current_thread_cleanup_chain.
12004 2017-04-10 Alan Hayward <alan.hayward@arm.com>
12006 * msp430-tdep.c (msp430_pseudo_register_read): Never return
12009 2017-04-10 Yao Qi <yao.qi@linaro.org>
12012 * gdbthread.h (thread_info::deletable): New method.
12013 (thread_info::incref): New method.
12014 (thread_info::decref): New method.
12015 (thread_info::refcount): Move it to private.
12016 * infrun.c (save_stop_context): Call inc_refcount.
12017 (release_stop_context_cleanup): Likewise.
12018 * thread.c (set_thread_exited): New function.
12019 (init_thread_list): Delete "tp" only it is deletable, otherwise
12020 call set_thread_exited.
12021 (delete_thread_1): Call set_thread_exited.
12022 (current_thread_cleanup) <inferior_pid>: Remove.
12023 <thread>: New field.
12024 (restore_current_thread_ptid_changed): Removed.
12025 (do_restore_current_thread_cleanup): Adjust.
12026 (restore_current_thread_cleanup_dtor): Don't call
12028 (set_thread_refcount): Use dec_refcount.
12029 (make_cleanup_restore_current_thread): Adjust.
12030 (thread_apply_all_command): Call inc_refcount.
12031 (_initialize_thread): Don't call
12032 observer_attach_thread_ptid_changed.
12034 2017-04-10 Yao Qi <yao.qi@linaro.org>
12036 * thread.c (delete_thread_1): Hoist code on marking thread as
12039 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12041 * windows-nat.c (windows_detach): Initialize ptid with
12044 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
12046 * unittests/ptid-selftests.c: Fix erroneous assert messages.
12048 2017-04-07 Alan Hayward <alan.hayward@arm.com>
12050 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
12051 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
12052 (bfin_pseudo_register_write): Likewise
12054 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
12056 * common/ptid.h (struct ptid): Change to...
12057 (class ptid_t): ... this.
12058 <ptid_t>: New constructors.
12059 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
12060 matches>: New methods.
12061 <make_null, make_minus_one>: New static methods.
12062 <pid>: Rename to...
12064 <lwp>: Rename to...
12066 <tid>: Rename to...
12068 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
12069 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
12070 as references, move comment to class ptid_t.
12071 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
12072 ptid_t static methods.
12073 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
12074 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
12075 Take ptid arguments as references, implement using ptid_t methods.
12076 * unittests/ptid-selftests.c: New file.
12077 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12078 unittests/ptid-selftests.c.
12079 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
12081 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12083 * python/python.c (python_run_simple_file): Cast mode literal to
12084 non-const char pointer as expected by PyFile_FromString.
12086 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
12088 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
12089 minus_one_ptid and null_ptid.
12091 2017-04-05 Pedro Alves <palves@redhat.com>
12093 * warning.m4 (build_warnings): Remove -Wno-write-strings.
12094 * configure: Regenerate.
12096 2017-04-05 Pedro Alves <palves@redhat.com>
12098 * ada-exp.y (yyerror): Constify.
12099 * ada-lang.c (bound_name, get_selections)
12100 (ada_variant_discrim_type)
12101 (ada_variant_discrim_name, ada_value_struct_elt)
12102 (ada_lookup_struct_elt_type, is_unchecked_variant)
12103 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
12104 (catch_ada_exception_command_split)
12105 (catch_ada_assert_command_split, catch_assert_command)
12106 (ada_op_name): Constify.
12107 * ada-lang.h (ada_yyerror, get_selections)
12108 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
12109 * arc-tdep.c (arc_print_frame_cache): Constify.
12110 * arm-tdep.c (arm_skip_stub): Constify.
12111 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
12112 (gen_aggregate_elt_ref): Constify.
12113 * bcache.c (print_bcache_statistics): Constify.
12114 * bcache.h (print_bcache_statistics): Constify.
12115 * break-catch-throw.c (catch_exception_command_1):
12116 * breakpoint.c (struct ep_type_description::description):
12118 (add_solib_catchpoint): Constify.
12119 (catch_fork_command_1): Add cast.
12120 (add_catch_command): Constify.
12121 * breakpoint.h (add_catch_command, add_solib_catchpoint):
12123 * bsd-uthread.c (bsd_uthread_state): Constify.
12124 * buildsym.c (patch_subfile_names): Constify.
12125 * buildsym.h (next_symbol_text_func, patch_subfile_names):
12127 * c-exp.y (yyerror): Constify.
12128 (token::oper): Constify.
12129 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
12130 * c-varobj.c (cplus_describe_child): Constify.
12131 * charset.c (find_charset_names): Add cast.
12132 (find_charset_names): Constify array and add const_cast.
12133 * cli/cli-cmds.c (complete_command, cd_command): Constify.
12134 (edit_command): Constify.
12135 * cli/cli-decode.c (lookup_cmd): Constify.
12136 * cli/cli-dump.c (dump_memory_command, dump_value_command):
12138 (struct dump_context): Constify.
12139 (add_dump_command, restore_command): Constify.
12140 * cli/cli-script.c (get_command_line): Constify.
12141 * cli/cli-script.h (get_command_line): Constify.
12142 * cli/cli-utils.c (check_for_argument): Constify.
12143 * cli/cli-utils.h (check_for_argument): Constify.
12144 * coff-pe-read.c (struct read_pe_section_data): Constify.
12145 * command.h (lookup_cmd): Constify.
12146 * common/print-utils.c (decimal2str): Constify.
12147 * completer.c (gdb_print_filename): Constify.
12148 * corefile.c (set_gnutarget): Constify.
12149 * cp-name-parser.y (yyerror): Constify.
12150 * cp-valprint.c (cp_print_class_member): Constify.
12151 * cris-tdep.c (cris_register_name, crisv32_register_name):
12153 * d-exp.y (yyerror): Constify.
12154 (struct token::oper): Constify.
12155 * d-lang.h (d_yyerror): Constify.
12156 * dbxread.c (struct header_file_location::name): Constify.
12157 (add_old_header_file, add_new_header_file, last_function_name)
12158 (dbx_next_symbol_text, add_bincl_to_list)
12159 (find_corresponding_bincl_psymtab, set_namestring)
12160 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
12161 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
12162 * defs.h (command_line_input, print_address_symbolic)
12163 (deprecated_readline_begin_hook): Constify.
12164 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
12166 * event-top.c (handle_line_of_input): Constify and add cast.
12167 * exceptions.c (catch_errors): Constify.
12168 * exceptions.h (catch_errors): Constify.
12169 * expprint.c (print_subexp_standard, op_string, op_name)
12170 (op_name_standard, dump_raw_expression, dump_raw_expression):
12171 * expression.h (op_name, op_string, dump_raw_expression):
12173 * f-exp.y (yyerror): Constify.
12174 (struct token::oper): Constify.
12175 (struct f77_boolean_val::name): Constify.
12176 * f-lang.c (f_word_break_characters): Constify.
12177 * f-lang.h (f_yyerror): Constify.
12178 * fork-child.c (fork_inferior): Add cast.
12179 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
12180 (new_variant): Constify.
12181 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
12182 * gdbarch.c: Regenerate.
12183 * gdbcore.h (set_gnutarget): Constify.
12184 * go-exp.y (yyerror): Constify.
12185 (token::oper): Constify.
12186 * go-lang.h (go_yyerror): Constify.
12187 * go32-nat.c (go32_sysinfo): Constify.
12188 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
12189 * guile/scm-cmd.c (cmdscm_function): Constify.
12190 * guile/scm-param.c (pascm_param_value): Constify.
12191 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
12192 (h8300sx_register_name): Constify.
12193 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
12195 * ia64-tdep.c (ia64_register_names): Constify.
12196 * infcmd.c (construct_inferior_arguments): Constify.
12197 (path_command, attach_post_wait): Constify.
12198 * language.c (show_range_command, show_case_command)
12199 (unk_lang_error): Constify.
12200 * language.h (language_defn::la_error)
12201 (language_defn::la_name_of_this): Constify.
12202 * linespec.c (decode_line_2): Constify.
12203 * linux-thread-db.c (thread_db_err_str): Constify.
12204 * lm32-tdep.c (lm32_register_name): Constify.
12205 * m2-exp.y (yyerror): Constify.
12206 * m2-lang.h (m2_yyerror): Constify.
12207 * m32r-tdep.c (m32r_register_names): Constify and make static.
12208 * m68hc11-tdep.c (m68hc11_register_names): Constify.
12209 * m88k-tdep.c (m88k_register_name): Constify.
12210 * macroexp.c (appendmem): Constify.
12211 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
12212 (upgrade_type, parse_external, parse_partial_symbols)
12213 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
12214 (new_symbol): Constify.
12215 * memattr.c (mem_info_command): Constify.
12216 * mep-tdep.c (register_name_from_keyword): Constify.
12217 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
12219 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
12220 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
12221 * mi/mi-main.c (captured_mi_execute_command): Constify and add
12223 (mi_execute_async_cli_command): Constify.
12224 * mips-tdep.c (mips_register_name): Constify.
12225 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
12226 (am33_register_name, am33_2_register_name)
12227 * moxie-tdep.c (moxie_register_names): Constify.
12228 * nat/linux-osdata.c (osdata_type): Constify fields.
12229 * nto-tdep.c (nto_parse_redirection): Constify.
12230 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
12231 (lookup_child_selector): Constify.
12232 (objc_methcall::name): Constify.
12233 * objc-lang.h (lookup_objc_class, lookup_child_selector)
12234 (lookup_struct_typedef): Constify.
12235 * objfiles.c (pc_in_section): Constify.
12236 * objfiles.h (pc_in_section): Constify.
12237 * p-exp.y (struct token::oper): Constify.
12238 (yyerror): Constify.
12239 * p-lang.h (pascal_yyerror): Constify.
12240 * parser-defs.h (op_name_standard): Constify.
12241 (op_print::string): Constify.
12242 (exp_descriptor::op_name): Constify.
12243 * printcmd.c (print_address_symbolic): Constify.
12244 * psymtab.c (print_partial_symbols): Constify.
12245 * python/py-breakpoint.c (stop_func): Constify.
12246 (bppy_get_expression): Constify.
12247 * python/py-cmd.c (cmdpy_completer::name): Constify.
12248 (cmdpy_function): Constify.
12249 * python/py-event.c (evpy_add_attribute)
12250 (gdbpy_initialize_event_generic): Constify.
12251 * python/py-event.h (evpy_add_attribute)
12252 (gdbpy_initialize_event_generic): Constify.
12253 * python/py-evts.c (add_new_registry): Constify.
12254 * python/py-finishbreakpoint.c (outofscope_func): Constify.
12255 * python/py-framefilter.c (get_py_iter_from_func): Constify.
12256 * python/py-inferior.c (get_buffer): Add cast.
12257 * python/py-param.c (parm_constant::name): Constify.
12258 * python/py-unwind.c (fprint_frame_id): Constify.
12259 * python/python.c (gdbpy_parameter_value): Constify.
12260 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
12261 * remote.c (memory_packet_config::name): Constify.
12262 (show_packet_config_cmd, remote_write_bytes)
12263 (remote_buffer_add_string):
12264 * reverse.c (exec_reverse_once): Constify.
12265 * rs6000-tdep.c (variant::name, variant::description): Constify.
12266 * rust-exp.y (rustyyerror): Constify.
12267 * rust-lang.c (rust_op_name): Constify.
12268 * rust-lang.h (rustyyerror): Constify.
12269 * serial.h (serial_ops::name): Constify.
12270 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
12271 (sh_sh3e_register_name, sh_sh2e_register_name)
12272 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
12273 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
12274 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
12275 (sh_sh4al_dsp_register_name): Constify.
12276 * sh64-tdep.c (sh64_register_name): Constify.
12277 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
12278 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
12279 * stabsread.c (patch_block_stabs, read_type_number)
12280 (ref_map::stabs, ref_add, process_reference)
12281 (symbol_reference_defined, define_symbol, define_symbol)
12282 (error_type, read_type, read_member_functions, read_cpp_abbrev)
12283 (read_one_struct_field, read_struct_fields, read_baseclasses)
12284 (read_tilde_fields, read_struct_type, read_array_type)
12285 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
12286 (read_huge_number, read_range_type, read_args, common_block_start)
12287 (find_name_end): Constify.
12288 * stabsread.h (common_block_start, define_symbol)
12289 (process_one_symbol, symbol_reference_defined, ref_add):
12290 * symfile.c (get_section_index, add_symbol_file_command):
12291 * symfile.h (get_section_index): Constify.
12292 * target-descriptions.c (tdesc_type::name): Constify.
12293 (tdesc_free_type): Add cast.
12294 * target.c (find_default_run_target):
12295 (add_deprecated_target_alias, find_default_run_target)
12296 (target_announce_detach): Constify.
12297 (do_option): Constify.
12298 * target.h (add_deprecated_target_alias): Constify.
12299 * thread.c (print_thread_info_1): Constify.
12300 * top.c (deprecated_readline_begin_hook, command_line_input):
12302 (init_main): Add casts.
12303 * top.h (handle_line_of_input): Constify.
12304 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
12305 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
12306 (tfind_command): Rename to ...
12307 (tfind_command_1): ... this and constify.
12308 (tfind_command): New function.
12309 (tfind_end_command, tfind_start_command): Adjust.
12310 (encode_source_string): Constify.
12311 * tracepoint.h (encode_source_string): Constify.
12312 * tui/tui-data.c (tui_partial_win_by_name): Constify.
12313 * tui/tui-data.h (tui_partial_win_by_name): Constify.
12314 * tui/tui-source.c (tui_set_source_content_nil): Constify.
12315 * tui/tui-source.h (tui_set_source_content_nil): Constify.
12316 * tui/tui-win.c (parse_scrolling_args): Constify.
12317 * tui/tui-windata.c (tui_erase_data_content): Constify.
12318 * tui/tui-windata.h (tui_erase_data_content): Constify.
12319 * tui/tui-winsource.c (tui_erase_source_content): Constify.
12320 * tui/tui.c (tui_enable): Add cast.
12321 * utils.c (defaulted_query): Constify.
12322 (init_page_info): Add cast.
12323 (puts_debug, subset_compare): Constify.
12324 * utils.h (subset_compare): Constify.
12325 * varobj.c (varobj_format_string): Constify.
12326 * varobj.h (varobj_format_string): Constify.
12327 * vax-tdep.c (vax_register_name): Constify.
12328 * windows-nat.c (windows_detach): Constify.
12329 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
12330 * xml-support.c (gdb_xml_end_element): Constify.
12331 * xml-tdesc.c (tdesc_start_reg): Constify.
12332 * xstormy16-tdep.c (xstormy16_register_name): Constify.
12333 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
12334 * xtensa-tdep.h (xtensa_register_t::name): Constify.
12336 2017-04-05 Pedro Alves <palves@redhat.com>
12338 * proc-api.c (struct trans): Constify.
12339 (procfs_note): Constify.
12340 * proc-events.c (struct trans, syscall_table):
12341 * proc-flags.c (struct trans): Constify.
12342 * proc-utils.h (procfs_note): Constify.
12343 * proc-why.c (struct trans): Constify.
12344 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
12345 (procfs_detach): Constify.
12346 * sol-thread.c (struct string_map): Constify.
12347 (td_err_string, td_state_string): Constify.
12349 2017-04-05 Pedro Alves <palves@redhat.com>
12351 * proc-api.c (procfs_filename): Don't initialize
12353 (prepare_to_trace): Assume procfs_filename is non-NULL.
12354 (_initialize_proc_api): Give procfs_filename a default value here.
12356 2017-04-05 Pedro Alves <palves@redhat.com>
12358 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
12359 'cond_string' parameter.
12360 (extract_exception_regexp): Constify 'string' parameter.
12361 (catch_exception_command_1): Constify.
12362 * breakpoint.c (init_catchpoint)
12363 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
12365 (ep_parse_optional_if_clause, catch_fork_command_1)
12366 (catch_exec_command_1): Constify.
12367 * breakpoint.h (init_catchpoint): Constify 'cond_string'
12369 (ep_parse_optional_if_clause): Constify.
12370 * cli/cli-utils.c (remove_trailing_whitespace)
12371 (check_for_argument): Constify.
12372 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
12373 non-const overload.
12374 (check_for_argument): Likewise.
12376 2017-04-05 Pedro Alves <palves@redhat.com>
12378 * event-top.c (command_line_handler): Add cast to execute_command
12380 * record-btrace.c (cmd_record_btrace_bts_start)
12381 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
12382 (cmd_record_btrace_start): Add cast to execute_command call.
12383 * record-full.c (record_full_goto_insn):
12384 * record.c (record_start, record_stop): Add cast to
12385 execute_command_to_string calls.
12386 (cmd_record_start): Add cast to execute_command calls.
12388 2017-04-05 Pedro Alves <palves@redhat.com>
12390 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
12391 static inline function.
12392 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
12393 array and use gdb_PyArg_ParseTupleAndKeywords.
12394 * python/py-cmd.c (cmdpy_init): Likewise.
12395 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
12396 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
12397 (infpy_search_memory): Likewise.
12398 * python/py-objfile.c (objfpy_add_separate_debug_file)
12399 (gdbpy_lookup_objfile): Likewise.
12400 * python/py-symbol.c (gdbpy_lookup_symbol)
12401 (gdbpy_lookup_global_symbol): Likewise.
12402 * python/py-type.c (gdbpy_lookup_type): Likewise.
12403 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
12404 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
12407 2017-04-05 Pedro Alves <palves@redhat.com>
12409 * python/python-internal.h (gdb_PyGetSetDef): New type.
12410 * python/py-block.c (block_object_getset)
12411 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
12412 * python/py-event.c (event_object_getset)
12413 (finish_breakpoint_object_getset): Likewise.
12414 * python/py-inferior.c (inferior_object_getset): Likewise.
12415 * python/py-infthread.c (thread_object_getset): Likewise.
12416 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
12417 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
12418 * python/py-objfile.c (objfile_getset): Likewise.
12419 * python/py-progspace.c (pspace_getset): Likewise.
12420 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
12422 * python/py-record.c (recpy_record_getset): Likewise.
12423 * python/py-symbol.c (symbol_object_getset): Likewise.
12424 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
12426 * python/py-type.c (type_object_getset, field_object_getset):
12428 * python/py-value.c (value_object_getset): Likewise.
12430 2017-04-05 Pedro Alves <palves@redhat.com>
12432 * python/python-internal.h (gdb_PyObject_CallMethod)
12433 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
12435 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
12436 (PySys_GetObject, PySys_SetPath): New macros.
12438 2017-04-05 Pedro Alves <palves@redhat.com>
12440 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
12441 info_osdata_command.
12442 * osdata.c (info_osdata_command): Rename to ...
12443 (info_osdata): ... this. Constify 'type' parameter, and remove
12444 the 'from_tty' parameter. Accept NULL TYPE.
12445 (info_osdata_command): New function.
12446 * osdata.h (info_osdata_command): Remove declaration.
12447 (info_osdata): New declaration.
12449 2017-04-05 Pedro Alves <palves@redhat.com>
12451 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
12452 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
12453 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
12455 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
12456 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
12457 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
12459 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
12460 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
12461 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12462 (mi_cmd_file_list_exec_source_files)
12463 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
12464 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12465 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
12467 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
12468 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
12469 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
12470 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
12471 (mi_cmd_stack_info_frame): Constify 'command' parameter.
12472 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
12473 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
12474 'command' parameter.
12475 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
12476 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
12477 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
12478 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
12479 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
12480 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
12481 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
12482 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
12483 (mi_cmd_var_set_update_range): Constify 'command' parameter.
12484 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
12485 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
12487 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
12488 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
12489 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
12490 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
12491 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
12492 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
12493 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
12494 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
12495 (mi_cmd_data_list_changed_registers)
12496 (mi_cmd_data_write_register_values)
12497 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
12498 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
12499 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
12500 (mi_cmd_list_features, mi_cmd_list_target_features)
12501 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
12502 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
12503 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
12504 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
12505 (mi_cmd_trace_frame_collected): Constify 'command'
12507 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
12508 'command' parameter.
12510 2017-04-05 Pedro Alves <palves@redhat.com>
12512 * ada-lang.c (ada_completer_word_break_characters): Now a const
12514 (ada_get_gdb_completer_word_break_characters): Constify.
12515 * completer.c (gdb_completer_command_word_break_characters)
12516 (gdb_completer_file_name_break_characters)
12517 (gdb_completer_quote_characters): Now const arrays.
12518 (get_gdb_completer_quote_characters): Constify.
12519 (set_rl_completer_word_break_characters): New function.
12520 (set_gdb_completion_word_break_characters)
12521 (complete_line_internal): Use it.
12522 * completer.h (get_gdb_completer_quote_characters): Constify.
12523 (set_rl_completer_word_break_characters): Declare.
12524 * f-lang.c (f_word_break_characters): Constify.
12525 * language.c (default_word_break_characters): Constify.
12526 * language.h (language_defn::la_word_break_characters): Constify.
12527 (default_word_break_characters): Constify.
12528 * top.c (init_main): Use set_rl_completer_word_break_characters.
12530 2017-04-05 Pedro Alves <palves@redhat.com>
12532 * aix-thread.c (aix_thread_pid_to_str)
12533 (aix_thread_extra_thread_info): Constify.
12534 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
12535 * bsd-uthread.c (bsd_uthread_extra_thread_info)
12536 (bsd_uthread_pid_to_str): Constify.
12537 * corelow.c (core_pid_to_str): Constify.
12538 * darwin-nat.c (darwin_pid_to_str): Constify.
12539 * fbsd-nat.c (fbsd_pid_to_str): Constify.
12540 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
12542 * gnu-nat.c (gnu_pid_to_str): Constify.
12543 * go32-nat.c (go32_pid_to_str): Constify.
12544 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
12545 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
12546 * inferior.c (inferior_pid_to_str): Constify.
12547 * linux-nat.c (linux_nat_pid_to_str): Constify.
12548 * linux-tdep.c (linux_core_pid_to_str): Constify.
12549 * linux-thread-db.c (thread_db_pid_to_str)
12550 (thread_db_extra_thread_info): Constify.
12551 * nto-tdep.c (nto_extra_thread_info): Constify.
12552 * nto-tdep.h (nto_extra_thread_info): Constify.
12553 * obsd-nat.c (obsd_pid_to_str): Constify.
12554 * procfs.c (procfs_pid_to_str): Constify.
12555 * ravenscar-thread.c (ravenscar_extra_thread_info)
12556 (ravenscar_pid_to_str): Constify.
12557 * remote-sim.c (gdbsim_pid_to_str): Constify.
12558 * remote.c (remote_threads_extra_info, remote_pid_to_str):
12560 * sol-thread.c (solaris_pid_to_str): Constify.
12561 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
12562 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
12563 * target.c (default_pid_to_str, target_pid_to_str)
12564 (normal_pid_to_str, default_pid_to_str): Constify.
12565 * target.h (target_ops::to_pid_to_str)
12566 (target_ops::to_extra_thread_info): Constify.
12567 (target_pid_to_str, normal_pid_to_str): Constify.
12568 * windows-nat.c (windows_pid_to_str): Constify.
12569 * gdbarch.sh (core_pid_to_str): Constify.
12570 * target-delegates.c: Regenerate.
12571 * gdbarch.h, gdbarch.c: Regenerate.
12573 2017-04-05 Pedro Alves <palves@redhat.com>
12575 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
12576 the memory of the temporary warning_pre_print override.
12577 * utils.c (warning_pre_print): Constify.
12578 * utils.h (warning_pre_print): Constify.
12580 2017-04-05 Pedro Alves <palves@redhat.com>
12582 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
12583 (shell_command): New function.
12584 (make_command): Use std::string.
12585 (init_cli_cmds): Register shell_command instead of shell_escape.
12587 2017-04-05 Pedro Alves <palves@redhat.com>
12589 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
12590 * tracepoint.c (default_collect): Don't initialize.
12592 2017-04-05 Pedro Alves <palves@redhat.com>
12594 * macroexp.c (macro_buffer::shared): Now a bool.
12595 (init_buffer): Update.
12596 (init_shared_buffer): Constify 'addr' parameter.
12597 (substitute_args, expand, macro_expand, macro_expand_next): Remove
12600 2017-04-05 Pedro Alves <palves@redhat.com>
12602 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
12603 * disasm.c (set_disassembler_options): Constify local.
12604 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
12606 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
12609 * tracefile.c (tsave_command): Fix argument parsing for '-r'
12612 2017-04-05 Yao Qi <yao.qi@linaro.org>
12614 * frame.c (frame_unwind_register_unsigned): Call
12615 frame_unwind_register_value.
12617 2017-04-05 Yao Qi <yao.qi@linaro.org>
12619 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
12620 Use gdb_test_multiple, and don't match anchor.
12622 2017-04-05 Pedro Alves <palves@redhat.com>
12624 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
12625 (Write After Approval): Remove Simon Marchi.
12627 2017-04-05 Pedro Alves <palves@redhat.com>
12629 * common/gdb_optional.h (optional::optional): Make constexpr and
12630 initialize m_dummy.
12632 2017-04-04 John Baldwin <jhb@FreeBSD.org>
12634 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
12635 (amd64fbsd_jmp_buf_reg_offset): Remove.
12636 (amd64fbsd_supply_uthread): Remove function.
12637 (amd64fbsd_collect_uthread): Remove function.
12638 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
12639 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
12640 (x86_64-*-freebsd*): Remove bsd-uthread.o.
12641 (fbsd-nat.c): Update comment.
12642 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
12643 (i386fbsd_jmp_buf_reg_offset): Remove.
12644 (i386fbsd_supply_uthread): Remove function.
12645 (i386fbsd_collect_uthread): Remove function.
12646 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
12648 2017-04-04 John Baldwin <jhb@FreeBSD.org>
12650 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
12651 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
12652 * NEWS: Mention that support for FreeBSD/alpha was removed.
12653 * alpha-fbsd-tdep.c: Delete file.
12654 * config/alpha/fbsd.mh: Delete file.
12655 * configure.host: Delete alpha*-*-freebsd* and
12656 alpha*-*-kfreebsd*-gnu.
12657 * configure.tgt: Delete alpha*-*-freebsd* and
12658 alpha*-*-kfreebsd*-gnu.
12660 2017-04-04 John Baldwin <jhb@FreeBSD.org>
12662 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
12663 amd64bsd_store_inferior_registers): Use ptid from regcache.
12665 2017-04-04 Pedro Alves <palves@redhat.com>
12667 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
12668 data fields, make them private and add "m_" prefixes.
12669 (lnp_state_machine::lnp_state_machine): New ctor.
12670 (record_line, check_line_address, handle_set_discriminator)
12671 (handle_set_address, handle_advance_pc, handle_special_opcode)
12672 (handle_advance_line, handle_set_file, handle_negate_stmt)
12673 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
12674 (end_sequence, advance_line): New methods.
12675 (m_gdbarch, m_record_lines_p): New fields.
12676 (lnp_reader_state): Delete.
12677 (dwarf_record_line): Rename to ...
12678 (lnp_state_machine::record_line): ... adjust.
12679 (init_lnp_state_machine): Delete.
12680 (lnp_state_machine::lnp_state_machine): New.
12681 (check_line_address): Rename to ...
12682 (lnp_state_machine::check_line_address): This.
12683 (dwarf_decode_lines_1): Remove reference to "reader_state".
12684 Adjust lnp_state_machine having a non-default ctor. Use bool.
12685 State machine internal state manipulation moved to
12686 lnp_state_machine methods.
12688 2017-04-04 Pedro Alves <palves@redhat.com>
12690 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12691 unittests/offset-type-selftests.c.
12692 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
12693 * common/offset-type.h: New file.
12694 * common/preprocessor.h: New file.
12695 * common/traits.h: New file.
12696 * common/valid-expr.h: New file.
12697 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
12698 sect_offset and cu_offset strong typedefs throughout.
12699 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
12700 typedefs throughout.
12701 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
12702 sect_offset and cu_offset strong typedefs throughout.
12703 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
12704 typedefs throughout.
12705 * gdbtypes.h: Include "common/offset-type.h".
12706 (cu_offset): Now an offset type (strong typedef) instead of a
12708 (sect_offset): Likewise.
12709 (union call_site_parameter_u): Rename "param_offset" field to
12711 * unittests/offset-type-selftests.c: New file.
12713 2017-04-04 Pedro Alves <palves@redhat.com>
12715 * common/underlying.h: New file.
12716 * dwarf2read.c: Include "common/gdb_optional.h" and
12717 "common/underlying.h".
12718 (dir_index, file_name_index): New types.
12719 (file_entry): Use them.
12720 (file_entry::include): Use to_underlying.
12721 (line_header::add_file_name): Use dir_index.
12722 (read_formatted_entries): Use gdb::optional. Read form before
12723 writting to file_entry.
12724 (dwarf_decode_line_header): Use dir_index.
12725 (lnp_state_machine::current_file): Use to_underlying.
12726 (lnp_state_machine::file): Change type to file_name_index.
12727 (dwarf_record_line): Use to_underlying.
12728 (init_lnp_state_machine): Use file_name_index.
12729 (dwarf_decode_lines_1): Use dir_index and file_name_index.
12731 2017-04-04 Pedro Alves <palves@redhat.com>
12733 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
12734 operator bool, has_value and get methods.
12736 2017-04-04 Pedro Alves <palves@redhat.com>
12738 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
12740 (line_header): Initialize all data fields. Change type of
12741 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
12742 Change type of include_dirs to std::vector<const char *>. Remove
12743 num_include_dirs, include_dirs_size. Change type of file_names to
12744 std::vector<file_entry>. Remove num_file_names, file_names_size.
12745 (line_header::line_header): New.
12746 (line_header::add_include_dir, line_header::add_file_name): New
12748 (line_header::include_dir_at): Remove NULL check.
12749 (line_header::file_name_at): Add const overload.
12750 (line_header_up): New unique_ptr typedef.
12751 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
12752 std::vector. Remove free_line_header call.
12753 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
12754 free_line_header call.
12755 (free_cu_line_header): Delete.
12756 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
12757 (setup_type_unit_groups): Use line_header_up instead of cleanups.
12758 Adjust to use std::vector.
12759 (free_line_header): Delete.
12760 (free_line_header_voidp): Use delete.
12761 (add_include_dir): Replace with ...
12762 (line_header::add_include_dir): ... this method. Use std::vector.
12763 (add_file_name): Replace with ...
12764 (line_header::add_file_name): ... this method. Use std::vector.
12765 (add_include_dir_stub): Delete.
12766 (read_formatted_entries): Remove memset.
12767 (dwarf_decode_line_header): Return a line_header_up instead of a
12768 raw pointer. Remove cleanup handling. Pass lambdas to
12769 read_formatted_entries. Adjust to use line_header methods.
12770 (dwarf_decode_lines_1): Adjust to use line_header methods.
12771 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
12774 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
12776 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
12777 instead of struct ptid.
12779 2017-05-04 Alan Hayward <alan.hayward@arm.com>
12781 * frame.c (get_frame_register_bytes): Unwind using value.
12782 (put_frame_register_bytes): Likewise.
12784 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
12786 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
12789 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
12791 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
12793 2017-03-29 Yao Qi <yao.qi@linaro.org>
12795 * gdbthread.h (struct thread_info): Declare constructor and
12796 destructor. Add some in-class member initializers.
12797 * thread.c (free_thread): Remove.
12798 (init_thread_list): Call delete instead of free_thread.
12799 (new_thread): Call thread_info constructor.
12800 (thread_info::thread_info): New function.
12801 (thread_info::~thread_info): New function.
12802 (delete_thread_1): Call delete instead of free_thread.
12803 (make_cleanup_restore_current_thread): Move tp and frame to
12806 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12808 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
12809 (arc_skip_prologue): Likewise.
12810 (arc_make_frame_cache): Likewise.
12811 (arc_pv_get_operand): New function.
12812 (arc_is_in_prologue): Likewise.
12813 (arc_analyze_prologue): Likewise.
12814 (arc_print_frame_cache): Likewise.
12815 (MAX_PROLOGUE_LENGTH): New constant.
12817 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12819 * configure.tgt: Add arc-insn.o.
12820 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
12821 (dump_arc_instruction_command): New function.
12822 (arc_fprintf_disasm): Likewise.
12823 (arc_disassemble_info): Likewise.
12824 (arc_insn_get_operand_value): Likewise.
12825 (arc_insn_get_operand_value_signed): Likewise.
12826 (arc_insn_get_memory_base_reg): Likewise.
12827 (arc_insn_get_memory_offset): Likewise.
12828 (arc_insn_get_branch_target): Likewise.
12829 (arc_insn_dump): Likewise.
12830 (arc_insn_get_linear_next_pc): Likewise.
12831 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
12832 (arc_disassemble_info): Likewise.
12833 (arc_insn_get_branch_target): Likewise.
12834 (arc_insn_get_linear_next_pc): Likewise.
12835 * NEWS: Mention new "maint print arc arc-instruction".
12837 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12839 * arc-tdep (maintenance_print_arc_list): New variable.
12840 (maintenance_print_arc_command): New function.
12842 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12844 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
12845 Add "limm" and "reserved".
12846 (arc_cannot_fetch_register, arc_cannot_store_register): Add
12847 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
12848 * arc-tdep.h (arc_regnum): Likewise.
12850 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12852 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12853 for THREADPTR register.
12854 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
12856 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
12857 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
12858 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
12860 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12862 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
12863 registers above gdbarch_num_regs (gdbarch) as privileged in
12866 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12868 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12869 for a single specified register or for all registers in
12870 a0_base..a0_base + C0_NREGS range.
12871 (supply_gregset_reg): Call regcache_raw_supply for a single
12872 specified register or for all registers in a0_base..a0_base +
12875 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12877 * arch/xtensa.h (C0_NREGS): Add definition.
12878 * xtensa-tdep.c (C0_NREGS): Remove definition.
12880 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12882 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
12883 Drop xtensa_default_isa initialization.
12884 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
12886 2017-03-27 Pedro Alves <palves@redhat.com>
12888 * dwarf2read.c (file_entry) <dir_index>: Add comment.
12889 (file_entry::include_dir): New method.
12890 (line_header::include_dir_at, line_header::file_name_at): New
12892 (setup_type_unit_groups, setup_type_unit_groups)
12893 (psymtab_include_file_name): Simplify using the new methods.
12894 (lnp_state_machine) <the_line_header>: New field.
12895 <file>: Add comment.
12896 (lnp_state_machine::current_file): New method.
12897 (dwarf_record_line): Simplify using the new methods.
12898 (init_lnp_state_machine): Initialize the "the_line_header" field.
12899 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
12900 Simplify using the new methods.
12902 2017-03-27 Pedro Alves <palves@redhat.com>
12904 * cp-name-parser.y (make_empty): Delete.
12905 (demangler_special, nested_name, ptr_operator, array_indicator)
12906 (direct_declarator, declarator_1): Use fill_comp instead of
12909 2017-03-27 Pedro Alves <palves@redhat.com>
12911 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
12912 to ATTRIBUTE_PRINTF.
12913 * solib-target.c (library_list_start_list): Print "string" not
12915 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
12916 gdb_xml_error call.
12918 2017-03-27 Pedro Alves <palves@redhat.com>
12920 * dwarf2read.c (struct file_and_directory): New.
12921 (dwarf2_get_dwz_file): Adjust to use std::string.
12922 (dw2_get_file_names_reader): Adjust to use file_and_directory.
12923 (find_file_and_directory): Adjust to return a file_and_directory
12925 (read_file_scope): Adjust to use file_and_directory. Remove
12926 make_cleanup/do_cleanups calls.
12927 (open_and_init_dwp_file): Adjust to use std::string. Remove
12928 make_cleanup/do_cleanups calls.
12929 * python/python.c (do_start_initialization): Adjust to ldirname
12930 returning a std::string.
12931 * utils.c (ldirname): Now returns a std::string.
12932 * utils.h (ldirname): Change return type to std::string.
12933 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
12934 returning a std::string.
12935 * xml-tdesc.c (file_read_description_xml): Likewise.
12937 2017-03-24 Alan Hayward <alan.hayward@arm.com>
12939 * regcache.c (regcache_debug_print_register): New function.
12940 * regcache.h (regcache_debug_print_register): New declaration.
12941 * target.c (debug_print_register): Remove.
12942 (target_fetch_registers): Call regcache_debug_print_register.
12943 (target_store_registers): Likewise.
12945 2017-03-24 Pádraig Brady <pbrady@fb.com>
12947 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
12948 reference beyond the 'lh->include_dirs' array before accessing to
12950 (psymtab_include_file_name): Likewise.
12951 (dwarf_decode_lines_1): Likewise.
12952 (dwarf_decode_lines): Likewise.
12953 (file_file_name): Likewise.
12955 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
12957 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
12959 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12960 ps_lsetfpregs): Likewise.
12961 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
12962 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12963 ps_lsetfpregs): Likewise.
12964 * target.c (target_fetch_registers, target_store_registers):
12967 2017-03-23 Alan Hayward <alan.hayward@arm.com>
12969 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
12971 2017-03-23 Yao Qi <yao.qi@linaro.org>
12973 * aarch64-tdep.c (aarch64_process_record_test): Declare.
12974 (_initialize_aarch64_tdep): Register it.
12975 (aarch64_record_load_store): Handle PRFM instruction.
12976 (aarch64_process_record_test): New function.
12978 2017-03-23 Yao Qi <yao.qi@linaro.org>
12980 * aarch64-tdep.c (aarch64_record_load_store): Fix code
12983 2017-03-23 Yao Qi <yao.qi@linaro.org>
12985 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
12987 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12989 python/python.c (do_start_initialization): Fix memory leak.
12991 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12993 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
12994 using get_ptrace_pid.
12995 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
12997 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
12998 inferior_ptid instead of pid.
13000 2017-03-22 Yao Qi <yao.qi@linaro.org>
13002 * aarch64-tdep.c: Wrap locally used classes in anonymous
13004 * arm-tdep.c: Likewise.
13005 * linespec.c: Likewise.
13006 * ui-out.c: Likewise.
13008 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
13011 * python/lib/gdb/printer/bound_registers.py: Import sys.
13013 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
13015 * windows-nat.c (do_windows_fetch_inferior_registers): Add
13016 windows_thread_info parameter and use it instead of
13018 (windows_fetch_inferior_registers): Don't set current_thread,
13019 pass the thread to do_windows_fetch_inferior_registers. Use
13020 ptid from regcache instead of inferior_ptid.
13021 (do_windows_store_inferior_registers): Add windows_thread_info
13022 parameter and use it instead of current_thread.
13023 (windows_store_inferior_registers): Don't set current_thread,
13024 pass the thread to do_windows_store_inferior_registers. Use
13025 ptid from regcache instead of inferior_ptid.
13027 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
13029 * ser-mingw.c (ser_windows_raw): Remove reference to
13030 struct serial::current_timeout.
13032 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
13035 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
13036 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
13037 (sparc64_fsr_type): Fix %fsr decoding.
13039 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
13041 * python/py-record-btrace.c (btpy_insn_data): Change return type
13044 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
13046 * spu-linux-nat.c (spu_fetch_inferior_registers,
13047 spu_store_inferior_registers): Use ptid from regcache, set and
13048 restore inferior_ptid.
13049 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
13052 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
13054 * i386-linux-nat.c (fetch_register, store_register,
13055 i386_linux_fetch_inferior_registers,
13056 i386_linux_store_inferior_registers): Use ptid from regcache.
13057 * ia64-linux-nat.c (ia64_linux_fetch_register,
13058 ia64_linux_store_register): Likewise.
13059 * inf-ptrace.c (inf_ptrace_fetch_register,
13060 inf_ptrace_store_register): Likewise.
13061 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
13062 m32r_linux_store_inferior_registers): Likewise.
13063 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
13064 m68kbsd_store_inferior_registers): Likewise.
13065 * m68k-linux-nat.c (fetch_register, store_register,
13066 m68k_linux_fetch_inferior_registers,
13067 m68k_linux_store_inferior_registers): Likewise.
13068 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
13069 m88kbsd_store_inferior_registers): Likewise.
13070 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
13071 mips_fbsd_store_inferior_registers): Likewise.
13072 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
13073 mips64_linux_regsets_store_registers): Likewise.
13074 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
13075 mipsnbsd_store_inferior_registers): Likewise.
13076 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
13077 mips64obsd_store_inferior_registers): Likewise.
13078 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
13080 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
13081 ppcfbsd_store_inferior_registers): Likewise.
13082 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
13083 ppc_linux_store_inferior_registers): Likewise.
13084 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
13085 ppcnbsd_store_inferior_registers): Likewise.
13086 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
13087 ppcobsd_store_registers): Likewise.
13088 * procfs.c (procfs_fetch_registers, procfs_store_registers):
13090 * ravenscar-thread.c (ravenscar_fetch_registers,
13091 ravenscar_store_registers, ravenscar_prepare_to_store):
13093 * record-btrace.c (record_btrace_fetch_registers,
13094 record_btrace_store_registers, record_btrace_prepare_to_store):
13096 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
13097 Lookup inferior using ptid from regcache, instead of
13099 * remote.c (remote_fetch_registers, remote_store_registers): Use
13100 ptid from regcache.
13101 * rs6000-nat.c (fetch_register, store_register): Likewise.
13102 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
13103 s390_linux_store_inferior_registers): Likewise.
13104 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
13105 shnbsd_store_inferior_registers): Likewise.
13106 * sol-thread.c (sol_thread_fetch_registers,
13107 sol_thread_store_registers): Likewise.
13108 * sparc-nat.c (sparc_fetch_inferior_registers,
13109 sparc_store_inferior_registers): Likewise.
13110 * tilegx-linux-nat.c (fetch_inferior_registers,
13111 store_inferior_registers): Likewise.
13112 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
13113 vaxbsd_store_inferior_registers): Likewise.
13114 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
13115 store_xtregs): Likewise.
13117 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13120 * NEWS: Mention support for rvalue references in GDB and python.
13121 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
13122 supports both lvalue and rvalue references.
13124 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13127 * gdbtypes.c (rank_one_type): Implement overloading
13128 resolution rules regarding rvalue references.
13130 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13133 * aarch64-tdep.c (aarch64_type_align)
13134 (aarch64_extract_return_value, aarch64_store_return_value): Change
13135 lvalue reference type checks to general reference type checks.
13136 * amd64-tdep.c (amd64_classify): Likewise.
13137 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
13139 * arm-tdep.c (arm_type_align, arm_extract_return_value)
13140 (arm_store_return_value): Likewise.
13141 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
13142 * c-typeprint.c (c_print_type): Likewise.
13143 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
13144 (cplus_number_of_children, cplus_describe_child): Likewise.
13145 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
13146 * completer.c (expression_completer): Likewise.
13147 * cp-support.c (make_symbol_overload_list_adl_namespace):
13149 * darwin-nat-info.c (info_mach_region_command): Likewise.
13150 * dwarf2loc.c (entry_data_value_coerce_ref)
13151 (value_of_dwarf_reg_entry): Likewise.
13152 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
13153 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
13155 * findvar.c (extract_typed_address, store_typed_address):
13157 * gdbtypes.c (rank_one_type): Likewise.
13158 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
13159 * infcall.c (value_arg_coerce): Likewise.
13160 * language.c (pointer_type): Likewise.
13161 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
13163 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
13164 * mn10300-tdep.c (mn10300_type_align): Likewise.
13165 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
13166 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
13167 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
13169 * printcmd.c (print_formatted, x_command): Likewise.
13170 * python/py-type.c (typy_get_composite, typy_template_argument):
13172 * python/py-value.c (valpy_referenced_value)
13173 (valpy_get_dynamic_type, value_has_field): Likewise.
13174 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
13175 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
13176 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
13177 * spu-tdep.c (spu_scalar_value_p): Likewise.
13178 * symtab.c (lookup_symbol_aux): Likewise.
13179 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
13180 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
13182 * valops.c (value_cast_pointers, value_cast)
13183 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
13184 (value_struct_elt, value_struct_elt_bitpos)
13185 (value_find_oload_method_list, find_overload_match)
13186 (value_rtti_indirect_type): Likewise.
13187 * valprint.c (val_print_scalar_type_p, generic_val_print):
13189 * value.c (value_actual_type, value_as_address, unpack_long)
13190 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
13191 (coerce_ref): Likewise.
13192 * varobj.c (varobj_get_value_type): Likewise.
13194 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13197 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
13198 table of constants.
13199 * python/lib/gdb/command/explore.py: Support exploring values
13200 of rvalue reference types.
13201 * python/lib/gdb/types.py: Implement get_basic_type() for
13202 rvalue reference types.
13203 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
13205 * python/py-value.c (valpy_getitem): Add an rvalue reference
13207 (valpy_reference_value): Add new parameter "refcode".
13208 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
13209 New wrappers for valpy_reference_value().
13210 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
13211 (gdbpy_invoke_xmethod): Likewise.
13213 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13216 * dwarf2read.c (process_die, read_type_die_1): Handle the
13217 DW_TAG_rvalue_reference_type DIE.
13218 (read_tag_reference_type): Add new parameter "refcode".
13220 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13223 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
13224 (c_type_print_modifier, c_type_print_varspec_suffix)
13225 (c_type_print_base): Support printing rvalue reference types.
13226 * c-valprint.c (c_val_print, c_value_print): Support printing
13227 rvalue reference values.
13229 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13232 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
13234 * cp-support.c (replace_typedefs): Handle
13235 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
13236 * python/py-type.c (typy_lookup_type): Likewise.
13238 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13241 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
13242 * parse.c (insert_type): Change assert statement.
13243 (follow_types): Handle rvalue reference types.
13244 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
13247 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13250 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
13251 value_ref() interface.
13252 * c-valprint.c (c_value_print): Likewise.
13253 * infcall.c (value_arg_coerce): Likewise.
13254 * python/py-value.c (valpy_reference_value): Likewise.
13255 * valops.c (value_cast, value_reinterpret_cast)
13256 (value_dynamic_cast, typecmp): Likewise.
13257 (value_ref): Parameterize by kind of return value reference type.
13258 * value.h (value_ref): Add new parameter "refcode".
13260 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13263 * dwarf2read.c (read_tag_reference_type): Use
13264 lookup_lvalue_reference_type() instead of lookup_reference_type().
13265 * eval.c (evaluate_subexp_standard): Likewise.
13266 * f-exp.y: Likewise.
13267 * gdbtypes.c (make_reference_type, lookup_reference_type):
13268 Generalize with rvalue reference types.
13269 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
13270 convenience wrappers for lookup_reference_type().
13271 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
13272 reference kind parameter.
13273 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
13274 wrappers for lookup_reference_type().
13275 * guile/scm-type.c (gdbscm_type_reference): Use
13276 lookup_lvalue_reference_type() instead of lookup_reference_type().
13277 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
13278 * parse.c (follow_types): Likewise.
13279 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
13280 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
13282 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
13283 (gdbpy_invoke_xmethod): Likewise.
13284 * stabsread.c: Provide extra argument to make_reference_type()
13286 * valops.c (value_ref, value_rtti_indirect_type): Use
13287 lookup_lvalue_reference_type() instead of lookup_reference_type().
13289 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13292 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
13293 (TYPE_IS_REFERENCE): New macro.
13294 (struct type): Add rvalue_reference_type field.
13295 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
13297 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
13299 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
13300 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
13301 New function definition.
13302 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
13303 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
13304 New function declaration.
13305 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
13306 * mi/mi-interp.h: New file.
13307 * solib.c (info_sharedlibrary_command): Replace for loop with
13309 * solib.h (update_solib_list): New function declaration.
13310 (so_list_head): Move macro.
13311 * solist.h (ALL_SO_LIBS): New macro.
13313 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
13315 * infcmd.c (post_create_inferior): Remove unused argument in
13317 * remote.c (remote_start_remote): Likewise.
13318 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
13319 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
13320 (enable_break): Likewise.
13321 * solib.c (update_solib_list): Remove unused target argument
13322 and its documentation.
13323 (solib_add): Remove unused target argument. Remove unused
13324 argument in call to update_solib_list.
13325 (info_sharedlibrary_command): Remove unused argument in call
13326 to update_solib_list.
13327 (sharedlibrary_command): Remove unused argument in call to
13329 (handle_solib_event): Likewise.
13330 (reload_shared_libraries): Likewise.
13331 * solib.h (solib_add): Remove unused target argument.
13333 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
13335 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
13336 (s390_displaced_step_fixup): Cover relative branches with the
13337 default fixup handling. This fixes lack of support for some
13338 relative branch instructions.
13340 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13342 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
13343 ptid from regcache.
13345 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13347 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
13348 i386_darwin_store_inferior_registers): Use ptid from regcache.
13350 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13352 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
13353 i386bsd_store_inferior_registers): Use ptid from regcache.
13355 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13357 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
13358 hppaobsd_store_registers): Use ptid from regcache.
13360 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13362 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
13363 hppanbsd_store_registers): Use ptid from regcache.
13365 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13367 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
13368 from regcache. Use get_ptrace_pid.
13370 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13372 * corelow.c (get_core_register_section): Use ptid from regcache,
13375 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13377 * bsd-uthread.c (bsd_uthread_fetch_registers,
13378 bsd_uthread_store_registers): Use ptid from regcache, set and
13379 restore inferior_ptid.
13381 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13383 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
13384 fetch_fp_regs, store_register, store_regs, store_fp_register,
13385 store_fp_regs): Use ptid from regcache.
13387 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13389 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
13390 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
13391 store_vfp_regs): Use ptid from regcache.
13393 2017-03-17 Pedro Alves <palves@redhat.com>
13396 * ser-base.c (ser_base_wait_for): Add comment.
13397 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
13399 * ser-unix.c (hardwire_raw): Remove reference to
13400 scb->current_timeout.
13401 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
13402 (hardwire_ops): Install ser_base_readchar instead of
13404 * serial.h (struct serial) <current_timeout, timeout_remaining>:
13407 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
13410 * python/lib/gdb/printer/bound_registers.py: Add support for
13413 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
13415 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
13416 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
13417 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
13418 byte_offset to subobj_byte_offset. Fix the handling of
13419 DWARF_VALUE_STACK on big-endian targets when coming via an
13421 (dwarf2_evaluate_loc_desc): Adjust call to
13422 dwarf2_evaluate_loc_desc_full.
13423 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
13424 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
13426 2017-03-16 Yao Qi <yao.qi@linaro.org>
13428 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
13429 and REVSH instructions.
13431 2017-03-16 Yao Qi <yao.qi@linaro.org>
13433 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
13434 (arm_record_test): Declare.
13435 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
13436 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
13437 align with the manual.
13438 (thumb_record_misc): Adjust the code order to align with the
13440 (thumb2_record_decode_insn_handler): Fix instruction matching.
13441 (instruction_reader_thumb): New class.
13442 (arm_record_test): New function.
13444 2017-03-16 Yao Qi <yao.qi@linaro.org>
13446 * arm-tdep.c (abstract_memory_reader): New class.
13447 (instruction_reader): New class.
13448 (extract_arm_insn): Add argument 'reader'. Callers updated.
13449 (decode_insn): Likewise.
13451 2017-03-16 Doug Evans <dje@google.com>
13453 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
13454 member. Change type of TYPE member to SCM. All uses updated.
13455 (lsscm_make_lazy_string_smob): Add assert.
13456 (lsscm_make_lazy_string): Flag bad length values.
13457 (lsscm_elt_type): New function.
13458 (gdbscm_lazy_string_to_value): Rewrite to use
13459 lsscm_safe_lazy_string_to_value.
13460 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
13461 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
13462 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
13464 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
13465 * guile/scm-type.c (tyscm_scm_to_type): New function.
13467 2017-03-15 Doug Evans <dje@google.com>
13469 PR python/17728, python/18439, python/18779
13470 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
13471 member. Change type of TYPE member to PyObject *. All uses updated.
13472 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
13473 (gdbpy_create_lazy_string_object): Flag bad length values.
13474 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
13475 Handle typedefs in incoming type.
13476 (stpy_lazy_string_elt_type): New function.
13477 (gdbpy_extract_lazy_string): Call it.
13478 * python/py-value.c (valpy_lazy_string): Flag bad length values.
13479 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
13480 typedefs in incoming type.
13482 2017-03-16 Doug Evans <dje@google.com>
13484 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
13485 * guile/scm-type.c (tyscm_scm_to_type): New function.
13487 2017-03-16 Jiong Wang <jiong.wang@arm.com>
13489 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
13490 "ULONGEST" for "skip".
13492 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
13495 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
13496 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
13497 (inf_ptrace_peek_poke): ...here. New function. Now also loop
13498 over ptrace peek/poke until end of buffer or error.
13500 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
13502 * parse.c (length_of_subexp): Make static.
13503 * parser-defs.h (length_of_subexp): Remove.
13505 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
13507 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
13510 2017-03-14 Pedro Alves <palves@redhat.com>
13512 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
13513 (main): Use std::unique_ptr. Remove calls to
13514 cp_demangled_name_parse_free.
13516 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13518 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
13519 alphabsd_store_inferior_registers): Use regcache->ptid instead
13522 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13524 * aix-thread.c (aix_thread_fetch_registers,
13525 aix_thread_store_registers): Use regcache->ptid instead of
13528 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13530 * aarch64-linux-nat.c (fetch_gregs_from_thread,
13531 store_gregs_to_thread, fetch_fpregs_from_thread,
13532 store_fpregs_to_thread): Use regcache->ptid instead of
13535 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13537 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
13538 amd64_linux_fetch_inferior_registers): Use regcache->ptid
13539 instead of inferior_ptid.
13541 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13543 * target.c (target_fetch_registers, target_store_registers): Add
13546 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13548 * regcache.h (regcache_get_ptid): New function.
13549 * regcache.c (regcache_get_ptid): New function.
13551 2017-03-13 Mark Wielaard <mark@klomp.org>
13553 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
13555 2017-03-10 Keith Seitz <keiths@redhat.com>
13558 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
13560 2017-03-08 Pedro Alves <palves@redhat.com>
13563 * infrun.c (start_step_over, do_target_resume, resume)
13564 (restart_threads): Assert we're not resuming a thread that is
13565 meant to be stopped.
13566 (infrun_thread_stop_requested_callback): Delete.
13567 (infrun_thread_stop_requested): If the thread is internally
13568 stopped, queue a pending stop event and clear the thread's
13569 inline-frame state.
13570 (handle_stop_requested): New function.
13571 (handle_syscall_event, handle_inferior_event_1): Use
13572 handle_stop_requested.
13573 (handle_stop_requested): New function.
13574 (handle_signal_stop): Set the thread's stop_signal here instead of
13576 (finish_step_over): Clear step over info unconditionally.
13577 (handle_signal_stop): If the user had interrupted the event
13578 thread, consider the stop a random signal.
13579 (handle_signal_stop) <signal arrived while stepping over
13580 breakpoint>: Don't restart threads here.
13581 (stop_waiting): Don't clear step-over info here.
13583 2017-03-08 Pedro Alves <palves@redhat.com>
13586 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
13587 goes to argument 2, not 1.
13589 2017-03-08 Pedro Alves <palves@redhat.com>
13592 * top.c (gdb_readline_wrapper): Avoid passing NULL to
13593 display_gdb_prompt.
13594 (command_line_input): Add comment.
13596 2017-03-08 Pedro Alves <palves@redhat.com>
13599 * tui/tui-file.c (tui_file::write): New.
13600 * tui/tui-file.h (tui_file): Override "write".
13601 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
13602 factored out from ...
13603 (tui_puts): ... here.
13604 (tui_putc): Use them.
13605 (tui_write): New function.
13606 * tui/tui-io.h (tui_write): Declare.
13608 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
13610 * Makefile.in (SFILES): Replace "environ.c" with
13611 "common/environ.c".
13612 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
13613 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
13615 * common/environ.c: ... here.
13616 * environ.h: Moved to...
13617 * common/environ.h: ... here.
13619 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
13621 * gdbarch.sh (pstring_ptr): New static function.
13622 (gdbarch_disassembler_options): Use it.
13623 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
13624 not valid_disassembler_option->name.
13625 * gdbarch.c: Regenerate.
13627 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
13629 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
13631 2017-03-07 Pedro Alves <palves@redhat.com>
13633 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
13635 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
13637 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
13638 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
13639 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
13640 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
13642 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
13644 * xtensa-linux-nat.c (fetch_gregs): Remove const.
13646 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
13648 * remote.c (remote_add_target_side_commands): Use range-based
13651 2017-03-03 Yao Qi <yao.qi@linaro.org>
13654 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
13656 * valprint.c (common_val_print): Likewise.
13658 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
13660 * NEWS: Mention new set/show disassembler-options commands.
13661 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
13662 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
13663 (prospective_options): New static variable.
13664 (gdb_disassembler::gdb_disassembler): Initialize
13665 m_di.disassembler_options.
13666 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
13667 (get_disassembler_options): New function.
13668 (set_disassembler_options): Likewise.
13669 (set_disassembler_options_sfunc): Likewise.
13670 (show_disassembler_options_sfunc): Likewise.
13671 (disassembler_options_completer): Likewise.
13672 (_initialize_disasm): Likewise.
13673 * disasm.h (get_disassembler_options): New prototype.
13674 (set_disassembler_options): Likewise.
13675 * gdbarch.sh (gdbarch_disassembler_options): New variable.
13676 (gdbarch_verify_disassembler_options): Likewise.
13677 * gdbarch.c: Regenerate.
13678 * gdbarch.h: Likewise.
13679 * arm-tdep.c (num_disassembly_options): Delete.
13680 (set_disassembly_style): Likewise.
13681 (arm_disassembler_options): New static variable.
13682 (set_disassembly_style_sfunc): Convert short style name into long
13683 option name. Call set_disassembler_options.
13684 (show_disassembly_style_sfunc): New function.
13685 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
13686 set_gdbarch_verify_disassembler_options.
13687 (_initialize_arm_tdep): Delete regnames variable and update callers.
13688 (arm_disassembler_options): Initialize.
13689 (disasm_options): New variable.
13690 (num_disassembly_options): Rename from this...
13691 (num_disassembly_styles): ...to this. Compute by scanning through
13693 (valid_disassembly_styles): Initialize using disasm_options.
13694 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
13695 set_arm_regname_option.
13696 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
13697 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
13698 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
13699 set_gdbarch_verify_disassembler_options.
13700 * s390-tdep.c (s390_disassembler_options): New static variable.
13701 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
13702 set_gdbarch_verify_disassembler_options.
13704 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
13706 * remote.c (remote_add_target_side_condition): Remove "struct"
13707 keyword from range-based for loop.
13709 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
13711 * remote.c (remote_add_target_side_condition): Use range-based
13712 for loop. Update comment.
13714 2017-02-27 Yao Qi <yao.qi@linaro.org>
13716 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
13718 2017-02-26 Alan Hayward <alan.hayward@arm.com>
13720 * regcache.c (regcache_raw_update): New function.
13721 (regcache_raw_read): Move code to regcache_raw_update.
13722 * regcache.h (regcache_raw_update): New declaration.
13723 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
13725 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
13727 * dwarf2read.c (create_debug_type_hash_table): Initialize
13728 header.signature and header.type_offset_in_tu.
13730 2017-02-24 Pedro Alves <palves@redhat.com>
13732 * symtab.c (make_file_symbol_completion_list_1): Use
13733 add_symtab_completions.
13735 2017-02-24 Alan Hayward <alan.hayward@arm.com>
13737 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
13739 2017-02-24 Alan Hayward <alan.hayward@arm.com>
13741 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
13742 I386_MAX_REGISTER_SIZE.
13743 (i386_pseudo_register_write): Likewise.
13744 (i386_process_record): Likewise.
13745 * i387-tdep.c (i387_supply_xsave): Likewise.
13746 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
13747 (store_register): Likewise.
13749 2017-02-23 Pedro Alves <palves@redhat.com>
13751 * ada-lang.c: Include "common/function-view.h".
13752 (ada_iterate_over_symbols): Adjust to use function_view as
13754 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
13755 (ada_make_symbol_completion_list): Use a lambda.
13756 (ada_exc_search_name_matches): Delete.
13757 (name_matches_regex): New.
13758 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
13759 * compile/compile-c-support.c: Include "common/function-view.h".
13760 (print_one_macro): Change prototype to accept a ui_file pointer.
13761 (write_macro_definitions): Use a lambda.
13762 * dwarf2read.c: Include "common/function-view.h".
13763 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
13764 (dw2_expand_symtabs_matching): Adjust to use function_view as
13766 * language.h: Include "common/function-view.h".
13767 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
13768 function_view as callback type.
13769 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
13770 * linespec.c: Include "common/function-view.h".
13771 (collect_info::add_symbol): New method.
13772 (struct symbol_and_data_callback, iterate_inline_only, struct
13773 symbol_matcher_data, iterate_name_matcher): Delete.
13774 (iterate_over_all_matching_symtabs): Adjust to use function_view
13775 as callback type and lambdas.
13776 (iterate_over_file_blocks): Adjust to use function_view as
13778 (decode_compound_collector): Now a class with private fields.
13779 (decode_compound_collector::release_symbols): New method.
13780 (collect_one_symbol): Rename to...
13781 (decode_compound_collector::operator()): ... this and adjust.
13782 (lookup_prefix_sym): decode_compound_collector construction bits
13783 move to decode_compound_collector ctor. Pass the
13784 decode_compound_collector object directly as callback. Remove
13785 cleanups and use decode_compound_collector::release_symbols
13787 (symtab_collector): Now a class with private fields.
13788 (symtab_collector::release_symtabs): New method.
13789 (add_symtabs_to_list): Rename to...
13790 (symtab_collector::operator()): ... this and adjust.
13791 (collect_symtabs_from_filename): symtab_collector construction
13792 bits move to symtab_collector ctor. Pass the symtab_collector
13793 object directly as callback. Remove cleanups and use
13794 symtab_collector::release_symtabs instead.
13795 (collect_symbols): Delete.
13796 (add_matching_symbols_to_info): Use lambdas.
13797 * macrocmd.c (print_macro_callback): Delete.
13798 (info_macro_command): Use a lambda.
13799 (info_macros_command): Pass print_macro_definition as callable
13801 (print_one_macro): Remove 'ignore' parameter.
13802 (macro_list_command): Adjust.
13803 * macrotab.c (macro_for_each_data::fn): Now a function_view.
13804 (macro_for_each_data::user_data): Delete field.
13805 (foreach_macro): Adjust to call the function_view.
13806 (macro_for_each): Adjust to use function_view as callback type.
13807 (foreach_macro_in_scope): Adjust to call the function_view.
13808 (macro_for_each_in_scope): Adjust to use function_view as callback
13810 * macrotab.h: Include "common/function-view.h".
13811 (macro_callback_fn): Declare a prototype instead of a pointer.
13812 Remove "user_data" parameter.
13813 (macro_for_each, macro_for_each_in_scope): Adjust to use
13814 function_view as callback type.
13815 * psymtab.c (partial_map_expand_apply)
13816 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
13817 Adjust to use function_view as callback type and to return bool.
13818 (psym_expand_symtabs_matching): Adjust to use function_view as
13820 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
13821 to use function_view as callback type and to return bool.
13822 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
13824 * symfile.c (expand_symtabs_matching): Adjust to use function_view
13826 * symfile.h: Include "common/function-view.h".
13827 (expand_symtabs_file_matcher_ftype)
13828 (expand_symtabs_symbol_matcher_ftype)
13829 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
13831 (quick_symbol_functions::map_symtabs_matching_filename)
13832 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
13833 function_view as callback type and return bool.
13834 (expand_symtabs_matching): Adjust to use function_view as callback
13836 (maintenance_expand_name_matcher)
13837 (maintenance_expand_file_matcher): Delete.
13838 (maintenance_expand_symtabs): Use lambdas.
13839 * symtab.c (iterate_over_some_symtabs): Adjust to use
13840 function_view as callback types and return bool.
13841 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
13843 (lookup_symtab_callback): Delete.
13844 (lookup_symtab): Use a lambda.
13845 (iterate_over_symbols): Adjust to use function_view as callback
13847 (struct search_symbols_data, search_symbols_file_matches)
13848 (search_symbols_name_matches): Delete.
13849 (search_symbols): Use a pair of lambdas.
13850 (struct add_name_data, add_macro_name, symbol_completion_matcher)
13851 (symtab_expansion_callback): Delete.
13852 (default_make_symbol_completion_list_break_on_1): Use lambdas.
13853 * symtab.h: Include "common/function-view.h".
13854 (iterate_over_some_symtabs): Adjust to use function_view as
13855 callback type and return bool.
13856 (iterate_over_symtabs): Adjust to use function_view as callback
13858 (symbol_found_callback_ftype): Remove 'data' parameter and return
13860 (iterate_over_symbols): Adjust to use function_view as callback
13863 2017-02-23 Pedro Alves <palves@redhat.com>
13865 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
13866 (%.o) <unittests/%.c>: New pattern.
13867 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
13868 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
13869 * common/function-view.h: New file.
13870 * unittests/function-view-selftests.c: New file.
13871 * configure: Regenerate.
13873 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
13875 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
13877 * go32-nat.c (go32_thread_alive): Likewise.
13879 2017-02-23 Yao Qi <yao.qi@linaro.org>
13881 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
13884 2017-02-23 Yao Qi <yao.qi@linaro.org>
13886 * varobj.c (varobj_clear_saved_item): Use delete instead of
13888 (update_dynamic_varobj_children): Likewise.
13890 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13892 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
13894 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
13896 * common/enum-flags.h (enum_flags::enum_flags): Initialize
13897 m_enum_value to 0 in default constructor.
13899 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13901 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
13902 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
13903 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
13904 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
13905 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
13906 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
13907 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
13908 IS_STORE_CONDITIONAL_INSN.
13910 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13912 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
13914 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13916 * NEWS (Changes since GDB 7.12): Add DWARF-5.
13918 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13920 * dwarf2read.c (skip_one_die, read_attribute_value)
13921 (dwarf2_const_value_attr, dump_die_shallow)
13922 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
13923 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
13925 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13927 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
13928 (dwarf_parse_macro_header): Accept DWARF version 5.
13929 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
13931 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13933 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
13935 * common/common-exceptions.h (enum errors): Likewise.
13936 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
13937 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
13938 (dwarf_expr_context::execute_stack_op): Likewise.
13939 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
13941 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
13942 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13943 (show_entry_values_debug, call_site_to_target_addr)
13944 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
13945 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
13946 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
13947 (value_of_dwarf_block_entry, indirect_pieced_value)
13948 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
13949 (disassemble_dwarf_expression): Likewise.
13950 * dwarf2read.c (process_die, inherit_abstract_dies)
13951 (read_call_site_scope): Likewise.
13952 * gdbtypes.h (struct func_type, struct call_site_parameter)
13953 (struct call_site): Likewise.
13954 * stack.c (read_frame_arg): Likewise.
13955 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
13957 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13959 * defs.h (read_unsigned_leb128): New declaration.
13960 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
13961 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
13962 (dwarf2_find_location_expression): Call also
13963 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
13964 * dwarf2loc.h (dwarf2_version): New declaration.
13965 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
13967 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
13969 (struct dwop_section_names): Add loclists_dwo.
13970 (dwop_section_names): Add .debug_loclists.dwo.
13971 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
13972 (struct dwarf2_per_cu_data): Add dwarf_version.
13973 (struct dwo_sections): Add loclists.
13974 (struct attr_abbrev): Add implicit_const.
13975 (read_indirect_line_string): New declaration.
13976 (read_unsigned_leb128): Delete declaration.
13977 (rcuh_kind): New definition.
13978 (read_and_check_comp_unit_head): Change parameter
13979 is_debug_types_section to section_kind.
13980 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
13981 (read_comp_unit_head): Change parameter abfd to section, add parameter
13982 section_kind. Handle DWARF-5.
13983 (error_check_comp_unit_head): Accept also DWARF version 5.
13984 (read_and_check_comp_unit_head): Change parameter
13985 is_debug_types_section to section_kind.
13986 (read_and_check_type_unit_head): Delete function.
13987 (read_abbrev_offset): Handle DWARF-5.
13988 (create_debug_type_hash_table): Add parameter section_kind. Process
13989 only DW_UT_type. Use signature and type_offset_in_tu from struct
13991 (create_debug_types_hash_table): Update create_debug_type_hash_table
13993 (create_all_type_units): Call create_debug_type_hash_table.
13994 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
13995 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
13997 (skip_one_die): Handle DW_FORM_implicit_const.
13998 (dwarf2_rnglists_process): New function.
13999 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
14000 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
14001 (read_attribute_value): Handle DW_FORM_implicit_const,
14003 (read_attribute): Handle DW_FORM_implicit_const.
14004 (read_indirect_string_at_offset_from): New function from
14005 read_indirect_string_at_offset.
14006 (read_indirect_string_at_offset): Call
14007 read_indirect_string_at_offset_from.
14008 (read_indirect_line_string_at_offset): New function.
14009 (read_indirect_string): New function comment.
14010 (read_indirect_line_string): New function.
14011 (read_unsigned_leb128): Make it global.
14012 (dwarf2_string_attr): Handle DWARF-5.
14013 (add_include_dir_stub, read_formatted_entries): New functions.
14014 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
14016 (per_cu_header_read_in): Update read_comp_unit_head caller.
14017 (dwarf2_version): New function.
14018 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
14020 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
14023 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14025 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
14027 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14029 * dwarf2read.c (dwarf2_ranges_process): New function from
14030 dwarf2_ranges_read.
14031 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
14032 dwarf2_ranges_process.
14034 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14036 * dwarf2read.c (create_debug_type_hash_table): New function from
14037 create_debug_types_hash_table.
14038 (create_debug_types_hash_table): Call create_debug_type_hash_table.
14039 (create_all_type_units, open_and_init_dwo_file): Update
14040 create_debug_types_hash_table callers.
14042 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14045 * fork-child.c (trace_start_error): Fix thinko. va_end should
14046 refer to 'ap', not 'args'.
14048 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14049 Pedro Alves <palves@redhat.com>
14052 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
14054 * fork-child.c (trace_start_error): New function.
14055 (trace_start_error_with_name): Likewise.
14056 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
14057 * inf-ptrace.c (inf_ptrace_me): Likewise.
14058 * inferior.h (trace_start_error): New prototype.
14059 (trace_start_error_with_name): Likewise.
14061 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
14064 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
14065 NULL before using it.
14066 * symmisc.c (maintenance_print_symbols): Likewise.
14067 (maintenance_print_msymbols): Likewise.
14069 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14071 * NEWS: Add record Python bindings entry.
14073 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14075 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
14077 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
14078 * python/py-record-btrace.c, python/py-record-btrace.h,
14079 python/py-record-full.c, python/py-record-full.h: New file.
14080 * python/py-record.c: Add include for py-record-btrace.h and
14082 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
14083 recpy_instruction_history, recpy_function_call_history, recpy_begin,
14084 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
14085 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
14087 (gdbpy_initialize_btrace): New export.
14088 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
14090 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14092 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
14093 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
14094 * python/py-record.c: New file.
14095 * python/python-internal.h (gdbpy_start_recording,
14096 gdbpy_current_recording, gdpy_stop_recording,
14097 gdbpy_initialize_record): New export.
14098 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
14099 (python_GdbMethods): Add gdbpy_start_recording,
14100 gdbpy_current_recording and gdbpy_stop_recording.
14102 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14104 * record-btrace.c (record_btrace_record_method): New function.
14105 (init_record_btrace_ops): Initialize to_record_method.
14106 * record-full.c (record_full_record_method): New function.
14107 (init_record_full_ops, init_record_full_core_ops): Add
14108 record_full_record_method.
14109 * record.h (enum record_method): New enum.
14110 * target-debug.h (target_debug_print_enum_record_method: New define.
14111 * target-delegates.c: Regenerate.
14112 * target.c (target_record_method): New function.
14113 * target.h: Include record.h.
14114 (struct target_ops) <to_record_method>: New field.
14115 (target_record_method): New export.
14117 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14119 * record.h (record_start, record_stop): New export.
14120 * record.c (record_start, record_stop): New function.
14122 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14124 * btrace.c (btrace_fetch): Copy function call segments pointer
14126 (btrace_clear): Clear the vector.
14127 (btrace_find_insn_by_number): Use binary search to find the correct
14128 function call segment.
14129 * btrace.h (brace_fun_p): New typedef.
14130 (struct btrace_thread_info) <functions>: New field.
14132 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14134 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
14135 * btrace.c (btrace_decode_error): ... here. New function.
14136 * btrace.h (btrace_decode_error): New export.
14138 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14140 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
14141 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
14142 btrace_find_insn_by_number): Remove special case for gaps.
14143 * btrace.h (btrace_insn_get_error): New export.
14144 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
14145 * record-btrace.c (btrace_insn_history): Print number for gaps.
14146 (record_btrace_info, record_btrace_goto): Handle gaps.
14148 2017-02-14 Tom Tromey <tom@tromey.com>
14151 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
14153 * python/py-evts.c (gdbpy_initialize_py_events): Add
14154 before_prompt registry.
14155 * python/py-events.h (events_object) <before_prompt>: New field.
14157 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
14159 * btrace.c (ftrace_new_switch): Preserve up link and flags.
14161 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
14163 * symfile (_initialize_symfile): Add usage text to the load command's
14166 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
14168 * utils.c (defaulted_query): Don't query on secondary UIs.
14170 2017-02-10 Tom Tromey <tom@tromey.com>
14172 * rust-lang.c (rust_get_disr_info): Remove unused variable.
14174 2017-02-10 Tom Tromey <tom@tromey.com>
14176 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
14178 * python/py-type.c (typy_legacy_template_argument): Remove
14179 unnecessary "cleanup" local.
14181 2017-02-10 Tom Tromey <tom@tromey.com>
14183 * python/python.c (do_start_initialization): New function, from
14184 _initialize_python.
14185 (_initialize_python): Call do_start_initialization.
14186 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
14189 2017-02-10 Tom Tromey <tom@tromey.com>
14191 * python/py-prettyprint.c (pretty_print_one_value): Use
14194 2017-02-10 Tom Tromey <tom@tromey.com>
14196 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
14197 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
14199 * python/py-type.c (field_new): Use gdbpy_ref.
14200 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
14202 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
14203 (py_free_pspace): Likewise.
14204 (pspace_to_pspace_object): Likewise.
14205 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
14206 (py_free_objfile): Likewise.
14207 (objfile_to_objfile_object): Likewise.
14208 * python/py-inferior.c (delete_thread_object): Use
14210 (infpy_read_memory): Likewise.
14211 (py_free_inferior): Likewise.
14212 * python/py-evtregistry.c (create_eventregistry_object): Use
14214 * python/py-event.c (create_event_object): Use gdbpy_ref.
14216 2017-02-10 Tom Tromey <tom@tromey.com>
14218 * python/py-ref.h (gdbpy_ref_policy): Now a template.
14219 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
14221 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
14222 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
14223 python/py-exitedevent.c, python/py-finishbreakpoint.c,
14224 python/py-framefilter.c, python/py-function.c,
14225 python/py-inferior.c, python/py-infevents.c,
14226 python/py-linetable.c, python/py-newobjfileevent.c,
14227 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
14228 python/py-signalevent.c, python/py-stopevent.c,
14229 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
14230 python/py-unwind.c, python/py-utils.c, python/py-value.c,
14231 python/py-varobj.c, python/py-xmethods.c, python/python.c,
14232 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
14234 2017-02-10 Tom Tromey <tom@tromey.com>
14236 * ui-out.h (ui_out_emit_type): New class.
14237 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
14238 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
14239 and ui_out_emit_tuple.
14240 (enumerate_locals): Likewise.
14241 (py_mi_print_variables, py_print_locals, py_print_args): Use
14243 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
14245 * common/gdb_optional.h: New file.
14247 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
14249 * MAINTAINERS (Write After Approval): Update my e-mail address.
14251 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
14254 * breakpoint.c (_initialize_breakpoint): Update the help description
14255 of the 'commands' command to indicate that it takes a list argument.
14257 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
14259 * interps.c (current_interp_set_logging): Remove "return".
14261 2017-02-09 Gary Benson <gbenson@redhat.com>
14263 * symtab.c (add_symtab_completions): Prevent NULL pointer
14266 2017-02-08 Pedro Alves <palves@redhat.com>
14268 * interps.c (interp::interp): Remove reference to quiet_p.
14269 (interp_set): Make static. Remove dead "Switching to" output
14271 (interp_quiet_p, interp_set_quiet): Delete.
14272 (interpreter_exec_cmd): Don't set the interpreter quiet.
14273 * interps.h (interp_quiet_p): Make static.
14274 (class interp) <quiet_p>: Remove field
14276 2017-02-08 Jerome Guitton <guitton@adacore.com>
14278 * cli/cli-decode.c (find_command_name_length): Make it extern.
14279 * cli/cli-decode.h (find_command_name_length): Declare.
14280 * cli/cli-script.c (command_name_equals, line_first_arg):
14282 (process_next_line): Use cli-decode to parse command names.
14283 (build_command_line): Make args a constant pointer.
14285 2017-02-08 Jerome Guitton <guitton@adacore.com>
14287 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
14288 Remove case-insensitive search.
14290 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
14292 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
14293 at the end of the line. Avoids an ARI warning.
14295 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
14297 * NEWS: Mention support for record/replay of Intel 64 rdrand and
14298 rdseed instructions.
14299 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
14301 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
14304 Provide and use sparc32 and sparc64 target description XML files.
14305 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
14306 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
14307 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
14308 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
14309 * features/sparc/sparc32-solaris.xml: New file.
14310 * features/sparc/sparc64-solaris.xml: New file.
14311 * features/sparc/sparc32-solaris.c: Generated.
14312 * features/sparc/sparc64-solaris.c: Generated.
14313 * sparc-tdep.h: Account for differences in target descriptions.
14314 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
14315 (sparc32_register_type): Use target provided registers.
14316 (validate_tdesc_registers): New function.
14317 (sparc32_gdbarch_init): Use tdesc_has_registers.
14318 Set pseudoregister functions.
14319 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
14320 (sparc64_register_type): Use target provided registers.
14321 (sparc64_init_abi): Set pseudoregister functions.
14323 2017-02-03 Tom Tromey <tom@tromey.com>
14326 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
14327 with a single member.
14329 2017-02-03 Pedro Alves <palves@redhat.com>
14331 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
14332 (cli_interp_base::~cli_interp_base): New.
14333 (cli_interp): New struct.
14334 (as_cli_interp): Cast the interp itself to cli_interp.
14335 (cli_interpreter_pre_command_loop): Rename to ...
14336 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
14338 (cli_interpreter_init): Rename to ...
14339 (cli_interp::init): ... this. Remove 'self' parameter. Use
14340 boolean. Make extern.
14341 (cli_interpreter_resume): Rename to ...
14342 (cli_interp::resume): ... this. Remove 'data' parameter. Make
14344 (cli_interpreter_suspend): Rename to ...
14345 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
14347 (cli_interpreter_exec): Rename to ...
14348 (cli_interp::exec): ... this. Remove 'data' parameter. Make
14350 (cli_interpreter_supports_command_editing): Rename to ...
14351 (cli_interp_base::supports_command_editing): ... this. Remove
14352 'interp' parameter. Make extern.
14353 (cli_ui_out): Rename to ...
14354 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
14356 (cli_set_logging): Rename to ...
14357 (cli_interp_base::set_logging): ... this. Remove 'interp'
14358 parameter. Make extern.
14359 (cli_interp_procs): Delete.
14360 (cli_interp_factory): Adjust to use "new".
14361 * cli/cli-interp.h: Include "interps.h".
14362 (struct cli_interp_base): New struct.
14363 * interps.c (struct interp): Delete. Fields moved to interps.h.
14364 (interp_new): Delete.
14365 (interp::interp, interp::~interp): New.
14366 (interp_set): Use bool, and return void. Assume the interpreter
14367 has suspend, init and resume methods, and that the all return
14369 (set_top_level_interpreter): interp_set returns void.
14370 (interp_ui_out): Adapt.
14371 (current_interp_set_logging): Adapt.
14372 (interp_data): Delete.
14373 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
14374 (interp_exec): Adapt.
14375 (top_level_interpreter_data): Delete.
14376 * interps.h (interp_init_ftype, interp_resume_ftype)
14377 (interp_suspend_ftype, interp_exec_ftype)
14378 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
14379 (class interp): New.
14380 (interp_new): Delete.
14381 (interp_set): Now returns void. Use bool.
14382 (interp_data, top_level_interpreter_data): Delete.
14383 * mi/mi-common.h: Include interps.h.
14384 (class mi_interp): Inherit from interp. Define a ctor. Declare
14385 init, resume, suspect, exec, interp_ui_out, set_logging and
14386 pre_command_loop methods.
14387 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
14388 (mi_interpreter_init): Rename to ...
14389 (mi_interp::init): ... this. Remove the 'interp' parameter, use
14390 bool, return void and make extern. Adjust.
14391 (mi_interpreter_resume): ... Rename to ...
14392 (mi_interp::resume): ... this. Remove the 'data' parameter,
14393 return void and make extern. Adjust.
14394 (mi_interpreter_suspend): ... Rename to ...
14395 (mi_interp::suspend): ... this. Remove the 'data' parameter,
14396 return void and make extern. Adjust.
14397 (mi_interpreter_exec): ... Rename to ...
14398 (mi_interp::exec): ... this. Remove the 'data' parameter and make
14400 (mi_interpreter_pre_command_loop): ... Rename to ...
14401 (mi_interp::pre_command_loop): ... this. Remove the 'self'
14402 parameter and make extern.
14403 (mi_on_normal_stop_1): Adjust.
14404 (mi_ui_out): Rename to ...
14405 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
14406 parameter and make extern. Adjust.
14407 (mi_set_logging): Rename to ...
14408 (mi_interp::set_logging): ... this. Remove the 'interp'
14409 parameter and make extern. Adjust.
14410 (mi_interp_procs): Delete.
14411 (mi_interp_factory): Adjust to use 'new'.
14412 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
14413 (mi_print_exception, mi_execute_command, mi_load_progress):
14415 * tui/tui-interp.c (tui_interp): New class.
14416 (as_tui_interp): Return a tui_interp pointer.
14417 (tui_on_normal_stop, tui_on_signal_received)
14418 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
14419 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
14420 to use interp::interp_ui_out.
14421 (tui_init): Rename to ...
14422 (tui_interp::init): ... this. Remove the 'self' parameter, use
14423 bool, return void and make extern. Adjust.
14424 (tui_resume): Rename to ...
14425 (tui_interp::resume): ... this. Remove the 'data' parameter,
14426 return void and make extern. Adjust.
14427 (tui_suspend): Rename to ...
14428 (tui_interp::suspend): ... this. Remove the 'data' parameter,
14429 return void and make extern. Adjust.
14430 (tui_ui_out): Rename to ...
14431 (tui_interp::interp_ui_out): ... this. Remove the 'self'
14432 parameter, and make extern. Adjust.
14433 (tui_exec): Rename to ...
14434 (tui_interp::exec): ... this. Remove the 'data' parameter and
14436 (tui_interp_procs): Delete.
14437 (tui_interp_factory): Use "new".
14439 2017-02-02 Tom Tromey <tom@tromey.com>
14441 * rust-exp.y (ends_raw_string, space_then_number)
14442 (rust_identifier_start_p): Return bool.
14443 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
14444 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
14445 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
14446 (rust_chartype_p): Return bool.
14447 (val_print_struct, rust_print_struct_def, rust_print_type):
14449 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
14452 2017-02-02 Tom Tromey <tom@tromey.com>
14454 * rust-lang.c: Reindent.
14456 2017-02-02 Tom Tromey <tom@tromey.com>
14458 * rust-lang.h (rust_crate_for_block): Update.
14459 * rust-lang.c (rust_crate_for_block): Return std::string.
14460 (rust_get_disr_info): Use std:;string, not
14461 gdb::unique_xmalloc_ptr.
14462 * rust-exp.y (crate_name): Update.
14464 2017-02-02 Pedro Alves <palves@redhat.com>
14466 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
14467 field out of gdb_disassembler_test and make it static.
14469 2017-02-02 Pedro Alves <palves@redhat.com>
14471 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
14472 mi1_interp and mi_interp fields.
14474 2017-02-02 Pedro Alves <palves@redhat.com>
14476 * cli/cli-interp.c (struct saved_output_files, saved_output):
14477 Moved from cli/cli-logging.c.
14478 (cli_set_logging): New function.
14479 (cli_interp_procs): Install cli_set_logging.
14480 * cli/cli-interp.h (make_logging_output, cli_set_logging):
14482 * cli/cli-logging.c (struct saved_output_files, saved_output):
14483 Moved to cli/cli-interp.c.
14484 (pop_output_files): Don't save outputs here.
14485 (make_logging_output): New function.
14486 (handle_redirections): Don't build tee nor save previous outputs
14488 * interps.c (current_interp_set_logging): Change prototype.
14489 Assume there's always a set_logging_proc method installed.
14490 * interps.h (interp_set_logging_ftype): Change prototype.
14491 (current_interp_set_logging): Change prototype and adjust comment.
14492 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
14493 use make_logging_output.
14494 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
14495 2017-02-02 Pedro Alves <palves@redhat.com>
14497 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
14499 (set_logging_overwrite): ... here.
14500 (logging_no_redirect_file): Delete.
14501 (set_logging_redirect): Don't handle redirection on the fly.
14502 Instead warn that "logging off" / "logging on" is necessary.
14503 (pop_output_files): Delete references to logging_no_redirect_file.
14504 (show_logging_command): Always speak in terms of what will happen
14505 once logging is reenabled.
14507 2017-02-02 Pedro Alves <palves@redhat.com>
14509 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
14511 2017-02-02 Pedro Alves <palves@redhat.com>
14513 * disasm.c (gdb_pretty_print_insn): Rename to ...
14514 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
14515 Remove gdbarch parameter. Adapt to clear the object's buffers
14516 instead of allocating new buffers, and to print using the object's
14517 gdb_disassembler instead of calling gdb_print_insn.
14518 (dump_insns): Use gdb_pretty_print_disassembler.
14519 * disasm.h (gdb_pretty_print_insn): Delete declaration.
14520 (gdb_pretty_print_disassembler): New class.
14521 * record-btrace.c (btrace_insn_history): Use
14522 gdb_pretty_print_disassembler.
14524 2017-02-02 Pedro Alves <palves@redhat.com>
14526 * ada-lang.c (type_as_string): Use string_file.
14527 * ada-valprint.c (ada_print_floating): Use string_file.
14528 * ada-varobj.c (ada_varobj_scalar_image)
14529 (ada_varobj_get_value_image): Use string_file.
14530 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
14531 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
14532 * breakpoint.c (update_inserted_breakpoint_locations)
14533 (insert_breakpoint_locations, reattach_breakpoints)
14534 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
14535 (print_it_watchpoint): Use string_file.
14536 (save_breakpoints): Use stdio_file.
14537 * c-exp.y (oper): Use string_file.
14538 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
14540 (pop_output_files): Use delete.
14541 (handle_redirections): Use stdio_file and tee_file.
14542 * cli/cli-setshow.c (do_show_command): Use string_file.
14543 * compile/compile-c-support.c (c_compute_program): Use
14545 * compile/compile-c-symbols.c (generate_vla_size): Take a
14546 'string_file &' instead of a 'ui_file *'.
14547 (generate_c_for_for_one_variable): Take a 'string_file &' instead
14548 of a 'ui_file *'. Use string_file.
14549 (generate_c_for_variable_locations): Take a 'string_file &'
14550 instead of a 'ui_file *'.
14551 * compile/compile-internal.h (generate_c_for_for_one_variable):
14552 Take a 'string_file &' instead of a 'ui_file *'.
14553 * compile/compile-loc2c.c (push, pushf, unary, binary)
14554 (print_label, pushf_register_address, pushf_register)
14555 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
14556 'ui_file *'. Adjust.
14557 * compile/compile.c (compile_to_object): Use string_file.
14558 * compile/compile.h (compile_dwarf_expr_to_c)
14559 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
14561 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
14562 (replace_typedefs_qualified_name): Use string_file and
14564 * disasm.c (gdb_pretty_print_insn): Use string_file.
14565 (gdb_disassembly): Adjust reference the null_stream global.
14566 (do_ui_file_delete): Delete.
14567 (gdb_insn_length): Use null_stream.
14568 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
14569 * dwarf2loc.c (dwarf2_compile_property_to_c)
14570 (locexpr_generate_c_location, loclist_generate_c_location): Take a
14571 'string_file &' instead of a 'ui_file *'.
14572 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
14573 * dwarf2read.c (do_ui_file_peek_last): Delete.
14574 (dwarf2_compute_name): Use string_file.
14575 * event-top.c (gdb_setup_readline): Use stdio_file.
14576 * gdbarch.sh (verify_gdbarch): Use string_file.
14577 * gdbtypes.c (safe_parse_type): Use null_stream.
14578 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
14580 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
14581 'string_file *' instead of a 'ui_file *'.
14582 (gdbscm_arch_disassemble): Use string_file.
14583 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
14584 * guile/scm-ports.c (class ioscm_file_port): Now a class that
14585 inherits from ui_file.
14586 (ioscm_file_port_delete, ioscm_file_port_rewind)
14587 (ioscm_file_port_put): Delete.
14588 (ioscm_file_port_write): Rename to ...
14589 (ioscm_file_port::write): ... this. Remove file_port_magic
14591 (ioscm_file_port_new): Delete.
14592 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
14594 * guile/scm-type.c (tyscm_type_name): Use string_file.
14595 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
14597 * infcmd.c (print_return_value_1): Use string_file.
14598 * infrun.c (print_target_wait_results): Use string_file.
14599 * language.c (add_language): Use string_file.
14600 * location.c (explicit_to_string_internal): Use string_file.
14601 * main.c (captured_main_1): Use null_file.
14602 * maint.c (maintenance_print_architecture): Use stdio_file.
14603 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
14604 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
14605 event_channel>: Change type to mi_console_file pointer.
14606 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
14607 (mi_console_file_delete): Delete.
14608 (struct mi_console_file): Delete.
14609 (mi_console_file_magic): Delete.
14610 (mi_console_file_new): Delete.
14611 (mi_console_file::mi_console_file): New.
14612 (mi_console_file_delete): Delete.
14613 (mi_console_file_fputs): Delete.
14614 (mi_console_file::write): New.
14615 (mi_console_raw_packet): Delete.
14616 (mi_console_file::flush): New.
14617 (mi_console_file_flush): Delete.
14618 (mi_console_set_raw): Rename to ...
14619 (mi_console_file::set_raw): ... this.
14620 * mi/mi-console.h (class mi_console_file): New class.
14621 (mi_console_file_new, mi_console_set_raw): Delete.
14622 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
14623 (mi_set_logging): Use delete and tee_file. Adjust.
14624 * mi/mi-main.c (output_register): Use string_file.
14625 (mi_cmd_data_evaluate_expression): Use string_file.
14626 (mi_cmd_data_read_memory): Use string_file.
14627 (mi_cmd_execute, print_variable_or_computed): Use string_file.
14628 * mi/mi-out.c (mi_ui_out::main_stream): New.
14629 (mi_ui_out::rewind): Use main_stream and
14631 (mi_ui_out::put): Use main_stream and string_file.
14632 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
14633 Allocate a 'string_file' instead.
14634 (mi_out_new): Don't allocate a mem_fileopen stream here.
14635 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
14636 (mi_ui_out::main_stream): Declare method.
14637 * printcmd.c (eval_command): Use string_file.
14638 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
14639 * python/py-arch.c (archpy_disassemble): Use string_file.
14640 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
14641 * python/py-frame.c (frapy_str): Use string_file.
14642 * python/py-framefilter.c (py_print_type, py_print_single_arg):
14644 * python/py-type.c (typy_str): Use string_file.
14645 * python/py-unwind.c (unwind_infopy_str): Use string_file.
14646 * python/py-value.c (valpy_str): Use string_file.
14647 * record-btrace.c (btrace_insn_history): Use string_file.
14648 * regcache.c (regcache_print): Use stdio_file.
14649 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
14650 * remote.c (escape_buffer): Use string_file.
14651 * rust-lang.c (rust_get_disr_info): Use string_file.
14652 * serial.c (serial_open_ops_1): Use stdio_file.
14653 (do_serial_close): Use delete.
14654 * stack.c (print_frame_arg): Use string_file.
14655 (print_frame_args): Remove local mem_fileopen stream, not used.
14656 (print_frame): Use string_file.
14657 * symmisc.c (maintenance_print_symbols): Use stdio_file.
14658 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
14659 Take a 'string_file *' instead of a 'ui_file *'.
14660 * top.c (new_ui): Use stdio_file and stderr_file.
14661 (free_ui): Use delete.
14662 (execute_command_to_string): Use string_file.
14663 (quit_confirm): Use string_file.
14664 * tracepoint.c (collection_list::append_exp): Use string_file.
14665 * tui/tui-disasm.c (tui_disassemble): Use string_file.
14666 * tui/tui-file.c: Don't include "ui-file.h".
14667 (enum streamtype, struct tui_stream): Delete.
14668 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
14669 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
14670 (tui_file::tui_file): New method.
14671 (tui_file_fputs): Delete.
14672 (tui_file_get_strbuf): Delete.
14673 (tui_file::puts): New method.
14674 (tui_file_adjust_strbuf): Delete.
14675 (tui_file_flush): Delete.
14676 (tui_file::flush): New method.
14677 * tui/tui-file.h: Tweak intro comment.
14679 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
14680 (tui_file_adjust_strbuf): Delete declarations.
14681 (class tui_file): New class.
14682 * tui/tui-io.c (tui_initialize_io): Use tui_file.
14683 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
14684 (tui_register_format): Use string_stream.
14685 * tui/tui-stack.c (tui_make_status_line): Use string_file.
14686 (tui_get_function_from_frame): Use string_file.
14687 * typeprint.c (type_to_string): Use string_file.
14688 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
14689 (null_stream): New global.
14690 (ui_file_delete): Delete.
14691 (ui_file::ui_file): New.
14692 (null_file_isatty): Delete.
14693 (ui_file::~ui_file): New.
14694 (null_file_rewind): Delete.
14695 (ui_file::printf): New.
14696 (null_file_put): Delete.
14697 (null_file_flush): Delete.
14698 (ui_file::putstr): New.
14699 (null_file_write): Delete.
14700 (ui_file::putstrn): New.
14701 (null_file_read): Delete.
14702 (ui_file::putc): New.
14703 (null_file_fputs): Delete.
14704 (null_file_write_async_safe): Delete.
14705 (ui_file::vprintf): New.
14706 (null_file_delete): Delete.
14707 (null_file::write): New.
14708 (null_file_fseek): Delete.
14709 (null_file::puts): New.
14710 (ui_file_data): Delete.
14711 (null_file::write_async_safe): New.
14712 (gdb_flush, ui_file_isatty): Adjust.
14713 (ui_file_put, ui_file_rewind): Delete.
14714 (ui_file_write): Adjust.
14715 (ui_file_write_for_put): Delete.
14716 (ui_file_write_async_safe, ui_file_read): Adjust.
14717 (ui_file_fseek): Delete.
14718 (fputs_unfiltered): Adjust.
14719 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
14720 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
14721 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
14722 (set_ui_file_data): Delete.
14723 (string_file::~string_file, string_file::write)
14724 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
14725 (do_ui_file_as_string, ui_file_as_string): Delete.
14726 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
14727 (struct mem_file): Delete.
14728 (mem_file_new): Delete.
14729 (stdio_file::stdio_file): New.
14730 (mem_file_delete): Delete.
14731 (stdio_file::stdio_file): New.
14732 (mem_fileopen): Delete.
14733 (stdio_file::~stdio_file): New.
14734 (mem_file_rewind): Delete.
14735 (stdio_file::set_stream): New.
14736 (mem_file_put): Delete.
14737 (stdio_file::open): New.
14738 (mem_file_write): Delete.
14739 (stdio_file_magic, struct stdio_file): Delete.
14740 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
14741 (stdio_file::flush): New.
14742 (stdio_file_read): Rename to ...
14743 (stdio_file::read): ... this. Adjust.
14744 (stdio_file_write): Rename to ...
14745 (stdio_file::write): ... this. Adjust.
14746 (stdio_file_write_async_safe): Rename to ...
14747 (stdio_file::write_async_safe) ... this. Adjust.
14748 (stdio_file_fputs): Rename to ...
14749 (stdio_file::puts) ... this. Adjust.
14750 (stdio_file_isatty): Delete.
14751 (stdio_file_fseek): Delete.
14752 (stdio_file::isatty): New.
14753 (stderr_file_write): Rename to ...
14754 (stderr_file::write) ... this. Adjust.
14755 (stderr_file_fputs): Rename to ...
14756 (stderr_file::puts) ... this. Adjust.
14757 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
14758 (stderr_file::stderr_file): New.
14759 (tee_file_magic): Delete.
14760 (struct tee_file): Delete.
14761 (tee_file::tee_file): New.
14762 (tee_file_new): Delete.
14763 (tee_file::~tee_file): New.
14764 (tee_file_delete): Delete.
14765 (tee_file_flush): Rename to ...
14766 (tee_file::flush): ... this. Adjust.
14767 (tee_file_write): Rename to ...
14768 (tee_file::write): ... this. Adjust.
14769 (tee_file::write_async_safe): New.
14770 (tee_file_fputs): Rename to ...
14771 (tee_file::puts): ... this. Adjust.
14772 (tee_file_isatty): Rename to ...
14773 (tee_file::isatty): ... this. Adjust.
14774 * ui-file.h (struct obstack, struct ui_file): Don't
14776 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
14777 (ui_file_write_ftype)
14778 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
14779 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
14780 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
14781 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
14782 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
14783 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
14784 (set_ui_file_fseek): Delete.
14785 (ui_file_data, ui_file_delete, ui_file_rewind)
14786 (struct ui_file): New.
14788 (class null_file): New.
14789 (null_stream): Declare.
14790 (ui_file_write_for_put, ui_file_put): Delete.
14791 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
14793 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
14794 (gdb_fopen, tee_file_new): Delete.
14795 (struct string_file): New.
14796 (struct stdio_file): New.
14797 (stdio_file_up): New.
14798 (struct stderr_file): New.
14799 (class tee_file): New.
14800 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
14801 of a 'ui_file *'. Adjust.
14802 * ui-out.h (class ui_out) <field_stream>: Likewise.
14803 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
14804 (null_stream): Delete.
14805 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
14807 * utils.h (struct ui_file): Delete forward declaration..
14808 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
14809 (error_stream): Take a 'string_file &' instead of a
14811 * varobj.c (varobj_value_get_print_value): Use string_file.
14812 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
14813 * gdbarch.c: Regenerate.
14815 2017-02-02 Pedro Alves <palves@redhat.com>
14817 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
14818 (gdb_pretty_print_insn): ... this. Now a free function. Add back
14819 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
14820 Adjust to call gdb_print_insn instead of
14821 gdb_disassembler::print_insn.
14822 (dump_insns, do_mixed_source_and_assembly_deprecated)
14823 (do_mixed_source_and_assembly, do_assembly_only): Add back a
14824 'gdbarch' parameter. Remove gdb_disassembler parameter.
14825 (gdb_disassembly): Don't allocate a gdb_disassembler here.
14826 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
14828 (gdb_pretty_print_insn): Re-add declaration.
14829 * record-btrace.c (btrace_insn_history): Don't allocate a
14830 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
14832 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
14834 * disasm.h (gdb_disassembly): Remove file_string parameter.
14835 * disasm.c (gdb_disassembly): Likewise.
14836 * cli/cli-cmds.c (print_disassembly): Adapt.
14837 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
14838 * stack.c (do_gdb_disassembly): Likewise.
14840 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
14842 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
14843 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
14844 targets. And if the implicit value is longer than needed, extract
14845 the first bytes instead of the "least significant" ones.
14847 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14849 * btrace.c (btrace_enable): Do not call btrace_add_pc for
14850 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
14851 (btrace_fetch): Assert can_access_registers_ptid.
14852 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
14853 validate_registers_access.
14855 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14857 * gdbthread.h (can_access_registers_ptid): New.
14858 * thread.c (can_access_registers_ptid): New.
14860 2017-02-01 Pedro Alves <palves@redhat.com>
14862 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
14864 2017-01-31 Pedro Alves <palves@redhat.com>
14866 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
14869 2017-01-31 Pedro Alves <palves@redhat.com>
14871 * stack.c (print_frame_args): Remove local mem_fileopen stream,
14874 2017-01-31 Pedro Alves <palves@redhat.com>
14876 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
14878 2017-01-31 Pedro Alves <palves@redhat.com>
14880 * common/scoped_restore.h
14881 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
14882 change the value's parameter type to T2.
14883 (make_scoped_restore): Likewise.
14885 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14886 Richard Henderson <rth@redhat.com>
14888 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
14889 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
14890 GS_BASE for older kernels.
14891 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
14892 GS_BASE for older kernels.
14893 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
14894 and GS_BASE to the offset table.
14895 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
14896 system register group.
14897 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
14899 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
14901 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
14902 AMD64_GSBASE_REGNUM.
14903 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
14904 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
14905 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
14906 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
14907 i386/64bit-segments.xml in those rules.
14908 * features/i386/64bit-segments.xml: New file.
14909 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
14910 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
14911 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
14912 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
14913 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
14914 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
14915 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
14916 * features/i386/amd64-avx-linux.c: Regenerated.
14917 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
14918 * features/i386/amd64-avx-mpx.c: Regenerated.
14919 * features/i386/amd64-avx512-linux.c: Regenerated.
14920 * features/i386/amd64-linux.c: Regenerated.
14921 * features/i386/amd64-mpx-linux.c: Regenerated.
14922 * features/i386/i386-avx-mpx-linux.c: Regenerated.
14923 * features/i386/i386-avx-mpx.c: Regenerated.
14924 * features/i386/x32-avx-linux.c: Regenerated.
14925 * features/i386/x32-avx512-linux.c: Regenerated.
14926 * regformats/i386/amd64-avx-linux.dat: Regenerated.
14927 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
14928 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
14929 * regformats/i386/amd64-linux.dat: Regenerated.
14930 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
14931 * regformats/i386/x32-avx-linux.dat: Regenerated.
14932 * regformats/i386/x32-avx512-linux.dat: Regenerated.
14933 * regformats/i386/x32-linux.dat: Regenerated.
14935 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14937 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
14938 Set to AMD64_NUM_REGS.
14940 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14942 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
14943 that checks validity of a register number.
14945 2017-01-27 Kees Cook <keescook@google.com>
14947 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
14948 fetch_fpregs if target has fpa registers.
14949 (arm_linux_store_inferior_registers): Call store_fpregs if target
14952 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
14954 * cris-tdep.c (cris_gdbarch_init): Remove check for
14955 info.byte_order and force it to BFD_ENDIAN_LITTLE.
14957 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
14959 * corelow.c (get_core_register_section): Check for regset
14960 existence before checking for REGSET_VARIABLE_SIZE.
14962 2017-01-26 Yao Qi <yao.qi@linaro.org>
14963 Pedro Alves <palves@redhat.com>
14966 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
14967 call memory_error, save memaddr instead.
14968 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
14969 negative, cal memory_error.
14970 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
14972 2017-01-26 Yao Qi <yao.qi@linaro.org>
14974 * disasm-selftests.c (memory_error_test): New function.
14975 (_initialize_disasm_selftests): Register memory_error_test.
14977 2017-01-26 Yao Qi <yao.qi@linaro.org>
14979 * Makefile.in (SFILES): Add disasm-selftests.c and
14981 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
14982 * disasm-selftests.c: New file.
14983 * selftest-arch.c: New file.
14984 * selftest-arch.h: New file.
14986 2017-01-26 Yao Qi <yao.qi@linaro.org>
14988 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
14989 to bfd_arch_mep. Don't return 0 if section is not
14990 found. Call print_insn_mep.
14992 2017-01-26 Pedro Alves <palves@redhat.com>
14993 Yao Qi <yao.qi@linaro.org>
14995 * arm-tdep.c: Include "disasm.h".
14996 (gdb_print_insn_arm): Update code to get gdbarch.
14997 * disasm.c (dis_asm_read_memory): Change it to
14998 gdb_disassembler::dis_asm_read_memory.
14999 (dis_asm_memory_error): Likewise.
15000 (dis_asm_print_address): Likewise.
15001 (gdb_pretty_print_insn): Change it to
15002 gdb_disassembler::pretty_print_insn.
15003 (dump_insns): Add one argument gdb_disassemlber. All
15005 (do_mixed_source_and_assembly_deprecated): Likewise.
15006 (do_mixed_source_and_assembly): Likewise.
15007 (do_assembly_only): Likewise.
15008 (gdb_disassembler::gdb_disassembler): New.
15009 (gdb_disassembler::print_insn): New.
15010 * disasm.h (class gdb_disassembler): New.
15011 (gdb_pretty_print_insn): Remove declaration.
15012 (gdb_disassemble_info): Likewise.
15013 * guile/scm-disasm.c (class gdbscm_disassembler): New.
15014 (gdbscm_disasm_read_memory_worker): Update.
15015 (gdbscm_disasm_read_memory): Update.
15016 (gdbscm_disasm_memory_error): Remove.
15017 (gdbscm_disasm_print_address): Remove.
15018 (gdbscm_disassembler::gdbscm_disassembler): New.
15019 (gdbscm_print_insn_from_port): Update.
15020 * mips-tdep.c: Include disasm.h.
15021 (gdb_print_insn_mips): Update code to get gdbarch.
15022 * record-btrace.c (btrace_insn_history): Update.
15023 * spu-tdep.c: Include disasm.h.
15024 (struct spu_dis_asm_data): Remove.
15025 (struct spu_dis_asm_info): New.
15026 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
15028 (gdb_print_insn_spu): Cast disassemble_info to
15031 2017-01-26 Yao Qi <yao.qi@linaro.org>
15033 * disasm.c (do_ui_file_delete): Delete.
15034 (gdb_insn_length): Move code creating stream to ...
15035 * utils.c (null_stream): ... here. New function.
15036 * utils.h (null_stream): Declare.
15038 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15040 * python/py-inferior.c (find_thread_object): Return directly
15041 from the loop. Remove "found" variable.
15043 2017-01-21 Joel Brobecker <brobecker@adacore.com>
15045 GDB 7.12.1 released.
15047 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
15049 * python/py-function.c (fnpy_call): Reorder declarations to have
15050 the gdbpy_enter object declared first.
15051 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
15053 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
15056 * python/python-internal.h (PyMem_RawMalloc): Define for
15058 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
15059 PyMem_RawMalloc instead of PyMem_Malloc.
15061 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
15062 Luis Machado <lgustavo@codesourcery.com>
15064 * NEWS (New commands): Mention flash-erase.
15065 (New MI commands): Mention target-flash-erase.
15066 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
15068 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
15069 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
15070 * target.c (flash_erase_command): New function.
15071 (initialize_targets): Add new flash-erase command.
15072 * target.h (flash_erase_command): New declaration.
15074 2017-01-20 Joel Brobecker <brobecker@adacore.com>
15076 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
15077 HAVE_SYS_PROCFS_H is defined.
15079 2017-01-18 Alan Hayward <alan.hayward@arm.com>
15081 * remote.c (struct cached_reg): Change data into a pointer.
15082 * (stop_reply_dtr): Free data pointers before deleting vector.
15083 (process_stop_reply): Likewise.
15084 (remote_parse_stop_reply): Allocate space for data
15086 2017-01-18 Alan Hayward <alan.hayward@arm.com>
15088 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
15090 (amd64_pseudo_register_read_value): Likewise.
15091 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
15092 (store_register_using_P): Likewise.
15093 * regcache.c (regcache_xfer_part): Likewise.
15095 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
15097 Split real and pseudo registers.
15098 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
15099 (sparc32_pseudo_regnum): New enum.
15100 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
15101 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
15102 (SPARC32_CP0_REGISTERS): New macro.
15103 (sparc32_pseudo_register_name): New function.
15104 (sparc32_register_name): Use sparc32_pseudo_register_name.
15105 (sparc32_pseudo_register_type): New function.
15106 (sparc32_register_type): Use sparc32_pseudo_register_type.
15107 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
15108 pseudo register numbers.
15109 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
15110 (SPARC64_CP0_REGISTERS): New macro.
15111 (sparc64_pseudo_register_name): New function.
15112 (sparc64_register_name): Use sparc64_pseudo_register_name.
15113 (sparc64_pseudo_register_type): New function.
15114 (sparc64_register_type): Use sparc64_pseudo_register_type.
15115 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
15116 pseudo register numbers.
15117 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
15118 sparc64_store_arguments): Handle pseudo register numbers.
15120 2017-01-13 Yao Qi <yao.qi@linaro.org>
15122 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
15123 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
15125 (getpkt_or_notif_sane_1): Likewise.
15127 2017-01-13 Yao Qi <yao.qi@linaro.org>
15129 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
15130 of CC. Pass "-x c++-header" instead of "-x c".
15132 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15134 * remote.c (remote_can_async_p): Update comment.
15136 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15138 * linux-nat.c (linux_nat_can_async_p): Update comment.
15140 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15142 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
15144 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
15146 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
15148 2017-01-10 Tom Tromey <tom@tromey.com>
15150 * python/py-type.c (typy_legacy_template_argument): Update.
15151 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
15152 ~demangle_parse_info): Declare new members.
15153 (cp_demangled_name_to_comp): Return unique_ptr.
15154 (cp_demangled_name_parse_free)
15155 (make_cleanup_cp_demangled_name_parse_free)
15156 (cp_new_demangle_parse_info): Remove.
15157 * cp-support.c (do_demangled_name_parse_free_cleanup)
15158 (make_cleanup_cp_demangled_name_parse_free): Remove.
15159 (inspect_type, cp_canonicalize_string_full)
15160 (cp_canonicalize_string): Update.
15161 (mangled_name_to_comp): Change return type.
15162 (cp_class_name_from_physname, method_name_from_physname)
15163 (cp_func_name, cp_remove_params): Update.
15164 * cp-name-parser.y (demangle_parse_info): New constructor, from
15165 cp_new_demangle_parse_info.
15166 (~demangle_parse_info): New destructor, from
15167 cp_demangled_name_parse_free.
15168 (cp_merge_demangle_parse_infos): Update.
15169 (cp_demangled_name_to_comp): Change return type.
15171 2017-01-10 Tom Tromey <tom@tromey.com>
15173 * top.c (prevent_dont_repeat): Change return type.
15174 * python/python.c (execute_gdb_command): Use std::string.
15176 * guile/guile.c (gdbscm_execute_gdb_command): Update.
15177 * command.h (prevent_dont_repeat): Change return type.
15178 * breakpoint.c (bpstat_do_actions_1): Update.
15180 2017-01-10 Tom Tromey <tom@tromey.com>
15182 * value.h (scoped_value_mark::~scoped_value_mark): Call
15184 (scoped_value_mark::free_to_mark): New method.
15185 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
15188 2017-01-10 Tom Tromey <tom@tromey.com>
15190 * python/py-value.c (valpy_dereference, valpy_referenced_value)
15191 (valpy_reference_value, valpy_const_value, valpy_get_address)
15192 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
15193 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
15194 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
15195 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
15197 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
15198 * value.h (scoped_value_mark): New class.
15200 2017-01-10 Tom Tromey <tom@tromey.com>
15202 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
15203 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
15204 * psymtab.c (discard_psymtabs_upto): Remove.
15205 (make_cleanup_discard_psymtabs): Remove.
15206 (struct psymtab_state): Remove.
15208 2017-01-10 Tom Tromey <tom@tromey.com>
15210 * record-full.c (record_full_save_cleanups): Remove.
15211 (record_full_save): Use gdb::unlinker.
15212 * gcore.c (do_bfd_delete_cleanup): Remove.
15213 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
15215 * dwarf2read.c (unlink_if_set): Remove.
15216 (write_psymtabs_to_index): Use gdb::unlinker.
15217 * common/gdb_unlinker.h: New file.
15219 2017-01-10 Tom Tromey <tom@tromey.com>
15221 * windows-tdep.c (windows_xfer_shared_library): Update.
15222 * windows-nat.c (windows_make_so): Update.
15223 * utils.h (make_cleanup_bfd_unref): Remove.
15224 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
15225 * symfile.h (symfile_bfd_open)
15226 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
15227 * symfile.c (read_symbols, symbol_file_add)
15228 (separate_debug_file_exists): Update.
15229 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
15230 (generic_load, reread_symbols): Update.
15231 * symfile-mem.c (symbol_file_add_from_memory): Update.
15232 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
15233 (spu_symbol_file_add_from_memory): Update.
15234 * solist.h (struct target_so_ops) <bfd_open>: Return
15236 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
15237 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
15239 (solib_map_sections, reload_shared_libraries_1): Update.
15240 * solib-svr4.c (enable_break): Update.
15241 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
15242 * solib-frv.c (enable_break2): Update.
15243 * solib-dsbt.c (enable_break): Update.
15244 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
15246 (darwin_solib_get_all_image_info_addr_at_init): Update.
15247 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
15248 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
15249 * record-full.c (record_full_save): Update.
15250 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
15251 * procfs.c (insert_dbx_link_bpt_in_file): Update.
15252 * minidebug.c (find_separate_debug_file_in_section): Return
15254 * machoread.c (macho_add_oso_symfile): Change abfd to
15256 (macho_symfile_read_all_oso): Update.
15257 (macho_check_dsym): Return gdb_bfd_ref_ptr.
15258 (macho_symfile_read): Update.
15259 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
15260 (jit_bfd_try_read_symtab): Update.
15261 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
15262 (gdb_bfd_openw, gdb_bfd_openr_iovec)
15263 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
15265 (gdb_bfd_ref_policy): New struct.
15266 (gdb_bfd_ref_ptr): New typedef.
15267 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
15268 (gdb_bfd_openw, gdb_bfd_openr_iovec)
15269 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
15271 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
15272 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
15273 (gcore_command): Update.
15274 * exec.c (exec_file_attach): Update.
15275 * elfread.c (elf_symfile_read): Update.
15276 * dwarf2read.c (dwarf2_get_dwz_file): Update.
15277 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
15278 (open_and_init_dwo_file): Update.
15279 (open_dwp_file): Return gdb_bfd_ref_ptr.
15280 (open_and_init_dwp_file): Update.
15281 * corelow.c (core_open): Update.
15282 * compile/compile-object-load.c (compile_object_load): Update.
15283 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
15284 * coffread.c (coff_symfile_read): Update.
15285 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
15286 gdb_bfd_ref_ptr. Rename.
15287 (dump_bfd_file, restore_command): Update.
15288 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
15289 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
15290 (find_separate_debug_file_by_buildid): Update.
15292 2017-01-10 Tom Tromey <tom@tromey.com>
15294 * common/gdb_ref_ptr.h: New file.
15295 * python/py-ref.h (struct gdbpy_ref_policy): New.
15296 (gdbpy_ref): Now a typedef.
15298 2017-01-10 Tom Tromey <tom@tromey.com>
15300 * utils.h (make_cleanup_htab_delete): Don't declare.
15301 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
15303 * linespec.c (decode_compound_collector): Add constructor,
15305 (lookup_prefix_sym): Remove cleanup.
15306 (symtab_collector): Add constructor, destructor.
15307 (collect_symtabs_from_filename): Remove cleanup.
15308 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
15309 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
15311 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
15312 * dwarf2read.c (dw2_expand_symtabs_matching)
15313 (dw2_map_symbol_filenames, dwarf_decode_macros)
15314 (write_psymtabs_to_index): Use htab_up.
15315 * dwarf2loc.c (func_verify_no_selftailcall)
15316 (call_site_find_chain_1, func_verify_no_selftailcall)
15317 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
15318 std::vector, gdb::unique_xmalloc_ptr.
15319 (call_sitep): Remove typedef.
15320 (dwarf2_locexpr_baton_eval): Remove unused variable.
15322 2017-01-10 Tom Tromey <tom@tromey.com>
15324 * python/python-internal.h (make_cleanup_py_decref)
15325 (make_cleanup_py_xdecref): Don't declare.
15326 * python/py-utils.c (py_decref, make_cleanup_py_decref)
15327 (py_xdecref, make_cleanup_py_xdecref): Remove.
15329 2017-01-10 Tom Tromey <tom@tromey.com>
15331 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
15332 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
15334 2017-01-10 Tom Tromey <tom@tromey.com>
15336 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
15338 2017-01-10 Tom Tromey <tom@tromey.com>
15340 * python/py-utils.c (unicode_to_encoded_string)
15341 (python_string_to_target_string)
15342 (python_string_to_target_python_string)
15343 (python_string_to_host_string, gdbpy_obj_to_string)
15344 (get_addr_from_python): Use gdbpy_ref.
15346 2017-01-10 Tom Tromey <tom@tromey.com>
15348 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
15351 2017-01-10 Tom Tromey <tom@tromey.com>
15353 * python/python.c (eval_python_command, gdbpy_decode_line)
15354 (gdbpy_run_events, gdbpy_start_type_printers)
15355 (gdbpy_apply_type_printers): Use gdbpy_ref.
15357 2017-01-10 Tom Tromey <tom@tromey.com>
15359 * python/py-param.c (get_doc_string, compute_enum_values): Use
15362 2017-01-10 Tom Tromey <tom@tromey.com>
15364 * python/py-inferior.c (find_thread_object, build_inferior_list):
15367 2017-01-10 Tom Tromey <tom@tromey.com>
15369 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
15371 2017-01-10 Tom Tromey <tom@tromey.com>
15373 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
15376 2017-01-10 Tom Tromey <tom@tromey.com>
15378 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
15380 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
15383 2017-01-10 Tom Tromey <tom@tromey.com>
15385 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
15388 2017-01-10 Tom Tromey <tom@tromey.com>
15390 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
15391 decref results of PyArg_ParseTupleAndKeywords.
15393 2017-01-10 Tom Tromey <tom@tromey.com>
15395 * python/python.c (python_run_simple_file): Use
15396 unique_xmalloc_ptr, gdbpy_ref.
15398 2017-01-10 Tom Tromey <tom@tromey.com>
15400 * python/py-prettyprint.c (print_stack_unless_memory_error)
15401 (print_string_repr, print_children): Use gdbpy_ref.
15402 (dummy_python_frame): New class.
15403 (dummy_python_frame::dummy_python_frame): Rename from
15404 push_dummy_python_frame.
15405 (py_restore_tstate): Remove.
15407 2017-01-10 Tom Tromey <tom@tromey.com>
15409 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
15411 2017-01-10 Tom Tromey <tom@tromey.com>
15413 * python/python.c (ensure_python_env, restore_python_env):
15415 * python/python-internal.h (ensure_python_env): Don't declare.
15416 * varobj.h (varobj_ensure_python_env): Don't declare.
15417 * varobj.c (varobj_ensure_python_env): Remove.
15419 2017-01-10 Tom Tromey <tom@tromey.com>
15421 * varobj.c (varobj_value_get_print_value): Use
15422 gdbpy_enter_varobj.
15424 2017-01-10 Tom Tromey <tom@tromey.com>
15426 * python/py-prettyprint.c (print_string_repr, print_children):
15428 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
15430 * varobj.c (varobj_value_get_print_value): Update.
15431 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
15433 2017-01-10 Tom Tromey <tom@tromey.com>
15435 * varobj.c (varobj_get_display_hint)
15436 (dynamic_varobj_has_child_method, install_new_value_visualizer)
15437 (varobj_set_visualizer, free_variable): Use
15438 gdbpy_enter_varobj.
15440 2017-01-10 Tom Tromey <tom@tromey.com>
15442 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
15443 (do_finish_initialization): New function. Use gdbpy_ref.
15444 (gdbpy_finish_initialization): Use gdbpy_enter. Call
15445 do_finish_initialization.
15447 2017-01-10 Tom Tromey <tom@tromey.com>
15449 * python/py-param.c (get_set_value, get_show_value): Use
15450 gdbpy_enter, gdbpy_ref.
15452 2017-01-10 Tom Tromey <tom@tromey.com>
15454 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
15456 2017-01-10 Tom Tromey <tom@tromey.com>
15458 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
15460 2017-01-10 Tom Tromey <tom@tromey.com>
15462 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
15463 Use gdbpy_enter_varobj.
15465 2017-01-10 Tom Tromey <tom@tromey.com>
15467 * varobj.c (gdbpy_enter_varobj): New constructor.
15468 * python/python-internal.h (gdbpy_enter_varobj): New class.
15469 * python/py-varobj.c (py_varobj_get_iterator): Use
15470 gdbpy_enter_varobj.
15472 2017-01-10 Tom Tromey <tom@tromey.com>
15474 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
15475 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
15476 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
15477 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
15478 unique_xmalloc_ptr.
15479 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
15481 2017-01-10 Tom Tromey <tom@tromey.com>
15483 * python/py-xmethods.c (invoke_match_method): Use
15486 2017-01-10 Tom Tromey <tom@tromey.com>
15488 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
15489 gdbpy_enter, gdbpy_ref.
15491 2017-01-10 Tom Tromey <tom@tromey.com>
15493 * python/python.c (python_interactive_command): Use gdbpy_enter.
15495 2017-01-10 Tom Tromey <tom@tromey.com>
15497 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
15500 2017-01-10 Tom Tromey <tom@tromey.com>
15502 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
15503 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
15505 2017-01-10 Tom Tromey <tom@tromey.com>
15507 * utils.h (htab_deleter): New struct.
15508 (htab_up): New typedef.
15509 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
15510 gdbpy_enter, gdbpy_ref, htab_up.
15512 2017-01-10 Tom Tromey <tom@tromey.com>
15514 * python/py-unwind.c (pending_frame_invalidate): Remove.
15515 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
15517 2017-01-10 Tom Tromey <tom@tromey.com>
15519 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
15520 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
15522 2017-01-10 Tom Tromey <tom@tromey.com>
15524 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
15526 2017-01-10 Tom Tromey <tom@tromey.com>
15528 * python/python.c (gdbpy_eval_from_control_command)
15529 (gdbpy_source_script, gdbpy_run_events)
15530 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
15531 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
15534 2017-01-10 Tom Tromey <tom@tromey.com>
15536 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
15538 2017-01-10 Tom Tromey <tom@tromey.com>
15540 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
15542 2017-01-10 Tom Tromey <tom@tromey.com>
15544 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
15545 (python_on_inferior_call_pre, python_on_inferior_call_post)
15546 (python_on_memory_change, python_on_register_change)
15547 (python_inferior_exit, python_new_objfile, add_thread_object)
15548 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
15550 2017-01-10 Tom Tromey <tom@tromey.com>
15552 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
15553 (bpfinishpy_handle_exit): Use gdbpy_enter.
15555 2017-01-10 Tom Tromey <tom@tromey.com>
15557 * python/py-cmd.c (cmdpy_destroyer)
15558 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
15561 2017-01-10 Tom Tromey <tom@tromey.com>
15563 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
15565 (gdbpy_breakpoint_has_cond): Likewise.
15567 2017-01-10 Tom Tromey <tom@tromey.com>
15569 * python/python.c (gdbpy_enter): New constructor.
15570 (~gdbpy_enter): New destructor.
15571 (restore_python_env, ensure_python_env): Rewrite.
15572 * python/python-internal.h (gdbpy_enter): New class.
15574 2017-01-10 Tom Tromey <tom@tromey.com>
15576 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
15578 2017-01-10 Tom Tromey <tom@tromey.com>
15580 * python/py-value.c (value_has_field, get_field_flag)
15581 (get_field_type, valpy_getitem, convert_value_from_python): Use
15584 2017-01-10 Tom Tromey <tom@tromey.com>
15586 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
15589 2017-01-10 Tom Tromey <tom@tromey.com>
15591 * python/py-prettyprint.c (search_pp_list)
15592 (find_pretty_printer_from_objfiles)
15593 (find_pretty_printer_from_progspace)
15594 (find_pretty_printer_from_gdb, find_pretty_printer)
15595 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
15598 2017-01-10 Tom Tromey <tom@tromey.com>
15600 * python/py-param.c (call_doc_function): Use gdbpy_ref.
15602 2017-01-10 Tom Tromey <tom@tromey.com>
15604 * python/py-linetable.c (build_line_table_tuple_from_pcs)
15605 (ltpy_get_all_source_lines): Use gdbpy_ref.
15607 2017-01-10 Tom Tromey <tom@tromey.com>
15609 * python/py-framefilter.c (extract_sym, extract_value)
15610 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
15613 2017-01-10 Tom Tromey <tom@tromey.com>
15615 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
15617 2017-01-10 Tom Tromey <tom@tromey.com>
15619 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
15621 2017-01-10 Tom Tromey <tom@tromey.com>
15623 * python/py-function.c (convert_values_to_python, fnpy_init): Use
15626 2017-01-10 Tom Tromey <tom@tromey.com>
15628 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
15630 2017-01-10 Tom Tromey <tom@tromey.com>
15632 * python/py-type.c (convert_field, make_fielditem, typy_fields)
15633 (typy_range): Use gdbpy_ref.
15635 2017-01-10 Tom Tromey <tom@tromey.com>
15637 * python/py-threadevent.c (create_thread_event_object): Use
15639 * python/py-stopevent.c (create_stop_event_object): Simplify.
15640 (emit_stop_event): Use gdbpy_ref.
15641 * python/py-signalevent.c (create_signal_event_object): Use
15643 * python/py-newobjfileevent.c (create_new_objfile_event_object)
15644 (emit_new_objfile_event, create_clear_objfiles_event_object)
15645 (emit_clear_objfiles_event): Use gdbpy_ref.
15646 * python/py-infevents.c (create_inferior_call_event_object)
15647 (create_register_changed_event_object)
15648 (create_memory_changed_event_object, emit_inferior_call_event)
15649 (emit_memory_changed_event, emit_register_changed_event): Use
15651 * python/py-exitedevent.c (create_exited_event_object)
15652 (emit_exited_event): Use gdbpy_ref.
15653 * python/py-event.h (evpy_emit_event): Remove
15654 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
15655 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
15656 * python/py-continueevent.c (emit_continue_event): Use
15658 * python/py-breakpoint.c (gdbpy_breakpoint_created)
15659 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
15661 * python/py-bpevent.c (create_breakpoint_event_object): Use
15664 2017-01-10 Tom Tromey <tom@tromey.com>
15666 * python/py-ref.h: New file.
15668 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
15670 * cli-out.c (cli_ui_out::do_redirect): Change return type to
15672 * cli-out.h (cli_ui_out::do_redirect): Likewise.
15673 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
15674 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
15675 * ui-out.c (ui_out::redirect): Likewise.
15676 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
15677 * cli/cli-logging.c (set_logging_redirect): Update call site of
15679 (handle_redirections): Likewise.
15680 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
15681 * top.c (execute_command_to_string): Likewise.
15682 * utils.c (do_ui_out_redirect_pop): Likewise.
15684 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
15686 * stack.c (_initialize_stack): Update "frame" command help message.
15688 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
15690 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
15692 2017-01-06 Yao Qi <yao.qi@linaro.org>
15694 * x86-linux-nat.h: Include gdb_proc_service.h.
15696 2017-01-06 Yao Qi <yao.qi@linaro.org>
15698 * ser-base.h: Include serial.h.
15700 2017-01-06 Yao Qi <yao.qi@linaro.org>
15702 * ppc-linux-tdep.h: Include ppc-tdep.h.
15704 2017-01-06 Yao Qi <yao.qi@linaro.org>
15706 * nat/amd64-linux-siginfo.h: Include signal.h.
15708 2017-01-06 Yao Qi <yao.qi@linaro.org>
15710 * nat/aarch64-linux-hw-point.h: Include break-common.h.
15712 2017-01-06 Yao Qi <yao.qi@linaro.org>
15714 * mi/mi-parse.h: Include mi-cmds.h.
15716 2017-01-06 Yao Qi <yao.qi@linaro.org>
15718 * inf-loop.c: Don't include "target.h".
15719 * inf-loop.h: Include it here.
15721 2017-01-06 Yao Qi <yao.qi@linaro.org>
15723 * dfp.h: Include "dboulest.h" and "expression.h".
15725 2017-01-06 Yao Qi <yao.qi@linaro.org>
15727 * ax-gdb.h: Include "ax.h".
15729 2017-01-06 Yao Qi <yao.qi@linaro.org>
15731 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
15732 with nat/gdb_ptrace.h.
15734 2017-01-05 Yao Qi <yao.qi@linaro.org>
15736 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
15738 (mips64_fbsd_sigframe_init): Likewise.
15740 2017-01-04 John Baldwin <jhb@FreeBSD.org>
15742 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
15743 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
15745 2017-01-04 John Baldwin <jhb@FreeBSD.org>
15747 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
15748 * NEWS: Mention new FreeBSD/mips native configuration.
15749 * config/mips/fbsd.mh: New file.
15750 * configure.host: Add mips*-*-freebsd*.
15751 * mips-fbsd-nat.c: New file.
15753 2017-01-04 John Baldwin <jhb@FreeBSD.org>
15755 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
15756 (ALLDEPFILES): Add mips-fbsd-tdep.c.
15757 * NEWS: Mention new FreeBSD/mips target.
15758 * configure.tgt: Add mips*-*-freebsd*.
15759 * mips-fbsd-tdep.c: New file.
15760 * mips-fbsd-tdep.h: New file.
15762 2017-01-04 Yao Qi <yao.qi@linaro.org>
15764 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
15765 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
15767 2017-01-01 Joel Brobecker <brobecker@adacore.com>
15769 Update copyright year range in all GDB files.
15771 2017-01-01 Joel Brobecker <brobecker@adacore.com>
15773 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
15775 For older changes see ChangeLog-2016.
15781 version-control: never