Fix mem region parsing regression and add test
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
07431908
SM
12017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2
3 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4 memory-map-selftests.c.
5 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
6 * memory-map.c (memory_map_start_memory): Fix computation of hi
7 address.
8 * unittests/memory-map-selftests.c: New file.
9
31432a67
JB
102017-11-09 Joel Brobecker <brobecker@adacore.com>
11
12 * ada-lang.c: Fix some typos in the general command documenting
13 how Ada expressions are being evaluated and how their result
14 is printed.
15
e793c052
TT
162017-11-09 Tom Tromey <tom@tromey.com>
17
18 * psymtab.c (psymbol_hash): Do not hash string contents.
19 (psymbol_compare): Add comment.
20
7e8835c5
TT
212017-11-09 Tom Tromey <tom@tromey.com>
22
23 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
24
286acbb5
JB
252017-11-08 Joel Brobecker <brobecker@adacore.com>
26
27 * ada-exp.y (write_var_from_sym): Remove parameter
28 "orig_left_context". Update all callers.
29
b44ec619
SM
302017-11-08 Simon Marchi <simon.marchi@ericsson.com>
31
32 * tracepoint.h (class collection_list) <stringify>: Return
33 std::vector<std::string>.
34 (encode_actions_rsp): Change parameters to
35 std::vector<std::string> *.
36 * tracepoint.c (collection_list::stringify): Return
37 std::vector<std::string> and adjust accordingly.
38 (encode_actions_rsp): Changee parameters to
39 std::vector<std::string> and adjust accordingly.
40 * remote.c (free_actions_list),
41 free_actions_list_cleanup_wrapper): Remove.
42 (remote_download_tracepoint): Adjust to std::vector.
43
2f4732b0
TT
442017-11-08 Tom Tromey <tom@tromey.com>
45
46 * dwarf2read.c (symbolp): Remove typedef.
47 (read_func_scope): Use std::vector.
48 (process_structure_scope): Use std::vector.
49
f9d67a22
PA
502017-11-08 Pedro Alves <palves@redhat.com>
51
52 * ada-lang.c (ada_make_symbol_completion_list): Use
53 completion_skip_symbol.
54 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
55 (symbol_is_function_or_method(symbol*)): New.
56 (add_symtab_completions): Add complete_symbol_mode parameter. Use
57 completion_skip_symbol.
58 (default_collect_symbol_completion_matches_break_on): Use
59 completion_skip_symbol. Pass down mode.
60 (collect_file_symbol_completion_matches): Pass down mode.
61 * symtab.h (symbol_is_function_or_method): New declarations.
62 (completion_skip_symbol): New template function.
63
56d87ef7
PA
642017-11-08 Pedro Alves <palves@redhat.com>
65
66 * linespec.c (iterate_over_all_matching_symtabs): Add
67 search_domain parameter. Pass it down to expand_symtabs_matching.
68 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
69 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
70 search_domain.
71 (add_all_symbol_names_from_pspace): Add search_domain parameter.
72 Pass it down.
73 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
74 symbols.
75 (add_matching_symbols_to_info): Add search_domain parameter. Pass
76 it down.
77
1b026119
PA
782017-11-08 Pedro Alves <palves@redhat.com>
79
80 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
81 text_len locals and don't pass them down.
82 * symtab.c (completion_list_add_name): Remove
83 sym_text/sym_text_len parameters and adjust.
84 (completion_list_add_symbol, completion_list_add_msymbol)
85 (completion_list_objc_symbol, completion_list_add_fields)
86 (add_symtab_completions): Likewise.
87 (default_collect_symbol_completion_matches_break_on)
88 (collect_file_symbol_completion_matches): Remove sym_text_len
89 local and don't pass it down.
90 * symtab.h (completion_list_add_name): Remove
91 sym_text/sym_text_len parameters.
92
c62446b1
PA
932017-11-08 Pedro Alves <palves@redhat.com>
94
95 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
96 unittests/lookup_name_info-selftests.c.
97 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
98 * cp-support.c: Include "selftest.h".
99 (cp_remove_params_1): Rename from cp_remove_params. Add
100 'require_param' parameter, and handle it.
101 (cp_remove_params): Reimplement.
102 (cp_remove_params_if_any): New.
103 (selftests::quote): New.
104 (selftests::check_remove_params): New.
105 (selftests::test_cp_remove_params): New.
106 (_initialize_cp_support): Install
107 selftests::test_cp_remove_params.
108 * cp-support.h (cp_remove_params_if_any): Declare.
109 * dwarf2read.c :Include "selftest.h".
110 (dw2_expand_symtabs_matching_symbol): Use
111 lookup_name_info::make_ignore_params.
112 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
113 (selftests::dw2_expand_symtabs_matching::string_or_null)
114 (selftests::dw2_expand_symtabs_matching::check_match)
115 (selftests::dw2_expand_symtabs_matching::test_symbols)
116 (selftests::dw2_expand_symtabs_matching::run_test): New.
117 (_initialize_dwarf2_read): Register
118 selftests::dw2_expand_symtabs_matching::run_test.
119 * psymtab.c (psym_expand_symtabs_matching): Use
120 lookup_name_info::make_ignore_params.
121 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
122 If the lookup name wants to ignore parameters, strip them.
123 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
124 code handling '('.
125 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
126 (default_collect_symbol_completion_matches_break_on): Don't try to
127 strip parameters.
128 * symtab.h (lookup_name_info::lookup_name_info): Add
129 'ignore_parameters' parameter.
130 (lookup_name_info::ignore_parameters)
131 (lookup_name_info::make_ignore_params): New methods.
132 (lookup_name_info::m_ignore_parameters): New field.
133 * unittests/lookup_name_info-selftests.c: New file.
134
61920122
PA
1352017-11-08 Pedro Alves <palves@redhat.com>
136
137 * dwarf2read.c (dw2_expand_marked_cus)
138 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
139 (dw2_expand_symtabs_matching): Move further below.
140 (dw2_expand_marked_cus): Reindent.
141
3f563c84
PA
1422017-11-08 Pedro Alves <palves@redhat.com>
143
144 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
145 (struct name_component): New.
146 (mapped_index::name_components): New field.
147 (mapped_index::symbol_name_at): New method.
148 (dwarf2_read_index): Call mapped_index ctor.
149 (dw2_map_matching_symbols): Add comment about name_components
150 table.
151 (dw2_expand_symtabs_matching): Factor part to...
152 (dw2_expand_symtabs_matching_symbol): ... this new function.
153 Build name components table, and lookup symbols in it before
154 calling the name matcher.
155 (dw2_expand_marked_cus): New, factored out from
156 dw2_expand_symtabs_matching.
157 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
158
b5ec771e
PA
1592017-11-08 Pedro Alves <palves@redhat.com>
160
161 * ada-lang.c (ada_encode): Rename to ..
162 (ada_encode_1): ... this. Add throw_errors parameter and handle
163 it.
164 (ada_encode): Reimplement.
165 (match_name): Delete, folded into full_name.
166 (resolve_subexp): No longer pass the encoded name to
167 ada_lookup_symbol_list.
168 (should_use_wild_match): Delete.
169 (name_match_type_from_name): New.
170 (ada_lookup_simple_minsym): Use lookup_name_info and the
171 language's symbol_name_matcher_ftype.
172 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
173 (ada_add_block_renamings): Adjust to use lookup_name_info.
174 (ada_lookup_name): New.
175 (add_nonlocal_symbols, ada_add_all_symbols)
176 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
177 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
178 (ada_name_for_lookup): Delete.
179 (ada_lookup_encoded_symbol): Construct a verbatim name.
180 (wild_match): Reverse sense of return type. Use bool.
181 (full_match): Reverse sense of return type. Inline bits of old
182 match_name here.
183 (ada_add_block_symbols): Adjust to use lookup_name_info.
184 (symbol_completion_match): Delete, folded into...
185 (ada_lookup_name_info::matches): ... .this new method.
186 (symbol_completion_add): Delete.
187 (ada_collect_symbol_completion_matches): Add name_match_type
188 parameter. Adjust to use lookup_name_info and
189 completion_list_add_name.
190 (get_var_value, ada_add_global_exceptions): Adjust to use
191 lookup_name_info.
192 (ada_get_symbol_name_cmp): Delete.
193 (do_wild_match, do_full_match): New functions.
194 (ada_lookup_name_info::ada_lookup_name_info): New method.
195 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
196 functions.
197 (ada_language_defn): Install ada_get_symbol_name_matcher.
198 * ada-lex.l (processId): If name starts with '<', copy it
199 verbatim.
200 * block.c (block_iter_match_step, block_iter_match_first)
201 (block_iter_match_next, block_lookup_symbol)
202 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
203 lookup_name_info.
204 * block.h (block_iter_match_first, block_iter_match_next)
205 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
206 * c-lang.c (c_language_defn, cplus_language_defn)
207 (asm_language_defn, minimal_language_defn): Adjust comments to
208 refer to la_get_symbol_name_matcher.
209 * completer.c (complete_files_symbols)
210 (collect_explicit_location_matches, symbol_completer): Pass a
211 symbol_name_match_type down.
212 * completer.h (class completion_match, completion_match_result):
213 New classes.
214 (completion_tracker::reset_completion_match_result): New method.
215 (completion_tracker::m_completion_match_result): New field.
216 * cp-support.c (make_symbol_overload_list_block): Adjust to use
217 lookup_name_info.
218 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
219 functions.
220 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
221 * d-lang.c: Adjust comments to refer to
222 la_get_symbol_name_matcher.
223 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
224 Adjust to use lookup_name_info.
225 (dict_iter_match_first, dict_iter_match_next)
226 (iter_match_first_hashed, iter_match_next_hashed)
227 (iter_match_first_linear, iter_match_next_linear): Adjust to work
228 with a lookup_name_info.
229 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
230 Likewise.
231 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
232 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
233 (gdb_index_symbol_name_matcher): New class.
234 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
235 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
236 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
237 with a symbol_name_match_type.
238 (f_language_defn): Adjust comments to refer to
239 la_get_symbol_name_matcher.
240 * go-lang.c (go_language_defn): Adjust comments to refer to
241 la_get_symbol_name_matcher.
242 * language.c (default_symbol_name_matcher)
243 (language_get_symbol_name_matcher): New functions.
244 (unknown_language_defn, auto_language_defn): Adjust comments to
245 refer to la_get_symbol_name_matcher.
246 * language.h (symbol_name_cmp_ftype): Delete.
247 (language_defn) <la_collect_symbol_completion_matches>: Add match
248 type parameter.
249 <la_get_symbol_name_cmp>: Delete field.
250 <la_get_symbol_name_matcher>: New field.
251 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
252 (default_symbol_name_matcher, language_get_symbol_name_matcher):
253 Declare.
254 * linespec.c (iterate_over_all_matching_symtabs)
255 (iterate_over_file_blocks): Adjust to use lookup_name_info.
256 (find_methods): Add language parameter, and use lookup_name_info
257 and the language's symbol_name_matcher_ftype.
258 (linespec_complete_function): Adjust.
259 (lookup_prefix_sym): Use lookup_name_info.
260 (add_all_symbol_names_from_pspace): Adjust.
261 (find_superclass_methods): Add language parameter and pass it
262 down.
263 (find_method): Pass symbol language down.
264 (find_linespec_symbols): Don't demangle or Ada encode here.
265 (search_minsyms_for_name): Add lookup_name_info parameter.
266 (add_matching_symbols_to_info): Add name_match_type parameter.
267 Use lookup_name_info.
268 * m2-lang.c (m2_language_defn): Adjust comments to refer to
269 la_get_symbol_name_matcher.
270 * minsyms.c: Include <algorithm>.
271 (add_minsym_to_demangled_hash_table): Remove table parameter and
272 add objfile parameter. Use search_name_hash, and add language to
273 demangled languages vector.
274 (struct found_minimal_symbols): New struct.
275 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
276 New functions.
277 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
278 input names here. Use lookup_name_info instead. Lookup up
279 demangled names once for each language in the demangled names
280 vector.
281 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
282 demangled names once for each language in the demangled names
283 vector.
284 (build_minimal_symbol_hash_tables): Adjust.
285 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
286 lookup_name_info.
287 * objc-lang.c (objc_language_defn): Adjust comment to refer to
288 la_get_symbol_name_matcher.
289 * objfiles.h: Include <vector>.
290 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
291 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
292 la_get_symbol_name_matcher.
293 * p-lang.c (pascal_language_defn): Adjust comment to refer to
294 la_get_symbol_name_matcher.
295 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
296 (match_partial_symbol): Use symbol_name_match_type,
297 lookup_name_info and psymbol_name_matches.
298 (lookup_partial_symbol): Use lookup_name_info.
299 (map_block): Use symbol_name_match_type and lookup_name_info.
300 (psym_map_matching_symbols): Use symbol_name_match_type.
301 (psymbol_name_matches): New.
302 (recursively_search_psymtabs): Use lookup_name_info and
303 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
304 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
305 'kind' parameter to 'domain'.
306 * rust-lang.c (rust_language_defn): Adjust comment to refer to
307 la_get_symbol_name_matcher.
308 * symfile-debug.c (debug_qf_map_matching_symbols)
309 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
310 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
311 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
312 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
313 Adjust to use symbol_name_match_type.
314 <expand_symtabs_matching>: Adjust to use lookup_name_info.
315 (expand_symtabs_matching): Adjust to use lookup_name_info.
316 * symmisc.c (maintenance_expand_symtabs): Use
317 lookup_name_info::match_any ().
318 * symtab.c (symbol_matches_search_name): New.
319 (eq_symbol_entry): Adjust to use lookup_name_info and the
320 language's matcher.
321 (demangle_for_lookup_info::demangle_for_lookup_info): New.
322 (lookup_name_info::match_any): New.
323 (iterate_over_symbols, search_symbols): Use lookup_name_info.
324 (compare_symbol_name): Add language, lookup_name_info and
325 completion_match_result parameters, and use them.
326 (completion_list_add_name): Make extern. Add language and
327 lookup_name_info parameters. Use them.
328 (completion_list_add_symbol, completion_list_add_msymbol)
329 (completion_list_objc_symbol): Add lookup_name_info parameters and
330 adjust. Pass down language.
331 (completion_list_add_fields): Add lookup_name_info parameters and
332 adjust. Pass down language.
333 (add_symtab_completions): Add lookup_name_info parameters and
334 adjust.
335 (default_collect_symbol_completion_matches_break_on): Add
336 name_match_type parameter, and use it. Use lookup_name_info.
337 (default_collect_symbol_completion_matches)
338 (collect_symbol_completion_matches): Add name_match_type
339 parameter, and pass it down.
340 (collect_symbol_completion_matches_type): Adjust.
341 (collect_file_symbol_completion_matches): Add name_match_type
342 parameter, and use lookup_name_info.
343 * symtab.h: Include <string> and "common/gdb_optional.h".
344 (enum class symbol_name_match_type): New.
345 (class ada_lookup_name_info): New.
346 (struct demangle_for_lookup_info): New.
347 (class lookup_name_info): New.
348 (symbol_name_matcher_ftype): New.
349 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
350 (symbol_matches_search_name): Declare.
351 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
352 (default_collect_symbol_completion_matches)
353 (collect_symbol_completion_matches)
354 (collect_file_symbol_completion_matches): Add name_match_type
355 parameter.
356 (iterate_over_symbols): Use lookup_name_info.
357 (completion_list_add_name): Declare.
358 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
359 (strncmp_iw_with_mode): Now extern.
360 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
361 (strncmp_iw_with_mode): Declare.
362
5ffa0793
PA
3632017-11-08 Keith Seitz <keiths@redhat.com>
364 Pedro Alves <palves@redhat.com>
365
366 * ada-lang.c (ada_language_defn): Install
367 default_search_name_hash.
368 * buildsym.c (struct buildsym_compunit): <language>: New field.
369 (finish_block_internal): Pass language when creating dictionaries.
370 (start_buildsym_compunit, start_symtab): New language parameters.
371 Use them.
372 (restart_symtab): Pass down compilation unit's language.
373 * buildsym.h (enum language): Forward declare.
374 (start_symtab): New 'language' parameter.
375 * c-lang.c (c_language_defn, cplus_language_defn)
376 (asm_language_defn, minimal_language_defn): Install
377 default_search_name_hash.
378 * coffread.c (coff_start_symtab): Adjust.
379 * d-lang.c (d_language_defn): Install default_search_name_hash.
380 * dbxread.c (struct symloc): Add 'pst_language' field.
381 (PST_LANGUAGE): Define.
382 (start_psymtab, read_ofile_symtab): Use it.
383 (process_one_symbol): New 'language' parameter. Pass it down.
384 * dictionary.c (struct dictionary) <language>: New field.
385 (DICT_LANGUAGE): Define.
386 (dict_create_hashed, dict_create_hashed_expandable)
387 (dict_create_linear, dict_create_linear_expandable): New parameter
388 'language'. Set the dictionary's language.
389 (iter_match_first_hashed): Adjust to rename.
390 (insert_symbol_hashed): Assert we don't see mismatching
391 languages. Adjust to rename.
392 (dict_hash): Rename to ...
393 (default_search_name_hash): ... this and make extern.
394 * dictionary.h (struct language_defn): Forward declare.
395 (dict_create_hashed): New parameter 'language'.
396 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
397 * f-lang.c (f_language_defn): Install default_search_name_hash.
398 * go-lang.c (go_language_defn): Install default_search_name_hash.
399 * jit.c (finalize_symtab): Pass compunit's language to dictionary
400 creation.
401 * language.c (unknown_language_defn, auto_language_defn):
402 * language.h (language_defn::la_search_name_hash): New field.
403 (default_search_name_hash): Declare.
404 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
405 * mdebugread.c (new_block): New parameter 'language'.
406 * mdebugread.c (parse_symbol): Pass symbol language to block
407 allocation.
408 (psymtab_to_symtab_1): Pass down language.
409 (new_symtab): Pass compunit's language to block allocation.
410 * objc-lang.c (objc_language_defn): Install
411 default_search_name_hash.
412 * opencl-lang.c (opencl_language_defn):
413 * p-lang.c (pascal_language_defn): Install
414 default_search_name_hash.
415 * rust-lang.c (rust_language_defn): Install
416 default_search_name_hash.
417 * stabsread.h (enum language): Forward declare.
418 (process_one_symbol): Add 'language' parameter.
419 * symtab.c (search_name_hash): New function.
420 * symtab.h (search_name_hash): Declare.
421 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
422
2a1dde5d
PA
4232017-11-08 Pedro Alves <palves@redhat.com>
424
425 * cp-name-parser.y (main): Don't initialize extra_chars.
426
95a6b0a1
TT
4272017-11-07 Tom Tromey <tom@tromey.com>
428
429 * event-top.h (command_handler): Constify.
430 * record-full.c (cmd_record_full_start): Update.
431 * thread.c (thread_apply_all_command): Update.
432 * printcmd.c (eval_command): Update.
433 * mi/mi-main.c (mi_execute_cli_command): Update.
434 (mi_execute_async_cli_command): Update.
435 * tui/tui-stack.c (tui_update_command): Update.
436 * cli/cli-interp.c (safe_execute_command): Constify.
437 * record.c (record_start): Update.
438 (record_start, record_stop, cmd_record_start): Update.
439 * record-btrace.c (cmd_record_btrace_bts_start): Update.
440 (cmd_record_btrace_pt_start): Update.
441 (cmd_record_btrace_start): Update.
442 (cmd_record_btrace_start): Update.
443 * reverse.c (exec_reverse_once): Update.
444 * python/python.c (execute_gdb_command): Don't copy the command.
445 * event-top.c (command_line_handler): Update.
446 (command_handler): Constify.
447 * defs.h (deprecated_call_command_hook): Constify.
448 * cli/cli-script.h (execute_user_command): Constify.
449 * cli/cli-script.c (execute_user_command): Constify.
450 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
451 (enum command_control_type): Update.
452 * main.c (catch_command_errors): Remove non-const overload.
453 (catch_command_errors_ftype): Remove.
454 * python/py-cmd.c (cmdpy_function): Constify.
455 * guile/scm-cmd.c (cmdscm_function): Constify.
456 * cli/cli-dump.c (call_dump_func): Constify.
457 * cli/cli-decode.c (do_const_cfunc): Constify.
458 (do_sfunc): Constify.
459 (cmd_func): Constify.
460 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
461 * top.h (execute_command): Constify.
462 * top.c (execute_command): Constify.
463 (execute_command_to_string): Constify.
464 (deprecated_call_command_hook): Constify.
465 * command.h (cmd_func): Constify.
466 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
467
eb4c3f4a
TT
4682017-11-07 Tom Tromey <tom@tromey.com>
469
470 * ada-lang.c (catch_ada_exception_command): Constify.
471 (catch_assert_command): Constify.
472 * break-catch-throw.c (catch_catch_command, catch_throw_command)
473 (catch_rethrow_command): Constify.
474 (catch_exception_command_1): Constify.
475 * breakpoint.h (add_catch_command): Constify.
476 * break-catch-syscall.c (catch_syscall_command_1): Constify.
477 (catch_syscall_split_args): Constify.
478 * break-catch-sig.c (catch_signal_command): Constify.
479 (catch_signal_split_args): Constify.
480 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
481 cmd_const_sfunc_ftype.
482 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
483 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
484 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
485 (add_setshow_string_cmd, struct cmd_list_element)
486 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
487 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
488 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
489 Constify.
490 (set_cmd_sfunc): Constify.
491 (empty_sfunc): Constify.
492 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
493 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
494 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
495 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
496 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
497 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
498 Constify.
499 (set_cmd_sfunc): Constify.
500 (cmd_sfunc_ftype): Remove.
501 * compile/compile.c (set_compile_args): Constify.
502 * infrun.c (set_disable_randomization): Constify.
503 * infcmd.c (set_args_command, set_cwd_command): Constify.
504 * breakpoint.c (set_condition_evaluation_mode): Constify.
505 (add_catch_command): Constify.
506 (catch_fork_command_1, catch_exec_command_1)
507 (catch_load_command_1, catch_unload_command_1): Constify.
508 (catch_load_or_unload): Constify.
509 * guile/scm-param.c (pascm_set_func): Constify.
510 (add_setshow_generic): Constify.
511 * python/py-param.c (get_set_value): Constify.
512 * top.h (set_verbose): Constify.
513 * tui/tui-win.c (tui_set_var_cmd): Constify.
514 * mi/mi-main.c (set_mi_async_command): Constify.
515 * cli/cli-logging.c (set_logging_overwrite)
516 (set_logging_redirect): Constify.
517 * value.c (set_max_value_size): Constify.
518 * valprint.c (set_input_radix, set_output_radix): Constify.
519 * utils.c (set_width_command, set_height_command): Constify.
520 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
521 * tracepoint.c (set_disconnected_tracing)
522 (set_circular_trace_buffer, set_trace_buffer_size)
523 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
524 * top.c (set_history_size_command, set_verbose, set_editing)
525 (set_gdb_datadir, set_history_filename): Constify.
526 * target.c (set_targetdebug, maint_set_target_async_command)
527 (maint_set_target_non_stop_command, set_target_permissions)
528 (set_write_memory_permission): Constify.
529 (open_target): Constify.
530 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
531 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
532 * symtab.c (set_symbol_cache_size_handler): Constify.
533 * symfile.c (set_ext_lang_command): Constify.
534 * symfile-debug.c (set_debug_symfile): Constify.
535 * source.c (set_directories_command): Constify.
536 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
537 * serial.c (set_parity): Constify.
538 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
539 * remote.c (set_remote_exec_file, set_remotebreak)
540 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
541 * record.c (set_record_insn_history_size)
542 (set_record_call_history_size): Constify.
543 * record-full.c (set_record_full_insn_max_num): Constify.
544 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
545 * osabi.c (set_osabi): Constify.
546 * mips-tdep.c (set_mips64_transfers_32bit_regs)
547 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
548 * maint.c (maintenance_set_profile_cmd): Constify.
549 * linux-thread-db.c (set_libthread_db_search_path): Constify.
550 * language.c (set_language_command, set_range_command)
551 (set_case_command): Constify.
552 * infrun.c (set_non_stop, set_observer_mode)
553 (set_stop_on_solib_events, set_schedlock_func)
554 (set_exec_direction_func): Constify.
555 * infcmd.c (set_inferior_tty_command): Constify.
556 * disasm.c (set_disassembler_options_sfunc): Constify.
557 * demangle.c (set_demangling_command): Constify.
558 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
559 * cris-tdep.c (set_cris_version, set_cris_mode)
560 (set_cris_dwarf2_cfi): Constify.
561 * corefile.c (set_gnutarget_command): Constify.
562 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
563 (set_target_wide_charset_sfunc): Constify.
564 * breakpoint.c (update_dprintf_commands): Constify.
565 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
566 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
567 (set_disassembly_style_sfunc): Constify.
568 * arch-utils.c (set_endian, set_architecture): Constify.
569 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
570 * agent.c (set_can_use_agent): Constify.
571
5fed81ff
TT
5722017-11-07 Tom Tromey <tom@tromey.com>
573
574 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
575 (go32_pde, go32_pte, go32_pte_for_address): Constify.
576 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
577 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
578 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
579 (parse_int_arg, show_thread_default_detach_sc_cmd)
580 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
581 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
582 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
583 (show_task_pause_cmd, set_task_detach_sc_cmd)
584 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
585 (set_noninvasive_cmd, set_thread_pause_cmd)
586 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
587 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
588 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
589 * windows-nat.c (display_selectors): Constify.
590 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
591 non-const "cfunc".
592 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
593 (cmd_cfunc_eq): Likewise.
594 (struct cmd_list_element): Likewise.
595 (do_cfunc): Remove.
596 (cli_user_command_p): Update.
597 * command.h (add_cmd): Remove non-const overload.
598 (cmd_cfunc_ftype): Remove typedef.
599 (cmd_cfunc_eq): Remove non-const overload.
600 * value.c (show_values): Constify.
601 * thread.c (thread_apply_all_command): Constify.
602 * symfile.c (load_command): Constify.
603 * source.c (directory_command): Constify.
604 * maint.c (maintenance_internal_error)
605 (maintenance_demangler_warning, maintenance_space_display)
606 (maintenance_print_architecture, maintenance_translate_address)
607 (maintenance_info_selftests, maintenance_internal_warning):
608 Constify.
609 * breakpoint.c (disable_trace_command, enable_trace_command):
610 Constify.
611 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
612 Constify.
613 (add_auto_load_safe_path): Constify.
614 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
615 * top.h (show_commands): Constify.
616 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
617 * sparc64-tdep.c (adi_examine_command): Constify.
618 (adi_assign_command): Constify.
619
1d12d88f
TT
6202017-11-07 Tom Tromey <tom@tromey.com>
621
622 * frame.h (info_locals_command, info_args_command): Constify.
623 * auto-load.h (auto_load_info_scripts): Constify.
624 * inferior.h (registers_info): Constify.
625 * copying.c: Rebuild.
626 * copying.awk: Constify generated commands.
627 * auto-load.c (auto_load_info_scripts)
628 (info_auto_load_gdb_scripts): Constify.
629 * cli/cli-decode.c (struct cmd_list_element): Take a
630 cmd_const_cfunc_ftype.
631 * command.h (add_info): Take a cmd_const_cfunc_ftype.
632 * tui/tui-win.c (tui_all_windows_info): Constify.
633 * python/py-auto-load.c (info_auto_load_python_scripts):
634 Constify.
635 * cli/cli-cmds.c (show_command): Remove non-const overload.
636 * tracepoint.c (info_tvariables_command, info_scope_command):
637 Constify.
638 (info_static_tracepoint_markers_command): Constify.
639 * thread.c (info_threads_command): Constify.
640 (print_thread_info_1): Constify.
641 * target.c (info_target_command): Constify.
642 * symtab.c (info_sources_command, info_functions_command)
643 (info_types_command): Constify.
644 (info_variables_command): Remove non-const overload.
645 * symfile.c (info_ext_lang_command): Constify.
646 * stack.c (info_frame_command, info_locals_command)
647 (info_args_command): Constify.
648 (backtrace_command): Remove non-const overload.
649 * source.c (info_source_command, info_line_command): Constify.
650 * solib.c (info_sharedlibrary_command): Constify.
651 * skip.c (info_skip_command): Constify.
652 * ser-go32.c (info_serial_command): Constify.
653 * reverse.c (info_bookmarks_command): Constify.
654 * printcmd.c (info_symbol_command, info_address_command)
655 (info_display_command): Constify.
656 * osdata.c (info_osdata_command): Constify.
657 * objc-lang.c (info_selectors_command, info_classes_command):
658 Constify.
659 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
660 * memattr.c (info_mem_command): Constify.
661 * macrocmd.c (info_macro_command, info_macros_command): Constify.
662 * linux-fork.c (info_checkpoints_command): Constify.
663 * infrun.c (info_signals_command): Constify.
664 * inflow.c (info_terminal_command): Constify.
665 * inferior.c (info_inferiors_command): Constify.
666 (print_inferior): Constify.
667 * infcmd.c (info_program_command, info_all_registers_command)
668 (info_registers_command, info_vector_command)
669 (info_float_command): Constify.
670 (registers_info): Constify.
671 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
672 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
673 Constify.
674 * f-valprint.c (info_common_command): Constify.
675 * dcache.c (info_dcache_command): Constify.
676 (dcache_info_1): Constify.
677 * darwin-nat-info.c (info_mach_tasks_command)
678 (info_mach_task_command, info_mach_ports_command)
679 (info_mach_port_command, info_mach_threads_command)
680 (info_mach_thread_command, info_mach_regions_command)
681 (info_mach_regions_recurse_command, info_mach_region_command)
682 (info_mach_exceptions_command): Constify.
683 (get_task_from_args): Constify.
684 * cp-support.c (info_vtbl_command): Constify.
685 * breakpoint.c (info_watchpoints_command)
686 (info_tracepoints_command): Constify.
687 (info_breakpoints_command): Remove non-const overload.
688 * avr-tdep.c (avr_io_reg_read_command): Constify.
689 * auxv.c (info_auxv_command): Constify.
690 * ada-tasks.c (info_tasks_command): Constify.
691 (info_task): Constify.
692 * ada-lang.c (info_exceptions_command): Constify.
693
0b39b52e
TT
6942017-11-07 Tom Tromey <tom@tromey.com>
695
696 * solib.h (no_shared_libraries): Constify.
697 * frame.h (return_command): Constify.
698 * cli/cli-cmds.h (quit_command): Constify.
699 * top.h (quit_command, execute_command): Constify.
700 * target.h (flash_erase_command): Constify.
701 * inferior.h (set_inferior_args, attach_command): Constify.
702 * tracepoint.h (start_tracing, stop_tracing): Constify.
703 * breakpoint.h (break_command, tbreak_command)
704 (hbreak_command_wrapper, thbreak_command_wrapper)
705 (rbreak_command_wrapper, watch_command_wrapper)
706 (awatch_command_wrapper, rwatch_command_wrapper)
707 (get_tracepoint_by_number): Constify.
708 * symtab.c (info_variables_command, rbreak_command)
709 (symtab_symbol_info): Constify.
710 (info_variables_command): Add non-const overload.
711 * top.c (dont_repeat_command): Constify.
712 * breakpoint.c (ignore_command, commands_command)
713 (condition_command, tbreak_command, hbreak_command)
714 (thbreak_command, clear_command, break_command)
715 (info_breakpoints_command, watch_command, rwatch_command)
716 (awatch_command, trace_command, ftrace_command, strace_command)
717 (trace_pass_command, break_range_command, dprintf_command)
718 (agent_printf_command, get_tracepoint_by_number)
719 (watch_maybe_just_location, trace_pass_command): Constify.
720 (info_breakpoints_command): Add non-const overload.
721 * tracefile.c (tsave_command): Constify.
722 * infcmd.c (attach_command, disconnect_command, signal_command)
723 (queue_signal_command, stepi_command, nexti_command)
724 (finish_command, next_command, step_command, until_command)
725 (advance_command, jump_command, continue_command, run_command)
726 (start_command, starti_command, interrupt_command)
727 (run_command_1, set_inferior_args, step_1): Constify.
728 * inferior.c (add_inferior_command, remove_inferior_command)
729 (clone_inferior_command): Constify.
730 * linux-fork.c (checkpoint_command, restart_command): Constify.
731 * windows-nat.c (signal_event_command): Constify.
732 * guile/guile.c (guile_repl_command, guile_command): Constify.
733 * printcmd.c (x_command, display_command, printf_command)
734 (output_command, set_command, call_command, print_command)
735 (eval_command): Constify.
736 (non_const_set_command): Remove.
737 (_initialize_printcmd): Update.
738 * source.c (forward_search_command, reverse_search_command):
739 Constify.
740 * jit.c (jit_reader_load_command, jit_reader_unload_command):
741 Constify.
742 * infrun.c (handle_command): Constify.
743 * memattr.c (mem_command): Constify.
744 * stack.c (return_command, up_command, up_silently_command)
745 (down_command, down_silently_command, frame_command)
746 (backtrace_command, func_command, backtrace_command_1): Constify.
747 (backtrace_command): Add non-const overload.
748 * remote-sim.c (simulator_command): Constify.
749 * exec.c (set_section_command): Constify.
750 * tracepoint.c (tdump_command, trace_variable_command)
751 (tstatus_command, tstop_command, tstart_command)
752 (end_actions_pseudocommand, while_stepping_pseudocommand)
753 (collect_pseudocommand, teval_pseudocommand, actions_command)
754 (start_tracing, stop_tracing): Constify.
755 * value.c (init_if_undefined_command): Constify.
756 * tui/tui-stack.c (tui_update_command): Constify.
757 * tui/tui-win.c (tui_refresh_all_command)
758 (tui_set_tab_width_command, tui_set_win_height_command)
759 (tui_set_focus_command, tui_scroll_forward_command)
760 (tui_scroll_backward_command, tui_scroll_left_command)
761 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
762 (tui_set_win_height): Constify.
763 * tui/tui-layout.c (tui_layout_command): Constify.
764 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
765 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
766 (proc_untrace_sysexit_cmd): Constify.
767 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
768 (threadset_test_cmd, threadlist_update_test_cmd)
769 (threadalive_test): Constify.
770 * objc-lang.c (print_object_command): Constify.
771 * command.h (add_com): Constify.
772 * cli/cli-dump.c (restore_command): Constify.
773 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
774 (help_command, complete_command, shell_command, edit_command)
775 (list_command, disassemble_command, make_command)
776 (apropos_command, alias_command): Constify.
777 * cli/cli-script.c (document_command, define_command)
778 (while_command, if_command, validate_comname): Constify.
779 * cli/cli-decode.c (struct cmd_list_element): Change type of
780 "fun".
781 * target.c (do_monitor_command, flash_erase_command): Constify.
782 * regcache.c (reg_flush_command): Constify.
783 * reverse.c (reverse_step, reverse_next, reverse_stepi)
784 (reverse_nexti, reverse_continue, reverse_finish)
785 (save_bookmark_command, goto_bookmark_command)
786 (exec_reverse_once): Constify.
787 * python/python.c (python_interactive_command, python_command):
788 Constify.
789 * typeprint.c (ptype_command, whatis_command, whatis_exp):
790 Constify.
791 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
792 * gcore.c (gcore_command): Constify.
793
85c4be7c
TT
7942017-11-07 Tom Tromey <tom@tromey.com>
795
796 * printcmd.c (x_command): Call set_repeat_arguments.
797 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
798 * top.c (repeat_arguments): New global.
799 (set_repeat_arguments): New function.
800 (execute_command): Handle repeat_arguments.
801 (show_commands): Calls set_repeat_arguments.
802 * command.h (set_repeat_arguments): Declare.
803
022643b4
TT
8042017-11-07 Tom Tromey <tom@tromey.com>
805
806 * stack.c (backtrace_command): Use std::string.
807 (backtrace_command_1): Make "count_exp" const.
808
5614fb77
TT
8092017-11-07 Tom Tromey <tom@tromey.com>
810
811 * source.c (directory_switch, mod_path, add_path): Constify.
812 * defs.h (add_path, mod_path, directory_switch): Constify.
813 * mi/mi-cmd-env.c (env_mod_path): Constify.
814
6be9a197
TT
8152017-11-07 Tom Tromey <tom@tromey.com>
816
817 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
818 (run_command_1, continue_command, step_1, jump_command)
819 (signal_command, until_command, advance_command, finish_command)
820 (attach_command): Update.
821
c2252c0d
TT
8222017-11-07 Tom Tromey <tom@tromey.com>
823
824 * command.h (set_cmd_cfunc): Don't declare.
825 * cli/cli-decode.c (set_cmd_cfunc): Now static.
826
1ee870c5
TT
8272017-11-07 Tom Tromey <tom@tromey.com>
828
829 * stack.c (select_frame_command): Constify.
830 * cli/cli-decode.c (add_com_suppress_notification): Constify.
831 * command.h (add_com_suppress_notification): Constify.
832
ee7ddd71
TT
8332017-11-07 Tom Tromey <tom@tromey.com>
834
835 * breakpoint.c (stop_command): Constify.
836 * cli/cli-decode.c (struct cmd_list_element): Constify.
837 * command.h (add_abbrev_prefix_cmd): Constify.
838
95e95a6d
PA
8392017-11-07 Pedro Alves <palves@redhat.com>
840
841 * breakpoint.c (extract_bp_kind): New enum.
842 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
843 factored out from ...
844 (extract_bp_number_and_location): ... here.
845 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
846
cc638e86
PA
8472017-11-07 Pedro Alves <palves@redhat.com>
848
849 * breakpoint.c (extract_bp_number_and_location): Change return
850 type to void. Throw error instead of warning.
851 (enable_disable_command): Adjust.
852
d0fe4701
XR
8532017-11-07 Xavier Roirand <roirand@adacore.com>
854 Pedro Alves <palves@redhat.com>
855
856 * breakpoint.c (map_breakpoint_number_range): New, factored out
857 from ...
858 (map_breakpoint_numbers): ... here.
859 (find_location_by_number): Change parameters from string to
860 breakpoint number and location.
861 (extract_bp_number_and_location): New function.
862 (enable_disable_bp_num_loc)
863 (enable_disable_breakpoint_location_range)
864 (enable_disable_command): New functions, factored out ...
865 (enable_command, disable_command): ... these functions, and
866 adjusted to support ranges.
867 * NEWS: Document enable/disable breakpoint location range feature.
868
635dc5b2
LM
8692017-11-06 Luis Machado <luis.machado@linaro.org>
870
871 * MAINTAINERS (Write After Approval): Update my e-mail address.
872
556e5da5
PA
8732017-11-06 Pedro Alves <palves@redhat.com>
874
875 * gnu-nat.c (gnu_terminal_init): Delete.
876 (gnu_target): Don't install gnu_terminal_init.
877 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
878 (child_terminal_init): ... this function.
879
d1928160
PA
8802017-11-06 Pedro Alves <palves@redhat.com>
881
882 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
883 sgtty.h.
884 * config.in, configure: Regenerate.
885
6aa899ce
PA
8862017-11-06 Pedro Alves <palves@redhat.com>
887
888 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
889 (async_init_signals): Adjust.
890 (handle_stop_sig): Rename to ...
891 (handle_sigtstp): ... this.
892 (async_stop_sig): Rename to ...
893 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
894 SIGTSTP path.
895 * event-top.h: Move signal.h include to the top. Check SIGTSTP
896 instead of STOP_SIGNAL thoughout.
897 (handle_stop_sig): Rename to ...
898 (handle_sigtstp): ... this.
899 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
900
a94799ac
PA
9012017-11-06 Pedro Alves <palves@redhat.com>
902
903 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
904 longer set flags twice in row.
905
726e1356
PA
9062017-11-06 Pedro Alves <palves@redhat.com>
907
908 * Makefile.in (SER_HARDWIRE): Update comment.
909 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
910 * common/gdb_termios.h: Delete file.
911 * common/job-control.c: Include termios.h and unistd.h instead of
912 gdb_termios.h.
913 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
914 check.
915 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
916 Remove sgtty code.
917 * configure.ac: No longer check for termio.h and sgtty.h.
918 * configure: Regenerate.
919 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
920 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
921 Replace PROCESS_GROUP_TYPE references with pid_t references
922 throughout.
923 (gdb_getpgrp): Delete.
924 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
925 (child_terminal_inferior): Remove comment. Remove sgtty code.
926 (child_terminal_ours_1): Use tcgetpgrp directly instead of
927 gdb_getpgrp. Use serial_set_tty_state instead aof
928 serial_noflush_set_tty_state. Remove sgtty code.
929 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
930 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
931 (inferior_process_group): Now returns pid_t.
932 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
933 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
934 * ser-event.c (serial_event_ops): Update.
935 * ser-go32.c (dos_noflush_set_tty_state): Delete.
936 (dos_ops): Update.
937 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
938 * ser-pipe.c (pipe_ops): Update.
939 * ser-tcp.c (tcp_ops): Update.
940 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
941 HAVE_TERMIOS checks.
942 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
943 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
944 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
945 assume termios.
946 (hardwire_noflush_set_tty_state): Delete.
947 (hardwire_print_tty_state, hardwire_drain_output)
948 (hardwire_flush_output, hardwire_flush_input)
949 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
950 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
951 code, and assume termios.
952 (hardwire_ops): Update.
953 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
954 * serial.c (serial_noflush_set_tty_state): Delete.
955 * serial.h (serial_noflush_set_tty_state): Delete.
956 (serial_ops::noflush_set_tty_state): Delete.
957
1cfb73db
UW
9582017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
959
960 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
961 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
962 (COMMON_OBS): Remove doublest.o and dfp.o.
963 Do not build target-float.c (instead of doublest.c)
964 with -Wformat-nonliteral.
965
966 * doublest.c: Remove file.
967 * doublest.h: Remove file.
968 * dfp.c: Remove file.
969 * dfp.h: Remove file.
970
971 * target-float.c: Do not include "doublest.h" and "dfp.h".
972 (DOUBLEST): Move here from doublest.h.
973 (enum float_kind): Likewise.
974 (FLOATFORMAT_CHAR_BIT): Likewise.
975 (FLOATFORMAT_LARGEST_BYTES): Likewise.
976 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
977 (floatformat_precision): Likewise.
978 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
979 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
980 Likewise.
981 (host_float_format, host_double_format, host_long_double_format):
982 Likewise.
983 (floatformat_to_string, floatformat_from_string): Likewise.
984 (floatformat_to_doublest): Likewise. Also, inline the original
985 convert_floatformat_to_doublest.
986 (floatformat_from_doublest): Likewise. Also, inline the original
987 convert_floatformat_from_doublest.
988
989 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
990 (MAX_DECIMAL_STRING): Move here from dfp.c.
991 (match_endianness): Likewise.
992 (set_decnumber_context, decimal_check_errors): Likewise.
993 (decimal_from_number, decimal_to_number): Likewise.
994 (decimal_to_string, decimal_from_string): Likewise. Make static.
995 (decimal_from_longest, decimal_from_ulongest): Likewise.
996 (decimal_to_longest): Likewise.
997 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
998 (decimal_convert): Likewise.
999
b07e9c46
UW
10002017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1001
1002 * doublest.c: Do not include "gdbtypes.h".
1003 (extract_typed_floating): Remove.
1004 (store_typed_floating): Remove.
1005 (convert_typed_floating): Remove.
1006 * doublest.h (struct type): Remove.
1007 (DOUBLEST_PRINT_FORMAT): Remove.
1008 (DOUBLEST_SCAN_FORMAT): Remove.
1009 (extract_typed_floating): Remove.
1010 (store_typed_floating): Remove.
1011 (convert_typed_floating): Remove.
1012
1013 * dfp.c (decimal_from_doublest): Remove.
1014 (decimal_to_doublest): Remove.
1015 * dfp.h: Do not include "doublest.h".
1016 (decimal_from_doublest): Remove.
1017 (decimal_to_doublest): Remove.
1018
1019 * value.c: Do not include "doublest.h" and "dfp.h".
1020 (value_as_double): Remove.
1021 (unpack_double): Remove.
1022 (value_from_double): Remove.
1023 (value_from_decfloat): Remove.
1024 * value.h: Do not include "doublest.h".
1025 (value_as_double): Remove.
1026 (unpack_double): Remove.
1027 (value_from_double): Remove.
1028 (value_from_decfloat): Remove.
1029
3b2ca824
UW
10302017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1031
1032 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
1033 (i386_extract_return_value): Use target_float_convert.
1034 (i386_store_return_value): Likewise.
1035 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
1036 (i387_value_to_register): Likewise.
1037 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
1038 (ia64_register_to_value): Use target_float_convert.
1039 (ia64_value_to_register): Likewise.
1040 (ia64_extract_return_value): Likewise.
1041 (ia64_store_return_value): Likewise.
1042 (ia64_push_dummy_call): Likewise.
1043 * m68k-tdep.c: Include "target-float.h".
1044 (m68k_register_to_value): Use target_float_convert.
1045 (m68k_value_to_register): Likewise.
1046 (m68k_svr4_extract_return_value): Likewise.
1047 (m68k_svr4_store_return_value): Likewise.
1048 * ppc-sysv-tdep.c: Include "target-float.h".
1049 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
1050 (do_ppc_sysv_return_value): Likewise.
1051 (ppc64_sysv_abi_push_freg): Likewise.
1052 (ppc64_sysv_abi_return_value_base): Likewise.
1053 * rs6000-aix-tdep.c: Include "target-float.h".
1054 (rs6000_push_dummy_call): Use target_float_convert.
1055 (rs6000_return_value): Likewise.
1056 * rs6000-lynx178-tdep.c: Include "target-float.h".
1057 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
1058 (rs6000_lynx178_return_value): Likewise.
1059 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
1060 (rs6000_register_to_value): Use target_float_convert.
1061 (rs6000_value_to_register): Likewise.
1062 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
1063 (arm_extract_return_value): Use target_float_convert.
1064 (arm_store_return_value): Likewise.
1065 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
1066 (sh_register_convert_to_virtual): Use target_float_convert.
1067 (sh_register_convert_to_raw): Likewise.
1068 * sh64-tdep.c: Include "target-float.h".
1069 (sh64_extract_return_value): Use target_float_convert.
1070 (sh64_register_convert_to_virtual): Likewise.
1071 (sh64_register_convert_to_raw): Likewise. Fix argument types.
1072
14ad9311
UW
10732017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1074
1075 * target-float.c (floatformat_to_host_double): New function.
1076 (floatformat_from_host_double): Likewise.
1077 (target_float_to_host_double): Likewise.
1078 (target_float_from_host_double): Likewise.
1079 * target-float.h (target_float_to_host_double): Add prototype.
1080 (target_float_from_host_double): Likewise.
1081
1082 * guile/scm-value.c: Include "target-float.h".
1083 (gdbscm_value_to_real): Use target_float_to_host_double.
1084 Handle integer source values via value_as_long.
1085 * guile/scm-math.c: Include "target-float.h". Do not include
1086 "doublest.h", "dfp.h", and "expression.h".
1087 (vlscm_convert_typed_number): Use target_float_from_host_double.
1088 (vlscm_convert_number): Likewise.
1089
1090 * python/py-value.c (valpy_float): Use target_float_to_host_double.
1091 (convert_value_from_python): Use target_float_from_host_double.
1092
50eff16b
UW
10932017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1094
1095 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
1096 (cast_from_fixed): Likewise.
1097 (ada_scaling_type): New function.
1098 (ada_delta): Return value instead of DOUBLEST. Perform target
1099 arithmetic instead of host arithmetic.
1100 (scaling_factor): Rename to ...
1101 (ada_scaling_factor) ... this. Make non-static. Return value instead
1102 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
1103 (ada_fixed_to_float): Remove.
1104 (ada_float_to_fixed): Remove.
1105 * ada-lang.h (ada_fixed_to_float): Remove.
1106 (ada_float_to_fixed): Remove.
1107 (ada_delta): Return value instead of DOUBLEST.
1108 (ada_scaling_factor): Add prototype.
1109
1110 * ada-typeprint.c: Include "target-float.h".
1111 (print_fixed_point_type): Perform target arithmetic instead of
1112 host arithmetic.
1113 * ada-valprint.c: Include "target-float.h".
1114 (ada_val_print_num): Perform target arithmetic instead of
1115 host arithmetic for fixed-point types.
1116
66c02b9e
UW
11172017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1118
1119 * target-float.c: Include <math.h>.
1120 (floatformat_binop): New function.
1121 (floatformat_compare): Likewise.
1122 (target_float_binop): Likewise.
1123 (target_float_compare): Likewise.
1124 * target-float.h: Include "expression.h".
1125 (target_float_binop): Add prototype.
1126 (target_float_compare): Likewise.
1127
1128 * valarith.c: Do not include "doublest.h" and "dfp.h".
1129 Include "common/byte-vector.h".
1130 (value_args_as_decimal): Remove, replace by ...
1131 (value_args_as_target_float): ... this function. Handle both
1132 binary and decimal target floating-point formats.
1133 (scalar_binop): Handle both binary and decimal FP using
1134 value_args_as_target_float and target_float_binop.
1135 (value_equal): Handle both binary and decimal FP using
1136 value_args_as_target_float and target_float_compare.
1137 (value_less): Likewise.
1138 (value_pos): Handle all scalar types as simple copy.
1139 (value_neg): Handle all scalar types via BINOP_SUB from 0.
1140 * dfp.c (decimal_binop): Throw error instead of internal_error
1141 when called with an unsupported operation code.
1142
f69fdf9b
UW
11432017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1144
1145 * target-float.c (target_float_to_string): New function.
1146 (target_float_from_string): New function.
1147 * target-float.h (target_float_to_string): Add prototype.
1148 (target_float_from_string): Add prototype.
1149
1150 * valprint.c: Include "target-float.h". Do not include
1151 "doublest.h" and "dfp.h".
1152 (print_floating): Use target_float_to_string.
1153 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
1154 (printf_floating): Use target_float_to_string.
1155 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
1156 (print_i387_value): Use target_float_to_string.
1157 * mips-tdep.c: Include "target-float.h".
1158 (mips_print_fp_register): Use target_float_to_string.
1159 * sh64-tdep.c: Include "target-float.h".
1160 (sh64_do_fp_register): Use target_float_to_string.
1161
1162 * parse.c: Include "target-float.h". Do not include
1163 "doublest.h" and "dfp.h".
1164 (parse_float): Use target_float_from_string.
1165 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
1166 (define_symbol): Use target_float_from_string.
1167 * gdbarch-selftests.c: Include "target-float.h".
1168 (register_to_value_test): Use target_float_from_string.
1169
70100014
UW
11702017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1171
1172 * Makefile.c (SFILES): Add target-float.c.
1173 (HFILES_NO_SRCDIR): Add target-float.h.
1174 (COMMON_OBS): Add target-float.o.
1175 * target-float.h: New file.
1176 * target-float.c: New file.
1177
1178 * doublest.c (floatformat_classify): Fix detection of float_zero.
1179
1180 * gdbtypes.c (is_floating_type): New function.
1181 * gdbtypes.h (is_floating_type): Add prototype.
1182
1183 * value.c: Do not include "floatformat.h".
1184 (unpack_double): Use target_float_is_valid.
1185 (is_floating_value): New function.
1186 * value.h (is_floating_value): Add prototype-
1187
1188 * valarith.c: Include "target-float.h".
1189 (value_logical_not): Use target_float_is_zero.
1190
1191 * python/py-value.c: Include "target-float.h".
1192 (valpy_nonzero): Use target_float_is_zero.
1193
ab4b1c46
TT
11942017-11-04 Tom Tromey <tom@tromey.com>
1195
1196 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
1197
454dafbd
TT
11982017-11-04 Tom Tromey <tom@tromey.com>
1199
1200 * breakpoint.c (set_momentary_breakpoint): Return
1201 breakpoint_up.
1202 (until_break_command): Update.
1203 (new_until_break_fsm): Change argument types to
1204 breakpoint_up.
1205 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
1206 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
1207 Remove.
1208 * infcmd.c (finish_forward): Update.
1209 * breakpoint.h (set_momentary_breakpoint)
1210 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
1211 (make_cleanup_delete_breakpoint): Remove.
1212 (struct breakpoint_deleter): New.
1213 (breakpoint_up): New typedef.
1214 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
1215 (insert_exception_resume_breakpoint): Update.
1216 (insert_exception_resume_from_probe): Update.
1217 (insert_longjmp_resume_breakpoint): Update.
1218 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
1219 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
1220 * infcall.c (call_function_by_hand_dummy): Update
1221
331b71e5
TT
12222017-11-04 Tom Tromey <tom@tromey.com>
1223
1224 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
1225
9f584b37
TT
12262017-11-04 Tom Tromey <tom@tromey.com>
1227
1228 * linux-tdep.c (linux_core_info_proc_mappings): Use
1229 gdb::def_vector.
1230 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
1231 "size" argument.
1232 (linux_corefile_thread): Update.
1233 (linux_make_corefile_notes): Remove unused variable.
1234
779bc38e
TT
12352017-11-04 Tom Tromey <tom@tromey.com>
1236
1237 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
1238 gdb::byte_vector.
1239
ed2b3126
TT
12402017-11-04 Tom Tromey <tom@tromey.com>
1241
1242 * objfiles.c (do_free_objfile_cleanup): Remove.
1243 * compile/compile-object-load.c (compile_object_load): Update.
1244 * objfiles.h (make_cleanup_free_objfile): Remove.
1245
7f6743fd
TT
12462017-11-04 Tom Tromey <tom@tromey.com>
1247
1248 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
1249 (adi_read_versions): Change "tags" to "gdb_byte *".
1250 (adi_print_versions): Likewise.
1251
c80049d3
TT
12522017-11-04 Tom Tromey <tom@tromey.com>
1253
1254 * breakpoint.c
1255 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
1256 from start_rbreak_breakpoints.
1257 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
1258 * breakpoint.h (class scoped_rbreak_breakpoints): New.
1259 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
1260 * symtab.c (do_end_rbreak_breakpoints): Remove.
1261 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
1262
167b0be1
TT
12632017-11-04 Tom Tromey <tom@tromey.com>
1264
1265 * cp-namespace.c (reset_directive_searched): Remove.
1266 (cp_lookup_symbol_via_imports): Use scoped_restore.
1267 * cp-support.c (reset_directive_searched): Remove.
1268 (make_symbol_overload_list_using): Use scoped_restore.
1269 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
1270 (reset_directive_searched): Remove.
1271
5eae7aea
TT
12722017-11-04 Tom Tromey <tom@tromey.com>
1273
1274 * symfile.c (find_separate_debug_file_by_debuglink): Use
1275 unique_xmalloc_ptr.
1276
c6bcad5f
TT
12772017-11-04 Tom Tromey <tom@tromey.com>
1278
1279 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
1280 type of "info".
1281 (compute_stack_depth): Likewise.
1282 (do_compile_dwarf_expr_to_c): Use std::vector.
1283
20dcd8ca
TT
12842017-11-04 Tom Tromey <tom@tromey.com>
1285
1286 * compile/compile-object-load.c (link_callbacks_einfo): Use
1287 std::string.
1288
33c7c59d
TT
12892017-11-04 Tom Tromey <tom@tromey.com>
1290
1291 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
1292 Use scoped_free_pendings.
1293 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
1294 scoped_free_pendings.
1295 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
1296 (xcoff_initial_scan): Likewise.
1297 * buildsym.c (reset_symtab_globals): Update comment.
1298 (scoped_free_pendings): Rename from really_free_pendings.
1299 (prepare_for_building): Update comment.
1300 (buildsym_init): Likewise.
1301 * buildsym.h (class scoped_free_pendings): New class.
1302 (really_free_pendings): Don't declare.
1303
67fa57cf
UW
13042017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
1305
1306 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
1307 output when converting a zero value to a special byteorder format.
1308
f26ae15b
YQ
13092017-11-02 Yao Qi <yao.qi@linaro.org>
1310
1311 * frame.c (do_frame_register_read): Remove aspace.
1312 * jit.c (jit_frame_sniffer): Likwise.
1313 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
1314 * regcache.c (regcache::regcache): Pass nullptr.
1315 (regcache_print): Caller updated.
1316 * regcache.h (regcache::regcache): Remove one constructor
1317 parameter aspace.
1318
6c6e9412
YQ
13192017-11-02 Yao Qi <yao.qi@linaro.org>
1320
1321 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
1322
8b86c959
YQ
13232017-11-02 Yao Qi <yao.qi@linaro.org>
1324
1325 * breakpoint.c (insert_single_step_breakpoints): Update.
1326 * frame.c (struct frame_info) <aspace>: Add const.
1327 (frame_save_as_regcache): Add const.
1328 (get_frame_address_space): Return const address_space *.
1329 * frame.h (get_frame_address_space): Update declaration.
1330 * infrun.c (struct step_over_info) <aspace>: Add const.
1331 (set_step_over_info): Make aspace const.
1332 (displaced_step_prepare_throw): Change variable const.
1333 (resume): Likewise.
1334 (proceed): Likewise.
1335 (adjust_pc_after_break): Likewise.
1336 (save_waitstatus): Likewise.
1337 (handle_signal_stop): Likewise.
1338 (keep_going_pass_signal): Likewise.
1339 * jit.c (jit_frame_sniffer): Add const.
1340 * mips-tdep.c (mips_single_step_through_delay): Likewise.
1341 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
1342 * record-full.c (record_full_wait_1): Likewise.
1343 * regcache.c (regcache::regcache): Change parameter to const.
1344 * regcache.h (regcache::regcache): Likewise.
1345 (regcache::aspace): Return const address_space *.
1346 (regcache) <m_aspace>: Add const.
1347
a01bda52
YQ
13482017-11-02 Yao Qi <yao.qi@linaro.org>
1349
1350 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
1351 * frame.c (create_sentinel_frame): Likewise.
1352 * infrun.c (displaced_step_prepare_throw): Likewise.
1353 (resume): Likewise.
1354 (thread_still_needs_step_over_bp): Likewise.
1355 (proceed): Likewise.
1356 (do_target_wait): Likewise.
1357 (adjust_pc_after_break): Likewise.
1358 (handle_syscall_event): Likewise.
1359 (save_waitstatus): Likewise.
1360 (handle_inferior_event_1): Likewise.
1361 (handle_signal_stop): Likewise.
1362 (keep_going_pass_signal): Likewise.
1363 * linux-nat.c (status_callback): Likewise.
1364 (save_stop_reason): Likewise.
1365 (resume_stopped_resumed_lwps): Likewise.
1366 * record-full.c (record_full_exec_insn): Likewise.
1367 (record_full_wait_1): Likewise.
1368 * regcache.c (get_regcache_aspace): Remove.
1369 * regcache.h (get_regcache_aspace): Remove.
1370
d999647b
YQ
13712017-11-02 Yao Qi <yao.qi@linaro.org>
1372
1373 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
1374 (init_regcache_descr): Use gdbarch_num_regs.
1375 (regcache::regcache): Likewise.
1376 (regcache::get_register_status): Likewise.
1377 (regcache::assert_raw_regnum): Likewise.
1378 (regcache::cooked_read): Likewise.
1379 (regcache::cooked_read_value): Likewise.
1380 (regcache::cooked_write): Likewise.
1381 (regcache::dump): Likewise.
1382 (regcache::num_raw_registers): New method.
1383 * regcache.h (class regcache) <num_raw_registers>: New.
1384
4e888c28
YQ
13852017-11-02 Yao Qi <yao.qi@linaro.org>
1386
1387 * regcache.c (regcache::assert_regnum): New method.
1388 (regcache::invalidate): Call assert_regnum.
1389 (regcache::raw_update): Likewise.
1390 (regcache::raw_write): Likewise.
1391 (regcache::raw_read_part): Likewise.
1392 (regcache::raw_write_part): Likewise.
1393 (regcache::raw_supply): Likewise.
1394 (regcache::raw_supply_integer): Likewise.
1395 (regcache::raw_supply_zeroed): Likewise.
1396 (regcache::raw_collect): Likewise.
1397 (regcache::raw_collect_integer): Likewise.
1398 * regcache.h (regcache::assert_regnum): Declare.
1399
2e1b49b3
YQ
14002017-11-02 Yao Qi <yao.qi@linaro.org>
1401
1402 * regcache.c (regcache::dump): Remove code.
1403
6c5218df
YQ
14042017-11-02 Yao Qi <yao.qi@linaro.org>
1405
1406 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
1407 Remove.
1408 <sizeof_cooked_register_status>: Remove.
1409 (init_regcache_descr): Update.
1410 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
1411 (regcache::save): Likewise.
1412 (regcache::dump): Likewise.
1413
dcc31d28
JB
14142017-11-01 James Bowman <james.bowman@ftdichip.com>
1415
1416 * ft32-tdep.c (ft32_fetch_instruction): New function.
1417 (ft32_analyze_prologue): Use ft32_fetch_instruction().
1418
3a87ae65
SM
14192017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1420
1421 * cli/cli-script.c (execute_control_command): Rename to ...
1422 (execute_control_command_1): ... this.
1423 (execute_control_command): New function.
1424
09b847f3
SM
14252017-10-31 Simon Marchi <simon.marchi@ericsson.com>
1426
1427 * tracepoint.c (tfind_command): Remove const_cast.
1428
f871c485
MG
14292017-10-30 Mike Gulick <mgulick@mathworks.com>
1430
1431 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
1432
b020ff80
SM
14332017-10-30 Simon Marchi <simon.marchi@ericsson.com>
1434
1435 * common/common-utils.h (in_inclusive_range): New function.
1436 * arm-tdep.c (arm_record_extension_space): Use
1437 in_inclusive_range.
1438 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
1439 * cris-tdep.c (cris_spec_reg_applicable): Use
1440 in_inclusive_range.
1441
1b81856f
PA
14422017-10-30 Pedro Alves <palves@redhat.com>
1443 Simon Marchi <simon.marchi@ericsson.com>
1444
1445 * remote.c (remote_set_syscall_catchpoint): Build a std::string
1446 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
1447
31b833b3
PA
14482017-10-30 Pedro Alves <palves@redhat.com>
1449
1450 * common/common-utils.c (string_appendf, string_vappendf): New
1451 functions.
1452 * common/common-utils.h (string_appendf, string_vappendf): New
1453 declarations.
1454 * unittests/common-utils-selftests.c (string_appendf_func)
1455 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
1456 (string_vappendf_tests): New functions.
1457 (_initialize_common_utils_selftests): Register "string_appendf" and
1458 "string_vappendf tests".
1459
4a250334
PA
14602017-10-30 Pedro Alves <palves@redhat.com>
1461
1462 * unittests/common-utils-selftests.c (format_func): New typedef.
1463 (string_printf_tests, string_vprintf_tests): Tests factored out
1464 and merged to ...
1465 (test_format_func): ... this new function.
1466 (string_printf_tests, string_vprintf_tests): Reimplement on top of
1467 test_format_func.
1468
16c5c17e
SM
14692017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1470
1471 * darwin-nat.c: Remove include of gdb.h.
1472
7ca51576
SM
14732017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1474
1475 * xtensa-xtregs.c: Fix formatting issues.
1476
c1342859
SM
14772017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1478
1479 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
1480
484d8d36
MD
14812017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
1482
1483 PR python/21213
1484 * python/py-infthread.c (thpy_get_inferior): Increment reference
1485 of inferior before returning it.
1486
b5540b5f
SM
14872017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1488
1489 * unittests/common-utils-selftests.c (format): Add
1490 ATTRIBUTE_PRINTF.
1491
5a9dcda1
SM
14922017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1493
1494 * xml-syscall.c (struct syscall_desc): Add constructor.
1495 <name>: Change type to std::string.
1496 (syscall_desc_up): New typedef.
1497 (syscall_desc_p): Remove typeder.
1498 (DEF_VEC_P(syscall_desc_p)): Remove.
1499 (struct syscall_group_desc): Add constructor.
1500 <name>: Change type to std::string.
1501 <syscalls>: Change type to std::vector.
1502 (syscall_group_desc_up): New typedef.
1503 (syscall_group_desc_p): Remove typedef.
1504 (DEF_VEC_P(syscall_group_desc_p)): Remove.
1505 (struct syscalls_info) <syscalls>: Change type to std::vector of
1506 unique_ptr.
1507 <groups>: Likewise.
1508 <my_gdb_datadir>: Change type to std::string.
1509 (syscalls_info_up): New typedef.
1510 (allocate_syscalls_info): Remove.
1511 (syscalls_info_free_syscalls_desc): Remove.
1512 (syscalls_info_free_syscall_group_desc): Remove.
1513 (free_syscalls_info): Remove.
1514 (make_cleanup_free_syscalls_info): Remove.
1515 (syscall_group_create_syscall_group_desc): Adjust.
1516 (syscall_group_add_syscall): Adjust.
1517 (syscall_create_syscall_desc): Adjust.
1518 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
1519 (init_syscalls_info): Adjust.
1520 (syscall_group_get_group_by_name): Adjust.
1521 (xml_get_syscall_number): Adjust.
1522 (xml_get_syscall_name): Adjust.
1523 (xml_list_of_syscalls): Adjust.
1524 (xml_list_syscalls_by_group): Adjust.
1525 (xml_list_of_groups): Adjust.
1526
45461e0d
SM
15272017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1528
1529 * probe.h: Don't include gdb_vecs.h.
1530 (DEF_VEC_P (probe_p)): Remove.
1531 (find_probes_in_objfile): Return an std::vector.
1532 * probe.c (find_probes_in_objfile): Likewise.
1533 * breakpoint.c (breakpoint_objfile_data)
1534 <longjmp_probes>: Change type to std::vector.
1535 <exception_probes>: Likewise.
1536 (free_breakpoint_probes): Don't manually free vectors.
1537 (create_longjmp_master_breakpoint): Adjust.
1538 (create_exception_master_breakpoint): Adjust.
1539 * solib-svr4.c (svr4_create_probe_breakpoints): Change
1540 parameter type, adjust.
1541 (svr4_create_solib_event_breakpoints): Adjust.
1542
43dce439
SM
15432017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1544
1545 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
1546 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
1547 with new.
1548 (free_breakpoint_probes): Rename to ...
1549 (free_breakpoint_objfile_data): ... this, and call delete on
1550 bp_objfile_data..
1551
6a1b9516
SM
15522017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1553
1554 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
1555 (loaded_script_ptr): Remove typedef.
1556 (DEF_VEC_P (loaded_script_ptr)): Remove.
1557 (struct collect_matching_scripts_data): Add constructor.
1558 <scripts_p>: Change type to (pointer to) std::vector.
1559 (collect_matching_scripts_data): Adjust.
1560 (sort_scripts_by_name): Make suitable for std::sort.
1561 (print_scripts): Don't sort vector, adjust to std::vector.
1562 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
1563
593e3209
SM
15642017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1565
1566 * symfile.c (filename_language): Make struct, not typedef. Add
1567 constructor.
1568 <ext>: Change type to std::string.
1569 (DEF_VEC_O (filename_language)): Remove.
1570 (filename_language_table): Change type to std::vector.
1571 (add_filename_language): Adjust.
1572 (set_ext_lang_command): Adjust.
1573 (info_ext_lang_command): Adjust.
1574 (deduce_language_from_filename): Adjust.
1575 (class scoped_restore_filename_language_table): Remove.
1576 (test_filename_language): Use scoped_restore.
1577 (test_set_ext_lang_command): Use scoped_restore, adjust to
1578 std::vector change.
1579
32fa66eb
SM
15802017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1581
1582 * symfile.c: Include selftest.h.
1583 (class scoped_restore_filename_language_table): New.
1584 (test_filename_language): New test.
1585 (test_set_ext_lang_command): New test.
1586 (_initialize_symfile): Register tests.
1587
4a27f119
KS
15882017-10-27 Keith Seitz <keiths@redhat.com>
1589
1590 * breakpoint.c (print_breakpoint_location): Use the symbol saved
1591 in the bp_location, falling back to find_pc_sect_function when
1592 needed.
1593 (add_location_to_breakpoint): Save sal->symbol.
1594 * breakpoint.h (struct bp_location) <symbol>: New field.
1595 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
1596 * symtab.h (struct symtab_and_line) <symbol>: New field.
1597
a43f3893
PF
15982017-10-26 Patrick Frants <osscontribute@gmail.com>
1599
7453e6b2 1600 PR gdb/13669
a43f3893
PF
1601 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
1602 to rewind obstack.
1603
23cc4e1b
PA
16042017-10-26 Pedro Alves <palves@redhat.com>
1605
1606 * remote.c (remote_async_terminal_ours_p): Delete.
1607 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
1608 Remove references to 'remote_async_terminal_ours_p'.
1609
6abc18bb
YQ
16102017-10-26 Yao Qi <yao.qi@linaro.org>
1611
1612 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
1613
bd522513
YQ
16142017-10-26 Yao Qi <yao.qi@linaro.org>
1615
1616 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
1617 aspace const.
1618 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
1619 Likewise.
1620 * breakpoint.c (bpstat_check_location): Remove cast.
1621 (breakpoint_hit_catch_fork): Make aspce const.
1622 (breakpoint_hit_catch_solib): Likewise.
1623 (breakpoint_hit_catch_exec): Likewise.
1624 (breakpoint_hit_ranged_breakpoint): Likewise.
1625 (breakpoint_hit_watchpoint): Likewise.
1626 (base_breakpoint_breakpoint_hit): Likewise.
1627 (bkpt_breakpoint_hit): Likewise.
1628 (dprintf_breakpoint_hit): Likewise.
1629 (tracepoint_breakpoint_hit): Likewise.
1630 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
1631
accd0bcd
YQ
16322017-10-26 Yao Qi <yao.qi@linaro.org>
1633
1634 * breakpoint.c (breakpoint_location_address_match): Change
1635 "struct address_space *" to "const address_space".
1636 (breakpoint_location_address_range_overlap): Likewise.
1637 (breakpoint_here_p): Likewise.
1638 (breakpoint_in_range_p): Likewise.
1639 (moribund_breakpoint_here_p): Likewise.
1640 (bp_location_inserted_here_p): Likewise.
1641 (software_breakpoint_inserted_here_p): Likewise.
1642 (hardware_breakpoint_inserted_here_p): Likewise.
1643 (hardware_watchpoint_inserted_in_range): Likewise.
1644 (bpstat_check_location): Likewise.
1645 (bpstat_stop_status): Likewise.
1646 (breakpoint_address_match): Likewise.
1647 (breakpoint_address_match_range): Likewise.
1648 (breakpoint_location_address_match): Likewise.
1649 (breakpoint_location_address_range_overlap): Likewise.
1650 (insert_single_step_breakpoint): Likewise.
1651 (breakpoint_has_location_inserted_here): Likewise.
1652 (single_step_breakpoint_inserted_here_p): Likewise.
1653 (pc_at_non_inline_function): Likewise.
1654 * breakpoint.h (bpstat_stop_status): Update declaration.
1655 (breakpoint_here_p): Likewise.
1656 (breakpoint_in_range_p): Likewise.
1657 (moribund_breakpoint_here_p): Likewise.
1658 (breakpoint_inserted_here_p): Likewise.
1659 (software_breakpoint_inserted_here_p): Likewise.
1660 (hardware_breakpoint_inserted_here_p): Likewise.
1661 (breakpoint_has_location_inserted_here): Likewise.
1662 (single_step_breakpoint_inserted_here_p): Likewise.
1663 (hardware_watchpoint_inserted_in_range): Likewise.
1664 (breakpoint_address_match): Likewise.
1665 (insert_single_step_breakpoint): Likewise.
1666 (pc_at_non_inline_function): Likewise.
1667 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
1668 * record.c (record_check_stopped_by_breakpoint): Likewise.
1669 * record.h (record_check_stopped_by_breakpoint): Likewise.
1670 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
1671
ac7936df
YQ
16722017-10-25 Yao Qi <yao.qi@linaro.org>
1673
1674 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
1675 regcache->arch () instead get_regcache_arch.
1676 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
1677 Likewise.
1678 (aarch64_fbsd_store_inferior_registers): Likewise.
1679 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
1680 (store_gregs_to_thread): Likewise.
1681 (fetch_fpregs_from_thread): Likewise.
1682 (store_fpregs_to_thread): Likewise.
1683 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
1684 (aarch64_store_return_value): Likewise.
1685 (aarch64_software_single_step): Likewise.
1686 * aix-thread.c (aix_thread_wait): Likewise.
1687 (supply_reg32): Likewise.
1688 (supply_sprs64): Likewise.
1689 (supply_sprs32): Likewise.
1690 (fill_gprs64): Likewise.
1691 (fill_gprs32): Likewise.
1692 (fill_sprs64): Likewise.
1693 (fill_sprs32): Likewise.
1694 (store_regs_user_thread): Likewise.
1695 (store_regs_kernel_thread): Likewise.
1696 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
1697 (alphabsd_store_inferior_registers): Likewise.
1698 * alpha-tdep.c (alpha_extract_return_value): Likewise.
1699 (alpha_store_return_value): Likewise.
1700 (alpha_deal_with_atomic_sequence): Likewise.
1701 (alpha_next_pc): Likewise.
1702 (alpha_software_single_step): Likewise.
1703 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
1704 (amd64bsd_store_inferior_registers): Likewise.
1705 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
1706 Likewise.
1707 (amd64_linux_store_inferior_registers): Likewise.
1708 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1709 (amd64_collect_native_gregset): Likewise.
1710 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
1711 (amd64obsd_collect_uthread): Likewise.
1712 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
1713 (amd64_collect_fpregset): Likewise.
1714 (amd64_supply_fxsave): Likewise.
1715 (amd64_supply_xsave): Likewise.
1716 (amd64_collect_fxsave): Likewise.
1717 (amd64_collect_xsave): Likewise.
1718 * arc-tdep.c (arc_write_pc): Likewise.
1719 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
1720 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
1721 (arm_fbsd_store_inferior_registers): Likewise.
1722 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
1723 (store_vfp_regs): Likewise.
1724 (arm_linux_fetch_inferior_registers): Likewise.
1725 (arm_linux_store_inferior_registers): Likewise.
1726 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1727 (arm_linux_sigreturn_next_pc): Likewise.
1728 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
1729 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
1730 (fetch_register): Likewise.
1731 (store_register): Likewise.
1732 * arm-tdep.c (arm_is_thumb): Likewise.
1733 (displaced_in_arm_mode): Likewise.
1734 (bx_write_pc): Likewise.
1735 (arm_get_next_pcs_addr_bits_remove): Likewise.
1736 (arm_software_single_step): Likewise.
1737 (arm_extract_return_value): Likewise.
1738 (arm_store_return_value): Likewise.
1739 (arm_write_pc): Likewise.
1740 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1741 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
1742 (bsd_uthread_store_registers): Likewise.
1743 * core-regset.c (fetch_core_registers): Likewise.
1744 * corelow.c (get_core_registers): Likewise.
1745 * cris-tdep.c (cris_store_return_value): Likewise.
1746 (cris_extract_return_value): Likewise.
1747 (find_step_target): Likewise.
1748 (find_step_target): Likewise.
1749 (cris_software_single_step): Likewise.
1750 * ctf.c (ctf_fetch_registers): Likewise.
1751 * darwin-nat.c (cancel_breakpoint): Likewise.
1752 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
1753 * frv-tdep.c (frv_extract_return_value): Likewise.
1754 * ft32-tdep.c (ft32_store_return_value): Likewise.
1755 (ft32_extract_return_value): Likewise.
1756 * go32-nat.c (fetch_register): Likewise.
1757 (go32_fetch_registers): Likewise.
1758 (go32_store_registers): Likewise.
1759 (store_register): Likewise.
1760 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1761 (h8300_store_return_value): Likewise.
1762 * hppa-linux-nat.c (fetch_register): Likewise.
1763 (store_register): Likewise.
1764 (hppa_linux_fetch_inferior_registers): Likewise.
1765 (hppa_linux_store_inferior_registers): Likewise.
1766 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
1767 (i386_darwin_store_inferior_registers): Likewise.
1768 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
1769 (gnu_store_registers): Likewise.
1770 * i386-linux-nat.c (fetch_register): Likewise.
1771 (store_register): Likewise.
1772 (supply_gregset): Likewise.
1773 (fill_gregset): Likewise.
1774 (i386_linux_fetch_inferior_registers): Likewise.
1775 (i386_linux_store_inferior_registers): Likewise.
1776 (i386_linux_resume): Likewise.
1777 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
1778 Likewise.
1779 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
1780 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
1781 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
1782 (i386obsd_collect_uthread): Likewise.
1783 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1784 (i386_supply_gregset): Likewise.
1785 (i386_collect_gregset): Likewise.
1786 (i386_supply_fpregset): Likewise.
1787 (i386_collect_fpregset): Likewise.
1788 (i386_mpx_bd_base): Likewise.
1789 * i386-v4-nat.c (supply_fpregset): Likewise.
1790 (fill_fpregset): Likewise.
1791 * i387-tdep.c (i387_supply_fsave): Likewise.
1792 (i387_collect_fsave): Likewise.
1793 (i387_supply_fxsave): Likewise.
1794 (i387_collect_fxsave): Likewise.
1795 (i387_supply_xsave): Likewise.
1796 (i387_collect_xsave): Likewise.
1797 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
1798 (ia64_linux_store_registers): Likewise.
1799 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
1800 (ia64_extract_return_value): Likewise.
1801 (ia64_store_return_value): Likewise.
1802 (find_func_descr): Likewise.
1803 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1804 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
1805 (inf_ptrace_store_registers): Likewise.
1806 * infrun.c (use_displaced_stepping): Likewise.
1807 (displaced_step_prepare_throw): Likewise.
1808 (resume): Likewise.
1809 (proceed): Likewise.
1810 (do_target_wait): Likewise.
1811 (adjust_pc_after_break): Likewise.
1812 (handle_inferior_event_1): Likewise.
1813 (handle_signal_stop): Likewise.
1814 (save_infcall_suspend_state): Likewise.
1815 (restore_infcall_suspend_state): Likewise.
1816 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
1817 * jit.c (jit_frame_prev_register): Likewise.
1818 * linux-nat.c (save_stop_reason): Likewise.
1819 (linux_nat_wait_1): Likewise.
1820 (resume_stopped_resumed_lwps): Likewise.
1821 * linux-record.c (record_linux_sockaddr): Likewise.
1822 (record_linux_msghdr): Likewise.
1823 (record_linux_system_call): Likewise.
1824 * linux-tdep.c (linux_collect_thread_registers): Likewise.
1825 * lm32-tdep.c (lm32_extract_return_value): Likewise.
1826 (lm32_store_return_value): Likewise.
1827 * m32c-tdep.c (m32c_read_flg): Likewise.
1828 (m32c_pseudo_register_read): Likewise.
1829 (m32c_pseudo_register_write): Likewise.
1830 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
1831 (m32r_linux_collect_gregset): Likewise.
1832 * m32r-tdep.c (m32r_store_return_value): Likewise.
1833 (m32r_extract_return_value): Likewise.
1834 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1835 (m68kbsd_collect_fpregset): Likewise.
1836 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1837 * m68k-linux-nat.c (fetch_register): Likewise.
1838 (old_fetch_inferior_registers): Likewise.
1839 (old_store_inferior_registers): Likewise.
1840 (store_regs): Likewise.
1841 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
1842 (m68k_svr4_store_return_value): Likewise.
1843 * m88k-tdep.c (m88k_store_arguments): Likewise.
1844 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
1845 (mi_cmd_data_write_register_values): Likewise.
1846 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
1847 (mips_fbsd_store_inferior_registers): Likewise.
1848 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
1849 (mips_fbsd_supply_gregs): Likewise.
1850 (mips_fbsd_collect_fpregs): Likewise.
1851 (mips_fbsd_collect_gregs): Likewise.
1852 (mips_fbsd_supply_fpregset): Likewise.
1853 (mips_fbsd_collect_fpregset): Likewise.
1854 (mips_fbsd_supply_gregset): Likewise.
1855 (mips_fbsd_collect_gregset): Likewise.
1856 * mips-linux-nat.c (supply_gregset): Likewise.
1857 (fill_gregset): Likewise.
1858 (supply_fpregset): Likewise.
1859 (fill_fpregset): Likewise.
1860 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
1861 (mips_fill_gregset): Likewise.
1862 (mips_supply_fpregset): Likewise.
1863 (mips_fill_fpregset): Likewise.
1864 (mips64_supply_gregset): Likewise.
1865 (micromips_linux_sigframe_validate): Likewise.
1866 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
1867 (mipsnbsd_fetch_inferior_registers): Likewise.
1868 (mipsnbsd_store_inferior_registers): Likewise.
1869 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1870 (mipsnbsd_supply_gregset): Likewise.
1871 (mipsnbsd_iterate_over_regset_sections): Likewise.
1872 (mipsnbsd_supply_reg): Likewise.
1873 (mipsnbsd_supply_fpreg): Likewise.
1874 * mips-tdep.c (mips_in_frame_stub): Likewise.
1875 (mips_dummy_id): Likewise.
1876 (is_octeon_bbit_op): Likewise.
1877 (micromips_bc1_pc): Likewise.
1878 (extended_mips16_next_pc): Likewise.
1879 (mips16_next_pc): Likewise.
1880 (deal_with_atomic_sequence): Likewise.
1881 * moxie-tdep.c (moxie_process_readu): Likewise.
1882 * nios2-tdep.c (nios2_get_next_pc): Likewise.
1883 * nto-procfs.c (procfs_store_registers): Likewise.
1884 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
1885 (ppcfbsd_store_inferior_registers): Likewise.
1886 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
1887 (fetch_altivec_register): Likewise.
1888 (get_spe_registers): Likewise.
1889 (fetch_spe_register): Likewise.
1890 (fetch_altivec_registers): Likewise.
1891 (fetch_all_gp_regs): Likewise.
1892 (fetch_all_fp_regs): Likewise.
1893 (store_vsx_register): Likewise.
1894 (store_altivec_register): Likewise.
1895 (set_spe_registers): Likewise.
1896 (store_spe_register): Likewise.
1897 (store_altivec_registers): Likewise.
1898 (store_all_gp_regs): Likewise.
1899 (store_all_fp_regs): Likewise.
1900 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1901 (ppc_linux_collect_gregset): Likewise.
1902 (ppc_canonicalize_syscall): Likewise.
1903 (ppc_linux_record_signal): Likewise.
1904 (ppu2spu_prev_register): Likewise.
1905 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1906 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
1907 (ppcobsd_store_registers): Likewise.
1908 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
1909 Likewise.
1910 (ppc_ravenscar_generic_store_registers): Likewise.
1911 * procfs.c (procfs_fetch_registers): Likewise.
1912 (procfs_store_registers): Likewise.
1913 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
1914 (ravenscar_store_registers): Likewise.
1915 (ravenscar_prepare_to_store): Likewise.
1916 * record-btrace.c (record_btrace_fetch_registers): Likewise.
1917 * record-full.c (record_full_wait_1): Likewise.
1918 (record_full_registers_change): Likewise.
1919 (record_full_store_registers): Likewise.
1920 (record_full_core_fetch_registers): Likewise.
1921 (record_full_save): Likewise.
1922 (record_full_goto_insn): Likewise.
1923 * regcache.c (regcache_register_size): Likewise.
1924 (get_regcache_arch): Remove.
1925 (regcache_read_pc): Likewise.
1926 * regcache.h (get_regcache_arch): Remove.
1927 * remote-sim.c (gdbsim_fetch_register): Likewise.
1928 (gdbsim_store_register): Likewise.
1929 * remote.c (fetch_register_using_p): Likewise.
1930 (send_g_packet): Likewise.
1931 (remote_prepare_to_store): Likewise.
1932 (store_registers_using_G): Likewise.
1933 * reverse.c (save_bookmark_command): Likewise.
1934 (goto_bookmark_command): Likewise.
1935 * rs6000-aix-tdep.c (branch_dest): Likewise.
1936 * rs6000-nat.c (rs6000_ptrace64): Likewise.
1937 (fetch_register): Likewise.
1938 * rs6000-tdep.c (ppc_supply_reg): Likewise.
1939 (ppc_collect_reg): Likewise.
1940 (ppc_collect_gregset): Likewise.
1941 (ppc_collect_fpregset): Likewise.
1942 (ppc_collect_vsxregset): Likewise.
1943 (ppc_collect_vrregset): Likewise.
1944 (ppc_displaced_step_hw_singlestep): Likewise.
1945 (rs6000_pseudo_register_read): Likewise.
1946 (rs6000_pseudo_register_write): Likewise.
1947 * s390-linux-nat.c (supply_gregset): Likewise.
1948 (fill_gregset): Likewise.
1949 (s390_linux_fetch_inferior_registers): Likewise.
1950 * s390-linux-tdep.c (s390_write_pc): Likewise.
1951 (s390_software_single_step): Likewise.
1952 (s390_all_but_pc_registers_record): Likewise.
1953 (s390_linux_syscall_record): Likewise.
1954 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
1955 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
1956 (shnbsd_store_inferior_registers): Likewise.
1957 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
1958 (sh_extract_return_value_fpu): Likewise.
1959 (sh_store_return_value_nofpu): Likewise.
1960 (sh_corefile_supply_regset): Likewise.
1961 (sh_corefile_collect_regset): Likewise.
1962 * sh64-tdep.c (sh64_extract_return_value): Likewise.
1963 (sh64_store_return_value): Likewise.
1964 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
1965 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
1966 (sparc_store_inferior_registers): Likewise.
1967 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
1968 (sparc_ravenscar_prepare_to_store): Likewise.
1969 * sparc-tdep.c (sparc32_store_arguments): Likewise.
1970 (sparc_analyze_control_transfer): Likewise.
1971 (sparc_step_trap): Likewise.
1972 (sparc_software_single_step): Likewise.
1973 (sparc32_gdbarch_init): Likewise.
1974 (sparc_supply_rwindow): Likewise.
1975 (sparc_collect_rwindow): Likewise.
1976 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
1977 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
1978 (sparc64nbsd_collect_gregset): Likewise.
1979 (sparc64nbsd_supply_fpregset): Likewise.
1980 (sparc64nbsd_collect_fpregset): Likewise.
1981 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
1982 (sparc64_supply_gregset): Likewise.
1983 (sparc64_collect_gregset): Likewise.
1984 (sparc64_supply_fpregset): Likewise.
1985 (sparc64_collect_fpregset): Likewise.
1986 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1987 * spu-tdep.c (spu_unwind_sp): Likewise.
1988 (spu2ppu_prev_register): Likewise.
1989 (spu_memory_remove_breakpoint): Likewise.
1990 * stack.c (return_command): Likewise.
1991 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
1992 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1993 * tracefile.c (trace_save_ctf): Likewise.
1994 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
1995 (do_windows_store_inferior_registers): Likewise.
1996 (windows_resume): Likewise.
1997 * xtensa-linux-nat.c (fill_gregset): Likewise.
1998 (supply_gregset_reg): Likewise.
1999 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
2000 (xtensa_register_read_masked): Likewise.
2001 (xtensa_supply_gregset): Likewise.
2002 (xtensa_extract_return_value): Likewise.
2003 (xtensa_store_return_value): Likewise.
2004
edd079d9
UW
20052017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
2006
2007 * doublest.c (floatformat_from_string): New function.
2008 * doublest.h (floatformat_from_string): Add prototype.
2009
2010 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
2011 (OP_FLOAT): ... this.
2012 * expression.h: Do not include "doublest.h".
2013 (union exp_element): Replace doubleconst and decfloatconst by
2014 new element floatconst.
2015 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
2016 (ada_evaluate_subexp): Likewise.
2017 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
2018 OP_DOUBLE and OP_DECFLOAT.
2019 * expprint.c (print_subexp_standard): Likewise.
2020 (dump_subexp_body_standard): Likewise.
2021 * breakpoint.c (watchpoint_exp_is_const): Likewise.
2022
2023 * parse.c: Include "dfp.h".
2024 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
2025 (write_exp_elt_floatcst): New function.
2026 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
2027 and OP_DECFLOAT.
2028 (operator_check_standard): Likewise.
2029 (parse_float): Do not accept suffix. Take type as input. Return bool.
2030 Return target format buffer instead of host DOUBLEST.
2031 Use floatformat_from_string and decimal_from_string to parse
2032 either binary or decimal floating-point types.
2033 (parse_c_float): Remove.
2034 * parser-defs.h: Do not include "doublest.h".
2035 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
2036 (write_exp_elt_floatcst): Add prototype.
2037 (parse_float): Update prototype.
2038 (parse_c_float): Remove.
2039
2040 * c-exp.y: Do not include "dfp.h".
2041 (typed_val_float): Use byte buffer instead of DOUBLEST.
2042 (typed_val_decfloat): Remove.
2043 (DECFLOAT): Remove.
2044 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2045 (parse_number): Update to new parse_float interface.
2046 Parse suffixes and determine type before calling parse_float.
2047 Handle decimal and binary FP types the same way.
2048
2049 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2050 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
2051 (parse_number): Update to new parse_float interface.
2052 Parse suffixes and determine type before calling parse_float.
2053
2054 * f-exp.y: Replace dval by typed_val_float.
2055 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2056 (parse_number): Use parse_float instead of atof.
2057
2058 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2059 (parse_go_float): Remove.
2060 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2061 (parse_number): Call parse_float instead of parse_go_float.
2062 Parse suffixes and determine type before calling parse_float.
2063
2064 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2065 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2066 (parse_number): Update to new parse_float interface.
2067 Parse suffixes and determine type before calling parse_float.
2068
2069 * m2-exp.y: Replace dval by byte buffer val.
2070 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2071 (parse_number): Call parse_float instead of atof.
2072
2073 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2074 (lex_number): Call parse_float instead of strtod.
2075 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
2076 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
2077 Use write_exp_elt_floatcst.
2078 (unit_testing): Remove static variable.
2079 (rust_type): Do not check unit_testing.
2080 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
2081
2082 * ada-exp.y (type_float, type_double): Remove.
2083 (typed_val_float): Use byte buffer instead of DOUBLEST.
2084 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2085 * ada-lex.l (processReal): Use parse_float instead of sscanf.
2086
cc628f3d
AH
20872017-10-25 Alan Hayward <alan.hayward@arm.com>
2088
2089 * aarch64-tdep.h (enum aarch64_regnum): Remove.
2090 * arch/aarch64.h: New file.
2091
09a7c6aa
UW
20922017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2093
2094 * dfp.h (decimal_from_string): Use const reference for argument.
2095 * dfp.c (decimal_from_string): Likewise.
2096
8ba0dd51
UW
20972017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2098
2099 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
2100 * sh64-tdep.c (sh64_do_fp_register): Likewise.
2101 * mips-tdep.c (mips_print_fp_register): Likewise.
2102
16e812b2
UW
21032017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2104
2105 * common/format.h (enum argclass): Replace decfloat_arg by
2106 dec32float_arg, dec64float_arg, and dec128float_arg.
2107 * common/format.c (parse_format_string): Update to return
2108 new decimal float argument classes.
2109
2110 * printcmd.c (printf_decfloat): Rename to ...
2111 (printf_floating): ... this. Add argclass argument, and use it
2112 instead of parsing the format string again. Add support for
2113 binary floating-point values, using floatformat_to_string.
2114 Convert value to the target format if it doesn't already match.
2115 (ui_printf): Call printf_floating instead of printf_decfloat,
2116 also for double_arg / long_double_arg. Pass argclass.
2117
2118 * dfp.c (decimal_to_string): Add format string argument.
2119 * dfp.h (decimal_to_string): Likewise.
2120
2121 * doublest.c (floatformat_to_string): Add format string argument.
2122 * doublest.h (floatformat_to_string): Likewise.
2123
fdf0cbc2
UW
21242017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2125
2126 * doublest.c (floatformat_precision): New routine.
2127 (floatformat_to_string): Likewise.
2128 * doublest.c (floatformat_to_string): Add prototype.
2129
2130 * printcmd.c (print_scalar_formatted): Only call print_floating
2131 on floating-point types.
2132 * valprint.c: Do not include "floatformat.h".
2133 (generic_val_print_decfloat): Remove.
2134 (generic_val_print): Call generic_val_print_float for both
2135 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
2136 (print_floating): Use floatformat_to_string. Handle decimal float.
2137 (print_decimal_floating): Remove, merge into floatformat_to_string.
2138 * value.h (print_decimal_floating): Remove.
2139
2140 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
2141
5033013f
UW
21422017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2143
2144 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
2145
a664f67e
SM
21462017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2147
2148 * memattr.h: Don't include vec.h.
2149 (struct mem_attrib): Initialize fields.
2150 <unknown>: New static method.
2151 (struct mem_region): Add constructors, operator<, initialize
2152 fields.
2153 * memattr.c: Include algorithm.
2154 (default_mem_attrib, unknown_mem_attrib): Remove.
2155 (user_mem_region_list): New global.
2156 (target_mem_region_list, mem_region_list): Change type to
2157 std::vector<mem_region>.
2158 (mem_use_target): Now a function.
2159 (target_mem_regions_valid): Change type to bool.
2160 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
2161 (require_user_regions): Adjust.
2162 (require_target_regions): Adjust.
2163 (create_mem_region): Adjust.
2164 (lookup_mem_region): Adjust.
2165 (invalidate_target_mem_regions): Adjust.
2166 (mem_clear): Rename to...
2167 (user_mem_clear): ... this, and adjust.
2168 (mem_command): Adjust.
2169 (info_mem_command): Adjust.
2170 (mem_enable, enable_mem_command, mem_disable,
2171 disable_mem_command): Adjust.
2172 (mem_delete): Adjust.
2173 (delete_mem_command): Adjust.
2174 * memory-map.h (parse_memory_map): Return an std::vector.
2175 * memory-map.c (parse_memory_map): Likewise.
2176 (struct memory_map_parsing_data): Add constructor.
2177 <memory_map>: Point to std::vector.
2178 (memory_map_start_memory): Adjust.
2179 (memory_map_end_memory): Adjust.
2180 (memory_map_end_property): Adjust.
2181 (clear_result): Remove.
2182 * remote.c (remote_memory_map): Return an std::vector.
2183 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
2184 Remove.
2185 (target_debug_print_mem_region_vector): New.
2186 * target-delegates.c: Regenerate.
2187 * target.h (mem_region_vector): New typedef.
2188 (to_memory_map): Return mem_region_vector.
2189 (target_memory_map): Return an std::vector.
2190 * target.c (target_memory_map): Return an std::vector.
2191 (flash_erase_command): Adjust.
2192
6e17c565
SM
21932017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2194
2195 * memory-map.c (struct memory_map_parsing_data) <property_name>:
2196 Change type to std::string.
2197 (memory_map_start_property): Adjust.
2198 (memory_map_end_property): Adjust.
2199
cfba9872
SM
22002017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2201
2202 * infrun.h: Include common/byte-vector.h.
2203 (struct displaced_step_closure): New struct.
2204 (struct buf_displaced_step_closure): New struct.
2205 * infrun.c (displaced_step_closure::~displaced_step_closure):
2206 Provide default implementation.
2207 (displaced_step_clear): Deallocate step closure with delete.
2208 * aarch64-tdep.c (displaced_step_closure): Rename to ...
2209 (aarch64_displaced_step_closure): ... this, extend
2210 displaced_step_closure.
2211 (aarch64_displaced_step_data) <dsc>: Change type to
2212 aarch64_displaced_step_closure.
2213 (aarch64_displaced_step_copy_insn): Adjust to type change, use
2214 unique_ptr.
2215 (aarch64_displaced_step_fixup): Add cast for displaced step
2216 closure.
2217 * amd64-tdep.c (displaced_step_closure): Rename to ...
2218 (amd64_displaced_step_closure): ... this, extend
2219 displaced_step_closure.
2220 <insn_buf>: Change type to std::vector<gdb_byte>.
2221 <max_len>: Remove.
2222 (fixup_riprel): Change type of DSC parameter, adjust to type
2223 change of insn_buf.
2224 (fixup_displaced_copy): Change type of DSC parameter.
2225 (amd64_displaced_step_copy_insn): Instantiate
2226 amd64_displaced_step_closure.
2227 (amd64_displaced_step_fixup): Add cast for closure type, adjust
2228 to type change of insn_buf.
2229 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
2230 parameter DSC.
2231 (arm_linux_copy_svc): Likewise.
2232 (cleanup_kernel_helper_return): Likewise.
2233 (arm_catch_kernel_helper_return): Likewise.
2234 (arm_linux_displaced_step_copy_insn): Instantiate
2235 arm_displaced_step_closure.
2236 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
2237 (displaced_read_reg): Change type of parameter DSC.
2238 (branch_write_pc): Likewise.
2239 (load_write_pc): Likewise.
2240 (alu_write_pc): Likewise.
2241 (displaced_write_reg): Likewise.
2242 (arm_copy_unmodified): Likewise.
2243 (thumb_copy_unmodified_32bit): Likewise.
2244 (thumb_copy_unmodified_16bit): Likewise.
2245 (cleanup_preload): Likewise.
2246 (install_preload): Likewise.
2247 (arm_copy_preload): Likewise.
2248 (thumb2_copy_preload): Likewise.
2249 (install_preload_reg): Likewise.
2250 (arm_copy_preload_reg): Likewise.
2251 (cleanup_copro_load_store): Likewise.
2252 (install_copro_load_store): Likewise.
2253 (arm_copy_copro_load_store) Likewise.
2254 (thumb2_copy_copro_load_store): Likewise.
2255 (cleanup_branch): Likewise.
2256 (install_b_bl_blx): Likewise.
2257 (arm_copy_b_bl_blx): Likewise.
2258 (thumb2_copy_b_bl_blx): Likewise.
2259 (thumb_copy_b): Likewise.
2260 (install_bx_blx_reg): Likewise.
2261 (arm_copy_bx_blx_reg): Likewise.
2262 (thumb_copy_bx_blx_reg): Likewise.
2263 (cleanup_alu_imm): Likewise.
2264 (arm_copy_alu_imm): Likewise.
2265 (thumb2_copy_alu_imm): Likewise.
2266 (cleanup_alu_reg): Likewise.
2267 (install_alu_reg): Likewise.
2268 (arm_copy_alu_reg): Likewise.
2269 (thumb_copy_alu_reg): Likewise.
2270 (cleanup_alu_shifted_reg): Likewise.
2271 (install_alu_shifted_reg): Likewise.
2272 (arm_copy_alu_shifted_reg): Likewise.
2273 (cleanup_load): Likewise.
2274 (cleanup_store): Likewise.
2275 (arm_copy_extra_ld_st): Likewise.
2276 (install_load_store): Likewise.
2277 (thumb2_copy_load_literal): Likewise.
2278 (thumb2_copy_load_reg_imm): Likewise.
2279 (arm_copy_ldr_str_ldrb_strb): Likewise.
2280 (cleanup_block_load_all): Likewise.
2281 (cleanup_block_store_pc): Likewise.
2282 (cleanup_block_load_pc): Likewise.
2283 (arm_copy_block_xfer): Likewise.
2284 (thumb2_copy_block_xfer): Likewise.
2285 (cleanup_svc): Likewise.
2286 (install_svc): Likewise.
2287 (arm_copy_svc): Likewise.
2288 (thumb_copy_svc): Likewise.
2289 (arm_copy_undef): Likewise.
2290 (thumb_32bit_copy_undef): Likewise.
2291 (arm_copy_unpred): Likewise.
2292 (arm_decode_misc_memhint_neon): Likewise.
2293 (arm_decode_unconditional): Likewise.
2294 (arm_decode_miscellaneous): Likewise.
2295 (arm_decode_dp_misc): Likewise.
2296 (arm_decode_ld_st_word_ubyte): Likewise.
2297 (arm_decode_media): Likewise.
2298 (arm_decode_b_bl_ldmstm): Likewise.
2299 (arm_decode_ext_reg_ld_st): Likewise.
2300 (thumb2_decode_dp_shift_reg): Likewise.
2301 (thumb2_decode_ext_reg_ld_st): Likewise.
2302 (arm_decode_svc_copro): Likewise.
2303 (thumb2_decode_svc_copro): Likewise.
2304 (install_pc_relative): Likewise.
2305 (thumb_copy_pc_relative_16bit): Likewise.
2306 (thumb_decode_pc_relative_16bit): Likewise.
2307 (thumb_copy_pc_relative_32bit): Likewise.
2308 (thumb_copy_16bit_ldr_literal): Likewise.
2309 (thumb_copy_cbnz_cbz): Likewise.
2310 (thumb2_copy_table_branch): Likewise.
2311 (cleanup_pop_pc_16bit_all): Likewise.
2312 (thumb_copy_pop_pc_16bit): Likewise.
2313 (thumb_process_displaced_16bit_insn): Likewise.
2314 (decode_thumb_32bit_ld_mem_hints): Likewise.
2315 (thumb_process_displaced_32bit_insn): Likewise.
2316 (thumb_process_displaced_insn): Likewise.
2317 (arm_process_displaced_insn): Likewise.
2318 (arm_displaced_init_closure): Likewise.
2319 (arm_displaced_step_fixup): Add cast for closure.
2320 * arm-tdep.h: Include infrun.h.
2321 (displaced_step_closure): Rename to ...
2322 (arm_displaced_step_closure): ... this, extend
2323 displaced_step_closure.
2324 <u::svc::copy_svc_os>: Change type of parameter DSC.
2325 <cleanup>: Likewise.
2326 (arm_process_displaced_insn): Likewise.
2327 (arm_displaced_init_closure): Likewise.
2328 (displaced_read_reg): Likewise.
2329 (displaced_write_reg): Likewise.
2330 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
2331 Adjust.
2332 * i386-tdep.h: Include infrun.h.
2333 (i386_displaced_step_closure): New typedef.
2334 * i386-tdep.c (i386_displaced_step_copy_insn): Use
2335 i386_displaced_step_closure.
2336 (i386_displaced_step_fixup): Adjust.
2337 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
2338 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
2339 and unique_ptr.
2340 (ppc_displaced_step_fixup): Adjust.
2341 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
2342 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
2343 and unique_ptr.
2344 (s390_displaced_step_fixup): Adjust.
2345
b392b304
SM
23462017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2347
2348 * interps.h (interp_resume, interp_suspend, interp_set_temp):
2349 Remove declarations.
2350
d5833c62
TT
23512017-10-20 Tom Tromey <tom@tromey.com>
2352
2353 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
2354 std::vector.
2355 (gdb_bfd_record_inclusion): Update.
2356 (bfdp): Remove typedef.
2357
06d5bbc8
TT
23582017-10-20 Tom Tromey <tom@tromey.com>
2359
2360 * gdb_bfd.c (gdb_bfd_ref): Use new.
2361 (struct gdb_bfd_data): Add constructor, destructor, and member
2362 initializers.
2363 (gdb_bfd_unref): Use delete.
2364
2712ce2e
TT
23652017-10-20 Tom Tromey <tom@tromey.com>
2366
2367 * exec.c (exec_file_attach): Use new_bfd_ref.
2368 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
2369 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
2370 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
2371 new_bfd_ref.
2372 * gdb_bfd.h (new_bfd_ref): New function.
2373
fcc8fb2f
PA
23742017-10-20 Pedro Alves <palves@redhat.com>
2375
2376 * main.c (captured_command_loop): Add attribute noinline.
2377
4c2287b0
SM
23782017-10-19 Simon Marchi <simon.marchi@ericsson.com>
2379
2380 * interps.c (struct interp_factory): Add constructor.
2381 (interp_factory_p): Remove typedef.
2382 (DEF_VEC_P(interp_factory_p)): Remove.
2383 (interpreter_factories): Change type to std::vector.
2384 (interp_factory_register): Adjust.
2385 (interp_lookup): Adjust.
2386 (interpreter_completer): Adjust.
2387
3d415c26
TT
23882017-10-19 Tom Tromey <tom@tromey.com>
2389
2390 * break-catch-syscall.c (catch_syscall_completer): Use
2391 std::string, gdb::unique_xmalloc_ptr.
2392
395423c4
TT
23932017-10-19 Tom Tromey <tom@tromey.com>
2394
2395 * infcall.c (call_function_by_hand_dummy): Use std::string.
2396
54f70bc1
TT
23972017-10-19 Tom Tromey <tom@tromey.com>
2398
2399 * mi/mi-main.c (mi_cmd_execute): Update.
2400 * top.h (prepare_execute_command): Return scoped_value_mark.
2401 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
2402 Add move constructor.
2403 * top.c (prepare_execute_command): Return scoped_value_mark.
2404 (execute_command): Update.
2405
63929e84
PA
24062017-10-19 Pedro Alves <palves@redhat.com>
2407
2408 * xml-support.c (xml_fetch_content_from_file): Check fread's
2409 return.
2410
a75868f5
PA
24112017-10-19 Pedro Alves <palves@redhat.com>
2412
2413 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
2414 async.
2415 (handle_error_fd): New function.
2416 (ser_base_async): Add/delete an event loop file handler for
2417 error_fd.
2418
2edf834e
PA
24192017-10-19 Pedro Alves <palves@redhat.com>
2420
2421 * xml-support.c (xml_fetch_content_from_file): Don't read in
2422 chunks. Instead use fseek to determine the file's size, and read
2423 it in one go.
2424
c8ba13ad
KS
24252017-11-18 Keith Seitz <keiths@redhat.com>
2426
2427 * c-exp.y (oper): Canonicalize conversion operators of user-defined
2428 types.
2429 Add whitespace to front of type name.
2430
37534686
KS
24312017-10-18 Keith Seitz <keiths@redhat.com>
2432
2433 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
2434 DW_AT_accessibility.
2435
28c7c158
YQ
24362017-10-18 Yao Qi <yao.qi@linaro.org>
2437
2438 * features/tic6x-c62x-linux.c: Remove.
2439
30f0b101
TT
24402017-10-17 Tom Tromey <tom@tromey.com>
2441
2442 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
2443 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
2444 (do_mixed_source_and_assembly): Likewise.
2445
57e12da9
TT
24462017-10-17 Tom Tromey <tom@tromey.com>
2447
2448 * regcache.c (regcache::xfer_part): Remove assertion.
2449
7b700999
PA
24502017-10-17 Pedro Alves <palves@redhat.com>
2451
2452 * xml-support.c (xml_fetch_content_from_file): Call
2453 unique_ptr::release() instead unique_ptr::get() when passing
2454 through xrealloc.
2455
d3037ba6
YQ
24562017-10-17 Yao Qi <yao.qi@linaro.org>
2457
2458 * regcache.c (regcache::xfer_part): Remove parameters read and
2459 write, add parameter is_raw. All callers are updated.
2460
83d5a34d
KS
24612017-10-16 Keith Seitz <keiths@redhat.com>
2462
2463 * c-typeprint.c (enum access_specifier): Moved here from
2464 c_type_print_base.
2465 (output_access_specifier): New function.
2466 (c_type_print_base): Consider typedefs when assessing
2467 whether access labels are needed.
2468 Use output_access_specifier as needed.
2469 Output access specifier for typedefs, if needed.
2470 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
2471 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
2472 fields.
2473 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
2474 accessor macros.
2475
87028b87
TT
24762017-10-16 Tom Tromey <tom@tromey.com>
2477
2478 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
2479 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
2480 * target.c (target_fileio_read_stralloc): Update.
2481 * sparc64-tdep.c (adi_is_addr_mapped): Update.
2482 * target.h (target_fileio_read_stralloc): Return
2483 unique_xmalloc_ptr.
2484
b7b030ad
TT
24852017-10-16 Tom Tromey <tom@tromey.com>
2486
2487 * xml-syscall.c (xml_init_syscalls_info): Update.
2488 * xml-support.c (xinclude_start_include): Update.
2489 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
2490 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
2491 (xml_fetch_content_from_file): Likewise.
2492 * osdata.c (get_osdata): Update.
2493 * target.h (target_read_stralloc, target_get_osdata): Return
2494 unique_xmalloc_ptr.
2495 * solib-aix.c (solib_aix_get_library_list): Update.
2496 * solib-target.c (solib_target_current_sos): Update.
2497 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
2498 * xml-tdesc.c (fetch_available_features_from_target): Update.
2499 (target_fetch_description_xml): Update.
2500 (file_read_description_xml): Update.
2501 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
2502 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
2503 (remote_pid_to_exec_file): Update.
2504 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
2505 (target_get_osdata): Likewise.
2506
b80406ac
TT
25072017-10-16 Tom Tromey <tom@tromey.com>
2508
2509 * remote.c (remote_register_number_and_offset): Use std::vector.
2510 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
2511 (putpkt_binary): Use gdb::def_vector.
2512 (compare_sections_command): Use gdb::byte_vector.
2513
a90ecff8
TT
25142017-10-16 Tom Tromey <tom@tromey.com>
2515
2516 * ppc-linux-nat.c (hwdebug_insert_point): Use
2517 gdb::unique_xmalloc_ptr, XDUP.
2518
2dc0e219
TT
25192017-10-16 Tom Tromey <tom@tromey.com>
2520
2521 * probe.c (parse_probes): Use std::string.
2522 (info_probes_for_ops, enable_probes_command)
2523 (disable_probes_command): Remove cleanups.
2524
b05628f0
TT
25252017-10-16 Tom Tromey <tom@tromey.com>
2526
2527 * buildsym.c (block_compar): Remove.
2528 (end_symtab_get_static_block): Use std::vector.
2529
a79b1bc6
SM
25302017-10-16 Simon Marchi <simon.marchi@ericsson.com>
2531
2532 * memrange.h (struct mem_range): Define operator< and operator==.
2533 (mem_range_s): Remove.
2534 (DEF_VEC_O (mem_range_s)): Remove.
2535 (normalize_mem_ranges): Change parameter type to std::vector.
2536 * memrange.c (compare_mem_ranges): Remove.
2537 (normalize_mem_ranges): Change parameter type to std::vector,
2538 adjust to vector change.
2539 * exec.c (section_table_available_memory): Return vector, remove
2540 parameter.
2541 (section_table_read_available_memory): Adjust to std::vector
2542 change.
2543 * remote.c (remote_read_bytes): Adjust to std::vector
2544 change.
2545 * tracepoint.h (traceframe_available_memory): Change parameter
2546 type to std::vector.
2547 * tracepoint.c (traceframe_available_memory): Change parameter
2548 type to std::vector, adjust.
2549 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
2550 std::vector change.
2551 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2552 unittests/memrange-selftests.c.
2553 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
2554 * gdb/unittests/memrange-selftests.c: New file.
2555
63f0e930
PA
25562017-10-16 Pedro Alves <palves@redhat.com>
2557
2558 * elfread.c (probe_key_free): Rename range-for variable.
2559 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
2560 (find_probe_by_pc, collect_probes): Rename range-for variable.
2561
c40c7bfc
YQ
25622017-10-16 Yao Qi <yao.qi@linaro.org>
2563
2564 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
2565 * features/tic6x-c62x.c: Remove.
2566 * features/tic6x-c64x-linux.c: Remove.
2567 * features/tic6x-c64x.c: Remove.
2568 * features/tic6x-c64xp-linux.c: Remove.
2569 * features/tic6x-c64xp.c: Remove.
2570 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
2571 initialize_tdesc_tic6x_*_linux functions.
2572 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
2573 initialize_tdesc_tic6x_* functions.
2574
df27ae6a
YQ
25752017-10-16 Yao Qi <yao.qi@linaro.org>
2576
2577 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
2578 tic6x-c62x.
2579 * regformats/tic6x-c62x.dat: Remove.
2580 * regformats/tic6x-c64x.dat: Remove.
2581 * regformats/tic6x-c64xp.dat: Remove.
2582
86766165
SM
25832017-10-15 Simon Marchi <simon.marchi@ericsson.com>
2584
2585 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
2586 (the !HAVE_LIBEXPAT version).
2587
824dfcc3
SM
25882017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2589
2590 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
2591 const.
2592
2098b393
SM
25932017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2594
2595 * target.h: Include tracepoint.h.
2596 (enum trace_find_type): Move to tracepoint.h.
2597 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
2598 * tracepoint.h: Don't include target.h
2599 (enum trace_find_type): Move from target.h.
2600 (parse_traceframe_info): Return a unique ptr.
2601 * tracepoint.c (current_traceframe_info): Change type to unique
2602 ptr.
2603 (free_traceframe_info): Remove.
2604 (clear_traceframe_info): Don't manually free
2605 current_traceframe_info.
2606 (free_result): Remove.
2607 (parse_traceframe_info): Return a unique ptr.
2608 (get_traceframe_info): Adjust to unique ptr.
2609 * ctf.c (ctf_traceframe_info): Return a unique ptr.
2610 * remote.c (remote_traceframe_info): Return a unique ptr.
2611 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
2612 ptr.
2613 * target-debug.h (target_debug_print_traceframe_info_up): New
2614 macro.
2615 * target-delegates.c: Regenerate.
2616
4cdd21a8
SM
26172017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2618
2619 * memrange.h (struct mem_range): Add constructors.
2620 * tracepoint.h (struct traceframe_info) <memory>: Change type to
2621 std::vector<mem_range>.
2622 * tracepoint.c (free_traceframe_info): Don't manually free
2623 vector.
2624 (traceframe_info_start_memory): Adjust to vector change.
2625 (traceframe_available_memory): Likewise.
2626 * tracefile-tfile.c (build_traceframe_info): Likewise.
2627 * ctf.c (ctf_traceframe_info): Likewise.
2628
d0d292a2
SM
26292017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2630
2631 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
2632 std::vector<int>.
2633 * tracepoint.c (free_traceframe_info): Deallocate with delete.
2634 (traceframe_info_start_tvar): Adjust to vector change.
2635 (parse_traceframe_info): Allocate with new.
2636 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
2637 vector change.
2638 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
2639 change.
2640 tfile_traceframe_info): Allocate with new.
2641 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
2642 change.
2643
8d3c73ef
SM
26442017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2645
2646 * tracepoint.c (traceframe_info): Rename to...
2647 (current_traceframe_info): ...this.
2648 (clear_traceframe_info): Adjust.
2649 (get_traceframe_info): Adjust.
2650
b129dcac
SM
26512017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2652
2653 * nat/linux-osdata.c: Include algorithm.
2654 (compare_processes): Remove.
2655 (struct pid_pgid_entry): New struct.
2656 (linux_xfer_osdata_processgroups): Use std::vector instead of
2657 XNEWVEC.
2658
af5bf4ad
SM
26592017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2660
2661 * objfiles.h: Don't include symfile.h.
2662 (struct partial_symbol): Remove forward-declaration.
2663 (struct objfile) <global_psymbols, static_psymbols>: Change type
2664 to std::vector<partial_symbol *>.
2665 * objfiles.c (objfile::objfile): Don't memset those fields.
2666 (objfile::~objfile): Don't free those fields.
2667 * psympriv.h (struct psymbol_allocation_list): Remove
2668 forward-declaration.
2669 (add_psymbol_to_list): Change psymbol_allocation_list parameter
2670 to std::vector.
2671 (start_psymtab_common): Change parameters to std::vector.
2672 * psymtab.c: Include algorithm.
2673 (require_partial_symbols): Call shrink_to_fit.
2674 (find_pc_sect_psymbol): Adjust to vector change.
2675 (match_partial_symbol): Likewise.
2676 (lookup_partial_symbol): Likewise.
2677 (psym_relocate): Likewise.
2678 (dump_psymtab): Likewise.
2679 (recursively_search_psymtabs): Likewise.
2680 (compare_psymbols): Remove.
2681 (sort_pst_symbols): Adjust to vector change.
2682 (start_psymtab_common): Likewise.
2683 (end_psymtab_common): Likewise.
2684 (psymbol_bcache_full): De-constify return value.
2685 (add_psymbol_to_bcache): Likewise.
2686 (extend_psymbol_list): Remove.
2687 (append_psymbol_to_list): Adjust to vector change.
2688 (add_psymbol_to_list): Likewise.
2689 (init_psymbol_list): Likewise.
2690 (maintenance_info_psymtabs): Likewise.
2691 (maintenance_check_psymtabs): Likewise.
2692 * symfile.h (struct psymbol_allocation_list): Remove.
2693 * symfile.c (reread_symbols): Adjust to vector change.
2694 * dbxread.c (start_psymtab): Change type of parameters.
2695 (dbx_symfile_read): Adjust to vector change.
2696 (read_dbx_symtab): Likewise.
2697 (start_psymtab): Change type of parameters.
2698 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
2699 (create_partial_symtab): Likewise.
2700 (add_partial_symbol): Likewise.
2701 (write_one_signatured_type): Likewise.
2702 (recursively_write_psymbols): Likewise.
2703 * mdebugread.c (parse_partial_symbols): Likewise.
2704 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
2705 (scan_xcoff_symtab): Adjust to vector change.
2706 (xcoff_initial_scan): Likewise.
2707
3ec5942f
SM
27082017-10-13 Simon Marchi <simon.marchi@ericsson.com>
2709
2710 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
2711
2399fe6a
YQ
27122017-10-13 Yao Qi <yao.qi@linaro.org>
2713
2714 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
2715 Remove s390x-*-expedite, add s390x-expedite.
2716
4bf3f4a8
YQ
27172017-10-13 Yao Qi <yao.qi@linaro.org>
2718
2719 * features/s390-gs-linux64.c: Regenerated.
2720 * features/s390x-gs-linux64.c: Regenerated.
2721
9e86da07
TT
27222017-10-13 Tom Tromey <tom@tromey.com>
2723
2724 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2725 * solib.c (update_solib_list, reload_shared_libraries_1): Use
2726 delete.
2727 * symfile.c (symbol_file_add_with_addrs): Use new.
2728 (symbol_file_add_separate): Update comment.
2729 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
2730 * jit.c (jit_object_close_impl): Use new.
2731 (jit_unregister_code): Use delete.
2732 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
2733 (~objfile): Rename from free_objfile.
2734 (free_objfile_separate_debug, do_free_objfile_cleanup)
2735 (free_all_objfiles, objfile_purge_solibs): Use delete.
2736 * objfiles.h (struct objfile): Add constructor and destructor.
2737 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
2738 (allocate_objfile, free_objfile): Don't declare.
2739 (struct objstats): Add initializers.
2740
c2508e90
SM
27412017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2742
2743 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
2744 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
2745 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
2746 * gdbarch.h: Regenerate.
2747 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
2748 Adjust comment.
2749 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
2750 (i386_displaced_step_fixup): Adjust comment.
2751 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
2752
a900ff72
TT
27532017-10-12 Tom Tromey <tom@tromey.com>
2754
2755 * prologue-value.h (pv_area::store_would_trash): Return bool.
2756 (pv_area::find_reg): Likewise.
2757 * prologue-value.c (pv_area::store_would_trash): Return bool.
2758 (pv_area::find_reg): Likewise.
2759
f7b7ed97
TT
27602017-10-12 Tom Tromey <tom@tromey.com>
2761
2762 * s390-linux-tdep.c (s390_store, s390_load)
2763 (s390_check_for_saved, s390_analyze_prologue): Update.
2764 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
2765 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
2766 * prologue-value.h (class pv_area): Move from prologue-value.c.
2767 Change names of members. Add constructor, destructor, member
2768 functions.
2769 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
2770 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
2771 (pv_area_fetch, pv_area_scan): Don't declare.
2772 * prologue-value.c (struct pv_area::area_entry): Now member of
2773 pv_area.
2774 (struct pv_area): Move to prologue-value.h.
2775 (pv_area::pv_area): Rename from make_pv_area.
2776 (pv_area::~pv_area): Rename from free_pv_area.
2777 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
2778 (clear_entries, find_entry, overlaps, store_would_trash, store)
2779 (fetch, find_reg, scan): Now member of pv_area.
2780 Remove "area" argument. Update.
2781 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
2782 Update.
2783 * mn10300-tdep.c (push_reg, check_for_saved)
2784 (mn10300_analyze_prologue): Update.
2785 * mep-tdep.c (is_arg_spill, check_for_saved)
2786 (mep_analyze_prologue): Update.
2787 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
2788 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
2789 (m32c_is_struct_return, m32c_analyze_prologue): Update.
2790 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
2791 Update.
2792 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
2793 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
2794
466eecee
SM
27952017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2796
2797 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
2798 * linux-nat.c (linux_nat_delete_thread): New variable.
2799 (lwp_free): Invoke linux_nat_delete_thread if set.
2800 (linux_nat_set_delete_thread): New function.
2801 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
2802 thread delete callback.
2803 * arm-linux-nat.c (arm_linux_delete_thread): New function.
2804 (_initialize_arm_linux_nat): Assign thread delete callback.
2805 * s390-linux-nat.c (s390_delete_thread): New function.
2806 (_initialize_s390_nat): Assign thread delete callback.
2807 * x86-linux-nat.c (x86_linux_add_target): Likewise.
2808 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
2809 function.
2810 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
2811 declaration.
2812 * nat/x86-linux.c (x86_linux_delete_thread): New function.
2813 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
2814
f71c8822
TT
28152017-10-09 Tom Tromey <tom@tromey.com>
2816
2817 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
2818 std::string.
2819 * tui/tui-layout.c (enum tui_status): Use std::string.
2820
981a3fb3
TT
28212017-10-11 Tom Tromey <tom@tromey.com>
2822
2823 * gdbthread.h (thread_command): Constify.
2824 * inferior.h (detach_command): Constify.
2825 * top.h (set_history, show_history): Constify.
2826 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
2827 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
2828 * bsd-kvm.c (bsd_kvm_cmd): Constify.
2829 * printcmd.c (set_command): Constify.
2830 (non_const_set_command): New function.
2831 * dcache.c (set_dcache_command, show_dcache_command): Constify.
2832 * breakpoint.c (enable_command, disable_command, delete_command)
2833 (catch_command, tcatch_command, set_breakpoint_cmd)
2834 (show_breakpoint_cmd): Constify.
2835 * macrocmd.c (macro_command): Constify.
2836 * infcmd.c (unset_command, kill_command, detach_command)
2837 (info_proc_cmd): Constify.
2838 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
2839 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
2840 (info_auto_load_cmd): Constify.
2841 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
2842 (unset_tdesc_cmd): Constify.
2843 * ada-lang.c (set_ada_command, show_ada_command)
2844 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
2845 * guile/guile.c (set_guile_command, show_guile_command)
2846 (info_guile_command): Constify.
2847 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
2848 Constify.
2849 * skip.c (skip_command): Constify.
2850 * compile/compile.c (_initialize_compile): Constify.
2851 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
2852 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
2853 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
2854 (maint_btrace_pt_show_cmd): Constify.
2855 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
2856 Constify.
2857 * python/python.c (user_show_python, user_set_python): Constify.
2858 * mips-tdep.c (set_mips_command, show_mips_command)
2859 (set_mipsfpu_command): Constify.
2860 * record-btrace.c (cmd_record_btrace_start)
2861 (cmd_set_record_btrace, cmd_show_record_btrace)
2862 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
2863 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
2864 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
2865 Constify.
2866 * symfile.c (overlay_command): Constify.
2867 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
2868 * cli/cli-logging.c (set_logging_command, show_logging_command):
2869 Constify.
2870 * cli/cli-dump.c (dump_command, append_command)
2871 (srec_dump_command, ihex_dump_command, verilog_dump_command)
2872 (tekhex_dump_command, binary_dump_command)
2873 (binary_append_command): Constify.
2874 * cli/cli-decode.c (struct cmd_list_element): Change type of
2875 "fun".
2876 * cli/cli-cmds.c (info_command, show_command, set_debug)
2877 (show_debug): Constify.
2878 (show_command): Add non-const overload.
2879 * top.c (set_history, show_history): Constify.
2880 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
2881 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
2882 * target.c (target_command): Constify.
2883 * sparc64-tdep.c (info_adi_command): Constify.
2884 * record-full.c (cmd_record_full_start): Constify.
2885 (set_record_full_command): Constify. Fix typo.
2886 (show_record_full_command): Constify.
2887 * thread.c (thread_command, thread_apply_command): Constify.
2888 * memattr.c (dummy_cmd): Constify.
2889 * value.c (function_command): Constify.
2890 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
2891 * probe.c (info_probes_command): Constify.
2892 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
2893 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
2894 (show_thread_cmd, set_thread_default_cmd)
2895 (show_thread_default_cmd): Constify.
2896 (check_empty): Constify.
2897 * tracepoint.c (tfind_command): Constify.
2898 * cp-support.c (maint_cplus_command): Constify.
2899 * windows-tdep.c (info_w32_command): Constify.
2900 * record.c (cmd_record_start, set_record_command)
2901 (show_record_command, info_record_command, cmd_record_goto):
2902 Constify.
2903 * ravenscar-thread.c (set_ravenscar_command)
2904 (show_ravenscar_command): Constify.
2905 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
2906 Constify.
2907 (add_internal_problem_command): Remove casts.
2908 * arc-tdep.c (maintenance_print_arc_command): Constify.
2909 * valprint.c (set_print, show_print, set_print_raw)
2910 (show_print_raw): Constify.
2911 * maint.c (maintenance_command, maintenance_info_command)
2912 (maintenance_print_command, maintenance_set_cmd)
2913 (maintenance_show_cmd, set_per_command_cmd)
2914 (show_per_command_cmd, maintenance_check_command): Constify.
2915 * language.c (set_check, show_check): Constify.
2916 * typeprint.c (show_print_type, set_print_type): Constify.
2917 * go32-nat.c (go32_info_dos_command): Constify.
2918
fdf44873
TT
29192017-10-11 Tom Tromey <tom@tromey.com>
2920
2921 * breakpoint.c (prepare_re_set_context): Remove.
2922 (breakpoint_re_set_one): Update. Don't use cleanups.
2923 (breakpoint_re_set): Use scoped_restore, std::string, and
2924 scoped_restore_current_language.
2925
81b1e71c
TT
29262017-10-11 Tom Tromey <tom@tromey.com>
2927
2928 * breakpoint.c (commands_command_1): Use std::string.
2929 (cleanup_executing_breakpoints): Remove.
2930 (bpstat_do_actions_1): Use scoped_restore.
2931 (bpstat_check_watchpoint): Use std::string.
2932 (decode_static_tracepoint_spec): Likewise.
2933 (break_range_command): Likewise.
2934 (watch_command_1): Likewise.
2935 (compare_breakpoints): Change argument types.
2936 (clear_command): Use std::vector.
2937 (cleanup_executing_breakpoints): Remove.
2938 (update_global_location_list): Use unique_xmalloc_ptr.
2939 (strace_command): Remove unused declaration.
2940
4f9d9906
JB
29412017-10-11 John Baldwin <jhb@FreeBSD.org>
2942
2943 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
2944 * NEWS: Mention new FreeBSD/arm native configuration.
2945 * configure.host: Add arm*-*-freebsd*.
2946 * configure.nat: Likewise.
2947 * arm-fbsd-nat.c: New file.
2948
7176dfd2
JB
29492017-10-11 John Baldwin <jhb@FreeBSD.org>
2950
2951 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
2952 (ALLDEPFILES): Add arm-fbsd-tdep.c.
2953 * NEWS: Mention new FreeBSD/arm target.
2954 * configure.tgt: Add arm*-*-freebsd*.
2955 * arm-fbsd-tdep.c: New file.
2956 * arm-fbsd-tdep.h: New file.
2957
fe220226
MR
29582017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2959
2960 * linux-tdep.c (linux_make_corefile_notes): Remove call to
2961 `gdbarch_elfcore_write_linux_prpsinfo'.
2962 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
2963 method.
2964 (elf_internal_linux_prpsinfo): Remove declaration.
2965 * gdbarch.h: Regenerate.
2966 * gdbarch.c: Regenerate.
2967
a2f63b2e
MR
29682017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2969
2970 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
2971 `set_gdbarch_elfcore_write_linux_prpsinfo'.
2972
458ca1d0
PA
29732017-10-11 Pedro Alves <palves@redhat.com>
2974
2975 * breakpoint.c (reattach_breakpoints): Delete.
2976 * breakpoint.h (reattach_breakpoints): Delete.
2977
905014d7
SM
29782017-10-11 Simon Marchi <simon.marchi@ericsson.com>
2979
2980 * symfile.c (registered_sym_fns): Make struct, not typedef.
2981 (DEF_VEC_O (registered_sym_fns)): Remove.
2982 (symtab_fns): Change type to std::vector.
2983 (add_symtab_fns): Adjust.
2984 (find_sym_fns): Adjust.
2985
56d704da
AK
29862017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
2987
2988 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
2989 * arc-tdep.h (arc_arch_is_em): New function.
2990 (arc_arch_is_hs): Likewise.
2991
7fa29be9
EB
29922017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
2993
2994 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
2995 parentheses in the declaration.
2996 (macro_lookup_inclusion): Likewise.
2997 (macro_lookup_definition): Likewise.
2998 * p-lang.h (pascal_builtin_types): Likewise.
2999 * tui/tui-data.c (tui_win_list): Likewise.
3000 * tui/tui-data.h (tui_win_list): Likewise.
3001 * utils.h (make_cleanup_free_section_addr_info): Likewise.
3002
d9b477e3
KB
30032017-10-11 Mark Rages <markrages@gmail.com>
3004
3005 * target-memory.c (block_boundaries): Fix for block address not
3006 aligned on block size.
3007
65630365
PA
30082017-10-10 Pedro Alves <palves@redhat.com>
3009 Tom Tromey <tom@tromey.com>
3010
3011 * breakpoint.c (struct captured_breakpoint_query_args)
3012 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
3013 (print_breakpoint): New.
3014 * breakpoint.h (print_breakpoint): Declare.
3015 * common/common-exceptions.h (enum return_reason): Remove
3016 references to catch_exceptions.
3017 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
3018 Delete.
3019 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
3020 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
3021 * gdb.h: Delete.
3022 * gdbthread.h (thread_select): Declare.
3023 * mi/mi-cmd-break.c: Don't include gdb.h.
3024 (breakpoint_notify): Use print_breakpoint.
3025 * mi/mi-cmd-catch.c: Don't include gdb.h.
3026 * mi/mi-interp.c: Don't include gdb.h.
3027 (mi_print_breakpoint_for_event): New.
3028 (mi_breakpoint_created, mi_breakpoint_modified): Use
3029 mi_print_breakpoint_for_event.
3030 * mi/mi-main.c: Don't include gdb.h.
3031 (mi_cmd_thread_select): Parse the global thread ID here. Use
3032 thread_select instead of gdb_thread_select.
3033 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
3034 of using gdb_list_thread_ids.
3035 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
3036 FILEIO_ENOSYS here.
3037 (remote_fileio_request): Use TRY/CATCH instead of
3038 catch_exceptions.
3039 * symfile-mem.c (struct symbol_file_add_from_memory_args)
3040 (symbol_file_add_from_memory_wrapper): Delete.
3041 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
3042 * thread.c: Don't include gdb.h.
3043 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
3044 (thread_alive): Use thread_select.
3045 (do_captured_thread_select): Delete, parts salvaged as ...
3046 (thread_select): ... this new function.
3047 (gdb_thread_select): Delete.
3048
bf469271
PA
30492017-10-10 Pedro Alves <palves@redhat.com>
3050 Tom Tromey <tom@tromey.com>
3051
3052 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
3053 and reverse logic.
3054 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
3055 No longer macros. Instead ...
3056 (enum wp_check_result): They're now values of this new
3057 enumeration.
3058 (watchpoint_check): Change return type to wp_check_result and
3059 parameter type to bpstat.
3060 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
3061 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
3062 catch_errors. Reverse logic of watchpoint_check call.
3063 (breakpoint_re_set_one): Now returns void and takes a breakpoint
3064 pointer as parameter.
3065 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
3066 * common/common-exceptions.c (throw_exception_sjlj): Update
3067 comments to avoid mentioning catch_errors.
3068 * exceptions.c (catch_errors): Delete.
3069 * exceptions.h: Update comments to avoid mentioning catch_errors.
3070 (catch_errors_ftype, catch_errors): Delete.
3071 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
3072 (hook_stop_stub): Delete.
3073 (restore_selected_frame): Change return type to void, and
3074 parameter type to const frame_id &.
3075 (restore_infcall_control_state): Use TRY/CATCH instead of
3076 catch_errors.
3077 * main.c (captured_command_loop): Return void and remove
3078 parameter. Remove references to catch_errors.
3079 (captured_main): Use TRY/CATCH instead of catch_errors.
3080 * objc-lang.c (objc_submethod_helper_data)
3081 (find_objc_msgcall_submethod_helper): Delete.
3082 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
3083 catch_errors.
3084 * record-full.c (record_full_message): Return void.
3085 (record_full_message_args, record_full_message_wrapper): Delete.
3086 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
3087 instead of catch_errors.
3088 * solib-aix.c (solib_aix_open_symbol_file_object): Change
3089 parameter type to int.
3090 * solib-darwin.c (open_symbol_file_object): Ditto.
3091 * solib-dsbt.c (open_symbol_file_object): Ditto.
3092 * solib-frv.c (open_symbol_file_object): Ditto.
3093 * solib-svr4.c (open_symbol_file_object): Ditto.
3094 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
3095 * solib.c (update_solib_list): Use TRY/CATCH instead of
3096 catch_errors.
3097 * solist.h (struct target_so_ops) <open_symbol_file_object>:
3098 Change type.
3099 * symmisc.c (struct print_symbol_args): Remove.
3100 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
3101 (print_symbol): Change type.
3102 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
3103 and remove parameters.
3104 (catch_errors): New.
3105 (get_windows_debug_event): Adjust.
3106
1a56bfa5
TT
31072017-10-09 Tom Tromey <tom@tromey.com>
3108
3109 * mi/mi-main.c (free_splay_tree): Remove.
3110 (list_available_thread_groups): Use splay_tree_up.
3111 * common/gdb_splay_tree.h: New file.
3112
0c478e2d
TT
31132017-10-09 Tom Tromey <tom@tromey.com>
3114
3115 * mi/mi-main.c (do_nothing): Remove.
3116 (list_available_thread_groups): Update.
3117
cbd2b4e3
PA
31182017-10-09 Pedro Alves <palves@redhat.com>
3119
3120 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
3121 reading registers when switching context.
3122
a181c0bf
JB
31232017-10-09 John Baldwin <jhb@FreeBSD.org>
3124
3125 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
3126 (fbsd_convert_siginfo): Likewise.
3127 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
3128
6e66f753
SM
31292017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
3130
3131 * configure.ac (try_guile_versions): Remove guile-2.2.
3132 * configure: Regenerate.
3133
890e9790
TT
31342017-10-09 Tom Tromey <tom@tromey.com>
3135
3136 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
3137 (COMPILE.pre): Use $(CXX).
3138
109483d9
PA
31392017-10-09 Pedro Alves <palves@redhat.com>
3140
3141 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
3142 Use bool.
3143 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
3144 * cp-support.h (cp_remove_params): Now returns a
3145 gdb::unique_xmalloc_ptr.
3146 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
3147 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
3148 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
3149 returning a gdb::unique_xmalloc_ptr.
3150 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
3151 * stack.c (find_frame_funname): Adjust to cp_remove_params
3152 returning a gdb::unique_xmalloc_ptr.
3153
791afaa2
TT
31542017-10-08 Tom Tromey <tom@tromey.com>
3155
3156 * dwarf2read.c (dwarf2_get_dwz_file): Use
3157 gdb::unique_xmalloc_ptr.
3158 (find_slot_in_mapped_hash): Likewise.
3159 (dwarf2_physname): Likewise.
3160 (create_dwo_unit_in_dwp_v1): Use std::string.
3161 (create_dwo_unit_in_dwp_v2): Likewise.
3162 (lookup_dwo_cutu): Likewise.
3163 (inherit_abstract_dies): Use std::vector.
3164 (read_array_type): Likewise.
3165 (dwarf_decode_macros): Remove unused declaration.
3166 (unsigned_int_compar): Remove.
3167 (dwarf2_build_psymtabs_hard): Use scoped_restore.
3168 (psymtabs_addrmap_cleanup): Remove.
3169
30a9c02f
TT
31702017-10-08 Tom Tromey <tom@tromey.com>
3171
3172 * frame-unwind.c (frame_unwind_try_unwinder): Update.
3173 * frame.h (frame_cleanup_after_sniffer): Declare.
3174 (frame_prepare_for_sniffer): Return void.
3175 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
3176 type of argument.
3177 (frame_prepare_for_sniffer): Return void.
3178
757325a3
TT
31792017-10-08 Tom Tromey <tom@tromey.com>
3180
3181 * utils.h (make_cleanup_value_free): Remove.
3182 * utils.c (do_value_free, struct cleanup): Remove.
3183 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
3184 Use gdb_value_up.
3185 * value.h (struct value_deleter): New.
3186 (gdb_value_up): New typedef.
3187
b9c04fb2
TT
31882017-10-08 Tom Tromey <tom@tromey.com>
3189
3190 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
3191 (make_cleanup_free_search_symbols): Remove.
3192 (search_symbols): Return std::vector.
3193 (symbol_search::compare_search_syms): Now member of
3194 symbol_search. Change arguments.
3195 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
3196 (symtab_symbol_info, rbreak_command): Update.
3197 * symtab.h (struct symbol_search) <next>: Remove.
3198 Add constructors.
3199 (symbol_search::operator<): New function.
3200 (symbol_search::operator==): New function.
3201 (search_symbols): Remove std::vector.
3202 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
3203 (symbol_search::compare_search_syms): Declare.
3204
0d28b0a5
YQ
32052017-10-06 Yao Qi <yao.qi@linaro.org>
3206
3207 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
3208 arch/aarch64-insn.o.
3209 Remove one rule.
3210 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
3211
71917808
YQ
32122017-10-06 Yao Qi <yao.qi@linaro.org>
3213
3214 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
3215 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
3216 arch/arm-linux.o respectively.
3217 * configure.tgt: Likewise.
3218
2081b2b2
YQ
32192017-10-06 Yao Qi <yao.qi@linaro.org>
3220
3221 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
3222 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
3223
a1b85d28
PA
32242017-10-06 Pedro Alves <palves@redhat.com>
3225
3226 * windows-nat.c: Include <algorithm>.
3227
d97987e2
YQ
32282017-10-06 Yao Qi <yao.qi@linaro.org>
3229
3230 * configure.tgt (i386_tobjs): New variable.
3231 (amd64_tobjs): New variable.
3232 Set $cpu_obs and $os_obs.
3233
f38307f5
YQ
32342017-10-06 Yao Qi <yao.qi@linaro.org>
3235
3236 * Makefile.in (CONFIG_SRC_SUBDIR): New.
3237 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
3238 (clean): Remove object files and dependency files.
3239 (distclean): Remove the directory.
3240 * configure.ac: Invoke AC_CONFIG_COMMANDS.
3241 * configure: Re-generated.
3242 * configure.tgt: Replace amd64.o with arch/amd64.o.
3243
2f924de6
JM
32442017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
3245
3246 PR build/22188
3247 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
3248 and SETEND.
3249
2fd9d7ca
PA
32502017-10-05 Pedro Alves <palves@redhat.com>
3251
3252 * linux-nat.c (linux_child_follow_fork): When following the parent
3253 and detaching the child, consult the parent thread's architecture
3254 instead of the child's.
3255
d13b8493
UW
32562017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3257
3258 * ax.h: Do not include "doublest.h".
3259 (union agent_val): Remove.
3260
3b4b2f16
UW
32612017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3262
3263 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
3264 (decimal_to_string): Return std::string object.
3265 (decimal_from_string): Accept std::string object. Return bool.
3266 (decimal_from_integral, decimal_from_doublest): Remove.
3267 (decimal_from_longest): Add prototype.
3268 (decimal_from_ulongest): Likewise.
3269 (decimal_to_longest): Likewise.
3270 (decimal_from_doublest): Likewise.
3271 * dfp.c: Do not include "gdbtypes.h" or "value.h".
3272 (MAX_DECIMAL_STRING): Move here.
3273 (decimal_to_string): Return std::string object.
3274 (decimal_from_string): Accept std::string object. Return bool.
3275 (decimal_from_integral): Remove, replace by ...
3276 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
3277 (decimal_to_longest): New function.
3278 (decimal_from_floating): Remove, replace by ...
3279 (decimal_from_doublest): ... this new function.
3280 (decimal_to_doublest): Update to new decimal_to_string interface.
3281
3282 * value.c (unpack_long): Use decimal_to_longest.
3283 * valops.c (value_cast): Use decimal_from_doublest instead of
3284 decimal_from_floating. Use decimal_from_[u]longest isntead of
3285 decimal_from_integral.
3286 * valarith.c (value_args_as_decimal): Likewise.
3287 * valprint.c (print_decimal_floating): Update to new
3288 decimal_to_string interface.
3289 * printcmd.c (printf_decfloat): Likewise.
3290 * c-exp.y (parse_number): Update to new decimal_from_string interface.
3291
1841ee5d
UW
32922017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3293
3294 * doublest.h: Do not include "floatformat.h". Remove stale comments.
3295 * gdbtypes.c: Include "floatformat.h".
3296 * value.c: Likewise.
3297 * m68k-tdep.c: Likewise.
3298
3299 * findvar.c: Do not include "floatformat.h".
3300 * amd64-darwin-tdep.c: Likewise.
3301 * arm-linux-tdep.c: Likewise.
3302 * i386-darwin-tdep.c: Likewise.
3303 * i387-tdep.c: Likewise.
3304 * m68k-linux-tdep.c: Likewise.
3305 * mep-tdep.c: Likewise.
3306 * mips-tdep.c: Likewise.
3307 * nios2-tdep.c: Likewise.
3308 * s390-linux-tdep.c: Likewise.
3309 * sparc-obsd-tdep.c: Likewise.
3310 * sparc-tdep.c: Likewise.
3311 * sparc64-tdep.c: Likewise.
3312 * spu-tdep.c: Likewise.
3313 * tic6x-tdep.c: Likewise.
3314 * tilegx-tdep.c: Likewise.
3315 * vax-tdep.c: Likewise.
3316 * xstormy16-tdep.c: Likewise.
3317 * xtensa-tdep.c: Likewise.
3318
3319 * top.c: Do not include "doublest.h".
3320 * aarch64-tdep.c: Likewise.
3321 * alpha-tdep.c: Likewise.
3322 * arm-linux-tdep.c: Likewise.
3323 * m68k-linux-tdep.c: Likewise.
3324 * tilegx-tdep.c: Likewise.
3325 * xstormy16-tdep.c: Likewise.
3326
a80a6471
JB
33272017-10-05 John Baldwin <jhb@FreeBSD.org>
3328
3329 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
3330 (mipsn32_fbsd_sigframe): Define.
3331 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
3332 for FreeBSD/mipsn32.
3333
12c4bd7f
JB
33342017-10-05 John Baldwin <jhb@FreeBSD.org>
3335
3336 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
3337 AT_HWCAP.
3338
c91933e9
TG
33392017-10-05 Tristan Gingold <tgingold@free.fr>
3340
3341 * MAINTAINERS (Misc): Update my email address.
3342
5cd63fda
PA
33432017-10-04 Pedro Alves <palves@redhat.com>
3344
3345 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
3346 it instead of target_gdbarch.
3347 (get_remote_state, get_remote_packet_size): Adjust
3348 get_remote_arch_state calls, passing down target_gdbarch
3349 explicitly.
3350 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
3351 'gdbarch' and use it instead of target_gdbarch.
3352 (get_memory_packet_size): Adjust get_remote_arch_state calls,
3353 passing down target_gdbarch explicitly.
3354 (struct stop_reply) <arch>: New field.
3355 (remote_parse_stop_reply): Use the stopped thread's architecture,
3356 not the current inferior's. Save the architecture in the
3357 stop_reply.
3358 (process_stop_reply): Use the stop reply's architecture.
3359 (process_g_packet, remote_fetch_registers)
3360 (remote_prepare_to_store, store_registers_using_G)
3361 (remote_store_registers): Adjust get_remote_arch_state calls,
3362 using the regcache's architecture.
3363 (remote_get_trace_status): Adjust get_remote_arch_state calls,
3364 passing down target_gdbarch explicitly.
3365 * spu-multiarch.c (spu_thread_architecture): Defer to the target
3366 beneath instead of calling target_gdbarch.
3367 * target.c (default_thread_architecture): Use the specified
3368 inferior's architecture, instead of the current inferior's
3369 architecture (via target_gdbarch).
3370
ed4227b7
PA
33712017-10-04 Pedro Alves <palves@redhat.com>
3372
3373 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
3374 case.
3375 (regcache_print): Handle !target_has_registers here instead.
3376
55b11ddf
PA
33772017-10-04 Pedro Alves <palves@redhat.com>
3378
3379 * frame.c (create_test_frame): Delete.
3380 * frame.h (create_test_frame): Delete.
3381 * gdbarch-selftests.c: Include gdbthread.h and target.h.
3382 (class regcache_test): Delete.
3383 (test_target_has_registers, test_target_has_stack)
3384 (test_target_has_memory, test_target_prepare_to_store)
3385 (test_target_store_registers): New functions.
3386 (test_target_ops): New class.
3387 (register_to_value_test): Error out if there's already a
3388 process_stratum (or higher) target pushed. Create a fuller mock
3389 environment, with mock target_ops, inferior, address space, thread
3390 and inferior_ptid.
3391 * progspace.c (struct address_space): Move to ...
3392 * progspace.h (struct address_space): ... here.
3393 * regcache.h (regcache::~regcache, regcache::raw_write)
3394 [GDB_SELF_TEST]: No longer virtual.
3395
4c71c105
SM
33962017-10-04 Simon Marchi <simon.marchi@ericsson.com>
3397
3398 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
3399
73dcd72d
PA
34002017-10-04 Pedro Alves <palves@redhat.com>
3401
3402 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
3403 out of 'between TRY and CATCH'.
3404
44704526
PA
34052017-10-04 Pedro Alves <palves@redhat.com>
3406
3407 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
3408 * common/common-exceptions.h (TRY): Open an outermost scope.
3409 Expand intro comment.
3410 (CATCH): Reindent.
3411 (END_CATCH): Close the outermost scope.
3412 * completer.c (complete_line_internal): Add missing END_CATCH.
3413
bc3b087d
SDJ
34142017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3415
3416 * NEWS (Changes since GDB 8.0): Add entry about new
3417 'set-cwd-on-gdbserver' feature.
3418 (New remote packets): Add entry for QSetWorkingDir.
3419 * common/common-inferior.h (set_inferior_cwd): New prototype.
3420 * infcmd.c (set_inferior_cwd): Remove "static".
3421 (show_cwd_command): Expand text to include remote debugging.
3422 * remote.c: Add PACKET_QSetWorkingDir.
3423 (remote_protocol_features) <QSetWorkingDir>: New entry for
3424 PACKET_QSetWorkingDir.
3425 (extended_remote_set_inferior_cwd): New function.
3426 (extended_remote_create_inferior): Call
3427 "extended_remote_set_inferior_cwd".
3428 (_initialize_remote): Call "add_packet_config_cmd" for
3429 QSetWorkingDir.
3430
d092c5a2
SDJ
34312017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3432
3433 * NEWS (New commands): Mention "set/show cwd".
3434 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
3435 "cd" command's help text.
3436 * common/common-inferior.h (get_inferior_cwd): New prototype.
3437 * infcmd.c (inferior_cwd_scratch): New global variable.
3438 (set_inferior_cwd): New function.
3439 (get_inferior_cwd): Likewise.
3440 (set_cwd_command): Likewise.
3441 (show_cwd_command): Likewise.
3442 (_initialize_infcmd): Add "set/show cwd" commands.
3443 * inferior.h (class inferior) <cwd>: New field.
3444 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
3445 (fork_inferior): Change inferior's cwd before its execution.
3446 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
3447 to CreateProcess.
3448
7da0a886
SDJ
34492017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3450
3451 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
3452 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
3453 (COMMON_OBS): Add gdb_tilde_expand.o.
3454 * common/gdb_tilde_expand.c: New file.
3455 * common/gdb_tilde_expand.h: Likewise.
3456
db8dd160
MR
34572017-10-03 Maciej W. Rozycki <macro@imgtec.com>
3458
3459 * gdbarch.sh (objfile): Remove duplicate declaration.
3460 * gdbarch.h: Regenerate.
3461
f8bfbf22
TT
34622017-10-03 Tom Tromey <tom@tromey.com>
3463
3464 * utils.c (internal_vproblem): Use string_vprintf.
3465
5178ed48
TT
34662017-10-03 Tom Tromey <tom@tromey.com>
3467
3468 * printcmd.c (info_symbol_command): Use std::string.
3469
8cff8730
TT
34702017-10-03 Tom Tromey <tom@tromey.com>
3471
3472 * top.c (gdb_safe_append_history): Use std::string.
3473
895b8f30
TT
34742017-10-03 Tom Tromey <tom@tromey.com>
3475
3476 * event-top.c (stdin_event_handler): Update.
3477 * main.c (captured_main_1): Update.
3478 * top.h (make_delete_ui_cleanup): Remove.
3479 (struct ui): Add constructor and destructor.
3480 (new_ui, delete_ui): Remove.
3481 * top.c (make_delete_ui_cleanup): Remove.
3482 (new_ui_command): Use std::unique_ptr.
3483 (delete_ui_cleanup): Remove.
3484 (ui::ui): Rename from new_ui. Update.
3485 (free_ui): Remove.
3486 (ui::~ui): Rename from delete_ui. Update.
3487
0efef640
TT
34882017-10-03 Tom Tromey <tom@tromey.com>
3489
3490 * symfile.c (load_progress): Use gdb::byte_vector.
3491
245ad7d3
TT
34922017-10-03 Tom Tromey <tom@tromey.com>
3493
3494 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
3495 declaration.
3496 * printcmd.c (x_command): Remove unused declaration.
3497 * symfile.c (symbol_file_command): Remove unused declaration.
3498
e05550d7
TT
34992017-10-03 Tom Tromey <tom@tromey.com>
3500
3501 * utils.c (internal_vproblem): Use std::string.
3502 (defaulted_query): Likewise.
3503
b95de2b7
TT
35042017-10-03 Tom Tromey <tom@tromey.com>
3505
3506 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
3507 * top.c (execute_command_to_string): Update.
3508 * utils.c (make_cleanup_restore_page_info): Remove.
3509 (do_restore_page_info_cleanup): Remove.
3510 (set_batch_flag_and_restore_page_info):
3511 New.
3512 (make_cleanup_restore_page_info): Remove.
3513 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
3514 (~set_batch_flag_and_restore_page_info): New
3515 (make_cleanup_restore_uinteger): Remove.
3516 (make_cleanup_restore_integer): Remove.
3517 (struct restore_integer_closure): Remove.
3518 (restore_integer): Remove.
3519 * utils.h (struct set_batch_flag_and_restore_page_info): New
3520 class.
3521 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
3522 (make_cleanup_restore_page_info): Remove.
3523 (make_cleanup_restore_uinteger) Remove.
3524 (make_cleanup_restore_integer) Remove.
3525
07036511
TT
35262017-10-03 Tom Tromey <tom@tromey.com>
3527
3528 * record-full.h (record_full_gdb_operation_disable_set): Return
3529 scoped_restore_tmpl<int>.
3530 * infrun.c (adjust_pc_after_break): Update.
3531 (handle_signal_stop): Update.
3532 * record-full.c (record_full_gdb_operation_disable_set): Return
3533 scoped_restore_tmpl<int>.
3534 (record_full_wait_1, record_full_insert_breakpoint)
3535 (record_full_remove_breakpoint, record_full_save)
3536 (record_full_goto_insn): Update.
3537
45320ffa
TT
35382017-10-02 Tom Tromey <tom@tromey.com>
3539
3540 PR rust/22236:
3541 * rust-lang.c (rust_val_print_str): New function.
3542 (val_print_struct): Call it.
3543 (rust_subscript): Preserve name of slice type.
3544
b3e3859b
TT
35452017-10-02 Tom Tromey <tom@tromey.com>
3546
3547 * rust-lang.c (rust_subscript): Handle slices in
3548 EVAL_AVOID_SIDE_EFFECTS case.
3549
01af5e0d
TT
35502017-10-02 Tom Tromey <tom@tromey.com>
3551
3552 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
3553
888e3ddb
TT
35542017-10-02 Tom Tromey <tom@tromey.com>
3555
3556 * rust-lang.h (rust_slice_type): Add "extern".
3557
cc536b21
PA
35582017-10-02 Tom Tromey <tom@tromey.com>
3559 Pedro Alves <palves@redhat.com>
3560
3561 * ada-lang.h (ada_exc_info::operator<): Make const.
3562 (ada_exc_info::operator==): Make const.
3563 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
3564 Make const.
3565
386c8614
TT
35662017-09-29 Tom Tromey <tom@tromey.com>
3567
3568 * target.c (read_whatever_is_readable): Change type of "result".
3569 Update.
3570 (free_memory_read_result_vector): Remove.
3571 (read_memory_robust): Change return type. Update.
3572 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
3573 bin2hex, std::string.
3574 * target.h (memory_read_result_s): Remove typedef.
3575 (free_memory_read_result_vector): Remove.
3576 (read_memory_robust): Return std::vector.
3577
789c4b5e
TT
35782017-09-29 Tom Tromey <tom@tromey.com>
3579
3580 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
3581
ab816a27
TT
35822017-09-29 Tom Tromey <tom@tromey.com>
3583
3584 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
3585 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
3586 operator< and operator==.
3587 (ada_exceptions_list): Return a std::vector.
3588 * ada-lang.c (ada_exc_info::operator<): Rename from
3589 compare_ada_exception_info.
3590 (ada_exc_info::operator==): New.
3591 (sort_remove_dups_ada_exceptions_list): Change type of
3592 "exceptions".
3593 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
3594 (ada_add_global_exceptions): Likewise.
3595 (ada_exceptions_list_1): Return a std::vector.
3596 (ada_exceptions_list): Likewise.
3597
52f9abe4
TT
35982017-09-29 Tom Tromey <tom@tromey.com>
3599
3600 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
3601 'std::set *'.
3602 (print_one_inferior): Update.
3603 (free_vector_of_ints): Remove.
3604 (list_available_thread_groups): Change "ids" to std::set.
3605 (mi_cmd_list_thread_groups): Update.
3606 (struct collect_cores_data) <core>: Now a std::set.
3607 (collect_cores): Update.
3608 (unique): Remove.
3609 (print_one_inferior): Update.
3610
dcd5ddcc
TT
36112017-09-29 Tom Tromey <tom@tromey.com>
3612
3613 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
3614 (mi_execute_async_cli_command): Likewise.
3615 (mi_cmd_trace_frame_collected): Use field_fmt.
3616
45d288cc
TT
36172017-09-29 Tom Tromey <tom@tromey.com>
3618
3619 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
3620 gdb::byte_vector.
3621
6afe2f4a
TT
36222017-09-29 Tom Tromey <tom@tromey.com>
3623
3624 * mi/mi-parse.c (mi_parse): Remove unused declaration.
3625
9813429a
TT
36262017-09-29 Tom Tromey <tom@tromey.com>
3627
3628 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
3629
2d6960b4
TT
36302017-09-29 Tom Tromey <tom@tromey.com>
3631
3632 * varobj.h (varobj_gen_name): Return std::string.
3633 * varobj.c (varobj_gen_name): Return std::string.
3634 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
3635 (mi_cmd_var_delete): Don't copy "name".
3636
784c453a
TT
36372017-09-29 Tom Tromey <tom@tromey.com>
3638
3639 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
3640 (mi_cmd_break_insert_1): Update.
3641
a9bc57b9
TT
36422017-09-29 Tom Tromey <tom@tromey.com>
3643
3644 * target.h (make_scoped_defer_target_commit_resume): Update.
3645 * target.c (make_scoped_defer_target_commit_resume): Rename from
3646 make_cleanup_defer_target_commit_resume. Return a
3647 scoped_restore.
3648 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
3649
9754d8c4
TT
36502017-09-29 Tom Tromey <tom@tromey.com>
3651
3652 * main.c (captured_main_1): Remove unused declaration.
3653 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
3654
99ef965c
TT
36552017-09-29 Tom Tromey <tom@tromey.com>
3656
3657 * symtab.c (search_symbols): Remove unused outer cleanup.
3658 (make_source_files_completion_list): Remove unused declaration.
3659
42518ba7
TT
36602017-09-29 Tom Tromey <tom@tromey.com>
3661
3662 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
3663
726b2169
TT
36642017-09-29 Tom Tromey <tom@tromey.com>
3665
3666 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
3667 gdb::byte_vector.
3668
55b06432
TT
36692017-09-29 Tom Tromey <tom@tromey.com>
3670
3671 * complaints.c (vcomplaint): Use std::string.
3672
8abcee91
TT
36732017-09-29 Tom Tromey <tom@tromey.com>
3674
3675 * tracepoint.c (trace_variable_command): Use std::string.
3676 (encode_actions_1): Remove unused declarations.
3677 (create_tsv_from_upload): Use std::string.
3678
6ad94bc7
TT
36792017-09-29 Tom Tromey <tom@tromey.com>
3680
3681 * cp-support.c (gdb_demangle): Use std::string.
3682
2003f3d8
TT
36832017-09-29 Tom Tromey <tom@tromey.com>
3684
3685 * stack.c (parse_frame_specification): Use std::string
3686 (info_frame_command): Use gdb::unique_xmalloc_ptr.
3687
8f8accb5
TT
36882017-09-29 Tom Tromey <tom@tromey.com>
3689
3690 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
3691
200aa7b1
TT
36922017-09-29 Tom Tromey <tom@tromey.com>
3693
3694 * utils.c (vfprintf_maybe_filtered): Use std::string.
3695 (vfprintf_unfiltered): Likewise.
3696
606aae8a
TT
36972017-09-29 Tom Tromey <tom@tromey.com>
3698
3699 * event-top.c (top_level_prompt): Return std::string.
3700 (display_gdb_prompt): Update.
3701
bd413795
TT
37022017-09-29 Tom Tromey <tom@tromey.com>
3703
3704 * unittests/common-utils-selftests.c (format): New function.
3705 (string_vprintf_tests): New function.
3706 (_initialize_common_utils_selftests): Register new tests.
3707 * common/common-utils.c (string_vprintf): New function.
3708 * common/common-utils.h (string_vprintf): Declare.
3709
256642e8
PA
37102017-09-29 Pedro Alves <palves@redhat.com>
3711
3712 * common/rsp-low.c (unpack_varlen_hex): Constify.
3713 * common/rsp-low.h (unpack_varlen_hex): Constify.
3714 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3715 Constify.
3716 * remote.c (remote_set_permissions, read_ptid)
3717 (remote_current_thread, remote_get_threads_with_qthreadinfo)
3718 (remote_static_tracepoint_marker_at)
3719 (remote_static_tracepoint_markers_by_strid)
3720 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
3721 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
3722 (parse_tracepoint_definition, parse_tsv_definition)
3723 (parse_static_tracepoint_marker_definition): Constify.
3724 * tracepoint.h (parse_static_tracepoint_marker_definition)
3725 (parse_trace_status, parse_tracepoint_status)
3726 (parse_tracepoint_definition, parse_tsv_definition): Constify.
3727
b6bb3468
PA
37282017-09-29 Pedro Alves <palves@redhat.com>
3729
3730 * remote.c (target_buf, target_buf_size): Delete.
3731 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
3732 Use the connection's packet buffer instead.
3733 All callers adjusted.
3734 (_initialize_remote): Remove references to target_buf and
3735 target_buf_size.
3736
b2f8eb7a
PA
37372017-09-28 Pedro Alves <palves@redhat.com>
3738
3739 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3740 unittests/common-utils-selftests.c.
3741 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
3742 (COMMON_OBS): Remove utils-selftests.o.
3743 * utils-selftests.c: Move to ...
3744 * unittests/common-utils-selftests.c: ... here and rename self
3745 test to "string_printf".
3746
08302ed2
DE
37472017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
3748
3749 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
3750 having NULL cus or tus.
3751
96a5a1d3
UW
37522017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3753
3754 * arm-tdep.c: (convert_from_extended): Remove.
3755 (convert_to_extended): Likewise.
3756 (arm_extract_return_value): Use convert_typed_floating.
3757 (arm_store_return_value): Likewise.
3758
3759 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3760 * sh-tdep.c: Do not include "floatformat.h".
3761 (sh_littlebyte_bigword_type): New function.
3762 (sh_register_convert_to_virtual): Use convert_typed_floating.
3763 (sh_register_convert_to_raw): Likewise.
3764 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3765 (sh64_littlebyte_bigword_type): New function.
3766 (sh64_extract_return_value): Use convert_typed_floating.
3767 (sh64_register_convert_to_virtual): Likewise.
3768 (sh64_register_convert_to_raw): Likewise.
3769
0db7851f
UW
37702017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3771
3772 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
3773 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
3774
3775 * gdbtypes.h (union type_specific): Make field floatformat hold
3776 just a single struct floatformat, not an array.
3777 (floatformat_from_type): Move here.
3778 * gdbtypes.c (floatformat_from_type): Move here. Update to
3779 changed TYPE_FLOATFORMAT definition.
3780 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
3781 (recursive_dump_type): Likewise.
3782 (init_float_type): Install correct floatformat for byte order.
3783 (arch_float_type): Likewise.
3784
77b7c781
UW
37852017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3786
3787 * gdbtypes.c (init_type): Change incoming argument from
3788 length-in-bytes to length-in-bits. Assert length is a
3789 multiple of TARGET_CHAR_BITS.
3790 (arch_type, arch_flags_type): Likewise.
3791 (init_integer_type): Update call to init_type.
3792 (init_character_type): Likewise.
3793 (init_boolean_type): Likewise.
3794 (init_float_type): Likewise.
3795 (init_decfloat_type): Likewise.
3796 (init_complex_type): Likewise.
3797 (init_pointer_type): Likewise.
3798 (objfile_type): Likewise.
3799 (arch_integer_type): Update call to arch_type.
3800 (arch_character_type): Likewise.
3801 (arch_boolean_type): Likewise.
3802 (arch_float_type): Likewise.
3803 (arch_decfloat_type): Likewise.
3804 (arch_complex_type): Likewise.
3805 (arch_pointer_type): Likewise.
3806 (gdbtypes_post_init): Likewise.
3807
3808 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
3809 (read_base_type): Likewise.
3810 * mdebugread.c (basic_type): Likewise.
3811 * stabsread.c (dbx_init_float_type): Likewise.
3812 (rs6000_builtin_type): Likewise.
3813 (read_range_type): Likewise. Also, fix call to init_integer_type
3814 with erroneous length argument.
3815
3816 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
3817 * d-lang.c (build_d_types): Likewise.
3818 * f-lang.c (build_fortran_types): Likewise.
3819 * go-lang.c (build_go_types): Likewise.
3820 * opencl-lang.c (build_opencl_types): Likewise.
3821 * jit.c (finalize_symtab): Likewise.
3822 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3823 (build_std_type_info_type): Likewise.
3824 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
3825 update call to arch_flags_type.
3826
3827 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
3828 arch_type.
3829 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
3830 * windows-tdep.c (windows_get_tlb_type): Likewise.
3831
3832 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
3833 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
3834 * m32c-tdep.c (make_types): Likewise.
3835 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3836 (rl78_psw_type): Update call to arch_flags_type.
3837 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
3838 * rx-tdep.c (rx_psw_type): Likewise.
3839 (rx_fpsw_type): Likewise.
3840 * sparc-tdep.c (sparc_psr_type): Likewise.
3841 (sparc_fsr_type): Likewise.
3842 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
3843 (sparc64_ccr_type): Likewise.
3844 (sparc64_fsr_type): Likewise.
3845 (sparc64_fprs_type): Likewise.
3846
f21b4d5c
TT
38472017-09-27 Tom Tromey <tom@tromey.com>
3848
3849 * findcmd.c (find_command): Constify.
3850
643c2ffa
TT
38512017-09-27 Tom Tromey <tom@tromey.com>
3852
3853 * ada-tasks.c (task_command_1, task_command): Constify.
3854
510e5e56
TT
38552017-09-27 Tom Tromey <tom@tromey.com>
3856
3857 * symtab.c (maintenance_print_symbol_cache)
3858 (maintenance_flush_symbol_cache)
3859 (maintenance_print_symbol_cache_statistics): Constify.
3860
e503b191
TT
38612017-09-27 Tom Tromey <tom@tromey.com>
3862
3863 * inferior.c (detach_inferior_command, kill_inferior_command)
3864 (inferior_command): Constify.
3865
4e001312
TT
38662017-09-27 Tom Tromey <tom@tromey.com>
3867
3868 * regcache.c (regcache_print, maintenance_print_registers)
3869 (maintenance_print_raw_registers)
3870 (maintenance_print_cooked_registers)
3871 (maintenance_print_register_groups)
3872 (maintenance_print_remote_registers): Constify.
3873
77763700
TT
38742017-09-27 Tom Tromey <tom@tromey.com>
3875
3876 * printcmd.c (map_display_numbers, undisplay_command)
3877 (enable_disable_display_command, enable_display_command)
3878 (disable_display_command): Constify.
3879
4495129a
TT
38802017-09-27 Tom Tromey <tom@tromey.com>
3881
3882 * breakpoint.h (delete_command): Don't declare.
3883 * breakpoint.c (delete_command, enable_once_command)
3884 (enable_count_command, enable_delete_command, breakpoint_1)
3885 (maintenance_info_breakpoints, stopin_command, stopat_command)
3886 (delete_command, delete_trace_command, save_breakpoints)
3887 (save_breakpoints_command, save_tracepoints_command): Constify.
3888
3088cf40
TT
38892017-09-27 Tom Tromey <tom@tromey.com>
3890
3891 * macrocmd.c (macro_expand_command, macro_expand_once_command)
3892 (skip_ws, extract_identifier, macro_define_command)
3893 (macro_undef_command, macro_list_command): Constify.
3894
69f476a3
TT
38952017-09-27 Tom Tromey <tom@tromey.com>
3896
3897 * infcmd.c (environment_info, set_environment_command)
3898 (unset_environment_command, path_info, info_proc_cmd_1)
3899 (info_proc_cmd_mappings, info_proc_cmd_stat)
3900 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
3901 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
3902
c4a3e68e
TT
39032017-09-27 Tom Tromey <tom@tromey.com>
3904
3905 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
3906 Constify.
3907
c9d31bd6
TT
39082017-09-27 Tom Tromey <tom@tromey.com>
3909
3910 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
3911
1f3f85eb
TT
39122017-09-27 Tom Tromey <tom@tromey.com>
3913
3914 * demangle.c (demangle_command): Constify.
3915
9c504b5d
TT
39162017-09-27 Tom Tromey <tom@tromey.com>
3917
3918 * progspace.c (maintenance_info_program_spaces_command):
3919 Constify.
3920
6663cf91
TT
39212017-09-27 Tom Tromey <tom@tromey.com>
3922
3923 * compile/compile.c (check_raw_argument, compile_file_command)
3924 (compile_code_command, compile_print_command): Constify.
3925
34e5fa26
TT
39262017-09-27 Tom Tromey <tom@tromey.com>
3927
3928 * reggroups.c (maintenance_print_reggroups): Constify.
3929
8384c356
TT
39302017-09-27 Tom Tromey <tom@tromey.com>
3931
3932 * dwarf2read.c (save_gdb_index_command): Constify.
3933
884beb0c
TT
39342017-09-27 Tom Tromey <tom@tromey.com>
3935
3936 * stap-probe.c (info_probes_stap_command): Constify.
3937
e0b2930c
TT
39382017-09-27 Tom Tromey <tom@tromey.com>
3939
3940 * fork-child.c (unset_exec_wrapper_command): Constify.
3941
f938677d
TT
39422017-09-27 Tom Tromey <tom@tromey.com>
3943
3944 * btrace.c (get_uint, get_context_size, no_chunk)
3945 (maint_btrace_packet_history_cmd)
3946 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3947 (maint_info_btrace_cmd): Constify.
3948
8949cb87
TT
39492017-09-27 Tom Tromey <tom@tromey.com>
3950
3951 * reverse.c (delete_bookmark_command): Constify.
3952
ac88e2de
TT
39532017-09-27 Tom Tromey <tom@tromey.com>
3954
3955 * remote.c (set_memory_packet_size)
3956 (set_memory_write_packet_size, show_memory_write_packet_size)
3957 (set_memory_read_packet_size, show_memory_read_packet_size)
3958 (compare_sections_command, packet_command, remote_put_command)
3959 (remote_get_command, remote_delete_command): Constify.
3960
bd4c9dfe
TT
39612017-09-27 Tom Tromey <tom@tromey.com>
3962
3963 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
3964 (set_mipsfpu_double_command, set_mipsfpu_none_command)
3965 (set_mipsfpu_auto_command): Constify.
3966
5e93d4c6
TT
39672017-09-27 Tom Tromey <tom@tromey.com>
3968
3969 * cli/cli-cmds.h (cd_command): Constify.
3970 * cli/cli-cmds.c (cd_command): Constify.
3971
fc41a75b
TT
39722017-09-27 Tom Tromey <tom@tromey.com>
3973
3974 * thread.c (thread_name_command, thread_find_command): Constify.
3975
67810076
TT
39762017-09-27 Tom Tromey <tom@tromey.com>
3977
3978 * probe.c (enable_probes_command, disable_probes_command):
3979 Constify.
3980
1d8b34a7
TT
39812017-09-27 Tom Tromey <tom@tromey.com>
3982
3983 * symfile.c (symbol_file_command): Constify.
3984 * gdbcore.h (deprecated_file_changed_hook): Constify.
3985 * exec.c (deprecated_file_changed_hook, exec_file_command)
3986 (file_command): Constify.
3987 * defs.h (symbol_file_command): Constify.
3988
442019e1
TT
39892017-09-27 Tom Tromey <tom@tromey.com>
3990
3991 * remote-fileio.c (set_system_call_allowed)
3992 (show_system_call_allowed): Constify.
3993
2983f7cb
TT
39942017-09-27 Tom Tromey <tom@tromey.com>
3995
3996 * tracepoint.c (delete_trace_variable_command)
3997 (tfind_end_command, tfind_start_command, tfind_pc_command)
3998 (tfind_tracepoint_command, tfind_line_command)
3999 (tfind_range_command, tfind_outside_command): Constify.
4000
4fd41b24
TT
40012017-09-27 Tom Tromey <tom@tromey.com>
4002
4003 * ax-gdb.c (maint_agent_printf_command, agent_command)
4004 (agent_eval_command): Constify.
4005
f2fc3015
TT
40062017-09-27 Tom Tromey <tom@tromey.com>
4007
4008 * tracepoint.c (info_scope_command): Constify.
4009 * python/python.c (gdbpy_decode_line): Constify.
4010 * python/py-breakpoint.c (bppy_init): Constify.
4011 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
4012 * location.h: (new_linespec_location)
4013 (string_to_event_location_basic, string_to_event_location):
4014 Constify.
4015 * location.c (new_linespec_location)
4016 (string_to_event_location_basic, string_to_event_location):
4017 Constify.
4018 * linespec.h (decode_line_with_current_source)
4019 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
4020 * linespec.c (linespec_lex_to_end)
4021 (decode_line_with_current_source)
4022 (decode_line_with_last_displayed): Constify.
4023 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
4024 Constify.
4025 * cli/cli-cmds.c (edit_command, list_command): Constify.
4026 * breakpoint.h (until_break_command, watch_command_wrapper)
4027 (awatch_command_wrapper, rwatch_command_wrapper)
4028 (init_ada_exception_breakpoint): Constify.
4029 * breakpoint.c (break_command_1, dprintf_command)
4030 (break_range_command, watch_command_wrapper)
4031 (rwatch_command_wrapper, awatch_command_wrapper)
4032 (until_break_command, init_ada_exception_breakpoint)
4033 (strace_marker_create_sals_from_location, trace_command)
4034 (ftrace_command, strace_command, struct tracepoint): Constify.
4035 * ax-gdb.c (agent_command_1): Constify.
4036 * ada-lang.c (ada_exception_sal): Constify.
4037
8c2f95f4
TT
40382017-09-27 Tom Tromey <tom@tromey.com>
4039
4040 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
4041 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
4042 (get_context_size, no_chunk, get_insn_history_modifiers)
4043 (cmd_record_insn_history, get_call_history_modifiers)
4044 (cmd_record_call_history): Constify.
4045
a0d65762
TT
40462017-09-27 Tom Tromey <tom@tromey.com>
4047
4048 * source.c (show_substitute_path_command)
4049 (unset_substitute_path_command, set_substitute_path_command):
4050 Constify.
4051
58971144
TT
40522017-09-27 Tom Tromey <tom@tromey.com>
4053
4054 * typeprint.c (maintenance_print_type): Constify.
4055 * maint.c (maintenance_dump_me, maintenance_demangle)
4056 (maintenance_time_display, maintenance_info_sections)
4057 (maintenance_print_statistics, maintenance_deprecate)
4058 (maintenance_undeprecate): Constify.
4059 (maintenance_do_deprecate): Constify. Use std::string.
4060 (maintenance_selftest): Constify.
4061 * gdbtypes.h (maintenance_print_type): Constify.
4062
c482f52c
TT
40632017-09-27 Tom Tromey <tom@tromey.com>
4064
4065 * hppa-tdep.c (unwind_command): Constify.
4066
e100df1a
TT
40672017-09-27 Tom Tromey <tom@tromey.com>
4068
4069 * target-descriptions.c (unset_tdesc_filename_cmd)
4070 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
4071 Constify.
4072
31d56ade
TT
40732017-09-27 Tom Tromey <tom@tromey.com>
4074
4075 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
4076
b961da0b
TT
40772017-09-27 Tom Tromey <tom@tromey.com>
4078
4079 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
4080
e2d8ae16
TT
40812017-09-27 Tom Tromey <tom@tromey.com>
4082
4083 * tui/tui-regs.c (tui_reg_command): Constify.
4084
863779b0
TT
40852017-09-27 Tom Tromey <tom@tromey.com>
4086
4087 * skip.c (skip_file_command, skip_function_command)
4088 (skip_enable_command, skip_disable_command, skip_delete_command):
4089 Constify.
4090
cdb34d4a
TT
40912017-09-27 Tom Tromey <tom@tromey.com>
4092
4093 * record-btrace.c (cmd_record_btrace_bts_start)
4094 (cmd_record_btrace_pt_start): Constify.
4095
e99c83e7
TT
40962017-09-27 Tom Tromey <tom@tromey.com>
4097
4098 * symmisc.c (maintenance_print_symbols)
4099 (maintenance_print_msymbols, maintenance_print_objfiles)
4100 (maintenance_info_symtabs, maintenance_check_symtabs)
4101 (maintenance_expand_symtabs, maintenance_info_line_tables):
4102 Constify.
4103
32faf971
TT
41042017-09-27 Tom Tromey <tom@tromey.com>
4105
4106 * top.c (new_ui_command): Constify.
4107
2cf311eb
TT
41082017-09-27 Tom Tromey <tom@tromey.com>
4109
4110 * symfile.c (add_symbol_file_command)
4111 (remove_symbol_file_command, list_overlays_command)
4112 (map_overlay_command, unmap_overlay_command)
4113 (overlay_auto_command, overlay_manual_command)
4114 (overlay_off_command, overlay_load_command): Constify.
4115
e6738699
TT
41162017-09-27 Tom Tromey <tom@tromey.com>
4117
4118 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4119 (info_spu_mailbox_command, info_spu_dma_command)
4120 (info_spu_proxydma_command): Constify.
4121
aa360cd5
TT
41222017-09-27 Tom Tromey <tom@tromey.com>
4123
4124 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
4125
898241a5
TT
41262017-09-27 Tom Tromey <tom@tromey.com>
4127
4128 * cli/cli-script.c (user_defined_command): Constify.
4129
2d0ac106
TT
41302017-09-27 Tom Tromey <tom@tromey.com>
4131
4132 * cli/cli-dump.c (dump_memory_command, dump_value_command)
4133 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
4134 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
4135 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
4136 (dump_binary_value, append_binary_memory, append_binary_value):
4137 Constify.
4138 (struct dump_context) <func>: Constify.
4139 (add_dump_command): Update.
4140
dede02ce
TT
41412017-09-27 Tom Tromey <tom@tromey.com>
4142
4143 * cli/cli-cmds.c (show_version, show_configuration)
4144 (source_command, show_user): Constify.
4145
d3cb6b99
TT
41462017-09-27 Tom Tromey <tom@tromey.com>
4147
4148 * target.c (maintenance_print_target_stack): Constify.
4149
1970a12f
TT
41502017-09-27 Tom Tromey <tom@tromey.com>
4151
4152 * interps.c (interpreter_exec_cmd): Constify.
4153
41243651
TT
41542017-09-27 Tom Tromey <tom@tromey.com>
4155
4156 * record-full.c (cmd_record_full_restore): Constify.
4157
4465d9db
TT
41582017-09-27 Tom Tromey <tom@tromey.com>
4159
4160 * memattr.c (enable_mem_command, disable_mem_command)
4161 (delete_mem_command): Constify.
4162
ad25e423
TT
41632017-09-27 Tom Tromey <tom@tromey.com>
4164
4165 * value.c (show_convenience): Constify.
4166
d64097b1
TT
41672017-09-27 Tom Tromey <tom@tromey.com>
4168
4169 * gdbcore.h (core_file_command): Update.
4170 * corefile.c (core_file_command): Constify.
4171
4d4589ef
TT
41722017-09-27 Tom Tromey <tom@tromey.com>
4173
4174 * user-regs.c (maintenance_print_user_registers): Constify.
4175
32a7bf17
TT
41762017-09-27 Tom Tromey <tom@tromey.com>
4177
4178 * cp-namespace.c (maintenance_cplus_namespace): Constify.
4179
4a475551
TT
41802017-09-27 Tom Tromey <tom@tromey.com>
4181
4182 * cp-support.c (first_component_command): Constify.
4183
990b9f9f
TT
41842017-09-27 Tom Tromey <tom@tromey.com>
4185
4186 * psymtab.c (maintenance_print_psymbols)
4187 (maintenance_info_psymtabs, maintenance_check_psymtabs):
4188 Constify.
4189
c281872e
TT
41902017-09-27 Tom Tromey <tom@tromey.com>
4191
4192 * windows-tdep.c (display_tib): Constify.
4193
5b64bf74
TT
41942017-09-27 Tom Tromey <tom@tromey.com>
4195
4196 * linux-fork.c (delete_checkpoint_command)
4197 (detach_checkpoint_command): Constify.
4198
4ada038f
TT
41992017-09-27 Tom Tromey <tom@tromey.com>
4200
4201 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
4202
57f5a81b
TT
42032017-09-27 Tom Tromey <tom@tromey.com>
4204
4205 * arc-tdep.c (dump_arc_instruction_command): Constify.
4206
b0a8e6c4
TT
42072017-09-27 Tom Tromey <tom@tromey.com>
4208
4209 * valprint.c (set_radix, show_radix): Constify.
4210
8d97dc1c
TT
42112017-09-27 Tom Tromey <tom@tromey.com>
4212
4213 * dtrace-probe.c (info_probes_dtrace_command): Constify.
4214
eb7c454d
TT
42152017-09-27 Tom Tromey <tom@tromey.com>
4216
4217 * command.h (not_just_help_class_command): Update.
4218 * cli/cli-decode.h (not_just_help_class_command): Update.
4219 * cli/cli-decode.c (not_just_help_class_command): Constify.
4220
e4e33335
TT
42212017-09-27 Tom Tromey <tom@tromey.com>
4222
4223 * gdb_bfd.c (maintenance_info_bfds): Constify.
4224
0450cc4c
TT
42252017-09-27 Tom Tromey <tom@tromey.com>
4226
4227 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
4228 overloads.
4229 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
4230 (do_const_cfunc): New function.
4231 (cmd_cfunc_eq): New overload.
4232 (cli_user_command_p): Check do_const_cfunc.
4233 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
4234 const_cfunc.
4235 * command.h (add_cmd): Add const overload and no-function
4236 overload.
4237 (set_cmd_cfunc): Add const overload.
4238 (cmd_const_cfunc_ftype): Declare.
4239 (cmd_cfunc_eq): Add const overload.
4240 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
4241 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
4242 overload.
4243
a9bbfbd8
TT
42442017-09-27 Tom Tromey <tom@tromey.com>
4245
4246 * macroexp.c (get_next_token_for_substitution): New function.
4247 (substitute_args): Call it. Check for __VA_OPT__.
4248
5230b05a
WT
42492017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
4250 Pedro Alves <palves@redhat.com>
4251
4252 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
4253 producer_is_icc_lt_14.
4254 (producer_is_icc_lt_14): New function.
4255 (check_producer): Add code for checking version of ICC.
4256 (producer_is_icc): Move to producer.c.
4257 (read_structure_type): Restrict ICC workaround to ICC<14.
4258 * producer.c: Include selftest.h.
4259 (producer_is_icc, producer_parsing_tests, _initialize_producer):
4260 New functions.
4261 * producer.h (producer_is_icc): New declaration.
4262
b32b108a
WT
42632017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
4264
4265 * Makefile.in (SFILES): Add producer.c.
4266 (COMMON_OBS): Add producer.o
4267 * amd64-tdep.c (producer.h): Add new include.
4268 * dwarf2read.c (producer.h): Add new include.
4269 * producer.c: New file.
4270 * producer.h: New file.
4271 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
4272 producer.c.
4273 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
4274 producer.h.
4275
5007d765
MK
42762017-09-26 Matthias Klose <doko@ubuntu.com>
4277
4278 * configure.ac: Search ncursesw before ncurses.
4279 Check ncursesw/ncurses.h before ncurses/ncurses.h.
4280 * gdb_curses.h: Include <ncursesw/ncurses.h>
4281 * config.in, configure: Regenerate.
4282
281c4447
RO
42832017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4284
4285 PR gdb/22185
4286 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
4287 obsolete.
4288 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
4289 Remove i386sol2 support.
4290 * configure.nat <i386sol2>: Remove.
4291 <sol2-64>: Fold into ...
4292 <sol2>: ... this.
4293 Move common settings to default section.
4294 Add sol-thread.o.
4295 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
4296 x86_64-*-solaris2.1[0-9]*>: Rename to ...
4297 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
4298 <i[34567]86-*-solaris*>: Remove.
4299 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
4300
4301 * configure.ac: Remove wctype in libw check.
4302 (_MSE_INT_H): Don't define on Solaris 7-9.
4303 <solaris*>: Remove libthread_db.so.1 check.
4304 * configure: Regenerate.
4305 * config.in: Regenerate.
4306
4307 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
4308 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
4309 (gdb_ps_size_t): Remove.
4310 Use base types in users.
4311 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
4312
4313 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
4314
39b06c20
RO
43152017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4316
4317 PR build/22206
4318 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
4319 (adi_is_addr_mapped): Likewise.
4320 (PSR_ICC): Don't redefine.
4321 (PSR_IMPL): Likewise.
4322
6c3e20f1
TT
43232017-09-25 Tom Tromey <tom@tromey.com>
4324
4325 * regcache.c (regcache::dump): Use string_printf.
4326
b292235f
TT
43272017-09-25 Tom Tromey <tom@tromey.com>
4328
4329 * regcache.c (class regcache_invalidator): New.
4330 (struct register_to_invalidate): Remove.
4331 (make_cleanup_regcache_invalidate): Remove.
4332 (regcache::raw_write): Use regcache_invalidator.
4333
9ac86b52
TT
43342017-09-25 Tom Tromey <tom@tromey.com>
4335
4336 * spu-tdep.c (spu2ppu_sniffer): Update.
4337 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
4338 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
4339 Remove.
4340 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
4341 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
4342 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
4343 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
4344 (frame_pop): Update.
4345
c0e383c6
TT
43462017-09-25 Tom Tromey <tom@tromey.com>
4347
4348 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
4349 * regcache.h (regcache_xfree): Don't declare.
4350 * regcache.c (regcache_xfree): Remove.
4351 (do_regcache_xfree): Use delete.
4352 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
4353 * linux-fork.c (free_fork): Use delete.
4354 (fork_save_infrun_state): Likewise.
4355 * jit.c (jit_dealloc_cache): Use delete.
4356 * infrun.c (discard_infcall_suspend_state): Use delete.
4357
791199cc
TT
43582017-09-25 Tom Tromey <tom@tromey.com>
4359
4360 * regcache.h (regcache_xmalloc): Don't declare.
4361 (regcache_raw_set_cached_value): Update comment.
4362 * regcache.c (regcache_xmalloc): Remove.
4363 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
4364 * jit.c (jit_frame_sniffer): Use new.
4365 * frame.c (frame_save_as_regcache): Use new.
4366
289e23aa
AA
43672017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4368
4369 * NEWS: Advertise support for guarded-storage registers on IBM z.
4370
1b63490c
AA
43712017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4372
4373 * s390-linux-nat.c (have_regset_gs): New static variable.
4374 (s390_linux_fetch_inferior_registers): Handle guarded-storage
4375 control block and guarded-storage broadcast control regsets.
4376 (s390_read_description): Detect whether the target has
4377 guarded-storage support, return appropriate tdesc.
4378 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
4379 (features/s390x-gs-linux64.c): Likewise.
4380 (struct gdbarch_tdep) <have_gs>: New field.
4381 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
4382 (s390_gsbc_regset): New variables.
4383 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
4384 and s390_gsbc_regset, if applicable.
4385 (s390_core_read_description): Check whether core file was from a
4386 target with guarded-storage support; include appropriate regsets.
4387 (s390_gdbarch_init): Add registers for guarded-storage support.
4388 (_initialize_s390_tdep): Initialize new target descriptions that
4389 include registers for guarded-storage support.
4390 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
4391 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
4392 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
4393 (S390_NUM_REGS): Adjust macro definition.
4394 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
4395 (tdesc_s390x_gs_linux64): New declarations.
4396
96235dc1
AA
43972017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4398
4399 * features/s390-gs-linux64.xml: New file.
4400 * features/s390-gs.xml: New file.
4401 * features/s390-gsbc.xml: New file.
4402 * features/s390x-gs-linux64.xml: New file.
4403 * features/Makefile (WHICH): Add s390-gs-linux64 and
4404 s390x-gs-linux64.
4405 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
4406 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
4407 * features/s390-gs-linux64.c: New generated file.
4408 * features/s390x-gs-linux64.c: New file.
4409 * regformats/s390-gs-linux64.dat: New file.
4410 * regformats/s390x-gs-linux64.dat: New file.
4411
b4a7c699
TT
44122017-09-23 Tom Tromey <tom@tromey.com>
4413
4414 * defs.h (make_cleanup_override_quit_handler): Don't declare.
4415
c2f97536
TT
44162017-09-22 Tom Tromey <tom@tromey.com>
4417
4418 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
4419 type to scoped_restore_tmpl.
4420 <scoped_input_handler>: Initialize m_quit_handler directly.
4421
43573013
SDJ
44222017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
4423
4424 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
4425 (cd_command): Likewise. Free "current_directory" before
4426 assigning to it.
4427 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
4428 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
4429 * top.c (gdb_dirbuf): Remove global declaration.
4430 * top.h (gdb_dirbuf): Likewise.
4431
6ec2e0f5
SDJ
44322017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
4433
4434 * gnulib/aclocal.m4: Regenerate.
4435 * gnulib/config.in: Regenerate.
4436 * gnulib/configure: Regenerate.
4437 * gnulib/import/Makefile.am: Regenerate.
4438 * gnulib/import/Makefile.in: Regenerate.
4439 * gnulib/import/assure.h: New file.
4440 * gnulib/import/at-func.c: Likewise
4441 * gnulib/import/chdir-long.c: New file.
4442 * gnulib/import/chdir-long.h: New file.
4443 * gnulib/import/cloexec.c: New file.
4444 * gnulib/import/cloexec.h: New file.
4445 * gnulib/import/close.c: New file.
4446 * gnulib/import/closedir.c: New file.
4447 * gnulib/import/dirent-private.h: New file.
4448 * gnulib/import/dup-safer.c: New file.
4449 * gnulib/import/dup.c: New file.
4450 * gnulib/import/dup2.c: New file.
4451 * gnulib/import/error.c: New file.
4452 * gnulib/import/error.h: New file.
4453 * gnulib/import/exitfail.c: New file.
4454 * gnulib/import/exitfail.h: New file.
4455 * gnulib/import/fchdir.c: New file.
4456 * gnulib/import/fcntl.c: New file.
4457 * gnulib/import/fcntl.in.h: New file.
4458 * gnulib/import/fd-hook.c: New file.
4459 * gnulib/import/fd-hook.h: New file.
4460 * gnulib/import/fd-safer.c: New file.
4461 * gnulib/import/fdopendir.c: New file.
4462 * gnulib/import/filename.h: New file.
4463 * gnulib/import/filenamecat-lgpl.c: New file.
4464 * gnulib/import/filenamecat.h: New file.
4465 * gnulib/import/fstat.c: New file.
4466 * gnulib/import/fstatat.c: New file.
4467 * gnulib/import/getcwd-lgpl.c: New file.
4468 * gnulib/import/getcwd.c: New file.
4469 * gnulib/import/getdtablesize.c: New file.
4470 * gnulib/import/getlogin_r.c: New file.
4471 * gnulib/import/getprogname.c: New file.
4472 * gnulib/import/getprogname.h: New file.
4473 * gnulib/import/gettext.h: New file.
4474 * gnulib/import/glob-libc.h: New file.
4475 * gnulib/import/glob.c: New file.
4476 * gnulib/import/glob.in.h: New file.
4477 * gnulib/import/intprops.h: New file.
4478 * gnulib/import/m4/chdir-long.m4: New file.
4479 * gnulib/import/m4/close.m4: New file.
4480 * gnulib/import/m4/closedir.m4: New file.
4481 * gnulib/import/m4/d-ino.m4: New file.
4482 * gnulib/import/m4/d-type.m4: New file.
4483 * gnulib/import/m4/dup.m4: New file.
4484 * gnulib/import/m4/dup2.m4: New file.
4485 * gnulib/import/m4/error.m4: New file.
4486 * gnulib/import/m4/fchdir.m4: New file.
4487 * gnulib/import/m4/fcntl.m4: New file.
4488 * gnulib/import/m4/fcntl_h.m4: New file.
4489 * gnulib/import/m4/fdopendir.m4: New file.
4490 * gnulib/import/m4/filenamecat.m4: New file.
4491 * gnulib/import/m4/fstat.m4: New file.
4492 * gnulib/import/m4/fstatat.m4: New file.
4493 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
4494 * gnulib/import/m4/getcwd-path-max.m4: New file.
4495 * gnulib/import/m4/getcwd.m4: New file.
4496 * gnulib/import/m4/getdtablesize.m4: New file.
4497 * gnulib/import/m4/getlogin_r.m4: New file.
4498 * gnulib/import/m4/getprogname.m4: New file.
4499 * gnulib/import/m4/glob.m4: New file.
4500 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4501 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4502 * gnulib/import/m4/mempcpy.m4: New file.
4503 * gnulib/import/m4/memrchr.m4: New file.
4504 * gnulib/import/m4/mode_t.m4: New file.
4505 * gnulib/import/m4/msvc-inval.m4: New file.
4506 * gnulib/import/m4/msvc-nothrow.m4: New file.
4507 * gnulib/import/m4/open.m4: New file.
4508 * gnulib/import/m4/openat.m4: New file.
4509 * gnulib/import/m4/opendir.m4: New file.
4510 * gnulib/import/m4/readdir.m4: New file.
4511 * gnulib/import/m4/realloc.m4: New file.
4512 * gnulib/import/m4/rewinddir.m4: New file.
4513 * gnulib/import/m4/save-cwd.m4: New file.
4514 * gnulib/import/m4/strdup.m4: New file.
4515 * gnulib/import/m4/strerror.m4: New file.
4516 * gnulib/import/m4/unistd-safer.m4: New file.
4517 * gnulib/import/mempcpy.c: New file.
4518 * gnulib/import/memrchr.c: New file.
4519 * gnulib/import/msvc-inval.c: New file.
4520 * gnulib/import/msvc-inval.h: New file.
4521 * gnulib/import/msvc-nothrow.c: New file.
4522 * gnulib/import/msvc-nothrow.h: New file.
4523 * gnulib/import/open.c: New file.
4524 * gnulib/import/openat-die.c: New file.
4525 * gnulib/import/openat-priv.h: New file.
4526 * gnulib/import/openat-proc.c: New file.
4527 * gnulib/import/openat.c: New file.
4528 * gnulib/import/openat.h: New file.
4529 * gnulib/import/opendir.c: New file.
4530 * gnulib/import/pipe-safer.c: New file.
4531 * gnulib/import/readdir.c: New file.
4532 * gnulib/import/realloc.c: New file.
4533 * gnulib/import/rewinddir.c: New file.
4534 * gnulib/import/save-cwd.c: New file.
4535 * gnulib/import/save-cwd.h: New file.
4536 * gnulib/import/strdup.c: New file.
4537 * gnulib/import/strerror-override.c: New file.
4538 * gnulib/import/strerror-override.h: New file.
4539 * gnulib/import/strerror.c: New file.
4540 * gnulib/import/unistd--.h: New file.
4541 * gnulib/import/unistd-safer.h: New file.
4542 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
4543 "getcwd" and "glob".
4544 * ser-tcp.c: Undefine "close" before redefining it.
4545
432ae719
SM
45462017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4547
4548 * guile/scm-value.c (gdbscm_value_address): Initialize address,
4549 get rid of res_val.
4550
4fa7574e
RO
45512017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4552
4553 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
4554 <sol2,sparc>: Likewise.
4555 <sol2-64,i386>: Likewise.
4556
4557 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
4558 -Wdeprecated-declarations on *-*-solaris*.
4559 * configure: Regenerate.
4560
4561 * procfs.c: Include "nat/inferior.h".
4562 (procfs_info_proc): Fix typo.
4563
f6327dcb
KB
45642017-09-21 Kevin Buettner <kevinb@redhat.com>
4565
4566 * remote.c (vector): Include.
4567 (struct private_thread_info): Add field, thread_handle.
4568 (free_private_thread_info): Deallocate storage associated with
4569 thread handle.
4570 (get_private_info_thread): Initialize `thread_handle' field.
4571 (struct thread_item): Add field, thread_handle.
4572 (clear_threads_listing_context): Deallocate storage associated
4573 with thread handle.
4574 (start_thread): Add support for "handle" attribute.
4575 (thread_attributes): Add "handle".
4576 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
4577 field.
4578 (remote_update_thread_list): Update thread_handle.
4579 (remote_thread_handle_to_thread_info): New function.
4580 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
4581
fbbe5337
KB
45822017-09-21 Kevin Buettner <kevinb@redhat.com>
4583
4584 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
4585 function.
4586 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
4587 * python/python-internal.h (thread_object_type): Declare.
4588
e04ee09e
KB
45892017-09-21 Kevin Buettner <kevinb@redhat.com>
4590
4591 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
4592 (target_thread_handle_to_thread_info): Declare.
4593 * target.c (target_thread_handle_to_thread_info): New function.
4594 * target-delegates.c: Regenerate.
4595 * gdbthread.h (find_thread_by_handle): Declare.
4596 * thread.c (find_thread_by_handle): New function.
4597 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
4598 function.
4599 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
4600
1e5b66ed
SM
46012017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4602
4603 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
4604
ebe48ba0
SM
46052017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4606
4607 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
4608
0a0bf5dc
YQ
46092017-09-21 Yao Qi <yao.qi@linaro.org>
4610
4611 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
4612 to gdb_target_obs.
4613
d1b0a7bf
TT
46142017-09-20 Tom Tromey <tom@tromey.com>
4615
4616 * breakpoint.c (struct counted_command_line): Remove.
4617 (breakpoint_commands): Update.
4618 (alloc_counted_command_line, incref_counted_command_line)
4619 (decref_counted_command_line, do_cleanup_counted_command_line)
4620 (make_cleanup_decref_counted_command_line): Remove.
4621 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
4622 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
4623 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
4624 (save_breakpoints): Update.
4625 * breakpoint.h (counted_command_line): Now a typedef to
4626 shared_ptr.
4627 (struct breakpoint) <commands>: Now a counted_command_line.
4628 (struct bpstats) <command>: Likewise.
4629
48649e1b
TT
46302017-09-20 Tom Tromey <tom@tromey.com>
4631
4632 * breakpoint.c (struct commands_info, do_map_commands_command):
4633 Remove.
4634 (commands_command_1): Update.
4635 (iterate_over_related_breakpoints): Take a function_view.
4636 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
4637 (delete_command): Update.
4638 (map_breakpoint_numbers): Take a function_view.
4639 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
4640 (disable_command): Update.
4641 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
4642 (enable_command): Update.
4643 (struct disp_data, do_enable_breakpoint_disp)
4644 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
4645 (do_map_enable_delete_breakpoint): Remove.
4646 (enable_once_command, enable_count_command, enable_delete_command)
4647 (delete_trace_variable_command): Update.
4648
04afa70c
TT
46492017-09-20 Tom Tromey <tom@tromey.com>
4650
4651 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
4652 (bpstat_clear): Use delete.
4653 (bpstats): New constructors.
4654 (bpstat_copy, bpstat_stop_status): Use new.
4655 (dprintf_after_condition_true): Update.
4656 * breakpoint.h (bpstats::bpstats): Add constructors.
4657 (bpstats::~bpstats): Add destructor.
4658
c83833f4
PA
46592017-09-20 Pedro Alves <palves@redhat.com>
4660
4661 * eval.c (make_params): Delete, refactored as ...
4662 (class fake_method): ... this new type's ctor.
4663 (fake_method::~fake_method): New.
4664 (evaluate_subexp_standard): Use 'fake_method'.
4665
223ffa71
TT
46662017-09-20 Tom Tromey <tom@tromey.com>
4667
4668 * windows-nat.c (get_windows_debug_event, windows_wait)
4669 (do_initial_windows_stuff, windows_attach): Update.
4670 * utils.c (vwarning, internal_vproblem): Update.
4671 (ui_unregister_input_event_handler_cleanup)
4672 (prepare_to_handle_input): Remove.
4673 (class scoped_input_handler): New.
4674 (defaulted_query, prompt_for_continue): Update.
4675 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4676 Update.
4677 * top.c (undo_terminal_modifications_before_exit): Update.
4678 * target/target.h (target_terminal_init, target_terminal_inferior)
4679 (target_terminal_ours): Don't declare.
4680 (class target_terminal): New.
4681 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
4682 (target_terminal_ours_for_output)
4683 (make_cleanup_restore_target_terminal): Don't declare.
4684 (target_terminal_info): Remove.
4685 * target.c (enum terminal_state, terminal_state): Remove.
4686 (target_terminal::terminal_state): Define.
4687 (target_terminal::init): Rename from target_terminal_init.
4688 (target_terminal::inferior): Rename from
4689 target_terminal_inferior.
4690 (target_terminal::ours): Rename from target_terminal_ours.
4691 (target_terminal::ours_for_output): Rename from
4692 target_terminal_ours_for_output.
4693 (target_terminal::info): New method.
4694 (cleanup_restore_target_terminal)
4695 (make_cleanup_restore_target_terminal): Remove.
4696 * solib.c (handle_solib_event): Update.
4697 * remote.c (remote_serial_quit_handler): Update.
4698 (remote_terminal_inferior, remote_wait_as): Update.
4699 * record-full.c (record_full_wait_1): Update.
4700 * nto-procfs.c (procfs_create_inferior): Update.
4701 * nat/fork-inferior.c (startup_inferior): Update.
4702 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
4703 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
4704 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
4705 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
4706 (mi_breakpoint_created, mi_breakpoint_deleted)
4707 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
4708 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
4709 (mi_user_selected_context_changed, report_initial_inferior):
4710 Update.
4711 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
4712 (linux_nat_terminal_inferior): Update.
4713 * infrun.c (follow_fork_inferior)
4714 (handle_vfork_child_exec_or_exit, do_target_resume)
4715 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
4716 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
4717 Update.
4718 * inflow.c (child_terminal_init, info_terminal_command): Update.
4719 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
4720 (attach_command): Update.
4721 * infcall.c (call_thread_fsm_should_stop): Update.
4722 * gnu-nat.c (gnu_attach): Update.
4723 * extension.c (struct active_ext_lang_state)
4724 (restore_active_ext_lang): Update.
4725 * exceptions.c (print_flush): Update.
4726 * event-top.c (async_enable_stdin, default_quit_handler): Update.
4727 (struct quit_handler_cleanup_data, restore_quit_handler)
4728 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
4729 Remove.
4730 * cp-support.c (gdb_demangle): Update.
4731 * breakpoint.c (update_inserted_breakpoint_locations)
4732 (insert_breakpoint_locations, handle_jit_event)
4733 (disable_breakpoints_in_unloaded_shlib): Update.
4734 * annotate.c (annotate_breakpoints_invalid)
4735 (annotate_frames_invalid): Update.
4736
013af3fc
TT
47372017-09-20 Tom Tromey <tom@tromey.com>
4738
4739 * main.c (catch_command_errors): Rename from
4740 catch_command_errors_const.
4741 (captured_main_1): Update.
4742
06871ae8
PA
47432017-09-20 Pedro Alves <palves@redhat.com>
4744
4745 * cli/cli-cmds.c (list_command): Use print_sal_location.
4746 (print_sal_location): New function.
4747 (ambiguous_line_spec): Use print_sal_location.
4748 * linespec.c (symbol_to_sal): Record the symbol in the sal.
4749 * symtab.c (find_function_start_sal): Likewise.
4750 * symtab.h (symtab_and_line::symbol): New field.
4751
e5f25bc5
PA
47522017-09-20 Pedro Alves <palves@redhat.com>
4753
4754 * linespec.c (minsym_found): Handle non-text minsyms.
4755 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
4756
1b7fa39e
WT
47572017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4758
4759 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
4760 backslash.
4761
37dd0825
WT
47622017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4763
4764 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
4765 vmovups instead vmovaps.
4766 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
4767
4e5a4f58
JB
47682017-09-19 John Baldwin <jhb@FreeBSD.org>
4769
4770 * NEWS (Changes since GDB 8.0): Add starti.
4771 * infcmd.c (enum run_break): New.
4772 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
4773 case.
4774 (run_command): Use enum run_how.
4775 (start_command): Likewise.
4776 (starti_command): New function.
4777 (RUN_ARGS_HELP): New macro.
4778 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
4779 commands. Add starti command.
4780
aa70c9f1
YQ
47812017-09-19 Yao Qi <yao.qi@linaro.org>
4782
4783 * Makefile.in (monitor.o): Remove the rule.
4784
d6541620
YQ
47852017-09-19 Yao Qi <yao.qi@linaro.org>
4786
4787 * annotate.h (struct annotate_arg_emitter): Use
4788 DISABLE_COPY_AND_ASSIGN.
4789 * common/refcounted-object.h (refcounted_object): Likewise.
4790 * completer.h (struct completion_result): Likewise.
4791 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
4792 * filename-seen-cache.h (filename_seen_cache): Likewise.
4793 * gdbcore.h (thread_section_name): Likewise.
4794 * gdb_regex.h (compiled_regex): Likewise.
4795 * gdbthread.h (scoped_restore_current_thread): Likewise.
4796 * inferior.h (scoped_restore_current_inferior): Likewise.
4797 * jit.c (jit_reader): Likewise.
4798 * linespec.h (struct linespec_result): Likewise.
4799 * mi/mi-parse.h (struct mi_parse): Likewise.
4800 * nat/fork-inferior.c (execv_argv): Likewise.
4801 * progspace.h (scoped_restore_current_program_space): Likewise.
4802 * python/python-internal.h (class gdbpy_enter): Likewise.
4803 * regcache.h (regcache): Likewise.
4804 * target-descriptions.c (struct tdesc_reg): Likewise.
4805 (struct tdesc_type): Likewise.
4806 (struct tdesc_feature): Likewise.
4807 * ui-out.h (ui_out_emit_type): Likewise.
4808
0615127c
SM
48092017-09-18 Simon Marchi <simon.marchi@ericsson.com>
4810
4811 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
4812 label abort_expression.
4813
5e187554
SM
48142017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4815
4816 * common/buffer.c (buffer_xml_printf): Adjust.
4817 * common/xml-utils.c (xml_escape_text): Change return type to
4818 std::string, update code accordingly.
4819 * common/xml-utils.h (xml_escape_text): Change return type to
4820 std::string.
4821 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
4822 * windows-tdep.c (windows_xfer_shared_library): Adjust.
4823 * unittests/xml-utils-selftests.c (test_xml_escape_text):
4824 Adjust.
4825
c3d7b541
SM
48262017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4827
4828 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
4829 (SUBDIR_UNITTESTS_OBS): Add new object file.
4830 * unittests/xml-utils-selftests.c: New file.
4831
1526853e
SM
48322017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4833
4834 * common/selftest.h (selftest): New struct/interface.
4835 (register_test): Add name parameter, add new overload.
4836 (run_tests): Add filter parameter.
4837 (for_each_selftest_ftype): New typedef.
4838 (for_each_selftest): New declaration.
4839 * common/selftest.c (tests): Change type to
4840 map<string, unique_ptr<selftest>>.
4841 (simple_selftest): New struct.
4842 (register_test): New function.
4843 (register_test): Add name parameter and use it.
4844 (run_tests): Add filter parameter and use it. Add prints.
4845 Adjust to vector -> map change.
4846 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
4847 registering selftests.
4848 * arm-tdep.c (_initialize_arm_tdep): Likewise.
4849 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
4850 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
4851 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
4852 * findvar.c (_initialize_findvar): Likewise.
4853 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
4854 * maint.c (maintenance_selftest): Update call to run_tests.
4855 (maintenance_info_selftests): New function.
4856 (_initialize_maint_cmds): Register "maintenance info selftests"
4857 command. Update "maintenance selftest" doc.
4858 * regcache.c (_initialize_regcache): Add names when registering
4859 selftests.
4860 * rust-exp.y (_initialize_rust_exp): Likewise.
4861 * selftest-arch.c (gdbarch_selftest): New struct.
4862 (gdbarch_tests): Remove.
4863 (register_test_foreach_arch): Add name parameter. Call
4864 register_test.
4865 (tests_with_arch): Remove, move most content to
4866 gdbarch_selftest::operator().
4867 (_initialize_selftests_foreach_arch): Remove.
4868 * selftest-arch.h (register_test_foreach_arch): Add name
4869 parameter.
4870 (run_tests_with_arch): New declaration.
4871 * utils-selftests.c (_initialize_utils_selftests): Add names
4872 when registering selftests.
4873 * utils.c (_initialize_utils): Likewise.
4874 * unittests/array-view-selftests.c
4875 (_initialize_array_view_selftests): Likewise.
4876 * unittests/environ-selftests.c (_initialize_environ_selftests):
4877 Likewise.
4878 * unittests/function-view-selftests.c
4879 (_initialize_function_view_selftests): Likewise.
4880 * unittests/offset-type-selftests.c
4881 (_initialize_offset_type_selftests): Likewise.
4882 * unittests/optional-selftests.c
4883 (_initialize_optional_selftests): Likewise.
4884 * unittests/scoped_restore-selftests.c
4885 (_initialize_scoped_restore_selftests): Likewise.
4886 * NEWS: Document "maintenance selftest" and "maint info
4887 selftests".
4888
5846367a
SM
48892017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4890
4891 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
4892 scoped_restore.
4893
bd77e8ff
SM
48942017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4895
4896 * mi/mi-main.c (mi_load_progress): Make uiout variable
4897 a unique_ptr.
4898
26a67918
PA
48992017-09-15 Pedro Alves <palves@redhat.com>
4900
4901 * compile/compile-c-types.c (convert_enum, convert_int)
4902 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
4903
3f8a7804
SM
49042017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4905
4906 * dwarf2read.c (copy_string): Remove.
4907 (parse_macro_definition): Replace copy_string with savestring.
4908
8d200706
YQ
49092017-09-15 Yao Qi <yao.qi@linaro.org>
4910
4911 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
4912 gdb_target_obs.
4913 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
4914 Likewise.
4915 (i[34567]86-*-linux*): Likewise.
4916
d185219d
SM
49172017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4918
4919 * dwarf2expr.h (dwarf_stack_value): Add constructor.
4920 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
4921 <stack>: Change type to std::vector.
4922 <stack_len, stack_allocated>: Remove.
4923 <grow_stack>: Remove.
4924 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4925 (dwarf_expr_context::~dwarf_expr_context): Remove.
4926 (dwarf_expr_context::grow_stack): Remove.
4927 (dwarf_expr_context::push): Adjust.
4928 (dwarf_expr_context::pop): Adjust.
4929 (dwarf_expr_context::fetch): Adjust.
4930 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
4931 (dwarf_expr_context::stack_empty_p): Adjust.
4932 (dwarf_expr_context::execute_stack_op): Adjust.
4933
eccd80d6
SM
49342017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4935
4936 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
4937 return type to bool.
4938 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
4939
69009882
SM
49402017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4941
4942 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
4943 Change type to bool.
4944 (dwarf_stack_value) <in_stack_memory>: Likewise.
4945 (dwarf_expr_context) <push_address>: Change parameter type to
4946 bool.
4947 <fetch_in_stack_memory>: Change return type to bool.
4948 <push>: Change parameter type to bool.
4949 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
4950 to bool.
4951 (dwarf_expr_context::push_address): Likewise.
4952 (dwarf_expr_context::fetch_in_stack_memory): Change return type
4953 to bool.
4954 (dwarf_expr_context::execute_stack_op): Adjust.
4955 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
4956
1e467161
SM
49572017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4958
4959 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
4960 (struct dwarf_expr_context) <n_pieces>: Remove.
4961 <pieces>: Change type to std::vector.
4962 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4963 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
4964 pieces.
4965 (dwarf_expr_context::add_piece): Adjust.
4966 * dwarf2loc.c (struct piece_closure): Initialize fields.
4967 <n_pieces>: Remove.
4968 <pieces>: Change type to std::vector.
4969 (allocate_piece_closure): Adjust, change parameter to
4970 std::vector rvalue and std::move it to piece_closure.
4971 (rw_pieced_value): Adjust.
4972 (check_pieced_synthetic_pointer): Adjust.
4973 (indirect_synthetic_pointer): Adjust.
4974 (coerce_pieced_ref): Adjust.
4975 (free_pieced_value_closure): Adjust. Use delete to free
4976 piece_closure.
4977 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
4978 to allocate_piece_closure.
4979 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
4980
0782db84
SM
49812017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4982
4983 * probe.h (probe_ops_cp): Remove typedef.
4984 (DEF_VEC_P (probe_ops_cp)): Remove.
4985 (all_probe_ops): Change type to std::vector.
4986 * probe.c (info_probes_for_ops): Adjust to vector change.
4987 (probe_linespec_to_ops): Likewise.
4988 (all_probe_ops): Change type to std::vector.
4989 (_initialize_probe): Adjust to vector change.
4990 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
4991 * elfread.c (elf_get_probes): Likewise.
4992 * stap-probe.c (_initialize_stap_probe): Likewise.
4993
1eac6bea
SM
49942017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4995
4996 * probe.h (struct bound_probe): Define constructors.
4997 * probe.c (bound_probe_s): Remove typedef.
4998 (DEF_VEC_O (bound_probe_s)): Remove VEC.
4999 (collect_probes): Change return type to std::vector, remove
5000 cleanup.
5001 (compare_probes): Return bool, change parameter type. Change
5002 semantic to "less than".
5003 (gen_ui_out_table_header_info): Change parameter to std::vector
5004 and update.
5005 (exists_probe_with_pops): Likewise.
5006 (info_probes_for_ops): Update to std::vector change.
5007 (enable_probes_command): Likewise.
5008 (disable_probes_command): Likewise.
5009
aaa63a31
SM
50102017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5011
5012 * probe.h (struct probe_ops) <get_probes>: Change parameter from
5013 vec to std::vector.
5014 * probe.c (parse_probes_in_pspace): Update.
5015 (find_probes_in_objfile): Update.
5016 (find_probe_by_pc): Update.
5017 (collect_probes): Update.
5018 (probe_any_get_probes): Update.
5019 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
5020 return type to reference to std::vector.
5021 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
5022 std::vector and update.
5023 (dtrace_process_dof): Likewise.
5024 (dtrace_get_probes): Likewise.
5025 * elfread.c (elf_get_probes): Change return type to std::vector,
5026 store an std::vector in bfd_data.
5027 (probe_key_free): Update to std::vector.
5028 * stap-probe.c (handle_stap_probe): Change parameter to
5029 std::vector and update.
5030 (stap_get_probes): Likewise.
5031 * symfile-debug.c (debug_sym_get_probes): Change return type to
5032 std::vector and update.
5033
cb85b21b
TT
50342017-09-11 Tom Tromey <tom@tromey.com>
5035
5036 * breakpoint.c (program_breakpoint_here_p): Update.
5037 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
5038 from make_show_memory_breakpoints_cleanup. Return a
5039 scoped_restore_tmpl<int>.
5040 (restore_show_memory_breakpoints): Remove.
5041 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
5042 * mem-break.c (memory_validate_breakpoint): Update.
5043 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
5044 (ia64_memory_remove_breakpoint): Update.
5045 (ia64_breakpoint_from_pc): Update.
5046 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
5047 from make_show_memory_breakpoints_cleanup.
5048
8fbc99ef
TT
50492017-09-11 Tom Tromey <tom@tromey.com>
5050
5051 * d-namespace.c (d_lookup_symbol): Use std::string.
5052 (find_symbol_in_baseclass): Likewise.
5053
50feb4bd
TT
50542017-09-11 Tom Tromey <tom@tromey.com>
5055
5056 * ctf.c (ctf_start): Use std::string.
5057
c6dc63a1
TT
50582017-09-11 Tom Tromey <tom@tromey.com>
5059
5060 * ada-lang.c (is_known_support_routine): Update.
5061 (ada_unhandled_exception_name_addr_from_raise): Update.
5062 * guile/scm-frame.c (gdbscm_frame_name): Update.
5063 * python/py-frame.c (frapy_name): Update.
5064 (frapy_function): Update.
5065 * stack.h (find_frame_funname): Update.
5066 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
5067 (print_frame): Update.
5068
d6b9b80f
TT
50692017-09-11 Tom Tromey <tom@tromey.com>
5070
5071 * findcmd.c (put_bits): Take a gdb::byte_vector.
5072 (parse_find_args): Return gdb::byte_vector. "args" now const.
5073 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
5074 cleanups.
5075 (find_command): Update.
5076
a9921622
TT
50772017-09-11 Tom Tromey <tom@tromey.com>
5078
5079 * cli/cli-script.c (class scoped_restore_hook_in): New.
5080 (clear_hook_in_cleanup): Remove.
5081 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
5082 scoped_restore_hook_in.
5083
be0d7abb
TT
50842017-09-11 Tom Tromey <tom@tromey.com>
5085
5086 * cli/cli-script.c (restore_interp): Remove.
5087 (read_command_lines): Use scoped_restore_interp.
5088 * interps.c (scoped_restore_interp::set_temp): Rename from
5089 interp_set_temp.
5090 * interps.h (class scoped_restore_interp): New.
5091 (interp_set_temp): Remove.
5092
00f675ff
TT
50932017-09-11 Tom Tromey <tom@tromey.com>
5094
5095 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
5096 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
5097 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
5098 scoped_restore.
5099 (mi_cmd_break_insert_1): Update.
5100 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
5101 scoped_restore.
5102
cb791d59
TT
51032017-09-11 Tom Tromey <tom@tromey.com>
5104
5105 * demangle.c (demangle_command): Update.
5106 * breakpoint.c (disable_command): Update.
5107 (enable_command): Update.
5108 (find_location_by_number): Make "number" const. Use
5109 get_number_trailer.
5110 * cli/cli-utils.c (extract_arg): Return std::string.
5111 * probe.c (parse_probe_linespec): Update. Change types.
5112 (collect_probes): Take string arguments.
5113 (parse_probe_linespec): Likewise.
5114 (info_probes_for_ops): Update.
5115 (enable_probes_command): Update.
5116 (disable_probes_command): Update.
5117 * break-catch-sig.c (catch_signal_split_args): Update.
5118 * mi/mi-parse.c (mi_parse): Update.
5119
2039bd9f
TT
51202017-09-11 Tom Tromey <tom@tromey.com>
5121
5122 * language.h (language_enum): Make argument const.
5123 * language.c (language_enum): Make argument const.
5124
f1735a53
TT
51252017-09-11 Tom Tromey <tom@tromey.com>
5126
5127 * common/common-utils.h (skip_to_space): Remove macro, redeclare
5128 as function.
5129 (skip_to_space): Rename from skip_to_space_const.
5130 * common/common-utils.c (skip_to_space): New function.
5131 (skip_to_space): Rename from skip_to_space_const.
5132 * cli/cli-utils.h (get_number): Rename from get_number_const.
5133 (extract_arg): Rename from extract_arg_const.
5134 * cli/cli-utils.c (get_number): Rename from get_number_const.
5135 (extract_arg): Rename from extract_arg_const.
5136 (number_or_range_parser::get_number): Use ::get_number.
5137 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
5138 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
5139 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
5140 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
5141 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
5142 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
5143 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
5144 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
5145
7d221d74
TT
51462017-09-11 Tom Tromey <tom@tromey.com>
5147
5148 * python/python.c (do_start_initialization): Use
5149 py-event-types.def to initialize types.
5150 Define all object type structures.
5151 * python/python-internal.h: Don't declare event initialization
5152 functions.
5153 * python/py-threadevent.c (thread_event_object_type): Don't
5154 define.
5155 * python/py-stopevent.c (stop_event_object_type): Don't define.
5156 * python/py-signalevent.c (signal_event_object_type): Don't
5157 declare or define.
5158 * python/py-newobjfileevent.c (new_objfile_event_object_type)
5159 (clear_objfiles_event_object_type): Don't declare or define.
5160 * python/py-infevents.c (inferior_call_pre_event_object_type)
5161 (inferior_call_post_event_object_type)
5162 (register_changed_event_object_type)
5163 (memory_changed_event_object_type): Don't declare or define.
5164 * python/py-inferior.c (new_thread_event_object_type)
5165 (new_inferior_event_object_type)
5166 (inferior_deleted_event_object_type): Don't declare or define.
5167 * python/py-exitedevent.c (exited_event_object_type): Don't
5168 declare or define.
5169 * python/py-evts.c (gdbpy_initialize_py_events): Use
5170 py-all-events.def.
5171 * python/py-events.h (thread_event_object_type): Don't declare.
5172 (events_object): Use py-all-events.def.
5173 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
5174 py-event-types.def.
5175 * python/py-event-types.def: New file.
5176 * python/py-continueevent.c (create_continue_event_object): Don't
5177 declare or define.
5178 * python/py-bpevent.c (breakpoint_event_object_type): Don't
5179 declare or define.
5180 * python/py-all-events.def: New file.
5181
35c61a1d
TT
51822017-09-11 Tom Tromey <tom@tromey.com>
5183
5184 * python/py-threadevent.c (create_thread_event_object): Return
5185 gdbpy_ref.
5186 * python/py-stopevent.h (create_stop_event_object)
5187 (create_breakpoint_event_object, create_signal_event_object):
5188 Update.
5189 * python/py-stopevent.c (create_stop_event_object): Return
5190 gdbpy_ref.
5191 (emit_stop_event): Update.
5192 * python/py-signalevent.c (create_signal_event_object): Return
5193 gdbpy_ref.
5194 * python/py-infevents.c (create_inferior_call_event_object):
5195 Update.
5196 * python/py-event.h (create_event_object)
5197 (create_thread_event_object): Update.
5198 * python/py-event.c (create_event_object): Return gdbpy_ref.
5199 * python/py-continueevent.c: Return gdbpy_ref.
5200 * python/py-bpevent.c (create_breakpoint_event_object): Return
5201 gdbpy_ref.
5202
7c96f8c1
TT
52032017-09-11 Tom Tromey <tom@tromey.com>
5204
5205 PR python/15622:
5206 * NEWS: Add entry.
5207 * python/python.c (do_start_initialization): Initialize new event
5208 types.
5209 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
5210 (gdbpy_initialize_inferior_deleted_event)
5211 (gdbpy_initialize_new_thread_event): Declare.
5212 * python/py-threadevent.c (create_thread_event_object): Add option
5213 "thread" parameter.
5214 * python/py-inferior.c (new_thread_event_object_type)
5215 (new_inferior_event_object_type)
5216 (inferior_deleted_event_object_type): Declare.
5217 (python_new_inferior, python_inferior_deleted): New functions.
5218 (add_thread_object): Emit new_thread event.
5219 (gdbpy_initialize_inferior): Attach new functions to corresponding
5220 observers.
5221 (new_thread, new_inferior, inferior_deleted): Define new event
5222 types.
5223 * python/py-evts.c (gdbpy_initialize_py_events): Add new
5224 registries.
5225 * python/py-events.h (events_object) <new_inferior,
5226 inferior_deleted, new_thread>: New fields.
5227 * python/py-event.h (create_thread_event_breakpoint): Add optional
5228 "thread" parameter.
5229
72542b8e
AB
52302017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
5231
5232 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
5233 check current_ui instead.
5234 (internal_vproblem): Likewise.
5235
0d64823e
SM
52362017-09-09 Simon Marchi <simon.marchi@ericsson.com>
5237
5238 * thread.c (print_thread_info_1): Remove unnecessary calls to
5239 uiout->is_mi_like_p.
5240
eb1e02fd
TT
52412017-09-09 Tom Tromey <tom@tromey.com>
5242
5243 * namespace.h (add_using_directive): Update.
5244 * namespace.c (add_using_directive): Change type of excludes to
5245 std::vector.
5246 * dwarf2read.c (read_import_statement): Use std::vector.
5247 (read_namespace): Update.
5248 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5249
0fc21fd8
TT
52502017-09-09 Tom Tromey <tom@tromey.com>
5251
5252 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
5253
49663d05
TT
52542017-09-09 Tom Tromey <tom@tromey.com>
5255
5256 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
5257
0b868b60
TT
52582017-09-09 Tom Tromey <tom@tromey.com>
5259
5260 * stack.c (func_command): Use gdb::def_vector.
5261
c0470d48
TT
52622017-09-09 Tom Tromey <tom@tromey.com>
5263
5264 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
5265 ui_out_emit_list, ui_out_emit_tuple.
5266 (mi_cmd_var_update): Likewise.
5267
ca5909c7
TT
52682017-09-09 Tom Tromey <tom@tromey.com>
5269
5270 * mi/mi-interp.c (mi_user_selected_context_changed): Use
5271 ui_out_redirect_pop.
5272 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
5273 ui_out_redirect_pop.
5274 * utils.c (do_ui_out_redirect_pop)
5275 (make_cleanup_ui_out_redirect_pop): Remove.
5276 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
5277 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
5278 * ui-out.h (ui_out_redirect_pop): New class.
5279
e6a2252a
TT
52802017-09-09 Tom Tromey <tom@tromey.com>
5281
5282 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
5283 (list_available_thread_groups, mi_cmd_list_thread_groups)
5284 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
5285 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
5286 Likewise.
5287
393702cd
TT
52882017-09-09 Tom Tromey <tom@tromey.com>
5289
5290 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5291 ui_out_emit_tuple.
5292
76f9c9cf
TT
52932017-09-09 Tom Tromey <tom@tromey.com>
5294
5295 * target.c (flash_erase_command): Use ui_out_emit_tuple.
5296 * stack.c (print_frame): Use ui_out_emit_tuple.
5297 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
5298 (info_spu_mailbox_command, info_spu_dma_command)
5299 (info_spu_proxydma_command): Likewise.
5300 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
5301 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
5302 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
5303 ui_out_emit_tuple.
5304 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
5305
dc9fe180
TT
53062017-09-09 Tom Tromey <tom@tromey.com>
5307
5308 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
5309 (class ui_out_emit_table): Update comment.
5310 * ui-out.c (do_cleanup_table_end)
5311 (make_cleanup_ui_out_table_begin_end): Remove.
5312 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
5313 (info_spu_dma_cmdlist): Likewise.
5314 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
5315 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
5316 ui_out_emit_table.
5317
f8cc3da6
TT
53182017-09-09 Tom Tromey <tom@tromey.com>
5319
5320 * thread.c (print_thread_info_1): Use ui_out_emit_table,
5321 ui_out_emit_list, gdb::optional.
5322
481695ed
JB
53232017-09-09 John Baldwin <jhb@FreeBSD.org>
5324
5325 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
5326 prototype.
5327 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
5328 prototype.
5329 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
5330 prototype.
5331 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
5332 * ada-exp.y: Remove _initialize_ada_exp prototype.
5333 * ada-lang.c: Remove _initialize_ada_language prototype.
5334 * ada-tasks.c: Remove _initialize_tasks prototype.
5335 * addrmap.c: Remove _initialize_addrmap prototype.
5336 * agent.c: Remove _initialize_agent prototype.
5337 * aix-thread.c: Remove _initialize_aix_thread prototype.
5338 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
5339 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
5340 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
5341 prototype.
5342 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
5343 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
5344 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
5345 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
5346 prototype.
5347 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
5348 prototype.
5349 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
5350 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
5351 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
5352 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
5353 prototype.
5354 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
5355 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
5356 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
5357 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
5358 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
5359 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
5360 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
5361 prototype.
5362 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
5363 prototype.
5364 * annotate.c: Remove _initialize_annotate prototype.
5365 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
5366 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
5367 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
5368 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
5369 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
5370 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
5371 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
5372 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
5373 prototype.
5374 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
5375 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
5376 * auto-load.c: Remove _initialize_auto_load prototype.
5377 * auxv.c: Remove _initialize_auxv prototype.
5378 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
5379 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
5380 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
5381 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
5382 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
5383 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
5384 prototype.
5385 * break-catch-throw.c: Remove _initialize_break_catch_throw
5386 prototype.
5387 * breakpoint.c: Remove _initialize_breakpoint prototype.
5388 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
5389 * btrace.c: Remove _initialize_btrace prototype.
5390 * charset.c: Remove _initialize_charset prototype.
5391 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
5392 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
5393 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
5394 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
5395 * cli/cli-script.c: Remove _initialize_cli_script prototype.
5396 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
5397 * coffread.c: Remove _initialize_coffread prototype.
5398 * compile/compile.c: Remove _initialize_compile prototype.
5399 * complaints.c: Remove _initialize_complaints prototype.
5400 * completer.c: Remove _initialize_completer prototype.
5401 * copying.awk: Remove _initialize_copying prototype.
5402 * copying.c: Regenerate.
5403 * core-regset.c: Remove _initialize_core_regset prototype.
5404 * corefile.c: Remove _initialize_core prototype.
5405 * corelow.c: Remove _initialize_corelow prototype.
5406 * cp-abi.c: Remove _initialize_cp_abi prototype.
5407 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
5408 * cp-support.c: Remove _initialize_cp_support prototype.
5409 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
5410 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
5411 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
5412 * ctf.c: Remove _initialize_ctf prototype.
5413 * d-lang.c: Remove _initialize_d_language prototype.
5414 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
5415 prototype.
5416 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
5417 * dbxread.c: Remove _initialize_dbxread prototype.
5418 * dcache.c: Remove _initialize_dcache prototype.
5419 * demangle.c: Remove _initialize_demangler prototype.
5420 * disasm-selftests.c: Remove _initialize_disasm_selftests
5421 prototype.
5422 * disasm.c: Remove _initialize_disasm prototype.
5423 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
5424 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
5425 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
5426 prototype.
5427 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
5428 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
5429 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
5430 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
5431 * elfread.c: Remove _initialize_elfread prototype.
5432 * exec.c: Remove _initialize_exec prototype.
5433 * extension.c: Remove _initialize_extension prototype.
5434 * f-lang.c: Remove _initialize_f_language prototype.
5435 * f-valprint.c: Remove _initialize_f_valprint prototype.
5436 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
5437 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
5438 * filesystem.c: Remove _initialize_filesystem prototype.
5439 * findcmd.c: Remove _initialize_mem_search prototype.
5440 * fork-child.c: Remove _initialize_fork_child prototype.
5441 * frame-base.c: Remove _initialize_frame_base prototype.
5442 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
5443 * frame.c: Remove _initialize_frame prototype.
5444 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
5445 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
5446 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
5447 * gcore.c: Remove _initialize_gcore prototype.
5448 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
5449 * gdbarch.c: Regenerate.
5450 * gdbarch.sh: Remove _initialize_gdbarch prototype.
5451 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
5452 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
5453 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
5454 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
5455 * go-lang.c: Remove _initialize_go_language prototype.
5456 * go32-nat.c: Remove _initialize_go32_nat prototype.
5457 * guile/guile.c: Remove _initialize_guile prototype.
5458 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
5459 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
5460 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
5461 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
5462 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
5463 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
5464 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
5465 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
5466 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
5467 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
5468 prototype.
5469 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
5470 prototype.
5471 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
5472 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
5473 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
5474 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
5475 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
5476 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
5477 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
5478 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
5479 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
5480 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
5481 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
5482 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
5483 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
5484 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
5485 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
5486 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
5487 prototype.
5488 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
5489 prototype.
5490 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
5491 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
5492 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
5493 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
5494 * infcall.c: Remove _initialize_infcall prototype.
5495 * infcmd.c: Remove _initialize_infcmd prototype.
5496 * inferior.c: Remove _initialize_inferiors prototype.
5497 * inflow.c: Remove _initialize_inflow prototype.
5498 * infrun.c: Remove _initialize_infrun prototype.
5499 * interps.c: Remove _initialize_interpreter prototype.
5500 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
5501 * jit.c: Remove _initialize_jit prototype.
5502 * language.c: Remove _initialize_language prototype.
5503 * linux-fork.c: Remove _initialize_linux_fork prototype.
5504 * linux-nat.c: Remove _initialize_linux_nat prototype.
5505 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
5506 * linux-thread-db.c: Remove _initialize_thread_db prototype.
5507 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
5508 * m2-lang.c: Remove _initialize_m2_language prototype.
5509 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
5510 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
5511 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
5512 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
5513 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
5514 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
5515 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
5516 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
5517 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
5518 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
5519 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
5520 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
5521 * machoread.c: Remove _initialize_machoread prototype.
5522 * macrocmd.c: Remove _initialize_macrocmd prototype.
5523 * macroscope.c: Remove _initialize_macroscope prototype.
5524 * maint.c: Remove _initialize_maint_cmds prototype.
5525 * mdebugread.c: Remove _initialize_mdebugread prototype.
5526 * memattr.c: Remove _initialize_mem prototype.
5527 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
5528 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
5529 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
5530 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
5531 * mi/mi-main.c: Remove _initialize_mi_main prototype.
5532 * microblaze-linux-tdep.c: Remove
5533 _initialize_microblaze_linux_tdep prototype.
5534 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
5535 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
5536 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
5537 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
5538 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
5539 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
5540 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
5541 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
5542 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
5543 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
5544 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
5545 prototype.
5546 * mipsread.c: Remove _initialize_mipsread prototype.
5547 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
5548 prototype.
5549 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
5550 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
5551 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
5552 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
5553 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
5554 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
5555 prototype.
5556 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
5557 * nto-procfs.c: Remove _initialize_procfs prototype.
5558 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
5559 * objc-lang.c: Remove _initialize_objc_language prototype.
5560 * objfiles.c: Remove _initialize_objfiles prototype.
5561 * observer.c: Remove observer_test_first_notification_function,
5562 observer_test_second_notification_function,
5563 observer_test_third_notification_function, and
5564 _initialize_observer prototypes.
5565 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
5566 * osabi.c: Remove _initialize_gdb_osabi prototype.
5567 * osdata.c: Remove _initialize_osdata prototype.
5568 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
5569 * parse.c: Remove _initialize_parse prototype.
5570 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
5571 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
5572 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
5573 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
5574 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
5575 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
5576 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
5577 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
5578 * printcmd.c: Remove _initialize_printcmd prototype.
5579 * probe.c: Remove _initialize_probe prototype.
5580 * proc-api.c: Remove _initialize_proc_api prototype.
5581 * proc-events.c: Remove _initialize_proc_events prototype.
5582 * proc-service.c: Remove _initialize_proc_service prototype.
5583 * procfs.c: Remove _initialize_procfs prototype.
5584 * psymtab.c: Remove _initialize_psymtab prototype.
5585 * python/python.c: Remove _initialize_python prototype.
5586 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
5587 * record-btrace.c: Remove _initialize_record_btrace prototype.
5588 * record-full.c: Remove _initialize_record_full prototype.
5589 * record.c: Remove _initialize_record prototype.
5590 * regcache.c: Remove _initialize_regcache prototype.
5591 * reggroups.c: Remove _initialize_reggroup prototype.
5592 * remote-notif.c: Remove _initialize_notif prototype.
5593 * remote-sim.c: Remove _initialize_remote_sim prototype.
5594 * remote.c: Remove _initialize_remote prototype.
5595 * reverse.c: Remove _initialize_reverse prototype.
5596 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
5597 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
5598 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
5599 prototype.
5600 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
5601 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
5602 * rust-exp.y: Remove _initialize_rust_exp prototype.
5603 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
5604 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
5605 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
5606 * score-tdep.c: Remove _initialize_score_tdep prototype.
5607 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
5608 prototype.
5609 * ser-go32.c: Remove _initialize_ser_dos prototype.
5610 * ser-mingw.c: Remove _initialize_ser_windows prototype.
5611 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
5612 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
5613 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
5614 * serial.c: Remove _initialize_serial prototype.
5615 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
5616 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
5617 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
5618 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
5619 * skip.c: Remove _initialize_step_skip prototype.
5620 * sol-thread.c: Remove _initialize_sol_thread prototype.
5621 * solib-aix.c: Remove _initialize_solib_aix prototype.
5622 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
5623 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
5624 * solib-frv.c: Remove _initialize_frv_solib prototype.
5625 * solib-spu.c: Remove _initialize_spu_solib prototype.
5626 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
5627 * solib-target.c: Remove _initialize_solib_target prototype.
5628 * solib.c: Remove _initialize_solib prototype.
5629 * source.c: Remove _initialize_source prototype.
5630 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
5631 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
5632 prototype.
5633 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
5634 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
5635 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
5636 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
5637 prototype.
5638 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
5639 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
5640 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
5641 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
5642 prototype.
5643 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
5644 prototype.
5645 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
5646 prototype.
5647 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
5648 prototype.
5649 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
5650 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
5651 prototype.
5652 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
5653 prototype.
5654 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
5655 prototype.
5656 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
5657 prototype.
5658 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
5659 prototype.
5660 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
5661 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
5662 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
5663 * stabsread.c: Remove _initialize_stabsread prototype.
5664 * stack.c: Remove _initialize_stack prototype.
5665 * stap-probe.c: Remove _initialize_stap_probe prototype.
5666 * std-regs.c: Remove _initialize_frame_reg prototype.
5667 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
5668 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
5669 * symfile.c: Remove _initialize_symfile prototype.
5670 * symmisc.c: Remove _initialize_symmisc prototype.
5671 * symtab.c: Remove _initialize_symtab prototype.
5672 * target-dcache.c: Remove _initialize_target_dcache prototype.
5673 * target-descriptions.c: Remove _initialize_target_descriptions
5674 prototype.
5675 * thread.c: Remove _initialize_thread prototype.
5676 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
5677 prototype.
5678 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
5679 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
5680 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
5681 prototype.
5682 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
5683 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
5684 * tracefile.c: Remove _initialize_tracefile prototype.
5685 * tracepoint.c: Remove _initialize_tracepoint prototype.
5686 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
5687 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
5688 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
5689 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
5690 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
5691 * tui/tui-win.c: Remove _initialize_tui_win prototype.
5692 * tui/tui.c: Remove _initialize_tui prototype.
5693 * typeprint.c: Remove _initialize_typeprint prototype.
5694 * user-regs.c: Remove _initialize_user_regs prototype.
5695 * utils.c: Remove _initialize_utils prototype.
5696 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
5697 * valarith.c: Remove _initialize_valarith prototype.
5698 * valops.c: Remove _initialize_valops prototype.
5699 * valprint.c: Remove _initialize_valprint prototype.
5700 * value.c: Remove _initialize_values prototype.
5701 * varobj.c: Remove _initialize_varobj prototype.
5702 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
5703 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
5704 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
5705 * windows-nat.c: Remove _initialize_windows_nat,
5706 _initialize_check_for_gdb_ini, and _initialize_loadable
5707 prototypes.
5708 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
5709 * xcoffread.c: Remove _initialize_xcoffread prototype.
5710 * xml-support.c: Remove _initialize_xml_support prototype.
5711 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
5712 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
5713 prototype.
5714 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
5715 prototype.
5716 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
5717
a611b5cb
KS
57182017-09-08 Keith Seitz <keiths@redhat.com>
5719
5720 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
5721 field.
5722
469412dd
CW
57232017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
5724
5725 * f-valprint.c (f_val_print): Remove check for one byte
5726 sized integers. Remove printing of character type.
5727
a5ad232b
FP
57282017-09-08 Frank Penczek <frank.penczek@intel.com>
5729 Christoph Weinmann <christoph.t.weinmann@intel.com>
5730 Bernhard Heckel <bernhard.heckel@intel.com>
5731
5732 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
5733 to maintain proper indentation when printing pointers/refs.
5734
e5014227
JB
57352017-09-07 Joel Brobecker <brobecker@adacore.com>
5736
5737 GDB 8.0.1 released.
5738
63c99141
JB
57392017-09-07 Joel Brobecker <brobecker@adacore.com>
5740
5741 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
5742
69c1e056
TT
57432017-09-05 Tom Tromey <tom@tromey.com>
5744
5745 * parse.c (funcall_chain): Now a std::vector.
5746 (start_arglist, end_arglist): Simplify.
5747 (free_funcalls): Remove.
5748 (parse_exp_in_context_1): Remove cleanup.
5749
fef704bf
TT
57502017-09-05 Tom Tromey <tom@tromey.com>
5751
5752 * go-exp.y (go_parse): Don't create a cleanup.
5753
5613c585
TT
57542017-09-05 Tom Tromey <tom@tromey.com>
5755
5756 * d-exp.y (PrimaryExpression): Use std::string.
5757 (d_parse): Don't create a cleanup.
5758
eae49211
TT
57592017-09-05 Tom Tromey <tom@tromey.com>
5760
5761 * utils.c (do_clear_parser_state): Remove.
5762 (make_cleanup_clear_parser_state): Remove.
5763 * p-exp.y (pascal_parse): Use scoped_restore.
5764 * m2-exp.y (m2_parse): Use scoped_restore.
5765 * f-exp.y (f_parse): Use scoped_restore.
5766 * d-exp.y (d_parse): Use scoped_restore.
5767 * c-exp.y (c_parse): Use scoped_restore.
5768 * ada-exp.y (ada_parse): Use scoped_restore.
5769 * utils.h (make_cleanup_clear_parser_state): Remove.
5770
73b9be8b
KS
57712017-09-06 Keith Seitz <keiths@redhat.com>
5772
5773 * dwarf2read.c (dw2_linkage_name_attr): New function.
5774 (dw2_linkage_name): New function.
5775 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
5776 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
5777 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
5778
a102602b
KR
57792017-09-06 Kamil Rytarowski <n54@gmx.com>
5780
5781 * config/djgpp/djconfig.sh: Correct shell portability issue.
5782
28ad437d
KR
57832017-09-06 Kamil Rytarowski <n54@gmx.com>
5784
5785 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
5786
351787dd
JB
57872017-09-06 John Baldwin <jhb@FreeBSD.org>
5788
5789 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
5790 * NEWS: Mention new FreeBSD/mips native configuration.
5791 * configure.host: Add aarch64*-*-freebsd*.
5792 * configure.nat: Likewise.
5793 * aarch64-fbsd-nat.c: New file.
5794
c0f84956
JB
57952017-09-06 John Baldwin <jhb@FreeBSD.org>
5796
5797 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
5798 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
5799 * NEWS: Mention new FreeBSD/aarch64 target.
5800 * configure.tgt: Add aarch64*-*-freebsd*.
5801 * aarch64-fbsd-tdep.c: New file.
5802 * aarch64-fbsd-tdep.h: New file.
5803
7610297a
KR
58042017-09-06 Kamil Rytarowski <n54@gmx.com>
5805
5806 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
5807
fbd1b771
JK
58082017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5809
5810 * parse.c (find_minsym_type_and_address): Don't relocate addresses
5811 of TLS symbols.
5812
5ca79eae
PW
58132017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5814
5815 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
5816 call.
5817
bf93d7ba
SM
58182017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5819
5820 * infrun.c (follow_exec): Call add_thread after
5821 target_find_description.
5822
1bb7c059
SM
58232017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5824
5825 * infrun.c (handle_inferior_event_1): When exec'ing, read
5826 stop_pc after follow_exec.
5827
fc809827
SM
58282017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5829
5830 * remote.c (process_g_packet): Update error message.
5831
d2fcdd85
YQ
58322017-09-05 Yao Qi <yao.qi@linaro.org>
5833
5834 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
5835 targets.
5836
e69570ee
PA
58372017-09-05 Pedro Alves <palves@redhat.com>
5838
5839 * eval.c (eval_call, evaluate_funcall): New functions, factored
5840 out from ...
5841 (evaluate_subexp_standard): ... this.
5842
22916b07
YQ
58432017-09-05 Yao Qi <yao.qi@linaro.org>
5844
5845 * amd64-tdep.c (amd64_target_description): Create target
5846 descriptions.
5847 (_initialize_amd64_tdep): Don't call functions
5848 initialize_tdesc_amd64_*. Add self tests.
5849 * arch/amd64.c (amd64_create_target_description): Add parameter
5850 is_linux. Call set_tdesc_osabi if is_linux is true.
5851 * arch/amd64.h (amd64_create_target_description): Update the
5852 declaration.
5853 * arch/i386.c (i386_create_target_description): Add parameter
5854 is_linux. Call set_tdesc_osabi if is_linux is true.
5855 * arch/i386.h (i386_create_target_description): Update
5856 declaration.
5857 * configure.tgt: Add i386.o to gdb_target_obs.
5858 * features/Makefile (XMLTOC): Remove i386/*.xml.
5859 * features/i386/amd64-avx-avx512.c: Remove.
5860 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
5861 * features/i386/amd64-avx-mpx.c: Remove.
5862 * features/i386/amd64-avx.c: Remove.
5863 * features/i386/amd64-mpx.c: Remove.
5864 * features/i386/amd64.c: Remove.
5865 * features/i386/i386-avx-avx512.c: Remove.
5866 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
5867 * features/i386/i386-avx-mpx.c: Remove.
5868 * features/i386/i386-avx.c: Remove.
5869 * features/i386/i386-mmx.c: Remove.
5870 * features/i386/i386-mpx.c: Remove.
5871 * features/i386/i386.c: Remove.
5872 * i386-tdep.c: Don't include features/i386/i386*.c., include
5873 target-descriptions.h and arch/i386.h.
5874 (i386_target_description): Create target descriptions.
5875 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
5876 functions. Do self tests.
5877
0854b7b1
YQ
58782017-09-05 Yao Qi <yao.qi@linaro.org>
5879
5880 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
5881 * features/i386/amd64-avx-avx512-linux.c: Removed.
5882 * features/i386/amd64-avx-linux.c: Removed.
5883 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
5884 * features/i386/amd64-avx-mpx-linux.c: Removed.
5885 * features/i386/amd64-linux.c: Removed.
5886 * features/i386/amd64-mpx-linux.c: Removed.
5887 * features/i386/x32-avx-avx512-linux.c: Removed.
5888 * features/i386/x32-avx-linux.c: Removed.
5889 * features/i386/x32-linux.c: Removed.
5890
b4570e4b
YQ
58912017-09-05 Yao Qi <yao.qi@linaro.org>
5892
5893 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
5894 features/i386/*.c.
5895 (amd64_linux_read_description): Call
5896 amd64_create_target_description.
5897 * arch/amd64.c: New file.
5898 * arch/amd64.h: New file.
5899 * configure.tgt (x86_64-*-linux*): Append amd64.o.
5900 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
5901
6c73f67f
YQ
59022017-09-05 Yao Qi <yao.qi@linaro.org>
5903
5904 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
5905 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
5906 (amd64_linux_read_description): Create target descriptions.
5907 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
5908 functions. Add unit tests.
5909 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
5910 x32-core.xml.
5911 * features/i386/64bit-avx.c: Generated.
5912 * features/i386/64bit-avx512.c: Generated.
5913 * features/i386/64bit-core.c: Generated.
5914 * features/i386/64bit-linux.c: Generated.
5915 * features/i386/64bit-mpx.c: Generated.
5916 * features/i386/64bit-pkeys.c: Generated.
5917 * features/i386/64bit-segments.c: Generated.
5918 * features/i386/64bit-sse.c: Generated.
5919 * features/i386/x32-core.c: Generated.
5920 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
5921 c files for amd64-linux and x32-linux.
5922
9d3d478b
YQ
59232017-09-05 Yao Qi <yao.qi@linaro.org>
5924
5925 * amd64-linux-tdep.c (amd64_linux_read_description): New
5926 function.
5927 (amd64_linux_core_read_description): Call
5928 amd64_linux_read_description.
5929 (amd64_linux_init_abi): Likewise.
5930 (amd64_x32_linux_init_abi): Likewise.
5931 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
5932 * x86-linux-nat.c (x86_linux_read_description): Call
5933 amd64_linux_read_description.
5934
b9f1d50f
YQ
59352017-09-05 Yao Qi <yao.qi@linaro.org>
5936
5937 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
5938 comments.
5939
188c9e6d
YQ
59402017-09-05 Yao Qi <yao.qi@linaro.org>
5941
5942 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
5943 * features/i386/i386-avx-avx512-linux.c: Remove.
5944 * features/i386/i386-avx-linux.c: Remove.
5945 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
5946 * features/i386/i386-avx-mpx-linux.c: Remove.
5947 * features/i386/i386-linux.c: Remove.
5948 * features/i386/i386-mmx-linux.c: Remove.
5949 * features/i386/i386-mpx-linux.c: Remove.
5950
5f035c07
YQ
59512017-09-05 Yao Qi <yao.qi@linaro.org>
5952
5953 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
5954 (SFILES): Add arch/i386.c.
5955 (HFILES_NO_SRCDIR): Add arch/i386.h.
5956 * arch/i386.c: New file.
5957 * arch/i386.h: New file.
5958 * arch/tdesc.h (allocate_target_description): Declare.
5959 (set_tdesc_architecture): Declare.
5960 (set_tdesc_osabi): Declare.
5961 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
5962 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
5963 include arch/i386.h.
5964 (i386_linux_read_description): Remove code and call
5965 i386_create_target_description.
5966 (set_tdesc_architecture): New function.
5967 (set_tdesc_osabi): New function.
5968 * target-descriptions.h (allocate_target_description): Remove.
5969
0abe8a89
YQ
59702017-09-05 Yao Qi <yao.qi@linaro.org>
5971
5972 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
5973 * target-descriptions.c (tdesc_create_feature): Likewise, and
5974 adjust code.
5975 * features/i386/32bit-avx.c: Re-generated.
5976 * features/i386/32bit-avx512.c: Re-generated.
5977 * features/i386/32bit-core.c: Re-generated.
5978 * features/i386/32bit-linux.c: Re-generated.
5979 * features/i386/32bit-mpx.c: Re-generated.
5980 * features/i386/32bit-pkeys.c: Re-generated.
5981 * features/i386/32bit-sse.c: Re-generated.
5982
0a188386
YQ
59832017-09-05 Yao Qi <yao.qi@linaro.org>
5984
5985 * regformats/regdef.h (struct reg): Override operator == and !=.
5986
f49ff000
YQ
59872017-09-05 Yao Qi <yao.qi@linaro.org>
5988
5989 * arch/tdesc.h: New file.
5990 * regformats/regdat.sh: Generate code using tdesc_create_reg.
5991 * target-descriptions.c: Update comments.
5992 * target-descriptions.h: Include "arch/tdesc.h". Remove the
5993 declarations.
5994 * features/i386/32bit-avx.c: Re-generated.
5995 * features/i386/32bit-avx512.c: Re-generated.
5996 * features/i386/32bit-core.c: Re-generated.
5997 * features/i386/32bit-linux.c: Re-generated.
5998 * features/i386/32bit-mpx.c: Re-generated.
5999 * features/i386/32bit-pkeys.c: Re-generated.
6000 * features/i386/32bit-sse.c: Re-generated.
6001
f7000548
YQ
60022017-09-05 Yao Qi <yao.qi@linaro.org>
6003
6004 * regformats/regdat.sh: Update generated code.
6005
c9a5e2a5
YQ
60062017-09-05 Yao Qi <yao.qi@linaro.org>
6007
6008 * regformats/regdat.sh: Adjust code order.
6009
d6b687ac
SM
60102017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6011
6012 * expprint.c (dump_subexp_body_standard): Use constant format
6013 string in fprintf_filtered call.
6014
a379bfd0
JB
60152017-09-04 John Baldwin <jhb@FreeBSD.org>
6016
6017 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
6018 NetBSD/i386.
6019 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
6020
f7efc967
JB
60212017-09-04 John Baldwin <jhb@FreeBSD.org>
6022
6023 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
6024
c49fbc6c
JB
60252017-09-04 John Baldwin <jhb@FreeBSD.org>
6026
6027 * bsd-kvm.o: Define _KMEMUSER.
6028 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
6029 * configure: Regenerate.
6030
26562e73
JB
60312017-09-04 John Baldwin <jhb@FreeBSD.org>
6032
6033 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
6034 * i386-fbsd-nat.c: Likewise.
6035
31cf1487
JB
60362017-09-04 John Baldwin <jhb@FreeBSD.org>
6037
6038 * unittests/array-view-selftests.c: Add include of <array>.
6039
5b9f8a7c
JB
60402017-09-04 John Baldwin <jhb@FreeBSD.org>
6041
6042 * spu-tdep.c (flush_ea_cache): Add missing argument to
6043 call_function_by_hand.
6044
d69cf9b2
PA
60452017-09-04 Pedro Alves <palves@redhat.com>
6046
6047 * NEWS (Safer support for debugging with no debug info): New.
6048
3693fdb3
PA
60492017-09-04 Pedro Alves <palves@redhat.com>
6050
6051 * c-exp.y (function_method, function_method_void): Add current
6052 instance flags to TYPE_INSTANCE.
6053 * dwarf2read.c (check_modifier): New.
6054 (compute_delayed_physnames): Assert that only C++ adds delayed
6055 physnames. Mark fn_fields as const/volatile depending on
6056 physname.
6057 * eval.c (make_params): New type_instance_flags parameter. Use
6058 it as the new type's instance flags.
6059 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
6060 flags element and pass it to make_params.
6061 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
6062 instance flags element.
6063 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
6064 * gdbtypes.h: Include "enum-flags.h".
6065 (type_instance_flags): New enum-flags type.
6066 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
6067 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
6068 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
6069 (follow_type_instance_flags): New function.
6070 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
6071 * parser-defs.h (follow_type_instance_flags): Declare.
6072 * valops.c (value_struct_elt_for_reference): const/volatile must
6073 match too.
6074
e68cb8e0
PA
60752017-09-04 Pedro Alves <palves@redhat.com>
6076
6077 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
6078 function/method scopes; lookup the nested name as a function local
6079 static variable.
6080
858be34c
PA
60812017-09-04 Pedro Alves <palves@redhat.com>
6082
6083 (%type <voidval>): Add function_method.
6084 * c-exp.y (exp): New production for calls with no arguments.
6085 (function_method, function_method_void_or_typelist): New
6086 productions.
6087 (exp): New production for "method()::static_var".
6088 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
6089 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6090 Handle OP_FUNC_STATIC_VAR.
6091 * parse.c (operator_length_standard):
6092 Handle OP_FUNC_STATIC_VAR.
6093
dd5901a6
PA
60942017-09-04 Pedro Alves <palves@redhat.com>
6095
6096 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
6097 handling.
6098 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6099 Ditto.
6100 * parse.c (operator_length_standard, operator_check_standard):
6101 Ditto.
6102 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
6103
46a4882b
PA
61042017-09-04 Pedro Alves <palves@redhat.com>
6105
6106 * ax-gdb.c: Include "typeprint.h".
6107 (gen_expr_for_cast): New function.
6108 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
6109 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
6110 type is unknown.
6111 * dwarf2read.c (new_symbol_full): Fallback to int instead of
6112 nodebug_data_symbol.
6113 * eval.c: Include "typeprint.h".
6114 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
6115 Error out if symbol has unknown type.
6116 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
6117 evaluate_subexp_for_cast.
6118 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
6119 OP_VAR_MSYM_VALUE.
6120 (evaluate_subexp_for_cast): New function.
6121 * gdbtypes.c (init_nodebug_var_type): New function.
6122 (objfile_type): Use it to initialize types of variables with no
6123 debug info.
6124 * typeprint.c (error_unknown_type): New.
6125 * typeprint.h (error_unknown_type): New declaration.
6126 * compile/compile-c-types.c (convert_type_basic): Handle
6127 TYPE_CODE_ERROR; warn and fallback to int for variables with
6128 unknown type.
6129
fe13dfec
PA
61302017-09-04 Pedro Alves <palves@redhat.com>
6131
6132 * eval.c (evaluate_var_value): New function, factored out from ...
6133 (evaluate_subexp_standard): ... here.
6134
d008ee21
PA
61352017-09-04 Pedro Alves <palves@redhat.com>
6136
6137 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
6138 Remove useless assignments to 'op'.
6139
827d0c51
PA
61402017-09-04 Pedro Alves <palves@redhat.com>
6141
6142 * eval.c (eval_skip_value): New function.
6143 (evaluate_subexp_standard): Use it.
6144
2c5a2be1
PA
61452017-09-04 Pedro Alves <palves@redhat.com>
6146
6147 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
6148 function name from symbol/minsym and pass it to
6149 error_call_unknown_return_type.
6150
74ea4be4
PA
61512017-09-04 Pedro Alves <palves@redhat.com>
6152
6153 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
6154 * ax-gdb.c (gen_msym_var_ref): New function.
6155 (gen_expr): Handle OP_VAR_MSYM_VALUE.
6156 * eval.c (evaluate_var_msym_value): New function.
6157 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
6158 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
6159 to call_function_by_hand.
6160 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6161 Handle OP_VAR_MSYM_VALUE.
6162 (union exp_element) <msymbol>: New field.
6163 * minsyms.h (struct type): Forward declare.
6164 (find_minsym_type_and_address): Declare.
6165 * parse.c (write_exp_elt_msym): New function.
6166 (write_exp_msymbol): Delete, refactored as ...
6167 (find_minsym_type_and_address): ... this new function.
6168 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
6169 (operator_length_standard, operator_check_standard): Handle
6170 OP_VAR_MSYM_VALUE.
6171 * std-operator.def (OP_VAR_MSYM_VALUE): New.
6172
7022349d
PA
61732017-09-04 Pedro Alves <palves@redhat.com>
6174
6175 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
6176 TYPE_GNU_IFUNC specially here. Throw error if return type is
6177 unknown.
6178 * ada-typeprint.c (print_func_type): Handle functions with unknown
6179 return type.
6180 * c-typeprint.c (c_type_print_base): Handle functions and methods
6181 with unknown return type.
6182 * compile/compile-c-symbols.c (convert_symbol_bmsym)
6183 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
6184 * compile/compile-c-types.c: Include "objfiles.h".
6185 (convert_func): For functions with unknown return type, warn and
6186 default to int.
6187 * compile/compile-object-run.c (compile_object_run): Adjust call
6188 to call_function_by_hand_dummy.
6189 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
6190 call_function_by_hand.
6191 * eval.c (evaluate_subexp_standard): Adjust calls to
6192 call_function_by_hand. Handle functions and methods with unknown
6193 return type. Pass expect_type to call_function_by_hand.
6194 * f-typeprint.c (f_type_print_base): Handle functions with unknown
6195 return type.
6196 * gcore.c (call_target_sbrk): Adjust call to
6197 call_function_by_hand.
6198 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
6199 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
6200 an integer address type instead of nodebug.
6201 * guile/scm-value.c (gdbscm_value_call): Adjust call to
6202 call_function_by_hand.
6203 * infcall.c (error_call_unknown_return_type): New function.
6204 (call_function_by_hand): New "default_return_type" parameter.
6205 Pass it down.
6206 (call_function_by_hand_dummy): New "default_return_type"
6207 parameter. Use it instead of defaulting to int. If there's no
6208 default and the return type is unknown, throw an error. If
6209 there's a default return type, and the called function has no
6210 debug info, then assume the function is prototyped.
6211 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
6212 New "default_return_type" parameter.
6213 (error_call_unknown_return_type): New declaration.
6214 * linux-fork.c (call_lseek): Cast return type of lseek.
6215 (inferior_call_waitpid, checkpoint_command): Adjust calls to
6216 call_function_by_hand.
6217 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
6218 calls to call_function_by_hand.
6219 * m2-typeprint.c (m2_procedure): Handle functions with unknown
6220 return type.
6221 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6222 (value_nsstring, print_object_command): Adjust calls to
6223 call_function_by_hand.
6224 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
6225 functions with unknown return type.
6226 (pascal_type_print_func_varspec_suffix): New function.
6227 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
6228 TYPE_CODE_METHOD>: Use it.
6229 * python/py-value.c (valpy_call): Adjust call to
6230 call_function_by_hand.
6231 * rust-lang.c (rust_evaluate_funcall): Adjust call to
6232 call_function_by_hand.
6233 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
6234 call_function_by_hand.
6235 * valops.c (value_allocate_space_in_inferior): Adjust call to
6236 call_function_by_hand.
6237 * typeprint.c (type_print_unknown_return_type): New function.
6238 * typeprint.h (type_print_unknown_return_type): New declaration.
6239
54990598
PA
62402017-09-04 Pedro Alves <palves@redhat.com>
6241
6242 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
6243 types with more than one parameter as prototyped.
6244
9a24775b
PA
62452017-09-04 Pedro Alves <palves@redhat.com>
6246
6247 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
6248 (disassemble_command): Use gdb_disassembly_flags instead of bare
6249 int.
6250 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
6251 (dump_insns, do_mixed_source_and_assembly_deprecated)
6252 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
6253 Use gdb_disassembly_flags instead of bare int.
6254 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
6255 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
6256 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
6257 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
6258 (enum gdb_disassembly_flag): ... values of this new enumeration.
6259 (gdb_disassembly_flags): Define.
6260 (gdb_disassembly)
6261 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
6262 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
6263 gdb_disassembly_flags instead of bare int.
6264 * record-btrace.c (btrace_insn_history)
6265 (record_btrace_insn_history, record_btrace_insn_history_range)
6266 (record_btrace_insn_history_from): Use gdb_disassembly_flags
6267 instead of bare int.
6268 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
6269 Use gdb_disassembly_flags instead of bare int.
6270 * target-debug.h (target_debug_print_gdb_disassembly_flags):
6271 Define.
6272 * target-delegates.c: Regenerate.
6273 * target.c (target_insn_history, target_insn_history_from)
6274 (target_insn_history_range): Use gdb_disassembly_flags instead of
6275 bare int.
6276 * target.h: Include "disasm.h".
6277 (struct target_ops) <to_insn_history, to_insn_history_from,
6278 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
6279 int.
6280 (target_insn_history, target_insn_history_from)
6281 (target_insn_history_range): Use gdb_disassembly_flags instead of
6282 bare int.
6283
80a65e9b
SM
62842017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6285
6286 * cli/cli-script.c (build_command_line): For if/while commands,
6287 check whether args is empty.
6288
6b66338c
SM
62892017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6290
6291 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
6292 (enum command_control_type): Likewise.
6293 (struct command_line): Likewise.
6294 (free_command_lines): Likewise.
6295 (struct command_lines_deleter): Likewise.
6296 (command_line_up): Likewise.
6297 (read_command_lines): Likewise.
6298 (read_command_lines_1): Likewise.
6299 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
6300 (enum command_control_type): Likewise.
6301 (struct command_line): Likewise.
6302 (free_command_lines): Likewise.
6303 (struct command_lines_deleter): Likewise.
6304 (command_line_up): Likewise.
6305 (read_command_lines): Likewise.
6306 (read_command_lines_1): Likewise.
6307 * breakpoint.h: Include cli/cli-script.h.
6308 * extension-priv.h: Likewise.
6309 * gdbcmd.h: Likewise.
6310
51abb421
PA
63112017-09-04 Pedro Alves <palves@redhat.com>
6312
6313 * ada-lang.c (is_known_support_routine): Move sal declaration to
6314 where it is initialized.
6315 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
6316 (parse_breakpoint_sals, decode_static_tracepoint_spec)
6317 (clear_command, update_static_tracepoint): Remove init_sal
6318 references. Move declarations closer to initializations.
6319 * cli/cli-cmds.c (list_command): Move sal declarations closer to
6320 initializations.
6321 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
6322 references. Move sal declarations closer to initializations.
6323 * frame.c (find_frame_sal): Return a symtab_and_line via function
6324 return instead of output parameter. Remove init_sal references.
6325 * frame.h (find_frame_sal): Return a symtab_and_line via function
6326 return instead of output parameter.
6327 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
6328 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
6329 instead of memset.
6330 (gdbscm_find_pc_line): Remove init_sal reference.
6331 * infcall.c (call_function_by_hand_dummy): Remove init_sal
6332 references. Move declarations closer to initializations.
6333 * infcmd.c (set_step_frame): Update. Move declarations closer to
6334 initializations.
6335 (finish_backward): Remove init_sal references. Move declarations
6336 closer to initializations.
6337 * infrun.c (process_event_stop_test, handle_step_into_function)
6338 (insert_hp_step_resume_breakpoint_at_frame)
6339 (insert_step_resume_breakpoint_at_caller): Likewise.
6340 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
6341 (symbol_to_sal): Likewise.
6342 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
6343 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
6344 to its initialization.
6345 * reverse.c (save_bookmark_command): Use new/delete. Remove
6346 init_sal references. Move declarations closer to initializations.
6347 * source.c (get_current_source_symtab_and_line): Remove brace
6348 initialization.
6349 (set_current_source_symtab_and_line): Now takes the sal by const
6350 reference. Remove brace initialization.
6351 (line_info): Remove init_sal reference.
6352 * source.h (set_current_source_symtab_and_line): Now takes a
6353 symtab_and_line via const reference.
6354 * stack.c (set_current_sal_from_frame): Adjust.
6355 (print_frame_info): Adjust.
6356 (get_last_displayed_sal): Return the sal via function return
6357 instead of via output parameter. Simplify.
6358 (frame_info): Adjust.
6359 * stack.h (get_last_displayed_sal): Return the sal via function
6360 return instead of via output parameter.
6361 * symtab.c (init_sal): Delete.
6362 (find_pc_sect_line): Remove init_sal references. Move
6363 declarations closer to initializations.
6364 (find_function_start_sal): Remove init_sal references. Move
6365 declarations closer to initializations.
6366 * symtab.h (struct symtab_and_line): In-class initialize all
6367 fields.
6368 * tracepoint.c (set_traceframe_context)
6369 (print_one_static_tracepoint_marker): Remove init_sal references.
6370 Move declarations closer to initializations.
6371 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
6372 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
6373 declarations closer to initializations.
6374 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
6375 init_sal references. Adjust.
6376
6c5b2ebe
PA
63772017-09-04 Pedro Alves <palves@redhat.com>
6378
6379 * ax-gdb.c (agent_command_1): Use range-for.
6380 * break-catch-throw.c (re_set_exception_catchpoint): Update.
6381 * breakpoint.c: Include "common/array-view.h".
6382 (init_breakpoint_sal, create_breakpoint_sal): Change sals
6383 parameter from struct symtabs_and_lines to
6384 array_view<symtab_and_line>. Adjust. Use range-for. Update.
6385 (breakpoint_sals_to_pc): Change sals parameter from struct
6386 symtabs_and_lines to std::vector reference.
6387 (check_fast_tracepoint_sals): Change sals parameter from struct
6388 symtabs_and_lines to std::array_view. Use range-for.
6389 (decode_static_tracepoint_spec): Return a std::vector instead of
6390 symtabs_and_lines. Update.
6391 (create_breakpoint): Update.
6392 (break_range_command, until_break_command, clear_command): Update.
6393 (base_breakpoint_decode_location, bkpt_decode_location)
6394 (bkpt_probe_create_sals_from_location)
6395 (bkpt_probe_decode_location, tracepoint_decode_location)
6396 (tracepoint_probe_decode_location)
6397 (strace_marker_create_sals_from_location): Return a std::vector
6398 instead of symtabs_and_lines.
6399 (strace_marker_create_breakpoints_sal): Update.
6400 (strace_marker_decode_location): Return a std::vector instead of
6401 symtabs_and_lines. Update.
6402 (update_breakpoint_locations): Change struct symtabs_and_lines
6403 parameters to gdb::array_view. Adjust.
6404 (location_to_sals): Return a std::vector instead of
6405 symtabs_and_lines. Update.
6406 (breakpoint_re_set_default): Use std::vector instead of struct
6407 symtabs_and_lines.
6408 (decode_location_default): Return a std::vector instead of
6409 symtabs_and_lines. Update.
6410 * breakpoint.h: Include "common/array-view.h".
6411 (struct breakpoint_ops) <decode_location>: Now returns a
6412 std::vector instead of returning a symtabs_and_lines via output
6413 parameter.
6414 (update_breakpoint_locations): Change sals parameters to use
6415 gdb::array_view.
6416 * cli/cli-cmds.c (edit_command, list_command): Update to use
6417 std::vector and gdb::array_view.
6418 (ambiguous_line_spec): Adjust to use gdb::array_view and
6419 range-for.
6420 (compare_symtabs): Rename to ...
6421 (cmp_symtabs): ... this. Change parameters to symtab_and_line
6422 const reference and adjust.
6423 (filter_sals): Rewrite using std::vector and standard algorithms.
6424 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
6425 (jump_command): Update to use std::vector.
6426 * linespec.c (struct linespec_state) <canonical_names>: Update
6427 comment.
6428 (add_sal_to_sals_basic): Delete.
6429 (add_sal_to_sals, filter_results, convert_results_to_lsals)
6430 (decode_line_2, create_sals_line_offset)
6431 (convert_address_location_to_sals, convert_linespec_to_sals)
6432 (convert_explicit_location_to_sals, parse_linespec)
6433 (event_location_to_sals, decode_line_full, decode_line_1)
6434 (decode_line_with_current_source)
6435 (decode_line_with_last_displayed, decode_objc)
6436 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
6437 (linespec_result::~linespec_result): Adjust to use std::vector
6438 instead of symtabs_and_lines.
6439 * linespec.h (linespec_sals::sals): Now a std::vector.
6440 (struct linespec_result): Use std::vector, bool, and in-class
6441 initialization.
6442 (decode_line_1, decode_line_with_current_source)
6443 (decode_line_with_last_displayed): Return std::vector.
6444 * macrocmd.c (info_macros_command): Use std::vector.
6445 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
6446 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
6447 std::vector.
6448 * probe.h (parse_probes): Return a std::vector.
6449 * python/python.c (gdbpy_decode_line): Use std::vector and
6450 gdb::array_view.
6451 * source.c (select_source_symtab, line_info): Use std::vector.
6452 * stack.c (func_command): Use std::vector.
6453 * symtab.h (struct symtabs_and_lines): Delete.
6454 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
6455
7c44b49c
PA
64562017-09-04 Pedro Alves <palves@redhat.com>
6457
6458 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6459 unittests/array-view-selftests.c.
6460 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
6461 * common/array-view.h: New file.
6462 * unittests/array-view-selftests.c: New file.
6463
e439fa14
PA
64642017-09-04 Pedro Alves <palves@redhat.com>
6465
6466 * cli/cli-cmds.c (edit_command): Pass message to
6467 ambiguous_line_spec.
6468 (list_command): Pass message to ambiguous_line_spec. Say
6469 "first"/"last" instead of "start" and "end" to be consistent with
6470 the manual.
6471 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
6472 them to print formatted message.
6473
7525b645
PA
64742017-09-04 Pedro Alves <palves@redhat.com>
6475
6476 * btrace.c (ftrace_add_pt): Pass btrace_insn to
6477 ftrace_update_insns by reference instead of pointer.
6478
badc0020
YQ
64792017-09-04 Yao Qi <yao.qi@linaro.org>
6480
6481 * i386-go32-tdep.c: Include x86-xstate.h.
6482 (i386_go32_init_abi): Call i386_target_description.
6483 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
6484 if xcr0 is X86_XSTATE_X87_MASK.
6485 * i386-tdep.h (tdesc_i386): Remove the declaration.
6486 (tdesc_i386_mmx): Likewise.
6487
d78bdb54
YQ
64882017-09-04 Yao Qi <yao.qi@linaro.org>
6489
6490 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
6491 X86_XSTATE_SSE_MASK instead of 0.
6492
ca1fa5ee
YQ
64932017-09-04 Yao Qi <yao.qi@linaro.org>
6494
6495 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
6496 i386_target_description.
6497 * i386-fbsd-nat.c (i386fbsd_read_description): Call
6498 i386_target_description.
6499 * i386-tdep.c (i386_gdbarch_init): Likewise.
6500
2434b019
YQ
65012017-09-04 Yao Qi <yao.qi@linaro.org>
6502
6503 * amd64-darwin-tdep.c: Include "x86-xstate.h".
6504 (x86_darwin_init_abi_64): Call amd64_target_description.
6505 * amd64-dicos-tdep.c: Likewise.
6506 * amd64-fbsd-nat.c: Likewise.
6507 * amd64-fbsd-tdep.c: Likewise.
6508 * amd64-nbsd-tdep.c: Likewise.
6509 * amd64-obsd-tdep.c: Likewise.
6510 * amd64-sol2-tdep.c: Likewise.
6511 * amd64-windows-tdep.c: Likewise.
6512 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
6513
0860c437
SM
65142017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6515
6516 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
6517 (btrace_function) <insn>: Change type to use std::vector.
6518 * btrace.c (ftrace_debug, ftrace_call_num_insn,
6519 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
6520 ftrace_update_insns, ftrace_compute_global_level_offset,
6521 btrace_stitch_bts, btrace_clear, btrace_insn_get,
6522 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
6523 change to std::vector.
6524 (ftrace_update_insns): Adjust to change to std::vector, change
6525 type of INSN parameter.
6526 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
6527 * record-btrace.c (btrace_call_history_insn_range,
6528 btrace_compute_src_line_range,
6529 record_btrace_frame_prev_register): Adjust to change to
6530 std::vector.
6531 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
6532 to change to std::vector.
6533
0638b7f9
TT
65342017-09-03 Tom Tromey <tom@tromey.com>
6535
6536 * corefile.c (reopen_exec_file): Use std::string.
6537
8f84fb0e
TT
65382017-09-03 Tom Tromey <tom@tromey.com>
6539
6540 * compile/compile.c (compile_register_name_mangled): Return
6541 std::string.
6542 * compile/compile-loc2c.c (pushf_register_address): Update.
6543 (pushf_register): Update.
6544 * compile/compile-c-types.c (convert_array): Update.
6545 * compile/compile-c-symbols.c (generate_vla_size): Update.
6546 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
6547 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
6548 (convert_one_symbol): Update.
6549 (generate_c_for_for_one_variable): Update.
6550 * compile/compile-c-support.c (c_get_range_decl_name): Return a
6551 std::string.
6552 (generate_register_struct): Update.
6553 * compile/compile-internal.h (c_get_range_decl_name): Return a
6554 std::string.
6555 (compile_register_name_mangled): Return std::string.
6556
18e9961f
TT
65572017-09-03 Tom Tromey <tom@tromey.com>
6558
6559 * utils.c (perror_string): Return a std::string.
6560 (throw_perror_with_name, perror_warning_with_name): Update.
6561
45343786
TT
65622017-09-03 Tom Tromey <tom@tromey.com>
6563
6564 * demangle.c (demangle_command): Use std::string,
6565 unique_xmalloc_ptr.
6566
b57af503
TT
65672017-09-03 Tom Tromey <tom@tromey.com>
6568
6569 * cli/cli-setshow.c (do_set_command): Use std::string.
6570
6eecf35f
TT
65712017-09-03 Tom Tromey <tom@tromey.com>
6572
6573 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
6574
56496dd4
TT
65752017-09-03 Tom Tromey <tom@tromey.com>
6576
6577 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
6578
e91a1fa7
TT
65792017-09-03 Tom Tromey <tom@tromey.com>
6580
6581 * mi/mi-cmd-env.c (env_execute_cli_command): Use
6582 gdb::unique_xmalloc_ptr.
6583
7ffd83d7
TT
65842017-09-03 Tom Tromey <tom@tromey.com>
6585
6586 * thread.c (print_thread_info_1): Use string_printf.
6587 (thread_apply_command, thread_apply_all_command): Use
6588 std::string.
6589
1ccbe998
TT
65902017-09-03 Tom Tromey <tom@tromey.com>
6591
6592 * valprint.c (val_print_string): Update.
6593 * gdbcore.h (memory_error_message): Return std::string.
6594 * corefile.c (memory_error_message): Return std::string.
6595 (memory_error): Update.
6596 * breakpoint.c (insert_bp_location): Update.
6597
23fdd69e
SM
65982017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6599
6600 * target/waitstatus.h (target_waitstatus_to_string): Change
6601 return type to std::string.
6602 * target/waitstatus.c (target_waitstatus_to_string): Return
6603 std::string.
6604 * target.h (target_waitstatus_to_string): Remove declaration.
6605 * infrun.c (resume, clear_proceed_status_thread,
6606 print_target_wait_results, do_target_wait, save_waitstatus,
6607 stop_all_threads): Adjust.
6608 * record-btrace.c (record_btrace_wait): Adjust.
6609 * target-debug.h
6610 (target_debug_print_struct_target_waitstatus_p): Adjust.
6611
5c811d30
JK
66122017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6613
6614 PR gdb/22046
6615 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
6616 detection.
6617
0a2dde4a
SDJ
66182017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6619
6620 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
6621 for setting/unsetting environment variables on the remote target.
6622 (New remote packets): Add entries for QEnvironmentHexEncoded,
6623 QEnvironmentUnset and QEnvironmentReset.
6624 * common/environ.c (gdb_environ::operator=): Extend method to
6625 handle m_user_set_env_list and m_user_unset_env_list.
6626 (gdb_environ::clear): Likewise.
6627 (match_var_in_string): Change type of first parameter from 'char
6628 *' to 'const char *'.
6629 (gdb_environ::set): Extend method to handle
6630 m_user_set_env_list and m_user_unset_env_list.
6631 (gdb_environ::unset): Likewise.
6632 (gdb_environ::clear_user_set_env): New method.
6633 (gdb_environ::user_set_envp): Likewise.
6634 (gdb_environ::user_unset_envp): Likewise.
6635 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
6636 m_user_unset_env_list on move constructor/assignment.
6637 (unset): Add new default parameter 'update_unset_list = true'.
6638 (clear_user_set_env): New method.
6639 (user_set_envp): Likewise.
6640 (user_unset_envp): Likewise.
6641 (m_user_set_env_list): New std::set.
6642 (m_user_unset_env_list): Likewise.
6643 * common/rsp-low.c (hex2str): New function.
6644 (bin2hex): New overload for bin2hex function.
6645 * common/rsp-low.c (hex2str): New prototype.
6646 (str2hex): New overload prototype.
6647 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
6648 QEnvironmentUnset and QEnvironmentReset.
6649 (remote_protocol_features): Add QEnvironmentHexEncoded,
6650 QEnvironmentUnset and QEnvironmentReset packets.
6651 (send_environment_packet): New function.
6652 (extended_remote_environment_support): Likewise.
6653 (extended_remote_create_inferior): Call
6654 extended_remote_environment_support.
6655 (_initialize_remote): Add QEnvironmentHexEncoded,
6656 QEnvironmentUnset and QEnvironmentReset packet configs.
6657 * unittests/environ-selftests.c (gdb_selftest_env_var):
6658 New variable.
6659 (test_vector_initialization): New function.
6660 (test_init_from_host_environ): Likewise.
6661 (test_reinit_from_host_environ): Likewise.
6662 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
6663 Likewise.
6664 (test_unset_set_empty_vector): Likewise.
6665 (test_vector_clear): Likewise.
6666 (test_std_move): Likewise.
6667 (test_move_constructor):
6668 (test_self_move): Likewise.
6669 (test_set_unset_reset): Likewise.
6670 (run_tests): Rewrite in terms of the functions above.
6671
654670a4
WP
66722017-08-31 Weimin Pan <weimin.pan@oracle.com>
6673
6674 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
6675 (adi_available): Use a temp variable of type CORE_ADDR as argument
6676 3 when calling target_auxv_search.
6677 (adi_normalize_address): Use masks and xor operators to calculate
6678 normalized address.
6679 (adi_read_versions, adi_write_versions, adi_print_versions)
6680 (do_examine, do_assign): Use paddress.
6681
7755ddb7
JB
66822017-08-29 John Baldwin <jhb@FreeBSD.org>
6683
6684 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
6685 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
6686 out of loop and add supply of FIR.
6687 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
6688 add collect of FIR.
6689
fd437cbc
SM
66902017-08-28 Simon Marchi <simon.marchi@ericsson.com>
6691
3804a343 6692 PR gdb/21827
fd437cbc
SM
6693 * cli/cli-script.c (define_command): Don't convert command name
6694 to lower case.
6695
988f6b3d
JB
66962017-08-25 Joel Brobecker <brobecker@adacore.com>
6697
6698 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
6699 Update all callers accordingly. Remove all code blocks handling
6700 the case where DISPP is not NULL.
6701
663c44ac
JK
67022017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6703
6704 PR symtab/22003
6705 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
6706 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6707 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
6708
f1902523
JK
67092017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6710
6711 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
6712 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
6713 (read_comp_units_from_section): New parameter abbrev_section, use
6714 read_and_check_comp_unit_head, allocate signatured_type if needed.
6715 (create_all_comp_units): Update read_comp_units_from_section caller.
6716
87215ad1
SDJ
67172017-08-23 Pedro Alves <palves@redhat.com>
6718
6719 PR remote/21852
6720 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
6721 to null_ptid and switch to thread without reading the registers
6722 after adding the inferior.
6723
6e41ddec
JK
67242017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6725
6726 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
6727 compile-gcc.
6728 * compile/compile.c (compile_gcc, show_compile_gcc): New.
6729 (compile_to_object): Implement compile_gcc.
6730 (_initialize_compile): Install "set compile-gcc". Initialize
6731 compile_gcc.
6732
e68c32d5
JK
67332017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6734
6735 * compile/compile.c (compile_to_object): Conditionally call
6736 set_verbose. Conditionally call compile or compile_v0.
6737
58afddc6
WP
67382017-08-07 Weimin Pan <weimin.pan@oracle.com>
6739
6740 * sparc64-tdep.h: (adi_normalize_address): New export.
6741 * sparc-nat.h: (open_adi_tag_fd): New export.
6742 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
6743 * sparc64-linux-tdep.c:
6744 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
6745 (sparc64_linux_handle_segmentation_fault): New function.
6746 (sparc64_linux_init_abi): Register
6747 sparc64_linux_handle_segmentation_fault
6748 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
6749 (sparc64_addr_bits_remove): New function.
6750 (sparc64_init_abi): Register sparc64_addr_bits_remove.
6751 (MAX_PROC_NAME_SIZE): New macro.
6752 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
6753 (sparc64adilist): New variable.
6754 (adi_proc_list): New variable.
6755 (find_adi_info): New function.
6756 (add_adi_info): New function.
6757 (get_adi_info_proc): New function.
6758 (get_adi_info): New function.
6759 (info_adi_command): New function.
6760 (read_maps_entry): New function.
6761 (adi_available): New function.
6762 (adi_normalize_address): New function.
6763 (adi_align_address): New function.
6764 (adi_convert_byte_count): New function.
6765 (adi_tag_fd): New function.
6766 (adi_is_addr_mapped): New function.
6767 (adi_read_versions): New function.
6768 (adi_write_versions): New function.
6769 (adi_print_versions): New function.
6770 (do_examine): New function.
6771 (do_assign): New function.
6772 (adi_examine_command): New function.
6773 (adi_assign_command): New function.
6774 (_initialize_sparc64_adi_tdep): New function.
6775
11db9430
SM
67762017-08-22 Simon Marchi <simon.marchi@ericsson.com>
6777
6778 * breakpoint.c (breakpoints_info): Rename to ...
6779 (info_breakpoints_command): ... this.
6780 (watchpoints_info): Rename to ...
6781 (info_watchpoints_command): ... this.
6782 (tracepoints_info): Rename to ...
6783 (info_tracepoints_command): ... this.
6784 (_initialize_breakpoint): Adjust.
6785 * dcache.c (dcache_info): Rename to ...
6786 (info_display_command): ... this.
6787 (_initialize_dcache): Adjust.
6788 * frame.h (args_info): Rename to ...
6789 (info_args_command): ... this.
6790 (locals_info): Rename to ...
6791 (info_locals_command): ... this.
6792 * infcmd.c (nofp_registers_info): Rename to ...
6793 (info_registers_command): ... this.
6794 (float_info): Rename to ...
6795 (info_float_command): ... this.
6796 (program_info): Rename to ...
6797 (info_program_command): ... this.
6798 (all_registers_info): Rename to ...
6799 (info_all_registers_command): ... this.
6800 (vector_info): Rename to ...
6801 (info_vector_command): ... this.
6802 (float_info): Rename to ...
6803 (info_float_command): ... this.
6804 (_initialize_infcmd): Adjust.
6805 * inferior.h (term_info): Rename to ...
6806 (info_terminal_command): ... this.
6807 * inflow.c (term_info): Rename to ...
6808 (info_terminal_command): ... this.
6809 (_initialize_inflow): Adjust.
6810 * infrun.c (signals_info): Rename to ...
6811 (info_signals_command): ... this.
6812 (_initialize_infrun): Adjust.
6813 * objc-lang.c (classes_info): Rename to ...
6814 (info_classes_command): ... this.
6815 (selectors_info): Rename to ...
6816 (info_selectors_command): ... this.
6817 (_initialize_objc_language): Adjust.
6818 * printcmd.c (sym_info): Rename to ...
6819 (info_symbol_command): ... this.
6820 (address_info): Rename to ...
6821 (info_address_command): ... this.
6822 (display_info): Rename to ...
6823 (info_display_command): ... this.
6824 (_initialize_printcmd): Adjust.
6825 * reverse.c (bookmarks_info): Rename to ...
6826 (info_breakpoints_command): ... this.
6827 (_initialize_reverse): Adjust.
6828 * ser-go32.c (dos_info): Rename to ...
6829 (info_serial_command): ... this.
6830 (_initialize_ser_dos): Adjust.
6831 * skip.c (skip_info): Rename to ...
6832 (info_skip_command): ... this.
6833 (_initialize_step_skip): Adjust.
6834 * source.c (line_info): Rename to ...
6835 (info_line_command): ... this.
6836 (source_info): Rename to ...
6837 (info_source_command)
6838 * stack.c (frame_info): Rename to ...
6839 (info_frame_command): ... this.
6840 (locals_info): Rename to ...
6841 (info_locals_command): ... this.
6842 (args_info): Rename to ...
6843 (info_args_command): ... this.
6844 (_initialize_stack): Adjust.
6845 * symtab.c (sources_info): Rename to ...
6846 (info_sources_command): ... this.
6847 (variables_info): Rename to ...
6848 (info_variables_command): ... this.
6849 (functions_info): Rename to ...
6850 (info_functions_command): ... this.
6851 (types_info): Rename to ...
6852 (info_types_command): ... this.
6853 (_initialize_symtab): Adjust.
6854 * target.c (target_info): Rename to ...
6855 (info_target_command): ... this.
6856 (initialize_targets): Adjust.
6857 * tracepoint.c (tvariables_info): Rename to ...
6858 (info_tvariables_command): ... this.
6859 (scope_info): Rename to ...
6860 (info_scope_command): ... this.
6861 (trace_dump_actions): Adjust.
6862 (_initialize_tracepoint): Adjust.
6863
b270e6f9
TT
68642017-08-22 Tom Tromey <tom@tromey.com>
6865
6866 * breakpoint.h (install_breakpoint): Update.
6867 * breakpoint.c (add_solib_catchpoint): Update.
6868 (install_breakpoint): Change argument to a std::unique_ptr.
6869 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
6870 (create_breakpoint_sal, create_breakpoint): Update.
6871 (watch_command_1, catch_exec_command_1)
6872 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
6873 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
6874 Return the breakpoint.
6875 (set_raw_breakpoint_without_location, set_raw_breakpoint)
6876 (new_single_step_breakpoint): Update.
6877 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
6878 std::unique_ptr.
6879 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6880 std::unique_ptr.
6881 * break-catch-sig.c (create_signal_catchpoint): Use
6882 std::unique_ptr.
6883 * ada-lang.c (create_ada_exception_catchpoint): Use
6884 std::unique_ptr.
6885
36bd8eaa
TT
68862017-08-22 Tom Tromey <tom@tromey.com>
6887
6888 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
6889
56f37645
TT
68902017-08-22 Tom Tromey <tom@tromey.com>
6891
6892 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
6893 (lookup_partial_symbol): Update.
6894
0b581c69
TT
68952017-08-22 Tom Tromey <tom@tromey.com>
6896
6897 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
6898 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
6899 (find_and_open_source, symtab_to_fullname): Update.
6900 * psymtab.c (psymtab_to_fullname): Update.
6901
14278e1f
TT
69022017-08-22 Tom Tromey <tom@tromey.com>
6903
6904 * exec.c (exec_file_attach): Update.
6905 * linux-thread-db.c (try_thread_db_load): Update.
6906 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
6907 * utils.c (gdb_realpath): Change return type.
6908 (gdb_realpath_keepfile): Update.
6909 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
6910 (_initialize_utils): Register the new self test.
6911 * source.c (openp): Update.
6912 (find_and_open_source): Update.
6913 * nto-tdep.c (nto_find_and_open_solib): Update.
6914 * main.c (set_gdb_data_directory): Update.
6915 (captured_main_1): Update.
6916 * dwarf2read.c (dwarf2_get_dwz_file): Update
6917 (dw2_map_symbol_filenames): Update.
6918 * auto-load.c (auto_load_safe_path_vec_update): Update.
6919 (filename_is_in_auto_load_safe_path_vec): Change type of
6920 "filename_realp".
6921 (auto_load_objfile_script): Update.
6922 (file_is_auto_load_safe): Update. Use std::string.
6923 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
6924
4971c9a7
TT
69252017-08-22 Tom Tromey <tom@tromey.com>
6926
6927 * utils.c (gdb_realpath_keepfile): Return a
6928 gdb::unique_xmalloc_ptr.
6929 * exec.c (exec_file_attach): Update.
6930 * utils.h (gdb_realpath_keepfile): Return a
6931 gdb::unique_xmalloc_ptr.
6932
e3e41d58
TT
69332017-08-22 Tom Tromey <tom@tromey.com>
6934
6935 * compile/compile.c (compile_file_command): Use
6936 gdb::unique_xmalloc_ptr, std::string.
6937 * utils.c (gdb_abspath): Change return type.
6938 * source.c (openp): Update.
6939 * objfiles.c (allocate_objfile): Update.
6940 * main.c (set_gdb_data_directory): Update.
6941 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
6942
0d999a6e
ZZ
69432017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
6944
6945 * cli-cmds.c (list_commands): List actual code around more than
6946 one location.
6947
329d5e7e
JB
69482017-08-21 John Baldwin <jhb@FreeBSD.org>
6949
6950 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
6951
bf223d3e
PA
69522017-08-21 Pedro Alves <palves@redhat.com>
6953
6954 PR gdb/19487
6955 * c-exp.y (variable production): Handle function aliases.
6956 * minsyms.c (msymbol_is_text): New function.
6957 * minsyms.h (msymbol_is_text): Declare.
6958 * symtab.c (find_function_alias_target): New function.
6959 * symtab.h (find_function_alias_target): Declare.
6960
c973d0aa
PA
69612017-08-21 Pedro Alves <palves@redhat.com>
6962
6963 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
6964 typedefs.
6965 * typeprint.c (whatis_exp): If handling "whatis", and expression
6966 is OP_TYPE, strip one typedef level. Otherwise don't strip
6967 typedefs here.
6968 * valops.c (value_cast): Save "to" type before resolving
6969 stubs/typedefs. Use that type as resulting value's type.
6970
2989a365
TT
69712017-08-18 Tom Tromey <tom@tromey.com>
6972 Pedro Alves <palves@redhat.com>
6973
6974 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
6975 * sol-thread.c (sol_thread_resume, sol_thread_wait)
6976 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
6977 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
6978 * proc-service.c (ps_xfer_memory): Use scoped_restore.
6979 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
6980 (linux_get_siginfo_data): Add "thread" argument. Use
6981 scoped_restore.
6982 * linux-nat.c (linux_child_follow_fork)
6983 (check_stopped_by_watchpoint): Use scoped_restore.
6984 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
6985 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
6986 (restore_inferior_ptid, save_inferior_ptid): Remove.
6987 * btrace.c (btrace_fetch): Use scoped_restore.
6988 * bsd-uthread.c (bsd_uthread_fetch_registers)
6989 (bsd_uthread_store_registers): Use scoped_restore.
6990 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
6991 scoped_restore.
6992 * aix-thread.c (aix_thread_resume, aix_thread_wait)
6993 (aix_thread_xfer_partial): Use scoped_restore.
6994 * inferior.h (save_inferior_ptid): Remove.
6995
e60eb288
YQ
69962017-08-18 Yao Qi <yao.qi@linaro.org>
6997
6998 PR tdep/21818
6999 * arm-tdep.c (gdb_print_insn_arm): Mark
7000 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
7001
6d580b63
YQ
70022017-08-18 Yao Qi <yao.qi@linaro.org>
7003
7004 * NEWS: Mention GDBserver's new option "--selftest".
7005 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
7006 * selftest.c: Move it to common/selftest.c.
7007 * selftest.h: Move it to common/selftest.h.
7008 * selftest-arch.c (reset): New function.
7009 (tests_with_arch): Call reset.
7010
86dcbf50
YQ
70112017-08-18 Yao Qi <yao.qi@linaro.org>
7012
7013 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
7014 instead of exception_fprintf and printf_filtered.
7015
7649770c
YQ
70162017-08-18 Yao Qi <yao.qi@linaro.org>
7017
7018 * selftest.c (register_self_test): Rename it to
7019 selftests::register_test.
7020 (run_self_tests): selftest::run_tests.
7021 * selftest.h: Update declarations.
7022 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
7023 selftests::register_test_foreach_arch.
7024 * selftest-arch.h: Update declaration.
7025 * aarch64-tdep.c: Update.
7026 * arm-tdep.c: Likewise.
7027 * disasm-selftests.c: Likewise.
7028 * dwarf2loc.c: Likewise.
7029 * dwarf2-frame.c: Likewise.
7030 * findvar.c: Likewise.
7031 * gdbarch-selftests.c: Likewise.
7032 * maint.c (maintenance_selftest): Likewise.
7033 * regcache.c: Likewise.
7034 * rust-exp.y: Likewise.
7035 * selftest-arch.c: Likewise.
7036 * unittests/environ-selftests.c: Likewise.
7037 * unittests/function-view-selftests.c: Likewise.
7038 * unittests/offset-type-selftests.c: Likewise.
7039 * unittests/optional-selftests.c: Likewise.
7040 * unittests/scoped_restore-selftests.c: Likewise.
7041 * utils-selftests.c: Likewise.
7042
b0cba12e
PA
70432017-08-17 Pedro Alves <palves@redhat.com>
7044
7045 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
7046 local.
7047
4c8aa72d
PA
70482017-08-17 Pedro Alves <palves@redhat.com>
7049
7050 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
7051 field.
7052 (reset_die_in_process): Delete, replaced by ...
7053 (process_die_scope): ... this new class. Make it responsible for
7054 freeing cu->line_header too.
7055 (process_die): Use process_die_scope.
7056 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
7057 cu->line_header_die_owner. Don't release the line header if it's
7058 owned by the CU.
7059 (setup_type_unit_groups): Make the CU/DIE own the line header.
7060 Don't release the line header here.
7061
ba713918
AL
70622017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
7063
7064 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
7065
44d0fb3a
RK
70662017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
7067
7068 * NEWS: Mention new shortcuts for nexti and stepi in TUI
7069 Single-Key mode
7070
a5afdb16
RK
70712017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
7072
7073 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
7074 mode command list.
7075
47613aeb
SH
70762017-08-15 Stafford Horne <shorne@gmail.com>
7077
7078 * MAINTAINERS (Write After Approval): Add Stafford Horne.
7079
9c3cc999
SH
70802017-08-15 Stafford Horne <shorne@gmail.com>
7081
7082 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
7083
206726fb
SDJ
70842017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
7085
7086 PR gdb/21954
7087 * infcmd.c (unset_environment_command): Use the 'clear' method on
7088 the environment instead of resetting it.
7089
0335ac6d
JB
70902017-08-15 John Baldwin <jhb@FreeBSD.org>
7091
7092 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
7093 platforms.
7094
d3abe1c8
TT
70952017-08-14 Tom Tromey <tom@tromey.com>
7096
7097 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
7098 (print_binary_chars): Likewise.
7099 (BITS_IN_BYTES): Remove.
7100
d6382fff
TT
71012017-08-14 Tom Tromey <tom@tromey.com>
7102
7103 PR gdb/21675
7104 * valprint.c (LOW_ZERO): Change value to 034.
7105 (print_octal_chars): Add static_asserts for octal constants.
7106 * printcmd.c (print_scalar_formatted): Add 'd' case.
7107
f978cb06
TT
71082017-08-11 Tom Tromey <tom@tromey.com>
7109
7110 * symfile.c (add_symbol_file_command): Use std::vector.
7111
2f5404b3
TT
71122017-08-14 Tom Tromey <tom@tromey.com>
7113
7114 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
7115 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
7116 std::move.
7117 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
7118
de7985c3
PA
71192017-08-11 Pedro Alves <palves@redhat.com>
7120
7121 * infrun.c (process_event_stop_test): Adjust
7122 function_name_is_marked_for_skip call.
7123 * skip.c: Include <list>.
7124 (skiplist_entry): Make it a class with private fields, and
7125 getters/setters.
7126 (skiplist_entry_chain): Delete.
7127 (skiplist_entries): New.
7128 (skiplist_entry_count): Delete.
7129 (highest_skiplist_entry_num): New.
7130 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
7131 (add_skiplist_entry): Delete.
7132 (skiplist_entry::skiplist_entry): New.
7133 (skiplist_entry::add_entry): New.
7134 (skip_file_command, skip_function): Adjust.
7135 (compile_skip_regexp): Delete.
7136 (skip_command): Don't compile regexp here. Adjust to use
7137 skiplist_entry::add_entry.
7138 (skip_info): Adjust to use range-for and getters.
7139 (skip_enable_command, skip_disable_command): Adjust to use
7140 range-for and setters.
7141 (skip_delete_command): Adjust to use std::list.
7142 (add_skiplist_entry): Delete.
7143 (skip_file_p): Delete, refactored as ...
7144 (skiplist_entry::do_skip_file_p): ... this new method.
7145 (skip_gfile_p): Delete, refactored as ...
7146 (skiplist_entry::do_gskip_file_p): ... this new method.
7147 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
7148 (skiplist_entry::skip_function_p): ... this new method.
7149 (function_name_is_marked_for_skip): Now returns bool, and takes
7150 the function sal by const reference. Adjust to use range-for and
7151 skiplist_entry methods.
7152 (_initialize_step_skip): Remove references to
7153 skiplist_entry_chain, skiplist_entry_count.
7154 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
7155 takes the function sal by const reference.
7156
be7d3cd5
YQ
71572017-08-11 Yao Qi <yao.qi@linaro.org>
7158
7159 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
7160 (dwarf2_frame_cache): Remove reset_cache_cleanup.
7161 (dwarf2_frame_cache):
7162 * frame-unwind.c (frame_unwind_try_unwinder): Catch
7163 RETURN_MASK_ALL and set *this_case to NULL.
7164 * frame-unwind.h: Update comments.
7165
1c90d9f0
YQ
71662017-08-11 Yao Qi <yao.qi@linaro.org>
7167
7168 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
7169 (dwarf2_frame_state_copy_regs): Remove.
7170 (dwarf2_frame_state_free_regs): Remove.
7171 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
7172 (dwarf2_restore_rule): Call method .alloc_regs instead of
7173 dwarf2_frame_state_alloc_regs.
7174 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
7175 constructor. Call std::move.
7176 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
7177 (dwarf2_frame_cache): Likewise.
7178
7179 [GDB_SELF_TEST]: Include selftest.h and
7180 selftest-arch.h.
7181 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
7182 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
7183 execute_cfa_program_test.
7184
7185 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
7186 copy ctor, assignment operator, move assignment.
7187 <alloc_regs>: New method.
7188 <swap>: New method.
7189 (struct dwarf2_frame_state): Delete dtor.
7190 (dwarf2_frame_state_alloc_regs): Remove declaration.
7191 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
7192 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
7193
afe37d6b
YQ
71942017-08-11 Yao Qi <yao.qi@linaro.org>
7195
7196 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
7197 (dwarf2_frame_state::dwarf2_frame_state): New.
7198 (dwarf2_frame_state::~dwarf2_frame_state): New.
7199 (dwarf2_fetch_cfa_info): Update.
7200 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
7201 rather than a pointer. Update code.
7202 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
7203 dtor.
7204 <data_align, code_align, retaddr_column>: Change them to const.
7205 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
7206 to bool.
7207
b348037f
YQ
72082017-08-11 Yao Qi <yao.qi@linaro.org>
7209
7210 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
7211 <loc.exp>: New field.
7212 * dwarf2-frame.c (execute_cfa_program): Update.
7213 (dwarf2_frame_prev_register): Update.
7214
e7c9de26
PA
72152017-08-10 Pedro Alves <palves@redhat.com>
7216
7217 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
7218
e8c6b620
JB
72192017-08-09 John Baldwin <jhb@FreeBSD.org>
7220
7221 * fbsd-nat.c (struct fbsd_fork_info): Remove.
7222 (fbsd_pending_children): Use std::list.
7223 (fbsd_remember_child): Likewise.
7224 (fbsd_is_child_pending): Likewise.
7225 (fbsd_pending_vfork_done): Use std::forward_list.
7226 (fbsd_add_vfork_done): Likewise.
7227 (fbsd_is_vfork_done_pending): Likewise.
7228 (fbsd_next_vfork_done): Likewise.
7229
e4a26669
JB
72302017-08-09 John Baldwin <jhb@FreeBSD.org>
7231
7232 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
7233 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
7234 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
7235 for `mapfilename'.
7236 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 7237 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 7238
142311d3
JB
72392017-08-09 John Baldwin <jhb@FreeBSD.org>
7240
7241 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
7242 "filestuff.h".
7243 (fbsd_find_memory_regions): Fix `mapfile' initialization.
7244
42fa2e0e
TT
72452017-08-09 Tom Tromey <tom@tromey.com>
7246
7247 * skip.c (skiplist_entry): New constructor.
7248 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
7249 (skiplist_entry::file_is_glob): Now bool.
7250 (skiplist_entry::file, skiplist_entry::function): Now
7251 std::string.
7252 (make_skip_entry): Return a unique_ptr. Use new.
7253 (free_skiplist_entry, free_skiplist_entry_cleanup)
7254 (make_free_skiplist_entry_cleanup): Remove.
7255 (skip_command, skip_disable_command, add_skiplist_entry)
7256 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
7257 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
7258 (function_name_is_marked_for_skip): Update.
7259 (skip_delete_command): Update. Use delete.
7260
cd3af38d
JW
72612017-08-09 Jiong Wang <jiong.wang@arm.com>
7262
7263 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
7264 (aarch64_linux_core_read_description): New function.
7265 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
7266
29592bde
PA
72672017-08-09 Pedro Alves <palves@redhat.com>
7268
7269 * cp-name-parser.y (cp_comp_to_string): Return a
7270 gdb::unique_xmalloc_ptr<char>.
7271 * cp-support.c (replace_typedefs_qualified_name)
7272 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
7273 (cp_canonicalize_string_full): Use op= instead of explicit
7274 convertion.
7275 (cp_class_name_from_physname, method_name_from_physname)
7276 (cp_func_name, cp_remove_params): Adjust to use
7277 gdb::unique_xmalloc_ptr<char>.
7278 * cp-support.h (cp_comp_to_string): Return a
7279 gdb::unique_xmalloc_ptr<char>.
7280 * python/py-type.c (typy_lookup_type): Adjust to use
7281 gdb::unique_xmalloc_ptr<char>.
7282
b3340438
L
72832017-08-09 H.J. Lu <hongjiu.lu@intel.com>
7284
7285 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
7286
e88e8651
YQ
72872017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
7288 Yao Qi <yao.qi@linaro.org>
7289
7290 * cp-support.c (cp_canonicalize_string_full): Use
7291 gdb::unique_xmalloc_ptr<char>.
7292 (cp_canonicalize_string): Likewise.
7293
f5a29eb0
YQ
72942017-08-09 Yao Qi <yao.qi@linaro.org>
7295
7296 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
7297 * regformats/i386/amd64-avx-avx512.dat: Remove.
7298 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
7299 * regformats/i386/amd64-avx-mpx.dat:Remove.
7300 * regformats/i386/amd64-avx.dat: Remove.
7301 * regformats/i386/amd64-mpx.dat: Remove.
7302 * regformats/i386/i386-avx-avx512.dat: Remove.
7303 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
7304 * regformats/i386/i386-avx-mpx.dat: Remove.
7305 * regformats/i386/i386-mmx.dat: Remove.
7306 * regformats/i386/i386-mpx.dat: Remove.
7307
57757c2f
YQ
73082017-08-09 Yao Qi <yao.qi@linaro.org>
7309
7310 * amd64-tdep.h (tdesc_x32): Remove the declaration.
7311 * amd64-tdep.c: Don't include features/i386/x32*.c.
7312 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
7313 functions.
7314 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
7315 and i386/x32-avx-avx512.
7316 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
7317 and i386/x32.xml.
7318 * features/i386/x32-avx-avx512.c: Removed.
7319 * features/i386/x32-avx-avx512.xml: Removed.
7320 * features/i386/x32-avx.c: Removed.
7321 * features/i386/x32-avx.xml: Removed.
7322 * features/i386/x32.c: Removed.
7323 * features/i386/x32.xml: Removed.
7324 * regformats/i386/x32-avx-avx512.dat: Removed.
7325 * regformats/i386/x32-avx.dat: Removed.
7326 * regformats/i386/x32.dat: Removed.
7327
ba7b109b
MR
73282017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7329
7330 PR breakpoints/21886
7331 * mem-break.c (default_memory_insert_breakpoint): Use
7332 `->placed_address' rather than `->reqstd_address' for the
7333 breakpoint location.
7334
e347efc3
MR
73352017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7336
7337 * arch-utils.c (default_print_insn): Remove arch/mach/endian
7338 assertions.
7339
0dba2a6c
MR
73402017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7341
7342 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
7343 a union of `tdep_info', `tdesc_data' and `id'.
7344 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
7345 rather than `info.tdep_info'.
7346 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
7347 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7348 * i386-tdep.c (i386_gdbarch_init): Likewise.
7349 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
7350 * mips-tdep.c (mips_gdbarch_init): Likewise.
7351 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7352 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7353 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
7354 `info.tdep_info'.
7355 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
7356 `info.tdep_info'.
7357 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7358 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
7359 `info.tdep_info'.
7360 * spu-tdep.c (spu_gdbarch_init): Likewise.
7361 * gdbarch.h: Regenerate.
7362
16eb6b2d
LS
73632017-08-07 Leszek Swirski <leszeks@google.com>
7364
7b005726 7365 PR symtab/20899
16eb6b2d
LS
7366 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
7367
74cbb09e
SM
73682017-08-07 Simon Marchi <simon.marchi@ericsson.com>
7369
7370 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
7371 (gdbsim_open): Rename gdb_argv args object to argv.
7372
ee0c3293
TT
73732017-08-05 Tom Tromey <tom@tromey.com>
7374
7375 * compile/compile-object-load.c (compile_object_load): Use
7376 gdb::unique_xmalloc_ptr.
7377 * cli/cli-dump.c (scan_filename): Rename from
7378 scan_filename_with_cleanup. Change return type.
7379 (scan_expression): Rename from scan_expression_with_cleanup.
7380 Change return type.
7381 (dump_memory_to_file, dump_value_to_file, restore_command):
7382 Use gdb::unique_xmalloc_ptr. Update.
7383 * cli/cli-cmds.c (find_and_open_script): Use
7384 gdb::unique_xmalloc_ptr.
7385 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
7386 * symmisc.c (maintenance_print_symbols)
7387 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
7388 * symfile.c (symfile_bfd_open, generic_load)
7389 (add_symbol_file_command, remove_symbol_file_command): Use
7390 gdb::unique_xmalloc_ptr.
7391 * source.c (openp): Use gdb::unique_xmalloc_ptr.
7392 * psymtab.c (maintenance_print_psymbols): Use
7393 gdb::unique_xmalloc_ptr.
7394 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
7395 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
7396 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
7397 (reload_shared_libraries_1): Likewise.
7398
3232fabd
TT
73992017-08-05 Tom Tromey <tom@tromey.com>
7400
7401 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
7402 (rust_op_vector, rust_set_vector): New typedefs.
7403 (current_parser): New global.
7404 (work_obstack): Change to pointer type. Update all users.
7405 (rust_ast, pstate): Remove globals.
7406 (struct rust_parser): New.
7407 (%union) <params, field_inits>: Change type.
7408 (start, tuple_expr, unit_expr, struct_expr_list, literal)
7409 (field_expr, expr_list, maybe_expr_list, type_list): Update.
7410 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
7411 (convert_params_to_types, convert_params_to_expression): Change
7412 type of "params".
7413 (ast_string): Change type of "fields".
7414 (rust_parse): Make a rust_parser. Remove cleanups.
7415 (rust_lex_tests): Make and install an auto_obstack.
7416
f02fd774
YQ
74172017-08-04 Yao Qi <yao.qi@linaro.org>
7418
7419 * configure.srv (ipa_x32_linux_regobj): New.
7420 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
7421 instead of X86_TDESC_AVX512.
7422 (initialize_low_tracepoint): Call
7423 init_registers_x32_avx_avx512_linux.
7424
91975afd
YQ
74252017-08-04 Yao Qi <yao.qi@linaro.org>
7426
7427 * utils.h (gdb_argv): Add namespace std for nullptr_t.
7428
2331fa3a
RK
74292017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
7430
7431 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
7432
744e4fe1
TT
74332017-08-03 Tom Tromey <tom@tromey.com>
7434
7435 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
7436 Remove.
7437 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
7438
1c034b67
TT
74392017-08-03 Tom Tromey <tom@tromey.com>
7440
7441 * python/py-param.c (compute_enum_values): Use gdb_argv.
7442
773a1edc
TT
74432017-08-03 Tom Tromey <tom@tromey.com>
7444
7445 * utils.h (struct gdb_argv_deleter): New.
7446 (gdb_argv): New class.
7447 * utils.c (gdb_argv::reset): New method.
7448 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
7449 * tracefile.c (tsave_command): Use gdb_argv.
7450 * top.c (new_ui_command): Use gdb_argv.
7451 * symmisc.c (maintenance_print_symbols)
7452 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
7453 * symfile.c (symbol_file_command, generic_load)
7454 (remove_symbol_file_command): Use gdb_argv.
7455 * stack.c (backtrace_command): Use gdb_argv.
7456 * source.c (add_path, show_substitute_path_command)
7457 (unset_substitute_path_command, set_substitute_path_command):
7458 Use gdb_argv.
7459 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
7460 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
7461 * remote.c (extended_remote_run, remote_put_command)
7462 (remote_get_command, remote_delete_command): Use gdb_argv.
7463 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
7464 (gdbsim_open): Use gdb_argv.
7465 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
7466 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
7467 * procfs.c (procfs_info_proc): Use gdb_argv.
7468 * interps.c (interpreter_exec_cmd): Use gdb_argv.
7469 * infrun.c (handle_command): Use gdb_argv.
7470 * inferior.c (add_inferior_command, clone_inferior_command):
7471 Use gdb_argv.
7472 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
7473 * exec.c (exec_file_command): Use gdb_argv.
7474 * cli/cli-cmds.c (alias_command): Use gdb_argv.
7475 * compile/compile.c (build_argc_argv): Use gdb_argv.
7476
0d50bde3
TT
74772017-08-03 Tom Tromey <tom@tromey.com>
7478
7479 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
7480
7f968c89
TT
74812017-08-03 Tom Tromey <tom@tromey.com>
7482
7483 * python/python.c (compute_python_string): Return std::string.
7484 (gdbpy_eval_from_control_command): Update.
7485 (do_start_initialization): Use std::string.
7486 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
7487 xstrprintf.
7488 * python/py-breakpoint.c (local_setattro): Use string_printf, not
7489 xstrprintf.
7490
3c9ebddd
TT
74912017-08-03 Tom Tromey <tom@tromey.com>
7492
7493 * top.h (do_restore_instream_cleanup): Remove.
7494 * top.c (do_restore_instream_cleanup): Remove.
7495 (read_command_file): Use scoped_restore.
7496 * cli/cli-script.c (execute_user_command): Use scoped_restore.
7497
b51b225e
TT
74982017-08-03 Tom Tromey <tom@tromey.com>
7499
7500 * cli/cli-script.c (execute_user_command)
7501 (execute_control_command): Use scoped_restore.
7502
ac991630
TT
75032017-08-03 Tom Tromey <tom@tromey.com>
7504
7505 * cli/cli-script.c (do_restore_user_call_depth): Remove.
7506 (execute_user_command): Remove user_call_depth; use
7507 user_args_stack's size instead.
7508
898e0c8e
TT
75092017-08-03 Tom Tromey <tom@tromey.com>
7510
7511 * top.h (in_user_command): Remove.
7512 * top.c (in_user_command): Remove.
7513 * cli/cli-script.c (do_restore_user_call_depth)
7514 (execute_user_command): Update.
7515
26fcd5d7
TT
75162017-08-03 Tom Tromey <tom@tromey.com>
7517
7518 * valops.c (search_struct_method): Use gdb::byte_vector.
7519 * valarith.c (value_concat): Use std::vector.
7520 * target.c (memory_xfer_partial): Use gdb::byte_vector.
7521 (simple_search_memory): Likewise.
7522 * printcmd.c (find_string_backward): Use gdb::byte_vector.
7523 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
7524 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
7525 * elfread.c (elf_rel_plt_read): Use std::string.
7526 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
7527 * cli/cli-dump.c (restore_section_callback): Use
7528 gdb::byte_vector.
7529
7c218e6c
TT
75302017-08-03 Tom Tromey <tom@tromey.com>
7531
7532 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
7533
31b68d4a
TT
75342017-08-03 Tom Tromey <tom@tromey.com>
7535
7536 * tui/tui-regs.c (tui_restore_gdbout): Remove.
7537 (tui_register_format): Use scoped_restore.
7538
2ec845e7
TT
75392017-08-03 Tom Tromey <tom@tromey.com>
7540
7541 * reverse.c (exec_direction_default): Remove.
7542 (exec_reverse_once): Use scoped_restore.
7543 * remote.c (restore_remote_timeout): Remove.
7544 (remote_flash_erase, remote_flash_write, remote_flash_done)
7545 (readchar, remote_serial_write): Use scoped_restore.
7546 * cli/cli-script.c (struct source_cleanup_lines_args)
7547 (source_cleanup_lines): Remove.
7548 (script_from_file): Use scoped_restore.
7549 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
7550 (source_command): Use scoped_restore.
7551
b3bc8453
TT
75522017-08-03 Tom Tromey <tom@tromey.com>
7553
7554 * utils.h (make_cleanup_free_so): Remove.
7555 * utils.c (do_free_so, make_cleanup_free_so): Remove.
7556 * solist.h (struct so_deleter): New.
7557 (so_list_up): New typedef.
7558 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
7559
e3ad2841
TT
75602017-08-03 Tom Tromey <tom@tromey.com>
7561
7562 * utils.h (make_cleanup_restore_current_language): Remove.
7563 * utils.c (do_restore_current_language)
7564 (make_cleanup_restore_current_language): Remove.
7565 * parse.c (parse_exp_in_context_1)
7566 (parse_expression_with_language): Use
7567 scoped_restore_current_language.
7568 * mi/mi-main.c (mi_cmd_execute): Use
7569 scoped_restore_current_language.
7570 * language.h (scoped_restore_current_language): New class.
7571
b80cf838
TT
75722017-08-03 Tom Tromey <tom@tromey.com>
7573
7574 * compile/compile.c (cleanup_unlink_file): Remove.
7575 (compile_to_object): Use gdb::unlinker.
7576 (eval_compile_command): Likewise.
7577
fad0444a
TT
75782017-08-03 Tom Tromey <tom@tromey.com>
7579
7580 * utils.h (make_cleanup_fclose): Remove.
7581 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
7582
6e7bc05c
TT
75832017-08-03 Tom Tromey <tom@tromey.com>
7584
7585 * top.c (open_terminal_stream): Return gdb_file_up.
7586 (new_ui_command): Update.
7587
4a45905b
TT
75882017-08-03 Tom Tromey <tom@tromey.com>
7589
7590 * source.c (print_source_lines_base, forward_search_command)
7591 (reverse_search_command): Use gdb_file_up.
7592
7cd06d6e
TT
75932017-08-03 Tom Tromey <tom@tromey.com>
7594
7595 * fbsd-nat.c (fbsd_find_memory_regions): Update.
7596
ed166945
TT
75972017-08-03 Tom Tromey <tom@tromey.com>
7598
7599 * cli/cli-cmds.c (find_and_open_script): Change return type.
7600 Remove "streamp" and "full_path" parameters.
7601 (source_script_with_search): Update.
7602 * auto-load.c (source_script_file): Update.
7603 * cli/cli-cmds.h (find_and_open_script): Change type.
7604 (open_script): New struct.
7605
d419f42d
TT
76062017-08-03 Tom Tromey <tom@tromey.com>
7607
7608 * xml-support.c (xml_fetch_content_from_file): Update.
7609 * ui-file.c (stdio_file::open): Update.
7610 * tracefile-tfile.c (tfile_start): Update.
7611 * remote.c (remote_file_put, remote_file_get): Update.
7612 * nat/linux-procfs.c (linux_proc_get_int)
7613 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
7614 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
7615 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
7616 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7617 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
7618 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
7619 * linux-nat.c (linux_proc_pending_signals): Update.
7620 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
7621 (file_closer): Remove.
7622 * compile/compile.c (compile_to_object): Update.
7623 * common/filestuff.h (struct gdb_file_deleter): New.
7624 (gdb_file_up): New typedef.
7625 (gdb_fopen_cloexec): Change return type.
7626 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
7627 * cli/cli-dump.c (fopen_with_cleanup): Remove.
7628 (dump_binary_file, restore_binary_file): Update.
7629 * auto-load.c (auto_load_objfile_script_1): Update.
7630
4a2b031d
TT
76312017-08-03 Tom Tromey <tom@tromey.com>
7632
7633 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
7634 (info_static_tracepoint_markers_command): Likewise.
7635 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
7636 * skip.c (skip_info): Use ui_out_emit_table.
7637 * progspace.c (print_program_space): Use ui_out_emit_table.
7638 * osdata.c (info_osdata): Use ui_out_emit_table.
7639 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
7640 ui_out_emit_table.
7641 * linux-thread-db.c (info_auto_load_libthread_db): Use
7642 ui_out_emit_table.
7643 * inferior.c (print_inferior): Use ui_out_emit_table.
7644 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
7645 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
7646 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
7647 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
7648 * ui-out.h (class ui_out_emit_table): New.
7649
a4f320fd
MR
76502017-08-02 Maciej W. Rozycki <macro@imgtec.com>
7651
7652 * mips-tdep.c (mips_fpu_type_str): New function.
7653 (mips_dump_tdep): Call it.
7654
a2f1f308
MR
76552017-08-01 Maciej W. Rozycki <macro@imgtec.com>
7656
7657 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
7658 `->mips_fpu_type'.
7659
7e5ed83b
XR
76602017-07-31 Xavier Roirand <roirand@adacore.com>
7661
7662 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7663
4c9dc811
XR
76642017-07-27 Xavier Roirand <roirand@adacore.com>
7665
7666 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
7667
27d41eac
YQ
76682017-07-26 Yao Qi <yao.qi@linaro.org>
7669
7670 * cli/cli-cmds.c (maintenancechecklist): New variable.
7671 * gdbcmd.h (maintenancechecklist): Declare it.
7672 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
7673 Call i386_linux_read_description with different masks.
7674 * maint.c (maintenance_check_command): New function.
7675 (_initialize_maint_cmds): Call add_prefix_cmd.
7676 * target-descriptions.c (tdesc_reg): override operator != and ==.
7677 (tdesc_type): Likewise.
7678 (tdesc_feature): Likewise.
7679 (target_desc): Likewise.
7680 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
7681 (maintenance_check_xml_descriptions): New function.
7682 (_initialize_target_descriptions) Add command "xml-descriptions".
7683 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
7684
ea03d0d3
YQ
76852017-07-26 Yao Qi <yao.qi@linaro.org>
7686
7687 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
7688 Include features/i386/32bit-*.c.
7689 (i386_linux_read_description): Generate target description if it
7690 doesn't exist.
7691 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
7692 functions.
7693 * features/i386/32bit-linux.c: Re-generated.
7694 * features/i386/32bit-sse.c: Likewise.
7695 * target-descriptions.c (print_c_feature::visit): Print code to
7696 set register number if needed.
7697 (print_c_feature) <m_next_regnum>: New field.
7698
25aa13e5
YQ
76992017-07-26 Yao Qi <yao.qi@linaro.org>
7700
7701 * features/Makefile (CFILES): Rename with TDESC_CFILES.
7702 (FEATURE_XMLFILES): New.
7703 (FEATURE_CFILES): New.
7704 New rules.
7705 (clean-cfiles): Remove generated c files.
7706 * features/i386/32bit-avx.c: Generated.
7707 * features/i386/32bit-avx512.c: Generated.
7708 * features/i386/32bit-core.c: Generated.
7709 * features/i386/32bit-linux.c: Generated.
7710 * features/i386/32bit-mpx.c: Generated.
7711 * features/i386/32bit-pkeys.c: Generated.
7712 * features/i386/32bit-sse.c: Generated.
7713 * target-descriptions.c: Include algorithm.
7714 (tdesc_element_visitor): Add method visit_end.
7715 (print_c_tdesc): Implement visit_end.
7716 (print_c_tdesc:: m_filename_after_features): Move it to
7717 protected.
7718 (print_c_feature): New class.
7719 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
7720 name starts with "i386/32bit-".
7721
6eb1e6a8
YQ
77222017-07-26 Yao Qi <yao.qi@linaro.org>
7723
7724 * target-descriptions.c (tdesc_element_visitor): New class.
7725 (tdesc_element): New class.
7726 (tdesc_reg): Inherit from tdesc_element.
7727 (tdesc_reg::accept): New function.
7728 (tdesc_type): Inherit from tdesc_element.
7729 (tdesc_type::accept): New function.
7730 (tdesc_feature): Inherit from tdesc_element.
7731 (tdesc_feature::accept): New function.
7732 (target_desc): Inherit from tdesc_element.
7733 (target_desc::target_desc): New.
7734 (target_desc::~target_desc): New.
7735 (target_desc::accept): New.
7736 (allocate_target_description): Use new.
7737 (free_target_description): Use delete.
7738 (print_c_tdesc): New class.
7739 (maint_print_c_tdesc_cmd): Adjust.
7740
7741 * features/aarch64.c: Re-generated.
7742 * features/arc-arcompact.c: Re-generated.
7743 * features/arc-v2.c: Re-generated.
7744 * features/arm/arm-with-iwmmxt.c: Re-generated.
7745 * features/arm/arm-with-m.c: Re-generated.
7746 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
7747 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
7748 * features/arm/arm-with-neon.c: Re-generated.
7749 * features/arm/arm-with-vfpv2.c: Re-generated.
7750 * features/arm/arm-with-vfpv3.c: Re-generated.
7751 * features/i386/amd64-avx-avx512.c: Re-generated.
7752 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7753 * features/i386/amd64-avx.c: Re-generated.
7754 * features/i386/amd64-avx-linux.c: Re-generated.
7755 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
7756 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7757 * features/i386/amd64-avx-mpx.c: Re-generated.
7758 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
7759 * features/i386/amd64.c: Re-generated.
7760 * features/i386/amd64-linux.c: Re-generated.
7761 * features/i386/amd64-mpx.c: Re-generated.
7762 * features/i386/amd64-mpx-linux.c: Re-generated.
7763 * features/i386/i386-avx-avx512.c: Re-generated.
7764 * features/i386/i386-avx-avx512-linux.c: Re-generated.
7765 * features/i386/i386-avx.c: Re-generated.
7766 * features/i386/i386-avx-linux.c: Re-generated.
7767 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
7768 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
7769 * features/i386/i386-avx-mpx.c: Re-generated.
7770 * features/i386/i386-avx-mpx-linux.c: Re-generated.
7771 * features/i386/i386.c: Re-generated.
7772 * features/i386/i386-linux.c: Re-generated.
7773 * features/i386/i386-mmx.c: Re-generated.
7774 * features/i386/i386-mmx-linux.c: Re-generated.
7775 * features/i386/i386-mpx.c: Re-generated.
7776 * features/i386/i386-mpx-linux.c: Re-generated.
7777 * features/i386/x32-avx-avx512.c: Re-generated.
7778 * features/i386/x32-avx-avx512-linux.c: Re-generated.
7779 * features/i386/x32-avx.c: Re-generated.
7780 * features/i386/x32-avx-linux.c: Re-generated.
7781 * features/i386/x32.c: Re-generated.
7782 * features/i386/x32-linux.c: Re-generated.
7783 * features/microblaze.c: Re-generated.
7784 * features/microblaze-with-stack-protect.c: Re-generated.
7785 * features/mips64-dsp-linux.c: Re-generated.
7786 * features/mips64-linux.c: Re-generated.
7787 * features/mips-dsp-linux.c: Re-generated.
7788 * features/mips-linux.c: Re-generated.
7789 * features/nds32.c: Re-generated.
7790 * features/nios2.c: Re-generated.
7791 * features/nios2-linux.c: Re-generated.
7792 * features/rs6000/powerpc-32.c: Re-generated.
7793 * features/rs6000/powerpc-32l.c: Re-generated.
7794 * features/rs6000/powerpc-403.c: Re-generated.
7795 * features/rs6000/powerpc-403gc.c : Re-generated.
7796 * features/rs6000/powerpc-405.c: Re-generated.
7797 * features/rs6000/powerpc-505.c: Re-generated.
7798 * features/rs6000/powerpc-601.c: Re-generated.
7799 * features/rs6000/powerpc-602.c: Re-generated.
7800 * features/rs6000/powerpc-603.c: Re-generated.
7801 * features/rs6000/powerpc-604.c: Re-generated.
7802 * features/rs6000/powerpc-64.c: Re-generated.
7803 * features/rs6000/powerpc-64l.c: Re-generated.
7804 * features/rs6000/powerpc-7400.c: Re-generated.
7805 * features/rs6000/powerpc-750.c: Re-generated.
7806 * features/rs6000/powerpc-860.c: Re-generated.
7807 * features/rs6000/powerpc-altivec32.c: Re-generated.
7808 * features/rs6000/powerpc-altivec32l.c: Re-generated.
7809 * features/rs6000/powerpc-altivec64.c: Re-generated.
7810 * features/rs6000/powerpc-altivec64l.c: Re-generated.
7811 * features/rs6000/powerpc-cell32l.c: Re-generated.
7812 * features/rs6000/powerpc-cell64l.c: Re-generated.
7813 * features/rs6000/powerpc-e500.c: Re-generated.
7814 * features/rs6000/powerpc-e500l.c: Re-generated.
7815 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
7816 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
7817 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
7818 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
7819 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
7820 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
7821 * features/rs6000/powerpc-vsx32.c: Re-generated.
7822 * features/rs6000/powerpc-vsx32l.c: Re-generated.
7823 * features/rs6000/powerpc-vsx64.c: Re-generated.
7824 * features/rs6000/powerpc-vsx64l.c: Re-generated.
7825 * features/rs6000/rs6000.c: Re-generated.
7826 * features/s390-linux32.c: Re-generated.
7827 * features/s390-linux32v1.c: Re-generated.
7828 * features/s390-linux32v2.c: Re-generated.
7829 * features/s390-linux64.c: Re-generated.
7830 * features/s390-linux64v1.c: Re-generated.
7831 * features/s390-linux64v2.c: Re-generated.
7832 * features/s390-te-linux64.c: Re-generated.
7833 * features/s390-tevx-linux64.c: Re-generated.
7834 * features/s390-vx-linux64.c: Re-generated.
7835 * features/s390x-linux64.c: Re-generated.
7836 * features/s390x-linux64v1.c: Re-generated.
7837 * features/s390x-linux64v2.c: Re-generated.
7838 * features/s390x-te-linux64.c: Re-generated.
7839 * features/s390x-tevx-linux64.c: Re-generated.
7840 * features/s390x-vx-linux64.c: Re-generated.
7841 * features/sparc/sparc32-solaris.c: Re-generated.
7842 * features/sparc/sparc64-solaris.c: Re-generated.
7843 * features/tic6x-c62x.c: Re-generated.
7844 * features/tic6x-c62x-linux.c: Re-generated.
7845 * features/tic6x-c64x.c: Re-generated.
7846 * features/tic6x-c64x-linux.c: Re-generated.
7847 * features/tic6x-c64xp.c: Re-generated.
7848 * features/tic6x-c64xp-linux.c: Re-generated.
7849
35b4818d
YQ
78502017-07-26 Yao Qi <yao.qi@linaro.org>
7851
7852 * i386-linux-tdep.c (i386_linux_read_description): New function.
7853 (i386_linux_core_read_description): Call
7854 i386_linux_read_description.
7855 * i386-linux-tdep.h (i386_linux_read_description): Declare.
7856 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
7857 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
7858 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
7859 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
7860 * x86-linux-nat.c (x86_linux_read_description): Call
7861 i386_linux_read_description.
7862
8e2141c6
YQ
78632017-07-26 Yao Qi <yao.qi@linaro.org>
7864
7865 * NEWS: Mention it.
7866 * features/Makefile (%.c: %.xml): Pass the xml file name to
7867 command "maint print c-tdesc".
7868 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
7869 name from 'arg'.
7870
b468ff4c
YQ
78712017-07-26 Yao Qi <yao.qi@linaro.org>
7872
7873 * target-descriptions.c (target_desc): Add ctor and dtor. Do
7874 in-class initialization.
7875 (tdesc_create_feature): Call new instead of XCNEW.
7876 (free_target_description): Ue delete.
7877
b9c0e1b4
JB
78782017-07-25 John Baldwin <jhb@FreeBSD.org>
7879
7880 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
7881
a04b5337
YQ
78822017-07-25 Yao Qi <yao.qi@linaro.org>
7883
7884 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
7885 constant.
7886 (amd64_x32_init_abi): Likewise.
7887 * amd64-tdep.h (amd64_init_abi): Update declaration.
7888 (amd64_x32_init_abi): Likewise.
7889
02ad7fc2
YQ
78902017-07-25 Yao Qi <yao.qi@linaro.org>
7891
7892 PR tdep/21717
7893 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
7894 condition for FPSCR.
7895 (arm_linux_store_inferior_registers): Likewise.
7896
b6f48cb0
TT
78972017-07-22 Tom Tromey <tom@tromey.com>
7898
7899 * break-catch-syscall.c (struct catch_syscall_inferior_data)
7900 <syscalls_counts>: Now a std::vector.
7901 (get_catch_syscall_inferior_data): Use "new".
7902 (catch_syscall_inferior_data_cleanup): Use "delete".
7903 (insert_catch_syscall, remove_catch_syscall)
7904 (clear_syscall_counts): Update.
7905
e12c9b7a
TT
79062017-07-22 Tom Tromey <tom@tromey.com>
7907
7908 * break-catch-syscall.c (syscall_catchpoint)
7909 <syscalls_to_be_caught>: Now a std::vector<int>
7910 (~syscall_catchpoint): Remove.
7911 (insert_catch_syscall, remove_catch_syscall)
7912 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
7913 (print_mention_catch_syscall, print_recreate_catch_syscall):
7914 Update.
7915 (create_syscall_event_catchpoint): Change type of "filter"
7916 parameter.
7917 (catch_syscall_split_args): Return a std::vector.
7918 (catch_syscall_command_1, catching_syscall_number_1): Update.
7919
4fa8aeac
TT
79202017-07-22 Tom Tromey <tom@tromey.com>
7921
7922 * break-catch-throw.c (struct exception_catchpoint)
7923 <exception_rx>: Now a std::string.
7924 (~exception_catchpoint): Remove.
7925 (print_one_detail_exception_catchpoint): Update.
7926 (handle_gnu_v3_exceptions): Change type of except_rx.
7927 (extract_exception_regexp): Return a std::string.
7928 (catch_exception_command_1): Update.
7929
f746a154
TT
79302017-07-22 Tom Tromey <tom@tromey.com>
7931
7932 * break-catch-sig.c (gdb_signal_type): Remove typedef.
7933 (struct signal_catchpoint) <signals_to_be_caught>: Now a
7934 std::vector.
7935 <catch_all>: Now a bool.
7936 (~signal_catchpoint): Remove.
7937 (signal_catchpoint_insert_location)
7938 (signal_catchpoint_remove_location)
7939 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
7940 (signal_catchpoint_print_mention)
7941 (signal_catchpoint_print_recreate)
7942 (signal_catchpoint_explains_signal): Update.
7943 (create_signal_catchpoint): Change type of "filter" and
7944 "catch_all".
7945 (catch_signal_split_args): Return a std::vector. Change type of
7946 "catch_all".
7947 (catch_signal_command): Update.
7948
47e77640
PA
79492017-07-20 Pedro Alves <palves@redhat.com>
7950
7951 * ada-lang.c (ada_language_defn): Make extern.
7952 (_initialize_ada_language): Remove add_language call.
7953 * c-lang.c (c_language_defn, cplus_language_defn)
7954 (asm_language_defn, minimal_language_defn): Make extern.
7955 (_initialize_c_language): Delete.
7956 * completer.c (compare_cstrings): Delete, moved to utils.h.
7957 * d-lang.c (d_language_defn): Make extern.
7958 (_initialize_d_language): Remove add_language calls.
7959 * defs.h (enum language): Add comment.
7960 * f-lang.c (f_language_defn): Make extern.
7961 (_initialize_f_language): Remove add_language call.
7962 * go-lang.c (go_language_defn): Make extern.
7963 (_initialize_go_language): Remove add_language call.
7964 * language.c: Include <algorithm>.
7965 (languages): Redefine as const array.
7966 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
7967 (set_language_command): Handle "local". Use for-range loop.
7968 (set_language): Remove loop.
7969 (language_enum): Rewrite.
7970 (language_def, language_str): Remove loops.
7971 (add_language): Delete.
7972 (add_set_language_command): New, based on add_languages.
7973 (skip_language_trampoline): Adjust.
7974 (local_language_defn): Delete.
7975 (language_gdbarch_post_init): Adjust.
7976 (_initialize_language): Remove add_language calls. Call
7977 add_set_language_command.
7978 * language.h (add_language): Delete.
7979 (auto_language_defn)
7980 (unknown_language_defn, minimal_language_defn, ada_language_defn)
7981 (asm_language_defn, c_language_defn, cplus_language_defn)
7982 (d_language_defn, f_language_defn, go_language_defn)
7983 (m2_language_defn, objc_language_defn, opencl_language_defn)
7984 (pascal_language_defn, rust_language_defn): Declare.
7985 * m2-lang.c (m2_language_defn): Make extern.
7986 (_initialize_m2_language): Remove add_language call.
7987 * objc-lang.c (objc_language_defn): Make extern.
7988 (_initialize_objc_language): Remove add_language call.
7989 * opencl-lang.c (opencl_language_defn): Make extern.
7990 (_initialize_opencl_language): Remove add_language call.
7991 * p-lang.c (pascal_language_defn): Make extern.
7992 (_initialize_pascal_language): Delete.
7993 * rust-lang.c (rust_language_defn): Make extern.
7994 (_initialize_rust_language): Delete.
7995 * utils.h (compare_cstrings): New static inline function.
7996
edb0c9cb
PA
79972017-07-20 Pedro Alves <palves@redhat.com>
7998
7999 * ada-lang.c (ada_to_fixed_type_1): Adjust.
8000 (get_var_value): Constify parameters.
8001 (get_int_var_value): Change prototype.
8002 (to_fixed_range_type): Adjust.
8003 * ada-lang.h (get_int_var_value): Change prototype.
8004
a778f165
PA
80052017-07-20 Pedro Alves <palves@redhat.com>
8006
8007 * dwarf2read.c (dw2_lookup_symbol): Use
8008 SYMBOL_MATCHES_SEARCH_NAME.
8009 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
8010
42edd901
PA
80112017-07-20 Pedro Alves <palves@redhat.com>
8012
8013 * block.c (block_iter_name_step, block_iter_name_first)
8014 (block_iter_name_next): Delete.
8015 (block_lookup_symbol_primary): Adjust to use
8016 dict_iter_match_first/dict_iter_match_next.
8017 * block.h (block_iter_name_first, block_iter_name_next): Delete
8018 declarations.
8019 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
8020 dict_iter_match_first/dict_iter_match_next.
8021
cf325299
PA
80222017-07-20 Pedro Alves <palves@redhat.com>
8023
8024 * cp-support.c (cp_find_first_component_aux): Add missing case for
8025 end of string.
8026
c5ed0576
DB
80272017-07-18 David Blaikie <dblaikie@gmail.com>
8028
8029 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
8030 of dwo_cu's dwo_file.
8031
27841e76
YQ
80322017-07-18 Yao Qi <yao.qi@linaro.org>
8033
8034 * remote.c (store_registers_using_G): Remove one line comment.
8035
cfb7e58b
YQ
80362017-07-18 Yao Qi <yao.qi@linaro.org>
8037
8038 * regcache.c (regcache_cpy): Simplify it.
8039 (regcache::cpy_no_passthrough): Remove it.
8040 * regcache.h (cpy_no_passthrough): Remove it.
8041 (regcache_dup, regcache_cpy): Update comments.
8042
386535dd
PA
80432017-07-18 Pedro Alves <palves@redhat.com>
8044
8045 * remote-sim.c (sim_command_completer): Adjust to work with a
8046 completion_tracker instead of a VEC.
8047
c45ec17c
PA
80482017-07-17 Pedro Alves <palves@redhat.com>
8049
8050 * completer.c (complete_source_filenames): New function.
8051 (complete_address_and_linespec_locations): New function.
8052 (location_completer): Use complete_address_and_linespec_locations.
8053 (completion_tracker::build_completion_result): Honor the tracker's
8054 request to suppress append.
8055 * completer.h (completion_tracker::suppress_append_ws)
8056 (completion_tracker::set_suppress_append_ws): New methods.
8057 (completion_tracker::m_suppress_append_ws): New field.
8058 (complete_source_filenames): New declaration.
8059 * linespec.c (linespec_complete_what): New.
8060 (struct ls_parser) <complete_what, completion_word,
8061 completion_quote_char, completion_quote_end, completion_tracker>:
8062 New fields.
8063 (string_find_incomplete_keyword_at_end): New.
8064 (linespec_lexer_lex_string): Record quote char. If in completion
8065 mode, don't throw.
8066 (linespec_lexer_consume_token): Advance the completion word point.
8067 (linespec_lexer_peek_token): Save/restore completion info.
8068 (save_stream_and_consume_token): New.
8069 (set_completion_after_number): New.
8070 (linespec_parse_basic): Set what to complete next depending on
8071 token. Handle function and label completions specially.
8072 (parse_linespec): Disable objc shortcut in completion mode. Set
8073 what to complete next depending on token type. Skip keyword if in
8074 completion mode.
8075 (complete_linespec_component, linespec_complete): New.
8076 * linespec.h (linespec_complete): Declare.
8077
be966d42
PA
80782017-07-17 Pedro Alves <palves@redhat.com>
8079
8080 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
8081 Handle 'operator<' / 'operator<<'.
8082
a2459270
PA
80832017-07-17 Pedro Alves <palves@redhat.com>
8084
8085 * completer.c (collect_explicit_location_matches): Handle
8086 MATCH_LABEL.
8087 (convert_explicit_location_to_linespec): New, factored out from
8088 ...
8089 (convert_explicit_location_to_sals): ... this.
8090 (complete_label): New.
8091 (linespec_complete_label, find_label_symbols_in_block): New.
8092 (find_label_symbols): Add completion_mode parameter and adjust to
8093 call find_label_symbols_in_block.
8094 * linespec.h (linespec_complete_label): Declare.
8095
c6756f62
PA
80962017-07-17 Pedro Alves <palves@redhat.com>
8097
8098 * ada-lang.c (ada_collect_symbol_completion_matches): Add
8099 complete_symbol_mode parameter.
8100 * cli/cli-cmds.c (complete_command): Get the completion result out
8101 of the handle_brkchars tracker if used a custom word point.
8102 * completer.c: Include "linespec.h".
8103 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
8104 (advance_to_expression_complete_word_point): New.
8105 (completion_tracker::completes_to_completion_word): New.
8106 (complete_files_symbols): Pass down
8107 complete_symbol_mode::EXPRESSION.
8108 (explicit_options, probe_options): New.
8109 (collect_explicit_location_matches): Complete on the
8110 explictit_loc->foo instead of word. Use
8111 linespec_complete_function. Handle MATCH_LINE. Handle offering
8112 keyword and options completions.
8113 (backup_text_ptr): Delete.
8114 (skip_keyword): New.
8115 (complete_explicit_location): Remove 'word' parameter. Add
8116 language, quoted_arg_start and quoted_arg_end parameters.
8117 Rewrite, parsing left to right.
8118 (location_completer): Rewrite.
8119 (location_completer_handle_brkchars): New function.
8120 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
8121 (enum complete_line_internal_reason): Adjust comments.
8122 (completion_tracker::discard_completions): New.
8123 (completer_handle_brkchars_func_for_completer): Handle
8124 location_completer.
8125 (gdb_custom_word_point_brkchars)
8126 (gdb_org_rl_basic_quote_characters): New.
8127 (gdb_completion_word_break_characters_throw)
8128 (completion_find_completion_word): Handle trackers that use a
8129 custom word point.
8130 (completion_tracker::advance_custom_word_point_by): New.
8131 (completion_tracker::build_completion_result): Don't rely on
8132 readline appending the quote char.
8133 (gdb_rl_attempted_completion_function_throw): Handle trackers that
8134 use a custom word point.
8135 (gdb_rl_attempted_completion_function): Restore
8136 rl_basic_quote_characters.
8137 * completer.h (class completion_tracker): Extend intro comment.
8138 (completion_tracker::set_quote_char)
8139 (completion_tracker::quote_char)
8140 (completion_tracker::set_use_custom_word_point)
8141 (completion_tracker::use_custom_word_point)
8142 (completion_tracker::custom_word_point)
8143 (completion_tracker::set_custom_word_point)
8144 (completion_tracker::advance_custom_word_point_by)
8145 (completion_tracker::completes_to_completion_word)
8146 (completion_tracker::discard_completions): New methods.
8147 (completion_tracker::m_quote_char)
8148 (completion_tracker::m_use_custom_word_point)
8149 (completion_tracker::m_custom_word_point): New fields.
8150 (advance_to_expression_complete_word_point): Declare.
8151 * f-lang.c (f_collect_symbol_completion_matches): Add
8152 complete_symbol_mode parameter.
8153 * language.h (struct language_defn)
8154 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
8155 parameter.
8156 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
8157 (linespec_complete_function): New function.
8158 (linespec_lexer_lex_keyword): Adjust.
8159 * linespec.h (linespec_keywords, linespec_complete_function): New
8160 declarations.
8161 * location.c (find_end_quote): New function.
8162 (explicit_location_lex_one): Add explicit_completion_info
8163 parameter. Save quoting info. Don't throw if being called for
8164 completion. Don't handle Ada operators here.
8165 (is_cp_operator, skip_op_false_positives, first_of)
8166 (explicit_location_lex_one_function): New function.
8167 (string_to_explicit_location): Replace 'dont_throw' parameter with
8168 an explicit_completion_info pointer parameter. Handle it. Don't
8169 use explicit_location_lex_one to lex function names. Use
8170 explicit_location_lex_one_function instead.
8171 * location.h (struct explicit_completion_info): New.
8172 (string_to_explicit_location): Replace 'dont_throw' parameter with
8173 an explicit_completion_info pointer parameter.
8174 * symtab.c (default_collect_symbol_completion_matches_break_on):
8175 Add complete_symbol_mode parameter. Handle LINESPEC mode.
8176 (default_collect_symbol_completion_matches)
8177 (collect_symbol_completion_matches): Add complete_symbol_mode
8178 parameter.
8179 (collect_symbol_completion_matches_type): Pass down
8180 complete_symbol_mode::EXPRESSION.
8181 (collect_file_symbol_completion_matches): Add complete_symbol_mode
8182 parameter. Handle LINESPEC mode.
8183 * symtab.h (complete_symbol_mode): New.
8184 (default_collect_symbol_completion_matches_break_on)
8185 (default_collect_symbol_completion_matches)
8186 (collect_symbol_completion_matches)
8187 (collect_file_symbol_completion_matches): Add complete_symbol_mode
8188 parameter.
8189
1d550c82
PA
81902017-07-17 Pedro Alves <palves@redhat.com>
8191
8192 * utils.c (enum class strncmp_iw_mode): New.
8193 (strcmp_iw): Rename to ...
8194 (strncmp_iw_with_mode): ... this. Add string2_len and mode
8195 parameters. Handle them.
8196 (strncmp_iw): New.
8197 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
8198 * utils.h (strncmp_iw): Declare.
8199 (strcmp_iw): Move describing comments here.
8200
8090b426
PA
82012017-07-17 Pedro Alves <palves@redhat.com>
8202
8203 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
8204 CP_OPERATOR_STR.
8205 * c-typeprint.c (is_type_conversion_operator): Use
8206 CP_OPERATOR_STR.
8207 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
8208 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
8209 CP_OPERATOR_LEN.
8210 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
8211 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
8212 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
8213 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
8214 CP_OPERATOR_STR.
8215 * location.c: Include "cp-support.h".
8216 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
8217 CP_OPERATOR_STR.
8218 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
8219 CP_OPERATOR_LEN.
8220
6a2c1b87
PA
82212017-07-17 Pedro Alves <palves@redhat.com>
8222
8223 * cli/cli-cmds.c (complete_command): Use a completion tracker
8224 along with completion_find_completion_word for handle_brkchars
8225 phase.
8226 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
8227 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
8228 (struct gdb_rl_completion_word_info): New.
8229 (gdb_rl_find_completion_word): New.
8230 (completion_find_completion_word): New.
8231 * completer.h (completion_find_completion_word): Declare.
8232
eb3ff9a5
PA
82332017-07-17 Pedro Alves <palves@redhat.com>
8234
8235 * ada-lang.c (symbol_completion_match): Adjust comments.
8236 (symbol_completion_add): Replace vector parameter with
8237 completion_tracker parameter. Use it.
8238 (ada_make_symbol_completion_list): Rename to...
8239 (ada_collect_symbol_completion_matches): ... this. Add
8240 completion_tracker parameter and use it.
8241 (ada_language_defn): Adjust.
8242 * break-catch-syscall.c (catch_syscall_completer): Adjust
8243 prototype and work with completion_tracker instead of VEC.
8244 * breakpoint.c (condition_completer): Adjust prototype and work
8245 with completion_tracker instead of VEC.
8246 * c-lang.c (c_language_defn, cplus_language_defn)
8247 (asm_language_defn, minimal_language_defn): Adjust to renames.
8248 * cli/cli-cmds.c (complete_command): Rework using
8249 completion_tracker. Catch exceptions when completing.
8250 * cli/cli-decode.c (integer_unlimited_completer)
8251 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
8252 with completion_tracker instead of VEC.
8253 * command.h (struct completion_tracker): Forward declare.
8254 (completer_ftype, completer_handle_brkchars_ftype): Change
8255 types.
8256 (complete_on_cmdlist, complete_on_enum): Adjust.
8257 * completer.c: Include <algorithm>.
8258 (struct gdb_completer_state): New.
8259 (current_completion): New global.
8260 (readline_line_completion_function): Delete.
8261 (noop_completer, filename_completer)
8262 (filename_completer_handle_brkchars, complete_files_symbols)
8263 (linespec_location_completer): Adjust to work with a
8264 completion_tracker instead of a VEC.
8265 (string_or_empty): New.
8266 (collect_explicit_location_matches): Adjust to work with a
8267 completion_tracker instead of a VEC.
8268 (explicit_location_completer): Rename to ...
8269 (complete_explicit_location): ... this and adjust to work with a
8270 completion_tracker instead of a VEC.
8271 (location_completer): Adjust to work with a completion_tracker
8272 instead of a VEC.
8273 (add_struct_fields): Adjust to work with a completion_list instead
8274 of VEC.
8275 (expression_completer): Rename to ...
8276 (complete_expression): ... this and adjust to work with a
8277 completion_tracker instead of a VEC. Use complete_files_symbols.
8278 (expression_completer): Reimplement on top of complete_expression.
8279 (symbol_completer): Adjust to work with a completion_tracker
8280 instead of a VEC.
8281 (enum complete_line_internal_reason): Add describing comments.
8282 (complete_line_internal_normal_command): Adjust to work with a
8283 completion_tracker instead of a VEC.
8284 (complete_line_internal): Rename to ...
8285 (complete_line_internal_1): ... this and adjust to work with a
8286 completion_tracker instead of a VEC. Assert TEXT is NULL in the
8287 handle_brkchars phase.
8288 (new_completion_tracker): Delete.
8289 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
8290 complete_line_internal_1.
8291 (free_completion_tracker): Delete.
8292 (INITIAL_COMPLETION_HTAB_SIZE): New.
8293 (completion_tracker::completion_tracker)
8294 (completion_tracker::~completion_tracker): New.
8295 (maybe_add_completion): Delete.
8296 (completion_tracker::maybe_add_completion)
8297 (completion_tracker::add_completion)
8298 (completion_tracker::add_completions): New.
8299 (throw_max_completions_reached_error): Delete.
8300 (complete_line): Adjust to work with a completion_tracker instead
8301 of a VEC. Don't create a completion_tracker_t or check for max
8302 completions here.
8303 (command_completer, command_completer_handle_brkchars)
8304 (signal_completer, reg_or_group_completer_1)
8305 (reg_or_group_completer, default_completer_handle_brkchars):
8306 Adjust to work with a completion_tracker.
8307 (gdb_completion_word_break_characters_throw): New.
8308 (gdb_completion_word_break_characters): Reimplement.
8309 (line_completion_function): Delete.
8310 (completion_tracker::recompute_lowest_common_denominator)
8311 (expand_preserving_ws)
8312 (completion_tracker::build_completion_result)
8313 (completion_result::completion_result)
8314 (completion_result::completion_result)
8315 (completion_result::~completion_result)
8316 (completion_result::completion_result)
8317 (completion_result::release_match_list, compare_cstrings)
8318 (completion_result::sort_match_list)
8319 (completion_result::reset_match_list)
8320 (gdb_rl_attempted_completion_function_throw)
8321 (gdb_rl_attempted_completion_function): New.
8322 * completer.h (completion_list, struct completion_result)
8323 (class completion_tracker): New.
8324 (complete_line): Add completion_tracker parameter.
8325 (readline_line_completion_function): Delete.
8326 (gdb_rl_attempted_completion_function): New.
8327 (noop_completer, filename_completer, expression_completer)
8328 (location_completer, symbol_completer, command_completer)
8329 (signal_completer, reg_or_group_completer): Update prototypes.
8330 (completion_tracker_t, new_completion_tracker)
8331 (make_cleanup_free_completion_tracker): Delete.
8332 (enum maybe_add_completion_enum): Delete.
8333 (maybe_add_completion): Delete.
8334 (throw_max_completions_reached_error): Delete.
8335 * corefile.c (complete_set_gnutarget): Adjust to work with a
8336 completion_tracker instead of a VEC.
8337 * cp-abi.c (cp_abi_completer): Adjust to work with a
8338 completion_tracker instead of a VEC.
8339 * d-lang.c (d_language_defn): Adjust.
8340 * disasm.c (disassembler_options_completer): Adjust to work with a
8341 completion_tracker instead of a VEC.
8342 * f-lang.c (f_make_symbol_completion_list): Rename to ...
8343 (f_collect_symbol_completion_matches): ... this. Adjust to work
8344 with a completion_tracker instead of a VEC.
8345 (f_language_defn): Adjust.
8346 * go-lang.c (go_language_defn): Adjust.
8347 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
8348 Adjust to work with a completion_tracker instead of a VEC.
8349 * infrun.c (handle_completer): Likewise.
8350 * interps.c (interpreter_completer): Likewise.
8351 * interps.h (interpreter_completer): Likewise.
8352 * language.c (unknown_language_defn, auto_language_defn)
8353 (local_language_defn): Adjust.
8354 * language.h (language_defn::la_make_symbol_completion_list):
8355 Rename to ...
8356 (language_defn::la_collect_symbol_completion_matches): ... this
8357 and adjust to work with a completion_tracker instead of a VEC.
8358 * m2-lang.c (m2_language_defn): Adjust.
8359 * objc-lang.c (objc_language_defn): Adjust.
8360 * opencl-lang.c (opencl_language_defn): Adjust.
8361 * p-lang.c (pascal_language_defn): Adjust.
8362 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
8363 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
8364 with a completion_tracker.
8365 * rust-lang.c (rust_language_defn): Adjust.
8366 * symtab.c (free_completion_list, do_free_completion_list)
8367 (return_val, completion_tracker): Delete.
8368 (completion_list_add_name, completion_list_add_symbol)
8369 (completion_list_add_msymbol, completion_list_objc_symbol)
8370 (completion_list_add_fields, add_symtab_completions): Add
8371 completion_tracker parameter and use it.
8372 (default_make_symbol_completion_list_break_on_1): Rename to...
8373 (default_collect_symbol_completion_matches_break_on): ... this.
8374 Add completion_tracker parameter and use it instead of allocating
8375 a completion tracker here.
8376 (default_make_symbol_completion_list_break_on): Delete old
8377 implementation.
8378 (default_make_symbol_completion_list): Delete.
8379 (default_collect_symbol_completion_matches): New.
8380 (make_symbol_completion_list): Delete.
8381 (collect_symbol_completion_matches): New.
8382 (make_symbol_completion_type): Rename to ...
8383 (collect_symbol_completion_matches_type): ... this. Add
8384 completion_tracker parameter and use it instead of VEC.
8385 (make_file_symbol_completion_list_1): Rename to...
8386 (collect_file_symbol_completion_matches): ... this. Add
8387 completion_tracker parameter and use it instead of VEC.
8388 (make_file_symbol_completion_list): Delete.
8389 (add_filename_to_list): Use completion_list instead of a VEC.
8390 (add_partial_filename_data::list): Now a completion_list.
8391 (make_source_files_completion_list): Work with a completion_list
8392 instead of a VEC.
8393 * symtab.h: Include "completer.h".
8394 (default_make_symbol_completion_list_break_on)
8395 (default_make_symbol_completion_list, make_symbol_completion_list)
8396 (make_symbol_completion_type, make_file_symbol_completion_list)
8397 (make_source_files_completion_list): Delete.
8398 (default_collect_symbol_completion_matches_break_on)
8399 (default_collect_symbol_completion_matches)
8400 (collect_symbol_completion_matches)
8401 (collect_symbol_completion_matches_type)
8402 (collect_file_symbol_completion_matches)
8403 (make_source_files_completion_list): New.
8404 * top.c (init_main): Don't install a rl_completion_entry_function
8405 hook. Install a rl_attempted_completion_function hook instead.
8406 * tui/tui-layout.c (layout_completer): Adjust to work with a
8407 completion_tracker.
8408 * tui/tui-regs.c (tui_reggroup_completer):
8409 * tui/tui-win.c (window_name_completer, focus_completer)
8410 (winheight_completer): Adjust to work with a completion_tracker.
8411 * value.c: Include "completer.h".
8412 (complete_internalvar): Adjust to work with a completion_tracker.
8413 * value.h (complete_internalvar): Likewise.
8414
6e1dbf8c
PA
84152017-07-17 Pedro Alves <palves@redhat.com>
8416
8417 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
8418 renames.
8419 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
8420 comments to completer_ftype's declaration.
8421 <completer_handle_brkchars>: Change type to
8422 completer_handle_brkchars_ftype.
8423 * command.h (completer_ftype): Add describing comment and give
8424 names to parameters.
8425 (completer_ftype_void): Rename to ...
8426 (completer_handle_brkchars_ftype) ... this. Add describing comment.
8427 (set_cmd_completer_handle_brkchars): Adjust.
8428 * completer.c (filename_completer_handle_brkchars): New function.
8429 (complete_line_internal_normal_command): New function, factored
8430 out from ...
8431 (complete_line_internal): ... here.
8432 (command_completer_handle_brkchars)
8433 (default_completer_handle_brkchars)
8434 (completer_handle_brkchars_func_for_completer): New functions.
8435 * completer.h (set_gdb_completion_word_break_characters): Delete
8436 declaration.
8437 (completer_handle_brkchars_func_for_completer): New declaration.
8438 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
8439 completer_handle_brkchars_func_for_completer.
8440
78b13106
PA
84412017-07-17 Pedro Alves <palves@redhat.com>
8442
8443 * completer.c (symbol_completer): New function, based on
8444 make_symbol_completion_list_fn.
8445 * completer.h (symbol_completer): New declaration.
8446 * guile/scm-cmd.c (cmdscm_completers): Adjust.
8447 * python/py-cmd.c (completers): Adjust.
8448 * symtab.c (make_symbol_completion_list_fn): Delete.
8449 * symtab.h (make_symbol_completion_list_fn): Delete.
8450 * cli/cli-decode.c (add_cmd): Adjust.
8451
bbf2f4df
PA
84522017-07-17 Pedro Alves <palves@redhat.com>
8453
8454 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
8455 * dwarf2read.c: Include "filename-seen-cache.h".
8456 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
8457 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
8458 * filename-seen-cache.c: New file.
8459 * filename-seen-cache.h: New file.
8460 * symtab.c: Include "filename-seen-cache.h".
8461 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
8462 (create_filename_seen_cache, clear_filename_seen_cache)
8463 (delete_filename_seen_cache, filename_seen): Delete, parts moved
8464 to filename-seen-cache.h/filename-seen-cache.c.
8465 (output_source_filename, sources_info)
8466 (maybe_add_partial_symtab_filename)
8467 (make_source_files_completion_list): Adjust to use
8468 filename_seen_cache.
8469
330cdd98
PA
84702017-07-17 Pedro Alves <palves@redhat.com>
8471
8472 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
8473 fields.
8474 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
8475 dwarf2_debug_sections*)): New.
8476 (dwarf2_per_objfile::dwarf2_per_objfile(const
8477 dwarf2_per_objfile&)): Declare as deleted.
8478 (dwarf2_per_objfile::operator=): Declare as deleted.
8479 (dwarf2_per_objfile::dwarf2_per_objfile)
8480 (dwarf2_per_objfile::~dwarf2_per_objfile)
8481 (dwarf2_per_objfile::free_cached_comp_units): New.
8482 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
8483 ctor. Call dwarf2_per_objfile's ctor manually.
8484 (dwarf2_locate_sections): Deleted/refactored as ...
8485 (dwarf2_per_objfile::locate_sections): ... this new method.
8486 (free_cached_comp_units): Defer to
8487 dwarf2_per_objfile::free_cached_comp_units.
8488 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
8489
8880f2a9
TT
84902017-07-14 Tom Tromey <tom@tromey.com>
8491
8492 PR rust/21764:
8493 * rust-exp.y (convert_ast_to_expression): Add "want_type"
8494 parameter.
8495 <UNOP_SIZEOF>: Split into separate case.
8496 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
8497
65547233
TT
84982017-07-14 Tom Tromey <tom@tromey.com>
8499
8500 PR rust/21763:
8501 * symtab.c (symbol_matches_domain): Add language_rust to special
8502 case.
8503 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
8504 treat LOC_TYPEDEF symbols as variables.
8505
8f14146e
PA
85062017-07-14 Pedro Alves <palves@redhat.com>
8507
8508 * symtab.c (make_file_symbol_completion_list_1): Iterate over
8509 symtabs matching all symtabs with SRCFILE as file name instead of
8510 only considering the first hit, with lookup_symtab.
8511
2347965c
SM
85122017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8513
8514 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
8515 operator_name parameters.
8516 (gen_expr): Update function call.
8517
40f4af28
SM
85182017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8519
8520 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
8521 parameter.
8522 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
8523 Likewise.
8524 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
8525 parameter, use agent_expr::gdbarch instead, update function
8526 calls.
8527 (locexpr_tracepoint_var_ref): Likewise.
8528 (loclist_tracepoint_var_ref): Likewise.
8529 * ax-gdb.c (gen_trace_static_fields): Likewise.
8530 (gen_traced_pop): Likewise.
8531 (gen_frame_args_address): Likewise.
8532 (gen_frame_locals_address): Likewise.
8533 (gen_var_ref): Likewise.
8534 (gen_struct_ref_recursive): Likewise.
8535 (gen_static_field): Likewise.
8536 (gen_maybe_namespace_elt): Likewise.
8537 (gen_expr): Likewise.
8538 (gen_trace_for_var): Likewise.
8539 (gen_trace_for_expr): Likewise.
8540 (gen_trace_for_return_address): Likewise.
8541
053f8057
SM
85422017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8543
8544 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
8545 parameter.
8546 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
8547
6661ad48
SM
85482017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8549
8550 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
8551 from ax, update calls.
8552 (gen_usual_arithmetic): Likewise.
8553 (gen_integral_promotions): Likewise.
8554 (gen_bitfield_ref): Likewise.
8555 (gen_primitive_field): Likewise.
8556 (gen_struct_ref_recursive): Likewise.
8557 (gen_struct_ref): Likewise.
8558 (gen_maybe_namespace_elt): Likewise.
8559 (gen_struct_elt_for_reference): Likewise.
8560 (gen_namespace_elt): Likewise.
8561 (gen_aggregate_elt_ref): Likewise.
8562 (gen_expr): Get gdbarch from ax, update calls.
8563 (gen_expr_binop_rest): Likewise.
8564
c55a47e7
PA
85652017-07-13 Pedro Alves <palves@redhat.com>
8566
8567 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
8568 as default tdesc.
8569 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
8570 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
8571 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
8572 tdesc_amd64_linux as default tdesc. Get final tdesc from the
8573 tdep.
8574 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
8575 Get final tdesc from the tdep.
8576 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
8577 default tdesc.
8578 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
8579 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
8580 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
8581 Use it as default tdesc.
8582 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
8583 down to amd_init_abi. No longer handle fallback tdesc here.
8584 * amd64-tdep.h (tdesc_x32): Declare.
8585 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
8586 parameter.
8587 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
8588 as default tdesc.
8589
55efceab
AA
85902017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8591
8592 * s390-linux-tdep.c (s390_process_record): Add support for
8593 instructions new in arch12.
8594
0aa37b65
JB
85952017-07-11 John Baldwin <jhb@FreeBSD.org>
8596
8597 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8598 PT_GETFSBASE and PT_GETGSBASE.
8599 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
8600 PT_SETGSBASE.
8601
48aeef91
JB
86022017-07-11 John Baldwin <jhb@FreeBSD.org>
8603
8604 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
8605 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
8606 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
8607 those rules.
8608 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
8609 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
8610 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
8611 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
8612 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
8613 * features/i386/amd64.xml: Add 64bit-segments.xml.
8614 * features/i386/amd64-avx-avx512.c: Regenerated.
8615 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
8616 * features/i386/amd64-avx-mpx.c: Regenerated.
8617 * features/i386/amd64-avx.c: Regenerated.
8618 * features/i386/amd64-mpx.c: Regenerated.
8619 * features/i386/amd64.c: Regenerated.
8620 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
8621 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8622 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
8623 * regformats/i386/amd64-avx.dat: Regenerated.
8624 * regformats/i386/amd64-mpx.dat: Regenerated.
8625 * regformats/i386/amd64.dat: Regenerated.
8626
77c501bc
YQ
86272017-07-10 Yao Qi <yao.qi@linaro.org>
8628
8629 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
8630 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
8631
6dc8d757
AK
86322017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
8633
8634 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
8635 unsetenv.
8636 * gnulib/aclocal.m4: Regenerate.
8637 * gnulib/config.in: Regenerate.
8638 * gnulib/configure: Regenerate.
8639 * gnulib/import/Makefile.am: Regenerate.
8640 * gnulib/import/Makefile.in: Regenerate.
8641 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
8642 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
8643 * gnulib/import/m4/environ.m4: New file.
8644 * gnulib/import/m4/setenv.m4: New file.
8645 * gnulib/import/setenv.c: New file.
8646 * gnulib/import/unsetenv.c: New file.
8647
266934d1
SM
86482017-07-09 Simon Marchi <simon.marchi@ericsson.com>
8649
8650 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
8651 address when op is DW_OP_addr.
8652
03278692
TT
86532017-07-09 Tom Tromey <tom@tromey.com>
8654
8655 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
8656 check and apply to outer type.
8657
4b654465
JB
86582017-07-07 John Baldwin <jhb@FreeBSD.org>
8659
8660 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
8661 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
8662 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
8663 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
8664
2af9fc44
JB
86652017-07-07 John Baldwin <jhb@FreeBSD.org>
8666
8667 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
8668
382b69bb
JB
86692017-07-07 John Baldwin <jhb@FreeBSD.org>
8670
8671 * corelow.c (get_core_siginfo): Remove.
8672 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
8673 instead of get_core_siginfo.
8674 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
8675 * gdbarch.h: Re-generate.
8676 * gdbarch.c: Re-generate.
8677 * linux-tdep.c (linux_core_xfer_siginfo): New.
8678 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
8679
6e5eab33
JB
86802017-07-07 John Baldwin <jhb@FreeBSD.org>
8681
8682 * corelow.c (thread_section_name): Move to ...
8683 * gdbcore.h (thread_section_name): ... here.
8684
929edea9
JB
86852017-07-07 John Baldwin <jhb@FreeBSD.org>
8686
8687 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
8688 (struct siginfo32): New.
8689 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
8690 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
8691 via ptrace(PT_LWPINFO).
8692
762c974a
JB
86932017-07-07 John Baldwin <jhb@FreeBSD.org>
8694
8695 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
8696 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
8697 (fbsd_get_siginfo_type): New.
8698 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
8699 (_initialize_fbsd_tdep): New.
8700
33c5cd75
DB
87012017-07-06 David Blaikie <dblaikie@gmail.com>
8702
8703 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
8704 a singular dwo_unit*) to support multiple CUs in the same way that
8705 multiple TUs are supported.
8706 (create_cus_hash_table): Replace create_dwo_cu with a function for
8707 parsing multiple CUs from a DWO file.
8708 (open_and_init_dwo_file): Use create_cus_hash_table rather than
8709 create_dwo_cu.
8710 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
8711 htab_find, rather than comparing the signature to a singleton CU in
8712 the dwo_file.
8713
8455d262
PA
87142017-07-06 Pedro Alves <palves@redhat.com>
8715
8716 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
8717
4da3eb35
PA
87182017-07-04 Pedro Alves <palves@redhat.com>
8719
8720 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
8721 * gdbtypes.h (TYPE_STATIC): Delete.
8722 (struct fn_field) <is_public, is_abstract, is_static, is_final,
8723 is_synchronized, is_native>: Delete.
8724 <dummy>: Bump.
8725 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
8726 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
8727 (TYPE_FN_FIELD_ABSTRACT): Delete.
8728
5bfd255c
SM
87292017-07-03 Simon Marchi <simon.marchi@ericsson.com>
8730
8731 * buffer.h (buffer_finish): Fix spelling mistakes.
8732
25c54127
EZ
87332017-07-01 Eli Zaretskii <eliz@gnu.org>
8734
8735 * .dir-locals.el: Automatically switch to C-style comments in
8736 versions of Emacs that support the feature.
8737
dc4bde35
SDJ
87382017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8739 Pedro Alves <palves@redhat.com>
8740
8741 PR cli/21688
8742 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
8743 (process_next_line): New variable 'inline_cmd'.
8744 Adjust 'if' clauses for "python", "compile" and "guile" to use
8745 'command_name_equals' and check for '!inline_cmd'.
8746
51ed89aa
SDJ
87472017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8748
8749 PR cli/21688
8750 * cli/cli-script.c (command_name_equals_not_inline): New function.
8751 (process_next_line): Adjust 'if' clauses for "python", "compile"
8752 and "guile" to use command_name_equals_not_inline.
8753
eb17d413
PA
87542017-06-29 Pedro Alves <palves@redhat.com>
8755
8756 * completer.c (expression_completer): Call
8757 linespec_location_completer instead of location_completer.
8758
195bcdd5
PA
87592017-06-29 Pedro Alves <palves@redhat.com>
8760
8761 * completer.c (expression_completer): Remove code that recomputes
8762 'text' from 'word'.
8763
adc764e7
YQ
87642017-06-29 Yao Qi <yao.qi@linaro.org>
8765
8766 * regformats/regdat.sh: Generate code with
8767 "ifndef IN_PROCESS_AGENT".
8768
6e75794e
PA
87692017-06-28 Pedro Alves <palves@redhat.com>
8770
8771 * command.h: Include "common/scoped_restore.h".
8772
bc491f2e
YQ
87732017-06-28 Yao Qi <yao.qi@linaro.org>
8774
8775 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
8776 instead of obstack_grow.
8777
41664b45
DG
87782017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
8779
8780 PR gdb/21337
8781 * symfile.c (reread_symbols): Call objfiles_changed just before
8782 read_symbols.
8783
6da67eb1
PA
87842017-06-27 Pedro Alves <palves@redhat.com>
8785
8786 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
8787 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
8788 (completion_list_add_symbol, completion_list_add_msymbol):
8789 ... these new functions.
8790 (add_symtab_completions)
8791 (default_make_symbol_completion_list_break_on_1): Adjust.
8792
23732b1e
PA
87932017-06-27 Pedro Alves <palves@redhat.com>
8794
8795 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
8796 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
8797 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
8798 dtor.
8799 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
8800 'storage_obstack' field an auto_obstack. In-class initialize all
8801 non-bitfield fields. Make minsyms_read bool.
8802 * symfile.c (read_symbols): Adjust.
8803
a4d1e79a
AH
88042017-06-27 Alan Hayward <alan.hayward@arm.com>
8805
8806 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
8807 (gdbsim_store_register): Likewise.
8808
8268c778
PA
88092017-06-27 Pedro Alves <palves@redhat.com>
8810
8811 * c-exp.y (name_obstack): Now an auto_obstack.
8812 (yylex): Use auto_obstack::clear.
8813 (c_parse): Use auto_obstack::clear instead of reinitializing and
8814 freeing the obstack.
8815 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
8816 * d-exp.y (name_obstack): Now an auto_obstack.
8817 (yylex): Use auto_obstack::clear.
8818 (d_parse): Use auto_obstack::clear instead of reinitializing and
8819 freeing the obstack.
8820 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
8821 auto_obstack.
8822 * dwarf2read.c (create_addrmap_from_index)
8823 (dwarf2_build_psymtabs_hard)
8824 (update_enumeration_type_from_children): Likewise.
8825 * gdb_obstack.h (auto_obstack): New type.
8826 * go-exp.y (name_obstack): Now an auto_obstack.
8827 (build_packaged_name): Use auto_obstack::clear.
8828 (go_parse): Use auto_obstack::clear instead of reinitializing and
8829 freeing the obstack.
8830 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
8831 auto_obstack.
8832 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
8833 * rust-exp.y (work_obstack): Now an auto_obstack.
8834 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
8835 reinitializing and freeing the obstack.
8836 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
8837 (host_char_to_target): Use auto_obstack.
8838 * utils.h (make_cleanup_obstack_free): Delete declaration.
8839 * valprint.c (generic_emit_char, generic_printstr): Use
8840 auto_obstack.
8841
db665f42
SM
88422017-06-27 Simon Marchi <simon.marchi@ericsson.com>
8843
8844 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
8845 thread.
8846 (darwin_init_thread_list): Don't update dummy thread.
8847 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
8848
873c0814
SM
88492017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8850
8851 * record-full.c (netorder16): Remove.
8852
8b5a7a6e
SM
88532017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8854
8855 * common/diagnostics.h: Define macros for GCC.
8856 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
8857 * common/vec.h: Include diagnostics.h.
8858 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
8859 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
8860 warning.
8861
d1435379
SM
88622017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8863
8864 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
8865 New macro.
8866 * ada-lex.l: Ignore deprecated register warnings.
8867
cc75e0fd
SM
88682017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8869
8870 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
8871 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
8872
07809eaf
SM
88732017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8874
8875 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
8876 its own line.
8877
f076f034
SM
88782017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8879
8880 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
8881
0dd5cbc5
AH
88822017-06-23 Alan Hayward <alan.hayward@arm.com>
8883
8884 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
8885 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
8886 (xtensa_register_read_masked): Likewise.
8887
d4c6ce5b
SDJ
88882017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
8889
8890 * common/environ.c (gdb_environ::unset): Update comment.
8891
16892a03
AH
88922017-06-22 Alan Hayward <alan.hayward@arm.com>
8893
8894 * python/py-unwind.c (pyuw_sniffer): Allocate space for
8895 registers.
8896
d7dcbefc
AH
88972017-06-22 Alan Hayward <alan.hayward@arm.com>
8898
8899 * record-full.c (record_full_exec_insn): Use byte_vector.
8900
b30ff123
YQ
89012017-06-22 Yao Qi <yao.qi@linaro.org>
8902
8903 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
8904 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8905
4fa847d7
AH
89062017-06-22 Alan Hayward <alan.hayward@arm.com>
8907
8908 * remote.c (cached_reg): Move from here...
8909 * regcache.h (cached_reg): ...to here.
8910 * python/py-unwind.c (struct reg_info): Remove.
8911 (cached_frame_info): Use cached_reg_t.
8912 (pyuw_prev_register): Likewise.
8913 (pyuw_sniffer): Use cached_reg_t and allocate registers.
8914 (pyuw_dealloc_cache): Free all registers.
8915
f4906a9a
PA
89162017-06-22 Pedro Alves <palves@redhat.com>
8917 Simon Marchi <simon.marchi@ericsson.com>
8918
8919 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
8920 warning.
8921 * common/diagnostics.h: New file.
8922
b45a1208
PA
89232017-06-22 Pedro Alves <palves@redhat.com>
8924
8925 * common/agent.h: Add include guards.
8926
e4da2c61
SM
89272017-06-21 Simon Marchi <simon.marchi@ericsson.com>
8928
8929 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
8930 talk about addressable units instead of bytes.
8931
96160d60
SDJ
89322017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8933
8934 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
8935 of '::const_iterator'.
8936
9a6c7d9c
SDJ
89372017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8938
8939 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8940 'unittests/environ-selftests.c'.
8941 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
8942 * charset.c (find_charset_names): Declare object 'iconv_env'.
8943 Update code to use 'iconv_env' object. Remove call to
8944 'free_environ'.
8945 * common/environ.c: Include <utility>.
8946 (make_environ): Delete function.
8947 (free_environ): Delete function.
8948 (gdb_environ::clear): New function.
8949 (gdb_environ::operator=): New function.
8950 (gdb_environ::get): Likewise.
8951 (environ_vector): Delete function.
8952 (set_in_environ): Delete function.
8953 (gdb_environ::set): New function.
8954 (unset_in_environ): Delete function.
8955 (gdb_environ::unset): New function.
8956 (gdb_environ::envp): Likewise.
8957 * common/environ.h: Include <vector>.
8958 (struct gdb_environ): Delete; transform into...
8959 (class gdb_environ): ... this class.
8960 (free_environ): Delete prototype.
8961 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
8962 environ_vector): Likewise.
8963 * infcmd.c (run_command_1): Update code to call
8964 'envp' from 'gdb_environ' class.
8965 (environment_info): Update code to call methods from 'gdb_environ'
8966 class.
8967 (unset_environment_command): Likewise.
8968 (path_info): Likewise.
8969 (path_command): Likewise.
8970 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
8971 (inferior::inferior): Initialize 'environment' using the host's
8972 information.
8973 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
8974 Include "environ.h".
8975 (class inferior) <environment>: Change type from 'struct
8976 gdb_environ' to 'gdb_environ'.
8977 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
8978 methods from 'gdb_environ' class.
8979 * solib.c (solib_find_1): Likewise
8980 * unittests/environ-selftests.c: New file.
8981
75c554cf
YQ
89822017-06-20 Yao Qi <yao.qi@linaro.org>
8983
8984 * features/i386/i386-linux.xml: Exchange the order of including
8985 32bit-linux.xml and 32bit-sse.xml.
8986 * features/i386/i386-linux.c: Regenerated.
8987
72ddacb7
YQ
89882017-06-20 Yao Qi <yao.qi@linaro.org>
8989
8990 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
8991 Delete copy ctor and assignment operator.
8992 (tdesc_type): Likewise.
8993 (tdesc_feature): Likewise.
8994 (tdesc_free_reg): Remove.
8995 (tdesc_create_reg): Use new.
8996 (tdesc_free_type): Remove.
8997 (tdesc_create_vector): Use new.
8998 (tdesc_create_union): Likewise.
8999 (tdesc_create_flags): Likewise.
9000 (tdesc_create_enum): Likewise.
9001 (tdesc_free_feature): Delete.
9002 (free_target_description): Use delete.
9003
325c9fd4
JB
90042017-06-19 John Baldwin <jhb@FreeBSD.org>
9005
9006 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
9007 registers.
9008
16b7a719
PA
90092017-06-19 Pedro Alves <palves@redhat.com>
9010
9011 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
9012 after gdb::unlinker.
9013
1c8e01c9
SDJ
90142017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
9015
9016 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
9017 gdb_environ to access an environment variable.
9018
ffce45d2
TP
90192017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9020
9021 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
9022 gdb_byte*.
9023
1d4fbac9
SM
90242017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9025
9026 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
9027
8465943a
SM
90282017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9029
9030 * configure: Re-generate.
9031 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
9032
3e019bdc
SM
90332017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9034
9035 * configure: Re-generate.
9036 * warning.m4: Pass -Werror to compiler when checking for
9037 supported warning flags.
9038
cf0dd6f0
SM
90392017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9040
9041 * Makefile.in (COMPILE.pre): Add "-x c++".
9042
6f98355c
YQ
90432017-06-16 Alan Hayward <alan.hayward@arm.com>
9044 Pedro Alves <palves@redhat.com>
9045 Yao Qi <yao.qi@linaro.org>
9046
9047 * defs.h (RequireLongest): New.
9048 (extract_integer): Declare function template.
9049 (extract_signed_integer): Remove the declaration, but define it
9050 static inline.
9051 (extract_unsigned_integer): Likewise.
9052 (store_integer): Declare function template.
9053 (store_signed_integer): Remove the declaration, but define it
9054 static inline.
9055 (store_unsigned_integer): Likewise.
9056 * findvar.c (extract_integer): New function template.
9057 (extract_signed_integer): Remove.
9058 (extract_unsigned_integer): Remove.
9059 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
9060 instantiations.
9061 (store_integer): New function template.
9062 (store_signed_integer): Remove.
9063 (store_unsigned_integer): Remove.
9064 (store_integer): Explicit instantiations.
9065 * regcache.c (regcache_raw_read_signed): Update.
9066 (regcache::raw_read): New function.
9067 (regcache::raw_read_signed): Remove.
9068 (regcache::raw_read_unsigned): Remove.
9069 (regcache_raw_read_unsigned): Update.
9070 (regcache_raw_write_unsigned): Update.
9071 (regcache::raw_write_signed): Remove.
9072 (regcache::raw_write): New function.
9073 (regcache_cooked_read_signed): Update.
9074 (regcache::raw_write_unsigned): Remove.
9075 (regcache::cooked_read_signed): Remove.
9076 (regcache_cooked_read_unsigned): Update.
9077 (regcache::cooked_read_unsigned): Remove.
9078 (regcache_cooked_write_signed): Update.
9079 (regcache_cooked_write_unsigned): Update.
9080 * regcache.h (regcache) <raw_read_signed>: Remove.
9081 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
9082 <raw_read, raw_write>: New.
9083 <cooked_read_signed, cooked_write_signed>: Remove.
9084 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
9085 <cooked_read, cooked_write>: New.
9086 * sh64-tdep.c (sh64_pseudo_register_read): Update.
9087 (sh64_pseudo_register_write): Update.
9088
a87dc45a
AK
90892017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
9090
9091 * arc-tdep.c (arc_disassembler_options): New variable.
9092 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
9093 of default_print_insn.
9094 (arc_delayed_print_insn): Set info->section when needed,
9095 use default_print_insn to retrieve a disassembler.
9096
45159d6a
SDJ
90972017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
9098
9099 PR gdb/21574
9100 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
9101 to mention $SHELL and startup-with-shell.
9102
b46c4cf0
MF
91032017-06-14 Max Filippov <jcmvbkbc@gmail.com>
9104
9105 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
9106
6394c606
YQ
91072017-06-14 Yao Qi <yao.qi@linaro.org>
9108
9109 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
9110 default_print_insn instead of print_insn_aarch64.
9111 * arm-tdep.c (gdb_print_insn_arm): Call
9112 default_print_insn instead of print_insn_big_arm
9113 and print_insn_little_arm.
9114 * i386-tdep.c (i386_print_insn): Call default_print_insn
9115 instead of print_insn_i386.
9116 * ia64-tdep.c (ia64_print_insn): Call
9117 default_print_insn instead of print_insn_ia64.
9118 * mips-tdep.c (gdb_print_insn_mips): Call
9119 default_print_insn instead of print_insn_big_mips
9120 and print_insn_little_mips.
9121 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
9122 instead of print_insn_spu.
9123
d5722aa2
PA
91242017-06-14 Pedro Alves <palves@redhat.com>
9125
9126 * ada-lang.c: Include "common/byte-vector.h".
9127 (ada_value_primitive_packed_val): Use gdb::byte_vector.
9128 * charset.c (wchar_iterator::iterate): Resize the vector instead
9129 of reserving it.
9130 * common/byte-vector.h: Include "common/def-vector.h".
9131 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
9132 * cli/cli-dump.c: Include "common/byte-vector.h".
9133 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
9134 * common/byte-vector.h: New file.
9135 * common/def-vector.h: New file.
9136 * common/default-init-alloc.h: New file.
9137 * dwarf2loc.c: Include "common/byte-vector.h".
9138 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
9139 instead of reserving it.
9140 * dwarf2read.c: Include "common/byte-vector.h".
9141 (data_buf::m_vec): Now a gdb::byte_vector.
9142 * gdb_regex.c: Include "common/def-vector.h".
9143 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
9144 * mi/mi-main.c: Include "common/byte-vector.h".
9145 (mi_cmd_data_read_memory): Use gdb::byte_vector.
9146 * printcmd.c: Include "common/byte-vector.h".
9147 (print_scalar_formatted): Use gdb::byte_vector.
9148 * valprint.c: Include "common/byte-vector.h".
9149 (maybe_negate_by_bytes, print_decimal_chars): Use
9150 gdb::byte_vector.
9151
01ec7a27
SM
91522017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9153
9154 * darwin-nat.c: Include "nat/fork-inferior.h".
9155
848d9074
SM
91562017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9157
9158 * configure.nat: Factor out Darwin bits that are not
9159 architecture-specific. Add fork-inferior.o.
9160
3b912944
SM
91612017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9162
9163 * configure.nat: Factor out AIX bits that are not
9164 architecture-specific. Add fork-inferior.o.
9165
55acdf22
AA
91662017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9167
9168 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
9169 (read_pieced_value, write_pieced_value): ...here. Reduce to
9170 wrappers that just call rw_pieced_value.
9171
f65e2044
AA
91722017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9173
9174 * dwarf2loc.c (write_pieced_value): When writing the data for a
9175 memory piece, use write_memory_with_notification instead of
9176 write_memory.
9177
23f945bf
AA
91782017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9179
9180 * valops.c (read_value_memory): Change embedded_offset to
9181 represent a bit offset instead of a byte offset.
9182 * value.h (read_value_memory): Adjust comment.
9183
f236533e
AA
91842017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9185
9186 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
9187 dest_offset_bits and source_offset_bits.
9188 (write_pieced_value): Likewise.
9189
65d84b76
AA
91902017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9191
9192 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
9193 given by DW_OP_bit_piece.
9194 (write_pieced_value): Likewise.
9195
242d31ab
AA
91962017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9197
9198 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
9199 some other preparations to the places where sufficient information
9200 is available.
9201 (write_pieced_value): Likewise.
9202
03c8af18
AA
92032017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9204
9205 * dwarf2loc.c (bits_to_bytes): New function.
9206 (read_pieced_value): Fix offset calculations for register pieces
9207 on big-endian targets.
9208 (write_pieced_value): Likewise.
9209
840989c1
AA
92102017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9211
9212 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
9213 (write_pieced_value): Likewise.
9214
359b19bb
AA
92152017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9216
9217 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
9218 transfer the source value's least significant bits, instead of its
9219 lowest-addressed ones. Rename type_len to max_offset.
9220 (read_pieced_value): Mirror above changes to write_pieced_value as
9221 applicable.
9222
07c9ca3b
AA
92232017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9224
9225 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
9226 truncate full bytes from dest_offset_bits before using it as an
9227 offset into the buffer.
9228
f1cc9874
AA
92292017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9230
9231 * dwarf2loc.c (write_pieced_value): Include transfer size in
9232 byte-wise check.
9233
cdaac320
AA
92342017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9235
9236 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
9237 calculation of this_size.
9238
af547a96
AA
92392017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9240
9241 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
9242 when targeting a bit-field.
9243 (write_pieced_value): Likewise.
9244
ddd7882a
AA
92452017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9246
9247 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
9248 (allocate_piece_closure): Drop addr_size parameter.
9249 (dwarf2_evaluate_loc_desc_full): Adjust call to
9250 allocate_piece_closure.
9251
e9352324
AA
92522017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9253
9254 PR gdb/21226
9255 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
9256 the LSB end, independent of endianness.
9257
d5d1163e
AA
92582017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9259
9260 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
9261 size capping.
9262
032bb6ea
YQ
92632017-06-13 Yao Qi <yao.qi@linaro.org>
9264
9265 * mips-linux-nat.c: Move include features/mips*-linux.c to
9266 mips-linux-tdep.c.
9267 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
9268 to mips-linux-tdep.c.
9269 * mips-linux-tdep.c: Include features/mips*-linux.c
9270 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
9271 functions.
9272 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
9273 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
9274 (tdesc_mips64_dsp_linux): Declare.
9275
f12f6bad
TT
92762017-06-12 Tom Tromey <tom@tromey.com>
9277
9278 * valprint.h (val_print_type_code_int): Remove.
9279 * valprint.c (generic_val_print_int): Always call
9280 val_print_scalar_formatted.
9281 (val_print_type_code_int): Remove.
9282 * printcmd.c (print_scalar_formatted): Handle options->format==0.
9283 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
9284 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
9285 * ada-valprint.c (ada_val_print_num): Use
9286 val_print_scalar_formatted.
9287
d9109c80
TT
92882017-06-12 Tom Tromey <tom@tromey.com>
9289
9290 * printcmd.c (print_scalar_formatted): Unify the two switches.
9291 Don't convert scalars to LONGEST.
9292
4ac0cb1c
TT
92932017-06-12 Tom Tromey <tom@tromey.com>
9294
9295 PR exp/16225:
9296 * valprint.h (print_decimal_chars): Update.
9297 * valprint.c (maybe_negate_by_bytes): New function.
9298 (print_decimal_chars): Add "is_signed" argument.
9299 * printcmd.c (print_scalar_formatted): Update.
9300
30a25466
TT
93012017-06-12 Tom Tromey <tom@tromey.com>
9302
9303 PR exp/16225:
9304 * valprint.h (print_binary_chars, print_hex_chars): Update.
9305 * valprint.c (val_print_type_code_int): Update.
9306 (print_binary_chars): Add "zero_pad" argument.
9307 (emit_octal_digit): New function.
9308 (print_octal_chars): Don't zero-pad.
9309 (print_decimal_chars): Likewise.
9310 (print_hex_chars): Add "zero_pad" argument.
9311 * sh64-tdep.c (sh64_do_fp_register): Update.
9312 * regcache.c (regcache::dump): Update.
9313 * printcmd.c (print_scalar_formatted): Update.
9314 * infcmd.c (default_print_one_register_info): Update.
9315
b3464d03
PA
93162017-06-12 Pedro Alves <palves@redhat.com>
9317 Alan Hayward <alan.hayward@arm.com>
9318
9319 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
9320 (mips_eabi_push_dummy_call): Rename local 'regsize' to
9321 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
9322 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
9323 Assert that abi_regsize bytes fit in 'ref_valbuf'.
9324
4b76cda9
PA
93252017-06-12 Pedro Alves <palves@redhat.com>
9326
9327 * dwarf2read.c (mapped_symtab::data): Now a vector of
9328 symtab_index_entry instead of vector of
9329 std::unique_ptr<symtab_index_entry>. All users adjusted to check
9330 whether an element's name is NULL instead of checking whether the
9331 element itself is NULL.
9332 (find_slot): Change return type. Adjust.
9333 (hash_expand, , add_index_entry, uniquify_cu_indices)
9334 (write_hash_table): Adjust.
9335
e8f8bcb3
PA
93362017-06-12 Pedro Alves <palves@redhat.com>
9337
9338 * dwarf2read.c (recursively_count_psymbols): New function.
9339 (write_psymtabs_to_index): Call it to compute number of psyms and
9340 pass estimate size of psyms_seen to unordered_set's ctor.
9341
70a1152b
PA
93422017-06-12 Pedro Alves <palves@redhat.com>
9343
9344 * dwarf2read.c (write_hash_table): Check if key already exists
9345 before emplacing.
9346
c2f134ac
PA
93472017-06-12 Pedro Alves <palves@redhat.com>
9348
9349 * dwarf2read.c (data_buf::append_space): Rename to...
9350 (data_buf::grow): ... this, and make private. Adjust all callers.
9351 (data_buf::append_uint): New method.
9352 (add_address_entry, write_one_signatured_type)
9353 (write_psymtabs_to_index): Use it.
9354
a81e6d4d
PA
93552017-06-12 Pedro Alves <palves@redhat.com>
9356
9357 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
9358 (file_write (FILE *, const std::vector<Elem>&)): Delete.
9359 (data_buf::file_write): Call ::fwrite directly.
9360
6fd931f2
PA
93612017-06-12 Pedro Alves <palves@redhat.com>
9362
9363 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
9364 std::vector::erase.
9365
bc8f2430
JK
93662017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9367
9368 Code cleanup: C++ify .gdb_index producer.
9369 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
9370 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
9371 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
9372 (create_strtab, add_string): Remove.
9373 (file_write, data_buf): New.
9374 (struct symtab_index_entry): Use std::vector for cu_indices.
9375 (struct mapped_symtab): Use std::vector for data.
9376 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
9377 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
9378 Remove.
9379 (find_slot): Change return type. Update it to the new data structures.
9380 (hash_expand, add_index_entry): Update it to the new data structures.
9381 (offset_type_compare): Remove.
9382 (uniquify_cu_indices): Update it to the new data structures.
9383 (c_str_view, c_str_view_hasher, vector_hasher): New.
9384 (add_indices_to_cpool): Remove.
9385 (write_hash_table): Update it to the new data structures.
9386 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
9387 (eq_psymtab_cu_index): Remove.
9388 (psym_index_map): New typedef.
9389 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
9390 reference and std::unordered_map for cu_index_htab.
9391 (add_address_entry, add_address_entry_worker, write_address_map)
9392 (write_psymbols): Update it to the new data structures.
9393 (write_obstack): Remove.
9394 (struct signatured_type_index_data): Change types_list to a data_buf
9395 reference and psyms_seen to a std::unordered_set reference.
9396 (write_one_signatured_type, recursively_write_psymbols)
9397 (write_psymtabs_to_index): Update it to the new data structures.
9398
c4dcb155
SM
93992017-06-11 Simon Marchi <simon.marchi@ericsson.com>
9400
9401 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
9402 separate-debug-file commands.
9403 * symfile.h (separate_debug_file_debug): New global.
9404 * symfile.c (separate_debug_file_debug): New global.
9405 (separate_debug_file_exists, find_separate_debug_file): Add
9406 debug output.
9407 (_initialize_symfile): Add "set debug separate-debug-file"
9408 command.
9409 * build-id.c (build_id_to_debug_bfd,
9410 find_separate_debug_file_by_buildid): Add debug output.
9411
6d45d4b4
SM
94122017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
9413
9414 * gdbarch.sh (displaced_step_free_closure): Remove.
9415 * gdbarch.h, gdbarch.c: Re-generate.
9416 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
9417 displaced_step_free_closure.
9418 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
9419 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9420 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9421 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
9422 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9423 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9424 * arch-utils.h (simple_displaced_step_free_closure): Remove.
9425 * arch-utils.c (simple_displaced_step_free_closure): Remove.
9426 * infrun.c (displaced_step_clear): Call xfree instead of
9427 gdbarch_displaced_step_free_closure.
9428
2f91880f
SDJ
94292017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
9430
9431 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
9432 NULL".
9433
b8b6e72f
AH
94342017-06-08 Alan Hayward <alan.hayward@arm.com>
9435
9436 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
9437 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
9438 (mn10300_push_dummy_call): Likewise.
9439
5369082e
AH
94402017-06-08 Alan Hayward <alan.hayward@arm.com>
9441
9442 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
9443
ff4ca5ac
AH
94442017-06-08 Alan Hayward <alan.hayward@arm.com>
9445
9446 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
9447
aefd8b33
SDJ
94482017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9449
9450 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
9451 able to start inferiors using a shell.
9452 (New remote packets): Announce new packet "QStartupWithShell".
9453 * remote.c: Add PACKET_QStartupWithShell.
9454 (extended_remote_create_inferior): Handle new
9455 PACKET_QStartupWithShell.
9456 (remote_protocol_features) <QStartupWithShell>: New entry for
9457 PACKET_QStartupWithShell.
9458 (_initialize_remote): Call "add_packet_config_cmd" for
9459 QStartupShell.
9460
2090129c
SDJ
94612017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9462 Pedro Alves <palves@redhat.com>
9463
9464 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
9465 and "nat/fork-inferior.h".
9466 * common/common-inferior.h: New file, with contents from
9467 "gdb/inferior.h".
9468 * commom/common-utils.c: Include "common-utils.h".
9469 (stringify_argv): New function.
9470 * common/common-utils.h (stringify_argv): New prototype.
9471 * configure.nat: Add "fork-inferior.o" as a dependency for
9472 "*linux*", "fbsd*" and "nbsd*" hosts.
9473 * corefile.c (get_exec_file): Update comment.
9474 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
9475 instead of "startup_inferior".
9476 (darwin_create_inferior): Call "add_thread_silent" after
9477 "fork_inferior".
9478 * fork-child.c: Cleanup unnecessary includes.
9479 (SHELL_FILE): Move to "common/common-fork-child.c".
9480 (environ): Likewise.
9481 (exec_wrapper): Initialize.
9482 (get_exec_wrapper): New function.
9483 (breakup_args): Move to "common/common-fork-child.c"; rename to
9484 "breakup_args_for_exec".
9485 (escape_bang_in_quoted_argument): Move to
9486 "common/common-fork-child.c".
9487 (saved_ui): New variable.
9488 (prefork_hook): New function.
9489 (postfork_hook): Likewise.
9490 (postfork_child_hook): Likewise.
9491 (gdb_startup_inferior): Likewise.
9492 (fork_inferior): Move to "common/common-fork-child.c". Update
9493 function to support gdbserver.
9494 (startup_inferior): Likewise.
9495 * gdbcore.h (get_exec_file): Remove declaration.
9496 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
9497 instead of "startup_inferior". Call "add_thread_silent" after
9498 "fork_inferior".
9499 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
9500 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
9501 instead of "startup_inferior". Call "add_thread_silent" after
9502 "fork_inferior".
9503 * inferior.h: Include "common-inferior.h".
9504 (trace_start_error): Move to "common/common-utils.h".
9505 (trace_start_error_with_name): Likewise.
9506 (fork_inferior): Move prototype to "nat/fork-inferior.h".
9507 (startup_inferior): Likewise.
9508 (gdb_startup_inferior): New prototype.
9509 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
9510 * nat/fork-inferior.h: New file.
9511 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
9512 instead of "startup_inferior". Call "add_thread_silent" after
9513 "fork_inferior".
9514 * target.h (target_terminal_init): Move prototype to
9515 "target/target.h".
9516 (target_terminal_inferior): Likewise.
9517 (target_terminal_ours): Likewise.
9518 * target/target.h (target_terminal_init): New prototype, moved
9519 from "target.h".
9520 (target_terminal_inferior): Likewise.
9521 (target_terminal_ours): Likewise.
9522 * utils.c (gdb_flush_out_err): New function.
9523
043a4934
SDJ
95242017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9525
9526 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
9527 * common/common-gdbthread.h: New file, with parts from
9528 "gdb/gdbthread.h".
9529 * gdbthread.h: Include "common-gdbthread.h".
9530 (switch_to_thread): Moved to "common/common-gdbthread.h".
9531
15652511
SDJ
95322017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9533
9534 * Makefile.in (SFILES): Add "common/job-control.c".
9535 (HFILES_NO_SRCDIR): Add "common/job-control.h".
9536 (COMMON_OBS): Add "job-control.o".
9537 * common/job-control.c: New file, with contents from
9538 "gdb/inflow.c".
9539 * common/job-control.h: New file, with contents from "terminal.h".
9540 * fork-child.c: Include "job-control.h".
9541 * inflow.c: Include "job-control.h".
9542 (gdb_setpgid): Move to "common/common-inflow.c".
9543 (_initialize_inflow): Move setting of "job_control" to
9544 "handle_job_control".
9545 * terminal.h (job_control): Moved to "common/common-terminal.h".
9546 (gdb_setpgid): Likewise.
9547 * top.c: Include "job_control.h".
9548 * utils.c: Likewise.
9549 (job_control): Moved to "job-control.c".
9550
2d7cc5c7
PA
95512017-06-07 Pedro Alves <palves@redhat.com>
9552
9553 * Makefile.in (SFILES): Add gdb_regex.c.
9554 (COMMON_OBS): Add gdb_regex.o.
9555 * ada-lang.c (ada_add_standard_exceptions)
9556 (ada_add_exceptions_from_frame, name_matches_regex)
9557 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
9558 parameter type to compiled_regex. Adjust.
9559 (ada_exceptions_list): Use compiled_regex.
9560 * break-catch-throw.c (exception_catchpoint::pattern): Now a
9561 std::unique_ptr<compiled_regex>.
9562 (exception_catchpoint::~exception_catchpoint): Remove regfree
9563 call.
9564 (check_status_exception_catchpoint): Adjust to use compiled_regex.
9565 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
9566 * breakpoint.c (solib_catchpoint::compiled): Now a
9567 std::unique_ptr<compiled_regex>.
9568 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
9569 (check_status_catch_solib): Adjust to use compiled_regex.
9570 (add_solib_catchpoint): Adjust to use compiled_regex.
9571 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
9572 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
9573 compiled_regex reference. Adjust to use it.
9574 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
9575 declaration. Include "gdb_regex.h".
9576 (apropos_cmd): Change regex parameter to compiled_regex reference.
9577 * gdb_regex.c: New file.
9578 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
9579 declarations.
9580 (class compiled_regex): New.
9581 * linux-tdep.c: Include "common/gdb_optional.h".
9582 (struct mapping_regexes): New, factored out from
9583 mapping_is_anonymous_p, and adjusted to use compiled_regex.
9584 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
9585 gdb::optional and remove cleanups. Adjust to compiled_regex.
9586 * probe.c: Include "common/gdb_optional.h".
9587 (collect_probes): Use compiled_regex and gdb::optional and remove
9588 cleanups.
9589 * skip.c: Include "common/gdb_optional.h".
9590 (skiplist_entry::compiled_function_regexp): Now a
9591 gdb::optional<compiled_regex>.
9592 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
9593 (free_skiplist_entry): Remove regfree call.
9594 (compile_skip_regexp, skip_rfunction_p): Adjust to use
9595 compiled_regex and gdb::optional.
9596 * symtab.c: Include "common/gdb_optional.h".
9597 (search_symbols): Use compiled_regex and gdb::optional.
9598 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
9599 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
9600 to gdb_regex.c.
9601
50d6adef
AH
96022017-06-07 Alan Hayward <alan.hayward@arm.com>
9603
9604 * regcache.c (regcache::save): Avoid buffer use.
9605 (regcache::dump): Likewise.
9606
4a8a33c8
AH
96072017-06-07 Alan Hayward <alan.hayward@arm.com>
9608
9609 * sh-tdep.c (sh_pseudo_register_read): Remove
9610 MAX_REGISTER_SIZE.
9611 (sh_pseudo_register_write): Likewise.
9612 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
9613 (sh64_pseudo_register_write): Likewise
9614
d1be909e
AH
96152017-06-07 Alan Hayward <alan.hayward@arm.com>
9616
9617 * aarch64-tdep.c (aarch64_store_return_value): Use
9618 V_REGISTER_SIZE.
9619 (aarch64_pseudo_read_value): Likewise.
9620 (aarch64_pseudo_write): Likewise.
9621
f4a65042
YQ
96222017-06-06 Yao Qi <yao.qi@linaro.org>
9623
9624 * regformats/regdef.h (set_register_cache): Remove the
9625 declaration.
9626
9f7fb0aa
AH
96272017-06-06 Alan Hayward <alan.hayward@arm.com>
9628
9629 * frame.c (frame_unwind_register_signed): Use
9630 frame_unwind_register_value.
9631
e1e01040
PA
96322017-06-06 Pedro Alves <palves@redhat.com>
9633
9634 PR breakpoints/21553
9635 * breakpoint.c (create_breakpoints_sal_default)
9636 (init_breakpoint_sal, create_breakpoint_sal): Use
9637 gdb::unique_xmalloc_ptr for string parameters.
9638 (create_breakpoint): Constify 'extra_string' and 'cond_string'
9639 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
9640 (base_breakpoint_create_breakpoints_sal)
9641 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
9642 (strace_marker_create_breakpoints_sal)
9643 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
9644 string parameters.
9645 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
9646 gdb::unique_xmalloc_ptr for string parameters.
9647 (create_breakpoint): Constify 'extra_string' and 'cond_string'
9648 parameters.
9649
fbe654c8
AH
96502017-06-06 Alan Hayward <alan.hayward@arm.com>
9651
9652 * alpha-tdep.c (alpha_register_to_value): Use
9653 get_frame_register_value.
9654 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
9655
ae0d01d6
AH
96562017-06-06 Alan Hayward <alan.hayward@arm.com>
9657
9658 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
9659 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
9660 (ia64_value_to_register): Likewise.
9661 (ia64_extract_return_value): Likewise.
9662 (ia64_store_return_value): Likewise.
9663 (ia64_push_dummy_call): Likewise.
9664
49cf576c
JB
96652017-06-04 Joel Brobecker <brobecker@adacore.com>
9666
9667 GDB 8.0 released.
9668
26b6a6ab
SM
96692017-06-03 Simon Marchi <simon.marchi@ericsson.com>
9670
9671 * x86-linux-nat.c (struct arch_lwp_info): Remove.
9672
22827c51
SM
96732017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
9674
9675 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
9676 parameter.
9677 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
9678
0e05cf3a
SM
96792017-06-02 Simon Marchi <simon.marchi@ericsson.com>
9680
9681 * event-loop.c (poll_timers): Unallocate timer using delete
9682 instead of xfree.
9683
c1fc2657
SM
96842017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9685
9686 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
9687 (struct breakpoint) <~breakpoint>: New.
9688 (struct watchpoint): Inherit from breakpoint.
9689 <~watchpoint>: New.
9690 <base>: Remove.
9691 (struct tracepoint): Inherit from breakpoint.
9692 <base>: Remove.
9693 * breakpoint.c (longjmp_breakpoint_ops): Remove.
9694 (struct longjmp_breakpoint): Inherit from breakpoint.
9695 <~longjmp_breakpoint>: New.
9696 <base>: Remove.
9697 (new_breakpoint_from_type): Remove casts.
9698 (watchpoint_in_thread_scope): Remove reference to base field.
9699 (watchpoint_del_at_next_stop): Likewise.
9700 (update_watchpoint): Likewise.
9701 (watchpoint_check): Likewise.
9702 (bpstat_check_watchpoint): Likewise.
9703 (set_longjmp_breakpoint): Likewise.
9704 (struct fork_catchpoint): Inherit from breakpoint.
9705 <base>: Remove.
9706 (struct solib_catchpoint): Inherit from breakpoint.
9707 <~solib_catchpoint>: New.
9708 <base>: Remove.
9709 (dtor_catch_solib): Change to ...
9710 (solib_catchpoint::~solib_catchpoint): ... this.
9711 (breakpoint_hit_catch_solib): Remove reference to base field.
9712 (add_solib_catchpoint): Likewise.
9713 (create_fork_vfork_event_catchpoint): Likewise.
9714 (struct exec_catchpoint): Inherit from breakpoint.
9715 <~exec_catchpoint>: New.
9716 <base>: Remove.
9717 (dtor_catch_exec): Change to ...
9718 (exec_catchpoint::~exec_catchpoint): ... this.
9719 (dtor_watchpoint): Change to ...
9720 (watchpoint::~watchpoint): ... this.
9721 (watch_command_1): Remove reference to base field.
9722 (catch_exec_command_1): Likewise.
9723 (base_breakpoint_dtor): Change to ...
9724 (breakpoint::~breakpoint): ... this.
9725 (base_breakpoint_ops): Remove dtor field value.
9726 (longjmp_bkpt_dtor): Change to ...
9727 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
9728 (strace_marker_create_breakpoints_sal): Remove reference to base
9729 field.
9730 (delete_breakpoint): Don't manually call breakpoint destructor.
9731 (create_tracepoint_from_upload): Remove reference to base field.
9732 (trace_pass_set_count): Likewise.
9733 (initialize_breakpoint_ops): Don't initialize
9734 momentary_breakpoint_ops, don't set dtors.
9735 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
9736 <~ada_catchpoint>: New.
9737 <base>: Remove.
9738 (create_excep_cond_exprs): Remove reference to base field.
9739 (dtor_exception): Change to ...
9740 (ada_catchpoint::~ada_catchpoint): ... this.
9741 (dtor_catch_exception): Remove.
9742 (dtor_catch_exception_unhandled): Remove.
9743 (dtor_catch_assert): Remove.
9744 (create_ada_exception_catchpoint): Remove reference to base
9745 field.
9746 (initialize_ada_catchpoint_ops): Don't set dtors.
9747 * break-catch-sig.c (struct signal_catchpoint): Inherit from
9748 breakpoint.
9749 <~signal_catchpoint>: New.
9750 <base>: Remove.
9751 (signal_catchpoint_dtor): Change to ...
9752 (signal_catchpoint::~signal_catchpoint): ... this.
9753 (create_signal_catchpoint): Remove reference to base field.
9754 (initialize_signal_catchpoint_ops): Don't set dtor.
9755 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
9756 from breakpoint.
9757 <~syscall_catchpoint>: New.
9758 <base>: Remove.
9759 (dtor_catch_syscall): Change to ...
9760 (syscall_catchpoint::~syscall_catchpoint): ... this.
9761 (create_syscall_event_catchpoint): Remove reference to base
9762 field.
9763 (initialize_syscall_catchpoint_ops): Don't set dtor.
9764 * break-catch-throw.c (struct exception_catchpoint): Inherit
9765 from breakpoint.
9766 <~exception_catchpoint>: New.
9767 <base>: Remove.
9768 (dtor_exception_catchpoint): Change to ...
9769 (exception_catchpoint::~exception_catchpoint): ... this.
9770 (handle_gnu_v3_exceptions): Remove reference to base field.
9771 (initialize_throw_catchpoint_ops): Don't set dtor.
9772 * ctf.c (ctf_get_traceframe_address): Remove reference to base
9773 field.
9774 * remote.c (remote_get_tracepoint_status): Likewise.
9775 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
9776 * tracefile.c (tracefile_fetch_registers): Likewise.
9777 * tracepoint.c (actions_command): Likewise.
9778 (validate_actionline): Likewise.
9779 (tfind_1): Likewise.
9780 (get_traceframe_location): Likewise.
9781 (find_matching_tracepoint_location): Likewise.
9782 (parse_tracepoint_status): Likewise.
9783 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
9784
3b0871f4
SM
97852017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9786
9787 * breakpoint.c (struct longjmp_breakpoint): New struct.
9788 (is_tracepoint_type): Change return type to bool.
9789 (is_longjmp_type): New function.
9790 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
9791 (set_raw_breakpoint_without_location): Use
9792 new_breakpoint_from_type.
9793 (set_raw_breakpoint): Likewise.
9794
a5e364af
SM
97952017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9796
9797 * breakpoint.c (new_breakpoint_from_type): New function.
9798 (create_breakpoint_sal): Use new_breakpoint_from_type and
9799 unique_ptr.
9800 (create_breakpoint): Likewise.
9801
ae3b3f34
SM
98022017-05-31 Simon Marchi <simon.marchi@ericsson.com>
9803
9804 * memattr.c (mem_info_command): Rename to ...
9805 (info_mem_command): ... this.
9806 (mem_enable_command): Rename to ...
9807 (enable_mem_command): ... this.
9808 (mem_disable_command): Rename to ...
9809 (disable_mem_command): ... this.
9810 (mem_delete_command): Rename to ...
9811 (delete_mem_command): ... this.
9812 (_initialize_mem): Adjust function names.
9813
13ace077
MM
98142017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9815
9816 * btrace.c (handle_pt_insn_events): New.
9817 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
9818 STATUS. Split into this and ...
9819 (handle_pt_insn_event_flags): ... this.
9820
c56ccc05
MM
98212017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9822
9823 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
9824 and struct pt_insn.resynced.
9825 * configure: Regenerated.
9826 * config.in: Regenerated.
9827
08c3f6d2
TW
98282017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9829
9830 * btrace.c (ftrace_find_call_by_number): New function.
9831 (ftrace_new_function): Store objects, not pointers.
9832 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
9833 ftrace_new_gap, ftrace_update_function,
9834 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
9835 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
9836 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
9837 btrace_ends_with_single_insn, btrace_call_get): Account for
9838 btrace_thread_info::functions now storing objects.
9839 * btrace.h (struct btrace_thread_info): Add constructor.
9840 (struct btrace_thread_info) <functions>: Make std::vector.
9841 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
9842 Initialize with default values.
9843 * record-btrace.c (record_btrace_frame_sniffer): Account for
9844 btrace_thread_info::functions now storing objects.
9845
8ffd39f2
TW
98462017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9847
9848 * btrace.c: Remove typedef bfun_s.
9849 (ftrace_new_gap): Directly add gaps to the list of gaps.
9850 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
9851 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
9852 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
9853 instead of gdb VEC.
9854
4aeb0dfc
TW
98552017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9856
9857 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
9858 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
9859 with btrace_thread_info::next_segment and
9860 btrace_thread_info::prev_segment.
9861 * btrace.h: Remove struct btrace_func_link.
9862 (struct btrace_function): Replace pair of function segment pointers
9863 with pair of indices.
9864 * python/py-record-btrace.c (btpy_call_prev_sibling,
9865 btpy_call_next_sibling): Replace references to
9866 btrace_thread_info::segment with btrace_thread_info::next_segment and
9867 btrace_thread_info::prev_segment.
9868 * record-btrace.c (record_btrace_frame_this_id): Use
9869 btrace_find_call_by_number.
9870
eb8f2b9c
TW
98712017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9872
9873 * btrace.c (ftrace_new_function, ftrace_fixup_level,
9874 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
9875 btrace_insn_next, btrace_insn_prev): Remove references to
9876 btrace_thread_info::flow.
9877 * btrace.h (struct btrace_function): Remove FLOW.
9878
42bfe59e
TW
98792017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9880
9881 * btrace.c (ftrace_find_call_by_number): New function.
9882 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
9883 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
9884 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
9885 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
9886 index.
9887 * btrace.h (struct btrace_function): Turn UP into an index.
9888 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
9889 as an index.
9890 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
9891 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
9892 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
9893
b54b03bd
TW
98942017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9895
9896 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9897 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9898 ftrace_update_function, ftrace_compute_global_level_offset,
9899 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
9900 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
9901 btrace_insn_end, btrace_is_empty): Remove references to
9902 btrace_thread_info::begin and btrace_thread_info::end.
9903 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
9904 (struct btrace_thread_info) <functions>: Adjust comment.
9905 * record-btrace.c (record_btrace_start_replaying): Remove reference to
9906 btrace_thread_info::begin.
9907
8286623c
TW
99082017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9909
9910 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9911 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9912 ftrace_update_function): Remove arguments that implicitly were always
9913 BTINFO->END.
9914 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
9915 Don't pass BTINFO->END.
9916
a0f1b963
TW
99172017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9918
9919 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
9920 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
9921 btrace_find_insn_by_number): Replace function segment pointer with
9922 index.
9923 (btrace_insn_cmp): Simplify.
9924 * btrace.h: (struct btrace_insn_iterator) Rename index to
9925 insn_index. Replace function segment pointer with index into function
9926 segment vector.
9927 * record-btrace.c (record_btrace_call_history): Replace function
9928 segment pointer use with index.
9929 (record_btrace_frame_sniffer): Retrieve function call segment through
9930 vector.
9931 (record_btrace_set_replay): Remove defunc't safety check.
9932
f158f208
TW
99332017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9934
9935 * btrace.c (btrace_ends_with_single_insn): New function.
9936 (btrace_call_get, btrace_call_number, btrace_call_begin,
9937 btrace_call_end, btrace_call_next, btrace_call_prev,
9938 btrace_find_call_by_number): Use index into call segment vector
9939 instead of pointer.
9940 (btrace_call_cmp): Simplify.
9941 * btrace.h (struct btrace_call_iterator): Replace function call segment
9942 pointer with index into vector.
9943 * record-btrace.c (record_btrace_call_history): Use index instead of
9944 pointer.
9945
521103fd
TW
99462017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9947
9948 * btrace.c (btrace_insn_begin, btrace_insn_end,
9949 btrace_find_insn_by_number): Add btinfo to iterator.
9950 * btrace.h (struct btrace_insn_iterator): Add btinfo.
9951
17b89b34
TW
99522017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9953
9954 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
9955 and save pointers directly.
9956 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
9957 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
9958 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
9959 changed signature of functions.
9960 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
9961 (btrace_fetch): Remove code that adds btrace_function pointers to
9962 vector of btrace_functions.
9963 (btrace_clear): Simplify freeing vector of btrace_functions.
9964
2b51eddc
TW
99652017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9966
9967 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
9968 Replace VEC_* with std::vector functions.
9969 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
9970 (struct btrace_thread_info)<functions>: Change type to std::vector.
9971
db6be0d5
SM
99722017-05-30 Simon Marchi <simon.marchi@ericsson.com>
9973
9974 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
9975 "Removed targets and native configurations" up. Merge duplicate
9976 "New commands" sub-sections. Add "New options" sub-sections.
9977
b057297a
AH
99782017-05-26 Alan Hayward <alan.hayward@arm.com>
9979
9980 * defs.h (copy_integer_to_size): New declaration.
9981 * findvar.c (copy_integer_to_size): New function.
9982 (do_cint_test): New selftest function.
9983 (copy_integer_to_size_test): Likewise.
9984 (_initialize_findvar): Likewise.
9985 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
9986 (mips_fbsd_collect_reg): Use raw_collect_integer.
9987 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
9988 (mips64_fill_gregset): Use raw_collect_integer
9989 (mips64_fill_fpregset): Use raw_supply_integer.
9990 * regcache.c (regcache::raw_supply_integer): New function.
9991 (regcache::raw_collect_integer): Likewise.
9992 * regcache.h: (regcache::raw_supply_integer): New declaration.
9993 (regcache::raw_collect_integer): Likewise.
9994
b77b02a5
YQ
99952017-05-24 Yao Qi <yao.qi@linaro.org>
9996
9997 * Makefile.in (SFILES): Add gdbarch-selftests.c.
9998 (COMMON_OBS): Add gdbarch-selftests.o.
9999 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
10000 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
10001 * gdbarch-selftests.c: New file.
10002 * regcache.h (regcache) <~regcache>: Mark it virtual if
10003 GDB_SELF_TEST.
10004 <raw_write>: Likewise.
10005
e521e87e
YQ
100062017-05-24 Yao Qi <yao.qi@linaro.org>
10007
10008 * regcache.c (current_regcache): Change it to
10009 regcache::current_regcache.
10010 (regcache_observer_target_changed): Update.
10011 (regcache_thread_ptid_changed): Make it a regcache static
10012 method.
10013 (regcache_thread_ptid_changed): Update.
10014 (class regcache_access): New.
10015 (current_regcache_test): Update.
10016 (_initialize_regcache): Update.
10017 * regcache.h: Include forward_list.
10018 (regcache): Declare regcache_thread_ptid_changed and declare
10019 registers_changed_ptid as friend.
10020
d8e07dda
YQ
100212017-05-24 Yao Qi <yao.qi@linaro.org>
10022
10023 * i387-tdep.c (i387_register_to_value): Use register_size
10024 instead of TYPE_LENGTH.
10025 * m68k-tdep.c (m68k_register_to_value): Likewise.
10026
8c8f9122
YQ
100272017-05-24 Yao Qi <yao.qi@linaro.org>
10028
10029 * i387-tdep.c (i387_convert_register_p): Return false if type
10030 code isn't TYPE_CODE_FLT.
10031
68fce50f
YQ
100322017-05-24 Yao Qi <yao.qi@linaro.org>
10033
10034 * alpha-tdep.c (alpha_convert_register_p): Return true if type
10035 length is 4.
10036 (alpha_register_to_value): Remove type length check.
10037 (alpha_value_to_register): Likewise.
10038
88954b49
YQ
100392017-05-24 Yao Qi <yao.qi@linaro.org>
10040
10041 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
10042 TYPE_CODE_FLT.
10043
e3ec9b69
YQ
100442017-05-24 Yao Qi <yao.qi@linaro.org>
10045
10046 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
10047 TYPE_CODE_FLT or not.
10048
cdd238da
YQ
100492017-05-24 Yao Qi <yao.qi@linaro.org>
10050
10051 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
10052 * avr-tdep.c (avr_gdbarch_init): Likewise.
10053 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10054 * cris-tdep.c (cris_gdbarch_init): Likewise.
10055 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
10056 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10057 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10058 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10059 * mep-tdep.c (mep_gdbarch_init): Likewise.
10060 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10061 * mips-tdep.c (mips_gdbarch_init): Likewise.
10062 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10063 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10064 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
10065 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10066 * v850-tdep.c (v850_gdbarch_init): Likewise.
10067
7a3929c4
YQ
100682017-05-24 Yao Qi <yao.qi@linaro.org>
10069
10070 * selftest-arch.c (tests_with_arch): Call registers_changed
10071 and reinit_frame_cache.
10072 * selftest.c (run_self_tests): Likewise.
10073
f4985dba
YQ
100742017-05-24 Yao Qi <yao.qi@linaro.org>
10075
10076 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
10077 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
10078
ab20fa4a
YQ
100792017-05-24 Yao Qi <yao.qi@linaro.org>
10080
10081 * rl78-tdep.c (rl78_gdbarch_init): Don't call
10082 set_gdbarch_print_insn.
10083
f532ab94
YQ
100842017-05-24 Yao Qi <yao.qi@linaro.org>
10085
10086 * h8300-tdep.c (h8300_gdbarch_init): Don't call
10087 set_gdbarch_print_insn.
10088
39503f82
YQ
100892017-05-24 Yao Qi <yao.qi@linaro.org>
10090
10091 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10092 set_gdbarch_print_insn.
10093 * arc-tdep.c (arc_gdbarch_init): Likewise.
10094 * arch-utils.c: include dis-asm.h.
10095 (default_print_insn): New function.
10096 * arch-utils.h (default_print_insn): Declare.
10097 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
10098 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10099 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
10100 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
10101 * frv-tdep.c (frv_gdbarch_init): Likewise.
10102 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
10103 * gdbarch.sh (print_insn): Use default_print_insn.
10104 * gdbarch.c: Regenerated.
10105 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10106 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
10107 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10108 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
10109 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10110 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
10111 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
10112 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10113 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
10114 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10115 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10116 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10117 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
10118 * mt-tdep.c (mt_gdbarch_init): Likewise.
10119 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10120 * nios2-tdep.c (nios2_print_insn): Remove.
10121 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
10122 * rx-tdep.c (rx_gdbarch_init): Likewise.
10123 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10124 * score-tdep.c (score_print_insn): Remove.
10125 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
10126 * sh-tdep.c (sh_gdbarch_init): Likewise.
10127 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10128 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10129 * tic6x-tdep.c (tic6x_print_insn): Remove.
10130 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
10131 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
10132 * v850-tdep.c (v850_gdbarch_init): Likewise.
10133 * vax-tdep.c (vax_gdbarch_init): Likewise.
10134 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10135 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
10136
f7241d4f
JB
101372017-05-23 John Baldwin <jhb@FreeBSD.org>
10138
10139 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
10140 (MIPS_FP0_REGNUM): Remove.
10141 (MIPS_FSR_REGNUM): Remove.
10142 (mips_fbsd_supply_fpregs): Use mips_regnum.
10143 (mips_fbsd_supply_gregs): Likewise.
10144 (mips_fbsd_collect_fpregs): Likewise.
10145 (mips_fbsd_collect_gregs): Likewise.
10146
d489d81d
JB
101472017-05-23 John Baldwin <jhb@FreeBSD.org>
10148
10149 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
10150 (getpfpregs_supplies): New function.
10151 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
10152 getfpregs_supplies.
10153 (mips_fbsd_store_inferior_registers): Likewise.
10154
e11b3cdc
PA
101552017-05-22 Pedro Alves <palves@redhat.com>
10156
10157 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
10158 maintainer.
10159
0f068fb5
AH
101602017-05-22 Alan Hayward <alan.hayward@arm.com>
10161
10162 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
10163 (store_register): Likewise.
10164 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
10165 (get_decimal_float_return_value): Likewise.
10166 (do_ppc_sysv_return_value): Likewise.
10167 (ppc64_sysv_abi_push_integer): Likewise.
10168 (ppc64_sysv_abi_push_freg): Likewise.
10169 (ppc64_sysv_abi_return_value_base): Likewise.
10170 (ppc64_sysv_abi_return_value): Likewise.
10171 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
10172 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
10173 * rs6000-nat.c: Likewise.
10174 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
10175 (rs6000_value_to_register): Likewise.
10176 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
10177
e6cf65f2
TT
101782017-05-21 Tom Tromey <tom@tromey.com>
10179
10180 PR rust/21466:
10181 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
10182 arrays as "[T]", not "[T; ]".
10183
43cc5389
TT
101842017-05-19 Tom Tromey <tom@tromey.com>
10185
10186 PR rust/21484:
10187 * rust-lang.c (exp_descriptor_rust): New function.
10188 (rust_language_defn): Use it.
10189 * p-lang.c (pascal_language_defn): Update.
10190 * opencl-lang.c (opencl_language_defn): Update.
10191 * objc-lang.c (objc_language_defn): Update.
10192 * m2-lang.c (m2_language_defn): Update.
10193 * language.h (struct language_defn)
10194 <la_watch_location_expression>: New member.
10195 * language.c (unknown_language_defn, auto_language_defn)
10196 (local_language_defn): Update.
10197 * go-lang.c (go_language_defn): Update.
10198 * f-lang.c (f_language_defn): Update.
10199 * d-lang.c (d_language_defn): Update.
10200 * c-lang.h (c_watch_location_expression): Declare.
10201 * c-lang.c (c_watch_location_expression): New function.
10202 (c_language_defn, cplus_language_defn, asm_language_defn)
10203 (minimal_language_defn): Use it.
10204 * breakpoint.c (watch_command_1): Call
10205 la_watch_location_expression.
10206 * ada-lang.c (ada_language_defn): Update.
10207
7a6e7fcc
RO
102082017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10209
6e7e1744
RO
10210 PR tui/21482
10211 * gdb_curses.h (NOMACROS): Define.
10212 (NCURSES_NOMACROS): Define.
10213
102142017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10215
10216 PR tui/21482
7a6e7fcc
RO
10217 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
10218 arg to char *.
10219 * tui/tui-wingeneral.c (box_win): Likewise.
10220 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
10221 (tui_show_source_line): Likewise.
10222 (tui_show_exec_info_content): Likewise.
10223
1933fd8e
VM
102242017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
10225
10226 * sparc-tdep.c (sparc_structure_return_p)
10227 (sparc_arg_on_registers_p): New functions.
10228 (sparc32_store_arguments): Use them.
10229 * sparc64-tdep.c (sparc64_16_byte_align_p)
10230 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
10231 Handle TYPE_CODE_ARRAY.
10232
21873064
YQ
102332017-05-17 Yao Qi <yao.qi@linaro.org>
10234
10235 * cli/cli-decode.c (add_alias_cmd): New function.
10236 * command.h (add_alias_cmd): Declare.
10237 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
10238 instead call add_alias_cmd.
10239
2b351b19
PA
102402017-05-17 Pedro Alves <palves@redhat.com>
10241
10242 * Makefile.in (nat_extra_makefile_frag): Rename to ...
10243 (nat_makefile_frag): ... this. All references updated.
10244 * configure.ac: Likewise.
10245 * configure.nat: Likewise. Enhance comments.
10246 * configure: Regenerate.
10247
5f2ad7a3
RO
102482017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10249
10250 * procfs.c (procfs_create_inferior): Change prototype to match
10251 definition.
10252
adf3dde5
EZ
102532017-05-13 Eli Zaretskii <eliz@gnu.org>
10254
10255 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
10256 C++ compiler warning.
10257
6830f270
TT
102582017-05-12 Tom Tromey <tom@tromey.com>
10259
10260 PR rust/21483:
10261 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
10262 recurse, just call value_struct_elt directly.
10263
68f2f2e3
TT
102642017-05-12 Tom Tromey <tom@tromey.com>
10265
10266 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
10267 OP_RUST_ARRAY>: Fix.
10268
256afbc2
TT
102692017-05-12 Tom Tromey <tom@tromey.com>
10270
10271 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
10272
94bb8dfe
YQ
102732017-05-09 Yao Qi <yao.qi@linaro.org>
10274
10275 * regcache.c: Include <forward_list>.
10276 (struct regcache_list): Remove.
10277 (current_regcache): Update.
10278 (get_thread_arch_aspace_regcache): Update for std::forward_list.
10279 (regcache_thread_ptid_changed): Likewise.
10280 (registers_changed_ptid): Likewise.
10281 (current_regcache_size): Likewise.
10282
8248946c
YQ
102832017-05-09 Yao Qi <yao.qi@linaro.org>
10284
10285 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
10286 (current_regcache_size): New function.
10287 (current_regcache_test): New function.
10288 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
10289
313c5961
AH
102902017-05-08 Alan Hayward <alan.hayward@arm.com>
10291
10292 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
10293 (print_gp_register_row): Use get_frame_register_value.
10294
27bfc1d1
AH
102952017-05-08 Alan Hayward <alan.hayward@arm.com>
10296
10297 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
10298 (mips_supply_fpregset): Likewise.
10299 (mips64_supply_gregset): Likewise.
10300
146e6c5c
AH
103012017-05-08 Alan Hayward <alan.hayward@arm.com>
10302
10303 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
10304 regcache->raw_supply_zeroed.
10305
e50f25ec
SDJ
103062017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
10307
10308 * configure.nat: Rearrange 'case' statements to match
10309 host before cpu.
10310
21ea5acd
SDJ
103112017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
10312
10313 * Makefile.in: Remove "@host_makefile_frag@". Add variables
10314 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
10315 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
10316 "@nat_extra_makefile_frag@".
10317 (Makefile): Remove dependency on "@frags@".
10318 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
10319 (data-directory/Makefile): Likewise.
10320 * config/aarch64/linux.mh: Deleted; moved contents to
10321 "gdb/configure.nat".
10322 * config/alpha/alpha-linux.mh: Likewise.
10323 * config/alpha/nbsd.mh: Likewise.
10324 * config/arm/linux.mh: Likewise.
10325 * config/arm/nbsdelf.mh: Likewise.
10326 * config/i386/cygwin.mh: Likewise.
10327 * config/i386/cygwin64.mh: Likewise.
10328 * config/i386/darwin.mh: Likewise.
10329 * config/i386/fbsd.mh: Likewise.
10330 * config/i386/fbsd64.mh: Likewise.
10331 * config/i386/go32.mh: Likewise.
10332 * config/i386/i386gnu.mh: Likewise.
10333 * config/i386/i386sol2.mh: Likewise.
10334 * config/i386/linux.mh: Likewise.
10335 * config/i386/linux64.mh: Likewise.
10336 * config/i386/mingw.mh: Likewise.
10337 * config/i386/mingw64.mh: Likewise.
10338 * config/i386/nbsd64.mh: Likewise.
10339 * config/i386/nbsdelf.mh: Likewise.
10340 * config/i386/nto.mh: Likewise.
10341 * config/i386/obsd.mh: Likewise.
10342 * config/i386/obsd64.mh: Likewise.
10343 * config/i386/sol2-64.mh: Likewise.
10344 * config/ia64/linux.mh: Likewise.
10345 * config/m32r/linux.mh: Likewise.
10346 * config/m68k/linux.mh: Likewise.
10347 * config/m68k/nbsdelf.mh: Likewise.
10348 * config/m68k/obsd.mh: Likewise.
10349 * config/m88k/obsd.mh: Likewise.
10350 * config/mips/fbsd.mh: Likewise.
10351 * config/mips/linux.mh: Likewise.
10352 * config/mips/nbsd.mh: Likewise.
10353 * config/mips/obsd64.mh: Likewise.
10354 * config/pa/linux.mh: Likewise.
10355 * config/pa/nbsd.mh: Likewise.
10356 * config/pa/obsd.mh: Likewise.
10357 * config/powerpc/aix.mh: Likewise.
10358 * config/powerpc/fbsd.mh: Likewise.
10359 * config/powerpc/linux.mh: Likewise.
10360 * config/powerpc/nbsd.mh: Likewise.
10361 * config/powerpc/obsd.mh: Likewise.
10362 * config/powerpc/ppc64-linux.mh: Likewise.
10363 * config/powerpc/spu-linux.mh: Likewise.
10364 * config/s390/linux.mh: Likewise.
10365 * config/sh/nbsd.mh: Likewise.
10366 * config/sparc/fbsd.mh: Likewise.
10367 * config/sparc/linux.mh: Likewise.
10368 * config/sparc/linux64.mh: Likewise.
10369 * config/sparc/nbsd64.mh: Likewise.
10370 * config/sparc/nbsdelf.mh: Likewise.
10371 * config/sparc/obsd64.mh: Likewise.
10372 * config/sparc/sol2.mh: Likewise.
10373 * config/tilegx/linux.mh: Likewise.
10374 * config/vax/nbsdelf.mh: Likewise.
10375 * config/vax/obsd.mh: Likewise.
10376 * config/xtensa/linux.mh: Likewise.
10377 * config/i386/i386gnu.mn: New file, with excerpts from
10378 "config/i386/i386gnu.mh".
10379 * configure: Regenerate.
10380 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
10381 *.mh files under "gdb/config".
10382 * configure.nat: New file, with contents from the
10383 "gdb/config/*/*.mh" files.
10384
7ed1acaf
TW
103852017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
10386
10387 * btrace.c (btrace_clear): Free insn vector.
10388
e13cb306
PA
103892017-05-05 Pedro Alves <palves@redhat.com>
10390
10391 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
10392 * configure: Regenerate.
10393
5ed8105e
PA
103942017-05-04 Pedro Alves <palves@redhat.com>
10395
10396 * Makefile.in (SFILES): Add progspace-and-thread.c.
10397 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
10398 (COMMON_OBS): Add progspace-and-thread.o.
10399 * breakpoint.c: Include "progspace-and-thread.h".
10400 (update_inserted_breakpoint_locations)
10401 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
10402 Use scoped_restore_current_pspace_and_thread.
10403 (create_std_terminate_master_breakpoint): Use
10404 scoped_restore_current_program_space.
10405 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
10406 (print_breakpoint_location): Use
10407 scoped_restore_current_program_space.
10408 (bp_loc_is_permanent): Use
10409 scoped_restore_current_pspace_and_thread.
10410 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
10411 (download_tracepoint_locations): Use
10412 scoped_restore_current_pspace_and_thread.
10413 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
10414 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
10415 (enum step_over_calls_kind): Moved from inferior.h.
10416 (class scoped_restore_current_thread): New class.
10417 * gdbthread.h (make_cleanup_restore_current_thread): Delete
10418 declaration.
10419 (scoped_restore_current_thread): New class.
10420 * infcmd.c: Include "common/gdb_optional.h".
10421 (continue_1, proceed_after_attach): Use
10422 scoped_restore_current_thread.
10423 (notice_new_inferior): Use scoped_restore_current_thread.
10424 * inferior.c: Include "progspace-and-thread.h".
10425 (restore_inferior, save_current_inferior): Delete.
10426 (add_inferior_command, clone_inferior_command): Use
10427 scoped_restore_current_pspace_and_thread.
10428 * inferior.h (scoped_restore_current_inferior): New class.
10429 * infrun.c: Include "progspace-and-thread.h" and
10430 "common/gdb_optional.h".
10431 (follow_fork_inferior): Use
10432 scoped_restore_current_pspace_and_thread.
10433 (scoped_restore_exited_inferior): New class.
10434 (handle_vfork_child_exec_or_exit): Use
10435 scoped_restore_exited_inferior,
10436 scoped_restore_current_pspace_and_thread,
10437 scoped_restore_current_thread and scoped_restore.
10438 (fetch_inferior_event): Use scoped_restore_current_thread.
10439 * linespec.c (decode_line_full, decode_line_1): Use
10440 scoped_restore_current_program_space.
10441 * mi/mi-main.c: Include "progspace-and-thread.h".
10442 (exec_continue): Use scoped_restore_current_thread.
10443 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
10444 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
10445 * proc-service.c (ps_pglobal_lookup): Use
10446 scoped_restore_current_program_space.
10447 * progspace-and-thread.c: New file.
10448 * progspace-and-thread.h: New file.
10449 * progspace.c (release_program_space, clone_program_space): Use
10450 scoped_restore_current_program_space.
10451 (restore_program_space, save_current_program_space)
10452 (save_current_space_and_thread): Delete.
10453 (switch_to_program_space_and_thread): Moved to
10454 progspace-and-thread.c.
10455 * progspace.h (save_current_program_space)
10456 (save_current_space_and_thread): Delete declarations.
10457 (scoped_restore_current_program_space): New class.
10458 * remote.c (remote_btrace_maybe_reopen): Use
10459 scoped_restore_current_thread.
10460 * symtab.c: Include "progspace-and-thread.h".
10461 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
10462 * thread.c (print_thread_info_1): Use
10463 scoped_restore_current_thread.
10464 (struct current_thread_cleanup): Delete.
10465 (do_restore_current_thread_cleanup)
10466 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
10467 (scoped_restore_current_thread::~scoped_restore_current_thread):
10468 ... this new dtor.
10469 (make_cleanup_restore_current_thread): Rename/convert to ...
10470 (scoped_restore_current_thread::scoped_restore_current_thread):
10471 ... this new ctor.
10472 (thread_apply_all_command): Use scoped_restore_current_thread.
10473 (thread_apply_command): Use scoped_restore_current_thread.
10474 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
10475 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
10476
f6223dbb
PA
104772017-05-04 Pedro Alves <palves@redhat.com>
10478
10479 * thread.c (make_cleanup_restore_current_thread): Move
10480 find_thread_ptid call before the is_stopped call. Assert that the
10481 thread is found. Replace is_stopped call by checking the thread's
10482 state directly. Remove unnecessary NULL-thread check.
10483
3c3ae77e
PA
104842017-05-04 Pedro Alves <palves@redhat.com>
10485
10486 * corelow.c (thread_section_name): New class.
10487 (get_core_register_section, get_core_siginfo): Use it.
10488
45eba0ab
AA
104892017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10490
10491 * corelow.c (sniff_core_bfd): Remove extra semicolon.
10492 (get_core_register_section): Remove xfree of NULL pointer.
10493
f81fdd35
AH
104942017-05-03 Alan Hayward <alan.hayward@arm.com>
10495
10496 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
10497 * regcache.c (regcache::raw_supply_zeroed): New function.
10498 * regcache.h (regcache::raw_supply_zeroed): New declaration.
10499
35837774
SM
105002017-05-03 Simon Marchi <simon.marchi@ericsson.com>
10501
10502 * gdbarch.sh: Remove commented out definition of
10503 TARGET_CHAR_BIT.
10504 * gdbarch.h: Re-generate.
10505
c94fee56
SDJ
105062017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
10507
10508 * configure: Regenerate.
10509
d17f7b36
SM
105102017-05-02 Simon Marchi <simon.marchi@ericsson.com>
10511
10512 * solib-target.c (solib_target_relocate_section_addresses):
10513 Remove num_section_bases, num_bases, segment_bases variables.
10514
b560ebd6
SM
105152017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10516
10517 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
10518
f2f46dfc
SM
105192017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10520
10521 * solib-target.c: Include <vector>
10522 (struct lm_info_target) <~lm_info_target>: Remove.
10523 <segment_bases, section_bases>: Change type to
10524 std::vector<CORE_ADDR>.
10525 (library_list_start_segment, library_list_start_section,
10526 library_list_end_library,
10527 solib_target_relocate_section_addresses): Adjust.
10528
a0ff9e1a
SM
105292017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10530
10531 * gdbarch.sh (software_single_step): Change return type to
10532 std::vector<CORE_ADDR>.
10533 * gdbarch.c, gdbarch.h: Re-generate.
10534 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
10535 Adjust.
10536 (arm_deal_with_atomic_sequence_raw): Adjust.
10537 (thumb_get_next_pcs_raw): Adjust.
10538 (arm_get_next_pcs_raw): Adjust.
10539 (arm_get_next_pcs): Adjust.
10540 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
10541 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
10542 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
10543 (alpha_software_single_step): Adjust.
10544 * alpha-tdep.h (alpha_software_single_step): Adjust.
10545 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
10546 * arm-tdep.c (arm_software_single_step): Adjust.
10547 (arm_breakpoint_kind_from_current_state): Adjust.
10548 * arm-tdep.h (arm_software_single_step): Adjust.
10549 * breakpoint.c (insert_single_step_breakpoint): Adjust.
10550 * cris-tdep.c (cris_software_single_step): Adjust.
10551 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
10552 (micromips_deal_with_atomic_sequence): Adjust.
10553 (deal_with_atomic_sequence): Adjust.
10554 (mips_software_single_step): Adjust.
10555 * mips-tdep.h (mips_software_single_step): Adjust.
10556 * moxie-tdep.c (moxie_software_single_step): Adjust.
10557 * nios2-tdep.c (nios2_software_single_step): Adjust.
10558 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
10559 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
10560 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
10561 * s390-linux-tdep.c (s390_software_single_step): Adjust.
10562 * sparc-tdep.c (sparc_software_single_step): Adjust.
10563 * spu-tdep.c (spu_software_single_step): Adjust.
10564 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
10565
ea480a30
SM
105662017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10567
10568 * gdbarch.sh: Use semi-colon as field separator instead of colon.
10569 * gdbarch.h: Re-generate.
10570
d050f7d7
TW
105712017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10572
10573 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
10574 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
10575 * python/py-instruction.c, python/py-instruction.h: New file.
10576 * python/py-record.c: Add py-instruction.h include.
10577 (gdbpy_initialize_record): Make gdb.Instruction a super class of
10578 gdb.RecordInstruction.
10579 * python/python-internal.h: Add gdbpy_initialize_instruction
10580 declaration.
10581 * python/python.c (do_start_initialization): Add
10582 gdbpy_initialize_instruction.
10583
14f819c8
TW
105842017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10585
10586 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
10587 Remove.
10588 (btrace_func_from_recpy_func): New function.
10589 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
10590 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
10591 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
10592 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
10593 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
10594 Also, use new helper functions.
10595 (btpy_list_item): Use new helper functions.
10596 (recpy_bt_function_call_history): Use new type name.
10597 (btpy_call_getset): Remove.
10598 (gdbpy_initialize_btrace): Remove code to initialize
10599 gdb.BtraceFunctionCall.
10600 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
10601 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
10602 recpy_bt_func_prev, recpy_bt_func_next): New export.
10603 * python/py-record.c (recpy_func_type): New static object.
10604 (recpy_func_new, recpy_func_level, recpy_func_symbol,
10605 recpy_func_instructions, recpy_func_up, recpy_func_prev,
10606 recpy_func_next): New function.
10607 (recpy_element_hash, recpy_element_richcompare): Updated comment.
10608 (recpy_func_getset): New static object.
10609 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
10610 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
10611
0ed5da75
TW
106122017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10613
10614 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
10615 (btpy_object, btpy_insn_type, btpy_new): Remove.
10616 (btpy_list_object): Use gdb.RecordInstruction type instead of
10617 gdb.BtraceInstruction type.
10618 (btrace_insn_from_recpy_insn): New function.
10619 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
10620 btpy_new.
10621 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
10622 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
10623 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
10624 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
10625 instead of btpy_object.
10626 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
10627 btpy_insn_data, btpy_insn_decode): Rename to ...
10628 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
10629 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
10630 recpy_bt_insn_decode): This. Also, use new helper functions.
10631 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
10632 recpy_insn_type.
10633 (btpy_insn_getset): Remove.
10634 (gdbpy_initialize_btrace): Remove code to initialize
10635 gdb.BtraceInstruction. Use recpy_element_object.
10636 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
10637 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
10638 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
10639 * python/py-record.c (recpy_insn_type): New static object.
10640 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
10641 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
10642 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
10643 New function.
10644 (recpy_insn_getset): New static object.
10645 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
10646 * python/py-record.h (recpy_element_object): New typedef.
10647 (recpy_insn_type, recpy_insn_new): New export.
10648
913aeadd
TW
106492017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10650
10651 * py-record-btrace.c (btpy_insn_new): Removed.
10652 (btpy_insn_or_gap_new): New function.
10653 (btpy_insn_error): Removed.
10654 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
10655 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
10656 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
10657 btpy_insn_or_gap_new instead of btpy_insn_new.
10658 (btpy_insn_getset): Remove btpy_insn_error.
10659 * py-record.c (recpy_gap_type): New static object.
10660 (recpy_gap_object): New typedef.
10661 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
10662 recpy_gap_reason_string): New function.
10663 (recpy_gap_getset): New static object.
10664 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
10665 * py-record.h (recpy_gap_new): New export.
10666
a3be24ad
TW
106672017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10668
10669 * python/py-record.c (recpy_ptid): Remove.
10670 (recpy_record_getset): Remove recpy_ptid.
10671
ae20e79a
TW
106722017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10673
10674 * btrace.c (btrace_fetch): Set inferior_ptid.
10675 * python/py-record-btrace.c: Add "py-record.h" include.
10676 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
10677 recpy_bt_end, recpy_bt_instruction_history,
10678 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
10679 in gdb.Record object instead of current ptid.
10680 * python/py-record.c: Include new "py-record.h" file.
10681 (recpy_record_object): Moved to py-record.h.
10682 * python/py-record.h: New file.
10683
8d0050ea
TW
106842017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10685
10686 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
10687 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
10688 indentation.
10689
3f380b50
JB
106902017-05-01 Joel Brobecker <brobecker@adacore.com>
10691
10692 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
10693 the past maintainers section.
10694
07495424
YQ
106952017-04-28 Yao Qi <yao.qi@linaro.org>
10696
10697 * infcmd.c (get_return_value): Use regcache ctor, and remove
10698 cleanup.
10699
deb1fa3e
YQ
107002017-04-28 Yao Qi <yao.qi@linaro.org>
10701 Pedro Alves <palves@redhat.com>
10702
10703 * regcache.c (regcache::regcache): New tag dispatch ctor.
10704 (do_cooked_read): Moved above.
10705 (regcache_dup): Use the tag dispatch ctor..
10706 * regcache.h (regcache): Declare ctor, delete copy ctor and
10707 assignment operator, remove friend regcache_dup.
10708
b421c83c
YQ
107092017-04-28 Yao Qi <yao.qi@linaro.org>
10710
10711 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
10712 call method save instead of regcache_cpy.
10713 * regcache.h (struct regcache): Make regcache_dup a friend.
10714
ef79d9a3
YQ
107152017-04-28 Yao Qi <yao.qi@linaro.org>
10716
10717 * regcache.c (struct regcache): Move to regcache.h
10718 (regcache::arch): New method.
10719 (regcache_get_ptid): Update.
10720 (get_regcache_arch): Call arch method.
10721 (get_regcache_aspace): Call method aspace.
10722 (register_buffer): Change it to method.
10723 (regcache_save): Change it to regcache::save.
10724 (regcache_restore): Likewise.
10725 (regcache_cpy_no_passthrough): Remove the declaration.
10726 (regcache_cpy): Call methods restore and cpy_no_passthrough.
10727 (regcache_cpy_no_passthrough): Change it to method
10728 cpy_no_passthrough.
10729 (regcache_register_status): Change it to method
10730 get_register_status.
10731 (regcache_invalidate): Change it to method invalidate.
10732 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
10733 (regcache_raw_update): Change it to method raw_update.
10734 (regcache_raw_read): Likewise.
10735 (regcache_raw_read_signed): Likewise.
10736 (regcache_raw_read_unsigned): Likewise.
10737 (regcache_raw_write_signed): Likewise.
10738 (regcache_raw_write_unsigned): Likewise.
10739 (regcache_cooked_read): Likewise.
10740 (regcache_cooked_read_value): Likewise.
10741 (regcache_cooked_read_signed): Likewise.
10742 (regcache_cooked_read_unsigned): Likewise.
10743 (regcache_cooked_write_signed): Likewise.
10744 (regcache_cooked_write_unsigned): Likewise.
10745 (regcache_raw_set_cached_value): Likewise.
10746 (regcache_raw_write): Likewise.
10747 (regcache_cooked_write): Likewise.
10748 (regcache_xfer_part): Likewise.
10749 (regcache_raw_read_part): Likewise.
10750 (regcache_raw_write_part): Likewise.
10751 (regcache_cooked_read_part): Likewise.
10752 (regcache_cooked_write_part): Likewise.
10753 (regcache_raw_supply): Likewise.
10754 (regcache_raw_collect): Likewise.
10755 (regcache_transfer_regset): Likewise.
10756 (regcache_supply_regset): Likewise.
10757 (regcache_collect_regset): Likewise.
10758 (regcache_debug_print_register): Likewise.
10759 (enum regcache_dump_what): Move it to regcache.h.
10760 (regcache_dump): Change it to method dump.
10761 * regcache.h (enum regcache_dump_what): New.
10762 (class regcache): New.
10763 * target.c (target_fetch_registers): Call method
10764 debug_print_register.
10765 (target_store_registers): Likewise.
10766
f8fdb78e
SM
107672017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10768
10769 * windows-nat.c (struct lm_info_windows): Initialize field.
10770 (windows_make_so): Allocate lm_info_windows with new.
10771 (windows_free_so): Free lm_info_windows with delete.
10772
9ccbfd7b
SM
107732017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10774
10775 * solib-darwin.c (struct lm_info_darwin): Initialize field.
10776 (darwin_current_sos): Allocate lm_info_darwin with new, remove
10777 cleanup.
10778 (darwin_free_so): Free lm_info_darwin with delete.
10779
76e75227
SM
107802017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10781
10782 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
10783 <l_addr_p>: Change type to bool.
10784 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
10785 (svr4_free_so): Free lm_info_svr4 with delete.
10786 (svr4_copy_library_list): Replace memcpy with call to copy
10787 constructor.
10788 (library_list_start_library, svr4_default_sos): Allocate
10789 lm_info_svr4 with new.
10790
51046d9e
SM
107912017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10792
10793 * solib-target.c (struct lm_info_target): Add destructor,
10794 initialize fields.
10795 <name>: Change type to std::string.
10796 (library_list_start_library): Allocate lm_info_target with new.
10797 (solib_target_free_library_list): Free lm_info_target with
10798 delete.
10799 (solib_target_current_sos): Adapt to std::string.
10800 (solib_target_free_so): Free lm_info_target with delete.
10801
4023ae76
SM
108022017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10803
10804 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
10805 fields.
10806 (frv_current_sos): Allocate lm_info_frv with new.
10807 (frv_relocate_main_executable): Free lm_info_frv with delete,
10808 allocate with new.
10809 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
10810
af43057b
SM
108112017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10812
10813 * solib-frv.c (struct lm_info_frv): Fix indentation.
10814
b0911207
SM
108152017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10816
10817 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
10818 map field.
10819 (dsbt_current_sos): Allocate lm_info_dsbt with new.
10820 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
10821 and allocate with new.
10822 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
10823
6c401f72
SM
108242017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10825
10826 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
10827 <filename, member_name>: Change type to std::string.
10828 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
10829 (library_list_start_library): Allocate lm_info_aix with new.
10830 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
10831 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
10832 with copy constructor.
10833
d0e449a1
SM
108342017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10835
10836 * solist.h (struct lm_info): Remove.
10837 (struct lm_info_base): New class.
10838 (struct so_list) <lm_info>: Change type to lm_info_base *.
10839 * nto-tdep.c (struct lm_info): Remove.
10840 (lm_addr): Adjust.
10841 * solib-aix.c (struct lm_info): Rename to ...
10842 (struct lm_info_aix): ... this. Extend lm_info_base.
10843 (lm_info_p): Rename to ...
10844 (lm_info_aix_p): ... this, and adjust.
10845 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
10846 solib_aix_parse_libraries, library_list_start_library,
10847 solib_aix_free_library_list, solib_aix_parse_libraries,
10848 solib_aix_get_library_list,
10849 solib_aix_relocate_section_addresses, solib_aix_free_so,
10850 solib_aix_get_section_offsets,
10851 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
10852 Adjust.
10853 (struct solib_aix_inferior_data) <library_list>: Adjust.
10854 * solib-darwin.c (struct lm_info): Rename to ...
10855 (struct lm_info_darwin): ... this. Extend lm_info_base.
10856 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
10857 * solib-dsbt.c (struct lm_info): Rename to ...
10858 (struct lm_info_dsbt): ... this. Extend lm_info_base.
10859 (struct dsbt_info) <main_executable_lm_info): Adjust.
10860 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
10861 dsbt_relocate_section_addresses): Adjust.
10862 * solib-frv.c (struct lm_info): Rename to ...
10863 (struct lm_info_frv): ... this. Extend lm_info_base.
10864 (main_executable_lm_info): Adjust.
10865 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
10866 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
10867 find_canonical_descriptor_in_load_object,
10868 frv_fdpic_find_canonical_descriptor): Adjust.
10869 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
10870 to lm_info_svr4.
10871 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
10872 svr4_clear_so, svr4_copy_library_list,
10873 library_list_start_library, svr4_default_sos, svr4_read_so_list,
10874 svr4_current_sos, svr4_fetch_objfile_link_map,
10875 solist_update_incremental): Adjust.
10876 * solib-svr4.h (struct lm_info_svr4): Move here from
10877 solib-svr4.c.
10878 * solib-target.c (struct lm_info): Rename to ...
10879 (struct lm_info_target): ... this. Extend lm_info_base.
10880 (lm_info_p): Rename to ...
10881 (lm_info_target_p): ... this.
10882 (solib_target_parse_libraries, library_list_start_segment,
10883 library_list_start_section, library_list_start_library,
10884 library_list_end_library, solib_target_free_library_list,
10885 solib_target_current_sos, solib_target_free_so,
10886 solib_target_relocate_section_addresses): Adjust.
10887 * windows-nat.c (struct lm_info): Rename to ...
10888 (struct lm_info_windows): ... this. Extend lm_info_base.
10889 (windows_make_so, handle_load_dll, handle_unload_dll,
10890 windows_xfer_shared_libraries): Adjust.
10891
434a4023
SM
108922017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10893
10894 * solib-darwin.c (struct darwin_so_list): Remove.
10895 (darwin_current_sos): Allocate an so_list object instead of a
10896 darwin_so_list, separately allocate an lm_info object.
10897 (darwin_free_so): Free lm_info.
10898
428544e8
JB
108992017-04-28 John Baldwin <jhb@FreeBSD.org>
10900
10901 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
10902 with fprintf_filtered.
10903
4621115f
YQ
109042017-04-28 Yao Qi <yao.qi@linaro.org>
10905
10906 * regcache.c (regcache::regcache): New function.
10907 (regcache::~regcache): New function.
10908 (regcache_xmalloc_1): Remove.
10909 (regcache_xmalloc): Call new regcache.
10910 (regcache_xfree): Call delete regcache.
10911 (get_thread_arch_aspace_regcache): Call new regcache.
10912
339053c2
YQ
109132017-04-28 Yao Qi <yao.qi@linaro.org>
10914
10915 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
10916 lwp instead of ptid_get_lwp.
10917
7974a605
YQ
109182017-04-28 Yao Qi <yao.qi@linaro.org>
10919
10920 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
10921 lwp_info instead of getting from inferior_ptid.
10922
e15c3eb4
KS
109232017-04-27 Keith Seitz <keiths@redhat.com>
10924
10925 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
10926 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
10927 (CV_CONVERSION_BADNESS): Define.
10928 (rank_one_type): Remove overly restrictive rvalue reference
10929 rank checks.
10930 Add cv-qualifier checks and subranks for type equality.
10931 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
10932 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
10933 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
10934
72bc1d24
SM
109352017-04-27 Simon Marchi <simon.marchi@ericsson.com>
10936
10937 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
10938 count when creating the object.
10939
55bcecda
UW
109402017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
10941 Ulrich Weigand <uweigand@de.ibm.com>
10942
10943 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
10944 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
10945 is used in AIX.
10946 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
10947 (process_xcoff_symbol): Likewise.
10948 (scan_xcoff_symtab): Likewise.
10949
5c99fcf8
AH
109502017-04-26 Alan Hayward <alan.hayward@arm.com>
10951
10952 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
10953 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
10954 (ia64_access_reg): Use get_frame_register_unsigned.
10955 (ia64_access_rse_reg): Likewise.
10956 (ia64_libunwind_frame_prev_register): Likewise.
10957
b41c5a85
JW
109582017-04-26 Jiong Wang <jiong.wang@arm.com>
10959
10960 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
10961 * gdbarch.c: Regenerated.
10962 * gdbarch.h: Regenerated.
10963 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
10964 visibility external.
10965 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
10966 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
10967 (enum cfa_how_kind): Move to ...
10968 (struct dwarf2_frame_state_reg_info): Likewise.
10969 (struct dwarf2_frame_state): Likewise.
10970 * dwarf2-frame.h: ... here.
10971 (dwarf2_frame_state_alloc_regs): New declaration.
10972 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
10973 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
10974
c185f580
AH
109752017-04-26 Alan Hayward <alan.hayward@arm.com>
10976
10977 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
10978 regcache_raw_read_unsigned.
10979 (xtensa_pseudo_register_write): Likewise.
10980
19c45594
AH
109812017-04-26 Alan Hayward <alan.hayward@arm.com>
10982
10983 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
10984 (nds32_pseudo_register_write): Likewise.
10985
4658f12e
YQ
109862017-04-25 Yao Qi <yao.qi@linaro.org>
10987
10988 * regcache.c (struct regcache) <readonly_p>: Change its type
10989 to bool.
10990 (regcache_xmalloc_1): Update parameter type and callers update.
10991
d581dda8
YQ
109922017-04-25 Yao Qi <yao.qi@linaro.org>
10993
10994 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10995 set_gdbarch_wchar_bit.
10996 * arm-tdep.c (arm_gdbarch_init): Likewise.
10997
debed3db
PA
109982017-04-25 Pedro Alves <palves@redhat.com>
10999
11000 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
11001 (BothAreRelocatable, memcopy, memmove): Don't define.
11002 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
11003 macros.
11004
b0b92aeb
PA
110052017-04-25 Pedro Alves <palves@redhat.com>
11006
11007 * common/common-defs.h: Include "common/poison.h".
11008 * common/function-view.h: (Not, Or, Requires): Move to traits.h
11009 and adjust.
11010 * common/poison.h: New file.
11011 * common/traits.h: Include <type_traits>.
11012 (Not, Or, Requires): New, moved from common/function-view.h.
11013
16c4d54a
PA
110142017-04-25 Pedro Alves <palves@redhat.com>
11015
11016 * breakpoint.h (struct breakpoint): In-class initialize all
11017 fields. Make boolean fields "bool".
11018 * breakpoint.c (init_raw_breakpoint_without_location): Remove
11019 memset call and initializations no longer necessary.
11020
b5c36682
PA
110212017-04-25 Pedro Alves <palves@redhat.com>
11022
11023 * btrace.c (pt_btrace_insn_flags): Change parameter type to
11024 reference.
11025 (pt_btrace_insn): New function.
11026 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
11027
5625a286
PA
110282017-04-25 Pedro Alves <palves@redhat.com>
11029
11030 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
11031 "base" field and inherit from "bp_location" instead. Add
11032 non-default ctor.
11033 (allocate_location_exception): Use new non-default ctor.
11034 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
11035 (init_bp_location): Convert to ...
11036 (bp_location::bp_location): ... this new ctor, and remove memset
11037 call.
11038 (base_breakpoint_allocate_location): Use the new non-default ctor.
11039 * breakpoint.h (bp_location): Now a class. Declare default and
11040 non-default ctors. In-class initialize all members.
11041 (init_bp_location): Remove declaration.
11042
23bcc18f
PA
110432017-04-25 Pedro Alves <palves@redhat.com>
11044
11045 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
11046 assignment operator.
11047
e1ba3053
YQ
110482017-04-24 Yao Qi <yao.qi@linaro.org>
11049
11050 * doublest.c (convert_doublest_to_floatformat): Call
11051 floatformat_totalsize_bytes.
11052
10f489e5
TT
110532017-04-22 Tom Tromey <tom@tromey.com>
11054
11055 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
11056 ui_out_emit_list.
11057 * stack.c (print_frame): Use ui_out_emit_list.
11058 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
11059 ui_out_emit_list.
11060 * mi/mi-main.c (print_one_inferior)
11061 (mi_cmd_data_list_register_names)
11062 (mi_cmd_data_list_register_values, mi_cmd_list_features)
11063 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
11064 ui_out_emit_list.
11065 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
11066 (mi_output_solib_attribs): Use ui_out_emit_list,
11067 ui_out_emit_tuple.
11068 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
11069 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
11070 (mi_cmd_stack_list_args, list_args_or_locals): Use
11071 ui_out_emit_list.
11072 * disasm.c (do_assembly_only): Use ui_out_emit_list.
11073 * breakpoint.c (print_solib_event, output_thread_groups): Use
11074 ui_out_emit_list.
11075
0092b74d
TT
110762017-04-22 Tom Tromey <tom@tromey.com>
11077
11078 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
11079 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
11080 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
11081
a14a62dd
TT
110822017-04-22 Tom Tromey <tom@tromey.com>
11083
11084 * tracepoint.c (tvariables_info_1)
11085 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
11086
46b9c129
TT
110872017-04-22 Tom Tromey <tom@tromey.com>
11088
11089 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
11090 annotate_arg_emitter.
11091 * breakpoint.c (print_mention_watchpoint)
11092 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
11093 * annotate.h (struct annotate_arg_emitter): New.
11094
2e783024
TT
110952017-04-22 Tom Tromey <tom@tromey.com>
11096
11097 * record-btrace.c (record_btrace_insn_history)
11098 (record_btrace_insn_history_range, record_btrace_call_history)
11099 (record_btrace_call_history_range): Use ui_out_emit_tuple.
11100 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
11101 ui_out_emit_tuple.
11102 * stack.c (print_frame_info): Use ui_out_emit_tuple.
11103 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
11104 * skip.c (skip_info): Use ui_out_emit_tuple.
11105 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
11106 * progspace.c (print_program_space): Use ui_out_emit_tuple.
11107 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
11108 * osdata.c (info_osdata): Use ui_out_emit_tuple.
11109 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
11110 ui_out_emit_tuple.
11111 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
11112 (output_register, mi_cmd_data_read_memory)
11113 (mi_cmd_data_read_memory_bytes, mi_load_progress)
11114 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
11115 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
11116 Use ui_out_emit_tuple.
11117 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
11118 ui_out_emit_tuple.
11119 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11120 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
11121 * linux-thread-db.c (info_auto_load_libthread_db): Use
11122 ui_out_emit_tuple.
11123 * inferior.c (print_inferior): Use ui_out_emit_tuple.
11124 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
11125 * disasm.c (do_mixed_source_and_assembly_deprecated)
11126 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
11127 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
11128 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
11129 * breakpoint.c (print_one_breakpoint_location)
11130 (print_one_breakpoint): Use ui_out_emit_tuple.
11131 * auto-load.c (print_script, info_auto_load_cmd): Use
11132 ui_out_emit_tuple.
11133 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
11134
9be21bb4
SM
111352017-04-21 Simon Marchi <simon.marchi@ericsson.com>
11136
11137 * thread.c (print_thread_info_1): Remove dead code.
11138
0d4c07af
JK
111392017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11140
11141 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
11142 GDB_SELF_TEST.
11143 * arm-tdep.c (selftests::arm_record_test): Likewise.
11144
4daf993d
YQ
111452017-04-21 Yao Qi <yao.qi@linaro.org>
11146
11147 * regcache.c (regcache_restore): Remove argument 2. Replace
11148 argument 3 with regcache. Get register status from
11149 src->register_status and get register contents from
11150 register_buffer (src, regnum).
11151 (regcache_cpy): Update.
11152
a6c21d4a
PA
111532017-04-19 Pedro Alves <palves@redhat.com>
11154
11155 * gdbthread.h (thread): Add missing closing parenthesis in
11156 comment.
11157
3a3fd0fd
PA
111582017-04-19 Pedro Alves <palves@redhat.com>
11159
11160 * common/refcounted-object.h: New file.
11161 * gdbthread.h: Include "common/refcounted-object.h".
11162 (thread_info): Inherit from refcounted_object and add comments.
11163 (thread_info::incref, thread_info::decref)
11164 (thread_info::m_refcount): Delete.
11165 (thread_info::deletable): Use the refcounted_object::refcount()
11166 method.
11167 * inferior.c (current_inferior_): Add comment.
11168 (set_current_inferior): Increment/decrement refcounts.
11169 (prune_inferiors, remove_inferior_command): Skip inferiors marked
11170 not-deletable instead of comparing with the current inferior.
11171 (initialize_inferiors): Increment the initial inferior's refcount.
11172 * inferior.h (struct inferior): Forward declare.
11173 Include "common/refcounted-object.h".
11174 (current_inferior, set_current_inferior): Move declaration to
11175 before struct inferior's definition, and fix comment.
11176 (inferior): Inherit from refcounted_object. Add comments.
11177 * thread.c (switch_to_thread_no_regs): Reference the thread's
11178 inferior pointer directly instead of doing a ptid lookup.
11179 (switch_to_no_thread): New function.
11180 (switch_to_thread(thread_info *)): New function, factored out
11181 from ...
11182 (switch_to_thread(ptid_t)): ... this.
11183 (restore_current_thread): Delete.
11184 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
11185 fields, and add 'inf' field.
11186 (do_restore_current_thread_cleanup): Check whether old->inf is
11187 alive instead of looking up an inferior by ptid. Use
11188 switch_to_thread and switch_to_no_thread.
11189 (restore_current_thread_cleanup_dtor): Use old->inf directly
11190 instead of lookup up an inferior by id. Decref the inferior.
11191 Don't restore 'removable'.
11192 (make_cleanup_restore_current_thread): Same the inferior pointer
11193 in old, instead of the inferior number. Incref the inferior.
11194 Don't save/clear 'removable'.
11195
9bcb1f16
PA
111962017-04-19 Pedro Alves <palves@redhat.com>
11197
11198 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11199 unittests/scoped_restore-selftests.c.
11200 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
11201 * common/scoped_restore.h (scoped_restore_base): Make "class".
11202 (scoped_restore_base::release): New public method.
11203 (scoped_restore_base::scoped_restore_base): New protected ctor.
11204 (scoped_restore_base::m_saved_var): New protected field.
11205 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
11206 scoped_restore_base base class instead of m_saved_var directly.
11207 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
11208 (scoped_restore_tmpl::scoped_restore_tmpl(const
11209 scoped_restore_tmpl<T>&)): Likewise.
11210 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
11211 method.
11212 (scoped_restore_tmpl::saved_var): New method.
11213 (scoped_restore_tmpl::m_saved_var): Delete.
11214 * inferior.h (inferior::detaching): Now a bool.
11215 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
11216 cleanup.
11217 * unittests/scoped_restore-selftests.c: New file.
11218
26fcd539
PA
112192017-04-19 Pedro Alves <palves@redhat.com>
11220
11221 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
11222 Re-sort in alphabetic order.
11223
fdd243b0
PA
112242017-04-18 Pedro Alves <palves@redhat.com>
11225
11226 * xml-support.c (obstack_xml_printf): Delete.
11227 * xml-support.h (obstack_xml_printf): Delete.
11228
4895cde2
PA
112292017-04-18 Pedro Alves <palves@redhat.com>
11230
11231 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
11232 vdebug, verror, body_text, start_element, end_element, name,
11233 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
11234 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
11235 is_xinclude>: Make private and add m_ prefix.
11236 (gdb_xml_parser::body_text): New method, based on ...
11237 (gdb_xml_body_text): ... this. Adjust.
11238 (gdb_xml_parser::vdebug): New method, based on ...
11239 (gdb_xml_debug): ... this. Adjust.
11240 (gdb_xml_parser::verror): New method, based on ...
11241 (gdb_xml_error): ... this. Adjust.
11242 (gdb_xml_parser::start_element): New method, based on ...
11243 (gdb_xml_start_element): ... this. Adjust.
11244 (gdb_xml_start_element_wrapper): Defer to
11245 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
11246 (gdb_xml_parser::end_element): New method, based on ...
11247 (gdb_xml_end_element_wrapper): ... this. Adjust.
11248 (gdb_xml_parser::~gdb_xml_parser): Adjust.
11249 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
11250 (gdb_xml_parser::use_dtd): New method, based on ...
11251 (gdb_xml_use_dtd): ... this. Adjust.
11252 (gdb_xml_parser::parse): New method, based on ...
11253 (gdb_xml_parse): ... this. Adjust.
11254 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
11255 (xinclude_start_include): Adjust to call the parser's name method.
11256 (xml_xinclude_default, xml_xinclude_start_doctype)
11257 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
11258 method.
11259 (xml_process_xincludes): Adjust to call parser methods.
11260 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
11261 declarations.
11262
bd8a901f
PA
112632017-04-18 Pedro Alves <palves@redhat.com>
11264
11265 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
11266 gdb::optional<std::string>.
11267 * xml-support.c: Include <string>.
11268 (scope_level::scope_level(scope_level &&))
11269 (scope_level::~scope_level): Delete.
11270 (scope_level::body): Now a std::string.
11271 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
11272 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
11273 parameter.
11274 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
11275 (xinclude_parsing_data::output): Now a std::string reference.
11276 (xinclude_start_include): Adjust.
11277 (xml_xinclude_default): Adjust.
11278 (xml_process_xincludes): Add 'output' parameter, and return bool.
11279 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
11280 and return bool.
11281 * xml-tdesc.c: Include <unordered_map> and <string>.
11282 (tdesc_xml_cache): Delete.
11283 (tdesc_xml_cache_s): Delete.
11284 (xml_cache): Now an std::unordered_map.
11285 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
11286 (target_fetch_description_xml): Change return type to
11287 gdb::optional<std::string>, and adjust.
11288 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
11289 (target_fetch_description_xml): Change return type to
11290 gdb::optional<std::string>.
11291
d35d1958
PA
112922017-04-18 Pedro Alves <palves@redhat.com>
11293
11294 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11295 unittests/optional-selftests.c.
11296 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
11297 * unittests/optional-selftests.c: New file.
11298 * unittests/optional/assignment/1.cc: New file.
11299 * unittests/optional/assignment/2.cc: New file.
11300 * unittests/optional/assignment/3.cc: New file.
11301 * unittests/optional/assignment/4.cc: New file.
11302 * unittests/optional/assignment/5.cc: New file.
11303 * unittests/optional/assignment/6.cc: New file.
11304 * unittests/optional/assignment/7.cc: New file.
11305 * unittests/optional/cons/copy.cc: New file.
11306 * unittests/optional/cons/default.cc: New file.
11307 * unittests/optional/cons/move.cc: New file.
11308 * unittests/optional/cons/value.cc: New file.
11309 * unittests/optional/in_place.cc: New file.
11310 * unittests/optional/observers/1.cc: New file.
11311 * unittests/optional/observers/2.cc: New file.
11312
22796e97
PA
113132017-04-18 Pedro Alves <palves@redhat.com>
11314
11315 * common/gdb_optional.h: Include common/traits.h.
11316 (in_place_t): New type.
11317 (in_place): New constexpr variable.
11318 (optional::optional): Remove member initialization of
11319 m_instantiated.
11320 (optional::optional(in_place_t...)): New constructor.
11321 (optional::~optional): Use reset.
11322 (optional::optional(const optional&)): New.
11323 (optional::optional(const optional&&)): New.
11324 (optional::optional(T &)): New.
11325 (optional::optional(T &&)): New.
11326 (operator::operator=(const optional &)): New.
11327 (operator::operator=(optional &&)): New.
11328 (operator::operator= (const T &))
11329 (operator::operator= (T &&))
11330 (operator::emplace (Args &&... args)): Return a T&. Use reset.
11331 (operator::reset): New.
11332 (operator::m_instantiated):: Add in-class initializer.
11333 * common/traits.h: Include <type_traits>.
11334 (struct And): New types.
11335
a7fc9b61
PA
113362017-04-18 Pedro Alves <palves@redhat.com>
11337
11338 * xml-support.c: Include <vector>.
11339 (scope_level::scope_level(const gdb_xml_element *))
11340 (scope_level::scope_level(scope_level&&)): New.
11341 (scope_level::~scope_level): New.
11342 (scope_level_s): Delete.
11343 (gdb_xml_parser::scopes): Now a std::vector.
11344 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
11345 Use std::vector.
11346 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
11347 scope cleanup code.
11348 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
11349 of the scopes member. Use std::vector::emplace_back.
11350
010151c9
PA
113512017-04-18 Pedro Alves <palves@redhat.com>
11352
11353 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
11354 a bool.
11355 (gdb_xml_end_element): Change type of first parameter.
11356 (gdb_xml_cleanup): Rename to ...
11357 (gdb_xml_parser::~gdb_xml_parser): ... this.
11358 (gdb_xml_create_parser_and_cleanup): Delete with ...
11359 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
11360 to this new ctor.
11361 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
11362 using gdb_xml_create_parser_and_cleanup.
11363 (xinclude_parsing_data): Add ctor/dtor.
11364 (xml_xinclude_cleanup): Delete.
11365 (xml_process_xincludes): Create a local xinclude_parsing_data
11366 instead of heap-allocating one. Create a local gdb_xml_parser
11367 instead of heap-allocating one with
11368 gdb_xml_create_parser_and_cleanup.
11369
d56060f0
JB
113702017-04-18 John Baldwin <jhb@FreeBSD.org>
11371
11372 PR threads/20743
11373 * fbsd-nat.c (resume_one_thread_cb): Remove.
11374 (resume_all_threads_cb): Remove.
11375 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
11376 iterate_over_threads.
11377
305d16a9
JB
113782017-04-17 Joel Brobecker <brobecker@adacore.com>
11379
11380 * NEWS: Create a new section for the next release branch.
11381 Rename the section of the current branch, now that it has
11382 been cut.
11383
8bb57231
JB
113842017-04-17 Joel Brobecker <brobecker@adacore.com>
11385
11386 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
11387 * version.in: Bump version to 8.0.50.DATE-git.
11388
096c92dd
SDJ
113892017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
11390
11391 PR gdb/21385
11392 * windows-nat.c (windows_create_inferior): Declare 'allargs'
11393 independently of the host, and fix build breakage on Cygwin.
11394
0550c955
PA
113952017-04-13 Pedro Alves <palves@redhat.com>
11396
11397 * inferior.c (free_inferior): Convert to ...
11398 (inferior::~inferior): ... this dtor.
11399 (inferior::inferior): New ctor, factored out from ...
11400 (add_inferior_silent): ... here. Allocate the inferior with a new
11401 expression.
11402 (delete_inferior): Call delete instead of free_inferior.
11403 * inferior.h (gdb_environ, continuation): Forward declare.
11404 (inferior): Now a class. Add in-class initialization to all
11405 members. Make boolean fields bool, except 'detaching'.
11406 (inferior::inferior): New explicit ctor.
11407 (inferior::~inferior): New.
11408
e3d60dfc
PA
114092017-04-13 Pedro Alves <palves@redhat.com>
11410
11411 * inferior.c (init_inferior_list): Delete.
11412 * inferior.h (init_inferior_list): Delete.
11413
5fd69d0a
PA
114142017-04-13 Pedro Alves <palves@redhat.com>
11415
11416 PR threads/13217
11417 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
11418 (top level): Call it twice, with different thread sets.
11419
c6609450
PA
114202017-04-13 Pedro Alves <palves@redhat.com>
11421
11422 * thread.c: Include <algorithm>.
11423 (thread_array_cleanup): Delete.
11424 (scoped_inc_dec_ref): New class.
11425 (live_threads_count): New function.
11426 (set_thread_refcount): Delete.
11427 (tp_array_compar_ascending): Now a bool.
11428 (tp_array_compar): Convert to a std::sort comparison function.
11429 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
11430 and live_threads_count.
11431
2a00d7ce
PA
114322017-04-13 Pedro Alves <palves@redhat.com>
11433
11434 * infrun.c (follow_fork_inferior): Also switch the current
11435 inferior.
11436
441d7c93
PA
114372017-04-13 Pedro Alves <palves@redhat.com>
11438
11439 * breakpoint.c (watch_command_1): Save watchpoint-frame info
11440 before calling create_internal_breakpoint.
11441
808480f6
PA
114422017-04-13 Pedro Alves <palves@redhat.com>
11443
11444 * fork-child.c (execv_argv): New class.
11445 (breakup_args): Refactored as ...
11446 (execv_argv::init_for_no_shell): .. this method of execv_argv.
11447 Copy arguments to storage and replace separators with NULL
11448 terminators in place.
11449 (escape_bang_in_quoted_argument): Adjust to return bool.
11450 (execv_argv::execv_argv): New ctor.
11451 (execv_argv::init_for_shell): New method, factored out from
11452 fork_inferior. Don't strdup strings into the vector.
11453 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
11454 Remove free_vector_argv call.
11455
ad3d022a
YQ
114562017-04-13 Yao Qi <yao.qi@linaro.org>
11457
11458 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
11459 tdep->rx_psw_type.
11460
e6ddc3bf
YQ
114612017-04-13 Yao Qi <yao.qi@linaro.org>
11462
11463 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
11464 * rx-tdep.c (rx_gdbarch_init): Likewise.
11465
bfb8cf90
PA
114662017-04-13 Pedro Alves <palves@redhat.com>
11467
11468 * breakpoint.h (struct breakpoint): Reindent.
11469
f5336ca5
PA
114702017-04-13 Pedro Alves <palves@redhat.com>
11471
11472 * breakpoint.c (bp_location): Rename to ...
11473 (bp_locations): ... this. All references updated.
11474 (bp_location_count): Rename to ...
11475 (bp_locations_count): ... this. All references updated.
11476 (bp_location_placed_address_before_address_max): Rename to ...
11477 (bp_locations_placed_address_before_address_max): ... this. All
11478 references updated.
11479 (bp_location_shadow_len_after_address_max): Rename to ...
11480 (bp_locations_shadow_len_after_address_max): ... this. All
11481 references updated.
11482 (bp_location_compare_addrs): Rename to ...
11483 (bp_locations_compare_addrs): ... this. All references updated.
11484 (bp_location_compare):Rename to ...
11485 (bp_locations_compare): ... this. All references updated.
11486 (bp_location_target_extensions_update): Rename to ...
11487 (bp_locations_target_extensions_update): ... this. All references
11488 updated.
11489
be628ab8
SDJ
114902017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11491
11492 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
11493 * common/common.m4: Check headers 'termios.h', 'termio.h' and
11494 'sgtty.h'.
11495 * common/gdb_termios.h: New file, with parts of "terminal.h".
11496 * inflow.c: Include "gdb_termios.h".
11497 * ser-unix.c: Include "gdb_termios.h".
11498 * terminal.h: Move terminal-related defines to
11499 "common/gdb_termios.h".
11500
8e9e35b1
TT
115012017-04-12 Tom Tromey <tom@tromey.com>
11502
11503 * probe.c (parse_probes): Update.
11504 * location.h (delete_event_location): Don't declare.
11505 (event_location_deleter::operator()): Update.
11506 * location.c (event_location_deleter::operator()): Rename from
11507 delete_event_location.
11508 * linespec.h (linespec_result) <location>: Change type to
11509 event_location_up.
11510 * linespec.c (canonicalize_linespec, event_location_to_sals)
11511 (decode_objc): Update.
11512 (linespec_result): Don't call delete_event_location.
11513 * breakpoint.c (create_breakpoints_sal)
11514 (bkpt_probe_create_sals_from_location)
11515 (strace_marker_create_sals_from_location): Update.
11516
16e802b9
TT
115172017-04-12 Tom Tromey <tom@tromey.com>
11518
11519 * linespec.h (struct linespec_result): Add constructor and
11520 destructor.
11521 (init_linespec_result, destroy_linespec_result)
11522 (make_cleanup_destroy_linespec_result): Don't declare.
11523 * linespec.c (init_linespec_result): Remove.
11524 (linespec_result::~linespec_result): Rename from
11525 destroy_linespec_result. Update.
11526 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
11527 Remove.
11528 * breakpoint.c (create_breakpoint, break_range_command)
11529 (decode_location_default): Update.
11530 * ax-gdb.c (agent_command_1): Update.
11531
d28cd78a
TT
115322017-04-12 Tom Tromey <tom@tromey.com>
11533
11534 * remote.c (remote_download_tracepoint): Update.
11535 * python/py-breakpoint.c (bppy_get_location): Update.
11536 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
11537 (gdbscm_breakpoint_location): Update.
11538 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
11539 * breakpoint.h (struct breakpoint) <location, location_range_end>:
11540 Change type to event_location_up.
11541 * breakpoint.c (create_overlay_event_breakpoint)
11542 (create_longjmp_master_breakpoint)
11543 (create_std_terminate_master_breakpoint)
11544 (create_exception_master_breakpoint)
11545 (breakpoint_event_location_empty_p, print_breakpoint_location)
11546 (print_one_breakpoint_location, create_thread_event_breakpoint)
11547 (init_breakpoint_sal, create_breakpoint)
11548 (print_recreate_ranged_breakpoint, break_range_command)
11549 (init_ada_exception_breakpoint, say_where): Update.
11550 (base_breakpoint_dtor): Don't call delete_event_location.
11551 (bkpt_print_recreate, tracepoint_print_recreate)
11552 (dprintf_print_recreate, update_static_tracepoint)
11553 (breakpoint_re_set_default): Update.
11554
711799d5
TT
115552017-04-12 Tom Tromey <tom@tromey.com>
11556
11557 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
11558 type of "to_do". Update.
11559 (compute_stack_depth): Use std::vector.
11560
52d214d3
TT
115612017-04-12 Tom Tromey <tom@tromey.com>
11562
11563 * printcmd.c (find_instruction_backward): Use std::vector.
11564
4c404b8b
TT
115652017-04-12 Tom Tromey <tom@tromey.com>
11566
11567 * symfile.c (objfilep): Remove typedef.
11568 (reread_symbols): Use a std::vector.
11569
156d9eab
TT
115702017-04-12 Tom Tromey <tom@tromey.com>
11571
11572 * mi/mi-main.c (exec_direction_forward): Remove.
11573 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
11574 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
11575 scoped_restore.
11576 * guile/guile.c (guile_repl_command, guile_command)
11577 (gdbscm_execute_gdb_command): Use scoped_restore.
11578 * go-exp.y (go_parse): Use scoped_restore.
11579 * d-exp.y (d_parse): Use scoped_restore.
11580 * cli/cli-decode.c (cmd_func): Use scoped_restore.
11581 * c-exp.y (c_parse): Use scoped_restore.
11582
4d89769a
TT
115832017-04-12 Tom Tromey <tom@tromey.com>
11584
11585 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
11586 (mi_parse): Update return type.
11587 (mi_parse_free): Remove.
11588 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
11589 (mi_parse::~mi_parse): Rename from mi_parse_free.
11590 (mi_parse_cleanup): Remove.
11591 (mi_parse): Return a unique_ptr. Use new.
11592 * mi/mi-main.c (mi_execute_command): Update.
11593
4b217cc7
TT
115942017-04-12 Tom Tromey <tom@tromey.com>
11595
11596 * location.c (explicit_location_lex_one): Return a
11597 unique_xmalloc_ptr.
11598 (string_to_explicit_location): Update. Remove cleanups.
11599
59d3651b
TT
116002017-04-12 Tom Tromey <tom@tromey.com>
11601
11602 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
11603 (compare_value_and_voffset): Change type. Update.
11604 (compute_vtable_size): Change type of "offset_vec".
11605 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
11606 (gnuv3_get_typeid): Remove extraneous declaration.
11607
b24b0d6c
TT
116082017-04-12 Tom Tromey <tom@tromey.com>
11609
11610 * charset.h (wchar_iterator): Fix comment.
11611
80a3b8c5
TT
116122017-04-12 Tom Tromey <tom@tromey.com>
11613
11614 * charset.c (iconv_wrapper): New class.
11615 (cleanup_iconv): Remove.
11616 (convert_between_encodings): Use it.
11617
c83dd867
TT
116182017-04-12 Tom Tromey <tom@tromey.com>
11619
11620 * symfile.h (increment_reading_symtab): Update type.
11621 * symfile.c (decrement_reading_symtab): Remove.
11622 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
11623 * psymtab.c (psymtab_to_symtab): Update.
11624 * dwarf2read.c (dw2_instantiate_symtab): Update.
11625
0e8621a0
TT
116262017-04-12 Tom Tromey <tom@tromey.com>
11627
11628 * jit.c (struct jit_reader): Declare separately. Add constructor
11629 and destructor. Change type of "handle".
11630 (loaded_jit_reader): Define separately.
11631 (jit_reader_load): Update. New "new".
11632 (jit_reader_unload_command): Use "delete".
11633 * gdb-dlfcn.h (struct dlclose_deleter): New.
11634 (gdb_dlhandle_up): New typedef.
11635 (gdb_dlopen, gdb_dlsym): Update types.
11636 (gdb_dlclose): Remove.
11637 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
11638 (gdb_dlsym): Change type of "handle".
11639 (make_cleanup_dlclose): Remove.
11640 (dlclose_deleter::operator()): Rename from gdb_dlclose.
11641 * compile/compile-c-support.c (load_libcc): Update.
11642
67d89901
TT
116432017-04-12 Tom Tromey <tom@tromey.com>
11644
11645 * symtab.h (find_pcs_for_symtab_line): Change return type.
11646 * symtab.c (find_pcs_for_symtab_line): Change return type.
11647 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
11648 type of "vec". Update.
11649 (ltpy_get_pcs_for_line): Update.
11650 * linespec.c (decode_digits_ordinary): Update.
11651
93921405
TT
116522017-04-12 Tom Tromey <tom@tromey.com>
11653
11654 * tracepoint.c (actions_command): Update.
11655 * python/python.c (python_command, python_interactive_command):
11656 Update.
11657 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
11658 * guile/guile.c (guile_command): Update.
11659 * defs.h (read_command_lines, read_command_lines_1): Return
11660 command_line_up.
11661 (command_lines_deleter): New struct.
11662 (command_line_up): New typedef.
11663 * compile/compile.c (compile_code_command)
11664 (compile_print_command): Update.
11665 * cli/cli-script.h (get_command_line, copy_command_lines): Return
11666 command_line_up.
11667 (make_cleanup_free_command_lines): Remove.
11668 * cli/cli-script.c (get_command_line, read_command_lines_1)
11669 (copy_command_lines): Return command_line_up.
11670 (while_command, if_command, read_command_lines, define_command)
11671 (document_command): Update.
11672 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
11673 Remove.
11674 * breakpoint.h (breakpoint_set_commands): Change type of
11675 "commands".
11676 * breakpoint.c (breakpoint_set_commands): Change type of
11677 "commands". Update.
11678 (do_map_commands_command, update_dprintf_command_list)
11679 (create_tracepoint_from_upload): Update.
11680
ffc2605c
TT
116812017-04-12 Tom Tromey <tom@tromey.com>
11682
11683 * tracepoint.c (scope_info): Update.
11684 * spu-tdep.c (spu_catch_start): Update.
11685 * python/python.c (gdbpy_decode_line): Update.
11686 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
11687 * python/py-breakpoint.c (bppy_init): Update.
11688 * probe.c (parse_probes): Update.
11689 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
11690 * location.h (event_location_deleter): New struct.
11691 (event_location_up): New typedef.
11692 (new_linespec_location, new_address_location, new_probe_location)
11693 (new_explicit_location, copy_event_location)
11694 (string_to_event_location, string_to_event_location_basic)
11695 (string_to_explicit_location): Update return type.
11696 (make_cleanup_delete_event_location): Remove.
11697 * location.c (new_linespec_location, new_address_location)
11698 (new_probe_location, new_explicit_location, copy_event_location):
11699 Return event_location_up.
11700 (delete_event_location_cleanup)
11701 (make_cleanup_delete_event_location): Remove.
11702 (string_to_explicit_location, string_to_event_location_basic)
11703 (string_to_event_location): Return event_location_up.
11704 * linespec.c (canonicalize_linespec, event_location_to_sals)
11705 (decode_line_with_current_source)
11706 (decode_line_with_last_displayed, decode_objc): Update.
11707 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11708 * completer.c (location_completer): Update.
11709 * cli/cli-cmds.c (edit_command, list_command): Update.
11710 * breakpoint.c (create_overlay_event_breakpoint)
11711 (create_longjmp_master_breakpoint)
11712 (create_std_terminate_master_breakpoint)
11713 (create_exception_master_breakpoint)
11714 (create_thread_event_breakpoint): Update.
11715 (init_breakpoint_sal): Update. Remove some dead code.
11716 (create_breakpoint_sal): Change type of "location". Update.
11717 (create_breakpoints_sal, create_breakpoint, break_command_1)
11718 (dprintf_command, break_range_command, until_break_command)
11719 (init_ada_exception_breakpoint)
11720 (strace_marker_create_sals_from_location)
11721 (update_static_tracepoint, trace_command, ftrace_command)
11722 (strace_command, create_tracepoint_from_upload): Update.
11723 * break-catch-throw.c (re_set_exception_catchpoint): Update.
11724 * ax-gdb.c (agent_command_1): Update.
11725
8f10c932
PA
117262017-04-12 Pedro Alves <palves@redhat.com>
11727
11728 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
11729 * configure.tgt: Handle i[34567]86-*-go32* and
11730 i[34567]86-*-msdosdjgpp*.
11731 * i386-tdep.c (i386_svr4_reg_to_regnum):
11732 Make extern.
11733 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
11734 i386-go32-tdep.c.
11735 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
11736 * i386-go32-tdep.c: New file.
11737 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
11738 declarations.
11739
0a31ccfb
SM
117402017-04-12 Simon Marchi <simon.marchi@ericsson.com>
11741
11742 * aix-thread.c (pd_status2str): Change return type to const char *.
11743
e9bb3fbb
PA
117442017-04-12 Pedro Alves <palves@redhat.com>
11745
11746 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
11747 calls to set_gdbarch_gnu_triplet_regexp.
11748
53375380
PA
117492017-04-12 Pedro Alves <palves@redhat.com>
11750
11751 PR gdb/21323
11752 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
11753 New enum value.
11754 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
11755 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
11756 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
11757 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
11758 * gdbarch.h, gdbarch.c: Regenerate.
11759 * aarch64-tdep.c (aarch64_gdbarch_init): Override
11760 gdbarch_wchar_bit and gdbarch_wchar_signed.
11761 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
11762 * arm-tdep.c (arm_gdbarch_init): Likewise.
11763 * avr-tdep.c (avr_gdbarch_init): Likewise.
11764 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11765 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
11766 * i386-tdep.c (i386_go32_init_abi): Likewise.
11767 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11768 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11769 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11770 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11771 * sh-tdep.c (sh_gdbarch_init): Likewise.
11772 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11773 * sparc64-tdep.c (sparc64_init_abi): Likewise.
11774 * windows-tdep.c (windows_init_abi): Likewise.
11775 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11776
53e710ac
PA
117772017-04-12 Pedro Alves <palves@redhat.com>
11778
11779 PR c++/21323
11780 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
11781 cplus_primitive_type_char32_t>: New enum values.
11782 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
11783 and cplus_primitive_type_char32_t.
11784 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
11785 32, use the archtecture's built-in type for char16_t and char32_t,
11786 respectively. Otherwise, fallback to init_integer_type as before,
11787 but make the type unsigned, and issue a complaint.
11788 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
11789
ab0538b8
AH
117902017-04-12 Alan Hayward <alan.hayward@arm.com>
11791
5e0e0422 11792 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
11793 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
11794
5430098f
SDJ
117952017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11796
11797 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
11798 'const char *'.
11799
7c5ded6a
SDJ
118002017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11801
11802 * common/common-utils.c (free_vector_argv): New function.
11803 * common/common-utils.h: Include <vector>.
11804 (free_vector_argv): New prototype.
11805 * darwin-nat.c (darwin_create_inferior): Rewrite function
11806 prototype in order to constify "exec_file" and accept a
11807 "std::string" for "allargs".
11808 * fork-child.c: Include <vector>.
11809 (breakup_args): Rewrite function, using C++.
11810 (fork_inferior): Rewrite function header, constify "exec_file_arg"
11811 and accept "std::string" for "allargs". Update the code to
11812 calculate "argv" based on "allargs". Update calls to "exec_fun"
11813 and "execvp".
11814 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
11815 order to constify "exec_file" and accept a "std::string" for
11816 "allargs".
11817 * go32-nat.c (go32_create_inferior): Likewise.
11818 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
11819 * infcmd.c (run_command_1): Constify "exec_file". Use
11820 "std::string" for inferior arguments.
11821 * inferior.h (fork_inferior): Update prototype.
11822 * linux-nat.c (linux_nat_create_inferior): Rewrite function
11823 prototype in order to constify "exec_file" and accept a
11824 "std::string" for "allargs".
11825 * nto-procfs.c (procfs_create_inferior): Likewise.
11826 * procfs.c (procfs_create_inferior): Likewise.
11827 * remote-sim.c (gdbsim_create_inferior): Likewise.
11828 * remote.c (extended_remote_run): Update code to accept
11829 "std::string" as argument.
11830 (extended_remote_create_inferior): Rewrite function prototype in
11831 order to constify "exec_file" and accept a "std::string" for
11832 "allargs".
11833 * rs6000-nat.c (super_create_inferior): Likewise.
11834 (rs6000_create_inferior): Likewise.
11835 * target.h (struct target_ops) <to_create_inferior>: Likewise.
11836 * windows-nat.c (windows_create_inferior): Likewise.
11837
ae0eee42
PA
118382017-04-11 Pedro Alves <palves@redhat.com>
11839
11840 * thread.c: Fix whitespace throughout.
11841
a6acac06
PR
118422017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
11843
11844 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
11845
64403bd1
AH
118462017-04-11 Alan Hayward <alan.hayward@arm.com>
11847
11848 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
11849
a5bef50f
SDJ
118502017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
11851
11852 PR gdb/21364
11853 * osdata.c (info_osdata): Check if 'type' is an empty string
11854 instead of NULL.
11855
9295a5a9
PA
118562017-04-10 Pedro Alves <palves@redhat.com>
11857
11858 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
11859 (ptid_to_global_thread_id, in_thread_list)
11860 (do_captured_list_thread_ids, set_resumed, set_running)
11861 (set_executing, set_stop_requested, finish_thread_state)
11862 (validate_registers_access, can_access_registers_ptid)
11863 (print_thread_info_1, switch_to_thread)
11864 (do_restore_current_thread_cleanup)
11865 (make_cleanup_restore_current_thread, thread_command)
11866 (thread_name_command): Use operator== instead of ptid_equal.
11867
996812e3
PA
118682017-04-10 Pedro Alves <palves@redhat.com>
11869
11870 * thread.c (struct current_thread_cleanup) <next>: Delete field.
11871 (current_thread_cleanup_chain): Delete.
11872 (restore_current_thread_cleanup_dtor)
11873 (make_cleanup_restore_current_thread): Remove references to
11874 current_thread_cleanup_chain.
11875
845b344f
AH
118762017-04-10 Alan Hayward <alan.hayward@arm.com>
11877
11878 * msp430-tdep.c (msp430_pseudo_register_read): Never return
11879 REG_UNKNOWN.
11880
803bdfe4
YQ
118812017-04-10 Yao Qi <yao.qi@linaro.org>
11882
11883 PR gdb/19942
11884 * gdbthread.h (thread_info::deletable): New method.
11885 (thread_info::incref): New method.
11886 (thread_info::decref): New method.
11887 (thread_info::refcount): Move it to private.
11888 * infrun.c (save_stop_context): Call inc_refcount.
11889 (release_stop_context_cleanup): Likewise.
11890 * thread.c (set_thread_exited): New function.
11891 (init_thread_list): Delete "tp" only it is deletable, otherwise
11892 call set_thread_exited.
11893 (delete_thread_1): Call set_thread_exited.
11894 (current_thread_cleanup) <inferior_pid>: Remove.
11895 <thread>: New field.
11896 (restore_current_thread_ptid_changed): Removed.
11897 (do_restore_current_thread_cleanup): Adjust.
11898 (restore_current_thread_cleanup_dtor): Don't call
11899 find_thread_ptid.
11900 (set_thread_refcount): Use dec_refcount.
11901 (make_cleanup_restore_current_thread): Adjust.
11902 (thread_apply_all_command): Call inc_refcount.
11903 (_initialize_thread): Don't call
11904 observer_attach_thread_ptid_changed.
11905
8c25b497
YQ
119062017-04-10 Yao Qi <yao.qi@linaro.org>
11907
11908 * thread.c (delete_thread_1): Hoist code on marking thread as
11909 exited.
11910
8473b447
SM
119112017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11912
11913 * windows-nat.c (windows_detach): Initialize ptid with
11914 minus_one_ptid.
11915
6670ec13
SM
119162017-04-07 Simon Marchi <simon.marchi@ericsson.com>
11917
11918 * unittests/ptid-selftests.c: Fix erroneous assert messages.
11919
ba2f91bb
AH
119202017-04-07 Alan Hayward <alan.hayward@arm.com>
11921
11922 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
11923 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
11924 (bfin_pseudo_register_write): Likewise
11925
436252de
SM
119262017-04-06 Simon Marchi <simon.marchi@ericsson.com>
11927
11928 * common/ptid.h (struct ptid): Change to...
11929 (class ptid_t): ... this.
11930 <ptid_t>: New constructors.
11931 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
11932 matches>: New methods.
11933 <make_null, make_minus_one>: New static methods.
11934 <pid>: Rename to...
11935 <m_pid>: ...this.
11936 <lwp>: Rename to...
11937 <m_lwp>: ...this.
11938 <tid>: Rename to...
11939 <m_tid>: ...this.
11940 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
11941 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
11942 as references, move comment to class ptid_t.
11943 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
11944 ptid_t static methods.
11945 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
11946 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
11947 Take ptid arguments as references, implement using ptid_t methods.
11948 * unittests/ptid-selftests.c: New file.
11949 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11950 unittests/ptid-selftests.c.
11951 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
11952
0dedf377
TP
119532017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11954
11955 * python/python.c (python_run_simple_file): Cast mode literal to
11956 non-const char pointer as expected by PyFile_FromString.
11957
4e9868d4
SM
119582017-04-05 Simon Marchi <simon.marchi@ericsson.com>
11959
11960 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
11961 minus_one_ptid and null_ptid.
11962
9bf2a700
PA
119632017-04-05 Pedro Alves <palves@redhat.com>
11964
11965 * warning.m4 (build_warnings): Remove -Wno-write-strings.
11966 * configure: Regenerate.
11967
a121b7c1
PA
119682017-04-05 Pedro Alves <palves@redhat.com>
11969
11970 * ada-exp.y (yyerror): Constify.
11971 * ada-lang.c (bound_name, get_selections)
11972 (ada_variant_discrim_type)
11973 (ada_variant_discrim_name, ada_value_struct_elt)
11974 (ada_lookup_struct_elt_type, is_unchecked_variant)
11975 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
11976 (catch_ada_exception_command_split)
11977 (catch_ada_assert_command_split, catch_assert_command)
11978 (ada_op_name): Constify.
11979 * ada-lang.h (ada_yyerror, get_selections)
11980 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
11981 * arc-tdep.c (arc_print_frame_cache): Constify.
11982 * arm-tdep.c (arm_skip_stub): Constify.
11983 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
11984 (gen_aggregate_elt_ref): Constify.
11985 * bcache.c (print_bcache_statistics): Constify.
11986 * bcache.h (print_bcache_statistics): Constify.
11987 * break-catch-throw.c (catch_exception_command_1):
11988 * breakpoint.c (struct ep_type_description::description):
11989 Constify.
11990 (add_solib_catchpoint): Constify.
11991 (catch_fork_command_1): Add cast.
11992 (add_catch_command): Constify.
11993 * breakpoint.h (add_catch_command, add_solib_catchpoint):
11994 Constify.
11995 * bsd-uthread.c (bsd_uthread_state): Constify.
11996 * buildsym.c (patch_subfile_names): Constify.
11997 * buildsym.h (next_symbol_text_func, patch_subfile_names):
11998 Constify.
11999 * c-exp.y (yyerror): Constify.
12000 (token::oper): Constify.
12001 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
12002 * c-varobj.c (cplus_describe_child): Constify.
12003 * charset.c (find_charset_names): Add cast.
12004 (find_charset_names): Constify array and add const_cast.
12005 * cli/cli-cmds.c (complete_command, cd_command): Constify.
12006 (edit_command): Constify.
12007 * cli/cli-decode.c (lookup_cmd): Constify.
12008 * cli/cli-dump.c (dump_memory_command, dump_value_command):
12009 Constify.
12010 (struct dump_context): Constify.
12011 (add_dump_command, restore_command): Constify.
12012 * cli/cli-script.c (get_command_line): Constify.
12013 * cli/cli-script.h (get_command_line): Constify.
12014 * cli/cli-utils.c (check_for_argument): Constify.
12015 * cli/cli-utils.h (check_for_argument): Constify.
12016 * coff-pe-read.c (struct read_pe_section_data): Constify.
12017 * command.h (lookup_cmd): Constify.
12018 * common/print-utils.c (decimal2str): Constify.
12019 * completer.c (gdb_print_filename): Constify.
12020 * corefile.c (set_gnutarget): Constify.
12021 * cp-name-parser.y (yyerror): Constify.
12022 * cp-valprint.c (cp_print_class_member): Constify.
12023 * cris-tdep.c (cris_register_name, crisv32_register_name):
12024 Constify.
12025 * d-exp.y (yyerror): Constify.
12026 (struct token::oper): Constify.
12027 * d-lang.h (d_yyerror): Constify.
12028 * dbxread.c (struct header_file_location::name): Constify.
12029 (add_old_header_file, add_new_header_file, last_function_name)
12030 (dbx_next_symbol_text, add_bincl_to_list)
12031 (find_corresponding_bincl_psymtab, set_namestring)
12032 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
12033 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
12034 * defs.h (command_line_input, print_address_symbolic)
12035 (deprecated_readline_begin_hook): Constify.
12036 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
12037 Constify.
12038 * event-top.c (handle_line_of_input): Constify and add cast.
12039 * exceptions.c (catch_errors): Constify.
12040 * exceptions.h (catch_errors): Constify.
12041 * expprint.c (print_subexp_standard, op_string, op_name)
12042 (op_name_standard, dump_raw_expression, dump_raw_expression):
12043 * expression.h (op_name, op_string, dump_raw_expression):
12044 Constify.
12045 * f-exp.y (yyerror): Constify.
12046 (struct token::oper): Constify.
12047 (struct f77_boolean_val::name): Constify.
12048 * f-lang.c (f_word_break_characters): Constify.
12049 * f-lang.h (f_yyerror): Constify.
12050 * fork-child.c (fork_inferior): Add cast.
12051 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
12052 (new_variant): Constify.
12053 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
12054 * gdbarch.c: Regenerate.
12055 * gdbcore.h (set_gnutarget): Constify.
12056 * go-exp.y (yyerror): Constify.
12057 (token::oper): Constify.
12058 * go-lang.h (go_yyerror): Constify.
12059 * go32-nat.c (go32_sysinfo): Constify.
12060 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
12061 * guile/scm-cmd.c (cmdscm_function): Constify.
12062 * guile/scm-param.c (pascm_param_value): Constify.
12063 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
12064 (h8300sx_register_name): Constify.
12065 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
12066 Constify.
12067 * ia64-tdep.c (ia64_register_names): Constify.
12068 * infcmd.c (construct_inferior_arguments): Constify.
12069 (path_command, attach_post_wait): Constify.
12070 * language.c (show_range_command, show_case_command)
12071 (unk_lang_error): Constify.
12072 * language.h (language_defn::la_error)
12073 (language_defn::la_name_of_this): Constify.
12074 * linespec.c (decode_line_2): Constify.
12075 * linux-thread-db.c (thread_db_err_str): Constify.
12076 * lm32-tdep.c (lm32_register_name): Constify.
12077 * m2-exp.y (yyerror): Constify.
12078 * m2-lang.h (m2_yyerror): Constify.
12079 * m32r-tdep.c (m32r_register_names): Constify and make static.
12080 * m68hc11-tdep.c (m68hc11_register_names): Constify.
12081 * m88k-tdep.c (m88k_register_name): Constify.
12082 * macroexp.c (appendmem): Constify.
12083 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
12084 (upgrade_type, parse_external, parse_partial_symbols)
12085 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
12086 (new_symbol): Constify.
12087 * memattr.c (mem_info_command): Constify.
12088 * mep-tdep.c (register_name_from_keyword): Constify.
12089 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
12090 Constify.
12091 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
12092 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
12093 * mi/mi-main.c (captured_mi_execute_command): Constify and add
12094 cast.
12095 (mi_execute_async_cli_command): Constify.
12096 * mips-tdep.c (mips_register_name): Constify.
12097 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
12098 (am33_register_name, am33_2_register_name)
12099 * moxie-tdep.c (moxie_register_names): Constify.
12100 * nat/linux-osdata.c (osdata_type): Constify fields.
12101 * nto-tdep.c (nto_parse_redirection): Constify.
12102 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
12103 (lookup_child_selector): Constify.
12104 (objc_methcall::name): Constify.
12105 * objc-lang.h (lookup_objc_class, lookup_child_selector)
12106 (lookup_struct_typedef): Constify.
12107 * objfiles.c (pc_in_section): Constify.
12108 * objfiles.h (pc_in_section): Constify.
12109 * p-exp.y (struct token::oper): Constify.
12110 (yyerror): Constify.
12111 * p-lang.h (pascal_yyerror): Constify.
12112 * parser-defs.h (op_name_standard): Constify.
12113 (op_print::string): Constify.
12114 (exp_descriptor::op_name): Constify.
12115 * printcmd.c (print_address_symbolic): Constify.
12116 * psymtab.c (print_partial_symbols): Constify.
12117 * python/py-breakpoint.c (stop_func): Constify.
12118 (bppy_get_expression): Constify.
12119 * python/py-cmd.c (cmdpy_completer::name): Constify.
12120 (cmdpy_function): Constify.
12121 * python/py-event.c (evpy_add_attribute)
12122 (gdbpy_initialize_event_generic): Constify.
12123 * python/py-event.h (evpy_add_attribute)
12124 (gdbpy_initialize_event_generic): Constify.
12125 * python/py-evts.c (add_new_registry): Constify.
12126 * python/py-finishbreakpoint.c (outofscope_func): Constify.
12127 * python/py-framefilter.c (get_py_iter_from_func): Constify.
12128 * python/py-inferior.c (get_buffer): Add cast.
12129 * python/py-param.c (parm_constant::name): Constify.
12130 * python/py-unwind.c (fprint_frame_id): Constify.
12131 * python/python.c (gdbpy_parameter_value): Constify.
12132 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
12133 * remote.c (memory_packet_config::name): Constify.
12134 (show_packet_config_cmd, remote_write_bytes)
12135 (remote_buffer_add_string):
12136 * reverse.c (exec_reverse_once): Constify.
12137 * rs6000-tdep.c (variant::name, variant::description): Constify.
12138 * rust-exp.y (rustyyerror): Constify.
12139 * rust-lang.c (rust_op_name): Constify.
12140 * rust-lang.h (rustyyerror): Constify.
12141 * serial.h (serial_ops::name): Constify.
12142 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
12143 (sh_sh3e_register_name, sh_sh2e_register_name)
12144 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
12145 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
12146 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
12147 (sh_sh4al_dsp_register_name): Constify.
12148 * sh64-tdep.c (sh64_register_name): Constify.
12149 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
12150 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
12151 * stabsread.c (patch_block_stabs, read_type_number)
12152 (ref_map::stabs, ref_add, process_reference)
12153 (symbol_reference_defined, define_symbol, define_symbol)
12154 (error_type, read_type, read_member_functions, read_cpp_abbrev)
12155 (read_one_struct_field, read_struct_fields, read_baseclasses)
12156 (read_tilde_fields, read_struct_type, read_array_type)
12157 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
12158 (read_huge_number, read_range_type, read_args, common_block_start)
12159 (find_name_end): Constify.
12160 * stabsread.h (common_block_start, define_symbol)
12161 (process_one_symbol, symbol_reference_defined, ref_add):
12162 * symfile.c (get_section_index, add_symbol_file_command):
12163 * symfile.h (get_section_index): Constify.
12164 * target-descriptions.c (tdesc_type::name): Constify.
12165 (tdesc_free_type): Add cast.
12166 * target.c (find_default_run_target):
12167 (add_deprecated_target_alias, find_default_run_target)
12168 (target_announce_detach): Constify.
12169 (do_option): Constify.
12170 * target.h (add_deprecated_target_alias): Constify.
12171 * thread.c (print_thread_info_1): Constify.
12172 * top.c (deprecated_readline_begin_hook, command_line_input):
12173 Constify.
12174 (init_main): Add casts.
12175 * top.h (handle_line_of_input): Constify.
12176 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
12177 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
12178 (tfind_command): Rename to ...
12179 (tfind_command_1): ... this and constify.
12180 (tfind_command): New function.
12181 (tfind_end_command, tfind_start_command): Adjust.
12182 (encode_source_string): Constify.
12183 * tracepoint.h (encode_source_string): Constify.
12184 * tui/tui-data.c (tui_partial_win_by_name): Constify.
12185 * tui/tui-data.h (tui_partial_win_by_name): Constify.
12186 * tui/tui-source.c (tui_set_source_content_nil): Constify.
12187 * tui/tui-source.h (tui_set_source_content_nil): Constify.
12188 * tui/tui-win.c (parse_scrolling_args): Constify.
12189 * tui/tui-windata.c (tui_erase_data_content): Constify.
12190 * tui/tui-windata.h (tui_erase_data_content): Constify.
12191 * tui/tui-winsource.c (tui_erase_source_content): Constify.
12192 * tui/tui.c (tui_enable): Add cast.
12193 * utils.c (defaulted_query): Constify.
12194 (init_page_info): Add cast.
12195 (puts_debug, subset_compare): Constify.
12196 * utils.h (subset_compare): Constify.
12197 * varobj.c (varobj_format_string): Constify.
12198 * varobj.h (varobj_format_string): Constify.
12199 * vax-tdep.c (vax_register_name): Constify.
12200 * windows-nat.c (windows_detach): Constify.
12201 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
12202 * xml-support.c (gdb_xml_end_element): Constify.
12203 * xml-tdesc.c (tdesc_start_reg): Constify.
12204 * xstormy16-tdep.c (xstormy16_register_name): Constify.
12205 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
12206 * xtensa-tdep.h (xtensa_register_t::name): Constify.
12207
995816ba
PA
122082017-04-05 Pedro Alves <palves@redhat.com>
12209
12210 * proc-api.c (struct trans): Constify.
12211 (procfs_note): Constify.
12212 * proc-events.c (struct trans, syscall_table):
12213 * proc-flags.c (struct trans): Constify.
12214 * proc-utils.h (procfs_note): Constify.
12215 * proc-why.c (struct trans): Constify.
12216 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
12217 (procfs_detach): Constify.
12218 * sol-thread.c (struct string_map): Constify.
12219 (td_err_string, td_state_string): Constify.
12220
3e83a920
PA
122212017-04-05 Pedro Alves <palves@redhat.com>
12222
12223 * proc-api.c (procfs_filename): Don't initialize
12224 procfs_filename.
12225 (prepare_to_trace): Assume procfs_filename is non-NULL.
12226 (_initialize_proc_api): Give procfs_filename a default value here.
12227
63160a43
PA
122282017-04-05 Pedro Alves <palves@redhat.com>
12229
12230 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
12231 'cond_string' parameter.
12232 (extract_exception_regexp): Constify 'string' parameter.
12233 (catch_exception_command_1): Constify.
12234 * breakpoint.c (init_catchpoint)
12235 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
12236 parameter.
12237 (ep_parse_optional_if_clause, catch_fork_command_1)
12238 (catch_exec_command_1): Constify.
12239 * breakpoint.h (init_catchpoint): Constify 'cond_string'
12240 parameter.
12241 (ep_parse_optional_if_clause): Constify.
12242 * cli/cli-utils.c (remove_trailing_whitespace)
12243 (check_for_argument): Constify.
12244 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
12245 non-const overload.
12246 (check_for_argument): Likewise.
12247
9b2eba3d
PA
122482017-04-05 Pedro Alves <palves@redhat.com>
12249
12250 * event-top.c (command_line_handler): Add cast to execute_command
12251 call.
12252 * record-btrace.c (cmd_record_btrace_bts_start)
12253 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
12254 (cmd_record_btrace_start): Add cast to execute_command call.
12255 * record-full.c (record_full_goto_insn):
12256 * record.c (record_start, record_stop): Add cast to
12257 execute_command_to_string calls.
12258 (cmd_record_start): Add cast to execute_command calls.
12259
2adadf51
PA
122602017-04-05 Pedro Alves <palves@redhat.com>
12261
12262 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
12263 static inline function.
12264 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
12265 array and use gdb_PyArg_ParseTupleAndKeywords.
12266 * python/py-cmd.c (cmdpy_init): Likewise.
12267 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
12268 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
12269 (infpy_search_memory): Likewise.
12270 * python/py-objfile.c (objfpy_add_separate_debug_file)
12271 (gdbpy_lookup_objfile): Likewise.
12272 * python/py-symbol.c (gdbpy_lookup_symbol)
12273 (gdbpy_lookup_global_symbol): Likewise.
12274 * python/py-type.c (gdbpy_lookup_type): Likewise.
12275 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
12276 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
12277 Likewise.
12278
0d1f4ceb
PA
122792017-04-05 Pedro Alves <palves@redhat.com>
12280
12281 * python/python-internal.h (gdb_PyGetSetDef): New type.
12282 * python/py-block.c (block_object_getset)
12283 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
12284 * python/py-event.c (event_object_getset)
12285 (finish_breakpoint_object_getset): Likewise.
12286 * python/py-inferior.c (inferior_object_getset): Likewise.
12287 * python/py-infthread.c (thread_object_getset): Likewise.
12288 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
12289 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
12290 * python/py-objfile.c (objfile_getset): Likewise.
12291 * python/py-progspace.c (pspace_getset): Likewise.
12292 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
12293 Likewise.
12294 * python/py-record.c (recpy_record_getset): Likewise.
12295 * python/py-symbol.c (symbol_object_getset): Likewise.
12296 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
12297 Likewise.
12298 * python/py-type.c (type_object_getset, field_object_getset):
12299 Likewise.
12300 * python/py-value.c (value_object_getset): Likewise.
12301
4d759979
PA
123022017-04-05 Pedro Alves <palves@redhat.com>
12303
12304 * python/python-internal.h (gdb_PyObject_CallMethod)
12305 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
12306 New functions.
12307 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
12308 (PySys_GetObject, PySys_SetPath): New macros.
12309
fdf9e36f
PA
123102017-04-05 Pedro Alves <palves@redhat.com>
12311
12312 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
12313 info_osdata_command.
12314 * osdata.c (info_osdata_command): Rename to ...
12315 (info_osdata): ... this. Constify 'type' parameter, and remove
12316 the 'from_tty' parameter. Accept NULL TYPE.
12317 (info_osdata_command): New function.
12318 * osdata.h (info_osdata_command): Remove declaration.
12319 (info_osdata): New declaration.
12320
9f33b8b7
PA
123212017-04-05 Pedro Alves <palves@redhat.com>
12322
12323 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
12324 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
12325 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
12326 parameter.
12327 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
12328 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
12329 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
12330 parameter.
12331 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
12332 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
12333 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12334 (mi_cmd_file_list_exec_source_files)
12335 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
12336 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12337 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
12338 parameter.
12339 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
12340 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
12341 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
12342 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
12343 (mi_cmd_stack_info_frame): Constify 'command' parameter.
12344 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
12345 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
12346 'command' parameter.
12347 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
12348 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
12349 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
12350 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
12351 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
12352 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
12353 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
12354 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
12355 (mi_cmd_var_set_update_range): Constify 'command' parameter.
12356 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
12357 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
12358 parameter.
12359 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
12360 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
12361 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
12362 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
12363 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
12364 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
12365 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
12366 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
12367 (mi_cmd_data_list_changed_registers)
12368 (mi_cmd_data_write_register_values)
12369 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
12370 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
12371 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
12372 (mi_cmd_list_features, mi_cmd_list_target_features)
12373 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
12374 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
12375 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
12376 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
12377 (mi_cmd_trace_frame_collected): Constify 'command'
12378 parameter.
12379 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
12380 'command' parameter.
12381
67cb5b2d
PA
123822017-04-05 Pedro Alves <palves@redhat.com>
12383
12384 * ada-lang.c (ada_completer_word_break_characters): Now a const
12385 array.
12386 (ada_get_gdb_completer_word_break_characters): Constify.
12387 * completer.c (gdb_completer_command_word_break_characters)
12388 (gdb_completer_file_name_break_characters)
12389 (gdb_completer_quote_characters): Now const arrays.
12390 (get_gdb_completer_quote_characters): Constify.
12391 (set_rl_completer_word_break_characters): New function.
12392 (set_gdb_completion_word_break_characters)
12393 (complete_line_internal): Use it.
12394 * completer.h (get_gdb_completer_quote_characters): Constify.
12395 (set_rl_completer_word_break_characters): Declare.
12396 * f-lang.c (f_word_break_characters): Constify.
12397 * language.c (default_word_break_characters): Constify.
12398 * language.h (language_defn::la_word_break_characters): Constify.
12399 (default_word_break_characters): Constify.
12400 * top.c (init_main): Use set_rl_completer_word_break_characters.
12401
7a114964
PA
124022017-04-05 Pedro Alves <palves@redhat.com>
12403
12404 * aix-thread.c (aix_thread_pid_to_str)
12405 (aix_thread_extra_thread_info): Constify.
12406 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
12407 * bsd-uthread.c (bsd_uthread_extra_thread_info)
12408 (bsd_uthread_pid_to_str): Constify.
12409 * corelow.c (core_pid_to_str): Constify.
12410 * darwin-nat.c (darwin_pid_to_str): Constify.
12411 * fbsd-nat.c (fbsd_pid_to_str): Constify.
12412 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
12413 Constify.
12414 * gnu-nat.c (gnu_pid_to_str): Constify.
12415 * go32-nat.c (go32_pid_to_str): Constify.
12416 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
12417 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
12418 * inferior.c (inferior_pid_to_str): Constify.
12419 * linux-nat.c (linux_nat_pid_to_str): Constify.
12420 * linux-tdep.c (linux_core_pid_to_str): Constify.
12421 * linux-thread-db.c (thread_db_pid_to_str)
12422 (thread_db_extra_thread_info): Constify.
12423 * nto-tdep.c (nto_extra_thread_info): Constify.
12424 * nto-tdep.h (nto_extra_thread_info): Constify.
12425 * obsd-nat.c (obsd_pid_to_str): Constify.
12426 * procfs.c (procfs_pid_to_str): Constify.
12427 * ravenscar-thread.c (ravenscar_extra_thread_info)
12428 (ravenscar_pid_to_str): Constify.
12429 * remote-sim.c (gdbsim_pid_to_str): Constify.
12430 * remote.c (remote_threads_extra_info, remote_pid_to_str):
12431 Constify.
12432 * sol-thread.c (solaris_pid_to_str): Constify.
12433 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
12434 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
12435 * target.c (default_pid_to_str, target_pid_to_str)
12436 (normal_pid_to_str, default_pid_to_str): Constify.
12437 * target.h (target_ops::to_pid_to_str)
12438 (target_ops::to_extra_thread_info): Constify.
12439 (target_pid_to_str, normal_pid_to_str): Constify.
12440 * windows-nat.c (windows_pid_to_str): Constify.
12441 * gdbarch.sh (core_pid_to_str): Constify.
12442 * target-delegates.c: Regenerate.
12443 * gdbarch.h, gdbarch.c: Regenerate.
12444
69bbf465
PA
124452017-04-05 Pedro Alves <palves@redhat.com>
12446
12447 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
12448 the memory of the temporary warning_pre_print override.
12449 * utils.c (warning_pre_print): Constify.
12450 * utils.h (warning_pre_print): Constify.
12451
be47f9e8
PA
124522017-04-05 Pedro Alves <palves@redhat.com>
12453
12454 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
12455 (shell_command): New function.
12456 (make_command): Use std::string.
12457 (init_cli_cmds): Register shell_command instead of shell_escape.
12458
bde6261a
PA
124592017-04-05 Pedro Alves <palves@redhat.com>
12460
12461 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
12462 * tracepoint.c (default_collect): Don't initialize.
12463
b38ef47f
PA
124642017-04-05 Pedro Alves <palves@redhat.com>
12465
12466 * macroexp.c (macro_buffer::shared): Now a bool.
12467 (init_buffer): Update.
12468 (init_shared_buffer): Constify 'addr' parameter.
12469 (substitute_args, expand, macro_expand, macro_expand_next): Remove
12470 casts.
12471
f995bbe8
PA
124722017-04-05 Pedro Alves <palves@redhat.com>
12473
12474 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
12475 * disasm.c (set_disassembler_options): Constify local.
12476 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
12477
4a596fe2
SDJ
124782017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
12479
12480 PR gdb/21352
12481 * tracefile.c (tsave_command): Fix argument parsing for '-r'
12482 option.
12483
2cad08ea
YQ
124842017-04-05 Yao Qi <yao.qi@linaro.org>
12485
12486 * frame.c (frame_unwind_register_unsigned): Call
12487 frame_unwind_register_value.
12488
55a98976
YQ
124892017-04-05 Yao Qi <yao.qi@linaro.org>
12490
12491 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
12492 Use gdb_test_multiple, and don't match anchor.
12493
4ac40124
PA
124942017-04-05 Pedro Alves <palves@redhat.com>
12495
12496 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
12497 (Write After Approval): Remove Simon Marchi.
12498
c053b654
PA
124992017-04-05 Pedro Alves <palves@redhat.com>
12500
12501 * common/gdb_optional.h (optional::optional): Make constexpr and
12502 initialize m_dummy.
12503
4c7bf4f9
JB
125042017-04-04 John Baldwin <jhb@FreeBSD.org>
12505
12506 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
12507 (amd64fbsd_jmp_buf_reg_offset): Remove.
12508 (amd64fbsd_supply_uthread): Remove function.
12509 (amd64fbsd_collect_uthread): Remove function.
12510 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
12511 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
12512 (x86_64-*-freebsd*): Remove bsd-uthread.o.
12513 (fbsd-nat.c): Update comment.
12514 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
12515 (i386fbsd_jmp_buf_reg_offset): Remove.
12516 (i386fbsd_supply_uthread): Remove function.
12517 (i386fbsd_collect_uthread): Remove function.
12518 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
12519
1e1a8bef
JB
125202017-04-04 John Baldwin <jhb@FreeBSD.org>
12521
12522 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
12523 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
12524 * NEWS: Mention that support for FreeBSD/alpha was removed.
12525 * alpha-fbsd-tdep.c: Delete file.
12526 * config/alpha/fbsd.mh: Delete file.
12527 * configure.host: Delete alpha*-*-freebsd* and
12528 alpha*-*-kfreebsd*-gnu.
12529 * configure.tgt: Delete alpha*-*-freebsd* and
12530 alpha*-*-kfreebsd*-gnu.
12531
49907934
JB
125322017-04-04 John Baldwin <jhb@FreeBSD.org>
12533
12534 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
12535 amd64bsd_store_inferior_registers): Use ptid from regcache.
12536
6f77053d
PA
125372017-04-04 Pedro Alves <palves@redhat.com>
12538
12539 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
12540 data fields, make them private and add "m_" prefixes.
12541 (lnp_state_machine::lnp_state_machine): New ctor.
12542 (record_line, check_line_address, handle_set_discriminator)
12543 (handle_set_address, handle_advance_pc, handle_special_opcode)
12544 (handle_advance_line, handle_set_file, handle_negate_stmt)
12545 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
12546 (end_sequence, advance_line): New methods.
12547 (m_gdbarch, m_record_lines_p): New fields.
12548 (lnp_reader_state): Delete.
12549 (dwarf_record_line): Rename to ...
12550 (lnp_state_machine::record_line): ... adjust.
12551 (init_lnp_state_machine): Delete.
12552 (lnp_state_machine::lnp_state_machine): New.
12553 (check_line_address): Rename to ...
12554 (lnp_state_machine::check_line_address): This.
12555 (dwarf_decode_lines_1): Remove reference to "reader_state".
12556 Adjust lnp_state_machine having a non-default ctor. Use bool.
12557 State machine internal state manipulation moved to
12558 lnp_state_machine methods.
12559
9c541725
PA
125602017-04-04 Pedro Alves <palves@redhat.com>
12561
12562 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12563 unittests/offset-type-selftests.c.
12564 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
12565 * common/offset-type.h: New file.
12566 * common/preprocessor.h: New file.
12567 * common/traits.h: New file.
12568 * common/valid-expr.h: New file.
12569 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
12570 sect_offset and cu_offset strong typedefs throughout.
12571 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
12572 typedefs throughout.
12573 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
12574 sect_offset and cu_offset strong typedefs throughout.
12575 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
12576 typedefs throughout.
12577 * gdbtypes.h: Include "common/offset-type.h".
12578 (cu_offset): Now an offset type (strong typedef) instead of a
12579 struct.
12580 (sect_offset): Likewise.
12581 (union call_site_parameter_u): Rename "param_offset" field to
12582 "param_cu_off".
12583 * unittests/offset-type-selftests.c: New file.
12584
ecfb656c
PA
125852017-04-04 Pedro Alves <palves@redhat.com>
12586
12587 * common/underlying.h: New file.
12588 * dwarf2read.c: Include "common/gdb_optional.h" and
12589 "common/underlying.h".
12590 (dir_index, file_name_index): New types.
12591 (file_entry): Use them.
12592 (file_entry::include): Use to_underlying.
12593 (line_header::add_file_name): Use dir_index.
12594 (read_formatted_entries): Use gdb::optional. Read form before
12595 writting to file_entry.
12596 (dwarf_decode_line_header): Use dir_index.
12597 (lnp_state_machine::current_file): Use to_underlying.
12598 (lnp_state_machine::file): Change type to file_name_index.
12599 (dwarf_record_line): Use to_underlying.
12600 (init_lnp_state_machine): Use file_name_index.
12601 (dwarf_decode_lines_1): Use dir_index and file_name_index.
12602
d194f1fe
PA
126032017-04-04 Pedro Alves <palves@redhat.com>
12604
12605 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
12606 operator bool, has_value and get methods.
12607
fff8551c
PA
126082017-04-04 Pedro Alves <palves@redhat.com>
12609
12610 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
12611 fields.
12612 (line_header): Initialize all data fields. Change type of
12613 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
12614 Change type of include_dirs to std::vector<const char *>. Remove
12615 num_include_dirs, include_dirs_size. Change type of file_names to
12616 std::vector<file_entry>. Remove num_file_names, file_names_size.
12617 (line_header::line_header): New.
12618 (line_header::add_include_dir, line_header::add_file_name): New
12619 methods.
12620 (line_header::include_dir_at): Remove NULL check.
12621 (line_header::file_name_at): Add const overload.
12622 (line_header_up): New unique_ptr typedef.
12623 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
12624 std::vector. Remove free_line_header call.
12625 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
12626 free_line_header call.
12627 (free_cu_line_header): Delete.
12628 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
12629 (setup_type_unit_groups): Use line_header_up instead of cleanups.
12630 Adjust to use std::vector.
12631 (free_line_header): Delete.
12632 (free_line_header_voidp): Use delete.
12633 (add_include_dir): Replace with ...
12634 (line_header::add_include_dir): ... this method. Use std::vector.
12635 (add_file_name): Replace with ...
12636 (line_header::add_file_name): ... this method. Use std::vector.
12637 (add_include_dir_stub): Delete.
12638 (read_formatted_entries): Remove memset.
12639 (dwarf_decode_line_header): Return a line_header_up instead of a
12640 raw pointer. Remove cleanup handling. Pass lambdas to
12641 read_formatted_entries. Adjust to use line_header methods.
12642 (dwarf_decode_lines_1): Adjust to use line_header methods.
12643 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
12644 use std::vector.
12645
d62a8ae2
SM
126462017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
12647
12648 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
12649 instead of struct ptid.
12650
db3a1dc7
AH
126512017-05-04 Alan Hayward <alan.hayward@arm.com>
12652
12653 * frame.c (get_frame_register_bytes): Unwind using value.
12654 (put_frame_register_bytes): Likewise.
12655
b1b45502
IB
126562017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
12657
12658 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
12659 aggregate-like.
12660
ec13808e
JK
126612017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
12662
12663 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
12664
12316564
YQ
126652017-03-29 Yao Qi <yao.qi@linaro.org>
12666
12667 * gdbthread.h (struct thread_info): Declare constructor and
12668 destructor. Add some in-class member initializers.
12669 * thread.c (free_thread): Remove.
12670 (init_thread_list): Call delete instead of free_thread.
12671 (new_thread): Call thread_info constructor.
12672 (thread_info::thread_info): New function.
12673 (thread_info::~thread_info): New function.
12674 (delete_thread_1): Call delete instead of free_thread.
12675 (make_cleanup_restore_current_thread): Move tp and frame to
12676 inner block.
12677
fe5f7374
AK
126782017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12679
12680 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
12681 (arc_skip_prologue): Likewise.
12682 (arc_make_frame_cache): Likewise.
12683 (arc_pv_get_operand): New function.
12684 (arc_is_in_prologue): Likewise.
12685 (arc_analyze_prologue): Likewise.
12686 (arc_print_frame_cache): Likewise.
12687 (MAX_PROLOGUE_LENGTH): New constant.
12688
eea78757
AK
126892017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12690
12691 * configure.tgt: Add arc-insn.o.
12692 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
12693 (dump_arc_instruction_command): New function.
12694 (arc_fprintf_disasm): Likewise.
12695 (arc_disassemble_info): Likewise.
12696 (arc_insn_get_operand_value): Likewise.
12697 (arc_insn_get_operand_value_signed): Likewise.
12698 (arc_insn_get_memory_base_reg): Likewise.
12699 (arc_insn_get_memory_offset): Likewise.
12700 (arc_insn_get_branch_target): Likewise.
12701 (arc_insn_dump): Likewise.
12702 (arc_insn_get_linear_next_pc): Likewise.
12703 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
12704 (arc_disassemble_info): Likewise.
12705 (arc_insn_get_branch_target): Likewise.
12706 (arc_insn_get_linear_next_pc): Likewise.
12707 * NEWS: Mention new "maint print arc arc-instruction".
12708
3be78afd
AK
127092017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12710
12711 * arc-tdep (maintenance_print_arc_list): New variable.
12712 (maintenance_print_arc_command): New function.
12713
296ec4fa
AK
127142017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12715
12716 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
12717 Add "limm" and "reserved".
12718 (arc_cannot_fetch_register, arc_cannot_store_register): Add
12719 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
12720 * arc-tdep.h (arc_regnum): Likewise.
12721
f74f865e
MF
127222017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12723
12724 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12725 for THREADPTR register.
12726 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
12727 register.
12728 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
12729 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
12730 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
12731
0d0bf81a
MF
127322017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12733
12734 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
12735 registers above gdbarch_num_regs (gdbarch) as privileged in
12736 call0 ABI.
12737
0ce4291e
MF
127382017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12739
12740 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12741 for a single specified register or for all registers in
12742 a0_base..a0_base + C0_NREGS range.
12743 (supply_gregset_reg): Call regcache_raw_supply for a single
12744 specified register or for all registers in a0_base..a0_base +
12745 C0_NREGS range.
12746
c56054f9
MF
127472017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12748
12749 * arch/xtensa.h (C0_NREGS): Add definition.
12750 * xtensa-tdep.c (C0_NREGS): Remove definition.
12751
a4398628
MF
127522017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12753
12754 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
12755 Drop xtensa_default_isa initialization.
12756 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
12757
8c43009f
PA
127582017-03-27 Pedro Alves <palves@redhat.com>
12759
12760 * dwarf2read.c (file_entry) <dir_index>: Add comment.
12761 (file_entry::include_dir): New method.
12762 (line_header::include_dir_at, line_header::file_name_at): New
12763 methods.
12764 (setup_type_unit_groups, setup_type_unit_groups)
12765 (psymtab_include_file_name): Simplify using the new methods.
12766 (lnp_state_machine) <the_line_header>: New field.
12767 <file>: Add comment.
12768 (lnp_state_machine::current_file): New method.
12769 (dwarf_record_line): Simplify using the new methods.
12770 (init_lnp_state_machine): Initialize the "the_line_header" field.
12771 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
12772 Simplify using the new methods.
12773
a7e80b9e
PA
127742017-03-27 Pedro Alves <palves@redhat.com>
12775
12776 * cp-name-parser.y (make_empty): Delete.
12777 (demangler_special, nested_name, ptr_operator, array_indicator)
12778 (direct_declarator, declarator_1): Use fill_comp instead of
12779 make_empty.
12780
21047726
PA
127812017-03-27 Pedro Alves <palves@redhat.com>
12782
12783 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
12784 to ATTRIBUTE_PRINTF.
12785 * solib-target.c (library_list_start_list): Print "string" not
12786 "version".
12787 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
12788 gdb_xml_error call.
12789
d721ba37
PA
127902017-03-27 Pedro Alves <palves@redhat.com>
12791
12792 * dwarf2read.c (struct file_and_directory): New.
12793 (dwarf2_get_dwz_file): Adjust to use std::string.
12794 (dw2_get_file_names_reader): Adjust to use file_and_directory.
12795 (find_file_and_directory): Adjust to return a file_and_directory
12796 object.
12797 (read_file_scope): Adjust to use file_and_directory. Remove
12798 make_cleanup/do_cleanups calls.
12799 (open_and_init_dwp_file): Adjust to use std::string. Remove
12800 make_cleanup/do_cleanups calls.
12801 * python/python.c (do_start_initialization): Adjust to ldirname
12802 returning a std::string.
12803 * utils.c (ldirname): Now returns a std::string.
12804 * utils.h (ldirname): Change return type to std::string.
12805 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
12806 returning a std::string.
12807 * xml-tdesc.c (file_read_description_xml): Likewise.
12808
ed771251
AH
128092017-03-24 Alan Hayward <alan.hayward@arm.com>
12810
12811 * regcache.c (regcache_debug_print_register): New function.
12812 * regcache.h (regcache_debug_print_register): New declaration.
12813 * target.c (debug_print_register): Remove.
12814 (target_fetch_registers): Call regcache_debug_print_register.
12815 (target_store_registers): Likewise.
12816
568c1b9f
PB
128172017-03-24 Pádraig Brady <pbrady@fb.com>
12818
12819 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
12820 reference beyond the 'lh->include_dirs' array before accessing to
12821 it.
12822 (psymtab_include_file_name): Likewise.
12823 (dwarf_decode_lines_1): Likewise.
12824 (dwarf_decode_lines): Likewise.
12825 (file_file_name): Likewise.
12826
3e00d44f
SM
128272017-03-23 Simon Marchi <simon.marchi@ericsson.com>
12828
12829 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
12830 inferior_ptid.
12831 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12832 ps_lsetfpregs): Likewise.
12833 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
12834 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12835 ps_lsetfpregs): Likewise.
12836 * target.c (target_fetch_registers, target_store_registers):
12837 Remove asserts.
12838
077ae656
AH
128392017-03-23 Alan Hayward <alan.hayward@arm.com>
12840
12841 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
12842
1e2b521d
YQ
128432017-03-23 Yao Qi <yao.qi@linaro.org>
12844
12845 * aarch64-tdep.c (aarch64_process_record_test): Declare.
12846 (_initialize_aarch64_tdep): Register it.
12847 (aarch64_record_load_store): Handle PRFM instruction.
12848 (aarch64_process_record_test): New function.
12849
33877125
YQ
128502017-03-23 Yao Qi <yao.qi@linaro.org>
12851
12852 * aarch64-tdep.c (aarch64_record_load_store): Fix code
12853 indentation.
12854
a0eef940
YQ
128552017-03-23 Yao Qi <yao.qi@linaro.org>
12856
12857 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
12858
3f2a3564
PR
128592017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12860
12861 python/python.c (do_start_initialization): Fix memory leak.
12862
b67aeab0
SM
128632017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12864
12865 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
12866 using get_ptrace_pid.
12867 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
12868 inferior_ptid.
12869 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
12870 inferior_ptid instead of pid.
12871
ffdbe864
YQ
128722017-03-22 Yao Qi <yao.qi@linaro.org>
12873
12874 * aarch64-tdep.c: Wrap locally used classes in anonymous
12875 namespace.
12876 * arm-tdep.c: Likewise.
12877 * linespec.c: Likewise.
12878 * ui-out.c: Likewise.
12879
9d736fbf
JG
128802017-03-22 Jonah Graham <jonah@kichwacoders.com>
12881
12882 PR gdb/19637
12883 * python/lib/gdb/printer/bound_registers.py: Import sys.
12884
3de88e9a
SM
128852017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12886
12887 * windows-nat.c (do_windows_fetch_inferior_registers): Add
12888 windows_thread_info parameter and use it instead of
12889 current_thread.
12890 (windows_fetch_inferior_registers): Don't set current_thread,
12891 pass the thread to do_windows_fetch_inferior_registers. Use
12892 ptid from regcache instead of inferior_ptid.
12893 (do_windows_store_inferior_registers): Add windows_thread_info
12894 parameter and use it instead of current_thread.
12895 (windows_store_inferior_registers): Don't set current_thread,
12896 pass the thread to do_windows_store_inferior_registers. Use
12897 ptid from regcache instead of inferior_ptid.
12898
0e7b8f61
SM
128992017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12900
12901 * ser-mingw.c (ser_windows_raw): Remove reference to
12902 struct serial::current_timeout.
12903
5badf10a
IR
129042017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
12905
12906 PR tdep/20928
12907 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
12908 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
12909 (sparc64_fsr_type): Fix %fsr decoding.
12910
cee59b3f
TW
129112017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
12912
12913 * python/py-record-btrace.c (btpy_insn_data): Change return type
12914 for Python 2.
12915
639a9038
SM
129162017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12917
12918 * spu-linux-nat.c (spu_fetch_inferior_registers,
12919 spu_store_inferior_registers): Use ptid from regcache, set and
12920 restore inferior_ptid.
12921 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
12922 Likewise.
12923
bcc0c096
SM
129242017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12925
12926 * i386-linux-nat.c (fetch_register, store_register,
12927 i386_linux_fetch_inferior_registers,
12928 i386_linux_store_inferior_registers): Use ptid from regcache.
12929 * ia64-linux-nat.c (ia64_linux_fetch_register,
12930 ia64_linux_store_register): Likewise.
12931 * inf-ptrace.c (inf_ptrace_fetch_register,
12932 inf_ptrace_store_register): Likewise.
12933 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
12934 m32r_linux_store_inferior_registers): Likewise.
12935 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
12936 m68kbsd_store_inferior_registers): Likewise.
12937 * m68k-linux-nat.c (fetch_register, store_register,
12938 m68k_linux_fetch_inferior_registers,
12939 m68k_linux_store_inferior_registers): Likewise.
12940 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
12941 m88kbsd_store_inferior_registers): Likewise.
12942 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
12943 mips_fbsd_store_inferior_registers): Likewise.
12944 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
12945 mips64_linux_regsets_store_registers): Likewise.
12946 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
12947 mipsnbsd_store_inferior_registers): Likewise.
12948 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
12949 mips64obsd_store_inferior_registers): Likewise.
12950 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
12951 Likewise.
12952 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
12953 ppcfbsd_store_inferior_registers): Likewise.
12954 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
12955 ppc_linux_store_inferior_registers): Likewise.
12956 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
12957 ppcnbsd_store_inferior_registers): Likewise.
12958 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
12959 ppcobsd_store_registers): Likewise.
12960 * procfs.c (procfs_fetch_registers, procfs_store_registers):
12961 Likewise.
12962 * ravenscar-thread.c (ravenscar_fetch_registers,
12963 ravenscar_store_registers, ravenscar_prepare_to_store):
12964 Likewise.
12965 * record-btrace.c (record_btrace_fetch_registers,
12966 record_btrace_store_registers, record_btrace_prepare_to_store):
12967 Likewise.
12968 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
12969 Lookup inferior using ptid from regcache, instead of
12970 current_inferior.
12971 * remote.c (remote_fetch_registers, remote_store_registers): Use
12972 ptid from regcache.
12973 * rs6000-nat.c (fetch_register, store_register): Likewise.
12974 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
12975 s390_linux_store_inferior_registers): Likewise.
12976 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
12977 shnbsd_store_inferior_registers): Likewise.
12978 * sol-thread.c (sol_thread_fetch_registers,
12979 sol_thread_store_registers): Likewise.
12980 * sparc-nat.c (sparc_fetch_inferior_registers,
12981 sparc_store_inferior_registers): Likewise.
12982 * tilegx-linux-nat.c (fetch_inferior_registers,
12983 store_inferior_registers): Likewise.
12984 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
12985 vaxbsd_store_inferior_registers): Likewise.
12986 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
12987 store_xtregs): Likewise.
12988
c0f55cc6
AV
129892017-03-20 Artemiy Volkov <artemiyv@acm.org>
12990
12991 PR gdb/14441
12992 * NEWS: Mention support for rvalue references in GDB and python.
12993 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
12994 supports both lvalue and rvalue references.
12995
15c0a2a9
AV
129962017-03-20 Artemiy Volkov <artemiyv@acm.org>
12997
12998 PR gdb/14441
12999 * gdbtypes.c (rank_one_type): Implement overloading
13000 resolution rules regarding rvalue references.
13001
aa006118
AV
130022017-03-20 Artemiy Volkov <artemiyv@acm.org>
13003
13004 PR gdb/14441
13005 * aarch64-tdep.c (aarch64_type_align)
13006 (aarch64_extract_return_value, aarch64_store_return_value): Change
13007 lvalue reference type checks to general reference type checks.
13008 * amd64-tdep.c (amd64_classify): Likewise.
13009 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
13010 Likewise.
13011 * arm-tdep.c (arm_type_align, arm_extract_return_value)
13012 (arm_store_return_value): Likewise.
13013 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
13014 * c-typeprint.c (c_print_type): Likewise.
13015 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
13016 (cplus_number_of_children, cplus_describe_child): Likewise.
13017 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
13018 * completer.c (expression_completer): Likewise.
13019 * cp-support.c (make_symbol_overload_list_adl_namespace):
13020 Likewise.
13021 * darwin-nat-info.c (info_mach_region_command): Likewise.
13022 * dwarf2loc.c (entry_data_value_coerce_ref)
13023 (value_of_dwarf_reg_entry): Likewise.
13024 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
13025 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
13026 Likewise.
13027 * findvar.c (extract_typed_address, store_typed_address):
13028 Likewise.
13029 * gdbtypes.c (rank_one_type): Likewise.
13030 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
13031 * infcall.c (value_arg_coerce): Likewise.
13032 * language.c (pointer_type): Likewise.
13033 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
13034 Likewise.
13035 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
13036 * mn10300-tdep.c (mn10300_type_align): Likewise.
13037 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
13038 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
13039 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
13040 Likewise.
13041 * printcmd.c (print_formatted, x_command): Likewise.
13042 * python/py-type.c (typy_get_composite, typy_template_argument):
13043 Likewise.
13044 * python/py-value.c (valpy_referenced_value)
13045 (valpy_get_dynamic_type, value_has_field): Likewise.
13046 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
13047 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
13048 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
13049 * spu-tdep.c (spu_scalar_value_p): Likewise.
13050 * symtab.c (lookup_symbol_aux): Likewise.
13051 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
13052 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
13053 Likewise.
13054 * valops.c (value_cast_pointers, value_cast)
13055 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
13056 (value_struct_elt, value_struct_elt_bitpos)
13057 (value_find_oload_method_list, find_overload_match)
13058 (value_rtti_indirect_type): Likewise.
13059 * valprint.c (val_print_scalar_type_p, generic_val_print):
13060 Likewise.
13061 * value.c (value_actual_type, value_as_address, unpack_long)
13062 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
13063 (coerce_ref): Likewise.
13064 * varobj.c (varobj_get_value_type): Likewise.
13065
3fcf899d
AV
130662017-03-20 Artemiy Volkov <artemiyv@acm.org>
13067
13068 PR gdb/14441
13069 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
13070 table of constants.
13071 * python/lib/gdb/command/explore.py: Support exploring values
13072 of rvalue reference types.
13073 * python/lib/gdb/types.py: Implement get_basic_type() for
13074 rvalue reference types.
13075 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
13076 constant.
13077 * python/py-value.c (valpy_getitem): Add an rvalue reference
13078 check.
13079 (valpy_reference_value): Add new parameter "refcode".
13080 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
13081 New wrappers for valpy_reference_value().
13082 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
13083 (gdbpy_invoke_xmethod): Likewise.
13084
4297a3f0
AV
130852017-03-20 Artemiy Volkov <artemiyv@acm.org>
13086
13087 PR gdb/14441
13088 * dwarf2read.c (process_die, read_type_die_1): Handle the
13089 DW_TAG_rvalue_reference_type DIE.
13090 (read_tag_reference_type): Add new parameter "refcode".
13091
e1cb3213
AV
130922017-03-20 Artemiy Volkov <artemiyv@acm.org>
13093
13094 PR gdb/14441
13095 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
13096 (c_type_print_modifier, c_type_print_varspec_suffix)
13097 (c_type_print_base): Support printing rvalue reference types.
13098 * c-valprint.c (c_val_print, c_value_print): Support printing
13099 rvalue reference values.
13100
e4347c89
AV
131012017-03-20 Artemiy Volkov <artemiyv@acm.org>
13102
13103 PR gdb/14441
13104 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
13105 typename.
13106 * cp-support.c (replace_typedefs): Handle
13107 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
13108 * python/py-type.c (typy_lookup_type): Likewise.
13109
53cc15f5
AV
131102017-03-20 Artemiy Volkov <artemiyv@acm.org>
13111
13112 PR gdb/14441
13113 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
13114 * parse.c (insert_type): Change assert statement.
13115 (follow_types): Handle rvalue reference types.
13116 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
13117 constant.
13118
a65cfae5
AV
131192017-03-20 Artemiy Volkov <artemiyv@acm.org>
13120
13121 PR gdb/14441
13122 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
13123 value_ref() interface.
13124 * c-valprint.c (c_value_print): Likewise.
13125 * infcall.c (value_arg_coerce): Likewise.
13126 * python/py-value.c (valpy_reference_value): Likewise.
13127 * valops.c (value_cast, value_reinterpret_cast)
13128 (value_dynamic_cast, typecmp): Likewise.
13129 (value_ref): Parameterize by kind of return value reference type.
13130 * value.h (value_ref): Add new parameter "refcode".
13131
3b224330
AV
131322017-03-20 Artemiy Volkov <artemiyv@acm.org>
13133
13134 PR gdb/14441
13135 * dwarf2read.c (read_tag_reference_type): Use
13136 lookup_lvalue_reference_type() instead of lookup_reference_type().
13137 * eval.c (evaluate_subexp_standard): Likewise.
13138 * f-exp.y: Likewise.
13139 * gdbtypes.c (make_reference_type, lookup_reference_type):
13140 Generalize with rvalue reference types.
13141 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
13142 convenience wrappers for lookup_reference_type().
13143 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
13144 reference kind parameter.
13145 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
13146 wrappers for lookup_reference_type().
13147 * guile/scm-type.c (gdbscm_type_reference): Use
13148 lookup_lvalue_reference_type() instead of lookup_reference_type().
13149 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
13150 * parse.c (follow_types): Likewise.
13151 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
13152 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
13153 Likewise.
13154 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
13155 (gdbpy_invoke_xmethod): Likewise.
13156 * stabsread.c: Provide extra argument to make_reference_type()
13157 call.
13158 * valops.c (value_ref, value_rtti_indirect_type): Use
13159 lookup_lvalue_reference_type() instead of lookup_reference_type().
13160
f9aeb8d4
AV
131612017-03-20 Artemiy Volkov <artemiyv@acm.org>
13162
13163 PR gdb/14441
13164 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
13165 (TYPE_IS_REFERENCE): New macro.
13166 (struct type): Add rvalue_reference_type field.
13167 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
13168
51457a05
MAL
131692017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
13170
13171 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
13172 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
13173 New function definition.
13174 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
13175 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
13176 New function declaration.
13177 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
13178 * mi/mi-interp.h: New file.
13179 * solib.c (info_sharedlibrary_command): Replace for loop with
13180 ALL_SO_LIBS macro
13181 * solib.h (update_solib_list): New function declaration.
13182 (so_list_head): Move macro.
13183 * solist.h (ALL_SO_LIBS): New macro.
13184
e696b3ad
MAL
131852017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
13186
13187 * infcmd.c (post_create_inferior): Remove unused argument in
13188 call to solib_add.
13189 * remote.c (remote_start_remote): Likewise.
13190 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
13191 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
13192 (enable_break): Likewise.
13193 * solib.c (update_solib_list): Remove unused target argument
13194 and its documentation.
13195 (solib_add): Remove unused target argument. Remove unused
13196 argument in call to update_solib_list.
13197 (info_sharedlibrary_command): Remove unused argument in call
13198 to update_solib_list.
13199 (sharedlibrary_command): Remove unused argument in call to
13200 solib_add.
13201 (handle_solib_event): Likewise.
13202 (reload_shared_libraries): Likewise.
13203 * solib.h (solib_add): Remove unused target argument.
13204
dcb84eda
AA
132052017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
13206
13207 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
13208 (s390_displaced_step_fixup): Cover relative branches with the
13209 default fixup handling. This fixes lack of support for some
13210 relative branch instructions.
13211
d9cb6cdc
SM
132122017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13213
13214 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
13215 ptid from regcache.
13216
1afaf9f4
SM
132172017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13218
13219 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
13220 i386_darwin_store_inferior_registers): Use ptid from regcache.
13221
aac12e24
SM
132222017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13223
13224 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
13225 i386bsd_store_inferior_registers): Use ptid from regcache.
13226
bbe1eef1
SM
132272017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13228
13229 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
13230 hppaobsd_store_registers): Use ptid from regcache.
13231
10799020
SM
132322017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13233
13234 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
13235 hppanbsd_store_registers): Use ptid from regcache.
13236
00204cf7
SM
132372017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13238
13239 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
13240 from regcache. Use get_ptrace_pid.
13241
11a33714
SM
132422017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13243
13244 * corelow.c (get_core_register_section): Use ptid from regcache,
13245 update doc.
13246
317cd492
SM
132472017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13248
13249 * bsd-uthread.c (bsd_uthread_fetch_registers,
13250 bsd_uthread_store_registers): Use ptid from regcache, set and
13251 restore inferior_ptid.
13252
9ac8a7c2
SM
132532017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13254
13255 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
13256 fetch_fp_regs, store_register, store_regs, store_fp_register,
13257 store_fp_regs): Use ptid from regcache.
13258
4ac4bb6a
SM
132592017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13260
13261 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
13262 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
13263 store_vfp_regs): Use ptid from regcache.
13264
9bcbdca8
PA
132652017-03-17 Pedro Alves <palves@redhat.com>
13266
13267 PR remote/21188
13268 * ser-base.c (ser_base_wait_for): Add comment.
13269 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
13270 version.
13271 * ser-unix.c (hardwire_raw): Remove reference to
13272 scb->current_timeout.
13273 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
13274 (hardwire_ops): Install ser_base_readchar instead of
13275 hardwire_readchar.
13276 * serial.h (struct serial) <current_timeout, timeout_remaining>:
13277 Remove fields.
13278
7503099f
JG
132792017-03-17 Jonah Graham <jonah@kichwacoders.com>
13280
13281 PR gdb/19637
13282 * python/lib/gdb/printer/bound_registers.py: Add support for
13283 Python 3.
13284
7942e96e
AA
132852017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
13286
13287 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
13288 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
13289 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
13290 byte_offset to subobj_byte_offset. Fix the handling of
13291 DWARF_VALUE_STACK on big-endian targets when coming via an
13292 implicit pointer.
13293 (dwarf2_evaluate_loc_desc): Adjust call to
13294 dwarf2_evaluate_loc_desc_full.
13295 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
13296 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
13297
ba14f379
YQ
132982017-03-16 Yao Qi <yao.qi@linaro.org>
13299
13300 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
13301 and REVSH instructions.
13302
b121eeb9
YQ
133032017-03-16 Yao Qi <yao.qi@linaro.org>
13304
13305 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
13306 (arm_record_test): Declare.
13307 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
13308 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
13309 align with the manual.
13310 (thumb_record_misc): Adjust the code order to align with the
13311 manual.
13312 (thumb2_record_decode_insn_handler): Fix instruction matching.
13313 (instruction_reader_thumb): New class.
13314 (arm_record_test): New function.
13315
728a7913
YQ
133162017-03-16 Yao Qi <yao.qi@linaro.org>
13317
13318 * arm-tdep.c (abstract_memory_reader): New class.
13319 (instruction_reader): New class.
13320 (extract_arm_insn): Add argument 'reader'. Callers updated.
13321 (decode_insn): Likewise.
13322
34b43320
DE
133232017-03-16 Doug Evans <dje@google.com>
13324
a7c0469f
DE
13325 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
13326 member. Change type of TYPE member to SCM. All uses updated.
13327 (lsscm_make_lazy_string_smob): Add assert.
13328 (lsscm_make_lazy_string): Flag bad length values.
13329 (lsscm_elt_type): New function.
13330 (gdbscm_lazy_string_to_value): Rewrite to use
13331 lsscm_safe_lazy_string_to_value.
13332 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
13333 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
13334 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
13335 in incoming type.
13336 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
13337 * guile/scm-type.c (tyscm_scm_to_type): New function.
13338
133392017-03-15 Doug Evans <dje@google.com>
13340
34b43320
DE
13341 PR python/17728, python/18439, python/18779
13342 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
13343 member. Change type of TYPE member to PyObject *. All uses updated.
13344 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
13345 (gdbpy_create_lazy_string_object): Flag bad length values.
13346 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
13347 Handle typedefs in incoming type.
13348 (stpy_lazy_string_elt_type): New function.
13349 (gdbpy_extract_lazy_string): Call it.
13350 * python/py-value.c (valpy_lazy_string): Flag bad length values.
13351 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
13352 typedefs in incoming type.
13353
a3a5fecc
DE
133542017-03-16 Doug Evans <dje@google.com>
13355
13356 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
13357 * guile/scm-type.c (tyscm_scm_to_type): New function.
13358
28f1c605
JW
133592017-03-16 Jiong Wang <jiong.wang@arm.com>
13360
13361 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
13362 "ULONGEST" for "skip".
13363
87c336f6
AA
133642017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
13365
13366 PR gdb/21220
13367 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
13368 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
13369 (inf_ptrace_peek_poke): ...here. New function. Now also loop
13370 over ptrace peek/poke until end of buffer or error.
13371
cf81cf60
SM
133722017-03-14 Simon Marchi <simon.marchi@ericsson.com>
13373
13374 * parse.c (length_of_subexp): Make static.
13375 * parser-defs.h (length_of_subexp): Remove.
13376
a379284a
AA
133772017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
13378
13379 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
13380 as well.
13381
8a6200ba
PA
133822017-03-14 Pedro Alves <palves@redhat.com>
13383
13384 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
13385 (main): Use std::unique_ptr. Remove calls to
13386 cp_demangled_name_parse_free.
13387
f79ec206
SM
133882017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13389
13390 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
13391 alphabsd_store_inferior_registers): Use regcache->ptid instead
13392 of inferior_ptid.
13393
edb5fb00
SM
133942017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13395
13396 * aix-thread.c (aix_thread_fetch_registers,
13397 aix_thread_store_registers): Use regcache->ptid instead of
13398 inferior_ptid.
13399
55119686
SM
134002017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13401
13402 * aarch64-linux-nat.c (fetch_gregs_from_thread,
13403 store_gregs_to_thread, fetch_fpregs_from_thread,
13404 store_fpregs_to_thread): Use regcache->ptid instead of
13405 inferior_ptid.
13406
6a06fbb7
SM
134072017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13408
13409 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
13410 amd64_linux_fetch_inferior_registers): Use regcache->ptid
13411 instead of inferior_ptid.
13412
c6386875
SM
134132017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13414
13415 * target.c (target_fetch_registers, target_store_registers): Add
13416 assert.
13417
ddaaf0fb
SM
134182017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13419
13420 * regcache.h (regcache_get_ptid): New function.
13421 * regcache.c (regcache_get_ptid): New function.
13422
b9da89d1 134232017-03-13 Mark Wielaard <mark@klomp.org>
13424
13425 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
13426
5f4d1085
KS
134272017-03-10 Keith Seitz <keiths@redhat.com>
13428
13429 PR c++/8218
13430 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
13431
c65d6b55
PA
134322017-03-08 Pedro Alves <palves@redhat.com>
13433
13434 PR gdb/18360
13435 * infrun.c (start_step_over, do_target_resume, resume)
13436 (restart_threads): Assert we're not resuming a thread that is
13437 meant to be stopped.
13438 (infrun_thread_stop_requested_callback): Delete.
13439 (infrun_thread_stop_requested): If the thread is internally
13440 stopped, queue a pending stop event and clear the thread's
13441 inline-frame state.
13442 (handle_stop_requested): New function.
13443 (handle_syscall_event, handle_inferior_event_1): Use
13444 handle_stop_requested.
13445 (handle_stop_requested): New function.
13446 (handle_signal_stop): Set the thread's stop_signal here instead of
13447 at caller.
13448 (finish_step_over): Clear step over info unconditionally.
13449 (handle_signal_stop): If the user had interrupted the event
13450 thread, consider the stop a random signal.
13451 (handle_signal_stop) <signal arrived while stepping over
13452 breakpoint>: Don't restart threads here.
13453 (stop_waiting): Don't clear step-over info here.
13454
15c22686
PA
134552017-03-08 Pedro Alves <palves@redhat.com>
13456
13457 PR 21206
13458 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
13459 goes to argument 2, not 1.
13460
6e5d74e7
PA
134612017-03-08 Pedro Alves <palves@redhat.com>
13462
13463 PR cli/21218
13464 * top.c (gdb_readline_wrapper): Avoid passing NULL to
13465 display_gdb_prompt.
13466 (command_line_input): Add comment.
13467
9753a2f6
PA
134682017-03-08 Pedro Alves <palves@redhat.com>
13469
13470 PR tui/21216
13471 * tui/tui-file.c (tui_file::write): New.
13472 * tui/tui-file.h (tui_file): Override "write".
13473 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
13474 factored out from ...
13475 (tui_puts): ... here.
13476 (tui_putc): Use them.
13477 (tui_write): New function.
13478 * tui/tui-io.h (tui_write): Declare.
13479
1672e0d9
SDJ
134802017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
13481
13482 * Makefile.in (SFILES): Replace "environ.c" with
13483 "common/environ.c".
13484 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
13485 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
13486 to...
13487 * common/environ.c: ... here.
13488 * environ.h: Moved to...
13489 * common/environ.h: ... here.
13490
f7bb4e3a
PB
134912017-03-07 Peter Bergner <bergner@vnet.ibm.com>
13492
13493 * gdbarch.sh (pstring_ptr): New static function.
13494 (gdbarch_disassembler_options): Use it.
13495 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
13496 not valid_disassembler_option->name.
13497 * gdbarch.c: Regenerate.
13498
e45ced6c
PB
134992017-03-07 Peter Bergner <bergner@vnet.ibm.com>
13500
13501 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
13502
5f6fd321
PA
135032017-03-07 Pedro Alves <palves@redhat.com>
13504
13505 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
13506
6dbb839a 135072017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
13508
13509 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
13510 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
13511 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 13512 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 13513
d274ecf4
SM
135142017-03-06 Simon Marchi <simon.marchi@ericsson.com>
13515
13516 * xtensa-linux-nat.c (fetch_gregs): Remove const.
13517
df97be55
SM
135182017-03-03 Simon Marchi <simon.marchi@ericsson.com>
13519
13520 * remote.c (remote_add_target_side_commands): Use range-based
13521 for loop.
13522
7d45f3df
YQ
135232017-03-03 Yao Qi <yao.qi@linaro.org>
13524
13525 PR gdb/21165
13526 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
13527 value is lazy.
13528 * valprint.c (common_val_print): Likewise.
13529
65b48a81
PB
135302017-02-28 Peter Bergner <bergner@vnet.ibm.com>
13531
13532 * NEWS: Mention new set/show disassembler-options commands.
13533 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
13534 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
13535 (prospective_options): New static variable.
13536 (gdb_disassembler::gdb_disassembler): Initialize
13537 m_di.disassembler_options.
13538 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
13539 (get_disassembler_options): New function.
13540 (set_disassembler_options): Likewise.
13541 (set_disassembler_options_sfunc): Likewise.
13542 (show_disassembler_options_sfunc): Likewise.
13543 (disassembler_options_completer): Likewise.
13544 (_initialize_disasm): Likewise.
13545 * disasm.h (get_disassembler_options): New prototype.
13546 (set_disassembler_options): Likewise.
13547 * gdbarch.sh (gdbarch_disassembler_options): New variable.
13548 (gdbarch_verify_disassembler_options): Likewise.
13549 * gdbarch.c: Regenerate.
13550 * gdbarch.h: Likewise.
13551 * arm-tdep.c (num_disassembly_options): Delete.
13552 (set_disassembly_style): Likewise.
13553 (arm_disassembler_options): New static variable.
13554 (set_disassembly_style_sfunc): Convert short style name into long
13555 option name. Call set_disassembler_options.
13556 (show_disassembly_style_sfunc): New function.
13557 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
13558 set_gdbarch_verify_disassembler_options.
13559 (_initialize_arm_tdep): Delete regnames variable and update callers.
13560 (arm_disassembler_options): Initialize.
13561 (disasm_options): New variable.
13562 (num_disassembly_options): Rename from this...
13563 (num_disassembly_styles): ...to this. Compute by scanning through
13564 disasm_options.
13565 (valid_disassembly_styles): Initialize using disasm_options.
13566 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
13567 set_arm_regname_option.
13568 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
13569 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
13570 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
13571 set_gdbarch_verify_disassembler_options.
13572 * s390-tdep.c (s390_disassembler_options): New static variable.
13573 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
13574 set_gdbarch_verify_disassembler_options.
13575
d538e36d
SM
135762017-02-27 Simon Marchi <simon.marchi@ericsson.com>
13577
13578 * remote.c (remote_add_target_side_condition): Remove "struct"
13579 keyword from range-based for loop.
13580
83621223
SM
135812017-02-27 Simon Marchi <simon.marchi@ericsson.com>
13582
13583 * remote.c (remote_add_target_side_condition): Use range-based
13584 for loop. Update comment.
13585
2123df0e
YQ
135862017-02-27 Yao Qi <yao.qi@linaro.org>
13587
13588 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
13589
8e368124
AH
135902017-02-26 Alan Hayward <alan.hayward@arm.com>
13591
13592 * regcache.c (regcache_raw_update): New function.
13593 (regcache_raw_read): Move code to regcache_raw_update.
13594 * regcache.h (regcache_raw_update): New declaration.
13595 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
13596
a49dd8dd
JK
135972017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
13598
13599 * dwarf2read.c (create_debug_type_hash_table): Initialize
13600 header.signature and header.type_offset_in_tu.
13601
34e4bae9
PA
136022017-02-24 Pedro Alves <palves@redhat.com>
13603
13604 * symtab.c (make_file_symbol_completion_list_1): Use
13605 add_symtab_completions.
13606
b0e4b369
AH
136072017-02-24 Alan Hayward <alan.hayward@arm.com>
13608
13609 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
13610
975c21ab
AH
136112017-02-24 Alan Hayward <alan.hayward@arm.com>
13612
13613 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
13614 I386_MAX_REGISTER_SIZE.
13615 (i386_pseudo_register_write): Likewise.
13616 (i386_process_record): Likewise.
13617 * i387-tdep.c (i387_supply_xsave): Likewise.
13618 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
13619 (store_register): Likewise.
13620
14bc53a8
PA
136212017-02-23 Pedro Alves <palves@redhat.com>
13622
13623 * ada-lang.c: Include "common/function-view.h".
13624 (ada_iterate_over_symbols): Adjust to use function_view as
13625 callback type.
13626 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
13627 (ada_make_symbol_completion_list): Use a lambda.
13628 (ada_exc_search_name_matches): Delete.
13629 (name_matches_regex): New.
13630 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
13631 * compile/compile-c-support.c: Include "common/function-view.h".
13632 (print_one_macro): Change prototype to accept a ui_file pointer.
13633 (write_macro_definitions): Use a lambda.
13634 * dwarf2read.c: Include "common/function-view.h".
13635 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
13636 (dw2_expand_symtabs_matching): Adjust to use function_view as
13637 callback type.
13638 * language.h: Include "common/function-view.h".
13639 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
13640 function_view as callback type.
13641 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
13642 * linespec.c: Include "common/function-view.h".
13643 (collect_info::add_symbol): New method.
13644 (struct symbol_and_data_callback, iterate_inline_only, struct
13645 symbol_matcher_data, iterate_name_matcher): Delete.
13646 (iterate_over_all_matching_symtabs): Adjust to use function_view
13647 as callback type and lambdas.
13648 (iterate_over_file_blocks): Adjust to use function_view as
13649 callback type.
13650 (decode_compound_collector): Now a class with private fields.
13651 (decode_compound_collector::release_symbols): New method.
13652 (collect_one_symbol): Rename to...
13653 (decode_compound_collector::operator()): ... this and adjust.
13654 (lookup_prefix_sym): decode_compound_collector construction bits
13655 move to decode_compound_collector ctor. Pass the
13656 decode_compound_collector object directly as callback. Remove
13657 cleanups and use decode_compound_collector::release_symbols
13658 instead.
13659 (symtab_collector): Now a class with private fields.
13660 (symtab_collector::release_symtabs): New method.
13661 (add_symtabs_to_list): Rename to...
13662 (symtab_collector::operator()): ... this and adjust.
13663 (collect_symtabs_from_filename): symtab_collector construction
13664 bits move to symtab_collector ctor. Pass the symtab_collector
13665 object directly as callback. Remove cleanups and use
13666 symtab_collector::release_symtabs instead.
13667 (collect_symbols): Delete.
13668 (add_matching_symbols_to_info): Use lambdas.
13669 * macrocmd.c (print_macro_callback): Delete.
13670 (info_macro_command): Use a lambda.
13671 (info_macros_command): Pass print_macro_definition as callable
13672 directly.
13673 (print_one_macro): Remove 'ignore' parameter.
13674 (macro_list_command): Adjust.
13675 * macrotab.c (macro_for_each_data::fn): Now a function_view.
13676 (macro_for_each_data::user_data): Delete field.
13677 (foreach_macro): Adjust to call the function_view.
13678 (macro_for_each): Adjust to use function_view as callback type.
13679 (foreach_macro_in_scope): Adjust to call the function_view.
13680 (macro_for_each_in_scope): Adjust to use function_view as callback
13681 type.
13682 * macrotab.h: Include "common/function-view.h".
13683 (macro_callback_fn): Declare a prototype instead of a pointer.
13684 Remove "user_data" parameter.
13685 (macro_for_each, macro_for_each_in_scope): Adjust to use
13686 function_view as callback type.
13687 * psymtab.c (partial_map_expand_apply)
13688 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
13689 Adjust to use function_view as callback type and to return bool.
13690 (psym_expand_symtabs_matching): Adjust to use function_view as
13691 callback types.
13692 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
13693 to use function_view as callback type and to return bool.
13694 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
13695 callback types.
13696 * symfile.c (expand_symtabs_matching): Adjust to use function_view
13697 as callback types.
13698 * symfile.h: Include "common/function-view.h".
13699 (expand_symtabs_file_matcher_ftype)
13700 (expand_symtabs_symbol_matcher_ftype)
13701 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
13702 return bool.
13703 (quick_symbol_functions::map_symtabs_matching_filename)
13704 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
13705 function_view as callback type and return bool.
13706 (expand_symtabs_matching): Adjust to use function_view as callback
13707 type.
13708 (maintenance_expand_name_matcher)
13709 (maintenance_expand_file_matcher): Delete.
13710 (maintenance_expand_symtabs): Use lambdas.
13711 * symtab.c (iterate_over_some_symtabs): Adjust to use
13712 function_view as callback types and return bool.
13713 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
13714 of a cleanup.
13715 (lookup_symtab_callback): Delete.
13716 (lookup_symtab): Use a lambda.
13717 (iterate_over_symbols): Adjust to use function_view as callback
13718 type.
13719 (struct search_symbols_data, search_symbols_file_matches)
13720 (search_symbols_name_matches): Delete.
13721 (search_symbols): Use a pair of lambdas.
13722 (struct add_name_data, add_macro_name, symbol_completion_matcher)
13723 (symtab_expansion_callback): Delete.
13724 (default_make_symbol_completion_list_break_on_1): Use lambdas.
13725 * symtab.h: Include "common/function-view.h".
13726 (iterate_over_some_symtabs): Adjust to use function_view as
13727 callback type and return bool.
13728 (iterate_over_symtabs): Adjust to use function_view as callback
13729 type.
13730 (symbol_found_callback_ftype): Remove 'data' parameter and return
13731 bool.
13732 (iterate_over_symbols): Adjust to use function_view as callback
13733 type.
13734
07e253aa
PA
137352017-02-23 Pedro Alves <palves@redhat.com>
13736
13737 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
13738 (%.o) <unittests/%.c>: New pattern.
13739 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
13740 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
13741 * common/function-view.h: New file.
13742 * unittests/function-view-selftests.c: New file.
13743 * configure: Regenerate.
13744
8eaf5320
SM
137452017-02-23 Simon Marchi <simon.marchi@ericsson.com>
13746
13747 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
13748 inferior_ptid.
13749 * go32-nat.c (go32_thread_alive): Likewise.
13750
38768751
YQ
137512017-02-23 Yao Qi <yao.qi@linaro.org>
13752
13753 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
13754 delete.
13755
0a8beaba
YQ
137562017-02-23 Yao Qi <yao.qi@linaro.org>
13757
13758 * varobj.c (varobj_clear_saved_item): Use delete instead of
13759 xfree.
13760 (update_dynamic_varobj_children): Likewise.
13761
58fdfd2c
JK
137622017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13763
13764 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
13765
1b90b139
SM
137662017-02-21 Simon Marchi <simon.marchi@ericsson.com>
13767
13768 * common/enum-flags.h (enum_flags::enum_flags): Initialize
13769 m_enum_value to 0 in default constructor.
13770
2039d74e
EBM
137712017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13772
13773 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
13774 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
13775 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
13776 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
13777 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
13778 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
13779 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
13780 IS_STORE_CONDITIONAL_INSN.
13781
7814882a
JK
137822017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13783
13784 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
13785
0ae60b63
JK
137862017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13787
13788 * NEWS (Changes since GDB 7.12): Add DWARF-5.
13789
0224619f
JK
137902017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13791
13792 * dwarf2read.c (skip_one_die, read_attribute_value)
13793 (dwarf2_const_value_attr, dump_die_shallow)
13794 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
13795 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
13796
0af92d60
JK
137972017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13798
13799 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
13800 (dwarf_parse_macro_header): Accept DWARF version 5.
13801 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
13802
216f72a1
JK
138032017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13804
13805 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
13806 DW_AT_GNU_*.
13807 * common/common-exceptions.h (enum errors): Likewise.
13808 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
13809 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
13810 (dwarf_expr_context::execute_stack_op): Likewise.
13811 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
13812 Likewise.
13813 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
13814 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13815 (show_entry_values_debug, call_site_to_target_addr)
13816 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
13817 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
13818 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
13819 (value_of_dwarf_block_entry, indirect_pieced_value)
13820 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
13821 (disassemble_dwarf_expression): Likewise.
13822 * dwarf2read.c (process_die, inherit_abstract_dies)
13823 (read_call_site_scope): Likewise.
13824 * gdbtypes.h (struct func_type, struct call_site_parameter)
13825 (struct call_site): Likewise.
13826 * stack.c (read_frame_arg): Likewise.
13827 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
13828
43988095
JK
138292017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13830
13831 * defs.h (read_unsigned_leb128): New declaration.
13832 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
13833 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
13834 (dwarf2_find_location_expression): Call also
13835 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
13836 * dwarf2loc.h (dwarf2_version): New declaration.
13837 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
13838 rnglists.
13839 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
13840 .debug_rnglists.
13841 (struct dwop_section_names): Add loclists_dwo.
13842 (dwop_section_names): Add .debug_loclists.dwo.
13843 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
13844 (struct dwarf2_per_cu_data): Add dwarf_version.
13845 (struct dwo_sections): Add loclists.
13846 (struct attr_abbrev): Add implicit_const.
13847 (read_indirect_line_string): New declaration.
13848 (read_unsigned_leb128): Delete declaration.
13849 (rcuh_kind): New definition.
13850 (read_and_check_comp_unit_head): Change parameter
13851 is_debug_types_section to section_kind.
13852 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
13853 (read_comp_unit_head): Change parameter abfd to section, add parameter
13854 section_kind. Handle DWARF-5.
13855 (error_check_comp_unit_head): Accept also DWARF version 5.
13856 (read_and_check_comp_unit_head): Change parameter
13857 is_debug_types_section to section_kind.
13858 (read_and_check_type_unit_head): Delete function.
13859 (read_abbrev_offset): Handle DWARF-5.
13860 (create_debug_type_hash_table): Add parameter section_kind. Process
13861 only DW_UT_type. Use signature and type_offset_in_tu from struct
13862 comp_unit_head.
13863 (create_debug_types_hash_table): Update create_debug_type_hash_table
13864 caller.
13865 (create_all_type_units): Call create_debug_type_hash_table.
13866 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
13867 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
13868 caller.
13869 (skip_one_die): Handle DW_FORM_implicit_const.
13870 (dwarf2_rnglists_process): New function.
13871 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
13872 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
13873 (read_attribute_value): Handle DW_FORM_implicit_const,
13874 DW_FORM_line_strp.
13875 (read_attribute): Handle DW_FORM_implicit_const.
13876 (read_indirect_string_at_offset_from): New function from
13877 read_indirect_string_at_offset.
13878 (read_indirect_string_at_offset): Call
13879 read_indirect_string_at_offset_from.
13880 (read_indirect_line_string_at_offset): New function.
13881 (read_indirect_string): New function comment.
13882 (read_indirect_line_string): New function.
13883 (read_unsigned_leb128): Make it global.
13884 (dwarf2_string_attr): Handle DWARF-5.
13885 (add_include_dir_stub, read_formatted_entries): New functions.
13886 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
13887 Handle DWARF-5.
13888 (per_cu_header_read_in): Update read_comp_unit_head caller.
13889 (dwarf2_version): New function.
13890 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
13891 rnglists.
13892 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
13893 fields.
13894
22d2f3ab
JK
138952017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13896
13897 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
13898
5f46c5a5
JK
138992017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13900
13901 * dwarf2read.c (dwarf2_ranges_process): New function from
13902 dwarf2_ranges_read.
13903 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
13904 dwarf2_ranges_process.
13905
78d4d2c5
JK
139062017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13907
13908 * dwarf2read.c (create_debug_type_hash_table): New function from
13909 create_debug_types_hash_table.
13910 (create_debug_types_hash_table): Call create_debug_type_hash_table.
13911 (create_all_type_units, open_and_init_dwo_file): Update
13912 create_debug_types_hash_table callers.
13913
1b076f25
SDJ
139142017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13915
13916 PR gdb/16188
13917 * fork-child.c (trace_start_error): Fix thinko. va_end should
13918 refer to 'ap', not 'args'.
13919
0db8980c
SDJ
139202017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13921 Pedro Alves <palves@redhat.com>
13922
13923 PR gdb/16188
13924 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
13925 calls succeeded.
13926 * fork-child.c (trace_start_error): New function.
13927 (trace_start_error_with_name): Likewise.
13928 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
13929 * inf-ptrace.c (inf_ptrace_me): Likewise.
13930 * inferior.h (trace_start_error): New prototype.
13931 (trace_start_error_with_name): Likewise.
13932
99e8a4f9
SDJ
139332017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
13934
13935 PR gdb/21164
13936 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
13937 NULL before using it.
13938 * symmisc.c (maintenance_print_symbols): Likewise.
13939 (maintenance_print_msymbols): Likewise.
13940
4e746bb6
TW
139412017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13942
13943 * NEWS: Add record Python bindings entry.
13944
139452017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13946
13947 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
13948 py-record-full.o.
13949 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
13950 * python/py-record-btrace.c, python/py-record-btrace.h,
13951 python/py-record-full.c, python/py-record-full.h: New file.
13952 * python/py-record.c: Add include for py-record-btrace.h and
13953 py-record-full.h.
13954 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
13955 recpy_instruction_history, recpy_function_call_history, recpy_begin,
13956 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
13957 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
13958 New definition.
13959 (gdbpy_initialize_btrace): New export.
13960 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
13961
139622017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13963
13964 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
13965 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
13966 * python/py-record.c: New file.
13967 * python/python-internal.h (gdbpy_start_recording,
13968 gdbpy_current_recording, gdpy_stop_recording,
13969 gdbpy_initialize_record): New export.
13970 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
13971 (python_GdbMethods): Add gdbpy_start_recording,
13972 gdbpy_current_recording and gdbpy_stop_recording.
13973
139742017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13975
13976 * record-btrace.c (record_btrace_record_method): New function.
13977 (init_record_btrace_ops): Initialize to_record_method.
13978 * record-full.c (record_full_record_method): New function.
13979 (init_record_full_ops, init_record_full_core_ops): Add
13980 record_full_record_method.
13981 * record.h (enum record_method): New enum.
13982 * target-debug.h (target_debug_print_enum_record_method: New define.
13983 * target-delegates.c: Regenerate.
13984 * target.c (target_record_method): New function.
13985 * target.h: Include record.h.
13986 (struct target_ops) <to_record_method>: New field.
13987 (target_record_method): New export.
13988
139892017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13990
13991 * record.h (record_start, record_stop): New export.
13992 * record.c (record_start, record_stop): New function.
13993
139942017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13995
13996 * btrace.c (btrace_fetch): Copy function call segments pointer
13997 into a vector.
13998 (btrace_clear): Clear the vector.
13999 (btrace_find_insn_by_number): Use binary search to find the correct
14000 function call segment.
14001 * btrace.h (brace_fun_p): New typedef.
14002 (struct btrace_thread_info) <functions>: New field.
14003
140042017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14005
14006 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
14007 * btrace.c (btrace_decode_error): ... here. New function.
14008 * btrace.h (btrace_decode_error): New export.
14009
140102017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14011
14012 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
14013 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
14014 btrace_find_insn_by_number): Remove special case for gaps.
14015 * btrace.h (btrace_insn_get_error): New export.
14016 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
14017 * record-btrace.c (btrace_insn_history): Print number for gaps.
14018 (record_btrace_info, record_btrace_goto): Handle gaps.
14019
3f77c769
TT
140202017-02-14 Tom Tromey <tom@tromey.com>
14021
14022 PR python/13598:
14023 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
14024 event.
14025 * python/py-evts.c (gdbpy_initialize_py_events): Add
14026 before_prompt registry.
14027 * python/py-events.h (events_object) <before_prompt>: New field.
14028
4c2c7ac6
MM
140292017-02-14 Markus Metzger <markus.t.metzger@intel.com>
14030
14031 * btrace.c (ftrace_new_switch): Preserve up link and flags.
14032
5cf30ebf
LM
140332017-02-13 Luis Machado <lgustavo@codesourcery.com>
14034
14035 * symfile (_initialize_symfile): Add usage text to the load command's
14036 help text.
14037
26a06916
SM
140382017-02-10 Simon Marchi <simon.marchi@ericsson.com>
14039
14040 * utils.c (defaulted_query): Don't query on secondary UIs.
14041
0b145e37
TT
140422017-02-10 Tom Tromey <tom@tromey.com>
14043
14044 * rust-lang.c (rust_get_disr_info): Remove unused variable.
14045
2d8365c4
TT
140462017-02-10 Tom Tromey <tom@tromey.com>
14047
14048 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
14049 "cleanup" local.
14050 * python/py-type.c (typy_legacy_template_argument): Remove
14051 unnecessary "cleanup" local.
14052
2bb8f231
TT
140532017-02-10 Tom Tromey <tom@tromey.com>
14054
14055 * python/python.c (do_start_initialization): New function, from
14056 _initialize_python.
14057 (_initialize_python): Call do_start_initialization.
14058 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
14059 goto.
14060
1bdfaf42
TT
140612017-02-10 Tom Tromey <tom@tromey.com>
14062
14063 * python/py-prettyprint.c (pretty_print_one_value): Use
14064 gdbpy_ref.
14065
88b6faea
TT
140662017-02-10 Tom Tromey <tom@tromey.com>
14067
14068 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
14069 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
14070 gdbpy_ref.
14071 * python/py-type.c (field_new): Use gdbpy_ref.
14072 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
14073 gdbpy_ref.
14074 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
14075 (py_free_pspace): Likewise.
14076 (pspace_to_pspace_object): Likewise.
14077 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
14078 (py_free_objfile): Likewise.
14079 (objfile_to_objfile_object): Likewise.
14080 * python/py-inferior.c (delete_thread_object): Use
14081 gdbpy_ref.
14082 (infpy_read_memory): Likewise.
14083 (py_free_inferior): Likewise.
14084 * python/py-evtregistry.c (create_eventregistry_object): Use
14085 gdbpy_ref.
14086 * python/py-event.c (create_event_object): Use gdbpy_ref.
14087
7780f186
TT
140882017-02-10 Tom Tromey <tom@tromey.com>
14089
14090 * python/py-ref.h (gdbpy_ref_policy): Now a template.
14091 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
14092 used.
14093 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
14094 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
14095 python/py-exitedevent.c, python/py-finishbreakpoint.c,
14096 python/py-framefilter.c, python/py-function.c,
14097 python/py-inferior.c, python/py-infevents.c,
14098 python/py-linetable.c, python/py-newobjfileevent.c,
14099 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
14100 python/py-signalevent.c, python/py-stopevent.c,
14101 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
14102 python/py-unwind.c, python/py-utils.c, python/py-value.c,
14103 python/py-varobj.c, python/py-xmethods.c, python/python.c,
14104 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
14105
d4b0bb18
TT
141062017-02-10 Tom Tromey <tom@tromey.com>
14107
14108 * ui-out.h (ui_out_emit_type): New class.
14109 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
14110 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
14111 and ui_out_emit_tuple.
14112 (enumerate_locals): Likewise.
14113 (py_mi_print_variables, py_print_locals, py_print_args): Use
14114 ui_out_emit_list.
14115 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
14116 ui_out_emit_list.
14117 * common/gdb_optional.h: New file.
14118
f67f945c
MG
141192017-02-10 Martin Galvan <martingalvan@sourceware.org>
14120
14121 * MAINTAINERS (Write After Approval): Update my e-mail address.
14122
18da0c51
MG
141232017-02-10 Martin Galvan <martingalvan@sourceware.org>
14124
14125 PR gdb/21122
14126 * breakpoint.c (_initialize_breakpoint): Update the help description
14127 of the 'commands' command to indicate that it takes a list argument.
14128
62c14536
SM
141292017-02-09 Simon Marchi <simon.marchi@ericsson.com>
14130
14131 * interps.c (current_interp_set_logging): Remove "return".
14132
ff6fa247
GB
141332017-02-09 Gary Benson <gbenson@redhat.com>
14134
14135 * symtab.c (add_symtab_completions): Prevent NULL pointer
14136 dereference.
14137
a474bd8e
PA
141382017-02-08 Pedro Alves <palves@redhat.com>
14139
14140 * interps.c (interp::interp): Remove reference to quiet_p.
14141 (interp_set): Make static. Remove dead "Switching to" output
14142 code.
14143 (interp_quiet_p, interp_set_quiet): Delete.
14144 (interpreter_exec_cmd): Don't set the interpreter quiet.
14145 * interps.h (interp_quiet_p): Make static.
14146 (class interp) <quiet_p>: Remove field
14147
3d7b173c
JG
141482017-02-08 Jerome Guitton <guitton@adacore.com>
14149
604c4576
JG
14150 * cli/cli-decode.c (find_command_name_length): Make it extern.
14151 * cli/cli-decode.h (find_command_name_length): Declare.
14152 * cli/cli-script.c (command_name_equals, line_first_arg):
14153 New functions.
14154 (process_next_line): Use cli-decode to parse command names.
14155 (build_command_line): Make args a constant pointer.
14156
141572017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 14158
3d7b173c
JG
14159 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
14160 Remove case-insensitive search.
14161
1291063d
JM
141622017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
14163
14164 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
14165 at the end of the line. Avoids an ARI warning.
14166
20b477a7
LM
141672017-02-06 Luis Machado <lgustavo@codesourcery.com>
14168
14169 * NEWS: Mention support for record/replay of Intel 64 rdrand and
14170 rdseed instructions.
14171 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
14172
3f7b46f2
IR
141732017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
14174
14175 PR tdep/20936
14176 Provide and use sparc32 and sparc64 target description XML files.
14177 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
14178 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
14179 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
14180 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
14181 * features/sparc/sparc32-solaris.xml: New file.
14182 * features/sparc/sparc64-solaris.xml: New file.
14183 * features/sparc/sparc32-solaris.c: Generated.
14184 * features/sparc/sparc64-solaris.c: Generated.
14185 * sparc-tdep.h: Account for differences in target descriptions.
14186 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
14187 (sparc32_register_type): Use target provided registers.
14188 (validate_tdesc_registers): New function.
14189 (sparc32_gdbarch_init): Use tdesc_has_registers.
14190 Set pseudoregister functions.
14191 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
14192 (sparc64_register_type): Use target provided registers.
14193 (sparc64_init_abi): Set pseudoregister functions.
14194
f0fd41c1
TT
141952017-02-03 Tom Tromey <tom@tromey.com>
14196
14197 PR rust/21097:
14198 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
14199 with a single member.
14200
d6f9b0fb
PA
142012017-02-03 Pedro Alves <palves@redhat.com>
14202
14203 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
14204 (cli_interp_base::~cli_interp_base): New.
14205 (cli_interp): New struct.
14206 (as_cli_interp): Cast the interp itself to cli_interp.
14207 (cli_interpreter_pre_command_loop): Rename to ...
14208 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
14209 parameter.
14210 (cli_interpreter_init): Rename to ...
14211 (cli_interp::init): ... this. Remove 'self' parameter. Use
14212 boolean. Make extern.
14213 (cli_interpreter_resume): Rename to ...
14214 (cli_interp::resume): ... this. Remove 'data' parameter. Make
14215 extern.
14216 (cli_interpreter_suspend): Rename to ...
14217 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
14218 extern.
14219 (cli_interpreter_exec): Rename to ...
14220 (cli_interp::exec): ... this. Remove 'data' parameter. Make
14221 extern.
14222 (cli_interpreter_supports_command_editing): Rename to ...
14223 (cli_interp_base::supports_command_editing): ... this. Remove
14224 'interp' parameter. Make extern.
14225 (cli_ui_out): Rename to ...
14226 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
14227 Make extern.
14228 (cli_set_logging): Rename to ...
14229 (cli_interp_base::set_logging): ... this. Remove 'interp'
14230 parameter. Make extern.
14231 (cli_interp_procs): Delete.
14232 (cli_interp_factory): Adjust to use "new".
14233 * cli/cli-interp.h: Include "interps.h".
14234 (struct cli_interp_base): New struct.
14235 * interps.c (struct interp): Delete. Fields moved to interps.h.
14236 (interp_new): Delete.
14237 (interp::interp, interp::~interp): New.
14238 (interp_set): Use bool, and return void. Assume the interpreter
14239 has suspend, init and resume methods, and that the all return
14240 void.
14241 (set_top_level_interpreter): interp_set returns void.
14242 (interp_ui_out): Adapt.
14243 (current_interp_set_logging): Adapt.
14244 (interp_data): Delete.
14245 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
14246 (interp_exec): Adapt.
14247 (top_level_interpreter_data): Delete.
14248 * interps.h (interp_init_ftype, interp_resume_ftype)
14249 (interp_suspend_ftype, interp_exec_ftype)
14250 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
14251 (class interp): New.
14252 (interp_new): Delete.
14253 (interp_set): Now returns void. Use bool.
14254 (interp_data, top_level_interpreter_data): Delete.
14255 * mi/mi-common.h: Include interps.h.
14256 (class mi_interp): Inherit from interp. Define a ctor. Declare
14257 init, resume, suspect, exec, interp_ui_out, set_logging and
14258 pre_command_loop methods.
14259 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
14260 (mi_interpreter_init): Rename to ...
14261 (mi_interp::init): ... this. Remove the 'interp' parameter, use
14262 bool, return void and make extern. Adjust.
14263 (mi_interpreter_resume): ... Rename to ...
14264 (mi_interp::resume): ... this. Remove the 'data' parameter,
14265 return void and make extern. Adjust.
14266 (mi_interpreter_suspend): ... Rename to ...
14267 (mi_interp::suspend): ... this. Remove the 'data' parameter,
14268 return void and make extern. Adjust.
14269 (mi_interpreter_exec): ... Rename to ...
14270 (mi_interp::exec): ... this. Remove the 'data' parameter and make
14271 extern. Adjust.
14272 (mi_interpreter_pre_command_loop): ... Rename to ...
14273 (mi_interp::pre_command_loop): ... this. Remove the 'self'
14274 parameter and make extern.
14275 (mi_on_normal_stop_1): Adjust.
14276 (mi_ui_out): Rename to ...
14277 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
14278 parameter and make extern. Adjust.
14279 (mi_set_logging): Rename to ...
14280 (mi_interp::set_logging): ... this. Remove the 'interp'
14281 parameter and make extern. Adjust.
14282 (mi_interp_procs): Delete.
14283 (mi_interp_factory): Adjust to use 'new'.
14284 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
14285 (mi_print_exception, mi_execute_command, mi_load_progress):
14286 Adjust.
14287 * tui/tui-interp.c (tui_interp): New class.
14288 (as_tui_interp): Return a tui_interp pointer.
14289 (tui_on_normal_stop, tui_on_signal_received)
14290 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
14291 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
14292 to use interp::interp_ui_out.
14293 (tui_init): Rename to ...
14294 (tui_interp::init): ... this. Remove the 'self' parameter, use
14295 bool, return void and make extern. Adjust.
14296 (tui_resume): Rename to ...
14297 (tui_interp::resume): ... this. Remove the 'data' parameter,
14298 return void and make extern. Adjust.
14299 (tui_suspend): Rename to ...
14300 (tui_interp::suspend): ... this. Remove the 'data' parameter,
14301 return void and make extern. Adjust.
14302 (tui_ui_out): Rename to ...
14303 (tui_interp::interp_ui_out): ... this. Remove the 'self'
14304 parameter, and make extern. Adjust.
14305 (tui_exec): Rename to ...
14306 (tui_interp::exec): ... this. Remove the 'data' parameter and
14307 make extern.
14308 (tui_interp_procs): Delete.
14309 (tui_interp_factory): Use "new".
14310
65c40c95
TT
143112017-02-02 Tom Tromey <tom@tromey.com>
14312
14313 * rust-exp.y (ends_raw_string, space_then_number)
14314 (rust_identifier_start_p): Return bool.
14315 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
14316 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
14317 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
14318 (rust_chartype_p): Return bool.
14319 (val_print_struct, rust_print_struct_def, rust_print_type):
14320 Update.
14321 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
14322 Return bool.
14323
b50f188d
TT
143242017-02-02 Tom Tromey <tom@tromey.com>
14325
14326 * rust-lang.c: Reindent.
14327
03c85b11
TT
143282017-02-02 Tom Tromey <tom@tromey.com>
14329
14330 * rust-lang.h (rust_crate_for_block): Update.
14331 * rust-lang.c (rust_crate_for_block): Return std::string.
14332 (rust_get_disr_info): Use std:;string, not
14333 gdb::unique_xmalloc_ptr.
14334 * rust-exp.y (crate_name): Update.
14335
9b6da501
PA
143362017-02-02 Pedro Alves <palves@redhat.com>
14337
14338 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
14339 field out of gdb_disassembler_test and make it static.
14340
ec4cb20b
PA
143412017-02-02 Pedro Alves <palves@redhat.com>
14342
14343 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
14344 mi1_interp and mi_interp fields.
14345
5be5dbf0
PA
143462017-02-02 Pedro Alves <palves@redhat.com>
14347
616268b6
PA
14348 * cli/cli-interp.c (struct saved_output_files, saved_output):
14349 Moved from cli/cli-logging.c.
14350 (cli_set_logging): New function.
14351 (cli_interp_procs): Install cli_set_logging.
14352 * cli/cli-interp.h (make_logging_output, cli_set_logging):
14353 Declare.
14354 * cli/cli-logging.c (struct saved_output_files, saved_output):
14355 Moved to cli/cli-interp.c.
14356 (pop_output_files): Don't save outputs here.
14357 (make_logging_output): New function.
14358 (handle_redirections): Don't build tee nor save previous outputs
14359 here.
14360 * interps.c (current_interp_set_logging): Change prototype.
14361 Assume there's always a set_logging_proc method installed.
14362 * interps.h (interp_set_logging_ftype): Change prototype.
14363 (current_interp_set_logging): Change prototype and adjust comment.
14364 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
14365 use make_logging_output.
14366 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
143672017-02-02 Pedro Alves <palves@redhat.com>
14368
5be5dbf0
PA
14369 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
14370 from ...
14371 (set_logging_overwrite): ... here.
14372 (logging_no_redirect_file): Delete.
14373 (set_logging_redirect): Don't handle redirection on the fly.
14374 Instead warn that "logging off" / "logging on" is necessary.
14375 (pop_output_files): Delete references to logging_no_redirect_file.
14376 (show_logging_command): Always speak in terms of what will happen
14377 once logging is reenabled.
14378
c99cc448
PA
143792017-02-02 Pedro Alves <palves@redhat.com>
14380
14381 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
14382
8b172ce7
PA
143832017-02-02 Pedro Alves <palves@redhat.com>
14384
14385 * disasm.c (gdb_pretty_print_insn): Rename to ...
14386 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
14387 Remove gdbarch parameter. Adapt to clear the object's buffers
14388 instead of allocating new buffers, and to print using the object's
14389 gdb_disassembler instead of calling gdb_print_insn.
14390 (dump_insns): Use gdb_pretty_print_disassembler.
14391 * disasm.h (gdb_pretty_print_insn): Delete declaration.
14392 (gdb_pretty_print_disassembler): New class.
14393 * record-btrace.c (btrace_insn_history): Use
14394 gdb_pretty_print_disassembler.
14395
d7e74731
PA
143962017-02-02 Pedro Alves <palves@redhat.com>
14397
14398 * ada-lang.c (type_as_string): Use string_file.
14399 * ada-valprint.c (ada_print_floating): Use string_file.
14400 * ada-varobj.c (ada_varobj_scalar_image)
14401 (ada_varobj_get_value_image): Use string_file.
14402 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
14403 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
14404 * breakpoint.c (update_inserted_breakpoint_locations)
14405 (insert_breakpoint_locations, reattach_breakpoints)
14406 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
14407 (print_it_watchpoint): Use string_file.
14408 (save_breakpoints): Use stdio_file.
14409 * c-exp.y (oper): Use string_file.
14410 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
14411 tee_file.
14412 (pop_output_files): Use delete.
14413 (handle_redirections): Use stdio_file and tee_file.
14414 * cli/cli-setshow.c (do_show_command): Use string_file.
14415 * compile/compile-c-support.c (c_compute_program): Use
14416 string_file.
14417 * compile/compile-c-symbols.c (generate_vla_size): Take a
14418 'string_file &' instead of a 'ui_file *'.
14419 (generate_c_for_for_one_variable): Take a 'string_file &' instead
14420 of a 'ui_file *'. Use string_file.
14421 (generate_c_for_variable_locations): Take a 'string_file &'
14422 instead of a 'ui_file *'.
14423 * compile/compile-internal.h (generate_c_for_for_one_variable):
14424 Take a 'string_file &' instead of a 'ui_file *'.
14425 * compile/compile-loc2c.c (push, pushf, unary, binary)
14426 (print_label, pushf_register_address, pushf_register)
14427 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
14428 'ui_file *'. Adjust.
14429 * compile/compile.c (compile_to_object): Use string_file.
14430 * compile/compile.h (compile_dwarf_expr_to_c)
14431 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
14432 'ui_file *'.
14433 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
14434 (replace_typedefs_qualified_name): Use string_file and
14435 obstack_copy0.
14436 * disasm.c (gdb_pretty_print_insn): Use string_file.
14437 (gdb_disassembly): Adjust reference the null_stream global.
14438 (do_ui_file_delete): Delete.
14439 (gdb_insn_length): Use null_stream.
14440 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
14441 * dwarf2loc.c (dwarf2_compile_property_to_c)
14442 (locexpr_generate_c_location, loclist_generate_c_location): Take a
14443 'string_file &' instead of a 'ui_file *'.
14444 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
14445 * dwarf2read.c (do_ui_file_peek_last): Delete.
14446 (dwarf2_compute_name): Use string_file.
14447 * event-top.c (gdb_setup_readline): Use stdio_file.
14448 * gdbarch.sh (verify_gdbarch): Use string_file.
14449 * gdbtypes.c (safe_parse_type): Use null_stream.
14450 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
14451 string_file.
14452 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
14453 'string_file *' instead of a 'ui_file *'.
14454 (gdbscm_arch_disassemble): Use string_file.
14455 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
14456 * guile/scm-ports.c (class ioscm_file_port): Now a class that
14457 inherits from ui_file.
14458 (ioscm_file_port_delete, ioscm_file_port_rewind)
14459 (ioscm_file_port_put): Delete.
14460 (ioscm_file_port_write): Rename to ...
14461 (ioscm_file_port::write): ... this. Remove file_port_magic
14462 checks.
14463 (ioscm_file_port_new): Delete.
14464 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
14465 ui_file_up.
14466 * guile/scm-type.c (tyscm_type_name): Use string_file.
14467 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
14468 Use string_file.
14469 * infcmd.c (print_return_value_1): Use string_file.
14470 * infrun.c (print_target_wait_results): Use string_file.
14471 * language.c (add_language): Use string_file.
14472 * location.c (explicit_to_string_internal): Use string_file.
14473 * main.c (captured_main_1): Use null_file.
14474 * maint.c (maintenance_print_architecture): Use stdio_file.
14475 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
14476 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
14477 event_channel>: Change type to mi_console_file pointer.
14478 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
14479 (mi_console_file_delete): Delete.
14480 (struct mi_console_file): Delete.
14481 (mi_console_file_magic): Delete.
14482 (mi_console_file_new): Delete.
14483 (mi_console_file::mi_console_file): New.
14484 (mi_console_file_delete): Delete.
14485 (mi_console_file_fputs): Delete.
14486 (mi_console_file::write): New.
14487 (mi_console_raw_packet): Delete.
14488 (mi_console_file::flush): New.
14489 (mi_console_file_flush): Delete.
14490 (mi_console_set_raw): Rename to ...
14491 (mi_console_file::set_raw): ... this.
14492 * mi/mi-console.h (class mi_console_file): New class.
14493 (mi_console_file_new, mi_console_set_raw): Delete.
14494 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
14495 (mi_set_logging): Use delete and tee_file. Adjust.
14496 * mi/mi-main.c (output_register): Use string_file.
14497 (mi_cmd_data_evaluate_expression): Use string_file.
14498 (mi_cmd_data_read_memory): Use string_file.
14499 (mi_cmd_execute, print_variable_or_computed): Use string_file.
14500 * mi/mi-out.c (mi_ui_out::main_stream): New.
14501 (mi_ui_out::rewind): Use main_stream and
14502 string_file.
14503 (mi_ui_out::put): Use main_stream and string_file.
14504 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
14505 Allocate a 'string_file' instead.
14506 (mi_out_new): Don't allocate a mem_fileopen stream here.
14507 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
14508 (mi_ui_out::main_stream): Declare method.
14509 * printcmd.c (eval_command): Use string_file.
14510 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
14511 * python/py-arch.c (archpy_disassemble): Use string_file.
14512 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
14513 * python/py-frame.c (frapy_str): Use string_file.
14514 * python/py-framefilter.c (py_print_type, py_print_single_arg):
14515 Use string_file.
14516 * python/py-type.c (typy_str): Use string_file.
14517 * python/py-unwind.c (unwind_infopy_str): Use string_file.
14518 * python/py-value.c (valpy_str): Use string_file.
14519 * record-btrace.c (btrace_insn_history): Use string_file.
14520 * regcache.c (regcache_print): Use stdio_file.
14521 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
14522 * remote.c (escape_buffer): Use string_file.
14523 * rust-lang.c (rust_get_disr_info): Use string_file.
14524 * serial.c (serial_open_ops_1): Use stdio_file.
14525 (do_serial_close): Use delete.
14526 * stack.c (print_frame_arg): Use string_file.
14527 (print_frame_args): Remove local mem_fileopen stream, not used.
14528 (print_frame): Use string_file.
14529 * symmisc.c (maintenance_print_symbols): Use stdio_file.
14530 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
14531 Take a 'string_file *' instead of a 'ui_file *'.
14532 * top.c (new_ui): Use stdio_file and stderr_file.
14533 (free_ui): Use delete.
14534 (execute_command_to_string): Use string_file.
14535 (quit_confirm): Use string_file.
14536 * tracepoint.c (collection_list::append_exp): Use string_file.
14537 * tui/tui-disasm.c (tui_disassemble): Use string_file.
14538 * tui/tui-file.c: Don't include "ui-file.h".
14539 (enum streamtype, struct tui_stream): Delete.
14540 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
14541 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
14542 (tui_file::tui_file): New method.
14543 (tui_file_fputs): Delete.
14544 (tui_file_get_strbuf): Delete.
14545 (tui_file::puts): New method.
14546 (tui_file_adjust_strbuf): Delete.
14547 (tui_file_flush): Delete.
14548 (tui_file::flush): New method.
14549 * tui/tui-file.h: Tweak intro comment.
14550 Include ui-file.h.
14551 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
14552 (tui_file_adjust_strbuf): Delete declarations.
14553 (class tui_file): New class.
14554 * tui/tui-io.c (tui_initialize_io): Use tui_file.
14555 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
14556 (tui_register_format): Use string_stream.
14557 * tui/tui-stack.c (tui_make_status_line): Use string_file.
14558 (tui_get_function_from_frame): Use string_file.
14559 * typeprint.c (type_to_string): Use string_file.
14560 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
14561 (null_stream): New global.
14562 (ui_file_delete): Delete.
14563 (ui_file::ui_file): New.
14564 (null_file_isatty): Delete.
14565 (ui_file::~ui_file): New.
14566 (null_file_rewind): Delete.
14567 (ui_file::printf): New.
14568 (null_file_put): Delete.
14569 (null_file_flush): Delete.
14570 (ui_file::putstr): New.
14571 (null_file_write): Delete.
14572 (ui_file::putstrn): New.
14573 (null_file_read): Delete.
14574 (ui_file::putc): New.
14575 (null_file_fputs): Delete.
14576 (null_file_write_async_safe): Delete.
14577 (ui_file::vprintf): New.
14578 (null_file_delete): Delete.
14579 (null_file::write): New.
14580 (null_file_fseek): Delete.
14581 (null_file::puts): New.
14582 (ui_file_data): Delete.
14583 (null_file::write_async_safe): New.
14584 (gdb_flush, ui_file_isatty): Adjust.
14585 (ui_file_put, ui_file_rewind): Delete.
14586 (ui_file_write): Adjust.
14587 (ui_file_write_for_put): Delete.
14588 (ui_file_write_async_safe, ui_file_read): Adjust.
14589 (ui_file_fseek): Delete.
14590 (fputs_unfiltered): Adjust.
14591 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
14592 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
14593 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
14594 (set_ui_file_data): Delete.
14595 (string_file::~string_file, string_file::write)
14596 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
14597 (do_ui_file_as_string, ui_file_as_string): Delete.
14598 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
14599 (struct mem_file): Delete.
14600 (mem_file_new): Delete.
14601 (stdio_file::stdio_file): New.
14602 (mem_file_delete): Delete.
14603 (stdio_file::stdio_file): New.
14604 (mem_fileopen): Delete.
14605 (stdio_file::~stdio_file): New.
14606 (mem_file_rewind): Delete.
14607 (stdio_file::set_stream): New.
14608 (mem_file_put): Delete.
14609 (stdio_file::open): New.
14610 (mem_file_write): Delete.
14611 (stdio_file_magic, struct stdio_file): Delete.
14612 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
14613 (stdio_file::flush): New.
14614 (stdio_file_read): Rename to ...
14615 (stdio_file::read): ... this. Adjust.
14616 (stdio_file_write): Rename to ...
14617 (stdio_file::write): ... this. Adjust.
14618 (stdio_file_write_async_safe): Rename to ...
14619 (stdio_file::write_async_safe) ... this. Adjust.
14620 (stdio_file_fputs): Rename to ...
14621 (stdio_file::puts) ... this. Adjust.
14622 (stdio_file_isatty): Delete.
14623 (stdio_file_fseek): Delete.
14624 (stdio_file::isatty): New.
14625 (stderr_file_write): Rename to ...
14626 (stderr_file::write) ... this. Adjust.
14627 (stderr_file_fputs): Rename to ...
14628 (stderr_file::puts) ... this. Adjust.
14629 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
14630 (stderr_file::stderr_file): New.
14631 (tee_file_magic): Delete.
14632 (struct tee_file): Delete.
14633 (tee_file::tee_file): New.
14634 (tee_file_new): Delete.
14635 (tee_file::~tee_file): New.
14636 (tee_file_delete): Delete.
14637 (tee_file_flush): Rename to ...
14638 (tee_file::flush): ... this. Adjust.
14639 (tee_file_write): Rename to ...
14640 (tee_file::write): ... this. Adjust.
14641 (tee_file::write_async_safe): New.
14642 (tee_file_fputs): Rename to ...
14643 (tee_file::puts): ... this. Adjust.
14644 (tee_file_isatty): Rename to ...
14645 (tee_file::isatty): ... this. Adjust.
14646 * ui-file.h (struct obstack, struct ui_file): Don't
14647 forward-declare.
14648 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
14649 (ui_file_write_ftype)
14650 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
14651 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
14652 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
14653 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
14654 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
14655 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
14656 (set_ui_file_fseek): Delete.
14657 (ui_file_data, ui_file_delete, ui_file_rewind)
14658 (struct ui_file): New.
14659 (ui_file_up): New.
14660 (class null_file): New.
14661 (null_stream): Declare.
14662 (ui_file_write_for_put, ui_file_put): Delete.
14663 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
14664 Delete.
14665 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
14666 (gdb_fopen, tee_file_new): Delete.
14667 (struct string_file): New.
14668 (struct stdio_file): New.
14669 (stdio_file_up): New.
14670 (struct stderr_file): New.
14671 (class tee_file): New.
14672 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
14673 of a 'ui_file *'. Adjust.
14674 * ui-out.h (class ui_out) <field_stream>: Likewise.
14675 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
14676 (null_stream): Delete.
14677 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
14678 Adjust.
14679 * utils.h (struct ui_file): Delete forward declaration..
14680 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
14681 (error_stream): Take a 'string_file &' instead of a
14682 'ui_file *'.
14683 * varobj.c (varobj_value_get_print_value): Use string_file.
14684 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
14685 * gdbarch.c: Regenerate.
14686
187808b0
PA
146872017-02-02 Pedro Alves <palves@redhat.com>
14688
14689 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
14690 (gdb_pretty_print_insn): ... this. Now a free function. Add back
14691 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
14692 Adjust to call gdb_print_insn instead of
14693 gdb_disassembler::print_insn.
14694 (dump_insns, do_mixed_source_and_assembly_deprecated)
14695 (do_mixed_source_and_assembly, do_assembly_only): Add back a
14696 'gdbarch' parameter. Remove gdb_disassembler parameter.
14697 (gdb_disassembly): Don't allocate a gdb_disassembler here.
14698 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
14699 declaration.
14700 (gdb_pretty_print_insn): Re-add declaration.
14701 * record-btrace.c (btrace_insn_history): Don't allocate a
14702 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
14703
7a8eb317
SM
147042017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
14705
14706 * disasm.h (gdb_disassembly): Remove file_string parameter.
14707 * disasm.c (gdb_disassembly): Likewise.
14708 * cli/cli-cmds.c (print_disassembly): Adapt.
14709 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
14710 * stack.c (do_gdb_disassembly): Likewise.
14711
7346ef59
AA
147122017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
14713
14714 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
14715 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
14716 targets. And if the implicit value is longer than needed, extract
14717 the first bytes instead of the "least significant" ones.
14718
cd4007e4
MM
147192017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14720
14721 * btrace.c (btrace_enable): Do not call btrace_add_pc for
14722 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
14723 (btrace_fetch): Assert can_access_registers_ptid.
14724 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
14725 validate_registers_access.
14726
cf77c34e
MM
147272017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14728
14729 * gdbthread.h (can_access_registers_ptid): New.
14730 * thread.c (can_access_registers_ptid): New.
14731
be85ce7d
PA
147322017-02-01 Pedro Alves <palves@redhat.com>
14733
14734 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
14735
29b0b251
PA
147362017-01-31 Pedro Alves <palves@redhat.com>
14737
14738 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
14739 Fix typos.
14740
289b5b24
PA
147412017-01-31 Pedro Alves <palves@redhat.com>
14742
14743 * stack.c (print_frame_args): Remove local mem_fileopen stream,
14744 not used.
14745
b47413b4
PA
147462017-01-31 Pedro Alves <palves@redhat.com>
14747
14748 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
14749
60adb36c
PA
147502017-01-31 Pedro Alves <palves@redhat.com>
14751
14752 * common/scoped_restore.h
14753 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
14754 change the value's parameter type to T2.
14755 (make_scoped_restore): Likewise.
14756
2735833d
WT
147572017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14758 Richard Henderson <rth@redhat.com>
14759
14760 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
14761 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
14762 GS_BASE for older kernels.
14763 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
14764 GS_BASE for older kernels.
14765 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
14766 and GS_BASE to the offset table.
14767 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
14768 system register group.
14769 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
14770 for older kernels.
14771 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
14772 amd64 ABI.
14773 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
14774 AMD64_GSBASE_REGNUM.
14775 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
14776 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
14777 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
14778 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
14779 i386/64bit-segments.xml in those rules.
14780 * features/i386/64bit-segments.xml: New file.
14781 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
14782 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
14783 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
14784 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
14785 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
14786 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
14787 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
14788 * features/i386/amd64-avx-linux.c: Regenerated.
14789 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
14790 * features/i386/amd64-avx-mpx.c: Regenerated.
14791 * features/i386/amd64-avx512-linux.c: Regenerated.
14792 * features/i386/amd64-linux.c: Regenerated.
14793 * features/i386/amd64-mpx-linux.c: Regenerated.
14794 * features/i386/i386-avx-mpx-linux.c: Regenerated.
14795 * features/i386/i386-avx-mpx.c: Regenerated.
14796 * features/i386/x32-avx-linux.c: Regenerated.
14797 * features/i386/x32-avx512-linux.c: Regenerated.
14798 * regformats/i386/amd64-avx-linux.dat: Regenerated.
14799 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
14800 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
14801 * regformats/i386/amd64-linux.dat: Regenerated.
14802 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
14803 * regformats/i386/x32-avx-linux.dat: Regenerated.
14804 * regformats/i386/x32-avx512-linux.dat: Regenerated.
14805 * regformats/i386/x32-linux.dat: Regenerated.
14806
8884e97e
WT
148072017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14808
14809 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
14810 Set to AMD64_NUM_REGS.
14811
7005d26a
WT
148122017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14813
14814 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
14815 that checks validity of a register number.
14816
4bd2e1b2
KC
148172017-01-27 Kees Cook <keescook@google.com>
14818
14819 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
14820 fetch_fpregs if target has fpa registers.
14821 (arm_linux_store_inferior_registers): Call store_fpregs if target
14822 has fpa registers.
14823
7cf1de6c
AA
148242017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
14825
14826 * cris-tdep.c (cris_gdbarch_init): Remove check for
14827 info.byte_order and force it to BFD_ENDIAN_LITTLE.
14828
874a1c8c
AT
148292017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
14830
14831 * corelow.c (get_core_register_section): Check for regset
14832 existence before checking for REGSET_VARIABLE_SIZE.
14833
d8b49cf0
YQ
148342017-01-26 Yao Qi <yao.qi@linaro.org>
14835 Pedro Alves <palves@redhat.com>
14836
14837 PR gdb/20939
14838 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
14839 call memory_error, save memaddr instead.
14840 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
14841 negative, cal memory_error.
14842 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
14843
658ca58c
YQ
148442017-01-26 Yao Qi <yao.qi@linaro.org>
14845
14846 * disasm-selftests.c (memory_error_test): New function.
14847 (_initialize_disasm_selftests): Register memory_error_test.
14848
79843d45
YQ
148492017-01-26 Yao Qi <yao.qi@linaro.org>
14850
14851 * Makefile.in (SFILES): Add disasm-selftests.c and
14852 selftest-arch.c.
14853 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
14854 * disasm-selftests.c: New file.
14855 * selftest-arch.c: New file.
14856 * selftest-arch.h: New file.
14857
8cafda32
YQ
148582017-01-26 Yao Qi <yao.qi@linaro.org>
14859
14860 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
14861 to bfd_arch_mep. Don't return 0 if section is not
14862 found. Call print_insn_mep.
14863
e47ad6c0
YQ
148642017-01-26 Pedro Alves <palves@redhat.com>
14865 Yao Qi <yao.qi@linaro.org>
14866
14867 * arm-tdep.c: Include "disasm.h".
14868 (gdb_print_insn_arm): Update code to get gdbarch.
14869 * disasm.c (dis_asm_read_memory): Change it to
14870 gdb_disassembler::dis_asm_read_memory.
14871 (dis_asm_memory_error): Likewise.
14872 (dis_asm_print_address): Likewise.
14873 (gdb_pretty_print_insn): Change it to
14874 gdb_disassembler::pretty_print_insn.
14875 (dump_insns): Add one argument gdb_disassemlber. All
14876 callers updated.
14877 (do_mixed_source_and_assembly_deprecated): Likewise.
14878 (do_mixed_source_and_assembly): Likewise.
14879 (do_assembly_only): Likewise.
14880 (gdb_disassembler::gdb_disassembler): New.
14881 (gdb_disassembler::print_insn): New.
14882 * disasm.h (class gdb_disassembler): New.
14883 (gdb_pretty_print_insn): Remove declaration.
14884 (gdb_disassemble_info): Likewise.
14885 * guile/scm-disasm.c (class gdbscm_disassembler): New.
14886 (gdbscm_disasm_read_memory_worker): Update.
14887 (gdbscm_disasm_read_memory): Update.
14888 (gdbscm_disasm_memory_error): Remove.
14889 (gdbscm_disasm_print_address): Remove.
14890 (gdbscm_disassembler::gdbscm_disassembler): New.
14891 (gdbscm_print_insn_from_port): Update.
14892 * mips-tdep.c: Include disasm.h.
14893 (gdb_print_insn_mips): Update code to get gdbarch.
14894 * record-btrace.c (btrace_insn_history): Update.
14895 * spu-tdep.c: Include disasm.h.
14896 (struct spu_dis_asm_data): Remove.
14897 (struct spu_dis_asm_info): New.
14898 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
14899 SPU id.
14900 (gdb_print_insn_spu): Cast disassemble_info to
14901 spu_dis_asm_info.
14902
80d75874
YQ
149032017-01-26 Yao Qi <yao.qi@linaro.org>
14904
14905 * disasm.c (do_ui_file_delete): Delete.
14906 (gdb_insn_length): Move code creating stream to ...
14907 * utils.c (null_stream): ... here. New function.
14908 * utils.h (null_stream): Declare.
14909
60685cd0
SM
149102017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14911
14912 * python/py-inferior.c (find_thread_object): Return directly
14913 from the loop. Remove "found" variable.
14914
eb1cdb62
JB
149152017-01-21 Joel Brobecker <brobecker@adacore.com>
14916
14917 GDB 7.12.1 released.
14918
b1ce6568
SM
149192017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14920
14921 * python/py-function.c (fnpy_call): Reorder declarations to have
14922 the gdbpy_enter object declared first.
14923 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
14924
6f8b0407
SM
149252017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14926
fec93fb1 14927 PR python/21068
6f8b0407
SM
14928 * python/python-internal.h (PyMem_RawMalloc): Define for
14929 Python < 3.4.
14930 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
14931 PyMem_RawMalloc instead of PyMem_Malloc.
14932
78cbbba8
LM
149332017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
14934 Luis Machado <lgustavo@codesourcery.com>
14935
14936 * NEWS (New commands): Mention flash-erase.
14937 (New MI commands): Mention target-flash-erase.
14938 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
14939 command.
14940 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
14941 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
14942 * target.c (flash_erase_command): New function.
14943 (initialize_targets): Add new flash-erase command.
14944 * target.h (flash_erase_command): New declaration.
14945
2132fe85
JB
149462017-01-20 Joel Brobecker <brobecker@adacore.com>
14947
14948 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
14949 HAVE_SYS_PROCFS_H is defined.
14950
d1dff226
AH
149512017-01-18 Alan Hayward <alan.hayward@arm.com>
14952
14953 * remote.c (struct cached_reg): Change data into a pointer.
14954 * (stop_reply_dtr): Free data pointers before deleting vector.
14955 (process_stop_reply): Likewise.
14956 (remote_parse_stop_reply): Allocate space for data
14957
9890e433
AH
149582017-01-18 Alan Hayward <alan.hayward@arm.com>
14959
14960 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
14961 MAX_REGISTER_SIZE.
14962 (amd64_pseudo_register_read_value): Likewise.
14963 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
14964 (store_register_using_P): Likewise.
14965 * regcache.c (regcache_xfer_part): Likewise.
14966
7a36499a
IR
149672017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
14968
14969 Split real and pseudo registers.
14970 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
14971 (sparc32_pseudo_regnum): New enum.
14972 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
14973 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
14974 (SPARC32_CP0_REGISTERS): New macro.
14975 (sparc32_pseudo_register_name): New function.
14976 (sparc32_register_name): Use sparc32_pseudo_register_name.
14977 (sparc32_pseudo_register_type): New function.
14978 (sparc32_register_type): Use sparc32_pseudo_register_type.
14979 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
14980 pseudo register numbers.
14981 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
14982 (SPARC64_CP0_REGISTERS): New macro.
14983 (sparc64_pseudo_register_name): New function.
14984 (sparc64_register_name): Use sparc64_pseudo_register_name.
14985 (sparc64_pseudo_register_type): New function.
14986 (sparc64_register_type): Use sparc64_pseudo_register_type.
14987 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
14988 pseudo register numbers.
14989 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
14990 sparc64_store_arguments): Handle pseudo register numbers.
14991
6f8976bf
YQ
149922017-01-13 Yao Qi <yao.qi@linaro.org>
14993
14994 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
14995 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
14996 output.
14997 (getpkt_or_notif_sane_1): Likewise.
14998
e4241ace
YQ
149992017-01-13 Yao Qi <yao.qi@linaro.org>
15000
15001 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
15002 of CC. Pass "-x c++-header" instead of "-x c".
15003
3015c064
SM
150042017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15005
15006 * remote.c (remote_can_async_p): Update comment.
15007
fde1b17d
SM
150082017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15009
15010 * linux-nat.c (linux_nat_can_async_p): Update comment.
15011
ca1ca08b
SM
150122017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15013
15014 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
15015
4ad2da73
SM
150162017-01-11 Simon Marchi <simon.marchi@ericsson.com>
15017
15018 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
15019
c8b23b3f
TT
150202017-01-10 Tom Tromey <tom@tromey.com>
15021
15022 * python/py-type.c (typy_legacy_template_argument): Update.
15023 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
15024 ~demangle_parse_info): Declare new members.
15025 (cp_demangled_name_to_comp): Return unique_ptr.
15026 (cp_demangled_name_parse_free)
15027 (make_cleanup_cp_demangled_name_parse_free)
15028 (cp_new_demangle_parse_info): Remove.
15029 * cp-support.c (do_demangled_name_parse_free_cleanup)
15030 (make_cleanup_cp_demangled_name_parse_free): Remove.
15031 (inspect_type, cp_canonicalize_string_full)
15032 (cp_canonicalize_string): Update.
15033 (mangled_name_to_comp): Change return type.
15034 (cp_class_name_from_physname, method_name_from_physname)
15035 (cp_func_name, cp_remove_params): Update.
15036 * cp-name-parser.y (demangle_parse_info): New constructor, from
15037 cp_new_demangle_parse_info.
15038 (~demangle_parse_info): New destructor, from
15039 cp_demangled_name_parse_free.
15040 (cp_merge_demangle_parse_infos): Update.
15041 (cp_demangled_name_to_comp): Change return type.
15042
1ac32117
TT
150432017-01-10 Tom Tromey <tom@tromey.com>
15044
15045 * top.c (prevent_dont_repeat): Change return type.
15046 * python/python.c (execute_gdb_command): Use std::string.
15047 Update.
15048 * guile/guile.c (gdbscm_execute_gdb_command): Update.
15049 * command.h (prevent_dont_repeat): Change return type.
15050 * breakpoint.c (bpstat_do_actions_1): Update.
15051
0cf08227
TT
150522017-01-10 Tom Tromey <tom@tromey.com>
15053
15054 * value.h (scoped_value_mark::~scoped_value_mark): Call
15055 free_to_mark.
15056 (scoped_value_mark::free_to_mark): New method.
15057 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
15058 scoped_value_mark.
15059
eb115069
TT
150602017-01-10 Tom Tromey <tom@tromey.com>
15061
15062 * python/py-value.c (valpy_dereference, valpy_referenced_value)
15063 (valpy_reference_value, valpy_const_value, valpy_get_address)
15064 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
15065 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
15066 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
15067 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
15068 scoped_value_mark.
15069 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
15070 * value.h (scoped_value_mark): New class.
15071
906768f9
TT
150722017-01-10 Tom Tromey <tom@tromey.com>
15073
15074 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
15075 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
15076 * psymtab.c (discard_psymtabs_upto): Remove.
15077 (make_cleanup_discard_psymtabs): Remove.
15078 (struct psymtab_state): Remove.
15079
bef155c3
TT
150802017-01-10 Tom Tromey <tom@tromey.com>
15081
15082 * record-full.c (record_full_save_cleanups): Remove.
15083 (record_full_save): Use gdb::unlinker.
15084 * gcore.c (do_bfd_delete_cleanup): Remove.
15085 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
15086 cleanups.
15087 * dwarf2read.c (unlink_if_set): Remove.
15088 (write_psymtabs_to_index): Use gdb::unlinker.
15089 * common/gdb_unlinker.h: New file.
15090
192b62ce
TT
150912017-01-10 Tom Tromey <tom@tromey.com>
15092
15093 * windows-tdep.c (windows_xfer_shared_library): Update.
15094 * windows-nat.c (windows_make_so): Update.
15095 * utils.h (make_cleanup_bfd_unref): Remove.
15096 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
15097 * symfile.h (symfile_bfd_open)
15098 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
15099 * symfile.c (read_symbols, symbol_file_add)
15100 (separate_debug_file_exists): Update.
15101 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
15102 (generic_load, reread_symbols): Update.
15103 * symfile-mem.c (symbol_file_add_from_memory): Update.
15104 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
15105 (spu_symbol_file_add_from_memory): Update.
15106 * solist.h (struct target_so_ops) <bfd_open>: Return
15107 gdb_bfd_ref_ptr.
15108 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
15109 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
15110 gdb_bfd_ref_ptr.
15111 (solib_map_sections, reload_shared_libraries_1): Update.
15112 * solib-svr4.c (enable_break): Update.
15113 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
15114 * solib-frv.c (enable_break2): Update.
15115 * solib-dsbt.c (enable_break): Update.
15116 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
15117 gdb_bfd_ref_ptr.
15118 (darwin_solib_get_all_image_info_addr_at_init): Update.
15119 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
15120 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
15121 * record-full.c (record_full_save): Update.
15122 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
15123 * procfs.c (insert_dbx_link_bpt_in_file): Update.
15124 * minidebug.c (find_separate_debug_file_in_section): Return
15125 gdb_bfd_ref_ptr.
15126 * machoread.c (macho_add_oso_symfile): Change abfd to
15127 gdb_bfd_ref_ptr.
15128 (macho_symfile_read_all_oso): Update.
15129 (macho_check_dsym): Return gdb_bfd_ref_ptr.
15130 (macho_symfile_read): Update.
15131 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
15132 (jit_bfd_try_read_symtab): Update.
15133 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
15134 (gdb_bfd_openw, gdb_bfd_openr_iovec)
15135 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
15136 gdb_bfd_ref_ptr.
15137 (gdb_bfd_ref_policy): New struct.
15138 (gdb_bfd_ref_ptr): New typedef.
15139 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
15140 (gdb_bfd_openw, gdb_bfd_openr_iovec)
15141 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
15142 gdb_bfd_ref_ptr.
15143 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
15144 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
15145 (gcore_command): Update.
15146 * exec.c (exec_file_attach): Update.
15147 * elfread.c (elf_symfile_read): Update.
15148 * dwarf2read.c (dwarf2_get_dwz_file): Update.
15149 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
15150 (open_and_init_dwo_file): Update.
15151 (open_dwp_file): Return gdb_bfd_ref_ptr.
15152 (open_and_init_dwp_file): Update.
15153 * corelow.c (core_open): Update.
15154 * compile/compile-object-load.c (compile_object_load): Update.
15155 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
15156 * coffread.c (coff_symfile_read): Update.
15157 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
15158 gdb_bfd_ref_ptr. Rename.
15159 (dump_bfd_file, restore_command): Update.
15160 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
15161 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
15162 (find_separate_debug_file_by_buildid): Update.
15163
50315b21
TT
151642017-01-10 Tom Tromey <tom@tromey.com>
15165
15166 * common/gdb_ref_ptr.h: New file.
15167 * python/py-ref.h (struct gdbpy_ref_policy): New.
15168 (gdbpy_ref): Now a typedef.
15169
fc4007c9
TT
151702017-01-10 Tom Tromey <tom@tromey.com>
15171
15172 * utils.h (make_cleanup_htab_delete): Don't declare.
15173 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
15174 Remove.
15175 * linespec.c (decode_compound_collector): Add constructor,
15176 destructor.
15177 (lookup_prefix_sym): Remove cleanup.
15178 (symtab_collector): Add constructor, destructor.
15179 (collect_symtabs_from_filename): Remove cleanup.
15180 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
15181 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
15182 Use htab_up.
15183 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
15184 * dwarf2read.c (dw2_expand_symtabs_matching)
15185 (dw2_map_symbol_filenames, dwarf_decode_macros)
15186 (write_psymtabs_to_index): Use htab_up.
15187 * dwarf2loc.c (func_verify_no_selftailcall)
15188 (call_site_find_chain_1, func_verify_no_selftailcall)
15189 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
15190 std::vector, gdb::unique_xmalloc_ptr.
15191 (call_sitep): Remove typedef.
15192 (dwarf2_locexpr_baton_eval): Remove unused variable.
15193
8dbcee67
TT
151942017-01-10 Tom Tromey <tom@tromey.com>
15195
15196 * python/python-internal.h (make_cleanup_py_decref)
15197 (make_cleanup_py_xdecref): Don't declare.
15198 * python/py-utils.c (py_decref, make_cleanup_py_decref)
15199 (py_xdecref, make_cleanup_py_xdecref): Remove.
15200
13df46cc
TT
152012017-01-10 Tom Tromey <tom@tromey.com>
15202
15203 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
15204 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
15205
06fc9bf7
TT
152062017-01-10 Tom Tromey <tom@tromey.com>
15207
15208 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
15209
830a4934
TT
152102017-01-10 Tom Tromey <tom@tromey.com>
15211
15212 * python/py-utils.c (unicode_to_encoded_string)
15213 (python_string_to_target_string)
15214 (python_string_to_target_python_string)
15215 (python_string_to_host_string, gdbpy_obj_to_string)
15216 (get_addr_from_python): Use gdbpy_ref.
15217
4586d543
TT
152182017-01-10 Tom Tromey <tom@tromey.com>
15219
15220 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
15221 gdbpy_ref.
15222
59876f8f
TT
152232017-01-10 Tom Tromey <tom@tromey.com>
15224
15225 * python/python.c (eval_python_command, gdbpy_decode_line)
15226 (gdbpy_run_events, gdbpy_start_type_printers)
15227 (gdbpy_apply_type_printers): Use gdbpy_ref.
15228
97d83487
TT
152292017-01-10 Tom Tromey <tom@tromey.com>
15230
15231 * python/py-param.c (get_doc_string, compute_enum_values): Use
15232 gdbpy_ref.
15233
9205649a
TT
152342017-01-10 Tom Tromey <tom@tromey.com>
15235
15236 * python/py-inferior.c (find_thread_object, build_inferior_list):
15237 Use gdbpy_ref.
15238
74c49d45
TT
152392017-01-10 Tom Tromey <tom@tromey.com>
15240
15241 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
15242
16361ffb
TT
152432017-01-10 Tom Tromey <tom@tromey.com>
15244
15245 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
15246 gdbpy_ref.
15247
905f2cca
TT
152482017-01-10 Tom Tromey <tom@tromey.com>
15249
15250 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
15251 extra incref.
15252 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
15253 Use gdbpy_ref.
15254
64081434
TT
152552017-01-10 Tom Tromey <tom@tromey.com>
15256
15257 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
15258 gdbpy_ref.
15259
59e9e831
TT
152602017-01-10 Tom Tromey <tom@tromey.com>
15261
15262 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
15263 decref results of PyArg_ParseTupleAndKeywords.
15264
9de10f6d
TT
152652017-01-10 Tom Tromey <tom@tromey.com>
15266
15267 * python/python.c (python_run_simple_file): Use
15268 unique_xmalloc_ptr, gdbpy_ref.
15269
2bd5759d
TT
152702017-01-10 Tom Tromey <tom@tromey.com>
15271
15272 * python/py-prettyprint.c (print_stack_unless_memory_error)
15273 (print_string_repr, print_children): Use gdbpy_ref.
15274 (dummy_python_frame): New class.
15275 (dummy_python_frame::dummy_python_frame): Rename from
15276 push_dummy_python_frame.
15277 (py_restore_tstate): Remove.
15278
3b4e0e01
TT
152792017-01-10 Tom Tromey <tom@tromey.com>
15280
15281 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
15282
17a22718
TT
152832017-01-10 Tom Tromey <tom@tromey.com>
15284
15285 * python/python.c (ensure_python_env, restore_python_env):
15286 Remove.
15287 * python/python-internal.h (ensure_python_env): Don't declare.
15288 * varobj.h (varobj_ensure_python_env): Don't declare.
15289 * varobj.c (varobj_ensure_python_env): Remove.
15290
68cdc557
TT
152912017-01-10 Tom Tromey <tom@tromey.com>
15292
15293 * varobj.c (varobj_value_get_print_value): Use
15294 gdbpy_enter_varobj.
15295
1eba6383
TT
152962017-01-10 Tom Tromey <tom@tromey.com>
15297
15298 * python/py-prettyprint.c (print_string_repr, print_children):
15299 Update.
15300 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
15301 of "encoding".
15302 * varobj.c (varobj_value_get_print_value): Update.
15303 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
15304
bde7b3e3
TT
153052017-01-10 Tom Tromey <tom@tromey.com>
15306
15307 * varobj.c (varobj_get_display_hint)
15308 (dynamic_varobj_has_child_method, install_new_value_visualizer)
15309 (varobj_set_visualizer, free_variable): Use
15310 gdbpy_enter_varobj.
15311
a7785f8c
TT
153122017-01-10 Tom Tromey <tom@tromey.com>
15313
15314 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
15315 (do_finish_initialization): New function. Use gdbpy_ref.
15316 (gdbpy_finish_initialization): Use gdbpy_enter. Call
15317 do_finish_initialization.
15318
2865bfce
TT
153192017-01-10 Tom Tromey <tom@tromey.com>
15320
15321 * python/py-param.c (get_set_value, get_show_value): Use
15322 gdbpy_enter, gdbpy_ref.
15323
0e9dcc75
TT
153242017-01-10 Tom Tromey <tom@tromey.com>
15325
15326 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
15327
12a5cedd
TT
153282017-01-10 Tom Tromey <tom@tromey.com>
15329
15330 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
15331
788f2586
TT
153322017-01-10 Tom Tromey <tom@tromey.com>
15333
15334 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
15335 Use gdbpy_enter_varobj.
15336
6cd67bea
TT
153372017-01-10 Tom Tromey <tom@tromey.com>
15338
15339 * varobj.c (gdbpy_enter_varobj): New constructor.
15340 * python/python-internal.h (gdbpy_enter_varobj): New class.
15341 * python/py-varobj.c (py_varobj_get_iterator): Use
15342 gdbpy_enter_varobj.
15343
14b122bf
TT
153442017-01-10 Tom Tromey <tom@tromey.com>
15345
15346 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
15347 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
15348 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
15349 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
15350 unique_xmalloc_ptr.
15351 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
15352
bf1ca3b9
TT
153532017-01-10 Tom Tromey <tom@tromey.com>
15354
15355 * python/py-xmethods.c (invoke_match_method): Use
15356 gdbpy_ref.
15357
572a5524
TT
153582017-01-10 Tom Tromey <tom@tromey.com>
15359
15360 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
15361 gdbpy_enter, gdbpy_ref.
15362
396a78b6
TT
153632017-01-10 Tom Tromey <tom@tromey.com>
15364
15365 * python/python.c (python_interactive_command): Use gdbpy_enter.
15366
a88b13c7
TT
153672017-01-10 Tom Tromey <tom@tromey.com>
15368
15369 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
15370 gdbpy_ref.
15371
e9f0c363
TT
153722017-01-10 Tom Tromey <tom@tromey.com>
15373
15374 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
15375 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
15376
6349f452
TT
153772017-01-10 Tom Tromey <tom@tromey.com>
15378
15379 * utils.h (htab_deleter): New struct.
15380 (htab_up): New typedef.
15381 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
15382 gdbpy_enter, gdbpy_ref, htab_up.
15383
c0171de6
TT
153842017-01-10 Tom Tromey <tom@tromey.com>
15385
15386 * python/py-unwind.c (pending_frame_invalidate): Remove.
15387 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
15388
f18e226f
TT
153892017-01-10 Tom Tromey <tom@tromey.com>
15390
15391 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
15392 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
15393
c57af3f1
TT
153942017-01-10 Tom Tromey <tom@tromey.com>
15395
15396 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
15397
60e600ec
TT
153982017-01-10 Tom Tromey <tom@tromey.com>
15399
15400 * python/python.c (gdbpy_eval_from_control_command)
15401 (gdbpy_source_script, gdbpy_run_events)
15402 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
15403 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
15404 gdbpy_enter.
15405
bf7da5b0
TT
154062017-01-10 Tom Tromey <tom@tromey.com>
15407
15408 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
15409
2d38bced
TT
154102017-01-10 Tom Tromey <tom@tromey.com>
15411
15412 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
15413
07bc7329
TT
154142017-01-10 Tom Tromey <tom@tromey.com>
15415
15416 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
15417 (python_on_inferior_call_pre, python_on_inferior_call_post)
15418 (python_on_memory_change, python_on_register_change)
15419 (python_inferior_exit, python_new_objfile, add_thread_object)
15420 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
15421
6e7c365e
TT
154222017-01-10 Tom Tromey <tom@tromey.com>
15423
15424 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
15425 (bpfinishpy_handle_exit): Use gdbpy_enter.
15426
6ba0cd40
TT
154272017-01-10 Tom Tromey <tom@tromey.com>
15428
15429 * python/py-cmd.c (cmdpy_destroyer)
15430 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
15431 gdbpy_enter.
15432
de2dc875
TT
154332017-01-10 Tom Tromey <tom@tromey.com>
15434
15435 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
15436 gdbpy_enter.
15437 (gdbpy_breakpoint_has_cond): Likewise.
15438
4ecee2c4
TT
154392017-01-10 Tom Tromey <tom@tromey.com>
15440
15441 * python/python.c (gdbpy_enter): New constructor.
15442 (~gdbpy_enter): New destructor.
15443 (restore_python_env, ensure_python_env): Rewrite.
15444 * python/python-internal.h (gdbpy_enter): New class.
15445
37fce74f
TT
154462017-01-10 Tom Tromey <tom@tromey.com>
15447
15448 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
15449
53a0cca3
TT
154502017-01-10 Tom Tromey <tom@tromey.com>
15451
15452 * python/py-value.c (value_has_field, get_field_flag)
15453 (get_field_type, valpy_getitem, convert_value_from_python): Use
15454 gdbpy_ref.
15455
ff3724f5
TT
154562017-01-10 Tom Tromey <tom@tromey.com>
15457
15458 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
15459 gdbpy_ref.
15460
0700aea5
TT
154612017-01-10 Tom Tromey <tom@tromey.com>
15462
15463 * python/py-prettyprint.c (search_pp_list)
15464 (find_pretty_printer_from_objfiles)
15465 (find_pretty_printer_from_progspace)
15466 (find_pretty_printer_from_gdb, find_pretty_printer)
15467 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
15468 gdbpy_ref.
15469
1bb44c9f
TT
154702017-01-10 Tom Tromey <tom@tromey.com>
15471
15472 * python/py-param.c (call_doc_function): Use gdbpy_ref.
15473
87ce03fd
TT
154742017-01-10 Tom Tromey <tom@tromey.com>
15475
15476 * python/py-linetable.c (build_line_table_tuple_from_pcs)
15477 (ltpy_get_all_source_lines): Use gdbpy_ref.
15478
ee0a3fb8
TT
154792017-01-10 Tom Tromey <tom@tromey.com>
15480
15481 * python/py-framefilter.c (extract_sym, extract_value)
15482 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
15483 gdbpy_ref.
15484
bf2a52fa
TT
154852017-01-10 Tom Tromey <tom@tromey.com>
15486
15487 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
15488
f59fe7f8
TT
154892017-01-10 Tom Tromey <tom@tromey.com>
15490
15491 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
15492
80bd970a
TT
154932017-01-10 Tom Tromey <tom@tromey.com>
15494
15495 * python/py-function.c (convert_values_to_python, fnpy_init): Use
15496 gdbpy_ref.
15497
d1b3de2e
TT
154982017-01-10 Tom Tromey <tom@tromey.com>
15499
15500 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
15501
3bb43384
TT
155022017-01-10 Tom Tromey <tom@tromey.com>
15503
15504 * python/py-type.c (convert_field, make_fielditem, typy_fields)
15505 (typy_range): Use gdbpy_ref.
15506
abf5651e
TT
155072017-01-10 Tom Tromey <tom@tromey.com>
15508
15509 * python/py-threadevent.c (create_thread_event_object): Use
15510 gdbpy_ref.
15511 * python/py-stopevent.c (create_stop_event_object): Simplify.
15512 (emit_stop_event): Use gdbpy_ref.
15513 * python/py-signalevent.c (create_signal_event_object): Use
15514 gdbpy_ref.
15515 * python/py-newobjfileevent.c (create_new_objfile_event_object)
15516 (emit_new_objfile_event, create_clear_objfiles_event_object)
15517 (emit_clear_objfiles_event): Use gdbpy_ref.
15518 * python/py-infevents.c (create_inferior_call_event_object)
15519 (create_register_changed_event_object)
15520 (create_memory_changed_event_object, emit_inferior_call_event)
15521 (emit_memory_changed_event, emit_register_changed_event): Use
15522 gdbpy_ref.
15523 * python/py-exitedevent.c (create_exited_event_object)
15524 (emit_exited_event): Use gdbpy_ref.
15525 * python/py-event.h (evpy_emit_event): Remove
15526 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
15527 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
15528 * python/py-continueevent.c (emit_continue_event): Use
15529 gdbpy_ref.
15530 * python/py-breakpoint.c (gdbpy_breakpoint_created)
15531 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
15532 gdbpy_ref.
15533 * python/py-bpevent.c (create_breakpoint_event_object): Use
15534 gdbpy_ref.
15535
a68ff33e
TT
155362017-01-10 Tom Tromey <tom@tromey.com>
15537
15538 * python/py-ref.h: New file.
15539
7becfd03
SM
155402017-01-10 Simon Marchi <simon.marchi@ericsson.com>
15541
15542 * cli-out.c (cli_ui_out::do_redirect): Change return type to
15543 void.
15544 * cli-out.h (cli_ui_out::do_redirect): Likewise.
15545 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
15546 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
15547 * ui-out.c (ui_out::redirect): Likewise.
15548 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
15549 * cli/cli-logging.c (set_logging_redirect): Update call site of
15550 ui_out::redirect.
15551 (handle_redirections): Likewise.
15552 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
15553 * top.c (execute_command_to_string): Likewise.
15554 * utils.c (do_ui_out_redirect_pop): Likewise.
15555
df294654
SM
155562017-01-10 Simon Marchi <simon.marchi@ericsson.com>
15557
15558 * stack.c (_initialize_stack): Update "frame" command help message.
15559
f5e6296e
IB
155602017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
15561
15562 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
15563
0e2d6fa6
YQ
155642017-01-06 Yao Qi <yao.qi@linaro.org>
15565
15566 * x86-linux-nat.h: Include gdb_proc_service.h.
15567
44d6d3f9
YQ
155682017-01-06 Yao Qi <yao.qi@linaro.org>
15569
15570 * ser-base.h: Include serial.h.
15571
656731fe
YQ
155722017-01-06 Yao Qi <yao.qi@linaro.org>
15573
15574 * ppc-linux-tdep.h: Include ppc-tdep.h.
15575
1ca8f924
YQ
155762017-01-06 Yao Qi <yao.qi@linaro.org>
15577
15578 * nat/amd64-linux-siginfo.h: Include signal.h.
15579
bc3008c4
YQ
155802017-01-06 Yao Qi <yao.qi@linaro.org>
15581
15582 * nat/aarch64-linux-hw-point.h: Include break-common.h.
15583
66c80d03
YQ
155842017-01-06 Yao Qi <yao.qi@linaro.org>
15585
15586 * mi/mi-parse.h: Include mi-cmds.h.
15587
051d2dda
YQ
155882017-01-06 Yao Qi <yao.qi@linaro.org>
15589
15590 * inf-loop.c: Don't include "target.h".
15591 * inf-loop.h: Include it here.
15592
8018d34f
YQ
155932017-01-06 Yao Qi <yao.qi@linaro.org>
15594
15595 * dfp.h: Include "dboulest.h" and "expression.h".
15596
c0b8369c
YQ
155972017-01-06 Yao Qi <yao.qi@linaro.org>
15598
15599 * ax-gdb.h: Include "ax.h".
15600
ad5cba2a
YQ
156012017-01-06 Yao Qi <yao.qi@linaro.org>
15602
15603 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
15604 with nat/gdb_ptrace.h.
15605
1c33cd7f
YQ
156062017-01-05 Yao Qi <yao.qi@linaro.org>
15607
15608 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
15609 new line.
15610 (mips64_fbsd_sigframe_init): Likewise.
15611
c988ac1d
JB
156122017-01-04 John Baldwin <jhb@FreeBSD.org>
15613
15614 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
15615 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
15616
b268007c
JB
156172017-01-04 John Baldwin <jhb@FreeBSD.org>
15618
15619 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
15620 * NEWS: Mention new FreeBSD/mips native configuration.
15621 * config/mips/fbsd.mh: New file.
15622 * configure.host: Add mips*-*-freebsd*.
15623 * mips-fbsd-nat.c: New file.
15624
387360da
JB
156252017-01-04 John Baldwin <jhb@FreeBSD.org>
15626
15627 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
15628 (ALLDEPFILES): Add mips-fbsd-tdep.c.
15629 * NEWS: Mention new FreeBSD/mips target.
15630 * configure.tgt: Add mips*-*-freebsd*.
15631 * mips-fbsd-tdep.c: New file.
15632 * mips-fbsd-tdep.h: New file.
15633
2aaaf250
YQ
156342017-01-04 Yao Qi <yao.qi@linaro.org>
15635
15636 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
15637 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
15638
61baf725
JB
156392017-01-01 Joel Brobecker <brobecker@adacore.com>
15640
6dbb839a 15641 Update copyright year range in all GDB files.
61baf725 15642
c113e7ff 156432017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 15644
c113e7ff 15645 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 15646
c113e7ff 15647For older changes see ChangeLog-2016.
c906108c
SS
15648\f
15649Local Variables:
15650mode: change-log
15651left-margin: 8
15652fill-column: 74
15653version-control: never
57da7796 15654coding: utf-8
c906108c 15655End:
This page took 3.534699 seconds and 4 git commands to generate.