Move self to Past Maintainers.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
34a7ebaf
AC
12017-11-15 Andrew Cagney <cagney@gnu.org>
2
3 * MAINTAINERS: Move self to Past Maintainers.
4
5334ef39
YQ
52017-11-15 Yao Qi <yao.qi@linaro.org>
6
7 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
8 * features/nios2-linux.c: Remove.
9 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
10 initialize_tdesc_nios2_linux.
11
a714b0d6
YQ
122017-11-15 Yao Qi <yao.qi@linaro.org>
13
14 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
15 M68HC11_LAST_HARD_REG + 1.
16
92ffd475
PC
172017-11-14 Paul Carroll <pcarroll@codesourcery.com>
18
19 PR gdb/22388
20 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
21 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
22 Return TARGET_XFER_EOF if size of returned data is 0.
23
07431908
SM
242017-11-14 Simon Marchi <simon.marchi@ericsson.com>
25
26 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
27 memory-map-selftests.c.
28 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
29 * memory-map.c (memory_map_start_memory): Fix computation of hi
30 address.
31 * unittests/memory-map-selftests.c: New file.
32
31432a67
JB
332017-11-09 Joel Brobecker <brobecker@adacore.com>
34
35 * ada-lang.c: Fix some typos in the general command documenting
36 how Ada expressions are being evaluated and how their result
37 is printed.
38
e793c052
TT
392017-11-09 Tom Tromey <tom@tromey.com>
40
41 * psymtab.c (psymbol_hash): Do not hash string contents.
42 (psymbol_compare): Add comment.
43
7e8835c5
TT
442017-11-09 Tom Tromey <tom@tromey.com>
45
46 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
47
286acbb5
JB
482017-11-08 Joel Brobecker <brobecker@adacore.com>
49
50 * ada-exp.y (write_var_from_sym): Remove parameter
51 "orig_left_context". Update all callers.
52
b44ec619
SM
532017-11-08 Simon Marchi <simon.marchi@ericsson.com>
54
55 * tracepoint.h (class collection_list) <stringify>: Return
56 std::vector<std::string>.
57 (encode_actions_rsp): Change parameters to
58 std::vector<std::string> *.
59 * tracepoint.c (collection_list::stringify): Return
60 std::vector<std::string> and adjust accordingly.
61 (encode_actions_rsp): Changee parameters to
62 std::vector<std::string> and adjust accordingly.
63 * remote.c (free_actions_list),
64 free_actions_list_cleanup_wrapper): Remove.
65 (remote_download_tracepoint): Adjust to std::vector.
66
2f4732b0
TT
672017-11-08 Tom Tromey <tom@tromey.com>
68
69 * dwarf2read.c (symbolp): Remove typedef.
70 (read_func_scope): Use std::vector.
71 (process_structure_scope): Use std::vector.
72
f9d67a22
PA
732017-11-08 Pedro Alves <palves@redhat.com>
74
75 * ada-lang.c (ada_make_symbol_completion_list): Use
76 completion_skip_symbol.
77 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
78 (symbol_is_function_or_method(symbol*)): New.
79 (add_symtab_completions): Add complete_symbol_mode parameter. Use
80 completion_skip_symbol.
81 (default_collect_symbol_completion_matches_break_on): Use
82 completion_skip_symbol. Pass down mode.
83 (collect_file_symbol_completion_matches): Pass down mode.
84 * symtab.h (symbol_is_function_or_method): New declarations.
85 (completion_skip_symbol): New template function.
86
56d87ef7
PA
872017-11-08 Pedro Alves <palves@redhat.com>
88
89 * linespec.c (iterate_over_all_matching_symtabs): Add
90 search_domain parameter. Pass it down to expand_symtabs_matching.
91 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
92 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
93 search_domain.
94 (add_all_symbol_names_from_pspace): Add search_domain parameter.
95 Pass it down.
96 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
97 symbols.
98 (add_matching_symbols_to_info): Add search_domain parameter. Pass
99 it down.
100
1b026119
PA
1012017-11-08 Pedro Alves <palves@redhat.com>
102
103 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
104 text_len locals and don't pass them down.
105 * symtab.c (completion_list_add_name): Remove
106 sym_text/sym_text_len parameters and adjust.
107 (completion_list_add_symbol, completion_list_add_msymbol)
108 (completion_list_objc_symbol, completion_list_add_fields)
109 (add_symtab_completions): Likewise.
110 (default_collect_symbol_completion_matches_break_on)
111 (collect_file_symbol_completion_matches): Remove sym_text_len
112 local and don't pass it down.
113 * symtab.h (completion_list_add_name): Remove
114 sym_text/sym_text_len parameters.
115
c62446b1
PA
1162017-11-08 Pedro Alves <palves@redhat.com>
117
118 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
119 unittests/lookup_name_info-selftests.c.
120 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
121 * cp-support.c: Include "selftest.h".
122 (cp_remove_params_1): Rename from cp_remove_params. Add
123 'require_param' parameter, and handle it.
124 (cp_remove_params): Reimplement.
125 (cp_remove_params_if_any): New.
126 (selftests::quote): New.
127 (selftests::check_remove_params): New.
128 (selftests::test_cp_remove_params): New.
129 (_initialize_cp_support): Install
130 selftests::test_cp_remove_params.
131 * cp-support.h (cp_remove_params_if_any): Declare.
132 * dwarf2read.c :Include "selftest.h".
133 (dw2_expand_symtabs_matching_symbol): Use
134 lookup_name_info::make_ignore_params.
135 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
136 (selftests::dw2_expand_symtabs_matching::string_or_null)
137 (selftests::dw2_expand_symtabs_matching::check_match)
138 (selftests::dw2_expand_symtabs_matching::test_symbols)
139 (selftests::dw2_expand_symtabs_matching::run_test): New.
140 (_initialize_dwarf2_read): Register
141 selftests::dw2_expand_symtabs_matching::run_test.
142 * psymtab.c (psym_expand_symtabs_matching): Use
143 lookup_name_info::make_ignore_params.
144 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
145 If the lookup name wants to ignore parameters, strip them.
146 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
147 code handling '('.
148 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
149 (default_collect_symbol_completion_matches_break_on): Don't try to
150 strip parameters.
151 * symtab.h (lookup_name_info::lookup_name_info): Add
152 'ignore_parameters' parameter.
153 (lookup_name_info::ignore_parameters)
154 (lookup_name_info::make_ignore_params): New methods.
155 (lookup_name_info::m_ignore_parameters): New field.
156 * unittests/lookup_name_info-selftests.c: New file.
157
61920122
PA
1582017-11-08 Pedro Alves <palves@redhat.com>
159
160 * dwarf2read.c (dw2_expand_marked_cus)
161 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
162 (dw2_expand_symtabs_matching): Move further below.
163 (dw2_expand_marked_cus): Reindent.
164
3f563c84
PA
1652017-11-08 Pedro Alves <palves@redhat.com>
166
167 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
168 (struct name_component): New.
169 (mapped_index::name_components): New field.
170 (mapped_index::symbol_name_at): New method.
171 (dwarf2_read_index): Call mapped_index ctor.
172 (dw2_map_matching_symbols): Add comment about name_components
173 table.
174 (dw2_expand_symtabs_matching): Factor part to...
175 (dw2_expand_symtabs_matching_symbol): ... this new function.
176 Build name components table, and lookup symbols in it before
177 calling the name matcher.
178 (dw2_expand_marked_cus): New, factored out from
179 dw2_expand_symtabs_matching.
180 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
181
b5ec771e
PA
1822017-11-08 Pedro Alves <palves@redhat.com>
183
184 * ada-lang.c (ada_encode): Rename to ..
185 (ada_encode_1): ... this. Add throw_errors parameter and handle
186 it.
187 (ada_encode): Reimplement.
188 (match_name): Delete, folded into full_name.
189 (resolve_subexp): No longer pass the encoded name to
190 ada_lookup_symbol_list.
191 (should_use_wild_match): Delete.
192 (name_match_type_from_name): New.
193 (ada_lookup_simple_minsym): Use lookup_name_info and the
194 language's symbol_name_matcher_ftype.
195 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
196 (ada_add_block_renamings): Adjust to use lookup_name_info.
197 (ada_lookup_name): New.
198 (add_nonlocal_symbols, ada_add_all_symbols)
199 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
200 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
201 (ada_name_for_lookup): Delete.
202 (ada_lookup_encoded_symbol): Construct a verbatim name.
203 (wild_match): Reverse sense of return type. Use bool.
204 (full_match): Reverse sense of return type. Inline bits of old
205 match_name here.
206 (ada_add_block_symbols): Adjust to use lookup_name_info.
207 (symbol_completion_match): Delete, folded into...
208 (ada_lookup_name_info::matches): ... .this new method.
209 (symbol_completion_add): Delete.
210 (ada_collect_symbol_completion_matches): Add name_match_type
211 parameter. Adjust to use lookup_name_info and
212 completion_list_add_name.
213 (get_var_value, ada_add_global_exceptions): Adjust to use
214 lookup_name_info.
215 (ada_get_symbol_name_cmp): Delete.
216 (do_wild_match, do_full_match): New functions.
217 (ada_lookup_name_info::ada_lookup_name_info): New method.
218 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
219 functions.
220 (ada_language_defn): Install ada_get_symbol_name_matcher.
221 * ada-lex.l (processId): If name starts with '<', copy it
222 verbatim.
223 * block.c (block_iter_match_step, block_iter_match_first)
224 (block_iter_match_next, block_lookup_symbol)
225 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
226 lookup_name_info.
227 * block.h (block_iter_match_first, block_iter_match_next)
228 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
229 * c-lang.c (c_language_defn, cplus_language_defn)
230 (asm_language_defn, minimal_language_defn): Adjust comments to
231 refer to la_get_symbol_name_matcher.
232 * completer.c (complete_files_symbols)
233 (collect_explicit_location_matches, symbol_completer): Pass a
234 symbol_name_match_type down.
235 * completer.h (class completion_match, completion_match_result):
236 New classes.
237 (completion_tracker::reset_completion_match_result): New method.
238 (completion_tracker::m_completion_match_result): New field.
239 * cp-support.c (make_symbol_overload_list_block): Adjust to use
240 lookup_name_info.
241 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
242 functions.
243 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
244 * d-lang.c: Adjust comments to refer to
245 la_get_symbol_name_matcher.
246 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
247 Adjust to use lookup_name_info.
248 (dict_iter_match_first, dict_iter_match_next)
249 (iter_match_first_hashed, iter_match_next_hashed)
250 (iter_match_first_linear, iter_match_next_linear): Adjust to work
251 with a lookup_name_info.
252 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
253 Likewise.
254 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
255 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
256 (gdb_index_symbol_name_matcher): New class.
257 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
258 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
259 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
260 with a symbol_name_match_type.
261 (f_language_defn): Adjust comments to refer to
262 la_get_symbol_name_matcher.
263 * go-lang.c (go_language_defn): Adjust comments to refer to
264 la_get_symbol_name_matcher.
265 * language.c (default_symbol_name_matcher)
266 (language_get_symbol_name_matcher): New functions.
267 (unknown_language_defn, auto_language_defn): Adjust comments to
268 refer to la_get_symbol_name_matcher.
269 * language.h (symbol_name_cmp_ftype): Delete.
270 (language_defn) <la_collect_symbol_completion_matches>: Add match
271 type parameter.
272 <la_get_symbol_name_cmp>: Delete field.
273 <la_get_symbol_name_matcher>: New field.
274 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
275 (default_symbol_name_matcher, language_get_symbol_name_matcher):
276 Declare.
277 * linespec.c (iterate_over_all_matching_symtabs)
278 (iterate_over_file_blocks): Adjust to use lookup_name_info.
279 (find_methods): Add language parameter, and use lookup_name_info
280 and the language's symbol_name_matcher_ftype.
281 (linespec_complete_function): Adjust.
282 (lookup_prefix_sym): Use lookup_name_info.
283 (add_all_symbol_names_from_pspace): Adjust.
284 (find_superclass_methods): Add language parameter and pass it
285 down.
286 (find_method): Pass symbol language down.
287 (find_linespec_symbols): Don't demangle or Ada encode here.
288 (search_minsyms_for_name): Add lookup_name_info parameter.
289 (add_matching_symbols_to_info): Add name_match_type parameter.
290 Use lookup_name_info.
291 * m2-lang.c (m2_language_defn): Adjust comments to refer to
292 la_get_symbol_name_matcher.
293 * minsyms.c: Include <algorithm>.
294 (add_minsym_to_demangled_hash_table): Remove table parameter and
295 add objfile parameter. Use search_name_hash, and add language to
296 demangled languages vector.
297 (struct found_minimal_symbols): New struct.
298 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
299 New functions.
300 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
301 input names here. Use lookup_name_info instead. Lookup up
302 demangled names once for each language in the demangled names
303 vector.
304 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
305 demangled names once for each language in the demangled names
306 vector.
307 (build_minimal_symbol_hash_tables): Adjust.
308 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
309 lookup_name_info.
310 * objc-lang.c (objc_language_defn): Adjust comment to refer to
311 la_get_symbol_name_matcher.
312 * objfiles.h: Include <vector>.
313 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
314 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
315 la_get_symbol_name_matcher.
316 * p-lang.c (pascal_language_defn): Adjust comment to refer to
317 la_get_symbol_name_matcher.
318 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
319 (match_partial_symbol): Use symbol_name_match_type,
320 lookup_name_info and psymbol_name_matches.
321 (lookup_partial_symbol): Use lookup_name_info.
322 (map_block): Use symbol_name_match_type and lookup_name_info.
323 (psym_map_matching_symbols): Use symbol_name_match_type.
324 (psymbol_name_matches): New.
325 (recursively_search_psymtabs): Use lookup_name_info and
326 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
327 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
328 'kind' parameter to 'domain'.
329 * rust-lang.c (rust_language_defn): Adjust comment to refer to
330 la_get_symbol_name_matcher.
331 * symfile-debug.c (debug_qf_map_matching_symbols)
332 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
333 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
334 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
335 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
336 Adjust to use symbol_name_match_type.
337 <expand_symtabs_matching>: Adjust to use lookup_name_info.
338 (expand_symtabs_matching): Adjust to use lookup_name_info.
339 * symmisc.c (maintenance_expand_symtabs): Use
340 lookup_name_info::match_any ().
341 * symtab.c (symbol_matches_search_name): New.
342 (eq_symbol_entry): Adjust to use lookup_name_info and the
343 language's matcher.
344 (demangle_for_lookup_info::demangle_for_lookup_info): New.
345 (lookup_name_info::match_any): New.
346 (iterate_over_symbols, search_symbols): Use lookup_name_info.
347 (compare_symbol_name): Add language, lookup_name_info and
348 completion_match_result parameters, and use them.
349 (completion_list_add_name): Make extern. Add language and
350 lookup_name_info parameters. Use them.
351 (completion_list_add_symbol, completion_list_add_msymbol)
352 (completion_list_objc_symbol): Add lookup_name_info parameters and
353 adjust. Pass down language.
354 (completion_list_add_fields): Add lookup_name_info parameters and
355 adjust. Pass down language.
356 (add_symtab_completions): Add lookup_name_info parameters and
357 adjust.
358 (default_collect_symbol_completion_matches_break_on): Add
359 name_match_type parameter, and use it. Use lookup_name_info.
360 (default_collect_symbol_completion_matches)
361 (collect_symbol_completion_matches): Add name_match_type
362 parameter, and pass it down.
363 (collect_symbol_completion_matches_type): Adjust.
364 (collect_file_symbol_completion_matches): Add name_match_type
365 parameter, and use lookup_name_info.
366 * symtab.h: Include <string> and "common/gdb_optional.h".
367 (enum class symbol_name_match_type): New.
368 (class ada_lookup_name_info): New.
369 (struct demangle_for_lookup_info): New.
370 (class lookup_name_info): New.
371 (symbol_name_matcher_ftype): New.
372 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
373 (symbol_matches_search_name): Declare.
374 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
375 (default_collect_symbol_completion_matches)
376 (collect_symbol_completion_matches)
377 (collect_file_symbol_completion_matches): Add name_match_type
378 parameter.
379 (iterate_over_symbols): Use lookup_name_info.
380 (completion_list_add_name): Declare.
381 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
382 (strncmp_iw_with_mode): Now extern.
383 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
384 (strncmp_iw_with_mode): Declare.
385
5ffa0793
PA
3862017-11-08 Keith Seitz <keiths@redhat.com>
387 Pedro Alves <palves@redhat.com>
388
389 * ada-lang.c (ada_language_defn): Install
390 default_search_name_hash.
391 * buildsym.c (struct buildsym_compunit): <language>: New field.
392 (finish_block_internal): Pass language when creating dictionaries.
393 (start_buildsym_compunit, start_symtab): New language parameters.
394 Use them.
395 (restart_symtab): Pass down compilation unit's language.
396 * buildsym.h (enum language): Forward declare.
397 (start_symtab): New 'language' parameter.
398 * c-lang.c (c_language_defn, cplus_language_defn)
399 (asm_language_defn, minimal_language_defn): Install
400 default_search_name_hash.
401 * coffread.c (coff_start_symtab): Adjust.
402 * d-lang.c (d_language_defn): Install default_search_name_hash.
403 * dbxread.c (struct symloc): Add 'pst_language' field.
404 (PST_LANGUAGE): Define.
405 (start_psymtab, read_ofile_symtab): Use it.
406 (process_one_symbol): New 'language' parameter. Pass it down.
407 * dictionary.c (struct dictionary) <language>: New field.
408 (DICT_LANGUAGE): Define.
409 (dict_create_hashed, dict_create_hashed_expandable)
410 (dict_create_linear, dict_create_linear_expandable): New parameter
411 'language'. Set the dictionary's language.
412 (iter_match_first_hashed): Adjust to rename.
413 (insert_symbol_hashed): Assert we don't see mismatching
414 languages. Adjust to rename.
415 (dict_hash): Rename to ...
416 (default_search_name_hash): ... this and make extern.
417 * dictionary.h (struct language_defn): Forward declare.
418 (dict_create_hashed): New parameter 'language'.
419 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
420 * f-lang.c (f_language_defn): Install default_search_name_hash.
421 * go-lang.c (go_language_defn): Install default_search_name_hash.
422 * jit.c (finalize_symtab): Pass compunit's language to dictionary
423 creation.
424 * language.c (unknown_language_defn, auto_language_defn):
425 * language.h (language_defn::la_search_name_hash): New field.
426 (default_search_name_hash): Declare.
427 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
428 * mdebugread.c (new_block): New parameter 'language'.
429 * mdebugread.c (parse_symbol): Pass symbol language to block
430 allocation.
431 (psymtab_to_symtab_1): Pass down language.
432 (new_symtab): Pass compunit's language to block allocation.
433 * objc-lang.c (objc_language_defn): Install
434 default_search_name_hash.
435 * opencl-lang.c (opencl_language_defn):
436 * p-lang.c (pascal_language_defn): Install
437 default_search_name_hash.
438 * rust-lang.c (rust_language_defn): Install
439 default_search_name_hash.
440 * stabsread.h (enum language): Forward declare.
441 (process_one_symbol): Add 'language' parameter.
442 * symtab.c (search_name_hash): New function.
443 * symtab.h (search_name_hash): Declare.
444 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
445
2a1dde5d
PA
4462017-11-08 Pedro Alves <palves@redhat.com>
447
448 * cp-name-parser.y (main): Don't initialize extra_chars.
449
95a6b0a1
TT
4502017-11-07 Tom Tromey <tom@tromey.com>
451
452 * event-top.h (command_handler): Constify.
453 * record-full.c (cmd_record_full_start): Update.
454 * thread.c (thread_apply_all_command): Update.
455 * printcmd.c (eval_command): Update.
456 * mi/mi-main.c (mi_execute_cli_command): Update.
457 (mi_execute_async_cli_command): Update.
458 * tui/tui-stack.c (tui_update_command): Update.
459 * cli/cli-interp.c (safe_execute_command): Constify.
460 * record.c (record_start): Update.
461 (record_start, record_stop, cmd_record_start): Update.
462 * record-btrace.c (cmd_record_btrace_bts_start): Update.
463 (cmd_record_btrace_pt_start): Update.
464 (cmd_record_btrace_start): Update.
465 (cmd_record_btrace_start): Update.
466 * reverse.c (exec_reverse_once): Update.
467 * python/python.c (execute_gdb_command): Don't copy the command.
468 * event-top.c (command_line_handler): Update.
469 (command_handler): Constify.
470 * defs.h (deprecated_call_command_hook): Constify.
471 * cli/cli-script.h (execute_user_command): Constify.
472 * cli/cli-script.c (execute_user_command): Constify.
473 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
474 (enum command_control_type): Update.
475 * main.c (catch_command_errors): Remove non-const overload.
476 (catch_command_errors_ftype): Remove.
477 * python/py-cmd.c (cmdpy_function): Constify.
478 * guile/scm-cmd.c (cmdscm_function): Constify.
479 * cli/cli-dump.c (call_dump_func): Constify.
480 * cli/cli-decode.c (do_const_cfunc): Constify.
481 (do_sfunc): Constify.
482 (cmd_func): Constify.
483 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
484 * top.h (execute_command): Constify.
485 * top.c (execute_command): Constify.
486 (execute_command_to_string): Constify.
487 (deprecated_call_command_hook): Constify.
488 * command.h (cmd_func): Constify.
489 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
490
eb4c3f4a
TT
4912017-11-07 Tom Tromey <tom@tromey.com>
492
493 * ada-lang.c (catch_ada_exception_command): Constify.
494 (catch_assert_command): Constify.
495 * break-catch-throw.c (catch_catch_command, catch_throw_command)
496 (catch_rethrow_command): Constify.
497 (catch_exception_command_1): Constify.
498 * breakpoint.h (add_catch_command): Constify.
499 * break-catch-syscall.c (catch_syscall_command_1): Constify.
500 (catch_syscall_split_args): Constify.
501 * break-catch-sig.c (catch_signal_command): Constify.
502 (catch_signal_split_args): Constify.
503 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
504 cmd_const_sfunc_ftype.
505 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
506 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
507 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
508 (add_setshow_string_cmd, struct cmd_list_element)
509 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
510 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
511 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
512 Constify.
513 (set_cmd_sfunc): Constify.
514 (empty_sfunc): Constify.
515 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
516 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
517 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
518 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
519 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
520 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
521 Constify.
522 (set_cmd_sfunc): Constify.
523 (cmd_sfunc_ftype): Remove.
524 * compile/compile.c (set_compile_args): Constify.
525 * infrun.c (set_disable_randomization): Constify.
526 * infcmd.c (set_args_command, set_cwd_command): Constify.
527 * breakpoint.c (set_condition_evaluation_mode): Constify.
528 (add_catch_command): Constify.
529 (catch_fork_command_1, catch_exec_command_1)
530 (catch_load_command_1, catch_unload_command_1): Constify.
531 (catch_load_or_unload): Constify.
532 * guile/scm-param.c (pascm_set_func): Constify.
533 (add_setshow_generic): Constify.
534 * python/py-param.c (get_set_value): Constify.
535 * top.h (set_verbose): Constify.
536 * tui/tui-win.c (tui_set_var_cmd): Constify.
537 * mi/mi-main.c (set_mi_async_command): Constify.
538 * cli/cli-logging.c (set_logging_overwrite)
539 (set_logging_redirect): Constify.
540 * value.c (set_max_value_size): Constify.
541 * valprint.c (set_input_radix, set_output_radix): Constify.
542 * utils.c (set_width_command, set_height_command): Constify.
543 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
544 * tracepoint.c (set_disconnected_tracing)
545 (set_circular_trace_buffer, set_trace_buffer_size)
546 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
547 * top.c (set_history_size_command, set_verbose, set_editing)
548 (set_gdb_datadir, set_history_filename): Constify.
549 * target.c (set_targetdebug, maint_set_target_async_command)
550 (maint_set_target_non_stop_command, set_target_permissions)
551 (set_write_memory_permission): Constify.
552 (open_target): Constify.
553 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
554 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
555 * symtab.c (set_symbol_cache_size_handler): Constify.
556 * symfile.c (set_ext_lang_command): Constify.
557 * symfile-debug.c (set_debug_symfile): Constify.
558 * source.c (set_directories_command): Constify.
559 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
560 * serial.c (set_parity): Constify.
561 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
562 * remote.c (set_remote_exec_file, set_remotebreak)
563 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
564 * record.c (set_record_insn_history_size)
565 (set_record_call_history_size): Constify.
566 * record-full.c (set_record_full_insn_max_num): Constify.
567 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
568 * osabi.c (set_osabi): Constify.
569 * mips-tdep.c (set_mips64_transfers_32bit_regs)
570 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
571 * maint.c (maintenance_set_profile_cmd): Constify.
572 * linux-thread-db.c (set_libthread_db_search_path): Constify.
573 * language.c (set_language_command, set_range_command)
574 (set_case_command): Constify.
575 * infrun.c (set_non_stop, set_observer_mode)
576 (set_stop_on_solib_events, set_schedlock_func)
577 (set_exec_direction_func): Constify.
578 * infcmd.c (set_inferior_tty_command): Constify.
579 * disasm.c (set_disassembler_options_sfunc): Constify.
580 * demangle.c (set_demangling_command): Constify.
581 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
582 * cris-tdep.c (set_cris_version, set_cris_mode)
583 (set_cris_dwarf2_cfi): Constify.
584 * corefile.c (set_gnutarget_command): Constify.
585 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
586 (set_target_wide_charset_sfunc): Constify.
587 * breakpoint.c (update_dprintf_commands): Constify.
588 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
589 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
590 (set_disassembly_style_sfunc): Constify.
591 * arch-utils.c (set_endian, set_architecture): Constify.
592 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
593 * agent.c (set_can_use_agent): Constify.
594
5fed81ff
TT
5952017-11-07 Tom Tromey <tom@tromey.com>
596
597 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
598 (go32_pde, go32_pte, go32_pte_for_address): Constify.
599 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
600 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
601 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
602 (parse_int_arg, show_thread_default_detach_sc_cmd)
603 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
604 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
605 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
606 (show_task_pause_cmd, set_task_detach_sc_cmd)
607 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
608 (set_noninvasive_cmd, set_thread_pause_cmd)
609 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
610 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
611 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
612 * windows-nat.c (display_selectors): Constify.
613 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
614 non-const "cfunc".
615 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
616 (cmd_cfunc_eq): Likewise.
617 (struct cmd_list_element): Likewise.
618 (do_cfunc): Remove.
619 (cli_user_command_p): Update.
620 * command.h (add_cmd): Remove non-const overload.
621 (cmd_cfunc_ftype): Remove typedef.
622 (cmd_cfunc_eq): Remove non-const overload.
623 * value.c (show_values): Constify.
624 * thread.c (thread_apply_all_command): Constify.
625 * symfile.c (load_command): Constify.
626 * source.c (directory_command): Constify.
627 * maint.c (maintenance_internal_error)
628 (maintenance_demangler_warning, maintenance_space_display)
629 (maintenance_print_architecture, maintenance_translate_address)
630 (maintenance_info_selftests, maintenance_internal_warning):
631 Constify.
632 * breakpoint.c (disable_trace_command, enable_trace_command):
633 Constify.
634 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
635 Constify.
636 (add_auto_load_safe_path): Constify.
637 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
638 * top.h (show_commands): Constify.
639 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
640 * sparc64-tdep.c (adi_examine_command): Constify.
641 (adi_assign_command): Constify.
642
1d12d88f
TT
6432017-11-07 Tom Tromey <tom@tromey.com>
644
645 * frame.h (info_locals_command, info_args_command): Constify.
646 * auto-load.h (auto_load_info_scripts): Constify.
647 * inferior.h (registers_info): Constify.
648 * copying.c: Rebuild.
649 * copying.awk: Constify generated commands.
650 * auto-load.c (auto_load_info_scripts)
651 (info_auto_load_gdb_scripts): Constify.
652 * cli/cli-decode.c (struct cmd_list_element): Take a
653 cmd_const_cfunc_ftype.
654 * command.h (add_info): Take a cmd_const_cfunc_ftype.
655 * tui/tui-win.c (tui_all_windows_info): Constify.
656 * python/py-auto-load.c (info_auto_load_python_scripts):
657 Constify.
658 * cli/cli-cmds.c (show_command): Remove non-const overload.
659 * tracepoint.c (info_tvariables_command, info_scope_command):
660 Constify.
661 (info_static_tracepoint_markers_command): Constify.
662 * thread.c (info_threads_command): Constify.
663 (print_thread_info_1): Constify.
664 * target.c (info_target_command): Constify.
665 * symtab.c (info_sources_command, info_functions_command)
666 (info_types_command): Constify.
667 (info_variables_command): Remove non-const overload.
668 * symfile.c (info_ext_lang_command): Constify.
669 * stack.c (info_frame_command, info_locals_command)
670 (info_args_command): Constify.
671 (backtrace_command): Remove non-const overload.
672 * source.c (info_source_command, info_line_command): Constify.
673 * solib.c (info_sharedlibrary_command): Constify.
674 * skip.c (info_skip_command): Constify.
675 * ser-go32.c (info_serial_command): Constify.
676 * reverse.c (info_bookmarks_command): Constify.
677 * printcmd.c (info_symbol_command, info_address_command)
678 (info_display_command): Constify.
679 * osdata.c (info_osdata_command): Constify.
680 * objc-lang.c (info_selectors_command, info_classes_command):
681 Constify.
682 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
683 * memattr.c (info_mem_command): Constify.
684 * macrocmd.c (info_macro_command, info_macros_command): Constify.
685 * linux-fork.c (info_checkpoints_command): Constify.
686 * infrun.c (info_signals_command): Constify.
687 * inflow.c (info_terminal_command): Constify.
688 * inferior.c (info_inferiors_command): Constify.
689 (print_inferior): Constify.
690 * infcmd.c (info_program_command, info_all_registers_command)
691 (info_registers_command, info_vector_command)
692 (info_float_command): Constify.
693 (registers_info): Constify.
694 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
695 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
696 Constify.
697 * f-valprint.c (info_common_command): Constify.
698 * dcache.c (info_dcache_command): Constify.
699 (dcache_info_1): Constify.
700 * darwin-nat-info.c (info_mach_tasks_command)
701 (info_mach_task_command, info_mach_ports_command)
702 (info_mach_port_command, info_mach_threads_command)
703 (info_mach_thread_command, info_mach_regions_command)
704 (info_mach_regions_recurse_command, info_mach_region_command)
705 (info_mach_exceptions_command): Constify.
706 (get_task_from_args): Constify.
707 * cp-support.c (info_vtbl_command): Constify.
708 * breakpoint.c (info_watchpoints_command)
709 (info_tracepoints_command): Constify.
710 (info_breakpoints_command): Remove non-const overload.
711 * avr-tdep.c (avr_io_reg_read_command): Constify.
712 * auxv.c (info_auxv_command): Constify.
713 * ada-tasks.c (info_tasks_command): Constify.
714 (info_task): Constify.
715 * ada-lang.c (info_exceptions_command): Constify.
716
0b39b52e
TT
7172017-11-07 Tom Tromey <tom@tromey.com>
718
719 * solib.h (no_shared_libraries): Constify.
720 * frame.h (return_command): Constify.
721 * cli/cli-cmds.h (quit_command): Constify.
722 * top.h (quit_command, execute_command): Constify.
723 * target.h (flash_erase_command): Constify.
724 * inferior.h (set_inferior_args, attach_command): Constify.
725 * tracepoint.h (start_tracing, stop_tracing): Constify.
726 * breakpoint.h (break_command, tbreak_command)
727 (hbreak_command_wrapper, thbreak_command_wrapper)
728 (rbreak_command_wrapper, watch_command_wrapper)
729 (awatch_command_wrapper, rwatch_command_wrapper)
730 (get_tracepoint_by_number): Constify.
731 * symtab.c (info_variables_command, rbreak_command)
732 (symtab_symbol_info): Constify.
733 (info_variables_command): Add non-const overload.
734 * top.c (dont_repeat_command): Constify.
735 * breakpoint.c (ignore_command, commands_command)
736 (condition_command, tbreak_command, hbreak_command)
737 (thbreak_command, clear_command, break_command)
738 (info_breakpoints_command, watch_command, rwatch_command)
739 (awatch_command, trace_command, ftrace_command, strace_command)
740 (trace_pass_command, break_range_command, dprintf_command)
741 (agent_printf_command, get_tracepoint_by_number)
742 (watch_maybe_just_location, trace_pass_command): Constify.
743 (info_breakpoints_command): Add non-const overload.
744 * tracefile.c (tsave_command): Constify.
745 * infcmd.c (attach_command, disconnect_command, signal_command)
746 (queue_signal_command, stepi_command, nexti_command)
747 (finish_command, next_command, step_command, until_command)
748 (advance_command, jump_command, continue_command, run_command)
749 (start_command, starti_command, interrupt_command)
750 (run_command_1, set_inferior_args, step_1): Constify.
751 * inferior.c (add_inferior_command, remove_inferior_command)
752 (clone_inferior_command): Constify.
753 * linux-fork.c (checkpoint_command, restart_command): Constify.
754 * windows-nat.c (signal_event_command): Constify.
755 * guile/guile.c (guile_repl_command, guile_command): Constify.
756 * printcmd.c (x_command, display_command, printf_command)
757 (output_command, set_command, call_command, print_command)
758 (eval_command): Constify.
759 (non_const_set_command): Remove.
760 (_initialize_printcmd): Update.
761 * source.c (forward_search_command, reverse_search_command):
762 Constify.
763 * jit.c (jit_reader_load_command, jit_reader_unload_command):
764 Constify.
765 * infrun.c (handle_command): Constify.
766 * memattr.c (mem_command): Constify.
767 * stack.c (return_command, up_command, up_silently_command)
768 (down_command, down_silently_command, frame_command)
769 (backtrace_command, func_command, backtrace_command_1): Constify.
770 (backtrace_command): Add non-const overload.
771 * remote-sim.c (simulator_command): Constify.
772 * exec.c (set_section_command): Constify.
773 * tracepoint.c (tdump_command, trace_variable_command)
774 (tstatus_command, tstop_command, tstart_command)
775 (end_actions_pseudocommand, while_stepping_pseudocommand)
776 (collect_pseudocommand, teval_pseudocommand, actions_command)
777 (start_tracing, stop_tracing): Constify.
778 * value.c (init_if_undefined_command): Constify.
779 * tui/tui-stack.c (tui_update_command): Constify.
780 * tui/tui-win.c (tui_refresh_all_command)
781 (tui_set_tab_width_command, tui_set_win_height_command)
782 (tui_set_focus_command, tui_scroll_forward_command)
783 (tui_scroll_backward_command, tui_scroll_left_command)
784 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
785 (tui_set_win_height): Constify.
786 * tui/tui-layout.c (tui_layout_command): Constify.
787 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
788 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
789 (proc_untrace_sysexit_cmd): Constify.
790 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
791 (threadset_test_cmd, threadlist_update_test_cmd)
792 (threadalive_test): Constify.
793 * objc-lang.c (print_object_command): Constify.
794 * command.h (add_com): Constify.
795 * cli/cli-dump.c (restore_command): Constify.
796 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
797 (help_command, complete_command, shell_command, edit_command)
798 (list_command, disassemble_command, make_command)
799 (apropos_command, alias_command): Constify.
800 * cli/cli-script.c (document_command, define_command)
801 (while_command, if_command, validate_comname): Constify.
802 * cli/cli-decode.c (struct cmd_list_element): Change type of
803 "fun".
804 * target.c (do_monitor_command, flash_erase_command): Constify.
805 * regcache.c (reg_flush_command): Constify.
806 * reverse.c (reverse_step, reverse_next, reverse_stepi)
807 (reverse_nexti, reverse_continue, reverse_finish)
808 (save_bookmark_command, goto_bookmark_command)
809 (exec_reverse_once): Constify.
810 * python/python.c (python_interactive_command, python_command):
811 Constify.
812 * typeprint.c (ptype_command, whatis_command, whatis_exp):
813 Constify.
814 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
815 * gcore.c (gcore_command): Constify.
816
85c4be7c
TT
8172017-11-07 Tom Tromey <tom@tromey.com>
818
819 * printcmd.c (x_command): Call set_repeat_arguments.
820 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
821 * top.c (repeat_arguments): New global.
822 (set_repeat_arguments): New function.
823 (execute_command): Handle repeat_arguments.
824 (show_commands): Calls set_repeat_arguments.
825 * command.h (set_repeat_arguments): Declare.
826
022643b4
TT
8272017-11-07 Tom Tromey <tom@tromey.com>
828
829 * stack.c (backtrace_command): Use std::string.
830 (backtrace_command_1): Make "count_exp" const.
831
5614fb77
TT
8322017-11-07 Tom Tromey <tom@tromey.com>
833
834 * source.c (directory_switch, mod_path, add_path): Constify.
835 * defs.h (add_path, mod_path, directory_switch): Constify.
836 * mi/mi-cmd-env.c (env_mod_path): Constify.
837
6be9a197
TT
8382017-11-07 Tom Tromey <tom@tromey.com>
839
840 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
841 (run_command_1, continue_command, step_1, jump_command)
842 (signal_command, until_command, advance_command, finish_command)
843 (attach_command): Update.
844
c2252c0d
TT
8452017-11-07 Tom Tromey <tom@tromey.com>
846
847 * command.h (set_cmd_cfunc): Don't declare.
848 * cli/cli-decode.c (set_cmd_cfunc): Now static.
849
1ee870c5
TT
8502017-11-07 Tom Tromey <tom@tromey.com>
851
852 * stack.c (select_frame_command): Constify.
853 * cli/cli-decode.c (add_com_suppress_notification): Constify.
854 * command.h (add_com_suppress_notification): Constify.
855
ee7ddd71
TT
8562017-11-07 Tom Tromey <tom@tromey.com>
857
858 * breakpoint.c (stop_command): Constify.
859 * cli/cli-decode.c (struct cmd_list_element): Constify.
860 * command.h (add_abbrev_prefix_cmd): Constify.
861
95e95a6d
PA
8622017-11-07 Pedro Alves <palves@redhat.com>
863
864 * breakpoint.c (extract_bp_kind): New enum.
865 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
866 factored out from ...
867 (extract_bp_number_and_location): ... here.
868 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
869
cc638e86
PA
8702017-11-07 Pedro Alves <palves@redhat.com>
871
872 * breakpoint.c (extract_bp_number_and_location): Change return
873 type to void. Throw error instead of warning.
874 (enable_disable_command): Adjust.
875
d0fe4701
XR
8762017-11-07 Xavier Roirand <roirand@adacore.com>
877 Pedro Alves <palves@redhat.com>
878
879 * breakpoint.c (map_breakpoint_number_range): New, factored out
880 from ...
881 (map_breakpoint_numbers): ... here.
882 (find_location_by_number): Change parameters from string to
883 breakpoint number and location.
884 (extract_bp_number_and_location): New function.
885 (enable_disable_bp_num_loc)
886 (enable_disable_breakpoint_location_range)
887 (enable_disable_command): New functions, factored out ...
888 (enable_command, disable_command): ... these functions, and
889 adjusted to support ranges.
890 * NEWS: Document enable/disable breakpoint location range feature.
891
635dc5b2
LM
8922017-11-06 Luis Machado <luis.machado@linaro.org>
893
894 * MAINTAINERS (Write After Approval): Update my e-mail address.
895
556e5da5
PA
8962017-11-06 Pedro Alves <palves@redhat.com>
897
898 * gnu-nat.c (gnu_terminal_init): Delete.
899 (gnu_target): Don't install gnu_terminal_init.
900 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
901 (child_terminal_init): ... this function.
902
d1928160
PA
9032017-11-06 Pedro Alves <palves@redhat.com>
904
905 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
906 sgtty.h.
907 * config.in, configure: Regenerate.
908
6aa899ce
PA
9092017-11-06 Pedro Alves <palves@redhat.com>
910
911 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
912 (async_init_signals): Adjust.
913 (handle_stop_sig): Rename to ...
914 (handle_sigtstp): ... this.
915 (async_stop_sig): Rename to ...
916 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
917 SIGTSTP path.
918 * event-top.h: Move signal.h include to the top. Check SIGTSTP
919 instead of STOP_SIGNAL thoughout.
920 (handle_stop_sig): Rename to ...
921 (handle_sigtstp): ... this.
922 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
923
a94799ac
PA
9242017-11-06 Pedro Alves <palves@redhat.com>
925
926 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
927 longer set flags twice in row.
928
726e1356
PA
9292017-11-06 Pedro Alves <palves@redhat.com>
930
931 * Makefile.in (SER_HARDWIRE): Update comment.
932 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
933 * common/gdb_termios.h: Delete file.
934 * common/job-control.c: Include termios.h and unistd.h instead of
935 gdb_termios.h.
936 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
937 check.
938 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
939 Remove sgtty code.
940 * configure.ac: No longer check for termio.h and sgtty.h.
941 * configure: Regenerate.
942 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
943 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
944 Replace PROCESS_GROUP_TYPE references with pid_t references
945 throughout.
946 (gdb_getpgrp): Delete.
947 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
948 (child_terminal_inferior): Remove comment. Remove sgtty code.
949 (child_terminal_ours_1): Use tcgetpgrp directly instead of
950 gdb_getpgrp. Use serial_set_tty_state instead aof
951 serial_noflush_set_tty_state. Remove sgtty code.
952 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
953 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
954 (inferior_process_group): Now returns pid_t.
955 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
956 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
957 * ser-event.c (serial_event_ops): Update.
958 * ser-go32.c (dos_noflush_set_tty_state): Delete.
959 (dos_ops): Update.
960 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
961 * ser-pipe.c (pipe_ops): Update.
962 * ser-tcp.c (tcp_ops): Update.
963 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
964 HAVE_TERMIOS checks.
965 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
966 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
967 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
968 assume termios.
969 (hardwire_noflush_set_tty_state): Delete.
970 (hardwire_print_tty_state, hardwire_drain_output)
971 (hardwire_flush_output, hardwire_flush_input)
972 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
973 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
974 code, and assume termios.
975 (hardwire_ops): Update.
976 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
977 * serial.c (serial_noflush_set_tty_state): Delete.
978 * serial.h (serial_noflush_set_tty_state): Delete.
979 (serial_ops::noflush_set_tty_state): Delete.
980
1cfb73db
UW
9812017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
982
983 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
984 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
985 (COMMON_OBS): Remove doublest.o and dfp.o.
986 Do not build target-float.c (instead of doublest.c)
987 with -Wformat-nonliteral.
988
989 * doublest.c: Remove file.
990 * doublest.h: Remove file.
991 * dfp.c: Remove file.
992 * dfp.h: Remove file.
993
994 * target-float.c: Do not include "doublest.h" and "dfp.h".
995 (DOUBLEST): Move here from doublest.h.
996 (enum float_kind): Likewise.
997 (FLOATFORMAT_CHAR_BIT): Likewise.
998 (FLOATFORMAT_LARGEST_BYTES): Likewise.
999 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
1000 (floatformat_precision): Likewise.
1001 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
1002 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
1003 Likewise.
1004 (host_float_format, host_double_format, host_long_double_format):
1005 Likewise.
1006 (floatformat_to_string, floatformat_from_string): Likewise.
1007 (floatformat_to_doublest): Likewise. Also, inline the original
1008 convert_floatformat_to_doublest.
1009 (floatformat_from_doublest): Likewise. Also, inline the original
1010 convert_floatformat_from_doublest.
1011
1012 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
1013 (MAX_DECIMAL_STRING): Move here from dfp.c.
1014 (match_endianness): Likewise.
1015 (set_decnumber_context, decimal_check_errors): Likewise.
1016 (decimal_from_number, decimal_to_number): Likewise.
1017 (decimal_to_string, decimal_from_string): Likewise. Make static.
1018 (decimal_from_longest, decimal_from_ulongest): Likewise.
1019 (decimal_to_longest): Likewise.
1020 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
1021 (decimal_convert): Likewise.
1022
b07e9c46
UW
10232017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1024
1025 * doublest.c: Do not include "gdbtypes.h".
1026 (extract_typed_floating): Remove.
1027 (store_typed_floating): Remove.
1028 (convert_typed_floating): Remove.
1029 * doublest.h (struct type): Remove.
1030 (DOUBLEST_PRINT_FORMAT): Remove.
1031 (DOUBLEST_SCAN_FORMAT): Remove.
1032 (extract_typed_floating): Remove.
1033 (store_typed_floating): Remove.
1034 (convert_typed_floating): Remove.
1035
1036 * dfp.c (decimal_from_doublest): Remove.
1037 (decimal_to_doublest): Remove.
1038 * dfp.h: Do not include "doublest.h".
1039 (decimal_from_doublest): Remove.
1040 (decimal_to_doublest): Remove.
1041
1042 * value.c: Do not include "doublest.h" and "dfp.h".
1043 (value_as_double): Remove.
1044 (unpack_double): Remove.
1045 (value_from_double): Remove.
1046 (value_from_decfloat): Remove.
1047 * value.h: Do not include "doublest.h".
1048 (value_as_double): Remove.
1049 (unpack_double): Remove.
1050 (value_from_double): Remove.
1051 (value_from_decfloat): Remove.
1052
3b2ca824
UW
10532017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1054
1055 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
1056 (i386_extract_return_value): Use target_float_convert.
1057 (i386_store_return_value): Likewise.
1058 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
1059 (i387_value_to_register): Likewise.
1060 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
1061 (ia64_register_to_value): Use target_float_convert.
1062 (ia64_value_to_register): Likewise.
1063 (ia64_extract_return_value): Likewise.
1064 (ia64_store_return_value): Likewise.
1065 (ia64_push_dummy_call): Likewise.
1066 * m68k-tdep.c: Include "target-float.h".
1067 (m68k_register_to_value): Use target_float_convert.
1068 (m68k_value_to_register): Likewise.
1069 (m68k_svr4_extract_return_value): Likewise.
1070 (m68k_svr4_store_return_value): Likewise.
1071 * ppc-sysv-tdep.c: Include "target-float.h".
1072 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
1073 (do_ppc_sysv_return_value): Likewise.
1074 (ppc64_sysv_abi_push_freg): Likewise.
1075 (ppc64_sysv_abi_return_value_base): Likewise.
1076 * rs6000-aix-tdep.c: Include "target-float.h".
1077 (rs6000_push_dummy_call): Use target_float_convert.
1078 (rs6000_return_value): Likewise.
1079 * rs6000-lynx178-tdep.c: Include "target-float.h".
1080 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
1081 (rs6000_lynx178_return_value): Likewise.
1082 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
1083 (rs6000_register_to_value): Use target_float_convert.
1084 (rs6000_value_to_register): Likewise.
1085 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
1086 (arm_extract_return_value): Use target_float_convert.
1087 (arm_store_return_value): Likewise.
1088 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
1089 (sh_register_convert_to_virtual): Use target_float_convert.
1090 (sh_register_convert_to_raw): Likewise.
1091 * sh64-tdep.c: Include "target-float.h".
1092 (sh64_extract_return_value): Use target_float_convert.
1093 (sh64_register_convert_to_virtual): Likewise.
1094 (sh64_register_convert_to_raw): Likewise. Fix argument types.
1095
14ad9311
UW
10962017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1097
1098 * target-float.c (floatformat_to_host_double): New function.
1099 (floatformat_from_host_double): Likewise.
1100 (target_float_to_host_double): Likewise.
1101 (target_float_from_host_double): Likewise.
1102 * target-float.h (target_float_to_host_double): Add prototype.
1103 (target_float_from_host_double): Likewise.
1104
1105 * guile/scm-value.c: Include "target-float.h".
1106 (gdbscm_value_to_real): Use target_float_to_host_double.
1107 Handle integer source values via value_as_long.
1108 * guile/scm-math.c: Include "target-float.h". Do not include
1109 "doublest.h", "dfp.h", and "expression.h".
1110 (vlscm_convert_typed_number): Use target_float_from_host_double.
1111 (vlscm_convert_number): Likewise.
1112
1113 * python/py-value.c (valpy_float): Use target_float_to_host_double.
1114 (convert_value_from_python): Use target_float_from_host_double.
1115
50eff16b
UW
11162017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1117
1118 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
1119 (cast_from_fixed): Likewise.
1120 (ada_scaling_type): New function.
1121 (ada_delta): Return value instead of DOUBLEST. Perform target
1122 arithmetic instead of host arithmetic.
1123 (scaling_factor): Rename to ...
1124 (ada_scaling_factor) ... this. Make non-static. Return value instead
1125 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
1126 (ada_fixed_to_float): Remove.
1127 (ada_float_to_fixed): Remove.
1128 * ada-lang.h (ada_fixed_to_float): Remove.
1129 (ada_float_to_fixed): Remove.
1130 (ada_delta): Return value instead of DOUBLEST.
1131 (ada_scaling_factor): Add prototype.
1132
1133 * ada-typeprint.c: Include "target-float.h".
1134 (print_fixed_point_type): Perform target arithmetic instead of
1135 host arithmetic.
1136 * ada-valprint.c: Include "target-float.h".
1137 (ada_val_print_num): Perform target arithmetic instead of
1138 host arithmetic for fixed-point types.
1139
66c02b9e
UW
11402017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1141
1142 * target-float.c: Include <math.h>.
1143 (floatformat_binop): New function.
1144 (floatformat_compare): Likewise.
1145 (target_float_binop): Likewise.
1146 (target_float_compare): Likewise.
1147 * target-float.h: Include "expression.h".
1148 (target_float_binop): Add prototype.
1149 (target_float_compare): Likewise.
1150
1151 * valarith.c: Do not include "doublest.h" and "dfp.h".
1152 Include "common/byte-vector.h".
1153 (value_args_as_decimal): Remove, replace by ...
1154 (value_args_as_target_float): ... this function. Handle both
1155 binary and decimal target floating-point formats.
1156 (scalar_binop): Handle both binary and decimal FP using
1157 value_args_as_target_float and target_float_binop.
1158 (value_equal): Handle both binary and decimal FP using
1159 value_args_as_target_float and target_float_compare.
1160 (value_less): Likewise.
1161 (value_pos): Handle all scalar types as simple copy.
1162 (value_neg): Handle all scalar types via BINOP_SUB from 0.
1163 * dfp.c (decimal_binop): Throw error instead of internal_error
1164 when called with an unsupported operation code.
1165
f69fdf9b
UW
11662017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1167
1168 * target-float.c (target_float_to_string): New function.
1169 (target_float_from_string): New function.
1170 * target-float.h (target_float_to_string): Add prototype.
1171 (target_float_from_string): Add prototype.
1172
1173 * valprint.c: Include "target-float.h". Do not include
1174 "doublest.h" and "dfp.h".
1175 (print_floating): Use target_float_to_string.
1176 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
1177 (printf_floating): Use target_float_to_string.
1178 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
1179 (print_i387_value): Use target_float_to_string.
1180 * mips-tdep.c: Include "target-float.h".
1181 (mips_print_fp_register): Use target_float_to_string.
1182 * sh64-tdep.c: Include "target-float.h".
1183 (sh64_do_fp_register): Use target_float_to_string.
1184
1185 * parse.c: Include "target-float.h". Do not include
1186 "doublest.h" and "dfp.h".
1187 (parse_float): Use target_float_from_string.
1188 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
1189 (define_symbol): Use target_float_from_string.
1190 * gdbarch-selftests.c: Include "target-float.h".
1191 (register_to_value_test): Use target_float_from_string.
1192
70100014
UW
11932017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1194
1195 * Makefile.c (SFILES): Add target-float.c.
1196 (HFILES_NO_SRCDIR): Add target-float.h.
1197 (COMMON_OBS): Add target-float.o.
1198 * target-float.h: New file.
1199 * target-float.c: New file.
1200
1201 * doublest.c (floatformat_classify): Fix detection of float_zero.
1202
1203 * gdbtypes.c (is_floating_type): New function.
1204 * gdbtypes.h (is_floating_type): Add prototype.
1205
1206 * value.c: Do not include "floatformat.h".
1207 (unpack_double): Use target_float_is_valid.
1208 (is_floating_value): New function.
1209 * value.h (is_floating_value): Add prototype-
1210
1211 * valarith.c: Include "target-float.h".
1212 (value_logical_not): Use target_float_is_zero.
1213
1214 * python/py-value.c: Include "target-float.h".
1215 (valpy_nonzero): Use target_float_is_zero.
1216
ab4b1c46
TT
12172017-11-04 Tom Tromey <tom@tromey.com>
1218
1219 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
1220
454dafbd
TT
12212017-11-04 Tom Tromey <tom@tromey.com>
1222
1223 * breakpoint.c (set_momentary_breakpoint): Return
1224 breakpoint_up.
1225 (until_break_command): Update.
1226 (new_until_break_fsm): Change argument types to
1227 breakpoint_up.
1228 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
1229 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
1230 Remove.
1231 * infcmd.c (finish_forward): Update.
1232 * breakpoint.h (set_momentary_breakpoint)
1233 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
1234 (make_cleanup_delete_breakpoint): Remove.
1235 (struct breakpoint_deleter): New.
1236 (breakpoint_up): New typedef.
1237 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
1238 (insert_exception_resume_breakpoint): Update.
1239 (insert_exception_resume_from_probe): Update.
1240 (insert_longjmp_resume_breakpoint): Update.
1241 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
1242 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
1243 * infcall.c (call_function_by_hand_dummy): Update
1244
331b71e5
TT
12452017-11-04 Tom Tromey <tom@tromey.com>
1246
1247 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
1248
9f584b37
TT
12492017-11-04 Tom Tromey <tom@tromey.com>
1250
1251 * linux-tdep.c (linux_core_info_proc_mappings): Use
1252 gdb::def_vector.
1253 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
1254 "size" argument.
1255 (linux_corefile_thread): Update.
1256 (linux_make_corefile_notes): Remove unused variable.
1257
779bc38e
TT
12582017-11-04 Tom Tromey <tom@tromey.com>
1259
1260 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
1261 gdb::byte_vector.
1262
ed2b3126
TT
12632017-11-04 Tom Tromey <tom@tromey.com>
1264
1265 * objfiles.c (do_free_objfile_cleanup): Remove.
1266 * compile/compile-object-load.c (compile_object_load): Update.
1267 * objfiles.h (make_cleanup_free_objfile): Remove.
1268
7f6743fd
TT
12692017-11-04 Tom Tromey <tom@tromey.com>
1270
1271 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
1272 (adi_read_versions): Change "tags" to "gdb_byte *".
1273 (adi_print_versions): Likewise.
1274
c80049d3
TT
12752017-11-04 Tom Tromey <tom@tromey.com>
1276
1277 * breakpoint.c
1278 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
1279 from start_rbreak_breakpoints.
1280 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
1281 * breakpoint.h (class scoped_rbreak_breakpoints): New.
1282 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
1283 * symtab.c (do_end_rbreak_breakpoints): Remove.
1284 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
1285
167b0be1
TT
12862017-11-04 Tom Tromey <tom@tromey.com>
1287
1288 * cp-namespace.c (reset_directive_searched): Remove.
1289 (cp_lookup_symbol_via_imports): Use scoped_restore.
1290 * cp-support.c (reset_directive_searched): Remove.
1291 (make_symbol_overload_list_using): Use scoped_restore.
1292 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
1293 (reset_directive_searched): Remove.
1294
5eae7aea
TT
12952017-11-04 Tom Tromey <tom@tromey.com>
1296
1297 * symfile.c (find_separate_debug_file_by_debuglink): Use
1298 unique_xmalloc_ptr.
1299
c6bcad5f
TT
13002017-11-04 Tom Tromey <tom@tromey.com>
1301
1302 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
1303 type of "info".
1304 (compute_stack_depth): Likewise.
1305 (do_compile_dwarf_expr_to_c): Use std::vector.
1306
20dcd8ca
TT
13072017-11-04 Tom Tromey <tom@tromey.com>
1308
1309 * compile/compile-object-load.c (link_callbacks_einfo): Use
1310 std::string.
1311
33c7c59d
TT
13122017-11-04 Tom Tromey <tom@tromey.com>
1313
1314 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
1315 Use scoped_free_pendings.
1316 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
1317 scoped_free_pendings.
1318 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
1319 (xcoff_initial_scan): Likewise.
1320 * buildsym.c (reset_symtab_globals): Update comment.
1321 (scoped_free_pendings): Rename from really_free_pendings.
1322 (prepare_for_building): Update comment.
1323 (buildsym_init): Likewise.
1324 * buildsym.h (class scoped_free_pendings): New class.
1325 (really_free_pendings): Don't declare.
1326
67fa57cf
UW
13272017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
1328
1329 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
1330 output when converting a zero value to a special byteorder format.
1331
f26ae15b
YQ
13322017-11-02 Yao Qi <yao.qi@linaro.org>
1333
1334 * frame.c (do_frame_register_read): Remove aspace.
1335 * jit.c (jit_frame_sniffer): Likwise.
1336 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
1337 * regcache.c (regcache::regcache): Pass nullptr.
1338 (regcache_print): Caller updated.
1339 * regcache.h (regcache::regcache): Remove one constructor
1340 parameter aspace.
1341
6c6e9412
YQ
13422017-11-02 Yao Qi <yao.qi@linaro.org>
1343
1344 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
1345
8b86c959
YQ
13462017-11-02 Yao Qi <yao.qi@linaro.org>
1347
1348 * breakpoint.c (insert_single_step_breakpoints): Update.
1349 * frame.c (struct frame_info) <aspace>: Add const.
1350 (frame_save_as_regcache): Add const.
1351 (get_frame_address_space): Return const address_space *.
1352 * frame.h (get_frame_address_space): Update declaration.
1353 * infrun.c (struct step_over_info) <aspace>: Add const.
1354 (set_step_over_info): Make aspace const.
1355 (displaced_step_prepare_throw): Change variable const.
1356 (resume): Likewise.
1357 (proceed): Likewise.
1358 (adjust_pc_after_break): Likewise.
1359 (save_waitstatus): Likewise.
1360 (handle_signal_stop): Likewise.
1361 (keep_going_pass_signal): Likewise.
1362 * jit.c (jit_frame_sniffer): Add const.
1363 * mips-tdep.c (mips_single_step_through_delay): Likewise.
1364 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
1365 * record-full.c (record_full_wait_1): Likewise.
1366 * regcache.c (regcache::regcache): Change parameter to const.
1367 * regcache.h (regcache::regcache): Likewise.
1368 (regcache::aspace): Return const address_space *.
1369 (regcache) <m_aspace>: Add const.
1370
a01bda52
YQ
13712017-11-02 Yao Qi <yao.qi@linaro.org>
1372
1373 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
1374 * frame.c (create_sentinel_frame): Likewise.
1375 * infrun.c (displaced_step_prepare_throw): Likewise.
1376 (resume): Likewise.
1377 (thread_still_needs_step_over_bp): Likewise.
1378 (proceed): Likewise.
1379 (do_target_wait): Likewise.
1380 (adjust_pc_after_break): Likewise.
1381 (handle_syscall_event): Likewise.
1382 (save_waitstatus): Likewise.
1383 (handle_inferior_event_1): Likewise.
1384 (handle_signal_stop): Likewise.
1385 (keep_going_pass_signal): Likewise.
1386 * linux-nat.c (status_callback): Likewise.
1387 (save_stop_reason): Likewise.
1388 (resume_stopped_resumed_lwps): Likewise.
1389 * record-full.c (record_full_exec_insn): Likewise.
1390 (record_full_wait_1): Likewise.
1391 * regcache.c (get_regcache_aspace): Remove.
1392 * regcache.h (get_regcache_aspace): Remove.
1393
d999647b
YQ
13942017-11-02 Yao Qi <yao.qi@linaro.org>
1395
1396 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
1397 (init_regcache_descr): Use gdbarch_num_regs.
1398 (regcache::regcache): Likewise.
1399 (regcache::get_register_status): Likewise.
1400 (regcache::assert_raw_regnum): Likewise.
1401 (regcache::cooked_read): Likewise.
1402 (regcache::cooked_read_value): Likewise.
1403 (regcache::cooked_write): Likewise.
1404 (regcache::dump): Likewise.
1405 (regcache::num_raw_registers): New method.
1406 * regcache.h (class regcache) <num_raw_registers>: New.
1407
4e888c28
YQ
14082017-11-02 Yao Qi <yao.qi@linaro.org>
1409
1410 * regcache.c (regcache::assert_regnum): New method.
1411 (regcache::invalidate): Call assert_regnum.
1412 (regcache::raw_update): Likewise.
1413 (regcache::raw_write): Likewise.
1414 (regcache::raw_read_part): Likewise.
1415 (regcache::raw_write_part): Likewise.
1416 (regcache::raw_supply): Likewise.
1417 (regcache::raw_supply_integer): Likewise.
1418 (regcache::raw_supply_zeroed): Likewise.
1419 (regcache::raw_collect): Likewise.
1420 (regcache::raw_collect_integer): Likewise.
1421 * regcache.h (regcache::assert_regnum): Declare.
1422
2e1b49b3
YQ
14232017-11-02 Yao Qi <yao.qi@linaro.org>
1424
1425 * regcache.c (regcache::dump): Remove code.
1426
6c5218df
YQ
14272017-11-02 Yao Qi <yao.qi@linaro.org>
1428
1429 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
1430 Remove.
1431 <sizeof_cooked_register_status>: Remove.
1432 (init_regcache_descr): Update.
1433 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
1434 (regcache::save): Likewise.
1435 (regcache::dump): Likewise.
1436
dcc31d28
JB
14372017-11-01 James Bowman <james.bowman@ftdichip.com>
1438
1439 * ft32-tdep.c (ft32_fetch_instruction): New function.
1440 (ft32_analyze_prologue): Use ft32_fetch_instruction().
1441
3a87ae65
SM
14422017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1443
1444 * cli/cli-script.c (execute_control_command): Rename to ...
1445 (execute_control_command_1): ... this.
1446 (execute_control_command): New function.
1447
09b847f3
SM
14482017-10-31 Simon Marchi <simon.marchi@ericsson.com>
1449
1450 * tracepoint.c (tfind_command): Remove const_cast.
1451
f871c485
MG
14522017-10-30 Mike Gulick <mgulick@mathworks.com>
1453
1454 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
1455
b020ff80
SM
14562017-10-30 Simon Marchi <simon.marchi@ericsson.com>
1457
1458 * common/common-utils.h (in_inclusive_range): New function.
1459 * arm-tdep.c (arm_record_extension_space): Use
1460 in_inclusive_range.
1461 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
1462 * cris-tdep.c (cris_spec_reg_applicable): Use
1463 in_inclusive_range.
1464
1b81856f
PA
14652017-10-30 Pedro Alves <palves@redhat.com>
1466 Simon Marchi <simon.marchi@ericsson.com>
1467
1468 * remote.c (remote_set_syscall_catchpoint): Build a std::string
1469 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
1470
31b833b3
PA
14712017-10-30 Pedro Alves <palves@redhat.com>
1472
1473 * common/common-utils.c (string_appendf, string_vappendf): New
1474 functions.
1475 * common/common-utils.h (string_appendf, string_vappendf): New
1476 declarations.
1477 * unittests/common-utils-selftests.c (string_appendf_func)
1478 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
1479 (string_vappendf_tests): New functions.
1480 (_initialize_common_utils_selftests): Register "string_appendf" and
1481 "string_vappendf tests".
1482
4a250334
PA
14832017-10-30 Pedro Alves <palves@redhat.com>
1484
1485 * unittests/common-utils-selftests.c (format_func): New typedef.
1486 (string_printf_tests, string_vprintf_tests): Tests factored out
1487 and merged to ...
1488 (test_format_func): ... this new function.
1489 (string_printf_tests, string_vprintf_tests): Reimplement on top of
1490 test_format_func.
1491
16c5c17e
SM
14922017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1493
1494 * darwin-nat.c: Remove include of gdb.h.
1495
7ca51576
SM
14962017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1497
1498 * xtensa-xtregs.c: Fix formatting issues.
1499
c1342859
SM
15002017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1501
1502 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
1503
484d8d36
MD
15042017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
1505
1506 PR python/21213
1507 * python/py-infthread.c (thpy_get_inferior): Increment reference
1508 of inferior before returning it.
1509
b5540b5f
SM
15102017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1511
1512 * unittests/common-utils-selftests.c (format): Add
1513 ATTRIBUTE_PRINTF.
1514
5a9dcda1
SM
15152017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1516
1517 * xml-syscall.c (struct syscall_desc): Add constructor.
1518 <name>: Change type to std::string.
1519 (syscall_desc_up): New typedef.
1520 (syscall_desc_p): Remove typeder.
1521 (DEF_VEC_P(syscall_desc_p)): Remove.
1522 (struct syscall_group_desc): Add constructor.
1523 <name>: Change type to std::string.
1524 <syscalls>: Change type to std::vector.
1525 (syscall_group_desc_up): New typedef.
1526 (syscall_group_desc_p): Remove typedef.
1527 (DEF_VEC_P(syscall_group_desc_p)): Remove.
1528 (struct syscalls_info) <syscalls>: Change type to std::vector of
1529 unique_ptr.
1530 <groups>: Likewise.
1531 <my_gdb_datadir>: Change type to std::string.
1532 (syscalls_info_up): New typedef.
1533 (allocate_syscalls_info): Remove.
1534 (syscalls_info_free_syscalls_desc): Remove.
1535 (syscalls_info_free_syscall_group_desc): Remove.
1536 (free_syscalls_info): Remove.
1537 (make_cleanup_free_syscalls_info): Remove.
1538 (syscall_group_create_syscall_group_desc): Adjust.
1539 (syscall_group_add_syscall): Adjust.
1540 (syscall_create_syscall_desc): Adjust.
1541 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
1542 (init_syscalls_info): Adjust.
1543 (syscall_group_get_group_by_name): Adjust.
1544 (xml_get_syscall_number): Adjust.
1545 (xml_get_syscall_name): Adjust.
1546 (xml_list_of_syscalls): Adjust.
1547 (xml_list_syscalls_by_group): Adjust.
1548 (xml_list_of_groups): Adjust.
1549
45461e0d
SM
15502017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1551
1552 * probe.h: Don't include gdb_vecs.h.
1553 (DEF_VEC_P (probe_p)): Remove.
1554 (find_probes_in_objfile): Return an std::vector.
1555 * probe.c (find_probes_in_objfile): Likewise.
1556 * breakpoint.c (breakpoint_objfile_data)
1557 <longjmp_probes>: Change type to std::vector.
1558 <exception_probes>: Likewise.
1559 (free_breakpoint_probes): Don't manually free vectors.
1560 (create_longjmp_master_breakpoint): Adjust.
1561 (create_exception_master_breakpoint): Adjust.
1562 * solib-svr4.c (svr4_create_probe_breakpoints): Change
1563 parameter type, adjust.
1564 (svr4_create_solib_event_breakpoints): Adjust.
1565
43dce439
SM
15662017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1567
1568 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
1569 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
1570 with new.
1571 (free_breakpoint_probes): Rename to ...
1572 (free_breakpoint_objfile_data): ... this, and call delete on
1573 bp_objfile_data..
1574
6a1b9516
SM
15752017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1576
1577 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
1578 (loaded_script_ptr): Remove typedef.
1579 (DEF_VEC_P (loaded_script_ptr)): Remove.
1580 (struct collect_matching_scripts_data): Add constructor.
1581 <scripts_p>: Change type to (pointer to) std::vector.
1582 (collect_matching_scripts_data): Adjust.
1583 (sort_scripts_by_name): Make suitable for std::sort.
1584 (print_scripts): Don't sort vector, adjust to std::vector.
1585 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
1586
593e3209
SM
15872017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1588
1589 * symfile.c (filename_language): Make struct, not typedef. Add
1590 constructor.
1591 <ext>: Change type to std::string.
1592 (DEF_VEC_O (filename_language)): Remove.
1593 (filename_language_table): Change type to std::vector.
1594 (add_filename_language): Adjust.
1595 (set_ext_lang_command): Adjust.
1596 (info_ext_lang_command): Adjust.
1597 (deduce_language_from_filename): Adjust.
1598 (class scoped_restore_filename_language_table): Remove.
1599 (test_filename_language): Use scoped_restore.
1600 (test_set_ext_lang_command): Use scoped_restore, adjust to
1601 std::vector change.
1602
32fa66eb
SM
16032017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1604
1605 * symfile.c: Include selftest.h.
1606 (class scoped_restore_filename_language_table): New.
1607 (test_filename_language): New test.
1608 (test_set_ext_lang_command): New test.
1609 (_initialize_symfile): Register tests.
1610
4a27f119
KS
16112017-10-27 Keith Seitz <keiths@redhat.com>
1612
1613 * breakpoint.c (print_breakpoint_location): Use the symbol saved
1614 in the bp_location, falling back to find_pc_sect_function when
1615 needed.
1616 (add_location_to_breakpoint): Save sal->symbol.
1617 * breakpoint.h (struct bp_location) <symbol>: New field.
1618 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
1619 * symtab.h (struct symtab_and_line) <symbol>: New field.
1620
a43f3893
PF
16212017-10-26 Patrick Frants <osscontribute@gmail.com>
1622
7453e6b2 1623 PR gdb/13669
a43f3893
PF
1624 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
1625 to rewind obstack.
1626
23cc4e1b
PA
16272017-10-26 Pedro Alves <palves@redhat.com>
1628
1629 * remote.c (remote_async_terminal_ours_p): Delete.
1630 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
1631 Remove references to 'remote_async_terminal_ours_p'.
1632
6abc18bb
YQ
16332017-10-26 Yao Qi <yao.qi@linaro.org>
1634
1635 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
1636
bd522513
YQ
16372017-10-26 Yao Qi <yao.qi@linaro.org>
1638
1639 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
1640 aspace const.
1641 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
1642 Likewise.
1643 * breakpoint.c (bpstat_check_location): Remove cast.
1644 (breakpoint_hit_catch_fork): Make aspce const.
1645 (breakpoint_hit_catch_solib): Likewise.
1646 (breakpoint_hit_catch_exec): Likewise.
1647 (breakpoint_hit_ranged_breakpoint): Likewise.
1648 (breakpoint_hit_watchpoint): Likewise.
1649 (base_breakpoint_breakpoint_hit): Likewise.
1650 (bkpt_breakpoint_hit): Likewise.
1651 (dprintf_breakpoint_hit): Likewise.
1652 (tracepoint_breakpoint_hit): Likewise.
1653 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
1654
accd0bcd
YQ
16552017-10-26 Yao Qi <yao.qi@linaro.org>
1656
1657 * breakpoint.c (breakpoint_location_address_match): Change
1658 "struct address_space *" to "const address_space".
1659 (breakpoint_location_address_range_overlap): Likewise.
1660 (breakpoint_here_p): Likewise.
1661 (breakpoint_in_range_p): Likewise.
1662 (moribund_breakpoint_here_p): Likewise.
1663 (bp_location_inserted_here_p): Likewise.
1664 (software_breakpoint_inserted_here_p): Likewise.
1665 (hardware_breakpoint_inserted_here_p): Likewise.
1666 (hardware_watchpoint_inserted_in_range): Likewise.
1667 (bpstat_check_location): Likewise.
1668 (bpstat_stop_status): Likewise.
1669 (breakpoint_address_match): Likewise.
1670 (breakpoint_address_match_range): Likewise.
1671 (breakpoint_location_address_match): Likewise.
1672 (breakpoint_location_address_range_overlap): Likewise.
1673 (insert_single_step_breakpoint): Likewise.
1674 (breakpoint_has_location_inserted_here): Likewise.
1675 (single_step_breakpoint_inserted_here_p): Likewise.
1676 (pc_at_non_inline_function): Likewise.
1677 * breakpoint.h (bpstat_stop_status): Update declaration.
1678 (breakpoint_here_p): Likewise.
1679 (breakpoint_in_range_p): Likewise.
1680 (moribund_breakpoint_here_p): Likewise.
1681 (breakpoint_inserted_here_p): Likewise.
1682 (software_breakpoint_inserted_here_p): Likewise.
1683 (hardware_breakpoint_inserted_here_p): Likewise.
1684 (breakpoint_has_location_inserted_here): Likewise.
1685 (single_step_breakpoint_inserted_here_p): Likewise.
1686 (hardware_watchpoint_inserted_in_range): Likewise.
1687 (breakpoint_address_match): Likewise.
1688 (insert_single_step_breakpoint): Likewise.
1689 (pc_at_non_inline_function): Likewise.
1690 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
1691 * record.c (record_check_stopped_by_breakpoint): Likewise.
1692 * record.h (record_check_stopped_by_breakpoint): Likewise.
1693 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
1694
ac7936df
YQ
16952017-10-25 Yao Qi <yao.qi@linaro.org>
1696
1697 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
1698 regcache->arch () instead get_regcache_arch.
1699 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
1700 Likewise.
1701 (aarch64_fbsd_store_inferior_registers): Likewise.
1702 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
1703 (store_gregs_to_thread): Likewise.
1704 (fetch_fpregs_from_thread): Likewise.
1705 (store_fpregs_to_thread): Likewise.
1706 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
1707 (aarch64_store_return_value): Likewise.
1708 (aarch64_software_single_step): Likewise.
1709 * aix-thread.c (aix_thread_wait): Likewise.
1710 (supply_reg32): Likewise.
1711 (supply_sprs64): Likewise.
1712 (supply_sprs32): Likewise.
1713 (fill_gprs64): Likewise.
1714 (fill_gprs32): Likewise.
1715 (fill_sprs64): Likewise.
1716 (fill_sprs32): Likewise.
1717 (store_regs_user_thread): Likewise.
1718 (store_regs_kernel_thread): Likewise.
1719 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
1720 (alphabsd_store_inferior_registers): Likewise.
1721 * alpha-tdep.c (alpha_extract_return_value): Likewise.
1722 (alpha_store_return_value): Likewise.
1723 (alpha_deal_with_atomic_sequence): Likewise.
1724 (alpha_next_pc): Likewise.
1725 (alpha_software_single_step): Likewise.
1726 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
1727 (amd64bsd_store_inferior_registers): Likewise.
1728 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
1729 Likewise.
1730 (amd64_linux_store_inferior_registers): Likewise.
1731 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1732 (amd64_collect_native_gregset): Likewise.
1733 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
1734 (amd64obsd_collect_uthread): Likewise.
1735 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
1736 (amd64_collect_fpregset): Likewise.
1737 (amd64_supply_fxsave): Likewise.
1738 (amd64_supply_xsave): Likewise.
1739 (amd64_collect_fxsave): Likewise.
1740 (amd64_collect_xsave): Likewise.
1741 * arc-tdep.c (arc_write_pc): Likewise.
1742 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
1743 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
1744 (arm_fbsd_store_inferior_registers): Likewise.
1745 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
1746 (store_vfp_regs): Likewise.
1747 (arm_linux_fetch_inferior_registers): Likewise.
1748 (arm_linux_store_inferior_registers): Likewise.
1749 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1750 (arm_linux_sigreturn_next_pc): Likewise.
1751 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
1752 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
1753 (fetch_register): Likewise.
1754 (store_register): Likewise.
1755 * arm-tdep.c (arm_is_thumb): Likewise.
1756 (displaced_in_arm_mode): Likewise.
1757 (bx_write_pc): Likewise.
1758 (arm_get_next_pcs_addr_bits_remove): Likewise.
1759 (arm_software_single_step): Likewise.
1760 (arm_extract_return_value): Likewise.
1761 (arm_store_return_value): Likewise.
1762 (arm_write_pc): Likewise.
1763 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1764 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
1765 (bsd_uthread_store_registers): Likewise.
1766 * core-regset.c (fetch_core_registers): Likewise.
1767 * corelow.c (get_core_registers): Likewise.
1768 * cris-tdep.c (cris_store_return_value): Likewise.
1769 (cris_extract_return_value): Likewise.
1770 (find_step_target): Likewise.
1771 (find_step_target): Likewise.
1772 (cris_software_single_step): Likewise.
1773 * ctf.c (ctf_fetch_registers): Likewise.
1774 * darwin-nat.c (cancel_breakpoint): Likewise.
1775 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
1776 * frv-tdep.c (frv_extract_return_value): Likewise.
1777 * ft32-tdep.c (ft32_store_return_value): Likewise.
1778 (ft32_extract_return_value): Likewise.
1779 * go32-nat.c (fetch_register): Likewise.
1780 (go32_fetch_registers): Likewise.
1781 (go32_store_registers): Likewise.
1782 (store_register): Likewise.
1783 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1784 (h8300_store_return_value): Likewise.
1785 * hppa-linux-nat.c (fetch_register): Likewise.
1786 (store_register): Likewise.
1787 (hppa_linux_fetch_inferior_registers): Likewise.
1788 (hppa_linux_store_inferior_registers): Likewise.
1789 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
1790 (i386_darwin_store_inferior_registers): Likewise.
1791 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
1792 (gnu_store_registers): Likewise.
1793 * i386-linux-nat.c (fetch_register): Likewise.
1794 (store_register): Likewise.
1795 (supply_gregset): Likewise.
1796 (fill_gregset): Likewise.
1797 (i386_linux_fetch_inferior_registers): Likewise.
1798 (i386_linux_store_inferior_registers): Likewise.
1799 (i386_linux_resume): Likewise.
1800 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
1801 Likewise.
1802 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
1803 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
1804 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
1805 (i386obsd_collect_uthread): Likewise.
1806 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1807 (i386_supply_gregset): Likewise.
1808 (i386_collect_gregset): Likewise.
1809 (i386_supply_fpregset): Likewise.
1810 (i386_collect_fpregset): Likewise.
1811 (i386_mpx_bd_base): Likewise.
1812 * i386-v4-nat.c (supply_fpregset): Likewise.
1813 (fill_fpregset): Likewise.
1814 * i387-tdep.c (i387_supply_fsave): Likewise.
1815 (i387_collect_fsave): Likewise.
1816 (i387_supply_fxsave): Likewise.
1817 (i387_collect_fxsave): Likewise.
1818 (i387_supply_xsave): Likewise.
1819 (i387_collect_xsave): Likewise.
1820 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
1821 (ia64_linux_store_registers): Likewise.
1822 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
1823 (ia64_extract_return_value): Likewise.
1824 (ia64_store_return_value): Likewise.
1825 (find_func_descr): Likewise.
1826 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1827 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
1828 (inf_ptrace_store_registers): Likewise.
1829 * infrun.c (use_displaced_stepping): Likewise.
1830 (displaced_step_prepare_throw): Likewise.
1831 (resume): Likewise.
1832 (proceed): Likewise.
1833 (do_target_wait): Likewise.
1834 (adjust_pc_after_break): Likewise.
1835 (handle_inferior_event_1): Likewise.
1836 (handle_signal_stop): Likewise.
1837 (save_infcall_suspend_state): Likewise.
1838 (restore_infcall_suspend_state): Likewise.
1839 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
1840 * jit.c (jit_frame_prev_register): Likewise.
1841 * linux-nat.c (save_stop_reason): Likewise.
1842 (linux_nat_wait_1): Likewise.
1843 (resume_stopped_resumed_lwps): Likewise.
1844 * linux-record.c (record_linux_sockaddr): Likewise.
1845 (record_linux_msghdr): Likewise.
1846 (record_linux_system_call): Likewise.
1847 * linux-tdep.c (linux_collect_thread_registers): Likewise.
1848 * lm32-tdep.c (lm32_extract_return_value): Likewise.
1849 (lm32_store_return_value): Likewise.
1850 * m32c-tdep.c (m32c_read_flg): Likewise.
1851 (m32c_pseudo_register_read): Likewise.
1852 (m32c_pseudo_register_write): Likewise.
1853 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
1854 (m32r_linux_collect_gregset): Likewise.
1855 * m32r-tdep.c (m32r_store_return_value): Likewise.
1856 (m32r_extract_return_value): Likewise.
1857 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1858 (m68kbsd_collect_fpregset): Likewise.
1859 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1860 * m68k-linux-nat.c (fetch_register): Likewise.
1861 (old_fetch_inferior_registers): Likewise.
1862 (old_store_inferior_registers): Likewise.
1863 (store_regs): Likewise.
1864 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
1865 (m68k_svr4_store_return_value): Likewise.
1866 * m88k-tdep.c (m88k_store_arguments): Likewise.
1867 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
1868 (mi_cmd_data_write_register_values): Likewise.
1869 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
1870 (mips_fbsd_store_inferior_registers): Likewise.
1871 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
1872 (mips_fbsd_supply_gregs): Likewise.
1873 (mips_fbsd_collect_fpregs): Likewise.
1874 (mips_fbsd_collect_gregs): Likewise.
1875 (mips_fbsd_supply_fpregset): Likewise.
1876 (mips_fbsd_collect_fpregset): Likewise.
1877 (mips_fbsd_supply_gregset): Likewise.
1878 (mips_fbsd_collect_gregset): Likewise.
1879 * mips-linux-nat.c (supply_gregset): Likewise.
1880 (fill_gregset): Likewise.
1881 (supply_fpregset): Likewise.
1882 (fill_fpregset): Likewise.
1883 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
1884 (mips_fill_gregset): Likewise.
1885 (mips_supply_fpregset): Likewise.
1886 (mips_fill_fpregset): Likewise.
1887 (mips64_supply_gregset): Likewise.
1888 (micromips_linux_sigframe_validate): Likewise.
1889 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
1890 (mipsnbsd_fetch_inferior_registers): Likewise.
1891 (mipsnbsd_store_inferior_registers): Likewise.
1892 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1893 (mipsnbsd_supply_gregset): Likewise.
1894 (mipsnbsd_iterate_over_regset_sections): Likewise.
1895 (mipsnbsd_supply_reg): Likewise.
1896 (mipsnbsd_supply_fpreg): Likewise.
1897 * mips-tdep.c (mips_in_frame_stub): Likewise.
1898 (mips_dummy_id): Likewise.
1899 (is_octeon_bbit_op): Likewise.
1900 (micromips_bc1_pc): Likewise.
1901 (extended_mips16_next_pc): Likewise.
1902 (mips16_next_pc): Likewise.
1903 (deal_with_atomic_sequence): Likewise.
1904 * moxie-tdep.c (moxie_process_readu): Likewise.
1905 * nios2-tdep.c (nios2_get_next_pc): Likewise.
1906 * nto-procfs.c (procfs_store_registers): Likewise.
1907 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
1908 (ppcfbsd_store_inferior_registers): Likewise.
1909 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
1910 (fetch_altivec_register): Likewise.
1911 (get_spe_registers): Likewise.
1912 (fetch_spe_register): Likewise.
1913 (fetch_altivec_registers): Likewise.
1914 (fetch_all_gp_regs): Likewise.
1915 (fetch_all_fp_regs): Likewise.
1916 (store_vsx_register): Likewise.
1917 (store_altivec_register): Likewise.
1918 (set_spe_registers): Likewise.
1919 (store_spe_register): Likewise.
1920 (store_altivec_registers): Likewise.
1921 (store_all_gp_regs): Likewise.
1922 (store_all_fp_regs): Likewise.
1923 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1924 (ppc_linux_collect_gregset): Likewise.
1925 (ppc_canonicalize_syscall): Likewise.
1926 (ppc_linux_record_signal): Likewise.
1927 (ppu2spu_prev_register): Likewise.
1928 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1929 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
1930 (ppcobsd_store_registers): Likewise.
1931 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
1932 Likewise.
1933 (ppc_ravenscar_generic_store_registers): Likewise.
1934 * procfs.c (procfs_fetch_registers): Likewise.
1935 (procfs_store_registers): Likewise.
1936 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
1937 (ravenscar_store_registers): Likewise.
1938 (ravenscar_prepare_to_store): Likewise.
1939 * record-btrace.c (record_btrace_fetch_registers): Likewise.
1940 * record-full.c (record_full_wait_1): Likewise.
1941 (record_full_registers_change): Likewise.
1942 (record_full_store_registers): Likewise.
1943 (record_full_core_fetch_registers): Likewise.
1944 (record_full_save): Likewise.
1945 (record_full_goto_insn): Likewise.
1946 * regcache.c (regcache_register_size): Likewise.
1947 (get_regcache_arch): Remove.
1948 (regcache_read_pc): Likewise.
1949 * regcache.h (get_regcache_arch): Remove.
1950 * remote-sim.c (gdbsim_fetch_register): Likewise.
1951 (gdbsim_store_register): Likewise.
1952 * remote.c (fetch_register_using_p): Likewise.
1953 (send_g_packet): Likewise.
1954 (remote_prepare_to_store): Likewise.
1955 (store_registers_using_G): Likewise.
1956 * reverse.c (save_bookmark_command): Likewise.
1957 (goto_bookmark_command): Likewise.
1958 * rs6000-aix-tdep.c (branch_dest): Likewise.
1959 * rs6000-nat.c (rs6000_ptrace64): Likewise.
1960 (fetch_register): Likewise.
1961 * rs6000-tdep.c (ppc_supply_reg): Likewise.
1962 (ppc_collect_reg): Likewise.
1963 (ppc_collect_gregset): Likewise.
1964 (ppc_collect_fpregset): Likewise.
1965 (ppc_collect_vsxregset): Likewise.
1966 (ppc_collect_vrregset): Likewise.
1967 (ppc_displaced_step_hw_singlestep): Likewise.
1968 (rs6000_pseudo_register_read): Likewise.
1969 (rs6000_pseudo_register_write): Likewise.
1970 * s390-linux-nat.c (supply_gregset): Likewise.
1971 (fill_gregset): Likewise.
1972 (s390_linux_fetch_inferior_registers): Likewise.
1973 * s390-linux-tdep.c (s390_write_pc): Likewise.
1974 (s390_software_single_step): Likewise.
1975 (s390_all_but_pc_registers_record): Likewise.
1976 (s390_linux_syscall_record): Likewise.
1977 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
1978 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
1979 (shnbsd_store_inferior_registers): Likewise.
1980 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
1981 (sh_extract_return_value_fpu): Likewise.
1982 (sh_store_return_value_nofpu): Likewise.
1983 (sh_corefile_supply_regset): Likewise.
1984 (sh_corefile_collect_regset): Likewise.
1985 * sh64-tdep.c (sh64_extract_return_value): Likewise.
1986 (sh64_store_return_value): Likewise.
1987 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
1988 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
1989 (sparc_store_inferior_registers): Likewise.
1990 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
1991 (sparc_ravenscar_prepare_to_store): Likewise.
1992 * sparc-tdep.c (sparc32_store_arguments): Likewise.
1993 (sparc_analyze_control_transfer): Likewise.
1994 (sparc_step_trap): Likewise.
1995 (sparc_software_single_step): Likewise.
1996 (sparc32_gdbarch_init): Likewise.
1997 (sparc_supply_rwindow): Likewise.
1998 (sparc_collect_rwindow): Likewise.
1999 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
2000 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
2001 (sparc64nbsd_collect_gregset): Likewise.
2002 (sparc64nbsd_supply_fpregset): Likewise.
2003 (sparc64nbsd_collect_fpregset): Likewise.
2004 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
2005 (sparc64_supply_gregset): Likewise.
2006 (sparc64_collect_gregset): Likewise.
2007 (sparc64_supply_fpregset): Likewise.
2008 (sparc64_collect_fpregset): Likewise.
2009 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2010 * spu-tdep.c (spu_unwind_sp): Likewise.
2011 (spu2ppu_prev_register): Likewise.
2012 (spu_memory_remove_breakpoint): Likewise.
2013 * stack.c (return_command): Likewise.
2014 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
2015 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2016 * tracefile.c (trace_save_ctf): Likewise.
2017 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
2018 (do_windows_store_inferior_registers): Likewise.
2019 (windows_resume): Likewise.
2020 * xtensa-linux-nat.c (fill_gregset): Likewise.
2021 (supply_gregset_reg): Likewise.
2022 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
2023 (xtensa_register_read_masked): Likewise.
2024 (xtensa_supply_gregset): Likewise.
2025 (xtensa_extract_return_value): Likewise.
2026 (xtensa_store_return_value): Likewise.
2027
edd079d9
UW
20282017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
2029
2030 * doublest.c (floatformat_from_string): New function.
2031 * doublest.h (floatformat_from_string): Add prototype.
2032
2033 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
2034 (OP_FLOAT): ... this.
2035 * expression.h: Do not include "doublest.h".
2036 (union exp_element): Replace doubleconst and decfloatconst by
2037 new element floatconst.
2038 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
2039 (ada_evaluate_subexp): Likewise.
2040 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
2041 OP_DOUBLE and OP_DECFLOAT.
2042 * expprint.c (print_subexp_standard): Likewise.
2043 (dump_subexp_body_standard): Likewise.
2044 * breakpoint.c (watchpoint_exp_is_const): Likewise.
2045
2046 * parse.c: Include "dfp.h".
2047 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
2048 (write_exp_elt_floatcst): New function.
2049 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
2050 and OP_DECFLOAT.
2051 (operator_check_standard): Likewise.
2052 (parse_float): Do not accept suffix. Take type as input. Return bool.
2053 Return target format buffer instead of host DOUBLEST.
2054 Use floatformat_from_string and decimal_from_string to parse
2055 either binary or decimal floating-point types.
2056 (parse_c_float): Remove.
2057 * parser-defs.h: Do not include "doublest.h".
2058 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
2059 (write_exp_elt_floatcst): Add prototype.
2060 (parse_float): Update prototype.
2061 (parse_c_float): Remove.
2062
2063 * c-exp.y: Do not include "dfp.h".
2064 (typed_val_float): Use byte buffer instead of DOUBLEST.
2065 (typed_val_decfloat): Remove.
2066 (DECFLOAT): Remove.
2067 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2068 (parse_number): Update to new parse_float interface.
2069 Parse suffixes and determine type before calling parse_float.
2070 Handle decimal and binary FP types the same way.
2071
2072 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2073 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
2074 (parse_number): Update to new parse_float interface.
2075 Parse suffixes and determine type before calling parse_float.
2076
2077 * f-exp.y: Replace dval by typed_val_float.
2078 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2079 (parse_number): Use parse_float instead of atof.
2080
2081 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2082 (parse_go_float): Remove.
2083 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2084 (parse_number): Call parse_float instead of parse_go_float.
2085 Parse suffixes and determine type before calling parse_float.
2086
2087 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2088 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2089 (parse_number): Update to new parse_float interface.
2090 Parse suffixes and determine type before calling parse_float.
2091
2092 * m2-exp.y: Replace dval by byte buffer val.
2093 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2094 (parse_number): Call parse_float instead of atof.
2095
2096 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2097 (lex_number): Call parse_float instead of strtod.
2098 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
2099 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
2100 Use write_exp_elt_floatcst.
2101 (unit_testing): Remove static variable.
2102 (rust_type): Do not check unit_testing.
2103 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
2104
2105 * ada-exp.y (type_float, type_double): Remove.
2106 (typed_val_float): Use byte buffer instead of DOUBLEST.
2107 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2108 * ada-lex.l (processReal): Use parse_float instead of sscanf.
2109
cc628f3d
AH
21102017-10-25 Alan Hayward <alan.hayward@arm.com>
2111
2112 * aarch64-tdep.h (enum aarch64_regnum): Remove.
2113 * arch/aarch64.h: New file.
2114
09a7c6aa
UW
21152017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2116
2117 * dfp.h (decimal_from_string): Use const reference for argument.
2118 * dfp.c (decimal_from_string): Likewise.
2119
8ba0dd51
UW
21202017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2121
2122 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
2123 * sh64-tdep.c (sh64_do_fp_register): Likewise.
2124 * mips-tdep.c (mips_print_fp_register): Likewise.
2125
16e812b2
UW
21262017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2127
2128 * common/format.h (enum argclass): Replace decfloat_arg by
2129 dec32float_arg, dec64float_arg, and dec128float_arg.
2130 * common/format.c (parse_format_string): Update to return
2131 new decimal float argument classes.
2132
2133 * printcmd.c (printf_decfloat): Rename to ...
2134 (printf_floating): ... this. Add argclass argument, and use it
2135 instead of parsing the format string again. Add support for
2136 binary floating-point values, using floatformat_to_string.
2137 Convert value to the target format if it doesn't already match.
2138 (ui_printf): Call printf_floating instead of printf_decfloat,
2139 also for double_arg / long_double_arg. Pass argclass.
2140
2141 * dfp.c (decimal_to_string): Add format string argument.
2142 * dfp.h (decimal_to_string): Likewise.
2143
2144 * doublest.c (floatformat_to_string): Add format string argument.
2145 * doublest.h (floatformat_to_string): Likewise.
2146
fdf0cbc2
UW
21472017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2148
2149 * doublest.c (floatformat_precision): New routine.
2150 (floatformat_to_string): Likewise.
2151 * doublest.c (floatformat_to_string): Add prototype.
2152
2153 * printcmd.c (print_scalar_formatted): Only call print_floating
2154 on floating-point types.
2155 * valprint.c: Do not include "floatformat.h".
2156 (generic_val_print_decfloat): Remove.
2157 (generic_val_print): Call generic_val_print_float for both
2158 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
2159 (print_floating): Use floatformat_to_string. Handle decimal float.
2160 (print_decimal_floating): Remove, merge into floatformat_to_string.
2161 * value.h (print_decimal_floating): Remove.
2162
2163 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
2164
5033013f
UW
21652017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2166
2167 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
2168
a664f67e
SM
21692017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2170
2171 * memattr.h: Don't include vec.h.
2172 (struct mem_attrib): Initialize fields.
2173 <unknown>: New static method.
2174 (struct mem_region): Add constructors, operator<, initialize
2175 fields.
2176 * memattr.c: Include algorithm.
2177 (default_mem_attrib, unknown_mem_attrib): Remove.
2178 (user_mem_region_list): New global.
2179 (target_mem_region_list, mem_region_list): Change type to
2180 std::vector<mem_region>.
2181 (mem_use_target): Now a function.
2182 (target_mem_regions_valid): Change type to bool.
2183 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
2184 (require_user_regions): Adjust.
2185 (require_target_regions): Adjust.
2186 (create_mem_region): Adjust.
2187 (lookup_mem_region): Adjust.
2188 (invalidate_target_mem_regions): Adjust.
2189 (mem_clear): Rename to...
2190 (user_mem_clear): ... this, and adjust.
2191 (mem_command): Adjust.
2192 (info_mem_command): Adjust.
2193 (mem_enable, enable_mem_command, mem_disable,
2194 disable_mem_command): Adjust.
2195 (mem_delete): Adjust.
2196 (delete_mem_command): Adjust.
2197 * memory-map.h (parse_memory_map): Return an std::vector.
2198 * memory-map.c (parse_memory_map): Likewise.
2199 (struct memory_map_parsing_data): Add constructor.
2200 <memory_map>: Point to std::vector.
2201 (memory_map_start_memory): Adjust.
2202 (memory_map_end_memory): Adjust.
2203 (memory_map_end_property): Adjust.
2204 (clear_result): Remove.
2205 * remote.c (remote_memory_map): Return an std::vector.
2206 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
2207 Remove.
2208 (target_debug_print_mem_region_vector): New.
2209 * target-delegates.c: Regenerate.
2210 * target.h (mem_region_vector): New typedef.
2211 (to_memory_map): Return mem_region_vector.
2212 (target_memory_map): Return an std::vector.
2213 * target.c (target_memory_map): Return an std::vector.
2214 (flash_erase_command): Adjust.
2215
6e17c565
SM
22162017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2217
2218 * memory-map.c (struct memory_map_parsing_data) <property_name>:
2219 Change type to std::string.
2220 (memory_map_start_property): Adjust.
2221 (memory_map_end_property): Adjust.
2222
cfba9872
SM
22232017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2224
2225 * infrun.h: Include common/byte-vector.h.
2226 (struct displaced_step_closure): New struct.
2227 (struct buf_displaced_step_closure): New struct.
2228 * infrun.c (displaced_step_closure::~displaced_step_closure):
2229 Provide default implementation.
2230 (displaced_step_clear): Deallocate step closure with delete.
2231 * aarch64-tdep.c (displaced_step_closure): Rename to ...
2232 (aarch64_displaced_step_closure): ... this, extend
2233 displaced_step_closure.
2234 (aarch64_displaced_step_data) <dsc>: Change type to
2235 aarch64_displaced_step_closure.
2236 (aarch64_displaced_step_copy_insn): Adjust to type change, use
2237 unique_ptr.
2238 (aarch64_displaced_step_fixup): Add cast for displaced step
2239 closure.
2240 * amd64-tdep.c (displaced_step_closure): Rename to ...
2241 (amd64_displaced_step_closure): ... this, extend
2242 displaced_step_closure.
2243 <insn_buf>: Change type to std::vector<gdb_byte>.
2244 <max_len>: Remove.
2245 (fixup_riprel): Change type of DSC parameter, adjust to type
2246 change of insn_buf.
2247 (fixup_displaced_copy): Change type of DSC parameter.
2248 (amd64_displaced_step_copy_insn): Instantiate
2249 amd64_displaced_step_closure.
2250 (amd64_displaced_step_fixup): Add cast for closure type, adjust
2251 to type change of insn_buf.
2252 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
2253 parameter DSC.
2254 (arm_linux_copy_svc): Likewise.
2255 (cleanup_kernel_helper_return): Likewise.
2256 (arm_catch_kernel_helper_return): Likewise.
2257 (arm_linux_displaced_step_copy_insn): Instantiate
2258 arm_displaced_step_closure.
2259 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
2260 (displaced_read_reg): Change type of parameter DSC.
2261 (branch_write_pc): Likewise.
2262 (load_write_pc): Likewise.
2263 (alu_write_pc): Likewise.
2264 (displaced_write_reg): Likewise.
2265 (arm_copy_unmodified): Likewise.
2266 (thumb_copy_unmodified_32bit): Likewise.
2267 (thumb_copy_unmodified_16bit): Likewise.
2268 (cleanup_preload): Likewise.
2269 (install_preload): Likewise.
2270 (arm_copy_preload): Likewise.
2271 (thumb2_copy_preload): Likewise.
2272 (install_preload_reg): Likewise.
2273 (arm_copy_preload_reg): Likewise.
2274 (cleanup_copro_load_store): Likewise.
2275 (install_copro_load_store): Likewise.
2276 (arm_copy_copro_load_store) Likewise.
2277 (thumb2_copy_copro_load_store): Likewise.
2278 (cleanup_branch): Likewise.
2279 (install_b_bl_blx): Likewise.
2280 (arm_copy_b_bl_blx): Likewise.
2281 (thumb2_copy_b_bl_blx): Likewise.
2282 (thumb_copy_b): Likewise.
2283 (install_bx_blx_reg): Likewise.
2284 (arm_copy_bx_blx_reg): Likewise.
2285 (thumb_copy_bx_blx_reg): Likewise.
2286 (cleanup_alu_imm): Likewise.
2287 (arm_copy_alu_imm): Likewise.
2288 (thumb2_copy_alu_imm): Likewise.
2289 (cleanup_alu_reg): Likewise.
2290 (install_alu_reg): Likewise.
2291 (arm_copy_alu_reg): Likewise.
2292 (thumb_copy_alu_reg): Likewise.
2293 (cleanup_alu_shifted_reg): Likewise.
2294 (install_alu_shifted_reg): Likewise.
2295 (arm_copy_alu_shifted_reg): Likewise.
2296 (cleanup_load): Likewise.
2297 (cleanup_store): Likewise.
2298 (arm_copy_extra_ld_st): Likewise.
2299 (install_load_store): Likewise.
2300 (thumb2_copy_load_literal): Likewise.
2301 (thumb2_copy_load_reg_imm): Likewise.
2302 (arm_copy_ldr_str_ldrb_strb): Likewise.
2303 (cleanup_block_load_all): Likewise.
2304 (cleanup_block_store_pc): Likewise.
2305 (cleanup_block_load_pc): Likewise.
2306 (arm_copy_block_xfer): Likewise.
2307 (thumb2_copy_block_xfer): Likewise.
2308 (cleanup_svc): Likewise.
2309 (install_svc): Likewise.
2310 (arm_copy_svc): Likewise.
2311 (thumb_copy_svc): Likewise.
2312 (arm_copy_undef): Likewise.
2313 (thumb_32bit_copy_undef): Likewise.
2314 (arm_copy_unpred): Likewise.
2315 (arm_decode_misc_memhint_neon): Likewise.
2316 (arm_decode_unconditional): Likewise.
2317 (arm_decode_miscellaneous): Likewise.
2318 (arm_decode_dp_misc): Likewise.
2319 (arm_decode_ld_st_word_ubyte): Likewise.
2320 (arm_decode_media): Likewise.
2321 (arm_decode_b_bl_ldmstm): Likewise.
2322 (arm_decode_ext_reg_ld_st): Likewise.
2323 (thumb2_decode_dp_shift_reg): Likewise.
2324 (thumb2_decode_ext_reg_ld_st): Likewise.
2325 (arm_decode_svc_copro): Likewise.
2326 (thumb2_decode_svc_copro): Likewise.
2327 (install_pc_relative): Likewise.
2328 (thumb_copy_pc_relative_16bit): Likewise.
2329 (thumb_decode_pc_relative_16bit): Likewise.
2330 (thumb_copy_pc_relative_32bit): Likewise.
2331 (thumb_copy_16bit_ldr_literal): Likewise.
2332 (thumb_copy_cbnz_cbz): Likewise.
2333 (thumb2_copy_table_branch): Likewise.
2334 (cleanup_pop_pc_16bit_all): Likewise.
2335 (thumb_copy_pop_pc_16bit): Likewise.
2336 (thumb_process_displaced_16bit_insn): Likewise.
2337 (decode_thumb_32bit_ld_mem_hints): Likewise.
2338 (thumb_process_displaced_32bit_insn): Likewise.
2339 (thumb_process_displaced_insn): Likewise.
2340 (arm_process_displaced_insn): Likewise.
2341 (arm_displaced_init_closure): Likewise.
2342 (arm_displaced_step_fixup): Add cast for closure.
2343 * arm-tdep.h: Include infrun.h.
2344 (displaced_step_closure): Rename to ...
2345 (arm_displaced_step_closure): ... this, extend
2346 displaced_step_closure.
2347 <u::svc::copy_svc_os>: Change type of parameter DSC.
2348 <cleanup>: Likewise.
2349 (arm_process_displaced_insn): Likewise.
2350 (arm_displaced_init_closure): Likewise.
2351 (displaced_read_reg): Likewise.
2352 (displaced_write_reg): Likewise.
2353 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
2354 Adjust.
2355 * i386-tdep.h: Include infrun.h.
2356 (i386_displaced_step_closure): New typedef.
2357 * i386-tdep.c (i386_displaced_step_copy_insn): Use
2358 i386_displaced_step_closure.
2359 (i386_displaced_step_fixup): Adjust.
2360 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
2361 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
2362 and unique_ptr.
2363 (ppc_displaced_step_fixup): Adjust.
2364 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
2365 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
2366 and unique_ptr.
2367 (s390_displaced_step_fixup): Adjust.
2368
b392b304
SM
23692017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2370
2371 * interps.h (interp_resume, interp_suspend, interp_set_temp):
2372 Remove declarations.
2373
d5833c62
TT
23742017-10-20 Tom Tromey <tom@tromey.com>
2375
2376 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
2377 std::vector.
2378 (gdb_bfd_record_inclusion): Update.
2379 (bfdp): Remove typedef.
2380
06d5bbc8
TT
23812017-10-20 Tom Tromey <tom@tromey.com>
2382
2383 * gdb_bfd.c (gdb_bfd_ref): Use new.
2384 (struct gdb_bfd_data): Add constructor, destructor, and member
2385 initializers.
2386 (gdb_bfd_unref): Use delete.
2387
2712ce2e
TT
23882017-10-20 Tom Tromey <tom@tromey.com>
2389
2390 * exec.c (exec_file_attach): Use new_bfd_ref.
2391 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
2392 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
2393 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
2394 new_bfd_ref.
2395 * gdb_bfd.h (new_bfd_ref): New function.
2396
fcc8fb2f
PA
23972017-10-20 Pedro Alves <palves@redhat.com>
2398
2399 * main.c (captured_command_loop): Add attribute noinline.
2400
4c2287b0
SM
24012017-10-19 Simon Marchi <simon.marchi@ericsson.com>
2402
2403 * interps.c (struct interp_factory): Add constructor.
2404 (interp_factory_p): Remove typedef.
2405 (DEF_VEC_P(interp_factory_p)): Remove.
2406 (interpreter_factories): Change type to std::vector.
2407 (interp_factory_register): Adjust.
2408 (interp_lookup): Adjust.
2409 (interpreter_completer): Adjust.
2410
3d415c26
TT
24112017-10-19 Tom Tromey <tom@tromey.com>
2412
2413 * break-catch-syscall.c (catch_syscall_completer): Use
2414 std::string, gdb::unique_xmalloc_ptr.
2415
395423c4
TT
24162017-10-19 Tom Tromey <tom@tromey.com>
2417
2418 * infcall.c (call_function_by_hand_dummy): Use std::string.
2419
54f70bc1
TT
24202017-10-19 Tom Tromey <tom@tromey.com>
2421
2422 * mi/mi-main.c (mi_cmd_execute): Update.
2423 * top.h (prepare_execute_command): Return scoped_value_mark.
2424 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
2425 Add move constructor.
2426 * top.c (prepare_execute_command): Return scoped_value_mark.
2427 (execute_command): Update.
2428
63929e84
PA
24292017-10-19 Pedro Alves <palves@redhat.com>
2430
2431 * xml-support.c (xml_fetch_content_from_file): Check fread's
2432 return.
2433
a75868f5
PA
24342017-10-19 Pedro Alves <palves@redhat.com>
2435
2436 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
2437 async.
2438 (handle_error_fd): New function.
2439 (ser_base_async): Add/delete an event loop file handler for
2440 error_fd.
2441
2edf834e
PA
24422017-10-19 Pedro Alves <palves@redhat.com>
2443
2444 * xml-support.c (xml_fetch_content_from_file): Don't read in
2445 chunks. Instead use fseek to determine the file's size, and read
2446 it in one go.
2447
c8ba13ad
KS
24482017-11-18 Keith Seitz <keiths@redhat.com>
2449
2450 * c-exp.y (oper): Canonicalize conversion operators of user-defined
2451 types.
2452 Add whitespace to front of type name.
2453
37534686
KS
24542017-10-18 Keith Seitz <keiths@redhat.com>
2455
2456 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
2457 DW_AT_accessibility.
2458
28c7c158
YQ
24592017-10-18 Yao Qi <yao.qi@linaro.org>
2460
2461 * features/tic6x-c62x-linux.c: Remove.
2462
30f0b101
TT
24632017-10-17 Tom Tromey <tom@tromey.com>
2464
2465 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
2466 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
2467 (do_mixed_source_and_assembly): Likewise.
2468
57e12da9
TT
24692017-10-17 Tom Tromey <tom@tromey.com>
2470
2471 * regcache.c (regcache::xfer_part): Remove assertion.
2472
7b700999
PA
24732017-10-17 Pedro Alves <palves@redhat.com>
2474
2475 * xml-support.c (xml_fetch_content_from_file): Call
2476 unique_ptr::release() instead unique_ptr::get() when passing
2477 through xrealloc.
2478
d3037ba6
YQ
24792017-10-17 Yao Qi <yao.qi@linaro.org>
2480
2481 * regcache.c (regcache::xfer_part): Remove parameters read and
2482 write, add parameter is_raw. All callers are updated.
2483
83d5a34d
KS
24842017-10-16 Keith Seitz <keiths@redhat.com>
2485
2486 * c-typeprint.c (enum access_specifier): Moved here from
2487 c_type_print_base.
2488 (output_access_specifier): New function.
2489 (c_type_print_base): Consider typedefs when assessing
2490 whether access labels are needed.
2491 Use output_access_specifier as needed.
2492 Output access specifier for typedefs, if needed.
2493 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
2494 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
2495 fields.
2496 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
2497 accessor macros.
2498
87028b87
TT
24992017-10-16 Tom Tromey <tom@tromey.com>
2500
2501 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
2502 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
2503 * target.c (target_fileio_read_stralloc): Update.
2504 * sparc64-tdep.c (adi_is_addr_mapped): Update.
2505 * target.h (target_fileio_read_stralloc): Return
2506 unique_xmalloc_ptr.
2507
b7b030ad
TT
25082017-10-16 Tom Tromey <tom@tromey.com>
2509
2510 * xml-syscall.c (xml_init_syscalls_info): Update.
2511 * xml-support.c (xinclude_start_include): Update.
2512 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
2513 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
2514 (xml_fetch_content_from_file): Likewise.
2515 * osdata.c (get_osdata): Update.
2516 * target.h (target_read_stralloc, target_get_osdata): Return
2517 unique_xmalloc_ptr.
2518 * solib-aix.c (solib_aix_get_library_list): Update.
2519 * solib-target.c (solib_target_current_sos): Update.
2520 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
2521 * xml-tdesc.c (fetch_available_features_from_target): Update.
2522 (target_fetch_description_xml): Update.
2523 (file_read_description_xml): Update.
2524 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
2525 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
2526 (remote_pid_to_exec_file): Update.
2527 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
2528 (target_get_osdata): Likewise.
2529
b80406ac
TT
25302017-10-16 Tom Tromey <tom@tromey.com>
2531
2532 * remote.c (remote_register_number_and_offset): Use std::vector.
2533 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
2534 (putpkt_binary): Use gdb::def_vector.
2535 (compare_sections_command): Use gdb::byte_vector.
2536
a90ecff8
TT
25372017-10-16 Tom Tromey <tom@tromey.com>
2538
2539 * ppc-linux-nat.c (hwdebug_insert_point): Use
2540 gdb::unique_xmalloc_ptr, XDUP.
2541
2dc0e219
TT
25422017-10-16 Tom Tromey <tom@tromey.com>
2543
2544 * probe.c (parse_probes): Use std::string.
2545 (info_probes_for_ops, enable_probes_command)
2546 (disable_probes_command): Remove cleanups.
2547
b05628f0
TT
25482017-10-16 Tom Tromey <tom@tromey.com>
2549
2550 * buildsym.c (block_compar): Remove.
2551 (end_symtab_get_static_block): Use std::vector.
2552
a79b1bc6
SM
25532017-10-16 Simon Marchi <simon.marchi@ericsson.com>
2554
2555 * memrange.h (struct mem_range): Define operator< and operator==.
2556 (mem_range_s): Remove.
2557 (DEF_VEC_O (mem_range_s)): Remove.
2558 (normalize_mem_ranges): Change parameter type to std::vector.
2559 * memrange.c (compare_mem_ranges): Remove.
2560 (normalize_mem_ranges): Change parameter type to std::vector,
2561 adjust to vector change.
2562 * exec.c (section_table_available_memory): Return vector, remove
2563 parameter.
2564 (section_table_read_available_memory): Adjust to std::vector
2565 change.
2566 * remote.c (remote_read_bytes): Adjust to std::vector
2567 change.
2568 * tracepoint.h (traceframe_available_memory): Change parameter
2569 type to std::vector.
2570 * tracepoint.c (traceframe_available_memory): Change parameter
2571 type to std::vector, adjust.
2572 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
2573 std::vector change.
2574 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2575 unittests/memrange-selftests.c.
2576 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
2577 * gdb/unittests/memrange-selftests.c: New file.
2578
63f0e930
PA
25792017-10-16 Pedro Alves <palves@redhat.com>
2580
2581 * elfread.c (probe_key_free): Rename range-for variable.
2582 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
2583 (find_probe_by_pc, collect_probes): Rename range-for variable.
2584
c40c7bfc
YQ
25852017-10-16 Yao Qi <yao.qi@linaro.org>
2586
2587 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
2588 * features/tic6x-c62x.c: Remove.
2589 * features/tic6x-c64x-linux.c: Remove.
2590 * features/tic6x-c64x.c: Remove.
2591 * features/tic6x-c64xp-linux.c: Remove.
2592 * features/tic6x-c64xp.c: Remove.
2593 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
2594 initialize_tdesc_tic6x_*_linux functions.
2595 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
2596 initialize_tdesc_tic6x_* functions.
2597
df27ae6a
YQ
25982017-10-16 Yao Qi <yao.qi@linaro.org>
2599
2600 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
2601 tic6x-c62x.
2602 * regformats/tic6x-c62x.dat: Remove.
2603 * regformats/tic6x-c64x.dat: Remove.
2604 * regformats/tic6x-c64xp.dat: Remove.
2605
86766165
SM
26062017-10-15 Simon Marchi <simon.marchi@ericsson.com>
2607
2608 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
2609 (the !HAVE_LIBEXPAT version).
2610
824dfcc3
SM
26112017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2612
2613 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
2614 const.
2615
2098b393
SM
26162017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2617
2618 * target.h: Include tracepoint.h.
2619 (enum trace_find_type): Move to tracepoint.h.
2620 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
2621 * tracepoint.h: Don't include target.h
2622 (enum trace_find_type): Move from target.h.
2623 (parse_traceframe_info): Return a unique ptr.
2624 * tracepoint.c (current_traceframe_info): Change type to unique
2625 ptr.
2626 (free_traceframe_info): Remove.
2627 (clear_traceframe_info): Don't manually free
2628 current_traceframe_info.
2629 (free_result): Remove.
2630 (parse_traceframe_info): Return a unique ptr.
2631 (get_traceframe_info): Adjust to unique ptr.
2632 * ctf.c (ctf_traceframe_info): Return a unique ptr.
2633 * remote.c (remote_traceframe_info): Return a unique ptr.
2634 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
2635 ptr.
2636 * target-debug.h (target_debug_print_traceframe_info_up): New
2637 macro.
2638 * target-delegates.c: Regenerate.
2639
4cdd21a8
SM
26402017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2641
2642 * memrange.h (struct mem_range): Add constructors.
2643 * tracepoint.h (struct traceframe_info) <memory>: Change type to
2644 std::vector<mem_range>.
2645 * tracepoint.c (free_traceframe_info): Don't manually free
2646 vector.
2647 (traceframe_info_start_memory): Adjust to vector change.
2648 (traceframe_available_memory): Likewise.
2649 * tracefile-tfile.c (build_traceframe_info): Likewise.
2650 * ctf.c (ctf_traceframe_info): Likewise.
2651
d0d292a2
SM
26522017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2653
2654 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
2655 std::vector<int>.
2656 * tracepoint.c (free_traceframe_info): Deallocate with delete.
2657 (traceframe_info_start_tvar): Adjust to vector change.
2658 (parse_traceframe_info): Allocate with new.
2659 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
2660 vector change.
2661 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
2662 change.
2663 tfile_traceframe_info): Allocate with new.
2664 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
2665 change.
2666
8d3c73ef
SM
26672017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2668
2669 * tracepoint.c (traceframe_info): Rename to...
2670 (current_traceframe_info): ...this.
2671 (clear_traceframe_info): Adjust.
2672 (get_traceframe_info): Adjust.
2673
b129dcac
SM
26742017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2675
2676 * nat/linux-osdata.c: Include algorithm.
2677 (compare_processes): Remove.
2678 (struct pid_pgid_entry): New struct.
2679 (linux_xfer_osdata_processgroups): Use std::vector instead of
2680 XNEWVEC.
2681
af5bf4ad
SM
26822017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2683
2684 * objfiles.h: Don't include symfile.h.
2685 (struct partial_symbol): Remove forward-declaration.
2686 (struct objfile) <global_psymbols, static_psymbols>: Change type
2687 to std::vector<partial_symbol *>.
2688 * objfiles.c (objfile::objfile): Don't memset those fields.
2689 (objfile::~objfile): Don't free those fields.
2690 * psympriv.h (struct psymbol_allocation_list): Remove
2691 forward-declaration.
2692 (add_psymbol_to_list): Change psymbol_allocation_list parameter
2693 to std::vector.
2694 (start_psymtab_common): Change parameters to std::vector.
2695 * psymtab.c: Include algorithm.
2696 (require_partial_symbols): Call shrink_to_fit.
2697 (find_pc_sect_psymbol): Adjust to vector change.
2698 (match_partial_symbol): Likewise.
2699 (lookup_partial_symbol): Likewise.
2700 (psym_relocate): Likewise.
2701 (dump_psymtab): Likewise.
2702 (recursively_search_psymtabs): Likewise.
2703 (compare_psymbols): Remove.
2704 (sort_pst_symbols): Adjust to vector change.
2705 (start_psymtab_common): Likewise.
2706 (end_psymtab_common): Likewise.
2707 (psymbol_bcache_full): De-constify return value.
2708 (add_psymbol_to_bcache): Likewise.
2709 (extend_psymbol_list): Remove.
2710 (append_psymbol_to_list): Adjust to vector change.
2711 (add_psymbol_to_list): Likewise.
2712 (init_psymbol_list): Likewise.
2713 (maintenance_info_psymtabs): Likewise.
2714 (maintenance_check_psymtabs): Likewise.
2715 * symfile.h (struct psymbol_allocation_list): Remove.
2716 * symfile.c (reread_symbols): Adjust to vector change.
2717 * dbxread.c (start_psymtab): Change type of parameters.
2718 (dbx_symfile_read): Adjust to vector change.
2719 (read_dbx_symtab): Likewise.
2720 (start_psymtab): Change type of parameters.
2721 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
2722 (create_partial_symtab): Likewise.
2723 (add_partial_symbol): Likewise.
2724 (write_one_signatured_type): Likewise.
2725 (recursively_write_psymbols): Likewise.
2726 * mdebugread.c (parse_partial_symbols): Likewise.
2727 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
2728 (scan_xcoff_symtab): Adjust to vector change.
2729 (xcoff_initial_scan): Likewise.
2730
3ec5942f
SM
27312017-10-13 Simon Marchi <simon.marchi@ericsson.com>
2732
2733 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
2734
2399fe6a
YQ
27352017-10-13 Yao Qi <yao.qi@linaro.org>
2736
2737 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
2738 Remove s390x-*-expedite, add s390x-expedite.
2739
4bf3f4a8
YQ
27402017-10-13 Yao Qi <yao.qi@linaro.org>
2741
2742 * features/s390-gs-linux64.c: Regenerated.
2743 * features/s390x-gs-linux64.c: Regenerated.
2744
9e86da07
TT
27452017-10-13 Tom Tromey <tom@tromey.com>
2746
2747 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2748 * solib.c (update_solib_list, reload_shared_libraries_1): Use
2749 delete.
2750 * symfile.c (symbol_file_add_with_addrs): Use new.
2751 (symbol_file_add_separate): Update comment.
2752 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
2753 * jit.c (jit_object_close_impl): Use new.
2754 (jit_unregister_code): Use delete.
2755 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
2756 (~objfile): Rename from free_objfile.
2757 (free_objfile_separate_debug, do_free_objfile_cleanup)
2758 (free_all_objfiles, objfile_purge_solibs): Use delete.
2759 * objfiles.h (struct objfile): Add constructor and destructor.
2760 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
2761 (allocate_objfile, free_objfile): Don't declare.
2762 (struct objstats): Add initializers.
2763
c2508e90
SM
27642017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2765
2766 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
2767 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
2768 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
2769 * gdbarch.h: Regenerate.
2770 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
2771 Adjust comment.
2772 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
2773 (i386_displaced_step_fixup): Adjust comment.
2774 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
2775
a900ff72
TT
27762017-10-12 Tom Tromey <tom@tromey.com>
2777
2778 * prologue-value.h (pv_area::store_would_trash): Return bool.
2779 (pv_area::find_reg): Likewise.
2780 * prologue-value.c (pv_area::store_would_trash): Return bool.
2781 (pv_area::find_reg): Likewise.
2782
f7b7ed97
TT
27832017-10-12 Tom Tromey <tom@tromey.com>
2784
2785 * s390-linux-tdep.c (s390_store, s390_load)
2786 (s390_check_for_saved, s390_analyze_prologue): Update.
2787 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
2788 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
2789 * prologue-value.h (class pv_area): Move from prologue-value.c.
2790 Change names of members. Add constructor, destructor, member
2791 functions.
2792 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
2793 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
2794 (pv_area_fetch, pv_area_scan): Don't declare.
2795 * prologue-value.c (struct pv_area::area_entry): Now member of
2796 pv_area.
2797 (struct pv_area): Move to prologue-value.h.
2798 (pv_area::pv_area): Rename from make_pv_area.
2799 (pv_area::~pv_area): Rename from free_pv_area.
2800 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
2801 (clear_entries, find_entry, overlaps, store_would_trash, store)
2802 (fetch, find_reg, scan): Now member of pv_area.
2803 Remove "area" argument. Update.
2804 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
2805 Update.
2806 * mn10300-tdep.c (push_reg, check_for_saved)
2807 (mn10300_analyze_prologue): Update.
2808 * mep-tdep.c (is_arg_spill, check_for_saved)
2809 (mep_analyze_prologue): Update.
2810 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
2811 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
2812 (m32c_is_struct_return, m32c_analyze_prologue): Update.
2813 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
2814 Update.
2815 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
2816 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
2817
466eecee
SM
28182017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2819
2820 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
2821 * linux-nat.c (linux_nat_delete_thread): New variable.
2822 (lwp_free): Invoke linux_nat_delete_thread if set.
2823 (linux_nat_set_delete_thread): New function.
2824 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
2825 thread delete callback.
2826 * arm-linux-nat.c (arm_linux_delete_thread): New function.
2827 (_initialize_arm_linux_nat): Assign thread delete callback.
2828 * s390-linux-nat.c (s390_delete_thread): New function.
2829 (_initialize_s390_nat): Assign thread delete callback.
2830 * x86-linux-nat.c (x86_linux_add_target): Likewise.
2831 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
2832 function.
2833 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
2834 declaration.
2835 * nat/x86-linux.c (x86_linux_delete_thread): New function.
2836 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
2837
f71c8822
TT
28382017-10-09 Tom Tromey <tom@tromey.com>
2839
2840 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
2841 std::string.
2842 * tui/tui-layout.c (enum tui_status): Use std::string.
2843
981a3fb3
TT
28442017-10-11 Tom Tromey <tom@tromey.com>
2845
2846 * gdbthread.h (thread_command): Constify.
2847 * inferior.h (detach_command): Constify.
2848 * top.h (set_history, show_history): Constify.
2849 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
2850 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
2851 * bsd-kvm.c (bsd_kvm_cmd): Constify.
2852 * printcmd.c (set_command): Constify.
2853 (non_const_set_command): New function.
2854 * dcache.c (set_dcache_command, show_dcache_command): Constify.
2855 * breakpoint.c (enable_command, disable_command, delete_command)
2856 (catch_command, tcatch_command, set_breakpoint_cmd)
2857 (show_breakpoint_cmd): Constify.
2858 * macrocmd.c (macro_command): Constify.
2859 * infcmd.c (unset_command, kill_command, detach_command)
2860 (info_proc_cmd): Constify.
2861 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
2862 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
2863 (info_auto_load_cmd): Constify.
2864 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
2865 (unset_tdesc_cmd): Constify.
2866 * ada-lang.c (set_ada_command, show_ada_command)
2867 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
2868 * guile/guile.c (set_guile_command, show_guile_command)
2869 (info_guile_command): Constify.
2870 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
2871 Constify.
2872 * skip.c (skip_command): Constify.
2873 * compile/compile.c (_initialize_compile): Constify.
2874 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
2875 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
2876 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
2877 (maint_btrace_pt_show_cmd): Constify.
2878 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
2879 Constify.
2880 * python/python.c (user_show_python, user_set_python): Constify.
2881 * mips-tdep.c (set_mips_command, show_mips_command)
2882 (set_mipsfpu_command): Constify.
2883 * record-btrace.c (cmd_record_btrace_start)
2884 (cmd_set_record_btrace, cmd_show_record_btrace)
2885 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
2886 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
2887 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
2888 Constify.
2889 * symfile.c (overlay_command): Constify.
2890 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
2891 * cli/cli-logging.c (set_logging_command, show_logging_command):
2892 Constify.
2893 * cli/cli-dump.c (dump_command, append_command)
2894 (srec_dump_command, ihex_dump_command, verilog_dump_command)
2895 (tekhex_dump_command, binary_dump_command)
2896 (binary_append_command): Constify.
2897 * cli/cli-decode.c (struct cmd_list_element): Change type of
2898 "fun".
2899 * cli/cli-cmds.c (info_command, show_command, set_debug)
2900 (show_debug): Constify.
2901 (show_command): Add non-const overload.
2902 * top.c (set_history, show_history): Constify.
2903 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
2904 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
2905 * target.c (target_command): Constify.
2906 * sparc64-tdep.c (info_adi_command): Constify.
2907 * record-full.c (cmd_record_full_start): Constify.
2908 (set_record_full_command): Constify. Fix typo.
2909 (show_record_full_command): Constify.
2910 * thread.c (thread_command, thread_apply_command): Constify.
2911 * memattr.c (dummy_cmd): Constify.
2912 * value.c (function_command): Constify.
2913 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
2914 * probe.c (info_probes_command): Constify.
2915 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
2916 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
2917 (show_thread_cmd, set_thread_default_cmd)
2918 (show_thread_default_cmd): Constify.
2919 (check_empty): Constify.
2920 * tracepoint.c (tfind_command): Constify.
2921 * cp-support.c (maint_cplus_command): Constify.
2922 * windows-tdep.c (info_w32_command): Constify.
2923 * record.c (cmd_record_start, set_record_command)
2924 (show_record_command, info_record_command, cmd_record_goto):
2925 Constify.
2926 * ravenscar-thread.c (set_ravenscar_command)
2927 (show_ravenscar_command): Constify.
2928 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
2929 Constify.
2930 (add_internal_problem_command): Remove casts.
2931 * arc-tdep.c (maintenance_print_arc_command): Constify.
2932 * valprint.c (set_print, show_print, set_print_raw)
2933 (show_print_raw): Constify.
2934 * maint.c (maintenance_command, maintenance_info_command)
2935 (maintenance_print_command, maintenance_set_cmd)
2936 (maintenance_show_cmd, set_per_command_cmd)
2937 (show_per_command_cmd, maintenance_check_command): Constify.
2938 * language.c (set_check, show_check): Constify.
2939 * typeprint.c (show_print_type, set_print_type): Constify.
2940 * go32-nat.c (go32_info_dos_command): Constify.
2941
fdf44873
TT
29422017-10-11 Tom Tromey <tom@tromey.com>
2943
2944 * breakpoint.c (prepare_re_set_context): Remove.
2945 (breakpoint_re_set_one): Update. Don't use cleanups.
2946 (breakpoint_re_set): Use scoped_restore, std::string, and
2947 scoped_restore_current_language.
2948
81b1e71c
TT
29492017-10-11 Tom Tromey <tom@tromey.com>
2950
2951 * breakpoint.c (commands_command_1): Use std::string.
2952 (cleanup_executing_breakpoints): Remove.
2953 (bpstat_do_actions_1): Use scoped_restore.
2954 (bpstat_check_watchpoint): Use std::string.
2955 (decode_static_tracepoint_spec): Likewise.
2956 (break_range_command): Likewise.
2957 (watch_command_1): Likewise.
2958 (compare_breakpoints): Change argument types.
2959 (clear_command): Use std::vector.
2960 (cleanup_executing_breakpoints): Remove.
2961 (update_global_location_list): Use unique_xmalloc_ptr.
2962 (strace_command): Remove unused declaration.
2963
4f9d9906
JB
29642017-10-11 John Baldwin <jhb@FreeBSD.org>
2965
2966 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
2967 * NEWS: Mention new FreeBSD/arm native configuration.
2968 * configure.host: Add arm*-*-freebsd*.
2969 * configure.nat: Likewise.
2970 * arm-fbsd-nat.c: New file.
2971
7176dfd2
JB
29722017-10-11 John Baldwin <jhb@FreeBSD.org>
2973
2974 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
2975 (ALLDEPFILES): Add arm-fbsd-tdep.c.
2976 * NEWS: Mention new FreeBSD/arm target.
2977 * configure.tgt: Add arm*-*-freebsd*.
2978 * arm-fbsd-tdep.c: New file.
2979 * arm-fbsd-tdep.h: New file.
2980
fe220226
MR
29812017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2982
2983 * linux-tdep.c (linux_make_corefile_notes): Remove call to
2984 `gdbarch_elfcore_write_linux_prpsinfo'.
2985 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
2986 method.
2987 (elf_internal_linux_prpsinfo): Remove declaration.
2988 * gdbarch.h: Regenerate.
2989 * gdbarch.c: Regenerate.
2990
a2f63b2e
MR
29912017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2992
2993 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
2994 `set_gdbarch_elfcore_write_linux_prpsinfo'.
2995
458ca1d0
PA
29962017-10-11 Pedro Alves <palves@redhat.com>
2997
2998 * breakpoint.c (reattach_breakpoints): Delete.
2999 * breakpoint.h (reattach_breakpoints): Delete.
3000
905014d7
SM
30012017-10-11 Simon Marchi <simon.marchi@ericsson.com>
3002
3003 * symfile.c (registered_sym_fns): Make struct, not typedef.
3004 (DEF_VEC_O (registered_sym_fns)): Remove.
3005 (symtab_fns): Change type to std::vector.
3006 (add_symtab_fns): Adjust.
3007 (find_sym_fns): Adjust.
3008
56d704da
AK
30092017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
3010
3011 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
3012 * arc-tdep.h (arc_arch_is_em): New function.
3013 (arc_arch_is_hs): Likewise.
3014
7fa29be9
EB
30152017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
3016
3017 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
3018 parentheses in the declaration.
3019 (macro_lookup_inclusion): Likewise.
3020 (macro_lookup_definition): Likewise.
3021 * p-lang.h (pascal_builtin_types): Likewise.
3022 * tui/tui-data.c (tui_win_list): Likewise.
3023 * tui/tui-data.h (tui_win_list): Likewise.
3024 * utils.h (make_cleanup_free_section_addr_info): Likewise.
3025
d9b477e3
KB
30262017-10-11 Mark Rages <markrages@gmail.com>
3027
3028 * target-memory.c (block_boundaries): Fix for block address not
3029 aligned on block size.
3030
65630365
PA
30312017-10-10 Pedro Alves <palves@redhat.com>
3032 Tom Tromey <tom@tromey.com>
3033
3034 * breakpoint.c (struct captured_breakpoint_query_args)
3035 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
3036 (print_breakpoint): New.
3037 * breakpoint.h (print_breakpoint): Declare.
3038 * common/common-exceptions.h (enum return_reason): Remove
3039 references to catch_exceptions.
3040 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
3041 Delete.
3042 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
3043 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
3044 * gdb.h: Delete.
3045 * gdbthread.h (thread_select): Declare.
3046 * mi/mi-cmd-break.c: Don't include gdb.h.
3047 (breakpoint_notify): Use print_breakpoint.
3048 * mi/mi-cmd-catch.c: Don't include gdb.h.
3049 * mi/mi-interp.c: Don't include gdb.h.
3050 (mi_print_breakpoint_for_event): New.
3051 (mi_breakpoint_created, mi_breakpoint_modified): Use
3052 mi_print_breakpoint_for_event.
3053 * mi/mi-main.c: Don't include gdb.h.
3054 (mi_cmd_thread_select): Parse the global thread ID here. Use
3055 thread_select instead of gdb_thread_select.
3056 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
3057 of using gdb_list_thread_ids.
3058 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
3059 FILEIO_ENOSYS here.
3060 (remote_fileio_request): Use TRY/CATCH instead of
3061 catch_exceptions.
3062 * symfile-mem.c (struct symbol_file_add_from_memory_args)
3063 (symbol_file_add_from_memory_wrapper): Delete.
3064 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
3065 * thread.c: Don't include gdb.h.
3066 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
3067 (thread_alive): Use thread_select.
3068 (do_captured_thread_select): Delete, parts salvaged as ...
3069 (thread_select): ... this new function.
3070 (gdb_thread_select): Delete.
3071
bf469271
PA
30722017-10-10 Pedro Alves <palves@redhat.com>
3073 Tom Tromey <tom@tromey.com>
3074
3075 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
3076 and reverse logic.
3077 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
3078 No longer macros. Instead ...
3079 (enum wp_check_result): They're now values of this new
3080 enumeration.
3081 (watchpoint_check): Change return type to wp_check_result and
3082 parameter type to bpstat.
3083 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
3084 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
3085 catch_errors. Reverse logic of watchpoint_check call.
3086 (breakpoint_re_set_one): Now returns void and takes a breakpoint
3087 pointer as parameter.
3088 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
3089 * common/common-exceptions.c (throw_exception_sjlj): Update
3090 comments to avoid mentioning catch_errors.
3091 * exceptions.c (catch_errors): Delete.
3092 * exceptions.h: Update comments to avoid mentioning catch_errors.
3093 (catch_errors_ftype, catch_errors): Delete.
3094 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
3095 (hook_stop_stub): Delete.
3096 (restore_selected_frame): Change return type to void, and
3097 parameter type to const frame_id &.
3098 (restore_infcall_control_state): Use TRY/CATCH instead of
3099 catch_errors.
3100 * main.c (captured_command_loop): Return void and remove
3101 parameter. Remove references to catch_errors.
3102 (captured_main): Use TRY/CATCH instead of catch_errors.
3103 * objc-lang.c (objc_submethod_helper_data)
3104 (find_objc_msgcall_submethod_helper): Delete.
3105 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
3106 catch_errors.
3107 * record-full.c (record_full_message): Return void.
3108 (record_full_message_args, record_full_message_wrapper): Delete.
3109 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
3110 instead of catch_errors.
3111 * solib-aix.c (solib_aix_open_symbol_file_object): Change
3112 parameter type to int.
3113 * solib-darwin.c (open_symbol_file_object): Ditto.
3114 * solib-dsbt.c (open_symbol_file_object): Ditto.
3115 * solib-frv.c (open_symbol_file_object): Ditto.
3116 * solib-svr4.c (open_symbol_file_object): Ditto.
3117 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
3118 * solib.c (update_solib_list): Use TRY/CATCH instead of
3119 catch_errors.
3120 * solist.h (struct target_so_ops) <open_symbol_file_object>:
3121 Change type.
3122 * symmisc.c (struct print_symbol_args): Remove.
3123 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
3124 (print_symbol): Change type.
3125 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
3126 and remove parameters.
3127 (catch_errors): New.
3128 (get_windows_debug_event): Adjust.
3129
1a56bfa5
TT
31302017-10-09 Tom Tromey <tom@tromey.com>
3131
3132 * mi/mi-main.c (free_splay_tree): Remove.
3133 (list_available_thread_groups): Use splay_tree_up.
3134 * common/gdb_splay_tree.h: New file.
3135
0c478e2d
TT
31362017-10-09 Tom Tromey <tom@tromey.com>
3137
3138 * mi/mi-main.c (do_nothing): Remove.
3139 (list_available_thread_groups): Update.
3140
cbd2b4e3
PA
31412017-10-09 Pedro Alves <palves@redhat.com>
3142
3143 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
3144 reading registers when switching context.
3145
a181c0bf
JB
31462017-10-09 John Baldwin <jhb@FreeBSD.org>
3147
3148 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
3149 (fbsd_convert_siginfo): Likewise.
3150 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
3151
6e66f753
SM
31522017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
3153
3154 * configure.ac (try_guile_versions): Remove guile-2.2.
3155 * configure: Regenerate.
3156
890e9790
TT
31572017-10-09 Tom Tromey <tom@tromey.com>
3158
3159 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
3160 (COMPILE.pre): Use $(CXX).
3161
109483d9
PA
31622017-10-09 Pedro Alves <palves@redhat.com>
3163
3164 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
3165 Use bool.
3166 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
3167 * cp-support.h (cp_remove_params): Now returns a
3168 gdb::unique_xmalloc_ptr.
3169 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
3170 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
3171 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
3172 returning a gdb::unique_xmalloc_ptr.
3173 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
3174 * stack.c (find_frame_funname): Adjust to cp_remove_params
3175 returning a gdb::unique_xmalloc_ptr.
3176
791afaa2
TT
31772017-10-08 Tom Tromey <tom@tromey.com>
3178
3179 * dwarf2read.c (dwarf2_get_dwz_file): Use
3180 gdb::unique_xmalloc_ptr.
3181 (find_slot_in_mapped_hash): Likewise.
3182 (dwarf2_physname): Likewise.
3183 (create_dwo_unit_in_dwp_v1): Use std::string.
3184 (create_dwo_unit_in_dwp_v2): Likewise.
3185 (lookup_dwo_cutu): Likewise.
3186 (inherit_abstract_dies): Use std::vector.
3187 (read_array_type): Likewise.
3188 (dwarf_decode_macros): Remove unused declaration.
3189 (unsigned_int_compar): Remove.
3190 (dwarf2_build_psymtabs_hard): Use scoped_restore.
3191 (psymtabs_addrmap_cleanup): Remove.
3192
30a9c02f
TT
31932017-10-08 Tom Tromey <tom@tromey.com>
3194
3195 * frame-unwind.c (frame_unwind_try_unwinder): Update.
3196 * frame.h (frame_cleanup_after_sniffer): Declare.
3197 (frame_prepare_for_sniffer): Return void.
3198 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
3199 type of argument.
3200 (frame_prepare_for_sniffer): Return void.
3201
757325a3
TT
32022017-10-08 Tom Tromey <tom@tromey.com>
3203
3204 * utils.h (make_cleanup_value_free): Remove.
3205 * utils.c (do_value_free, struct cleanup): Remove.
3206 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
3207 Use gdb_value_up.
3208 * value.h (struct value_deleter): New.
3209 (gdb_value_up): New typedef.
3210
b9c04fb2
TT
32112017-10-08 Tom Tromey <tom@tromey.com>
3212
3213 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
3214 (make_cleanup_free_search_symbols): Remove.
3215 (search_symbols): Return std::vector.
3216 (symbol_search::compare_search_syms): Now member of
3217 symbol_search. Change arguments.
3218 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
3219 (symtab_symbol_info, rbreak_command): Update.
3220 * symtab.h (struct symbol_search) <next>: Remove.
3221 Add constructors.
3222 (symbol_search::operator<): New function.
3223 (symbol_search::operator==): New function.
3224 (search_symbols): Remove std::vector.
3225 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
3226 (symbol_search::compare_search_syms): Declare.
3227
0d28b0a5
YQ
32282017-10-06 Yao Qi <yao.qi@linaro.org>
3229
3230 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
3231 arch/aarch64-insn.o.
3232 Remove one rule.
3233 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
3234
71917808
YQ
32352017-10-06 Yao Qi <yao.qi@linaro.org>
3236
3237 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
3238 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
3239 arch/arm-linux.o respectively.
3240 * configure.tgt: Likewise.
3241
2081b2b2
YQ
32422017-10-06 Yao Qi <yao.qi@linaro.org>
3243
3244 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
3245 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
3246
a1b85d28
PA
32472017-10-06 Pedro Alves <palves@redhat.com>
3248
3249 * windows-nat.c: Include <algorithm>.
3250
d97987e2
YQ
32512017-10-06 Yao Qi <yao.qi@linaro.org>
3252
3253 * configure.tgt (i386_tobjs): New variable.
3254 (amd64_tobjs): New variable.
3255 Set $cpu_obs and $os_obs.
3256
f38307f5
YQ
32572017-10-06 Yao Qi <yao.qi@linaro.org>
3258
3259 * Makefile.in (CONFIG_SRC_SUBDIR): New.
3260 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
3261 (clean): Remove object files and dependency files.
3262 (distclean): Remove the directory.
3263 * configure.ac: Invoke AC_CONFIG_COMMANDS.
3264 * configure: Re-generated.
3265 * configure.tgt: Replace amd64.o with arch/amd64.o.
3266
2f924de6
JM
32672017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
3268
3269 PR build/22188
3270 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
3271 and SETEND.
3272
2fd9d7ca
PA
32732017-10-05 Pedro Alves <palves@redhat.com>
3274
3275 * linux-nat.c (linux_child_follow_fork): When following the parent
3276 and detaching the child, consult the parent thread's architecture
3277 instead of the child's.
3278
d13b8493
UW
32792017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3280
3281 * ax.h: Do not include "doublest.h".
3282 (union agent_val): Remove.
3283
3b4b2f16
UW
32842017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3285
3286 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
3287 (decimal_to_string): Return std::string object.
3288 (decimal_from_string): Accept std::string object. Return bool.
3289 (decimal_from_integral, decimal_from_doublest): Remove.
3290 (decimal_from_longest): Add prototype.
3291 (decimal_from_ulongest): Likewise.
3292 (decimal_to_longest): Likewise.
3293 (decimal_from_doublest): Likewise.
3294 * dfp.c: Do not include "gdbtypes.h" or "value.h".
3295 (MAX_DECIMAL_STRING): Move here.
3296 (decimal_to_string): Return std::string object.
3297 (decimal_from_string): Accept std::string object. Return bool.
3298 (decimal_from_integral): Remove, replace by ...
3299 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
3300 (decimal_to_longest): New function.
3301 (decimal_from_floating): Remove, replace by ...
3302 (decimal_from_doublest): ... this new function.
3303 (decimal_to_doublest): Update to new decimal_to_string interface.
3304
3305 * value.c (unpack_long): Use decimal_to_longest.
3306 * valops.c (value_cast): Use decimal_from_doublest instead of
3307 decimal_from_floating. Use decimal_from_[u]longest isntead of
3308 decimal_from_integral.
3309 * valarith.c (value_args_as_decimal): Likewise.
3310 * valprint.c (print_decimal_floating): Update to new
3311 decimal_to_string interface.
3312 * printcmd.c (printf_decfloat): Likewise.
3313 * c-exp.y (parse_number): Update to new decimal_from_string interface.
3314
1841ee5d
UW
33152017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3316
3317 * doublest.h: Do not include "floatformat.h". Remove stale comments.
3318 * gdbtypes.c: Include "floatformat.h".
3319 * value.c: Likewise.
3320 * m68k-tdep.c: Likewise.
3321
3322 * findvar.c: Do not include "floatformat.h".
3323 * amd64-darwin-tdep.c: Likewise.
3324 * arm-linux-tdep.c: Likewise.
3325 * i386-darwin-tdep.c: Likewise.
3326 * i387-tdep.c: Likewise.
3327 * m68k-linux-tdep.c: Likewise.
3328 * mep-tdep.c: Likewise.
3329 * mips-tdep.c: Likewise.
3330 * nios2-tdep.c: Likewise.
3331 * s390-linux-tdep.c: Likewise.
3332 * sparc-obsd-tdep.c: Likewise.
3333 * sparc-tdep.c: Likewise.
3334 * sparc64-tdep.c: Likewise.
3335 * spu-tdep.c: Likewise.
3336 * tic6x-tdep.c: Likewise.
3337 * tilegx-tdep.c: Likewise.
3338 * vax-tdep.c: Likewise.
3339 * xstormy16-tdep.c: Likewise.
3340 * xtensa-tdep.c: Likewise.
3341
3342 * top.c: Do not include "doublest.h".
3343 * aarch64-tdep.c: Likewise.
3344 * alpha-tdep.c: Likewise.
3345 * arm-linux-tdep.c: Likewise.
3346 * m68k-linux-tdep.c: Likewise.
3347 * tilegx-tdep.c: Likewise.
3348 * xstormy16-tdep.c: Likewise.
3349
a80a6471
JB
33502017-10-05 John Baldwin <jhb@FreeBSD.org>
3351
3352 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
3353 (mipsn32_fbsd_sigframe): Define.
3354 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
3355 for FreeBSD/mipsn32.
3356
12c4bd7f
JB
33572017-10-05 John Baldwin <jhb@FreeBSD.org>
3358
3359 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
3360 AT_HWCAP.
3361
c91933e9
TG
33622017-10-05 Tristan Gingold <tgingold@free.fr>
3363
3364 * MAINTAINERS (Misc): Update my email address.
3365
5cd63fda
PA
33662017-10-04 Pedro Alves <palves@redhat.com>
3367
3368 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
3369 it instead of target_gdbarch.
3370 (get_remote_state, get_remote_packet_size): Adjust
3371 get_remote_arch_state calls, passing down target_gdbarch
3372 explicitly.
3373 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
3374 'gdbarch' and use it instead of target_gdbarch.
3375 (get_memory_packet_size): Adjust get_remote_arch_state calls,
3376 passing down target_gdbarch explicitly.
3377 (struct stop_reply) <arch>: New field.
3378 (remote_parse_stop_reply): Use the stopped thread's architecture,
3379 not the current inferior's. Save the architecture in the
3380 stop_reply.
3381 (process_stop_reply): Use the stop reply's architecture.
3382 (process_g_packet, remote_fetch_registers)
3383 (remote_prepare_to_store, store_registers_using_G)
3384 (remote_store_registers): Adjust get_remote_arch_state calls,
3385 using the regcache's architecture.
3386 (remote_get_trace_status): Adjust get_remote_arch_state calls,
3387 passing down target_gdbarch explicitly.
3388 * spu-multiarch.c (spu_thread_architecture): Defer to the target
3389 beneath instead of calling target_gdbarch.
3390 * target.c (default_thread_architecture): Use the specified
3391 inferior's architecture, instead of the current inferior's
3392 architecture (via target_gdbarch).
3393
ed4227b7
PA
33942017-10-04 Pedro Alves <palves@redhat.com>
3395
3396 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
3397 case.
3398 (regcache_print): Handle !target_has_registers here instead.
3399
55b11ddf
PA
34002017-10-04 Pedro Alves <palves@redhat.com>
3401
3402 * frame.c (create_test_frame): Delete.
3403 * frame.h (create_test_frame): Delete.
3404 * gdbarch-selftests.c: Include gdbthread.h and target.h.
3405 (class regcache_test): Delete.
3406 (test_target_has_registers, test_target_has_stack)
3407 (test_target_has_memory, test_target_prepare_to_store)
3408 (test_target_store_registers): New functions.
3409 (test_target_ops): New class.
3410 (register_to_value_test): Error out if there's already a
3411 process_stratum (or higher) target pushed. Create a fuller mock
3412 environment, with mock target_ops, inferior, address space, thread
3413 and inferior_ptid.
3414 * progspace.c (struct address_space): Move to ...
3415 * progspace.h (struct address_space): ... here.
3416 * regcache.h (regcache::~regcache, regcache::raw_write)
3417 [GDB_SELF_TEST]: No longer virtual.
3418
4c71c105
SM
34192017-10-04 Simon Marchi <simon.marchi@ericsson.com>
3420
3421 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
3422
73dcd72d
PA
34232017-10-04 Pedro Alves <palves@redhat.com>
3424
3425 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
3426 out of 'between TRY and CATCH'.
3427
44704526
PA
34282017-10-04 Pedro Alves <palves@redhat.com>
3429
3430 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
3431 * common/common-exceptions.h (TRY): Open an outermost scope.
3432 Expand intro comment.
3433 (CATCH): Reindent.
3434 (END_CATCH): Close the outermost scope.
3435 * completer.c (complete_line_internal): Add missing END_CATCH.
3436
bc3b087d
SDJ
34372017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3438
3439 * NEWS (Changes since GDB 8.0): Add entry about new
3440 'set-cwd-on-gdbserver' feature.
3441 (New remote packets): Add entry for QSetWorkingDir.
3442 * common/common-inferior.h (set_inferior_cwd): New prototype.
3443 * infcmd.c (set_inferior_cwd): Remove "static".
3444 (show_cwd_command): Expand text to include remote debugging.
3445 * remote.c: Add PACKET_QSetWorkingDir.
3446 (remote_protocol_features) <QSetWorkingDir>: New entry for
3447 PACKET_QSetWorkingDir.
3448 (extended_remote_set_inferior_cwd): New function.
3449 (extended_remote_create_inferior): Call
3450 "extended_remote_set_inferior_cwd".
3451 (_initialize_remote): Call "add_packet_config_cmd" for
3452 QSetWorkingDir.
3453
d092c5a2
SDJ
34542017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3455
3456 * NEWS (New commands): Mention "set/show cwd".
3457 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
3458 "cd" command's help text.
3459 * common/common-inferior.h (get_inferior_cwd): New prototype.
3460 * infcmd.c (inferior_cwd_scratch): New global variable.
3461 (set_inferior_cwd): New function.
3462 (get_inferior_cwd): Likewise.
3463 (set_cwd_command): Likewise.
3464 (show_cwd_command): Likewise.
3465 (_initialize_infcmd): Add "set/show cwd" commands.
3466 * inferior.h (class inferior) <cwd>: New field.
3467 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
3468 (fork_inferior): Change inferior's cwd before its execution.
3469 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
3470 to CreateProcess.
3471
7da0a886
SDJ
34722017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3473
3474 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
3475 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
3476 (COMMON_OBS): Add gdb_tilde_expand.o.
3477 * common/gdb_tilde_expand.c: New file.
3478 * common/gdb_tilde_expand.h: Likewise.
3479
db8dd160
MR
34802017-10-03 Maciej W. Rozycki <macro@imgtec.com>
3481
3482 * gdbarch.sh (objfile): Remove duplicate declaration.
3483 * gdbarch.h: Regenerate.
3484
f8bfbf22
TT
34852017-10-03 Tom Tromey <tom@tromey.com>
3486
3487 * utils.c (internal_vproblem): Use string_vprintf.
3488
5178ed48
TT
34892017-10-03 Tom Tromey <tom@tromey.com>
3490
3491 * printcmd.c (info_symbol_command): Use std::string.
3492
8cff8730
TT
34932017-10-03 Tom Tromey <tom@tromey.com>
3494
3495 * top.c (gdb_safe_append_history): Use std::string.
3496
895b8f30
TT
34972017-10-03 Tom Tromey <tom@tromey.com>
3498
3499 * event-top.c (stdin_event_handler): Update.
3500 * main.c (captured_main_1): Update.
3501 * top.h (make_delete_ui_cleanup): Remove.
3502 (struct ui): Add constructor and destructor.
3503 (new_ui, delete_ui): Remove.
3504 * top.c (make_delete_ui_cleanup): Remove.
3505 (new_ui_command): Use std::unique_ptr.
3506 (delete_ui_cleanup): Remove.
3507 (ui::ui): Rename from new_ui. Update.
3508 (free_ui): Remove.
3509 (ui::~ui): Rename from delete_ui. Update.
3510
0efef640
TT
35112017-10-03 Tom Tromey <tom@tromey.com>
3512
3513 * symfile.c (load_progress): Use gdb::byte_vector.
3514
245ad7d3
TT
35152017-10-03 Tom Tromey <tom@tromey.com>
3516
3517 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
3518 declaration.
3519 * printcmd.c (x_command): Remove unused declaration.
3520 * symfile.c (symbol_file_command): Remove unused declaration.
3521
e05550d7
TT
35222017-10-03 Tom Tromey <tom@tromey.com>
3523
3524 * utils.c (internal_vproblem): Use std::string.
3525 (defaulted_query): Likewise.
3526
b95de2b7
TT
35272017-10-03 Tom Tromey <tom@tromey.com>
3528
3529 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
3530 * top.c (execute_command_to_string): Update.
3531 * utils.c (make_cleanup_restore_page_info): Remove.
3532 (do_restore_page_info_cleanup): Remove.
3533 (set_batch_flag_and_restore_page_info):
3534 New.
3535 (make_cleanup_restore_page_info): Remove.
3536 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
3537 (~set_batch_flag_and_restore_page_info): New
3538 (make_cleanup_restore_uinteger): Remove.
3539 (make_cleanup_restore_integer): Remove.
3540 (struct restore_integer_closure): Remove.
3541 (restore_integer): Remove.
3542 * utils.h (struct set_batch_flag_and_restore_page_info): New
3543 class.
3544 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
3545 (make_cleanup_restore_page_info): Remove.
3546 (make_cleanup_restore_uinteger) Remove.
3547 (make_cleanup_restore_integer) Remove.
3548
07036511
TT
35492017-10-03 Tom Tromey <tom@tromey.com>
3550
3551 * record-full.h (record_full_gdb_operation_disable_set): Return
3552 scoped_restore_tmpl<int>.
3553 * infrun.c (adjust_pc_after_break): Update.
3554 (handle_signal_stop): Update.
3555 * record-full.c (record_full_gdb_operation_disable_set): Return
3556 scoped_restore_tmpl<int>.
3557 (record_full_wait_1, record_full_insert_breakpoint)
3558 (record_full_remove_breakpoint, record_full_save)
3559 (record_full_goto_insn): Update.
3560
45320ffa
TT
35612017-10-02 Tom Tromey <tom@tromey.com>
3562
3563 PR rust/22236:
3564 * rust-lang.c (rust_val_print_str): New function.
3565 (val_print_struct): Call it.
3566 (rust_subscript): Preserve name of slice type.
3567
b3e3859b
TT
35682017-10-02 Tom Tromey <tom@tromey.com>
3569
3570 * rust-lang.c (rust_subscript): Handle slices in
3571 EVAL_AVOID_SIDE_EFFECTS case.
3572
01af5e0d
TT
35732017-10-02 Tom Tromey <tom@tromey.com>
3574
3575 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
3576
888e3ddb
TT
35772017-10-02 Tom Tromey <tom@tromey.com>
3578
3579 * rust-lang.h (rust_slice_type): Add "extern".
3580
cc536b21
PA
35812017-10-02 Tom Tromey <tom@tromey.com>
3582 Pedro Alves <palves@redhat.com>
3583
3584 * ada-lang.h (ada_exc_info::operator<): Make const.
3585 (ada_exc_info::operator==): Make const.
3586 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
3587 Make const.
3588
386c8614
TT
35892017-09-29 Tom Tromey <tom@tromey.com>
3590
3591 * target.c (read_whatever_is_readable): Change type of "result".
3592 Update.
3593 (free_memory_read_result_vector): Remove.
3594 (read_memory_robust): Change return type. Update.
3595 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
3596 bin2hex, std::string.
3597 * target.h (memory_read_result_s): Remove typedef.
3598 (free_memory_read_result_vector): Remove.
3599 (read_memory_robust): Return std::vector.
3600
789c4b5e
TT
36012017-09-29 Tom Tromey <tom@tromey.com>
3602
3603 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
3604
ab816a27
TT
36052017-09-29 Tom Tromey <tom@tromey.com>
3606
3607 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
3608 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
3609 operator< and operator==.
3610 (ada_exceptions_list): Return a std::vector.
3611 * ada-lang.c (ada_exc_info::operator<): Rename from
3612 compare_ada_exception_info.
3613 (ada_exc_info::operator==): New.
3614 (sort_remove_dups_ada_exceptions_list): Change type of
3615 "exceptions".
3616 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
3617 (ada_add_global_exceptions): Likewise.
3618 (ada_exceptions_list_1): Return a std::vector.
3619 (ada_exceptions_list): Likewise.
3620
52f9abe4
TT
36212017-09-29 Tom Tromey <tom@tromey.com>
3622
3623 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
3624 'std::set *'.
3625 (print_one_inferior): Update.
3626 (free_vector_of_ints): Remove.
3627 (list_available_thread_groups): Change "ids" to std::set.
3628 (mi_cmd_list_thread_groups): Update.
3629 (struct collect_cores_data) <core>: Now a std::set.
3630 (collect_cores): Update.
3631 (unique): Remove.
3632 (print_one_inferior): Update.
3633
dcd5ddcc
TT
36342017-09-29 Tom Tromey <tom@tromey.com>
3635
3636 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
3637 (mi_execute_async_cli_command): Likewise.
3638 (mi_cmd_trace_frame_collected): Use field_fmt.
3639
45d288cc
TT
36402017-09-29 Tom Tromey <tom@tromey.com>
3641
3642 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
3643 gdb::byte_vector.
3644
6afe2f4a
TT
36452017-09-29 Tom Tromey <tom@tromey.com>
3646
3647 * mi/mi-parse.c (mi_parse): Remove unused declaration.
3648
9813429a
TT
36492017-09-29 Tom Tromey <tom@tromey.com>
3650
3651 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
3652
2d6960b4
TT
36532017-09-29 Tom Tromey <tom@tromey.com>
3654
3655 * varobj.h (varobj_gen_name): Return std::string.
3656 * varobj.c (varobj_gen_name): Return std::string.
3657 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
3658 (mi_cmd_var_delete): Don't copy "name".
3659
784c453a
TT
36602017-09-29 Tom Tromey <tom@tromey.com>
3661
3662 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
3663 (mi_cmd_break_insert_1): Update.
3664
a9bc57b9
TT
36652017-09-29 Tom Tromey <tom@tromey.com>
3666
3667 * target.h (make_scoped_defer_target_commit_resume): Update.
3668 * target.c (make_scoped_defer_target_commit_resume): Rename from
3669 make_cleanup_defer_target_commit_resume. Return a
3670 scoped_restore.
3671 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
3672
9754d8c4
TT
36732017-09-29 Tom Tromey <tom@tromey.com>
3674
3675 * main.c (captured_main_1): Remove unused declaration.
3676 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
3677
99ef965c
TT
36782017-09-29 Tom Tromey <tom@tromey.com>
3679
3680 * symtab.c (search_symbols): Remove unused outer cleanup.
3681 (make_source_files_completion_list): Remove unused declaration.
3682
42518ba7
TT
36832017-09-29 Tom Tromey <tom@tromey.com>
3684
3685 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
3686
726b2169
TT
36872017-09-29 Tom Tromey <tom@tromey.com>
3688
3689 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
3690 gdb::byte_vector.
3691
55b06432
TT
36922017-09-29 Tom Tromey <tom@tromey.com>
3693
3694 * complaints.c (vcomplaint): Use std::string.
3695
8abcee91
TT
36962017-09-29 Tom Tromey <tom@tromey.com>
3697
3698 * tracepoint.c (trace_variable_command): Use std::string.
3699 (encode_actions_1): Remove unused declarations.
3700 (create_tsv_from_upload): Use std::string.
3701
6ad94bc7
TT
37022017-09-29 Tom Tromey <tom@tromey.com>
3703
3704 * cp-support.c (gdb_demangle): Use std::string.
3705
2003f3d8
TT
37062017-09-29 Tom Tromey <tom@tromey.com>
3707
3708 * stack.c (parse_frame_specification): Use std::string
3709 (info_frame_command): Use gdb::unique_xmalloc_ptr.
3710
8f8accb5
TT
37112017-09-29 Tom Tromey <tom@tromey.com>
3712
3713 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
3714
200aa7b1
TT
37152017-09-29 Tom Tromey <tom@tromey.com>
3716
3717 * utils.c (vfprintf_maybe_filtered): Use std::string.
3718 (vfprintf_unfiltered): Likewise.
3719
606aae8a
TT
37202017-09-29 Tom Tromey <tom@tromey.com>
3721
3722 * event-top.c (top_level_prompt): Return std::string.
3723 (display_gdb_prompt): Update.
3724
bd413795
TT
37252017-09-29 Tom Tromey <tom@tromey.com>
3726
3727 * unittests/common-utils-selftests.c (format): New function.
3728 (string_vprintf_tests): New function.
3729 (_initialize_common_utils_selftests): Register new tests.
3730 * common/common-utils.c (string_vprintf): New function.
3731 * common/common-utils.h (string_vprintf): Declare.
3732
256642e8
PA
37332017-09-29 Pedro Alves <palves@redhat.com>
3734
3735 * common/rsp-low.c (unpack_varlen_hex): Constify.
3736 * common/rsp-low.h (unpack_varlen_hex): Constify.
3737 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3738 Constify.
3739 * remote.c (remote_set_permissions, read_ptid)
3740 (remote_current_thread, remote_get_threads_with_qthreadinfo)
3741 (remote_static_tracepoint_marker_at)
3742 (remote_static_tracepoint_markers_by_strid)
3743 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
3744 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
3745 (parse_tracepoint_definition, parse_tsv_definition)
3746 (parse_static_tracepoint_marker_definition): Constify.
3747 * tracepoint.h (parse_static_tracepoint_marker_definition)
3748 (parse_trace_status, parse_tracepoint_status)
3749 (parse_tracepoint_definition, parse_tsv_definition): Constify.
3750
b6bb3468
PA
37512017-09-29 Pedro Alves <palves@redhat.com>
3752
3753 * remote.c (target_buf, target_buf_size): Delete.
3754 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
3755 Use the connection's packet buffer instead.
3756 All callers adjusted.
3757 (_initialize_remote): Remove references to target_buf and
3758 target_buf_size.
3759
b2f8eb7a
PA
37602017-09-28 Pedro Alves <palves@redhat.com>
3761
3762 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3763 unittests/common-utils-selftests.c.
3764 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
3765 (COMMON_OBS): Remove utils-selftests.o.
3766 * utils-selftests.c: Move to ...
3767 * unittests/common-utils-selftests.c: ... here and rename self
3768 test to "string_printf".
3769
08302ed2
DE
37702017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
3771
3772 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
3773 having NULL cus or tus.
3774
96a5a1d3
UW
37752017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3776
3777 * arm-tdep.c: (convert_from_extended): Remove.
3778 (convert_to_extended): Likewise.
3779 (arm_extract_return_value): Use convert_typed_floating.
3780 (arm_store_return_value): Likewise.
3781
3782 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3783 * sh-tdep.c: Do not include "floatformat.h".
3784 (sh_littlebyte_bigword_type): New function.
3785 (sh_register_convert_to_virtual): Use convert_typed_floating.
3786 (sh_register_convert_to_raw): Likewise.
3787 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3788 (sh64_littlebyte_bigword_type): New function.
3789 (sh64_extract_return_value): Use convert_typed_floating.
3790 (sh64_register_convert_to_virtual): Likewise.
3791 (sh64_register_convert_to_raw): Likewise.
3792
0db7851f
UW
37932017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3794
3795 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
3796 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
3797
3798 * gdbtypes.h (union type_specific): Make field floatformat hold
3799 just a single struct floatformat, not an array.
3800 (floatformat_from_type): Move here.
3801 * gdbtypes.c (floatformat_from_type): Move here. Update to
3802 changed TYPE_FLOATFORMAT definition.
3803 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
3804 (recursive_dump_type): Likewise.
3805 (init_float_type): Install correct floatformat for byte order.
3806 (arch_float_type): Likewise.
3807
77b7c781
UW
38082017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3809
3810 * gdbtypes.c (init_type): Change incoming argument from
3811 length-in-bytes to length-in-bits. Assert length is a
3812 multiple of TARGET_CHAR_BITS.
3813 (arch_type, arch_flags_type): Likewise.
3814 (init_integer_type): Update call to init_type.
3815 (init_character_type): Likewise.
3816 (init_boolean_type): Likewise.
3817 (init_float_type): Likewise.
3818 (init_decfloat_type): Likewise.
3819 (init_complex_type): Likewise.
3820 (init_pointer_type): Likewise.
3821 (objfile_type): Likewise.
3822 (arch_integer_type): Update call to arch_type.
3823 (arch_character_type): Likewise.
3824 (arch_boolean_type): Likewise.
3825 (arch_float_type): Likewise.
3826 (arch_decfloat_type): Likewise.
3827 (arch_complex_type): Likewise.
3828 (arch_pointer_type): Likewise.
3829 (gdbtypes_post_init): Likewise.
3830
3831 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
3832 (read_base_type): Likewise.
3833 * mdebugread.c (basic_type): Likewise.
3834 * stabsread.c (dbx_init_float_type): Likewise.
3835 (rs6000_builtin_type): Likewise.
3836 (read_range_type): Likewise. Also, fix call to init_integer_type
3837 with erroneous length argument.
3838
3839 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
3840 * d-lang.c (build_d_types): Likewise.
3841 * f-lang.c (build_fortran_types): Likewise.
3842 * go-lang.c (build_go_types): Likewise.
3843 * opencl-lang.c (build_opencl_types): Likewise.
3844 * jit.c (finalize_symtab): Likewise.
3845 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3846 (build_std_type_info_type): Likewise.
3847 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
3848 update call to arch_flags_type.
3849
3850 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
3851 arch_type.
3852 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
3853 * windows-tdep.c (windows_get_tlb_type): Likewise.
3854
3855 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
3856 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
3857 * m32c-tdep.c (make_types): Likewise.
3858 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3859 (rl78_psw_type): Update call to arch_flags_type.
3860 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
3861 * rx-tdep.c (rx_psw_type): Likewise.
3862 (rx_fpsw_type): Likewise.
3863 * sparc-tdep.c (sparc_psr_type): Likewise.
3864 (sparc_fsr_type): Likewise.
3865 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
3866 (sparc64_ccr_type): Likewise.
3867 (sparc64_fsr_type): Likewise.
3868 (sparc64_fprs_type): Likewise.
3869
f21b4d5c
TT
38702017-09-27 Tom Tromey <tom@tromey.com>
3871
3872 * findcmd.c (find_command): Constify.
3873
643c2ffa
TT
38742017-09-27 Tom Tromey <tom@tromey.com>
3875
3876 * ada-tasks.c (task_command_1, task_command): Constify.
3877
510e5e56
TT
38782017-09-27 Tom Tromey <tom@tromey.com>
3879
3880 * symtab.c (maintenance_print_symbol_cache)
3881 (maintenance_flush_symbol_cache)
3882 (maintenance_print_symbol_cache_statistics): Constify.
3883
e503b191
TT
38842017-09-27 Tom Tromey <tom@tromey.com>
3885
3886 * inferior.c (detach_inferior_command, kill_inferior_command)
3887 (inferior_command): Constify.
3888
4e001312
TT
38892017-09-27 Tom Tromey <tom@tromey.com>
3890
3891 * regcache.c (regcache_print, maintenance_print_registers)
3892 (maintenance_print_raw_registers)
3893 (maintenance_print_cooked_registers)
3894 (maintenance_print_register_groups)
3895 (maintenance_print_remote_registers): Constify.
3896
77763700
TT
38972017-09-27 Tom Tromey <tom@tromey.com>
3898
3899 * printcmd.c (map_display_numbers, undisplay_command)
3900 (enable_disable_display_command, enable_display_command)
3901 (disable_display_command): Constify.
3902
4495129a
TT
39032017-09-27 Tom Tromey <tom@tromey.com>
3904
3905 * breakpoint.h (delete_command): Don't declare.
3906 * breakpoint.c (delete_command, enable_once_command)
3907 (enable_count_command, enable_delete_command, breakpoint_1)
3908 (maintenance_info_breakpoints, stopin_command, stopat_command)
3909 (delete_command, delete_trace_command, save_breakpoints)
3910 (save_breakpoints_command, save_tracepoints_command): Constify.
3911
3088cf40
TT
39122017-09-27 Tom Tromey <tom@tromey.com>
3913
3914 * macrocmd.c (macro_expand_command, macro_expand_once_command)
3915 (skip_ws, extract_identifier, macro_define_command)
3916 (macro_undef_command, macro_list_command): Constify.
3917
69f476a3
TT
39182017-09-27 Tom Tromey <tom@tromey.com>
3919
3920 * infcmd.c (environment_info, set_environment_command)
3921 (unset_environment_command, path_info, info_proc_cmd_1)
3922 (info_proc_cmd_mappings, info_proc_cmd_stat)
3923 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
3924 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
3925
c4a3e68e
TT
39262017-09-27 Tom Tromey <tom@tromey.com>
3927
3928 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
3929 Constify.
3930
c9d31bd6
TT
39312017-09-27 Tom Tromey <tom@tromey.com>
3932
3933 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
3934
1f3f85eb
TT
39352017-09-27 Tom Tromey <tom@tromey.com>
3936
3937 * demangle.c (demangle_command): Constify.
3938
9c504b5d
TT
39392017-09-27 Tom Tromey <tom@tromey.com>
3940
3941 * progspace.c (maintenance_info_program_spaces_command):
3942 Constify.
3943
6663cf91
TT
39442017-09-27 Tom Tromey <tom@tromey.com>
3945
3946 * compile/compile.c (check_raw_argument, compile_file_command)
3947 (compile_code_command, compile_print_command): Constify.
3948
34e5fa26
TT
39492017-09-27 Tom Tromey <tom@tromey.com>
3950
3951 * reggroups.c (maintenance_print_reggroups): Constify.
3952
8384c356
TT
39532017-09-27 Tom Tromey <tom@tromey.com>
3954
3955 * dwarf2read.c (save_gdb_index_command): Constify.
3956
884beb0c
TT
39572017-09-27 Tom Tromey <tom@tromey.com>
3958
3959 * stap-probe.c (info_probes_stap_command): Constify.
3960
e0b2930c
TT
39612017-09-27 Tom Tromey <tom@tromey.com>
3962
3963 * fork-child.c (unset_exec_wrapper_command): Constify.
3964
f938677d
TT
39652017-09-27 Tom Tromey <tom@tromey.com>
3966
3967 * btrace.c (get_uint, get_context_size, no_chunk)
3968 (maint_btrace_packet_history_cmd)
3969 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3970 (maint_info_btrace_cmd): Constify.
3971
8949cb87
TT
39722017-09-27 Tom Tromey <tom@tromey.com>
3973
3974 * reverse.c (delete_bookmark_command): Constify.
3975
ac88e2de
TT
39762017-09-27 Tom Tromey <tom@tromey.com>
3977
3978 * remote.c (set_memory_packet_size)
3979 (set_memory_write_packet_size, show_memory_write_packet_size)
3980 (set_memory_read_packet_size, show_memory_read_packet_size)
3981 (compare_sections_command, packet_command, remote_put_command)
3982 (remote_get_command, remote_delete_command): Constify.
3983
bd4c9dfe
TT
39842017-09-27 Tom Tromey <tom@tromey.com>
3985
3986 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
3987 (set_mipsfpu_double_command, set_mipsfpu_none_command)
3988 (set_mipsfpu_auto_command): Constify.
3989
5e93d4c6
TT
39902017-09-27 Tom Tromey <tom@tromey.com>
3991
3992 * cli/cli-cmds.h (cd_command): Constify.
3993 * cli/cli-cmds.c (cd_command): Constify.
3994
fc41a75b
TT
39952017-09-27 Tom Tromey <tom@tromey.com>
3996
3997 * thread.c (thread_name_command, thread_find_command): Constify.
3998
67810076
TT
39992017-09-27 Tom Tromey <tom@tromey.com>
4000
4001 * probe.c (enable_probes_command, disable_probes_command):
4002 Constify.
4003
1d8b34a7
TT
40042017-09-27 Tom Tromey <tom@tromey.com>
4005
4006 * symfile.c (symbol_file_command): Constify.
4007 * gdbcore.h (deprecated_file_changed_hook): Constify.
4008 * exec.c (deprecated_file_changed_hook, exec_file_command)
4009 (file_command): Constify.
4010 * defs.h (symbol_file_command): Constify.
4011
442019e1
TT
40122017-09-27 Tom Tromey <tom@tromey.com>
4013
4014 * remote-fileio.c (set_system_call_allowed)
4015 (show_system_call_allowed): Constify.
4016
2983f7cb
TT
40172017-09-27 Tom Tromey <tom@tromey.com>
4018
4019 * tracepoint.c (delete_trace_variable_command)
4020 (tfind_end_command, tfind_start_command, tfind_pc_command)
4021 (tfind_tracepoint_command, tfind_line_command)
4022 (tfind_range_command, tfind_outside_command): Constify.
4023
4fd41b24
TT
40242017-09-27 Tom Tromey <tom@tromey.com>
4025
4026 * ax-gdb.c (maint_agent_printf_command, agent_command)
4027 (agent_eval_command): Constify.
4028
f2fc3015
TT
40292017-09-27 Tom Tromey <tom@tromey.com>
4030
4031 * tracepoint.c (info_scope_command): Constify.
4032 * python/python.c (gdbpy_decode_line): Constify.
4033 * python/py-breakpoint.c (bppy_init): Constify.
4034 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
4035 * location.h: (new_linespec_location)
4036 (string_to_event_location_basic, string_to_event_location):
4037 Constify.
4038 * location.c (new_linespec_location)
4039 (string_to_event_location_basic, string_to_event_location):
4040 Constify.
4041 * linespec.h (decode_line_with_current_source)
4042 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
4043 * linespec.c (linespec_lex_to_end)
4044 (decode_line_with_current_source)
4045 (decode_line_with_last_displayed): Constify.
4046 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
4047 Constify.
4048 * cli/cli-cmds.c (edit_command, list_command): Constify.
4049 * breakpoint.h (until_break_command, watch_command_wrapper)
4050 (awatch_command_wrapper, rwatch_command_wrapper)
4051 (init_ada_exception_breakpoint): Constify.
4052 * breakpoint.c (break_command_1, dprintf_command)
4053 (break_range_command, watch_command_wrapper)
4054 (rwatch_command_wrapper, awatch_command_wrapper)
4055 (until_break_command, init_ada_exception_breakpoint)
4056 (strace_marker_create_sals_from_location, trace_command)
4057 (ftrace_command, strace_command, struct tracepoint): Constify.
4058 * ax-gdb.c (agent_command_1): Constify.
4059 * ada-lang.c (ada_exception_sal): Constify.
4060
8c2f95f4
TT
40612017-09-27 Tom Tromey <tom@tromey.com>
4062
4063 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
4064 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
4065 (get_context_size, no_chunk, get_insn_history_modifiers)
4066 (cmd_record_insn_history, get_call_history_modifiers)
4067 (cmd_record_call_history): Constify.
4068
a0d65762
TT
40692017-09-27 Tom Tromey <tom@tromey.com>
4070
4071 * source.c (show_substitute_path_command)
4072 (unset_substitute_path_command, set_substitute_path_command):
4073 Constify.
4074
58971144
TT
40752017-09-27 Tom Tromey <tom@tromey.com>
4076
4077 * typeprint.c (maintenance_print_type): Constify.
4078 * maint.c (maintenance_dump_me, maintenance_demangle)
4079 (maintenance_time_display, maintenance_info_sections)
4080 (maintenance_print_statistics, maintenance_deprecate)
4081 (maintenance_undeprecate): Constify.
4082 (maintenance_do_deprecate): Constify. Use std::string.
4083 (maintenance_selftest): Constify.
4084 * gdbtypes.h (maintenance_print_type): Constify.
4085
c482f52c
TT
40862017-09-27 Tom Tromey <tom@tromey.com>
4087
4088 * hppa-tdep.c (unwind_command): Constify.
4089
e100df1a
TT
40902017-09-27 Tom Tromey <tom@tromey.com>
4091
4092 * target-descriptions.c (unset_tdesc_filename_cmd)
4093 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
4094 Constify.
4095
31d56ade
TT
40962017-09-27 Tom Tromey <tom@tromey.com>
4097
4098 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
4099
b961da0b
TT
41002017-09-27 Tom Tromey <tom@tromey.com>
4101
4102 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
4103
e2d8ae16
TT
41042017-09-27 Tom Tromey <tom@tromey.com>
4105
4106 * tui/tui-regs.c (tui_reg_command): Constify.
4107
863779b0
TT
41082017-09-27 Tom Tromey <tom@tromey.com>
4109
4110 * skip.c (skip_file_command, skip_function_command)
4111 (skip_enable_command, skip_disable_command, skip_delete_command):
4112 Constify.
4113
cdb34d4a
TT
41142017-09-27 Tom Tromey <tom@tromey.com>
4115
4116 * record-btrace.c (cmd_record_btrace_bts_start)
4117 (cmd_record_btrace_pt_start): Constify.
4118
e99c83e7
TT
41192017-09-27 Tom Tromey <tom@tromey.com>
4120
4121 * symmisc.c (maintenance_print_symbols)
4122 (maintenance_print_msymbols, maintenance_print_objfiles)
4123 (maintenance_info_symtabs, maintenance_check_symtabs)
4124 (maintenance_expand_symtabs, maintenance_info_line_tables):
4125 Constify.
4126
32faf971
TT
41272017-09-27 Tom Tromey <tom@tromey.com>
4128
4129 * top.c (new_ui_command): Constify.
4130
2cf311eb
TT
41312017-09-27 Tom Tromey <tom@tromey.com>
4132
4133 * symfile.c (add_symbol_file_command)
4134 (remove_symbol_file_command, list_overlays_command)
4135 (map_overlay_command, unmap_overlay_command)
4136 (overlay_auto_command, overlay_manual_command)
4137 (overlay_off_command, overlay_load_command): Constify.
4138
e6738699
TT
41392017-09-27 Tom Tromey <tom@tromey.com>
4140
4141 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4142 (info_spu_mailbox_command, info_spu_dma_command)
4143 (info_spu_proxydma_command): Constify.
4144
aa360cd5
TT
41452017-09-27 Tom Tromey <tom@tromey.com>
4146
4147 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
4148
898241a5
TT
41492017-09-27 Tom Tromey <tom@tromey.com>
4150
4151 * cli/cli-script.c (user_defined_command): Constify.
4152
2d0ac106
TT
41532017-09-27 Tom Tromey <tom@tromey.com>
4154
4155 * cli/cli-dump.c (dump_memory_command, dump_value_command)
4156 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
4157 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
4158 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
4159 (dump_binary_value, append_binary_memory, append_binary_value):
4160 Constify.
4161 (struct dump_context) <func>: Constify.
4162 (add_dump_command): Update.
4163
dede02ce
TT
41642017-09-27 Tom Tromey <tom@tromey.com>
4165
4166 * cli/cli-cmds.c (show_version, show_configuration)
4167 (source_command, show_user): Constify.
4168
d3cb6b99
TT
41692017-09-27 Tom Tromey <tom@tromey.com>
4170
4171 * target.c (maintenance_print_target_stack): Constify.
4172
1970a12f
TT
41732017-09-27 Tom Tromey <tom@tromey.com>
4174
4175 * interps.c (interpreter_exec_cmd): Constify.
4176
41243651
TT
41772017-09-27 Tom Tromey <tom@tromey.com>
4178
4179 * record-full.c (cmd_record_full_restore): Constify.
4180
4465d9db
TT
41812017-09-27 Tom Tromey <tom@tromey.com>
4182
4183 * memattr.c (enable_mem_command, disable_mem_command)
4184 (delete_mem_command): Constify.
4185
ad25e423
TT
41862017-09-27 Tom Tromey <tom@tromey.com>
4187
4188 * value.c (show_convenience): Constify.
4189
d64097b1
TT
41902017-09-27 Tom Tromey <tom@tromey.com>
4191
4192 * gdbcore.h (core_file_command): Update.
4193 * corefile.c (core_file_command): Constify.
4194
4d4589ef
TT
41952017-09-27 Tom Tromey <tom@tromey.com>
4196
4197 * user-regs.c (maintenance_print_user_registers): Constify.
4198
32a7bf17
TT
41992017-09-27 Tom Tromey <tom@tromey.com>
4200
4201 * cp-namespace.c (maintenance_cplus_namespace): Constify.
4202
4a475551
TT
42032017-09-27 Tom Tromey <tom@tromey.com>
4204
4205 * cp-support.c (first_component_command): Constify.
4206
990b9f9f
TT
42072017-09-27 Tom Tromey <tom@tromey.com>
4208
4209 * psymtab.c (maintenance_print_psymbols)
4210 (maintenance_info_psymtabs, maintenance_check_psymtabs):
4211 Constify.
4212
c281872e
TT
42132017-09-27 Tom Tromey <tom@tromey.com>
4214
4215 * windows-tdep.c (display_tib): Constify.
4216
5b64bf74
TT
42172017-09-27 Tom Tromey <tom@tromey.com>
4218
4219 * linux-fork.c (delete_checkpoint_command)
4220 (detach_checkpoint_command): Constify.
4221
4ada038f
TT
42222017-09-27 Tom Tromey <tom@tromey.com>
4223
4224 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
4225
57f5a81b
TT
42262017-09-27 Tom Tromey <tom@tromey.com>
4227
4228 * arc-tdep.c (dump_arc_instruction_command): Constify.
4229
b0a8e6c4
TT
42302017-09-27 Tom Tromey <tom@tromey.com>
4231
4232 * valprint.c (set_radix, show_radix): Constify.
4233
8d97dc1c
TT
42342017-09-27 Tom Tromey <tom@tromey.com>
4235
4236 * dtrace-probe.c (info_probes_dtrace_command): Constify.
4237
eb7c454d
TT
42382017-09-27 Tom Tromey <tom@tromey.com>
4239
4240 * command.h (not_just_help_class_command): Update.
4241 * cli/cli-decode.h (not_just_help_class_command): Update.
4242 * cli/cli-decode.c (not_just_help_class_command): Constify.
4243
e4e33335
TT
42442017-09-27 Tom Tromey <tom@tromey.com>
4245
4246 * gdb_bfd.c (maintenance_info_bfds): Constify.
4247
0450cc4c
TT
42482017-09-27 Tom Tromey <tom@tromey.com>
4249
4250 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
4251 overloads.
4252 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
4253 (do_const_cfunc): New function.
4254 (cmd_cfunc_eq): New overload.
4255 (cli_user_command_p): Check do_const_cfunc.
4256 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
4257 const_cfunc.
4258 * command.h (add_cmd): Add const overload and no-function
4259 overload.
4260 (set_cmd_cfunc): Add const overload.
4261 (cmd_const_cfunc_ftype): Declare.
4262 (cmd_cfunc_eq): Add const overload.
4263 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
4264 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
4265 overload.
4266
a9bbfbd8
TT
42672017-09-27 Tom Tromey <tom@tromey.com>
4268
4269 * macroexp.c (get_next_token_for_substitution): New function.
4270 (substitute_args): Call it. Check for __VA_OPT__.
4271
5230b05a
WT
42722017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
4273 Pedro Alves <palves@redhat.com>
4274
4275 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
4276 producer_is_icc_lt_14.
4277 (producer_is_icc_lt_14): New function.
4278 (check_producer): Add code for checking version of ICC.
4279 (producer_is_icc): Move to producer.c.
4280 (read_structure_type): Restrict ICC workaround to ICC<14.
4281 * producer.c: Include selftest.h.
4282 (producer_is_icc, producer_parsing_tests, _initialize_producer):
4283 New functions.
4284 * producer.h (producer_is_icc): New declaration.
4285
b32b108a
WT
42862017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
4287
4288 * Makefile.in (SFILES): Add producer.c.
4289 (COMMON_OBS): Add producer.o
4290 * amd64-tdep.c (producer.h): Add new include.
4291 * dwarf2read.c (producer.h): Add new include.
4292 * producer.c: New file.
4293 * producer.h: New file.
4294 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
4295 producer.c.
4296 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
4297 producer.h.
4298
5007d765
MK
42992017-09-26 Matthias Klose <doko@ubuntu.com>
4300
4301 * configure.ac: Search ncursesw before ncurses.
4302 Check ncursesw/ncurses.h before ncurses/ncurses.h.
4303 * gdb_curses.h: Include <ncursesw/ncurses.h>
4304 * config.in, configure: Regenerate.
4305
281c4447
RO
43062017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4307
4308 PR gdb/22185
4309 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
4310 obsolete.
4311 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
4312 Remove i386sol2 support.
4313 * configure.nat <i386sol2>: Remove.
4314 <sol2-64>: Fold into ...
4315 <sol2>: ... this.
4316 Move common settings to default section.
4317 Add sol-thread.o.
4318 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
4319 x86_64-*-solaris2.1[0-9]*>: Rename to ...
4320 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
4321 <i[34567]86-*-solaris*>: Remove.
4322 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
4323
4324 * configure.ac: Remove wctype in libw check.
4325 (_MSE_INT_H): Don't define on Solaris 7-9.
4326 <solaris*>: Remove libthread_db.so.1 check.
4327 * configure: Regenerate.
4328 * config.in: Regenerate.
4329
4330 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
4331 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
4332 (gdb_ps_size_t): Remove.
4333 Use base types in users.
4334 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
4335
4336 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
4337
39b06c20
RO
43382017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4339
4340 PR build/22206
4341 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
4342 (adi_is_addr_mapped): Likewise.
4343 (PSR_ICC): Don't redefine.
4344 (PSR_IMPL): Likewise.
4345
6c3e20f1
TT
43462017-09-25 Tom Tromey <tom@tromey.com>
4347
4348 * regcache.c (regcache::dump): Use string_printf.
4349
b292235f
TT
43502017-09-25 Tom Tromey <tom@tromey.com>
4351
4352 * regcache.c (class regcache_invalidator): New.
4353 (struct register_to_invalidate): Remove.
4354 (make_cleanup_regcache_invalidate): Remove.
4355 (regcache::raw_write): Use regcache_invalidator.
4356
9ac86b52
TT
43572017-09-25 Tom Tromey <tom@tromey.com>
4358
4359 * spu-tdep.c (spu2ppu_sniffer): Update.
4360 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
4361 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
4362 Remove.
4363 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
4364 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
4365 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
4366 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
4367 (frame_pop): Update.
4368
c0e383c6
TT
43692017-09-25 Tom Tromey <tom@tromey.com>
4370
4371 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
4372 * regcache.h (regcache_xfree): Don't declare.
4373 * regcache.c (regcache_xfree): Remove.
4374 (do_regcache_xfree): Use delete.
4375 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
4376 * linux-fork.c (free_fork): Use delete.
4377 (fork_save_infrun_state): Likewise.
4378 * jit.c (jit_dealloc_cache): Use delete.
4379 * infrun.c (discard_infcall_suspend_state): Use delete.
4380
791199cc
TT
43812017-09-25 Tom Tromey <tom@tromey.com>
4382
4383 * regcache.h (regcache_xmalloc): Don't declare.
4384 (regcache_raw_set_cached_value): Update comment.
4385 * regcache.c (regcache_xmalloc): Remove.
4386 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
4387 * jit.c (jit_frame_sniffer): Use new.
4388 * frame.c (frame_save_as_regcache): Use new.
4389
289e23aa
AA
43902017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4391
4392 * NEWS: Advertise support for guarded-storage registers on IBM z.
4393
1b63490c
AA
43942017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4395
4396 * s390-linux-nat.c (have_regset_gs): New static variable.
4397 (s390_linux_fetch_inferior_registers): Handle guarded-storage
4398 control block and guarded-storage broadcast control regsets.
4399 (s390_read_description): Detect whether the target has
4400 guarded-storage support, return appropriate tdesc.
4401 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
4402 (features/s390x-gs-linux64.c): Likewise.
4403 (struct gdbarch_tdep) <have_gs>: New field.
4404 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
4405 (s390_gsbc_regset): New variables.
4406 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
4407 and s390_gsbc_regset, if applicable.
4408 (s390_core_read_description): Check whether core file was from a
4409 target with guarded-storage support; include appropriate regsets.
4410 (s390_gdbarch_init): Add registers for guarded-storage support.
4411 (_initialize_s390_tdep): Initialize new target descriptions that
4412 include registers for guarded-storage support.
4413 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
4414 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
4415 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
4416 (S390_NUM_REGS): Adjust macro definition.
4417 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
4418 (tdesc_s390x_gs_linux64): New declarations.
4419
96235dc1
AA
44202017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4421
4422 * features/s390-gs-linux64.xml: New file.
4423 * features/s390-gs.xml: New file.
4424 * features/s390-gsbc.xml: New file.
4425 * features/s390x-gs-linux64.xml: New file.
4426 * features/Makefile (WHICH): Add s390-gs-linux64 and
4427 s390x-gs-linux64.
4428 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
4429 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
4430 * features/s390-gs-linux64.c: New generated file.
4431 * features/s390x-gs-linux64.c: New file.
4432 * regformats/s390-gs-linux64.dat: New file.
4433 * regformats/s390x-gs-linux64.dat: New file.
4434
b4a7c699
TT
44352017-09-23 Tom Tromey <tom@tromey.com>
4436
4437 * defs.h (make_cleanup_override_quit_handler): Don't declare.
4438
c2f97536
TT
44392017-09-22 Tom Tromey <tom@tromey.com>
4440
4441 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
4442 type to scoped_restore_tmpl.
4443 <scoped_input_handler>: Initialize m_quit_handler directly.
4444
43573013
SDJ
44452017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
4446
4447 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
4448 (cd_command): Likewise. Free "current_directory" before
4449 assigning to it.
4450 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
4451 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
4452 * top.c (gdb_dirbuf): Remove global declaration.
4453 * top.h (gdb_dirbuf): Likewise.
4454
6ec2e0f5
SDJ
44552017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
4456
4457 * gnulib/aclocal.m4: Regenerate.
4458 * gnulib/config.in: Regenerate.
4459 * gnulib/configure: Regenerate.
4460 * gnulib/import/Makefile.am: Regenerate.
4461 * gnulib/import/Makefile.in: Regenerate.
4462 * gnulib/import/assure.h: New file.
4463 * gnulib/import/at-func.c: Likewise
4464 * gnulib/import/chdir-long.c: New file.
4465 * gnulib/import/chdir-long.h: New file.
4466 * gnulib/import/cloexec.c: New file.
4467 * gnulib/import/cloexec.h: New file.
4468 * gnulib/import/close.c: New file.
4469 * gnulib/import/closedir.c: New file.
4470 * gnulib/import/dirent-private.h: New file.
4471 * gnulib/import/dup-safer.c: New file.
4472 * gnulib/import/dup.c: New file.
4473 * gnulib/import/dup2.c: New file.
4474 * gnulib/import/error.c: New file.
4475 * gnulib/import/error.h: New file.
4476 * gnulib/import/exitfail.c: New file.
4477 * gnulib/import/exitfail.h: New file.
4478 * gnulib/import/fchdir.c: New file.
4479 * gnulib/import/fcntl.c: New file.
4480 * gnulib/import/fcntl.in.h: New file.
4481 * gnulib/import/fd-hook.c: New file.
4482 * gnulib/import/fd-hook.h: New file.
4483 * gnulib/import/fd-safer.c: New file.
4484 * gnulib/import/fdopendir.c: New file.
4485 * gnulib/import/filename.h: New file.
4486 * gnulib/import/filenamecat-lgpl.c: New file.
4487 * gnulib/import/filenamecat.h: New file.
4488 * gnulib/import/fstat.c: New file.
4489 * gnulib/import/fstatat.c: New file.
4490 * gnulib/import/getcwd-lgpl.c: New file.
4491 * gnulib/import/getcwd.c: New file.
4492 * gnulib/import/getdtablesize.c: New file.
4493 * gnulib/import/getlogin_r.c: New file.
4494 * gnulib/import/getprogname.c: New file.
4495 * gnulib/import/getprogname.h: New file.
4496 * gnulib/import/gettext.h: New file.
4497 * gnulib/import/glob-libc.h: New file.
4498 * gnulib/import/glob.c: New file.
4499 * gnulib/import/glob.in.h: New file.
4500 * gnulib/import/intprops.h: New file.
4501 * gnulib/import/m4/chdir-long.m4: New file.
4502 * gnulib/import/m4/close.m4: New file.
4503 * gnulib/import/m4/closedir.m4: New file.
4504 * gnulib/import/m4/d-ino.m4: New file.
4505 * gnulib/import/m4/d-type.m4: New file.
4506 * gnulib/import/m4/dup.m4: New file.
4507 * gnulib/import/m4/dup2.m4: New file.
4508 * gnulib/import/m4/error.m4: New file.
4509 * gnulib/import/m4/fchdir.m4: New file.
4510 * gnulib/import/m4/fcntl.m4: New file.
4511 * gnulib/import/m4/fcntl_h.m4: New file.
4512 * gnulib/import/m4/fdopendir.m4: New file.
4513 * gnulib/import/m4/filenamecat.m4: New file.
4514 * gnulib/import/m4/fstat.m4: New file.
4515 * gnulib/import/m4/fstatat.m4: New file.
4516 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
4517 * gnulib/import/m4/getcwd-path-max.m4: New file.
4518 * gnulib/import/m4/getcwd.m4: New file.
4519 * gnulib/import/m4/getdtablesize.m4: New file.
4520 * gnulib/import/m4/getlogin_r.m4: New file.
4521 * gnulib/import/m4/getprogname.m4: New file.
4522 * gnulib/import/m4/glob.m4: New file.
4523 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4524 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4525 * gnulib/import/m4/mempcpy.m4: New file.
4526 * gnulib/import/m4/memrchr.m4: New file.
4527 * gnulib/import/m4/mode_t.m4: New file.
4528 * gnulib/import/m4/msvc-inval.m4: New file.
4529 * gnulib/import/m4/msvc-nothrow.m4: New file.
4530 * gnulib/import/m4/open.m4: New file.
4531 * gnulib/import/m4/openat.m4: New file.
4532 * gnulib/import/m4/opendir.m4: New file.
4533 * gnulib/import/m4/readdir.m4: New file.
4534 * gnulib/import/m4/realloc.m4: New file.
4535 * gnulib/import/m4/rewinddir.m4: New file.
4536 * gnulib/import/m4/save-cwd.m4: New file.
4537 * gnulib/import/m4/strdup.m4: New file.
4538 * gnulib/import/m4/strerror.m4: New file.
4539 * gnulib/import/m4/unistd-safer.m4: New file.
4540 * gnulib/import/mempcpy.c: New file.
4541 * gnulib/import/memrchr.c: New file.
4542 * gnulib/import/msvc-inval.c: New file.
4543 * gnulib/import/msvc-inval.h: New file.
4544 * gnulib/import/msvc-nothrow.c: New file.
4545 * gnulib/import/msvc-nothrow.h: New file.
4546 * gnulib/import/open.c: New file.
4547 * gnulib/import/openat-die.c: New file.
4548 * gnulib/import/openat-priv.h: New file.
4549 * gnulib/import/openat-proc.c: New file.
4550 * gnulib/import/openat.c: New file.
4551 * gnulib/import/openat.h: New file.
4552 * gnulib/import/opendir.c: New file.
4553 * gnulib/import/pipe-safer.c: New file.
4554 * gnulib/import/readdir.c: New file.
4555 * gnulib/import/realloc.c: New file.
4556 * gnulib/import/rewinddir.c: New file.
4557 * gnulib/import/save-cwd.c: New file.
4558 * gnulib/import/save-cwd.h: New file.
4559 * gnulib/import/strdup.c: New file.
4560 * gnulib/import/strerror-override.c: New file.
4561 * gnulib/import/strerror-override.h: New file.
4562 * gnulib/import/strerror.c: New file.
4563 * gnulib/import/unistd--.h: New file.
4564 * gnulib/import/unistd-safer.h: New file.
4565 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
4566 "getcwd" and "glob".
4567 * ser-tcp.c: Undefine "close" before redefining it.
4568
432ae719
SM
45692017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4570
4571 * guile/scm-value.c (gdbscm_value_address): Initialize address,
4572 get rid of res_val.
4573
4fa7574e
RO
45742017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4575
4576 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
4577 <sol2,sparc>: Likewise.
4578 <sol2-64,i386>: Likewise.
4579
4580 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
4581 -Wdeprecated-declarations on *-*-solaris*.
4582 * configure: Regenerate.
4583
4584 * procfs.c: Include "nat/inferior.h".
4585 (procfs_info_proc): Fix typo.
4586
f6327dcb
KB
45872017-09-21 Kevin Buettner <kevinb@redhat.com>
4588
4589 * remote.c (vector): Include.
4590 (struct private_thread_info): Add field, thread_handle.
4591 (free_private_thread_info): Deallocate storage associated with
4592 thread handle.
4593 (get_private_info_thread): Initialize `thread_handle' field.
4594 (struct thread_item): Add field, thread_handle.
4595 (clear_threads_listing_context): Deallocate storage associated
4596 with thread handle.
4597 (start_thread): Add support for "handle" attribute.
4598 (thread_attributes): Add "handle".
4599 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
4600 field.
4601 (remote_update_thread_list): Update thread_handle.
4602 (remote_thread_handle_to_thread_info): New function.
4603 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
4604
fbbe5337
KB
46052017-09-21 Kevin Buettner <kevinb@redhat.com>
4606
4607 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
4608 function.
4609 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
4610 * python/python-internal.h (thread_object_type): Declare.
4611
e04ee09e
KB
46122017-09-21 Kevin Buettner <kevinb@redhat.com>
4613
4614 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
4615 (target_thread_handle_to_thread_info): Declare.
4616 * target.c (target_thread_handle_to_thread_info): New function.
4617 * target-delegates.c: Regenerate.
4618 * gdbthread.h (find_thread_by_handle): Declare.
4619 * thread.c (find_thread_by_handle): New function.
4620 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
4621 function.
4622 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
4623
1e5b66ed
SM
46242017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4625
4626 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
4627
ebe48ba0
SM
46282017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4629
4630 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
4631
0a0bf5dc
YQ
46322017-09-21 Yao Qi <yao.qi@linaro.org>
4633
4634 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
4635 to gdb_target_obs.
4636
d1b0a7bf
TT
46372017-09-20 Tom Tromey <tom@tromey.com>
4638
4639 * breakpoint.c (struct counted_command_line): Remove.
4640 (breakpoint_commands): Update.
4641 (alloc_counted_command_line, incref_counted_command_line)
4642 (decref_counted_command_line, do_cleanup_counted_command_line)
4643 (make_cleanup_decref_counted_command_line): Remove.
4644 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
4645 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
4646 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
4647 (save_breakpoints): Update.
4648 * breakpoint.h (counted_command_line): Now a typedef to
4649 shared_ptr.
4650 (struct breakpoint) <commands>: Now a counted_command_line.
4651 (struct bpstats) <command>: Likewise.
4652
48649e1b
TT
46532017-09-20 Tom Tromey <tom@tromey.com>
4654
4655 * breakpoint.c (struct commands_info, do_map_commands_command):
4656 Remove.
4657 (commands_command_1): Update.
4658 (iterate_over_related_breakpoints): Take a function_view.
4659 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
4660 (delete_command): Update.
4661 (map_breakpoint_numbers): Take a function_view.
4662 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
4663 (disable_command): Update.
4664 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
4665 (enable_command): Update.
4666 (struct disp_data, do_enable_breakpoint_disp)
4667 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
4668 (do_map_enable_delete_breakpoint): Remove.
4669 (enable_once_command, enable_count_command, enable_delete_command)
4670 (delete_trace_variable_command): Update.
4671
04afa70c
TT
46722017-09-20 Tom Tromey <tom@tromey.com>
4673
4674 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
4675 (bpstat_clear): Use delete.
4676 (bpstats): New constructors.
4677 (bpstat_copy, bpstat_stop_status): Use new.
4678 (dprintf_after_condition_true): Update.
4679 * breakpoint.h (bpstats::bpstats): Add constructors.
4680 (bpstats::~bpstats): Add destructor.
4681
c83833f4
PA
46822017-09-20 Pedro Alves <palves@redhat.com>
4683
4684 * eval.c (make_params): Delete, refactored as ...
4685 (class fake_method): ... this new type's ctor.
4686 (fake_method::~fake_method): New.
4687 (evaluate_subexp_standard): Use 'fake_method'.
4688
223ffa71
TT
46892017-09-20 Tom Tromey <tom@tromey.com>
4690
4691 * windows-nat.c (get_windows_debug_event, windows_wait)
4692 (do_initial_windows_stuff, windows_attach): Update.
4693 * utils.c (vwarning, internal_vproblem): Update.
4694 (ui_unregister_input_event_handler_cleanup)
4695 (prepare_to_handle_input): Remove.
4696 (class scoped_input_handler): New.
4697 (defaulted_query, prompt_for_continue): Update.
4698 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4699 Update.
4700 * top.c (undo_terminal_modifications_before_exit): Update.
4701 * target/target.h (target_terminal_init, target_terminal_inferior)
4702 (target_terminal_ours): Don't declare.
4703 (class target_terminal): New.
4704 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
4705 (target_terminal_ours_for_output)
4706 (make_cleanup_restore_target_terminal): Don't declare.
4707 (target_terminal_info): Remove.
4708 * target.c (enum terminal_state, terminal_state): Remove.
4709 (target_terminal::terminal_state): Define.
4710 (target_terminal::init): Rename from target_terminal_init.
4711 (target_terminal::inferior): Rename from
4712 target_terminal_inferior.
4713 (target_terminal::ours): Rename from target_terminal_ours.
4714 (target_terminal::ours_for_output): Rename from
4715 target_terminal_ours_for_output.
4716 (target_terminal::info): New method.
4717 (cleanup_restore_target_terminal)
4718 (make_cleanup_restore_target_terminal): Remove.
4719 * solib.c (handle_solib_event): Update.
4720 * remote.c (remote_serial_quit_handler): Update.
4721 (remote_terminal_inferior, remote_wait_as): Update.
4722 * record-full.c (record_full_wait_1): Update.
4723 * nto-procfs.c (procfs_create_inferior): Update.
4724 * nat/fork-inferior.c (startup_inferior): Update.
4725 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
4726 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
4727 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
4728 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
4729 (mi_breakpoint_created, mi_breakpoint_deleted)
4730 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
4731 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
4732 (mi_user_selected_context_changed, report_initial_inferior):
4733 Update.
4734 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
4735 (linux_nat_terminal_inferior): Update.
4736 * infrun.c (follow_fork_inferior)
4737 (handle_vfork_child_exec_or_exit, do_target_resume)
4738 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
4739 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
4740 Update.
4741 * inflow.c (child_terminal_init, info_terminal_command): Update.
4742 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
4743 (attach_command): Update.
4744 * infcall.c (call_thread_fsm_should_stop): Update.
4745 * gnu-nat.c (gnu_attach): Update.
4746 * extension.c (struct active_ext_lang_state)
4747 (restore_active_ext_lang): Update.
4748 * exceptions.c (print_flush): Update.
4749 * event-top.c (async_enable_stdin, default_quit_handler): Update.
4750 (struct quit_handler_cleanup_data, restore_quit_handler)
4751 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
4752 Remove.
4753 * cp-support.c (gdb_demangle): Update.
4754 * breakpoint.c (update_inserted_breakpoint_locations)
4755 (insert_breakpoint_locations, handle_jit_event)
4756 (disable_breakpoints_in_unloaded_shlib): Update.
4757 * annotate.c (annotate_breakpoints_invalid)
4758 (annotate_frames_invalid): Update.
4759
013af3fc
TT
47602017-09-20 Tom Tromey <tom@tromey.com>
4761
4762 * main.c (catch_command_errors): Rename from
4763 catch_command_errors_const.
4764 (captured_main_1): Update.
4765
06871ae8
PA
47662017-09-20 Pedro Alves <palves@redhat.com>
4767
4768 * cli/cli-cmds.c (list_command): Use print_sal_location.
4769 (print_sal_location): New function.
4770 (ambiguous_line_spec): Use print_sal_location.
4771 * linespec.c (symbol_to_sal): Record the symbol in the sal.
4772 * symtab.c (find_function_start_sal): Likewise.
4773 * symtab.h (symtab_and_line::symbol): New field.
4774
e5f25bc5
PA
47752017-09-20 Pedro Alves <palves@redhat.com>
4776
4777 * linespec.c (minsym_found): Handle non-text minsyms.
4778 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
4779
1b7fa39e
WT
47802017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4781
4782 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
4783 backslash.
4784
37dd0825
WT
47852017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4786
4787 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
4788 vmovups instead vmovaps.
4789 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
4790
4e5a4f58
JB
47912017-09-19 John Baldwin <jhb@FreeBSD.org>
4792
4793 * NEWS (Changes since GDB 8.0): Add starti.
4794 * infcmd.c (enum run_break): New.
4795 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
4796 case.
4797 (run_command): Use enum run_how.
4798 (start_command): Likewise.
4799 (starti_command): New function.
4800 (RUN_ARGS_HELP): New macro.
4801 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
4802 commands. Add starti command.
4803
aa70c9f1
YQ
48042017-09-19 Yao Qi <yao.qi@linaro.org>
4805
4806 * Makefile.in (monitor.o): Remove the rule.
4807
d6541620
YQ
48082017-09-19 Yao Qi <yao.qi@linaro.org>
4809
4810 * annotate.h (struct annotate_arg_emitter): Use
4811 DISABLE_COPY_AND_ASSIGN.
4812 * common/refcounted-object.h (refcounted_object): Likewise.
4813 * completer.h (struct completion_result): Likewise.
4814 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
4815 * filename-seen-cache.h (filename_seen_cache): Likewise.
4816 * gdbcore.h (thread_section_name): Likewise.
4817 * gdb_regex.h (compiled_regex): Likewise.
4818 * gdbthread.h (scoped_restore_current_thread): Likewise.
4819 * inferior.h (scoped_restore_current_inferior): Likewise.
4820 * jit.c (jit_reader): Likewise.
4821 * linespec.h (struct linespec_result): Likewise.
4822 * mi/mi-parse.h (struct mi_parse): Likewise.
4823 * nat/fork-inferior.c (execv_argv): Likewise.
4824 * progspace.h (scoped_restore_current_program_space): Likewise.
4825 * python/python-internal.h (class gdbpy_enter): Likewise.
4826 * regcache.h (regcache): Likewise.
4827 * target-descriptions.c (struct tdesc_reg): Likewise.
4828 (struct tdesc_type): Likewise.
4829 (struct tdesc_feature): Likewise.
4830 * ui-out.h (ui_out_emit_type): Likewise.
4831
0615127c
SM
48322017-09-18 Simon Marchi <simon.marchi@ericsson.com>
4833
4834 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
4835 label abort_expression.
4836
5e187554
SM
48372017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4838
4839 * common/buffer.c (buffer_xml_printf): Adjust.
4840 * common/xml-utils.c (xml_escape_text): Change return type to
4841 std::string, update code accordingly.
4842 * common/xml-utils.h (xml_escape_text): Change return type to
4843 std::string.
4844 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
4845 * windows-tdep.c (windows_xfer_shared_library): Adjust.
4846 * unittests/xml-utils-selftests.c (test_xml_escape_text):
4847 Adjust.
4848
c3d7b541
SM
48492017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4850
4851 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
4852 (SUBDIR_UNITTESTS_OBS): Add new object file.
4853 * unittests/xml-utils-selftests.c: New file.
4854
1526853e
SM
48552017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4856
4857 * common/selftest.h (selftest): New struct/interface.
4858 (register_test): Add name parameter, add new overload.
4859 (run_tests): Add filter parameter.
4860 (for_each_selftest_ftype): New typedef.
4861 (for_each_selftest): New declaration.
4862 * common/selftest.c (tests): Change type to
4863 map<string, unique_ptr<selftest>>.
4864 (simple_selftest): New struct.
4865 (register_test): New function.
4866 (register_test): Add name parameter and use it.
4867 (run_tests): Add filter parameter and use it. Add prints.
4868 Adjust to vector -> map change.
4869 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
4870 registering selftests.
4871 * arm-tdep.c (_initialize_arm_tdep): Likewise.
4872 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
4873 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
4874 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
4875 * findvar.c (_initialize_findvar): Likewise.
4876 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
4877 * maint.c (maintenance_selftest): Update call to run_tests.
4878 (maintenance_info_selftests): New function.
4879 (_initialize_maint_cmds): Register "maintenance info selftests"
4880 command. Update "maintenance selftest" doc.
4881 * regcache.c (_initialize_regcache): Add names when registering
4882 selftests.
4883 * rust-exp.y (_initialize_rust_exp): Likewise.
4884 * selftest-arch.c (gdbarch_selftest): New struct.
4885 (gdbarch_tests): Remove.
4886 (register_test_foreach_arch): Add name parameter. Call
4887 register_test.
4888 (tests_with_arch): Remove, move most content to
4889 gdbarch_selftest::operator().
4890 (_initialize_selftests_foreach_arch): Remove.
4891 * selftest-arch.h (register_test_foreach_arch): Add name
4892 parameter.
4893 (run_tests_with_arch): New declaration.
4894 * utils-selftests.c (_initialize_utils_selftests): Add names
4895 when registering selftests.
4896 * utils.c (_initialize_utils): Likewise.
4897 * unittests/array-view-selftests.c
4898 (_initialize_array_view_selftests): Likewise.
4899 * unittests/environ-selftests.c (_initialize_environ_selftests):
4900 Likewise.
4901 * unittests/function-view-selftests.c
4902 (_initialize_function_view_selftests): Likewise.
4903 * unittests/offset-type-selftests.c
4904 (_initialize_offset_type_selftests): Likewise.
4905 * unittests/optional-selftests.c
4906 (_initialize_optional_selftests): Likewise.
4907 * unittests/scoped_restore-selftests.c
4908 (_initialize_scoped_restore_selftests): Likewise.
4909 * NEWS: Document "maintenance selftest" and "maint info
4910 selftests".
4911
5846367a
SM
49122017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4913
4914 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
4915 scoped_restore.
4916
bd77e8ff
SM
49172017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4918
4919 * mi/mi-main.c (mi_load_progress): Make uiout variable
4920 a unique_ptr.
4921
26a67918
PA
49222017-09-15 Pedro Alves <palves@redhat.com>
4923
4924 * compile/compile-c-types.c (convert_enum, convert_int)
4925 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
4926
3f8a7804
SM
49272017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4928
4929 * dwarf2read.c (copy_string): Remove.
4930 (parse_macro_definition): Replace copy_string with savestring.
4931
8d200706
YQ
49322017-09-15 Yao Qi <yao.qi@linaro.org>
4933
4934 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
4935 gdb_target_obs.
4936 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
4937 Likewise.
4938 (i[34567]86-*-linux*): Likewise.
4939
d185219d
SM
49402017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4941
4942 * dwarf2expr.h (dwarf_stack_value): Add constructor.
4943 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
4944 <stack>: Change type to std::vector.
4945 <stack_len, stack_allocated>: Remove.
4946 <grow_stack>: Remove.
4947 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4948 (dwarf_expr_context::~dwarf_expr_context): Remove.
4949 (dwarf_expr_context::grow_stack): Remove.
4950 (dwarf_expr_context::push): Adjust.
4951 (dwarf_expr_context::pop): Adjust.
4952 (dwarf_expr_context::fetch): Adjust.
4953 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
4954 (dwarf_expr_context::stack_empty_p): Adjust.
4955 (dwarf_expr_context::execute_stack_op): Adjust.
4956
eccd80d6
SM
49572017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4958
4959 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
4960 return type to bool.
4961 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
4962
69009882
SM
49632017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4964
4965 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
4966 Change type to bool.
4967 (dwarf_stack_value) <in_stack_memory>: Likewise.
4968 (dwarf_expr_context) <push_address>: Change parameter type to
4969 bool.
4970 <fetch_in_stack_memory>: Change return type to bool.
4971 <push>: Change parameter type to bool.
4972 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
4973 to bool.
4974 (dwarf_expr_context::push_address): Likewise.
4975 (dwarf_expr_context::fetch_in_stack_memory): Change return type
4976 to bool.
4977 (dwarf_expr_context::execute_stack_op): Adjust.
4978 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
4979
1e467161
SM
49802017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4981
4982 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
4983 (struct dwarf_expr_context) <n_pieces>: Remove.
4984 <pieces>: Change type to std::vector.
4985 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4986 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
4987 pieces.
4988 (dwarf_expr_context::add_piece): Adjust.
4989 * dwarf2loc.c (struct piece_closure): Initialize fields.
4990 <n_pieces>: Remove.
4991 <pieces>: Change type to std::vector.
4992 (allocate_piece_closure): Adjust, change parameter to
4993 std::vector rvalue and std::move it to piece_closure.
4994 (rw_pieced_value): Adjust.
4995 (check_pieced_synthetic_pointer): Adjust.
4996 (indirect_synthetic_pointer): Adjust.
4997 (coerce_pieced_ref): Adjust.
4998 (free_pieced_value_closure): Adjust. Use delete to free
4999 piece_closure.
5000 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
5001 to allocate_piece_closure.
5002 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
5003
0782db84
SM
50042017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5005
5006 * probe.h (probe_ops_cp): Remove typedef.
5007 (DEF_VEC_P (probe_ops_cp)): Remove.
5008 (all_probe_ops): Change type to std::vector.
5009 * probe.c (info_probes_for_ops): Adjust to vector change.
5010 (probe_linespec_to_ops): Likewise.
5011 (all_probe_ops): Change type to std::vector.
5012 (_initialize_probe): Adjust to vector change.
5013 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
5014 * elfread.c (elf_get_probes): Likewise.
5015 * stap-probe.c (_initialize_stap_probe): Likewise.
5016
1eac6bea
SM
50172017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5018
5019 * probe.h (struct bound_probe): Define constructors.
5020 * probe.c (bound_probe_s): Remove typedef.
5021 (DEF_VEC_O (bound_probe_s)): Remove VEC.
5022 (collect_probes): Change return type to std::vector, remove
5023 cleanup.
5024 (compare_probes): Return bool, change parameter type. Change
5025 semantic to "less than".
5026 (gen_ui_out_table_header_info): Change parameter to std::vector
5027 and update.
5028 (exists_probe_with_pops): Likewise.
5029 (info_probes_for_ops): Update to std::vector change.
5030 (enable_probes_command): Likewise.
5031 (disable_probes_command): Likewise.
5032
aaa63a31
SM
50332017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5034
5035 * probe.h (struct probe_ops) <get_probes>: Change parameter from
5036 vec to std::vector.
5037 * probe.c (parse_probes_in_pspace): Update.
5038 (find_probes_in_objfile): Update.
5039 (find_probe_by_pc): Update.
5040 (collect_probes): Update.
5041 (probe_any_get_probes): Update.
5042 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
5043 return type to reference to std::vector.
5044 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
5045 std::vector and update.
5046 (dtrace_process_dof): Likewise.
5047 (dtrace_get_probes): Likewise.
5048 * elfread.c (elf_get_probes): Change return type to std::vector,
5049 store an std::vector in bfd_data.
5050 (probe_key_free): Update to std::vector.
5051 * stap-probe.c (handle_stap_probe): Change parameter to
5052 std::vector and update.
5053 (stap_get_probes): Likewise.
5054 * symfile-debug.c (debug_sym_get_probes): Change return type to
5055 std::vector and update.
5056
cb85b21b
TT
50572017-09-11 Tom Tromey <tom@tromey.com>
5058
5059 * breakpoint.c (program_breakpoint_here_p): Update.
5060 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
5061 from make_show_memory_breakpoints_cleanup. Return a
5062 scoped_restore_tmpl<int>.
5063 (restore_show_memory_breakpoints): Remove.
5064 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
5065 * mem-break.c (memory_validate_breakpoint): Update.
5066 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
5067 (ia64_memory_remove_breakpoint): Update.
5068 (ia64_breakpoint_from_pc): Update.
5069 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
5070 from make_show_memory_breakpoints_cleanup.
5071
8fbc99ef
TT
50722017-09-11 Tom Tromey <tom@tromey.com>
5073
5074 * d-namespace.c (d_lookup_symbol): Use std::string.
5075 (find_symbol_in_baseclass): Likewise.
5076
50feb4bd
TT
50772017-09-11 Tom Tromey <tom@tromey.com>
5078
5079 * ctf.c (ctf_start): Use std::string.
5080
c6dc63a1
TT
50812017-09-11 Tom Tromey <tom@tromey.com>
5082
5083 * ada-lang.c (is_known_support_routine): Update.
5084 (ada_unhandled_exception_name_addr_from_raise): Update.
5085 * guile/scm-frame.c (gdbscm_frame_name): Update.
5086 * python/py-frame.c (frapy_name): Update.
5087 (frapy_function): Update.
5088 * stack.h (find_frame_funname): Update.
5089 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
5090 (print_frame): Update.
5091
d6b9b80f
TT
50922017-09-11 Tom Tromey <tom@tromey.com>
5093
5094 * findcmd.c (put_bits): Take a gdb::byte_vector.
5095 (parse_find_args): Return gdb::byte_vector. "args" now const.
5096 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
5097 cleanups.
5098 (find_command): Update.
5099
a9921622
TT
51002017-09-11 Tom Tromey <tom@tromey.com>
5101
5102 * cli/cli-script.c (class scoped_restore_hook_in): New.
5103 (clear_hook_in_cleanup): Remove.
5104 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
5105 scoped_restore_hook_in.
5106
be0d7abb
TT
51072017-09-11 Tom Tromey <tom@tromey.com>
5108
5109 * cli/cli-script.c (restore_interp): Remove.
5110 (read_command_lines): Use scoped_restore_interp.
5111 * interps.c (scoped_restore_interp::set_temp): Rename from
5112 interp_set_temp.
5113 * interps.h (class scoped_restore_interp): New.
5114 (interp_set_temp): Remove.
5115
00f675ff
TT
51162017-09-11 Tom Tromey <tom@tromey.com>
5117
5118 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
5119 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
5120 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
5121 scoped_restore.
5122 (mi_cmd_break_insert_1): Update.
5123 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
5124 scoped_restore.
5125
cb791d59
TT
51262017-09-11 Tom Tromey <tom@tromey.com>
5127
5128 * demangle.c (demangle_command): Update.
5129 * breakpoint.c (disable_command): Update.
5130 (enable_command): Update.
5131 (find_location_by_number): Make "number" const. Use
5132 get_number_trailer.
5133 * cli/cli-utils.c (extract_arg): Return std::string.
5134 * probe.c (parse_probe_linespec): Update. Change types.
5135 (collect_probes): Take string arguments.
5136 (parse_probe_linespec): Likewise.
5137 (info_probes_for_ops): Update.
5138 (enable_probes_command): Update.
5139 (disable_probes_command): Update.
5140 * break-catch-sig.c (catch_signal_split_args): Update.
5141 * mi/mi-parse.c (mi_parse): Update.
5142
2039bd9f
TT
51432017-09-11 Tom Tromey <tom@tromey.com>
5144
5145 * language.h (language_enum): Make argument const.
5146 * language.c (language_enum): Make argument const.
5147
f1735a53
TT
51482017-09-11 Tom Tromey <tom@tromey.com>
5149
5150 * common/common-utils.h (skip_to_space): Remove macro, redeclare
5151 as function.
5152 (skip_to_space): Rename from skip_to_space_const.
5153 * common/common-utils.c (skip_to_space): New function.
5154 (skip_to_space): Rename from skip_to_space_const.
5155 * cli/cli-utils.h (get_number): Rename from get_number_const.
5156 (extract_arg): Rename from extract_arg_const.
5157 * cli/cli-utils.c (get_number): Rename from get_number_const.
5158 (extract_arg): Rename from extract_arg_const.
5159 (number_or_range_parser::get_number): Use ::get_number.
5160 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
5161 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
5162 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
5163 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
5164 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
5165 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
5166 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
5167 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
5168
7d221d74
TT
51692017-09-11 Tom Tromey <tom@tromey.com>
5170
5171 * python/python.c (do_start_initialization): Use
5172 py-event-types.def to initialize types.
5173 Define all object type structures.
5174 * python/python-internal.h: Don't declare event initialization
5175 functions.
5176 * python/py-threadevent.c (thread_event_object_type): Don't
5177 define.
5178 * python/py-stopevent.c (stop_event_object_type): Don't define.
5179 * python/py-signalevent.c (signal_event_object_type): Don't
5180 declare or define.
5181 * python/py-newobjfileevent.c (new_objfile_event_object_type)
5182 (clear_objfiles_event_object_type): Don't declare or define.
5183 * python/py-infevents.c (inferior_call_pre_event_object_type)
5184 (inferior_call_post_event_object_type)
5185 (register_changed_event_object_type)
5186 (memory_changed_event_object_type): Don't declare or define.
5187 * python/py-inferior.c (new_thread_event_object_type)
5188 (new_inferior_event_object_type)
5189 (inferior_deleted_event_object_type): Don't declare or define.
5190 * python/py-exitedevent.c (exited_event_object_type): Don't
5191 declare or define.
5192 * python/py-evts.c (gdbpy_initialize_py_events): Use
5193 py-all-events.def.
5194 * python/py-events.h (thread_event_object_type): Don't declare.
5195 (events_object): Use py-all-events.def.
5196 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
5197 py-event-types.def.
5198 * python/py-event-types.def: New file.
5199 * python/py-continueevent.c (create_continue_event_object): Don't
5200 declare or define.
5201 * python/py-bpevent.c (breakpoint_event_object_type): Don't
5202 declare or define.
5203 * python/py-all-events.def: New file.
5204
35c61a1d
TT
52052017-09-11 Tom Tromey <tom@tromey.com>
5206
5207 * python/py-threadevent.c (create_thread_event_object): Return
5208 gdbpy_ref.
5209 * python/py-stopevent.h (create_stop_event_object)
5210 (create_breakpoint_event_object, create_signal_event_object):
5211 Update.
5212 * python/py-stopevent.c (create_stop_event_object): Return
5213 gdbpy_ref.
5214 (emit_stop_event): Update.
5215 * python/py-signalevent.c (create_signal_event_object): Return
5216 gdbpy_ref.
5217 * python/py-infevents.c (create_inferior_call_event_object):
5218 Update.
5219 * python/py-event.h (create_event_object)
5220 (create_thread_event_object): Update.
5221 * python/py-event.c (create_event_object): Return gdbpy_ref.
5222 * python/py-continueevent.c: Return gdbpy_ref.
5223 * python/py-bpevent.c (create_breakpoint_event_object): Return
5224 gdbpy_ref.
5225
7c96f8c1
TT
52262017-09-11 Tom Tromey <tom@tromey.com>
5227
5228 PR python/15622:
5229 * NEWS: Add entry.
5230 * python/python.c (do_start_initialization): Initialize new event
5231 types.
5232 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
5233 (gdbpy_initialize_inferior_deleted_event)
5234 (gdbpy_initialize_new_thread_event): Declare.
5235 * python/py-threadevent.c (create_thread_event_object): Add option
5236 "thread" parameter.
5237 * python/py-inferior.c (new_thread_event_object_type)
5238 (new_inferior_event_object_type)
5239 (inferior_deleted_event_object_type): Declare.
5240 (python_new_inferior, python_inferior_deleted): New functions.
5241 (add_thread_object): Emit new_thread event.
5242 (gdbpy_initialize_inferior): Attach new functions to corresponding
5243 observers.
5244 (new_thread, new_inferior, inferior_deleted): Define new event
5245 types.
5246 * python/py-evts.c (gdbpy_initialize_py_events): Add new
5247 registries.
5248 * python/py-events.h (events_object) <new_inferior,
5249 inferior_deleted, new_thread>: New fields.
5250 * python/py-event.h (create_thread_event_breakpoint): Add optional
5251 "thread" parameter.
5252
72542b8e
AB
52532017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
5254
5255 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
5256 check current_ui instead.
5257 (internal_vproblem): Likewise.
5258
0d64823e
SM
52592017-09-09 Simon Marchi <simon.marchi@ericsson.com>
5260
5261 * thread.c (print_thread_info_1): Remove unnecessary calls to
5262 uiout->is_mi_like_p.
5263
eb1e02fd
TT
52642017-09-09 Tom Tromey <tom@tromey.com>
5265
5266 * namespace.h (add_using_directive): Update.
5267 * namespace.c (add_using_directive): Change type of excludes to
5268 std::vector.
5269 * dwarf2read.c (read_import_statement): Use std::vector.
5270 (read_namespace): Update.
5271 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5272
0fc21fd8
TT
52732017-09-09 Tom Tromey <tom@tromey.com>
5274
5275 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
5276
49663d05
TT
52772017-09-09 Tom Tromey <tom@tromey.com>
5278
5279 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
5280
0b868b60
TT
52812017-09-09 Tom Tromey <tom@tromey.com>
5282
5283 * stack.c (func_command): Use gdb::def_vector.
5284
c0470d48
TT
52852017-09-09 Tom Tromey <tom@tromey.com>
5286
5287 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
5288 ui_out_emit_list, ui_out_emit_tuple.
5289 (mi_cmd_var_update): Likewise.
5290
ca5909c7
TT
52912017-09-09 Tom Tromey <tom@tromey.com>
5292
5293 * mi/mi-interp.c (mi_user_selected_context_changed): Use
5294 ui_out_redirect_pop.
5295 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
5296 ui_out_redirect_pop.
5297 * utils.c (do_ui_out_redirect_pop)
5298 (make_cleanup_ui_out_redirect_pop): Remove.
5299 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
5300 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
5301 * ui-out.h (ui_out_redirect_pop): New class.
5302
e6a2252a
TT
53032017-09-09 Tom Tromey <tom@tromey.com>
5304
5305 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
5306 (list_available_thread_groups, mi_cmd_list_thread_groups)
5307 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
5308 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
5309 Likewise.
5310
393702cd
TT
53112017-09-09 Tom Tromey <tom@tromey.com>
5312
5313 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5314 ui_out_emit_tuple.
5315
76f9c9cf
TT
53162017-09-09 Tom Tromey <tom@tromey.com>
5317
5318 * target.c (flash_erase_command): Use ui_out_emit_tuple.
5319 * stack.c (print_frame): Use ui_out_emit_tuple.
5320 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
5321 (info_spu_mailbox_command, info_spu_dma_command)
5322 (info_spu_proxydma_command): Likewise.
5323 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
5324 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
5325 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
5326 ui_out_emit_tuple.
5327 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
5328
dc9fe180
TT
53292017-09-09 Tom Tromey <tom@tromey.com>
5330
5331 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
5332 (class ui_out_emit_table): Update comment.
5333 * ui-out.c (do_cleanup_table_end)
5334 (make_cleanup_ui_out_table_begin_end): Remove.
5335 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
5336 (info_spu_dma_cmdlist): Likewise.
5337 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
5338 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
5339 ui_out_emit_table.
5340
f8cc3da6
TT
53412017-09-09 Tom Tromey <tom@tromey.com>
5342
5343 * thread.c (print_thread_info_1): Use ui_out_emit_table,
5344 ui_out_emit_list, gdb::optional.
5345
481695ed
JB
53462017-09-09 John Baldwin <jhb@FreeBSD.org>
5347
5348 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
5349 prototype.
5350 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
5351 prototype.
5352 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
5353 prototype.
5354 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
5355 * ada-exp.y: Remove _initialize_ada_exp prototype.
5356 * ada-lang.c: Remove _initialize_ada_language prototype.
5357 * ada-tasks.c: Remove _initialize_tasks prototype.
5358 * addrmap.c: Remove _initialize_addrmap prototype.
5359 * agent.c: Remove _initialize_agent prototype.
5360 * aix-thread.c: Remove _initialize_aix_thread prototype.
5361 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
5362 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
5363 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
5364 prototype.
5365 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
5366 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
5367 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
5368 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
5369 prototype.
5370 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
5371 prototype.
5372 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
5373 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
5374 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
5375 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
5376 prototype.
5377 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
5378 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
5379 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
5380 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
5381 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
5382 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
5383 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
5384 prototype.
5385 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
5386 prototype.
5387 * annotate.c: Remove _initialize_annotate prototype.
5388 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
5389 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
5390 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
5391 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
5392 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
5393 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
5394 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
5395 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
5396 prototype.
5397 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
5398 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
5399 * auto-load.c: Remove _initialize_auto_load prototype.
5400 * auxv.c: Remove _initialize_auxv prototype.
5401 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
5402 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
5403 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
5404 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
5405 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
5406 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
5407 prototype.
5408 * break-catch-throw.c: Remove _initialize_break_catch_throw
5409 prototype.
5410 * breakpoint.c: Remove _initialize_breakpoint prototype.
5411 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
5412 * btrace.c: Remove _initialize_btrace prototype.
5413 * charset.c: Remove _initialize_charset prototype.
5414 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
5415 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
5416 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
5417 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
5418 * cli/cli-script.c: Remove _initialize_cli_script prototype.
5419 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
5420 * coffread.c: Remove _initialize_coffread prototype.
5421 * compile/compile.c: Remove _initialize_compile prototype.
5422 * complaints.c: Remove _initialize_complaints prototype.
5423 * completer.c: Remove _initialize_completer prototype.
5424 * copying.awk: Remove _initialize_copying prototype.
5425 * copying.c: Regenerate.
5426 * core-regset.c: Remove _initialize_core_regset prototype.
5427 * corefile.c: Remove _initialize_core prototype.
5428 * corelow.c: Remove _initialize_corelow prototype.
5429 * cp-abi.c: Remove _initialize_cp_abi prototype.
5430 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
5431 * cp-support.c: Remove _initialize_cp_support prototype.
5432 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
5433 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
5434 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
5435 * ctf.c: Remove _initialize_ctf prototype.
5436 * d-lang.c: Remove _initialize_d_language prototype.
5437 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
5438 prototype.
5439 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
5440 * dbxread.c: Remove _initialize_dbxread prototype.
5441 * dcache.c: Remove _initialize_dcache prototype.
5442 * demangle.c: Remove _initialize_demangler prototype.
5443 * disasm-selftests.c: Remove _initialize_disasm_selftests
5444 prototype.
5445 * disasm.c: Remove _initialize_disasm prototype.
5446 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
5447 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
5448 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
5449 prototype.
5450 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
5451 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
5452 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
5453 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
5454 * elfread.c: Remove _initialize_elfread prototype.
5455 * exec.c: Remove _initialize_exec prototype.
5456 * extension.c: Remove _initialize_extension prototype.
5457 * f-lang.c: Remove _initialize_f_language prototype.
5458 * f-valprint.c: Remove _initialize_f_valprint prototype.
5459 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
5460 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
5461 * filesystem.c: Remove _initialize_filesystem prototype.
5462 * findcmd.c: Remove _initialize_mem_search prototype.
5463 * fork-child.c: Remove _initialize_fork_child prototype.
5464 * frame-base.c: Remove _initialize_frame_base prototype.
5465 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
5466 * frame.c: Remove _initialize_frame prototype.
5467 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
5468 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
5469 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
5470 * gcore.c: Remove _initialize_gcore prototype.
5471 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
5472 * gdbarch.c: Regenerate.
5473 * gdbarch.sh: Remove _initialize_gdbarch prototype.
5474 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
5475 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
5476 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
5477 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
5478 * go-lang.c: Remove _initialize_go_language prototype.
5479 * go32-nat.c: Remove _initialize_go32_nat prototype.
5480 * guile/guile.c: Remove _initialize_guile prototype.
5481 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
5482 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
5483 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
5484 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
5485 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
5486 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
5487 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
5488 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
5489 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
5490 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
5491 prototype.
5492 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
5493 prototype.
5494 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
5495 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
5496 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
5497 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
5498 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
5499 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
5500 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
5501 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
5502 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
5503 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
5504 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
5505 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
5506 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
5507 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
5508 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
5509 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
5510 prototype.
5511 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
5512 prototype.
5513 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
5514 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
5515 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
5516 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
5517 * infcall.c: Remove _initialize_infcall prototype.
5518 * infcmd.c: Remove _initialize_infcmd prototype.
5519 * inferior.c: Remove _initialize_inferiors prototype.
5520 * inflow.c: Remove _initialize_inflow prototype.
5521 * infrun.c: Remove _initialize_infrun prototype.
5522 * interps.c: Remove _initialize_interpreter prototype.
5523 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
5524 * jit.c: Remove _initialize_jit prototype.
5525 * language.c: Remove _initialize_language prototype.
5526 * linux-fork.c: Remove _initialize_linux_fork prototype.
5527 * linux-nat.c: Remove _initialize_linux_nat prototype.
5528 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
5529 * linux-thread-db.c: Remove _initialize_thread_db prototype.
5530 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
5531 * m2-lang.c: Remove _initialize_m2_language prototype.
5532 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
5533 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
5534 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
5535 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
5536 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
5537 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
5538 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
5539 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
5540 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
5541 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
5542 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
5543 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
5544 * machoread.c: Remove _initialize_machoread prototype.
5545 * macrocmd.c: Remove _initialize_macrocmd prototype.
5546 * macroscope.c: Remove _initialize_macroscope prototype.
5547 * maint.c: Remove _initialize_maint_cmds prototype.
5548 * mdebugread.c: Remove _initialize_mdebugread prototype.
5549 * memattr.c: Remove _initialize_mem prototype.
5550 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
5551 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
5552 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
5553 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
5554 * mi/mi-main.c: Remove _initialize_mi_main prototype.
5555 * microblaze-linux-tdep.c: Remove
5556 _initialize_microblaze_linux_tdep prototype.
5557 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
5558 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
5559 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
5560 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
5561 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
5562 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
5563 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
5564 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
5565 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
5566 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
5567 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
5568 prototype.
5569 * mipsread.c: Remove _initialize_mipsread prototype.
5570 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
5571 prototype.
5572 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
5573 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
5574 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
5575 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
5576 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
5577 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
5578 prototype.
5579 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
5580 * nto-procfs.c: Remove _initialize_procfs prototype.
5581 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
5582 * objc-lang.c: Remove _initialize_objc_language prototype.
5583 * objfiles.c: Remove _initialize_objfiles prototype.
5584 * observer.c: Remove observer_test_first_notification_function,
5585 observer_test_second_notification_function,
5586 observer_test_third_notification_function, and
5587 _initialize_observer prototypes.
5588 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
5589 * osabi.c: Remove _initialize_gdb_osabi prototype.
5590 * osdata.c: Remove _initialize_osdata prototype.
5591 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
5592 * parse.c: Remove _initialize_parse prototype.
5593 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
5594 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
5595 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
5596 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
5597 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
5598 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
5599 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
5600 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
5601 * printcmd.c: Remove _initialize_printcmd prototype.
5602 * probe.c: Remove _initialize_probe prototype.
5603 * proc-api.c: Remove _initialize_proc_api prototype.
5604 * proc-events.c: Remove _initialize_proc_events prototype.
5605 * proc-service.c: Remove _initialize_proc_service prototype.
5606 * procfs.c: Remove _initialize_procfs prototype.
5607 * psymtab.c: Remove _initialize_psymtab prototype.
5608 * python/python.c: Remove _initialize_python prototype.
5609 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
5610 * record-btrace.c: Remove _initialize_record_btrace prototype.
5611 * record-full.c: Remove _initialize_record_full prototype.
5612 * record.c: Remove _initialize_record prototype.
5613 * regcache.c: Remove _initialize_regcache prototype.
5614 * reggroups.c: Remove _initialize_reggroup prototype.
5615 * remote-notif.c: Remove _initialize_notif prototype.
5616 * remote-sim.c: Remove _initialize_remote_sim prototype.
5617 * remote.c: Remove _initialize_remote prototype.
5618 * reverse.c: Remove _initialize_reverse prototype.
5619 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
5620 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
5621 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
5622 prototype.
5623 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
5624 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
5625 * rust-exp.y: Remove _initialize_rust_exp prototype.
5626 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
5627 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
5628 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
5629 * score-tdep.c: Remove _initialize_score_tdep prototype.
5630 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
5631 prototype.
5632 * ser-go32.c: Remove _initialize_ser_dos prototype.
5633 * ser-mingw.c: Remove _initialize_ser_windows prototype.
5634 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
5635 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
5636 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
5637 * serial.c: Remove _initialize_serial prototype.
5638 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
5639 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
5640 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
5641 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
5642 * skip.c: Remove _initialize_step_skip prototype.
5643 * sol-thread.c: Remove _initialize_sol_thread prototype.
5644 * solib-aix.c: Remove _initialize_solib_aix prototype.
5645 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
5646 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
5647 * solib-frv.c: Remove _initialize_frv_solib prototype.
5648 * solib-spu.c: Remove _initialize_spu_solib prototype.
5649 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
5650 * solib-target.c: Remove _initialize_solib_target prototype.
5651 * solib.c: Remove _initialize_solib prototype.
5652 * source.c: Remove _initialize_source prototype.
5653 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
5654 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
5655 prototype.
5656 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
5657 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
5658 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
5659 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
5660 prototype.
5661 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
5662 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
5663 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
5664 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
5665 prototype.
5666 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
5667 prototype.
5668 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
5669 prototype.
5670 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
5671 prototype.
5672 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
5673 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
5674 prototype.
5675 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
5676 prototype.
5677 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
5678 prototype.
5679 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
5680 prototype.
5681 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
5682 prototype.
5683 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
5684 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
5685 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
5686 * stabsread.c: Remove _initialize_stabsread prototype.
5687 * stack.c: Remove _initialize_stack prototype.
5688 * stap-probe.c: Remove _initialize_stap_probe prototype.
5689 * std-regs.c: Remove _initialize_frame_reg prototype.
5690 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
5691 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
5692 * symfile.c: Remove _initialize_symfile prototype.
5693 * symmisc.c: Remove _initialize_symmisc prototype.
5694 * symtab.c: Remove _initialize_symtab prototype.
5695 * target-dcache.c: Remove _initialize_target_dcache prototype.
5696 * target-descriptions.c: Remove _initialize_target_descriptions
5697 prototype.
5698 * thread.c: Remove _initialize_thread prototype.
5699 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
5700 prototype.
5701 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
5702 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
5703 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
5704 prototype.
5705 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
5706 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
5707 * tracefile.c: Remove _initialize_tracefile prototype.
5708 * tracepoint.c: Remove _initialize_tracepoint prototype.
5709 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
5710 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
5711 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
5712 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
5713 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
5714 * tui/tui-win.c: Remove _initialize_tui_win prototype.
5715 * tui/tui.c: Remove _initialize_tui prototype.
5716 * typeprint.c: Remove _initialize_typeprint prototype.
5717 * user-regs.c: Remove _initialize_user_regs prototype.
5718 * utils.c: Remove _initialize_utils prototype.
5719 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
5720 * valarith.c: Remove _initialize_valarith prototype.
5721 * valops.c: Remove _initialize_valops prototype.
5722 * valprint.c: Remove _initialize_valprint prototype.
5723 * value.c: Remove _initialize_values prototype.
5724 * varobj.c: Remove _initialize_varobj prototype.
5725 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
5726 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
5727 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
5728 * windows-nat.c: Remove _initialize_windows_nat,
5729 _initialize_check_for_gdb_ini, and _initialize_loadable
5730 prototypes.
5731 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
5732 * xcoffread.c: Remove _initialize_xcoffread prototype.
5733 * xml-support.c: Remove _initialize_xml_support prototype.
5734 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
5735 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
5736 prototype.
5737 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
5738 prototype.
5739 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
5740
a611b5cb
KS
57412017-09-08 Keith Seitz <keiths@redhat.com>
5742
5743 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
5744 field.
5745
469412dd
CW
57462017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
5747
5748 * f-valprint.c (f_val_print): Remove check for one byte
5749 sized integers. Remove printing of character type.
5750
a5ad232b
FP
57512017-09-08 Frank Penczek <frank.penczek@intel.com>
5752 Christoph Weinmann <christoph.t.weinmann@intel.com>
5753 Bernhard Heckel <bernhard.heckel@intel.com>
5754
5755 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
5756 to maintain proper indentation when printing pointers/refs.
5757
e5014227
JB
57582017-09-07 Joel Brobecker <brobecker@adacore.com>
5759
5760 GDB 8.0.1 released.
5761
63c99141
JB
57622017-09-07 Joel Brobecker <brobecker@adacore.com>
5763
5764 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
5765
69c1e056
TT
57662017-09-05 Tom Tromey <tom@tromey.com>
5767
5768 * parse.c (funcall_chain): Now a std::vector.
5769 (start_arglist, end_arglist): Simplify.
5770 (free_funcalls): Remove.
5771 (parse_exp_in_context_1): Remove cleanup.
5772
fef704bf
TT
57732017-09-05 Tom Tromey <tom@tromey.com>
5774
5775 * go-exp.y (go_parse): Don't create a cleanup.
5776
5613c585
TT
57772017-09-05 Tom Tromey <tom@tromey.com>
5778
5779 * d-exp.y (PrimaryExpression): Use std::string.
5780 (d_parse): Don't create a cleanup.
5781
eae49211
TT
57822017-09-05 Tom Tromey <tom@tromey.com>
5783
5784 * utils.c (do_clear_parser_state): Remove.
5785 (make_cleanup_clear_parser_state): Remove.
5786 * p-exp.y (pascal_parse): Use scoped_restore.
5787 * m2-exp.y (m2_parse): Use scoped_restore.
5788 * f-exp.y (f_parse): Use scoped_restore.
5789 * d-exp.y (d_parse): Use scoped_restore.
5790 * c-exp.y (c_parse): Use scoped_restore.
5791 * ada-exp.y (ada_parse): Use scoped_restore.
5792 * utils.h (make_cleanup_clear_parser_state): Remove.
5793
73b9be8b
KS
57942017-09-06 Keith Seitz <keiths@redhat.com>
5795
5796 * dwarf2read.c (dw2_linkage_name_attr): New function.
5797 (dw2_linkage_name): New function.
5798 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
5799 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
5800 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
5801
a102602b
KR
58022017-09-06 Kamil Rytarowski <n54@gmx.com>
5803
5804 * config/djgpp/djconfig.sh: Correct shell portability issue.
5805
28ad437d
KR
58062017-09-06 Kamil Rytarowski <n54@gmx.com>
5807
5808 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
5809
351787dd
JB
58102017-09-06 John Baldwin <jhb@FreeBSD.org>
5811
5812 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
5813 * NEWS: Mention new FreeBSD/mips native configuration.
5814 * configure.host: Add aarch64*-*-freebsd*.
5815 * configure.nat: Likewise.
5816 * aarch64-fbsd-nat.c: New file.
5817
c0f84956
JB
58182017-09-06 John Baldwin <jhb@FreeBSD.org>
5819
5820 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
5821 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
5822 * NEWS: Mention new FreeBSD/aarch64 target.
5823 * configure.tgt: Add aarch64*-*-freebsd*.
5824 * aarch64-fbsd-tdep.c: New file.
5825 * aarch64-fbsd-tdep.h: New file.
5826
7610297a
KR
58272017-09-06 Kamil Rytarowski <n54@gmx.com>
5828
5829 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
5830
fbd1b771
JK
58312017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5832
5833 * parse.c (find_minsym_type_and_address): Don't relocate addresses
5834 of TLS symbols.
5835
5ca79eae
PW
58362017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5837
5838 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
5839 call.
5840
bf93d7ba
SM
58412017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5842
5843 * infrun.c (follow_exec): Call add_thread after
5844 target_find_description.
5845
1bb7c059
SM
58462017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5847
5848 * infrun.c (handle_inferior_event_1): When exec'ing, read
5849 stop_pc after follow_exec.
5850
fc809827
SM
58512017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5852
5853 * remote.c (process_g_packet): Update error message.
5854
d2fcdd85
YQ
58552017-09-05 Yao Qi <yao.qi@linaro.org>
5856
5857 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
5858 targets.
5859
e69570ee
PA
58602017-09-05 Pedro Alves <palves@redhat.com>
5861
5862 * eval.c (eval_call, evaluate_funcall): New functions, factored
5863 out from ...
5864 (evaluate_subexp_standard): ... this.
5865
22916b07
YQ
58662017-09-05 Yao Qi <yao.qi@linaro.org>
5867
5868 * amd64-tdep.c (amd64_target_description): Create target
5869 descriptions.
5870 (_initialize_amd64_tdep): Don't call functions
5871 initialize_tdesc_amd64_*. Add self tests.
5872 * arch/amd64.c (amd64_create_target_description): Add parameter
5873 is_linux. Call set_tdesc_osabi if is_linux is true.
5874 * arch/amd64.h (amd64_create_target_description): Update the
5875 declaration.
5876 * arch/i386.c (i386_create_target_description): Add parameter
5877 is_linux. Call set_tdesc_osabi if is_linux is true.
5878 * arch/i386.h (i386_create_target_description): Update
5879 declaration.
5880 * configure.tgt: Add i386.o to gdb_target_obs.
5881 * features/Makefile (XMLTOC): Remove i386/*.xml.
5882 * features/i386/amd64-avx-avx512.c: Remove.
5883 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
5884 * features/i386/amd64-avx-mpx.c: Remove.
5885 * features/i386/amd64-avx.c: Remove.
5886 * features/i386/amd64-mpx.c: Remove.
5887 * features/i386/amd64.c: Remove.
5888 * features/i386/i386-avx-avx512.c: Remove.
5889 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
5890 * features/i386/i386-avx-mpx.c: Remove.
5891 * features/i386/i386-avx.c: Remove.
5892 * features/i386/i386-mmx.c: Remove.
5893 * features/i386/i386-mpx.c: Remove.
5894 * features/i386/i386.c: Remove.
5895 * i386-tdep.c: Don't include features/i386/i386*.c., include
5896 target-descriptions.h and arch/i386.h.
5897 (i386_target_description): Create target descriptions.
5898 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
5899 functions. Do self tests.
5900
0854b7b1
YQ
59012017-09-05 Yao Qi <yao.qi@linaro.org>
5902
5903 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
5904 * features/i386/amd64-avx-avx512-linux.c: Removed.
5905 * features/i386/amd64-avx-linux.c: Removed.
5906 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
5907 * features/i386/amd64-avx-mpx-linux.c: Removed.
5908 * features/i386/amd64-linux.c: Removed.
5909 * features/i386/amd64-mpx-linux.c: Removed.
5910 * features/i386/x32-avx-avx512-linux.c: Removed.
5911 * features/i386/x32-avx-linux.c: Removed.
5912 * features/i386/x32-linux.c: Removed.
5913
b4570e4b
YQ
59142017-09-05 Yao Qi <yao.qi@linaro.org>
5915
5916 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
5917 features/i386/*.c.
5918 (amd64_linux_read_description): Call
5919 amd64_create_target_description.
5920 * arch/amd64.c: New file.
5921 * arch/amd64.h: New file.
5922 * configure.tgt (x86_64-*-linux*): Append amd64.o.
5923 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
5924
6c73f67f
YQ
59252017-09-05 Yao Qi <yao.qi@linaro.org>
5926
5927 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
5928 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
5929 (amd64_linux_read_description): Create target descriptions.
5930 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
5931 functions. Add unit tests.
5932 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
5933 x32-core.xml.
5934 * features/i386/64bit-avx.c: Generated.
5935 * features/i386/64bit-avx512.c: Generated.
5936 * features/i386/64bit-core.c: Generated.
5937 * features/i386/64bit-linux.c: Generated.
5938 * features/i386/64bit-mpx.c: Generated.
5939 * features/i386/64bit-pkeys.c: Generated.
5940 * features/i386/64bit-segments.c: Generated.
5941 * features/i386/64bit-sse.c: Generated.
5942 * features/i386/x32-core.c: Generated.
5943 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
5944 c files for amd64-linux and x32-linux.
5945
9d3d478b
YQ
59462017-09-05 Yao Qi <yao.qi@linaro.org>
5947
5948 * amd64-linux-tdep.c (amd64_linux_read_description): New
5949 function.
5950 (amd64_linux_core_read_description): Call
5951 amd64_linux_read_description.
5952 (amd64_linux_init_abi): Likewise.
5953 (amd64_x32_linux_init_abi): Likewise.
5954 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
5955 * x86-linux-nat.c (x86_linux_read_description): Call
5956 amd64_linux_read_description.
5957
b9f1d50f
YQ
59582017-09-05 Yao Qi <yao.qi@linaro.org>
5959
5960 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
5961 comments.
5962
188c9e6d
YQ
59632017-09-05 Yao Qi <yao.qi@linaro.org>
5964
5965 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
5966 * features/i386/i386-avx-avx512-linux.c: Remove.
5967 * features/i386/i386-avx-linux.c: Remove.
5968 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
5969 * features/i386/i386-avx-mpx-linux.c: Remove.
5970 * features/i386/i386-linux.c: Remove.
5971 * features/i386/i386-mmx-linux.c: Remove.
5972 * features/i386/i386-mpx-linux.c: Remove.
5973
5f035c07
YQ
59742017-09-05 Yao Qi <yao.qi@linaro.org>
5975
5976 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
5977 (SFILES): Add arch/i386.c.
5978 (HFILES_NO_SRCDIR): Add arch/i386.h.
5979 * arch/i386.c: New file.
5980 * arch/i386.h: New file.
5981 * arch/tdesc.h (allocate_target_description): Declare.
5982 (set_tdesc_architecture): Declare.
5983 (set_tdesc_osabi): Declare.
5984 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
5985 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
5986 include arch/i386.h.
5987 (i386_linux_read_description): Remove code and call
5988 i386_create_target_description.
5989 (set_tdesc_architecture): New function.
5990 (set_tdesc_osabi): New function.
5991 * target-descriptions.h (allocate_target_description): Remove.
5992
0abe8a89
YQ
59932017-09-05 Yao Qi <yao.qi@linaro.org>
5994
5995 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
5996 * target-descriptions.c (tdesc_create_feature): Likewise, and
5997 adjust code.
5998 * features/i386/32bit-avx.c: Re-generated.
5999 * features/i386/32bit-avx512.c: Re-generated.
6000 * features/i386/32bit-core.c: Re-generated.
6001 * features/i386/32bit-linux.c: Re-generated.
6002 * features/i386/32bit-mpx.c: Re-generated.
6003 * features/i386/32bit-pkeys.c: Re-generated.
6004 * features/i386/32bit-sse.c: Re-generated.
6005
0a188386
YQ
60062017-09-05 Yao Qi <yao.qi@linaro.org>
6007
6008 * regformats/regdef.h (struct reg): Override operator == and !=.
6009
f49ff000
YQ
60102017-09-05 Yao Qi <yao.qi@linaro.org>
6011
6012 * arch/tdesc.h: New file.
6013 * regformats/regdat.sh: Generate code using tdesc_create_reg.
6014 * target-descriptions.c: Update comments.
6015 * target-descriptions.h: Include "arch/tdesc.h". Remove the
6016 declarations.
6017 * features/i386/32bit-avx.c: Re-generated.
6018 * features/i386/32bit-avx512.c: Re-generated.
6019 * features/i386/32bit-core.c: Re-generated.
6020 * features/i386/32bit-linux.c: Re-generated.
6021 * features/i386/32bit-mpx.c: Re-generated.
6022 * features/i386/32bit-pkeys.c: Re-generated.
6023 * features/i386/32bit-sse.c: Re-generated.
6024
f7000548
YQ
60252017-09-05 Yao Qi <yao.qi@linaro.org>
6026
6027 * regformats/regdat.sh: Update generated code.
6028
c9a5e2a5
YQ
60292017-09-05 Yao Qi <yao.qi@linaro.org>
6030
6031 * regformats/regdat.sh: Adjust code order.
6032
d6b687ac
SM
60332017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6034
6035 * expprint.c (dump_subexp_body_standard): Use constant format
6036 string in fprintf_filtered call.
6037
a379bfd0
JB
60382017-09-04 John Baldwin <jhb@FreeBSD.org>
6039
6040 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
6041 NetBSD/i386.
6042 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
6043
f7efc967
JB
60442017-09-04 John Baldwin <jhb@FreeBSD.org>
6045
6046 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
6047
c49fbc6c
JB
60482017-09-04 John Baldwin <jhb@FreeBSD.org>
6049
6050 * bsd-kvm.o: Define _KMEMUSER.
6051 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
6052 * configure: Regenerate.
6053
26562e73
JB
60542017-09-04 John Baldwin <jhb@FreeBSD.org>
6055
6056 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
6057 * i386-fbsd-nat.c: Likewise.
6058
31cf1487
JB
60592017-09-04 John Baldwin <jhb@FreeBSD.org>
6060
6061 * unittests/array-view-selftests.c: Add include of <array>.
6062
5b9f8a7c
JB
60632017-09-04 John Baldwin <jhb@FreeBSD.org>
6064
6065 * spu-tdep.c (flush_ea_cache): Add missing argument to
6066 call_function_by_hand.
6067
d69cf9b2
PA
60682017-09-04 Pedro Alves <palves@redhat.com>
6069
6070 * NEWS (Safer support for debugging with no debug info): New.
6071
3693fdb3
PA
60722017-09-04 Pedro Alves <palves@redhat.com>
6073
6074 * c-exp.y (function_method, function_method_void): Add current
6075 instance flags to TYPE_INSTANCE.
6076 * dwarf2read.c (check_modifier): New.
6077 (compute_delayed_physnames): Assert that only C++ adds delayed
6078 physnames. Mark fn_fields as const/volatile depending on
6079 physname.
6080 * eval.c (make_params): New type_instance_flags parameter. Use
6081 it as the new type's instance flags.
6082 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
6083 flags element and pass it to make_params.
6084 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
6085 instance flags element.
6086 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
6087 * gdbtypes.h: Include "enum-flags.h".
6088 (type_instance_flags): New enum-flags type.
6089 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
6090 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
6091 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
6092 (follow_type_instance_flags): New function.
6093 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
6094 * parser-defs.h (follow_type_instance_flags): Declare.
6095 * valops.c (value_struct_elt_for_reference): const/volatile must
6096 match too.
6097
e68cb8e0
PA
60982017-09-04 Pedro Alves <palves@redhat.com>
6099
6100 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
6101 function/method scopes; lookup the nested name as a function local
6102 static variable.
6103
858be34c
PA
61042017-09-04 Pedro Alves <palves@redhat.com>
6105
6106 (%type <voidval>): Add function_method.
6107 * c-exp.y (exp): New production for calls with no arguments.
6108 (function_method, function_method_void_or_typelist): New
6109 productions.
6110 (exp): New production for "method()::static_var".
6111 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
6112 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6113 Handle OP_FUNC_STATIC_VAR.
6114 * parse.c (operator_length_standard):
6115 Handle OP_FUNC_STATIC_VAR.
6116
dd5901a6
PA
61172017-09-04 Pedro Alves <palves@redhat.com>
6118
6119 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
6120 handling.
6121 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6122 Ditto.
6123 * parse.c (operator_length_standard, operator_check_standard):
6124 Ditto.
6125 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
6126
46a4882b
PA
61272017-09-04 Pedro Alves <palves@redhat.com>
6128
6129 * ax-gdb.c: Include "typeprint.h".
6130 (gen_expr_for_cast): New function.
6131 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
6132 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
6133 type is unknown.
6134 * dwarf2read.c (new_symbol_full): Fallback to int instead of
6135 nodebug_data_symbol.
6136 * eval.c: Include "typeprint.h".
6137 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
6138 Error out if symbol has unknown type.
6139 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
6140 evaluate_subexp_for_cast.
6141 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
6142 OP_VAR_MSYM_VALUE.
6143 (evaluate_subexp_for_cast): New function.
6144 * gdbtypes.c (init_nodebug_var_type): New function.
6145 (objfile_type): Use it to initialize types of variables with no
6146 debug info.
6147 * typeprint.c (error_unknown_type): New.
6148 * typeprint.h (error_unknown_type): New declaration.
6149 * compile/compile-c-types.c (convert_type_basic): Handle
6150 TYPE_CODE_ERROR; warn and fallback to int for variables with
6151 unknown type.
6152
fe13dfec
PA
61532017-09-04 Pedro Alves <palves@redhat.com>
6154
6155 * eval.c (evaluate_var_value): New function, factored out from ...
6156 (evaluate_subexp_standard): ... here.
6157
d008ee21
PA
61582017-09-04 Pedro Alves <palves@redhat.com>
6159
6160 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
6161 Remove useless assignments to 'op'.
6162
827d0c51
PA
61632017-09-04 Pedro Alves <palves@redhat.com>
6164
6165 * eval.c (eval_skip_value): New function.
6166 (evaluate_subexp_standard): Use it.
6167
2c5a2be1
PA
61682017-09-04 Pedro Alves <palves@redhat.com>
6169
6170 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
6171 function name from symbol/minsym and pass it to
6172 error_call_unknown_return_type.
6173
74ea4be4
PA
61742017-09-04 Pedro Alves <palves@redhat.com>
6175
6176 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
6177 * ax-gdb.c (gen_msym_var_ref): New function.
6178 (gen_expr): Handle OP_VAR_MSYM_VALUE.
6179 * eval.c (evaluate_var_msym_value): New function.
6180 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
6181 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
6182 to call_function_by_hand.
6183 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6184 Handle OP_VAR_MSYM_VALUE.
6185 (union exp_element) <msymbol>: New field.
6186 * minsyms.h (struct type): Forward declare.
6187 (find_minsym_type_and_address): Declare.
6188 * parse.c (write_exp_elt_msym): New function.
6189 (write_exp_msymbol): Delete, refactored as ...
6190 (find_minsym_type_and_address): ... this new function.
6191 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
6192 (operator_length_standard, operator_check_standard): Handle
6193 OP_VAR_MSYM_VALUE.
6194 * std-operator.def (OP_VAR_MSYM_VALUE): New.
6195
7022349d
PA
61962017-09-04 Pedro Alves <palves@redhat.com>
6197
6198 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
6199 TYPE_GNU_IFUNC specially here. Throw error if return type is
6200 unknown.
6201 * ada-typeprint.c (print_func_type): Handle functions with unknown
6202 return type.
6203 * c-typeprint.c (c_type_print_base): Handle functions and methods
6204 with unknown return type.
6205 * compile/compile-c-symbols.c (convert_symbol_bmsym)
6206 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
6207 * compile/compile-c-types.c: Include "objfiles.h".
6208 (convert_func): For functions with unknown return type, warn and
6209 default to int.
6210 * compile/compile-object-run.c (compile_object_run): Adjust call
6211 to call_function_by_hand_dummy.
6212 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
6213 call_function_by_hand.
6214 * eval.c (evaluate_subexp_standard): Adjust calls to
6215 call_function_by_hand. Handle functions and methods with unknown
6216 return type. Pass expect_type to call_function_by_hand.
6217 * f-typeprint.c (f_type_print_base): Handle functions with unknown
6218 return type.
6219 * gcore.c (call_target_sbrk): Adjust call to
6220 call_function_by_hand.
6221 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
6222 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
6223 an integer address type instead of nodebug.
6224 * guile/scm-value.c (gdbscm_value_call): Adjust call to
6225 call_function_by_hand.
6226 * infcall.c (error_call_unknown_return_type): New function.
6227 (call_function_by_hand): New "default_return_type" parameter.
6228 Pass it down.
6229 (call_function_by_hand_dummy): New "default_return_type"
6230 parameter. Use it instead of defaulting to int. If there's no
6231 default and the return type is unknown, throw an error. If
6232 there's a default return type, and the called function has no
6233 debug info, then assume the function is prototyped.
6234 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
6235 New "default_return_type" parameter.
6236 (error_call_unknown_return_type): New declaration.
6237 * linux-fork.c (call_lseek): Cast return type of lseek.
6238 (inferior_call_waitpid, checkpoint_command): Adjust calls to
6239 call_function_by_hand.
6240 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
6241 calls to call_function_by_hand.
6242 * m2-typeprint.c (m2_procedure): Handle functions with unknown
6243 return type.
6244 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6245 (value_nsstring, print_object_command): Adjust calls to
6246 call_function_by_hand.
6247 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
6248 functions with unknown return type.
6249 (pascal_type_print_func_varspec_suffix): New function.
6250 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
6251 TYPE_CODE_METHOD>: Use it.
6252 * python/py-value.c (valpy_call): Adjust call to
6253 call_function_by_hand.
6254 * rust-lang.c (rust_evaluate_funcall): Adjust call to
6255 call_function_by_hand.
6256 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
6257 call_function_by_hand.
6258 * valops.c (value_allocate_space_in_inferior): Adjust call to
6259 call_function_by_hand.
6260 * typeprint.c (type_print_unknown_return_type): New function.
6261 * typeprint.h (type_print_unknown_return_type): New declaration.
6262
54990598
PA
62632017-09-04 Pedro Alves <palves@redhat.com>
6264
6265 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
6266 types with more than one parameter as prototyped.
6267
9a24775b
PA
62682017-09-04 Pedro Alves <palves@redhat.com>
6269
6270 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
6271 (disassemble_command): Use gdb_disassembly_flags instead of bare
6272 int.
6273 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
6274 (dump_insns, do_mixed_source_and_assembly_deprecated)
6275 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
6276 Use gdb_disassembly_flags instead of bare int.
6277 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
6278 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
6279 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
6280 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
6281 (enum gdb_disassembly_flag): ... values of this new enumeration.
6282 (gdb_disassembly_flags): Define.
6283 (gdb_disassembly)
6284 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
6285 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
6286 gdb_disassembly_flags instead of bare int.
6287 * record-btrace.c (btrace_insn_history)
6288 (record_btrace_insn_history, record_btrace_insn_history_range)
6289 (record_btrace_insn_history_from): Use gdb_disassembly_flags
6290 instead of bare int.
6291 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
6292 Use gdb_disassembly_flags instead of bare int.
6293 * target-debug.h (target_debug_print_gdb_disassembly_flags):
6294 Define.
6295 * target-delegates.c: Regenerate.
6296 * target.c (target_insn_history, target_insn_history_from)
6297 (target_insn_history_range): Use gdb_disassembly_flags instead of
6298 bare int.
6299 * target.h: Include "disasm.h".
6300 (struct target_ops) <to_insn_history, to_insn_history_from,
6301 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
6302 int.
6303 (target_insn_history, target_insn_history_from)
6304 (target_insn_history_range): Use gdb_disassembly_flags instead of
6305 bare int.
6306
80a65e9b
SM
63072017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6308
6309 * cli/cli-script.c (build_command_line): For if/while commands,
6310 check whether args is empty.
6311
6b66338c
SM
63122017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6313
6314 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
6315 (enum command_control_type): Likewise.
6316 (struct command_line): Likewise.
6317 (free_command_lines): Likewise.
6318 (struct command_lines_deleter): Likewise.
6319 (command_line_up): Likewise.
6320 (read_command_lines): Likewise.
6321 (read_command_lines_1): Likewise.
6322 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
6323 (enum command_control_type): Likewise.
6324 (struct command_line): Likewise.
6325 (free_command_lines): Likewise.
6326 (struct command_lines_deleter): Likewise.
6327 (command_line_up): Likewise.
6328 (read_command_lines): Likewise.
6329 (read_command_lines_1): Likewise.
6330 * breakpoint.h: Include cli/cli-script.h.
6331 * extension-priv.h: Likewise.
6332 * gdbcmd.h: Likewise.
6333
51abb421
PA
63342017-09-04 Pedro Alves <palves@redhat.com>
6335
6336 * ada-lang.c (is_known_support_routine): Move sal declaration to
6337 where it is initialized.
6338 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
6339 (parse_breakpoint_sals, decode_static_tracepoint_spec)
6340 (clear_command, update_static_tracepoint): Remove init_sal
6341 references. Move declarations closer to initializations.
6342 * cli/cli-cmds.c (list_command): Move sal declarations closer to
6343 initializations.
6344 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
6345 references. Move sal declarations closer to initializations.
6346 * frame.c (find_frame_sal): Return a symtab_and_line via function
6347 return instead of output parameter. Remove init_sal references.
6348 * frame.h (find_frame_sal): Return a symtab_and_line via function
6349 return instead of output parameter.
6350 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
6351 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
6352 instead of memset.
6353 (gdbscm_find_pc_line): Remove init_sal reference.
6354 * infcall.c (call_function_by_hand_dummy): Remove init_sal
6355 references. Move declarations closer to initializations.
6356 * infcmd.c (set_step_frame): Update. Move declarations closer to
6357 initializations.
6358 (finish_backward): Remove init_sal references. Move declarations
6359 closer to initializations.
6360 * infrun.c (process_event_stop_test, handle_step_into_function)
6361 (insert_hp_step_resume_breakpoint_at_frame)
6362 (insert_step_resume_breakpoint_at_caller): Likewise.
6363 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
6364 (symbol_to_sal): Likewise.
6365 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
6366 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
6367 to its initialization.
6368 * reverse.c (save_bookmark_command): Use new/delete. Remove
6369 init_sal references. Move declarations closer to initializations.
6370 * source.c (get_current_source_symtab_and_line): Remove brace
6371 initialization.
6372 (set_current_source_symtab_and_line): Now takes the sal by const
6373 reference. Remove brace initialization.
6374 (line_info): Remove init_sal reference.
6375 * source.h (set_current_source_symtab_and_line): Now takes a
6376 symtab_and_line via const reference.
6377 * stack.c (set_current_sal_from_frame): Adjust.
6378 (print_frame_info): Adjust.
6379 (get_last_displayed_sal): Return the sal via function return
6380 instead of via output parameter. Simplify.
6381 (frame_info): Adjust.
6382 * stack.h (get_last_displayed_sal): Return the sal via function
6383 return instead of via output parameter.
6384 * symtab.c (init_sal): Delete.
6385 (find_pc_sect_line): Remove init_sal references. Move
6386 declarations closer to initializations.
6387 (find_function_start_sal): Remove init_sal references. Move
6388 declarations closer to initializations.
6389 * symtab.h (struct symtab_and_line): In-class initialize all
6390 fields.
6391 * tracepoint.c (set_traceframe_context)
6392 (print_one_static_tracepoint_marker): Remove init_sal references.
6393 Move declarations closer to initializations.
6394 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
6395 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
6396 declarations closer to initializations.
6397 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
6398 init_sal references. Adjust.
6399
6c5b2ebe
PA
64002017-09-04 Pedro Alves <palves@redhat.com>
6401
6402 * ax-gdb.c (agent_command_1): Use range-for.
6403 * break-catch-throw.c (re_set_exception_catchpoint): Update.
6404 * breakpoint.c: Include "common/array-view.h".
6405 (init_breakpoint_sal, create_breakpoint_sal): Change sals
6406 parameter from struct symtabs_and_lines to
6407 array_view<symtab_and_line>. Adjust. Use range-for. Update.
6408 (breakpoint_sals_to_pc): Change sals parameter from struct
6409 symtabs_and_lines to std::vector reference.
6410 (check_fast_tracepoint_sals): Change sals parameter from struct
6411 symtabs_and_lines to std::array_view. Use range-for.
6412 (decode_static_tracepoint_spec): Return a std::vector instead of
6413 symtabs_and_lines. Update.
6414 (create_breakpoint): Update.
6415 (break_range_command, until_break_command, clear_command): Update.
6416 (base_breakpoint_decode_location, bkpt_decode_location)
6417 (bkpt_probe_create_sals_from_location)
6418 (bkpt_probe_decode_location, tracepoint_decode_location)
6419 (tracepoint_probe_decode_location)
6420 (strace_marker_create_sals_from_location): Return a std::vector
6421 instead of symtabs_and_lines.
6422 (strace_marker_create_breakpoints_sal): Update.
6423 (strace_marker_decode_location): Return a std::vector instead of
6424 symtabs_and_lines. Update.
6425 (update_breakpoint_locations): Change struct symtabs_and_lines
6426 parameters to gdb::array_view. Adjust.
6427 (location_to_sals): Return a std::vector instead of
6428 symtabs_and_lines. Update.
6429 (breakpoint_re_set_default): Use std::vector instead of struct
6430 symtabs_and_lines.
6431 (decode_location_default): Return a std::vector instead of
6432 symtabs_and_lines. Update.
6433 * breakpoint.h: Include "common/array-view.h".
6434 (struct breakpoint_ops) <decode_location>: Now returns a
6435 std::vector instead of returning a symtabs_and_lines via output
6436 parameter.
6437 (update_breakpoint_locations): Change sals parameters to use
6438 gdb::array_view.
6439 * cli/cli-cmds.c (edit_command, list_command): Update to use
6440 std::vector and gdb::array_view.
6441 (ambiguous_line_spec): Adjust to use gdb::array_view and
6442 range-for.
6443 (compare_symtabs): Rename to ...
6444 (cmp_symtabs): ... this. Change parameters to symtab_and_line
6445 const reference and adjust.
6446 (filter_sals): Rewrite using std::vector and standard algorithms.
6447 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
6448 (jump_command): Update to use std::vector.
6449 * linespec.c (struct linespec_state) <canonical_names>: Update
6450 comment.
6451 (add_sal_to_sals_basic): Delete.
6452 (add_sal_to_sals, filter_results, convert_results_to_lsals)
6453 (decode_line_2, create_sals_line_offset)
6454 (convert_address_location_to_sals, convert_linespec_to_sals)
6455 (convert_explicit_location_to_sals, parse_linespec)
6456 (event_location_to_sals, decode_line_full, decode_line_1)
6457 (decode_line_with_current_source)
6458 (decode_line_with_last_displayed, decode_objc)
6459 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
6460 (linespec_result::~linespec_result): Adjust to use std::vector
6461 instead of symtabs_and_lines.
6462 * linespec.h (linespec_sals::sals): Now a std::vector.
6463 (struct linespec_result): Use std::vector, bool, and in-class
6464 initialization.
6465 (decode_line_1, decode_line_with_current_source)
6466 (decode_line_with_last_displayed): Return std::vector.
6467 * macrocmd.c (info_macros_command): Use std::vector.
6468 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
6469 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
6470 std::vector.
6471 * probe.h (parse_probes): Return a std::vector.
6472 * python/python.c (gdbpy_decode_line): Use std::vector and
6473 gdb::array_view.
6474 * source.c (select_source_symtab, line_info): Use std::vector.
6475 * stack.c (func_command): Use std::vector.
6476 * symtab.h (struct symtabs_and_lines): Delete.
6477 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
6478
7c44b49c
PA
64792017-09-04 Pedro Alves <palves@redhat.com>
6480
6481 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6482 unittests/array-view-selftests.c.
6483 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
6484 * common/array-view.h: New file.
6485 * unittests/array-view-selftests.c: New file.
6486
e439fa14
PA
64872017-09-04 Pedro Alves <palves@redhat.com>
6488
6489 * cli/cli-cmds.c (edit_command): Pass message to
6490 ambiguous_line_spec.
6491 (list_command): Pass message to ambiguous_line_spec. Say
6492 "first"/"last" instead of "start" and "end" to be consistent with
6493 the manual.
6494 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
6495 them to print formatted message.
6496
7525b645
PA
64972017-09-04 Pedro Alves <palves@redhat.com>
6498
6499 * btrace.c (ftrace_add_pt): Pass btrace_insn to
6500 ftrace_update_insns by reference instead of pointer.
6501
badc0020
YQ
65022017-09-04 Yao Qi <yao.qi@linaro.org>
6503
6504 * i386-go32-tdep.c: Include x86-xstate.h.
6505 (i386_go32_init_abi): Call i386_target_description.
6506 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
6507 if xcr0 is X86_XSTATE_X87_MASK.
6508 * i386-tdep.h (tdesc_i386): Remove the declaration.
6509 (tdesc_i386_mmx): Likewise.
6510
d78bdb54
YQ
65112017-09-04 Yao Qi <yao.qi@linaro.org>
6512
6513 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
6514 X86_XSTATE_SSE_MASK instead of 0.
6515
ca1fa5ee
YQ
65162017-09-04 Yao Qi <yao.qi@linaro.org>
6517
6518 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
6519 i386_target_description.
6520 * i386-fbsd-nat.c (i386fbsd_read_description): Call
6521 i386_target_description.
6522 * i386-tdep.c (i386_gdbarch_init): Likewise.
6523
2434b019
YQ
65242017-09-04 Yao Qi <yao.qi@linaro.org>
6525
6526 * amd64-darwin-tdep.c: Include "x86-xstate.h".
6527 (x86_darwin_init_abi_64): Call amd64_target_description.
6528 * amd64-dicos-tdep.c: Likewise.
6529 * amd64-fbsd-nat.c: Likewise.
6530 * amd64-fbsd-tdep.c: Likewise.
6531 * amd64-nbsd-tdep.c: Likewise.
6532 * amd64-obsd-tdep.c: Likewise.
6533 * amd64-sol2-tdep.c: Likewise.
6534 * amd64-windows-tdep.c: Likewise.
6535 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
6536
0860c437
SM
65372017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6538
6539 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
6540 (btrace_function) <insn>: Change type to use std::vector.
6541 * btrace.c (ftrace_debug, ftrace_call_num_insn,
6542 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
6543 ftrace_update_insns, ftrace_compute_global_level_offset,
6544 btrace_stitch_bts, btrace_clear, btrace_insn_get,
6545 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
6546 change to std::vector.
6547 (ftrace_update_insns): Adjust to change to std::vector, change
6548 type of INSN parameter.
6549 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
6550 * record-btrace.c (btrace_call_history_insn_range,
6551 btrace_compute_src_line_range,
6552 record_btrace_frame_prev_register): Adjust to change to
6553 std::vector.
6554 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
6555 to change to std::vector.
6556
0638b7f9
TT
65572017-09-03 Tom Tromey <tom@tromey.com>
6558
6559 * corefile.c (reopen_exec_file): Use std::string.
6560
8f84fb0e
TT
65612017-09-03 Tom Tromey <tom@tromey.com>
6562
6563 * compile/compile.c (compile_register_name_mangled): Return
6564 std::string.
6565 * compile/compile-loc2c.c (pushf_register_address): Update.
6566 (pushf_register): Update.
6567 * compile/compile-c-types.c (convert_array): Update.
6568 * compile/compile-c-symbols.c (generate_vla_size): Update.
6569 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
6570 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
6571 (convert_one_symbol): Update.
6572 (generate_c_for_for_one_variable): Update.
6573 * compile/compile-c-support.c (c_get_range_decl_name): Return a
6574 std::string.
6575 (generate_register_struct): Update.
6576 * compile/compile-internal.h (c_get_range_decl_name): Return a
6577 std::string.
6578 (compile_register_name_mangled): Return std::string.
6579
18e9961f
TT
65802017-09-03 Tom Tromey <tom@tromey.com>
6581
6582 * utils.c (perror_string): Return a std::string.
6583 (throw_perror_with_name, perror_warning_with_name): Update.
6584
45343786
TT
65852017-09-03 Tom Tromey <tom@tromey.com>
6586
6587 * demangle.c (demangle_command): Use std::string,
6588 unique_xmalloc_ptr.
6589
b57af503
TT
65902017-09-03 Tom Tromey <tom@tromey.com>
6591
6592 * cli/cli-setshow.c (do_set_command): Use std::string.
6593
6eecf35f
TT
65942017-09-03 Tom Tromey <tom@tromey.com>
6595
6596 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
6597
56496dd4
TT
65982017-09-03 Tom Tromey <tom@tromey.com>
6599
6600 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
6601
e91a1fa7
TT
66022017-09-03 Tom Tromey <tom@tromey.com>
6603
6604 * mi/mi-cmd-env.c (env_execute_cli_command): Use
6605 gdb::unique_xmalloc_ptr.
6606
7ffd83d7
TT
66072017-09-03 Tom Tromey <tom@tromey.com>
6608
6609 * thread.c (print_thread_info_1): Use string_printf.
6610 (thread_apply_command, thread_apply_all_command): Use
6611 std::string.
6612
1ccbe998
TT
66132017-09-03 Tom Tromey <tom@tromey.com>
6614
6615 * valprint.c (val_print_string): Update.
6616 * gdbcore.h (memory_error_message): Return std::string.
6617 * corefile.c (memory_error_message): Return std::string.
6618 (memory_error): Update.
6619 * breakpoint.c (insert_bp_location): Update.
6620
23fdd69e
SM
66212017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6622
6623 * target/waitstatus.h (target_waitstatus_to_string): Change
6624 return type to std::string.
6625 * target/waitstatus.c (target_waitstatus_to_string): Return
6626 std::string.
6627 * target.h (target_waitstatus_to_string): Remove declaration.
6628 * infrun.c (resume, clear_proceed_status_thread,
6629 print_target_wait_results, do_target_wait, save_waitstatus,
6630 stop_all_threads): Adjust.
6631 * record-btrace.c (record_btrace_wait): Adjust.
6632 * target-debug.h
6633 (target_debug_print_struct_target_waitstatus_p): Adjust.
6634
5c811d30
JK
66352017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6636
6637 PR gdb/22046
6638 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
6639 detection.
6640
0a2dde4a
SDJ
66412017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6642
6643 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
6644 for setting/unsetting environment variables on the remote target.
6645 (New remote packets): Add entries for QEnvironmentHexEncoded,
6646 QEnvironmentUnset and QEnvironmentReset.
6647 * common/environ.c (gdb_environ::operator=): Extend method to
6648 handle m_user_set_env_list and m_user_unset_env_list.
6649 (gdb_environ::clear): Likewise.
6650 (match_var_in_string): Change type of first parameter from 'char
6651 *' to 'const char *'.
6652 (gdb_environ::set): Extend method to handle
6653 m_user_set_env_list and m_user_unset_env_list.
6654 (gdb_environ::unset): Likewise.
6655 (gdb_environ::clear_user_set_env): New method.
6656 (gdb_environ::user_set_envp): Likewise.
6657 (gdb_environ::user_unset_envp): Likewise.
6658 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
6659 m_user_unset_env_list on move constructor/assignment.
6660 (unset): Add new default parameter 'update_unset_list = true'.
6661 (clear_user_set_env): New method.
6662 (user_set_envp): Likewise.
6663 (user_unset_envp): Likewise.
6664 (m_user_set_env_list): New std::set.
6665 (m_user_unset_env_list): Likewise.
6666 * common/rsp-low.c (hex2str): New function.
6667 (bin2hex): New overload for bin2hex function.
6668 * common/rsp-low.c (hex2str): New prototype.
6669 (str2hex): New overload prototype.
6670 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
6671 QEnvironmentUnset and QEnvironmentReset.
6672 (remote_protocol_features): Add QEnvironmentHexEncoded,
6673 QEnvironmentUnset and QEnvironmentReset packets.
6674 (send_environment_packet): New function.
6675 (extended_remote_environment_support): Likewise.
6676 (extended_remote_create_inferior): Call
6677 extended_remote_environment_support.
6678 (_initialize_remote): Add QEnvironmentHexEncoded,
6679 QEnvironmentUnset and QEnvironmentReset packet configs.
6680 * unittests/environ-selftests.c (gdb_selftest_env_var):
6681 New variable.
6682 (test_vector_initialization): New function.
6683 (test_init_from_host_environ): Likewise.
6684 (test_reinit_from_host_environ): Likewise.
6685 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
6686 Likewise.
6687 (test_unset_set_empty_vector): Likewise.
6688 (test_vector_clear): Likewise.
6689 (test_std_move): Likewise.
6690 (test_move_constructor):
6691 (test_self_move): Likewise.
6692 (test_set_unset_reset): Likewise.
6693 (run_tests): Rewrite in terms of the functions above.
6694
654670a4
WP
66952017-08-31 Weimin Pan <weimin.pan@oracle.com>
6696
6697 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
6698 (adi_available): Use a temp variable of type CORE_ADDR as argument
6699 3 when calling target_auxv_search.
6700 (adi_normalize_address): Use masks and xor operators to calculate
6701 normalized address.
6702 (adi_read_versions, adi_write_versions, adi_print_versions)
6703 (do_examine, do_assign): Use paddress.
6704
7755ddb7
JB
67052017-08-29 John Baldwin <jhb@FreeBSD.org>
6706
6707 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
6708 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
6709 out of loop and add supply of FIR.
6710 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
6711 add collect of FIR.
6712
fd437cbc
SM
67132017-08-28 Simon Marchi <simon.marchi@ericsson.com>
6714
3804a343 6715 PR gdb/21827
fd437cbc
SM
6716 * cli/cli-script.c (define_command): Don't convert command name
6717 to lower case.
6718
988f6b3d
JB
67192017-08-25 Joel Brobecker <brobecker@adacore.com>
6720
6721 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
6722 Update all callers accordingly. Remove all code blocks handling
6723 the case where DISPP is not NULL.
6724
663c44ac
JK
67252017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6726
6727 PR symtab/22003
6728 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
6729 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6730 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
6731
f1902523
JK
67322017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6733
6734 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
6735 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
6736 (read_comp_units_from_section): New parameter abbrev_section, use
6737 read_and_check_comp_unit_head, allocate signatured_type if needed.
6738 (create_all_comp_units): Update read_comp_units_from_section caller.
6739
87215ad1
SDJ
67402017-08-23 Pedro Alves <palves@redhat.com>
6741
6742 PR remote/21852
6743 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
6744 to null_ptid and switch to thread without reading the registers
6745 after adding the inferior.
6746
6e41ddec
JK
67472017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6748
6749 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
6750 compile-gcc.
6751 * compile/compile.c (compile_gcc, show_compile_gcc): New.
6752 (compile_to_object): Implement compile_gcc.
6753 (_initialize_compile): Install "set compile-gcc". Initialize
6754 compile_gcc.
6755
e68c32d5
JK
67562017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6757
6758 * compile/compile.c (compile_to_object): Conditionally call
6759 set_verbose. Conditionally call compile or compile_v0.
6760
58afddc6
WP
67612017-08-07 Weimin Pan <weimin.pan@oracle.com>
6762
6763 * sparc64-tdep.h: (adi_normalize_address): New export.
6764 * sparc-nat.h: (open_adi_tag_fd): New export.
6765 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
6766 * sparc64-linux-tdep.c:
6767 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
6768 (sparc64_linux_handle_segmentation_fault): New function.
6769 (sparc64_linux_init_abi): Register
6770 sparc64_linux_handle_segmentation_fault
6771 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
6772 (sparc64_addr_bits_remove): New function.
6773 (sparc64_init_abi): Register sparc64_addr_bits_remove.
6774 (MAX_PROC_NAME_SIZE): New macro.
6775 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
6776 (sparc64adilist): New variable.
6777 (adi_proc_list): New variable.
6778 (find_adi_info): New function.
6779 (add_adi_info): New function.
6780 (get_adi_info_proc): New function.
6781 (get_adi_info): New function.
6782 (info_adi_command): New function.
6783 (read_maps_entry): New function.
6784 (adi_available): New function.
6785 (adi_normalize_address): New function.
6786 (adi_align_address): New function.
6787 (adi_convert_byte_count): New function.
6788 (adi_tag_fd): New function.
6789 (adi_is_addr_mapped): New function.
6790 (adi_read_versions): New function.
6791 (adi_write_versions): New function.
6792 (adi_print_versions): New function.
6793 (do_examine): New function.
6794 (do_assign): New function.
6795 (adi_examine_command): New function.
6796 (adi_assign_command): New function.
6797 (_initialize_sparc64_adi_tdep): New function.
6798
11db9430
SM
67992017-08-22 Simon Marchi <simon.marchi@ericsson.com>
6800
6801 * breakpoint.c (breakpoints_info): Rename to ...
6802 (info_breakpoints_command): ... this.
6803 (watchpoints_info): Rename to ...
6804 (info_watchpoints_command): ... this.
6805 (tracepoints_info): Rename to ...
6806 (info_tracepoints_command): ... this.
6807 (_initialize_breakpoint): Adjust.
6808 * dcache.c (dcache_info): Rename to ...
6809 (info_display_command): ... this.
6810 (_initialize_dcache): Adjust.
6811 * frame.h (args_info): Rename to ...
6812 (info_args_command): ... this.
6813 (locals_info): Rename to ...
6814 (info_locals_command): ... this.
6815 * infcmd.c (nofp_registers_info): Rename to ...
6816 (info_registers_command): ... this.
6817 (float_info): Rename to ...
6818 (info_float_command): ... this.
6819 (program_info): Rename to ...
6820 (info_program_command): ... this.
6821 (all_registers_info): Rename to ...
6822 (info_all_registers_command): ... this.
6823 (vector_info): Rename to ...
6824 (info_vector_command): ... this.
6825 (float_info): Rename to ...
6826 (info_float_command): ... this.
6827 (_initialize_infcmd): Adjust.
6828 * inferior.h (term_info): Rename to ...
6829 (info_terminal_command): ... this.
6830 * inflow.c (term_info): Rename to ...
6831 (info_terminal_command): ... this.
6832 (_initialize_inflow): Adjust.
6833 * infrun.c (signals_info): Rename to ...
6834 (info_signals_command): ... this.
6835 (_initialize_infrun): Adjust.
6836 * objc-lang.c (classes_info): Rename to ...
6837 (info_classes_command): ... this.
6838 (selectors_info): Rename to ...
6839 (info_selectors_command): ... this.
6840 (_initialize_objc_language): Adjust.
6841 * printcmd.c (sym_info): Rename to ...
6842 (info_symbol_command): ... this.
6843 (address_info): Rename to ...
6844 (info_address_command): ... this.
6845 (display_info): Rename to ...
6846 (info_display_command): ... this.
6847 (_initialize_printcmd): Adjust.
6848 * reverse.c (bookmarks_info): Rename to ...
6849 (info_breakpoints_command): ... this.
6850 (_initialize_reverse): Adjust.
6851 * ser-go32.c (dos_info): Rename to ...
6852 (info_serial_command): ... this.
6853 (_initialize_ser_dos): Adjust.
6854 * skip.c (skip_info): Rename to ...
6855 (info_skip_command): ... this.
6856 (_initialize_step_skip): Adjust.
6857 * source.c (line_info): Rename to ...
6858 (info_line_command): ... this.
6859 (source_info): Rename to ...
6860 (info_source_command)
6861 * stack.c (frame_info): Rename to ...
6862 (info_frame_command): ... this.
6863 (locals_info): Rename to ...
6864 (info_locals_command): ... this.
6865 (args_info): Rename to ...
6866 (info_args_command): ... this.
6867 (_initialize_stack): Adjust.
6868 * symtab.c (sources_info): Rename to ...
6869 (info_sources_command): ... this.
6870 (variables_info): Rename to ...
6871 (info_variables_command): ... this.
6872 (functions_info): Rename to ...
6873 (info_functions_command): ... this.
6874 (types_info): Rename to ...
6875 (info_types_command): ... this.
6876 (_initialize_symtab): Adjust.
6877 * target.c (target_info): Rename to ...
6878 (info_target_command): ... this.
6879 (initialize_targets): Adjust.
6880 * tracepoint.c (tvariables_info): Rename to ...
6881 (info_tvariables_command): ... this.
6882 (scope_info): Rename to ...
6883 (info_scope_command): ... this.
6884 (trace_dump_actions): Adjust.
6885 (_initialize_tracepoint): Adjust.
6886
b270e6f9
TT
68872017-08-22 Tom Tromey <tom@tromey.com>
6888
6889 * breakpoint.h (install_breakpoint): Update.
6890 * breakpoint.c (add_solib_catchpoint): Update.
6891 (install_breakpoint): Change argument to a std::unique_ptr.
6892 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
6893 (create_breakpoint_sal, create_breakpoint): Update.
6894 (watch_command_1, catch_exec_command_1)
6895 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
6896 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
6897 Return the breakpoint.
6898 (set_raw_breakpoint_without_location, set_raw_breakpoint)
6899 (new_single_step_breakpoint): Update.
6900 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
6901 std::unique_ptr.
6902 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6903 std::unique_ptr.
6904 * break-catch-sig.c (create_signal_catchpoint): Use
6905 std::unique_ptr.
6906 * ada-lang.c (create_ada_exception_catchpoint): Use
6907 std::unique_ptr.
6908
36bd8eaa
TT
69092017-08-22 Tom Tromey <tom@tromey.com>
6910
6911 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
6912
56f37645
TT
69132017-08-22 Tom Tromey <tom@tromey.com>
6914
6915 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
6916 (lookup_partial_symbol): Update.
6917
0b581c69
TT
69182017-08-22 Tom Tromey <tom@tromey.com>
6919
6920 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
6921 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
6922 (find_and_open_source, symtab_to_fullname): Update.
6923 * psymtab.c (psymtab_to_fullname): Update.
6924
14278e1f
TT
69252017-08-22 Tom Tromey <tom@tromey.com>
6926
6927 * exec.c (exec_file_attach): Update.
6928 * linux-thread-db.c (try_thread_db_load): Update.
6929 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
6930 * utils.c (gdb_realpath): Change return type.
6931 (gdb_realpath_keepfile): Update.
6932 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
6933 (_initialize_utils): Register the new self test.
6934 * source.c (openp): Update.
6935 (find_and_open_source): Update.
6936 * nto-tdep.c (nto_find_and_open_solib): Update.
6937 * main.c (set_gdb_data_directory): Update.
6938 (captured_main_1): Update.
6939 * dwarf2read.c (dwarf2_get_dwz_file): Update
6940 (dw2_map_symbol_filenames): Update.
6941 * auto-load.c (auto_load_safe_path_vec_update): Update.
6942 (filename_is_in_auto_load_safe_path_vec): Change type of
6943 "filename_realp".
6944 (auto_load_objfile_script): Update.
6945 (file_is_auto_load_safe): Update. Use std::string.
6946 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
6947
4971c9a7
TT
69482017-08-22 Tom Tromey <tom@tromey.com>
6949
6950 * utils.c (gdb_realpath_keepfile): Return a
6951 gdb::unique_xmalloc_ptr.
6952 * exec.c (exec_file_attach): Update.
6953 * utils.h (gdb_realpath_keepfile): Return a
6954 gdb::unique_xmalloc_ptr.
6955
e3e41d58
TT
69562017-08-22 Tom Tromey <tom@tromey.com>
6957
6958 * compile/compile.c (compile_file_command): Use
6959 gdb::unique_xmalloc_ptr, std::string.
6960 * utils.c (gdb_abspath): Change return type.
6961 * source.c (openp): Update.
6962 * objfiles.c (allocate_objfile): Update.
6963 * main.c (set_gdb_data_directory): Update.
6964 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
6965
0d999a6e
ZZ
69662017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
6967
6968 * cli-cmds.c (list_commands): List actual code around more than
6969 one location.
6970
329d5e7e
JB
69712017-08-21 John Baldwin <jhb@FreeBSD.org>
6972
6973 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
6974
bf223d3e
PA
69752017-08-21 Pedro Alves <palves@redhat.com>
6976
6977 PR gdb/19487
6978 * c-exp.y (variable production): Handle function aliases.
6979 * minsyms.c (msymbol_is_text): New function.
6980 * minsyms.h (msymbol_is_text): Declare.
6981 * symtab.c (find_function_alias_target): New function.
6982 * symtab.h (find_function_alias_target): Declare.
6983
c973d0aa
PA
69842017-08-21 Pedro Alves <palves@redhat.com>
6985
6986 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
6987 typedefs.
6988 * typeprint.c (whatis_exp): If handling "whatis", and expression
6989 is OP_TYPE, strip one typedef level. Otherwise don't strip
6990 typedefs here.
6991 * valops.c (value_cast): Save "to" type before resolving
6992 stubs/typedefs. Use that type as resulting value's type.
6993
2989a365
TT
69942017-08-18 Tom Tromey <tom@tromey.com>
6995 Pedro Alves <palves@redhat.com>
6996
6997 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
6998 * sol-thread.c (sol_thread_resume, sol_thread_wait)
6999 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
7000 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
7001 * proc-service.c (ps_xfer_memory): Use scoped_restore.
7002 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
7003 (linux_get_siginfo_data): Add "thread" argument. Use
7004 scoped_restore.
7005 * linux-nat.c (linux_child_follow_fork)
7006 (check_stopped_by_watchpoint): Use scoped_restore.
7007 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
7008 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
7009 (restore_inferior_ptid, save_inferior_ptid): Remove.
7010 * btrace.c (btrace_fetch): Use scoped_restore.
7011 * bsd-uthread.c (bsd_uthread_fetch_registers)
7012 (bsd_uthread_store_registers): Use scoped_restore.
7013 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
7014 scoped_restore.
7015 * aix-thread.c (aix_thread_resume, aix_thread_wait)
7016 (aix_thread_xfer_partial): Use scoped_restore.
7017 * inferior.h (save_inferior_ptid): Remove.
7018
e60eb288
YQ
70192017-08-18 Yao Qi <yao.qi@linaro.org>
7020
7021 PR tdep/21818
7022 * arm-tdep.c (gdb_print_insn_arm): Mark
7023 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
7024
6d580b63
YQ
70252017-08-18 Yao Qi <yao.qi@linaro.org>
7026
7027 * NEWS: Mention GDBserver's new option "--selftest".
7028 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
7029 * selftest.c: Move it to common/selftest.c.
7030 * selftest.h: Move it to common/selftest.h.
7031 * selftest-arch.c (reset): New function.
7032 (tests_with_arch): Call reset.
7033
86dcbf50
YQ
70342017-08-18 Yao Qi <yao.qi@linaro.org>
7035
7036 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
7037 instead of exception_fprintf and printf_filtered.
7038
7649770c
YQ
70392017-08-18 Yao Qi <yao.qi@linaro.org>
7040
7041 * selftest.c (register_self_test): Rename it to
7042 selftests::register_test.
7043 (run_self_tests): selftest::run_tests.
7044 * selftest.h: Update declarations.
7045 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
7046 selftests::register_test_foreach_arch.
7047 * selftest-arch.h: Update declaration.
7048 * aarch64-tdep.c: Update.
7049 * arm-tdep.c: Likewise.
7050 * disasm-selftests.c: Likewise.
7051 * dwarf2loc.c: Likewise.
7052 * dwarf2-frame.c: Likewise.
7053 * findvar.c: Likewise.
7054 * gdbarch-selftests.c: Likewise.
7055 * maint.c (maintenance_selftest): Likewise.
7056 * regcache.c: Likewise.
7057 * rust-exp.y: Likewise.
7058 * selftest-arch.c: Likewise.
7059 * unittests/environ-selftests.c: Likewise.
7060 * unittests/function-view-selftests.c: Likewise.
7061 * unittests/offset-type-selftests.c: Likewise.
7062 * unittests/optional-selftests.c: Likewise.
7063 * unittests/scoped_restore-selftests.c: Likewise.
7064 * utils-selftests.c: Likewise.
7065
b0cba12e
PA
70662017-08-17 Pedro Alves <palves@redhat.com>
7067
7068 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
7069 local.
7070
4c8aa72d
PA
70712017-08-17 Pedro Alves <palves@redhat.com>
7072
7073 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
7074 field.
7075 (reset_die_in_process): Delete, replaced by ...
7076 (process_die_scope): ... this new class. Make it responsible for
7077 freeing cu->line_header too.
7078 (process_die): Use process_die_scope.
7079 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
7080 cu->line_header_die_owner. Don't release the line header if it's
7081 owned by the CU.
7082 (setup_type_unit_groups): Make the CU/DIE own the line header.
7083 Don't release the line header here.
7084
ba713918
AL
70852017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
7086
7087 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
7088
44d0fb3a
RK
70892017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
7090
7091 * NEWS: Mention new shortcuts for nexti and stepi in TUI
7092 Single-Key mode
7093
a5afdb16
RK
70942017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
7095
7096 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
7097 mode command list.
7098
47613aeb
SH
70992017-08-15 Stafford Horne <shorne@gmail.com>
7100
7101 * MAINTAINERS (Write After Approval): Add Stafford Horne.
7102
9c3cc999
SH
71032017-08-15 Stafford Horne <shorne@gmail.com>
7104
7105 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
7106
206726fb
SDJ
71072017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
7108
7109 PR gdb/21954
7110 * infcmd.c (unset_environment_command): Use the 'clear' method on
7111 the environment instead of resetting it.
7112
0335ac6d
JB
71132017-08-15 John Baldwin <jhb@FreeBSD.org>
7114
7115 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
7116 platforms.
7117
d3abe1c8
TT
71182017-08-14 Tom Tromey <tom@tromey.com>
7119
7120 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
7121 (print_binary_chars): Likewise.
7122 (BITS_IN_BYTES): Remove.
7123
d6382fff
TT
71242017-08-14 Tom Tromey <tom@tromey.com>
7125
7126 PR gdb/21675
7127 * valprint.c (LOW_ZERO): Change value to 034.
7128 (print_octal_chars): Add static_asserts for octal constants.
7129 * printcmd.c (print_scalar_formatted): Add 'd' case.
7130
f978cb06
TT
71312017-08-11 Tom Tromey <tom@tromey.com>
7132
7133 * symfile.c (add_symbol_file_command): Use std::vector.
7134
2f5404b3
TT
71352017-08-14 Tom Tromey <tom@tromey.com>
7136
7137 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
7138 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
7139 std::move.
7140 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
7141
de7985c3
PA
71422017-08-11 Pedro Alves <palves@redhat.com>
7143
7144 * infrun.c (process_event_stop_test): Adjust
7145 function_name_is_marked_for_skip call.
7146 * skip.c: Include <list>.
7147 (skiplist_entry): Make it a class with private fields, and
7148 getters/setters.
7149 (skiplist_entry_chain): Delete.
7150 (skiplist_entries): New.
7151 (skiplist_entry_count): Delete.
7152 (highest_skiplist_entry_num): New.
7153 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
7154 (add_skiplist_entry): Delete.
7155 (skiplist_entry::skiplist_entry): New.
7156 (skiplist_entry::add_entry): New.
7157 (skip_file_command, skip_function): Adjust.
7158 (compile_skip_regexp): Delete.
7159 (skip_command): Don't compile regexp here. Adjust to use
7160 skiplist_entry::add_entry.
7161 (skip_info): Adjust to use range-for and getters.
7162 (skip_enable_command, skip_disable_command): Adjust to use
7163 range-for and setters.
7164 (skip_delete_command): Adjust to use std::list.
7165 (add_skiplist_entry): Delete.
7166 (skip_file_p): Delete, refactored as ...
7167 (skiplist_entry::do_skip_file_p): ... this new method.
7168 (skip_gfile_p): Delete, refactored as ...
7169 (skiplist_entry::do_gskip_file_p): ... this new method.
7170 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
7171 (skiplist_entry::skip_function_p): ... this new method.
7172 (function_name_is_marked_for_skip): Now returns bool, and takes
7173 the function sal by const reference. Adjust to use range-for and
7174 skiplist_entry methods.
7175 (_initialize_step_skip): Remove references to
7176 skiplist_entry_chain, skiplist_entry_count.
7177 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
7178 takes the function sal by const reference.
7179
be7d3cd5
YQ
71802017-08-11 Yao Qi <yao.qi@linaro.org>
7181
7182 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
7183 (dwarf2_frame_cache): Remove reset_cache_cleanup.
7184 (dwarf2_frame_cache):
7185 * frame-unwind.c (frame_unwind_try_unwinder): Catch
7186 RETURN_MASK_ALL and set *this_case to NULL.
7187 * frame-unwind.h: Update comments.
7188
1c90d9f0
YQ
71892017-08-11 Yao Qi <yao.qi@linaro.org>
7190
7191 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
7192 (dwarf2_frame_state_copy_regs): Remove.
7193 (dwarf2_frame_state_free_regs): Remove.
7194 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
7195 (dwarf2_restore_rule): Call method .alloc_regs instead of
7196 dwarf2_frame_state_alloc_regs.
7197 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
7198 constructor. Call std::move.
7199 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
7200 (dwarf2_frame_cache): Likewise.
7201
7202 [GDB_SELF_TEST]: Include selftest.h and
7203 selftest-arch.h.
7204 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
7205 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
7206 execute_cfa_program_test.
7207
7208 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
7209 copy ctor, assignment operator, move assignment.
7210 <alloc_regs>: New method.
7211 <swap>: New method.
7212 (struct dwarf2_frame_state): Delete dtor.
7213 (dwarf2_frame_state_alloc_regs): Remove declaration.
7214 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
7215 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
7216
afe37d6b
YQ
72172017-08-11 Yao Qi <yao.qi@linaro.org>
7218
7219 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
7220 (dwarf2_frame_state::dwarf2_frame_state): New.
7221 (dwarf2_frame_state::~dwarf2_frame_state): New.
7222 (dwarf2_fetch_cfa_info): Update.
7223 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
7224 rather than a pointer. Update code.
7225 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
7226 dtor.
7227 <data_align, code_align, retaddr_column>: Change them to const.
7228 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
7229 to bool.
7230
b348037f
YQ
72312017-08-11 Yao Qi <yao.qi@linaro.org>
7232
7233 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
7234 <loc.exp>: New field.
7235 * dwarf2-frame.c (execute_cfa_program): Update.
7236 (dwarf2_frame_prev_register): Update.
7237
e7c9de26
PA
72382017-08-10 Pedro Alves <palves@redhat.com>
7239
7240 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
7241
e8c6b620
JB
72422017-08-09 John Baldwin <jhb@FreeBSD.org>
7243
7244 * fbsd-nat.c (struct fbsd_fork_info): Remove.
7245 (fbsd_pending_children): Use std::list.
7246 (fbsd_remember_child): Likewise.
7247 (fbsd_is_child_pending): Likewise.
7248 (fbsd_pending_vfork_done): Use std::forward_list.
7249 (fbsd_add_vfork_done): Likewise.
7250 (fbsd_is_vfork_done_pending): Likewise.
7251 (fbsd_next_vfork_done): Likewise.
7252
e4a26669
JB
72532017-08-09 John Baldwin <jhb@FreeBSD.org>
7254
7255 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
7256 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
7257 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
7258 for `mapfilename'.
7259 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 7260 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 7261
142311d3
JB
72622017-08-09 John Baldwin <jhb@FreeBSD.org>
7263
7264 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
7265 "filestuff.h".
7266 (fbsd_find_memory_regions): Fix `mapfile' initialization.
7267
42fa2e0e
TT
72682017-08-09 Tom Tromey <tom@tromey.com>
7269
7270 * skip.c (skiplist_entry): New constructor.
7271 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
7272 (skiplist_entry::file_is_glob): Now bool.
7273 (skiplist_entry::file, skiplist_entry::function): Now
7274 std::string.
7275 (make_skip_entry): Return a unique_ptr. Use new.
7276 (free_skiplist_entry, free_skiplist_entry_cleanup)
7277 (make_free_skiplist_entry_cleanup): Remove.
7278 (skip_command, skip_disable_command, add_skiplist_entry)
7279 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
7280 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
7281 (function_name_is_marked_for_skip): Update.
7282 (skip_delete_command): Update. Use delete.
7283
cd3af38d
JW
72842017-08-09 Jiong Wang <jiong.wang@arm.com>
7285
7286 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
7287 (aarch64_linux_core_read_description): New function.
7288 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
7289
29592bde
PA
72902017-08-09 Pedro Alves <palves@redhat.com>
7291
7292 * cp-name-parser.y (cp_comp_to_string): Return a
7293 gdb::unique_xmalloc_ptr<char>.
7294 * cp-support.c (replace_typedefs_qualified_name)
7295 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
7296 (cp_canonicalize_string_full): Use op= instead of explicit
7297 convertion.
7298 (cp_class_name_from_physname, method_name_from_physname)
7299 (cp_func_name, cp_remove_params): Adjust to use
7300 gdb::unique_xmalloc_ptr<char>.
7301 * cp-support.h (cp_comp_to_string): Return a
7302 gdb::unique_xmalloc_ptr<char>.
7303 * python/py-type.c (typy_lookup_type): Adjust to use
7304 gdb::unique_xmalloc_ptr<char>.
7305
b3340438
L
73062017-08-09 H.J. Lu <hongjiu.lu@intel.com>
7307
7308 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
7309
e88e8651
YQ
73102017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
7311 Yao Qi <yao.qi@linaro.org>
7312
7313 * cp-support.c (cp_canonicalize_string_full): Use
7314 gdb::unique_xmalloc_ptr<char>.
7315 (cp_canonicalize_string): Likewise.
7316
f5a29eb0
YQ
73172017-08-09 Yao Qi <yao.qi@linaro.org>
7318
7319 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
7320 * regformats/i386/amd64-avx-avx512.dat: Remove.
7321 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
7322 * regformats/i386/amd64-avx-mpx.dat:Remove.
7323 * regformats/i386/amd64-avx.dat: Remove.
7324 * regformats/i386/amd64-mpx.dat: Remove.
7325 * regformats/i386/i386-avx-avx512.dat: Remove.
7326 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
7327 * regformats/i386/i386-avx-mpx.dat: Remove.
7328 * regformats/i386/i386-mmx.dat: Remove.
7329 * regformats/i386/i386-mpx.dat: Remove.
7330
57757c2f
YQ
73312017-08-09 Yao Qi <yao.qi@linaro.org>
7332
7333 * amd64-tdep.h (tdesc_x32): Remove the declaration.
7334 * amd64-tdep.c: Don't include features/i386/x32*.c.
7335 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
7336 functions.
7337 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
7338 and i386/x32-avx-avx512.
7339 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
7340 and i386/x32.xml.
7341 * features/i386/x32-avx-avx512.c: Removed.
7342 * features/i386/x32-avx-avx512.xml: Removed.
7343 * features/i386/x32-avx.c: Removed.
7344 * features/i386/x32-avx.xml: Removed.
7345 * features/i386/x32.c: Removed.
7346 * features/i386/x32.xml: Removed.
7347 * regformats/i386/x32-avx-avx512.dat: Removed.
7348 * regformats/i386/x32-avx.dat: Removed.
7349 * regformats/i386/x32.dat: Removed.
7350
ba7b109b
MR
73512017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7352
7353 PR breakpoints/21886
7354 * mem-break.c (default_memory_insert_breakpoint): Use
7355 `->placed_address' rather than `->reqstd_address' for the
7356 breakpoint location.
7357
e347efc3
MR
73582017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7359
7360 * arch-utils.c (default_print_insn): Remove arch/mach/endian
7361 assertions.
7362
0dba2a6c
MR
73632017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7364
7365 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
7366 a union of `tdep_info', `tdesc_data' and `id'.
7367 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
7368 rather than `info.tdep_info'.
7369 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
7370 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7371 * i386-tdep.c (i386_gdbarch_init): Likewise.
7372 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
7373 * mips-tdep.c (mips_gdbarch_init): Likewise.
7374 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7375 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7376 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
7377 `info.tdep_info'.
7378 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
7379 `info.tdep_info'.
7380 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7381 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
7382 `info.tdep_info'.
7383 * spu-tdep.c (spu_gdbarch_init): Likewise.
7384 * gdbarch.h: Regenerate.
7385
16eb6b2d
LS
73862017-08-07 Leszek Swirski <leszeks@google.com>
7387
7b005726 7388 PR symtab/20899
16eb6b2d
LS
7389 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
7390
74cbb09e
SM
73912017-08-07 Simon Marchi <simon.marchi@ericsson.com>
7392
7393 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
7394 (gdbsim_open): Rename gdb_argv args object to argv.
7395
ee0c3293
TT
73962017-08-05 Tom Tromey <tom@tromey.com>
7397
7398 * compile/compile-object-load.c (compile_object_load): Use
7399 gdb::unique_xmalloc_ptr.
7400 * cli/cli-dump.c (scan_filename): Rename from
7401 scan_filename_with_cleanup. Change return type.
7402 (scan_expression): Rename from scan_expression_with_cleanup.
7403 Change return type.
7404 (dump_memory_to_file, dump_value_to_file, restore_command):
7405 Use gdb::unique_xmalloc_ptr. Update.
7406 * cli/cli-cmds.c (find_and_open_script): Use
7407 gdb::unique_xmalloc_ptr.
7408 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
7409 * symmisc.c (maintenance_print_symbols)
7410 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
7411 * symfile.c (symfile_bfd_open, generic_load)
7412 (add_symbol_file_command, remove_symbol_file_command): Use
7413 gdb::unique_xmalloc_ptr.
7414 * source.c (openp): Use gdb::unique_xmalloc_ptr.
7415 * psymtab.c (maintenance_print_psymbols): Use
7416 gdb::unique_xmalloc_ptr.
7417 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
7418 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
7419 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
7420 (reload_shared_libraries_1): Likewise.
7421
3232fabd
TT
74222017-08-05 Tom Tromey <tom@tromey.com>
7423
7424 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
7425 (rust_op_vector, rust_set_vector): New typedefs.
7426 (current_parser): New global.
7427 (work_obstack): Change to pointer type. Update all users.
7428 (rust_ast, pstate): Remove globals.
7429 (struct rust_parser): New.
7430 (%union) <params, field_inits>: Change type.
7431 (start, tuple_expr, unit_expr, struct_expr_list, literal)
7432 (field_expr, expr_list, maybe_expr_list, type_list): Update.
7433 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
7434 (convert_params_to_types, convert_params_to_expression): Change
7435 type of "params".
7436 (ast_string): Change type of "fields".
7437 (rust_parse): Make a rust_parser. Remove cleanups.
7438 (rust_lex_tests): Make and install an auto_obstack.
7439
f02fd774
YQ
74402017-08-04 Yao Qi <yao.qi@linaro.org>
7441
7442 * configure.srv (ipa_x32_linux_regobj): New.
7443 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
7444 instead of X86_TDESC_AVX512.
7445 (initialize_low_tracepoint): Call
7446 init_registers_x32_avx_avx512_linux.
7447
91975afd
YQ
74482017-08-04 Yao Qi <yao.qi@linaro.org>
7449
7450 * utils.h (gdb_argv): Add namespace std for nullptr_t.
7451
2331fa3a
RK
74522017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
7453
7454 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
7455
744e4fe1
TT
74562017-08-03 Tom Tromey <tom@tromey.com>
7457
7458 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
7459 Remove.
7460 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
7461
1c034b67
TT
74622017-08-03 Tom Tromey <tom@tromey.com>
7463
7464 * python/py-param.c (compute_enum_values): Use gdb_argv.
7465
773a1edc
TT
74662017-08-03 Tom Tromey <tom@tromey.com>
7467
7468 * utils.h (struct gdb_argv_deleter): New.
7469 (gdb_argv): New class.
7470 * utils.c (gdb_argv::reset): New method.
7471 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
7472 * tracefile.c (tsave_command): Use gdb_argv.
7473 * top.c (new_ui_command): Use gdb_argv.
7474 * symmisc.c (maintenance_print_symbols)
7475 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
7476 * symfile.c (symbol_file_command, generic_load)
7477 (remove_symbol_file_command): Use gdb_argv.
7478 * stack.c (backtrace_command): Use gdb_argv.
7479 * source.c (add_path, show_substitute_path_command)
7480 (unset_substitute_path_command, set_substitute_path_command):
7481 Use gdb_argv.
7482 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
7483 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
7484 * remote.c (extended_remote_run, remote_put_command)
7485 (remote_get_command, remote_delete_command): Use gdb_argv.
7486 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
7487 (gdbsim_open): Use gdb_argv.
7488 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
7489 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
7490 * procfs.c (procfs_info_proc): Use gdb_argv.
7491 * interps.c (interpreter_exec_cmd): Use gdb_argv.
7492 * infrun.c (handle_command): Use gdb_argv.
7493 * inferior.c (add_inferior_command, clone_inferior_command):
7494 Use gdb_argv.
7495 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
7496 * exec.c (exec_file_command): Use gdb_argv.
7497 * cli/cli-cmds.c (alias_command): Use gdb_argv.
7498 * compile/compile.c (build_argc_argv): Use gdb_argv.
7499
0d50bde3
TT
75002017-08-03 Tom Tromey <tom@tromey.com>
7501
7502 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
7503
7f968c89
TT
75042017-08-03 Tom Tromey <tom@tromey.com>
7505
7506 * python/python.c (compute_python_string): Return std::string.
7507 (gdbpy_eval_from_control_command): Update.
7508 (do_start_initialization): Use std::string.
7509 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
7510 xstrprintf.
7511 * python/py-breakpoint.c (local_setattro): Use string_printf, not
7512 xstrprintf.
7513
3c9ebddd
TT
75142017-08-03 Tom Tromey <tom@tromey.com>
7515
7516 * top.h (do_restore_instream_cleanup): Remove.
7517 * top.c (do_restore_instream_cleanup): Remove.
7518 (read_command_file): Use scoped_restore.
7519 * cli/cli-script.c (execute_user_command): Use scoped_restore.
7520
b51b225e
TT
75212017-08-03 Tom Tromey <tom@tromey.com>
7522
7523 * cli/cli-script.c (execute_user_command)
7524 (execute_control_command): Use scoped_restore.
7525
ac991630
TT
75262017-08-03 Tom Tromey <tom@tromey.com>
7527
7528 * cli/cli-script.c (do_restore_user_call_depth): Remove.
7529 (execute_user_command): Remove user_call_depth; use
7530 user_args_stack's size instead.
7531
898e0c8e
TT
75322017-08-03 Tom Tromey <tom@tromey.com>
7533
7534 * top.h (in_user_command): Remove.
7535 * top.c (in_user_command): Remove.
7536 * cli/cli-script.c (do_restore_user_call_depth)
7537 (execute_user_command): Update.
7538
26fcd5d7
TT
75392017-08-03 Tom Tromey <tom@tromey.com>
7540
7541 * valops.c (search_struct_method): Use gdb::byte_vector.
7542 * valarith.c (value_concat): Use std::vector.
7543 * target.c (memory_xfer_partial): Use gdb::byte_vector.
7544 (simple_search_memory): Likewise.
7545 * printcmd.c (find_string_backward): Use gdb::byte_vector.
7546 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
7547 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
7548 * elfread.c (elf_rel_plt_read): Use std::string.
7549 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
7550 * cli/cli-dump.c (restore_section_callback): Use
7551 gdb::byte_vector.
7552
7c218e6c
TT
75532017-08-03 Tom Tromey <tom@tromey.com>
7554
7555 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
7556
31b68d4a
TT
75572017-08-03 Tom Tromey <tom@tromey.com>
7558
7559 * tui/tui-regs.c (tui_restore_gdbout): Remove.
7560 (tui_register_format): Use scoped_restore.
7561
2ec845e7
TT
75622017-08-03 Tom Tromey <tom@tromey.com>
7563
7564 * reverse.c (exec_direction_default): Remove.
7565 (exec_reverse_once): Use scoped_restore.
7566 * remote.c (restore_remote_timeout): Remove.
7567 (remote_flash_erase, remote_flash_write, remote_flash_done)
7568 (readchar, remote_serial_write): Use scoped_restore.
7569 * cli/cli-script.c (struct source_cleanup_lines_args)
7570 (source_cleanup_lines): Remove.
7571 (script_from_file): Use scoped_restore.
7572 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
7573 (source_command): Use scoped_restore.
7574
b3bc8453
TT
75752017-08-03 Tom Tromey <tom@tromey.com>
7576
7577 * utils.h (make_cleanup_free_so): Remove.
7578 * utils.c (do_free_so, make_cleanup_free_so): Remove.
7579 * solist.h (struct so_deleter): New.
7580 (so_list_up): New typedef.
7581 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
7582
e3ad2841
TT
75832017-08-03 Tom Tromey <tom@tromey.com>
7584
7585 * utils.h (make_cleanup_restore_current_language): Remove.
7586 * utils.c (do_restore_current_language)
7587 (make_cleanup_restore_current_language): Remove.
7588 * parse.c (parse_exp_in_context_1)
7589 (parse_expression_with_language): Use
7590 scoped_restore_current_language.
7591 * mi/mi-main.c (mi_cmd_execute): Use
7592 scoped_restore_current_language.
7593 * language.h (scoped_restore_current_language): New class.
7594
b80cf838
TT
75952017-08-03 Tom Tromey <tom@tromey.com>
7596
7597 * compile/compile.c (cleanup_unlink_file): Remove.
7598 (compile_to_object): Use gdb::unlinker.
7599 (eval_compile_command): Likewise.
7600
fad0444a
TT
76012017-08-03 Tom Tromey <tom@tromey.com>
7602
7603 * utils.h (make_cleanup_fclose): Remove.
7604 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
7605
6e7bc05c
TT
76062017-08-03 Tom Tromey <tom@tromey.com>
7607
7608 * top.c (open_terminal_stream): Return gdb_file_up.
7609 (new_ui_command): Update.
7610
4a45905b
TT
76112017-08-03 Tom Tromey <tom@tromey.com>
7612
7613 * source.c (print_source_lines_base, forward_search_command)
7614 (reverse_search_command): Use gdb_file_up.
7615
7cd06d6e
TT
76162017-08-03 Tom Tromey <tom@tromey.com>
7617
7618 * fbsd-nat.c (fbsd_find_memory_regions): Update.
7619
ed166945
TT
76202017-08-03 Tom Tromey <tom@tromey.com>
7621
7622 * cli/cli-cmds.c (find_and_open_script): Change return type.
7623 Remove "streamp" and "full_path" parameters.
7624 (source_script_with_search): Update.
7625 * auto-load.c (source_script_file): Update.
7626 * cli/cli-cmds.h (find_and_open_script): Change type.
7627 (open_script): New struct.
7628
d419f42d
TT
76292017-08-03 Tom Tromey <tom@tromey.com>
7630
7631 * xml-support.c (xml_fetch_content_from_file): Update.
7632 * ui-file.c (stdio_file::open): Update.
7633 * tracefile-tfile.c (tfile_start): Update.
7634 * remote.c (remote_file_put, remote_file_get): Update.
7635 * nat/linux-procfs.c (linux_proc_get_int)
7636 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
7637 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
7638 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
7639 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7640 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
7641 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
7642 * linux-nat.c (linux_proc_pending_signals): Update.
7643 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
7644 (file_closer): Remove.
7645 * compile/compile.c (compile_to_object): Update.
7646 * common/filestuff.h (struct gdb_file_deleter): New.
7647 (gdb_file_up): New typedef.
7648 (gdb_fopen_cloexec): Change return type.
7649 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
7650 * cli/cli-dump.c (fopen_with_cleanup): Remove.
7651 (dump_binary_file, restore_binary_file): Update.
7652 * auto-load.c (auto_load_objfile_script_1): Update.
7653
4a2b031d
TT
76542017-08-03 Tom Tromey <tom@tromey.com>
7655
7656 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
7657 (info_static_tracepoint_markers_command): Likewise.
7658 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
7659 * skip.c (skip_info): Use ui_out_emit_table.
7660 * progspace.c (print_program_space): Use ui_out_emit_table.
7661 * osdata.c (info_osdata): Use ui_out_emit_table.
7662 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
7663 ui_out_emit_table.
7664 * linux-thread-db.c (info_auto_load_libthread_db): Use
7665 ui_out_emit_table.
7666 * inferior.c (print_inferior): Use ui_out_emit_table.
7667 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
7668 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
7669 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
7670 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
7671 * ui-out.h (class ui_out_emit_table): New.
7672
a4f320fd
MR
76732017-08-02 Maciej W. Rozycki <macro@imgtec.com>
7674
7675 * mips-tdep.c (mips_fpu_type_str): New function.
7676 (mips_dump_tdep): Call it.
7677
a2f1f308
MR
76782017-08-01 Maciej W. Rozycki <macro@imgtec.com>
7679
7680 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
7681 `->mips_fpu_type'.
7682
7e5ed83b
XR
76832017-07-31 Xavier Roirand <roirand@adacore.com>
7684
7685 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7686
4c9dc811
XR
76872017-07-27 Xavier Roirand <roirand@adacore.com>
7688
7689 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
7690
27d41eac
YQ
76912017-07-26 Yao Qi <yao.qi@linaro.org>
7692
7693 * cli/cli-cmds.c (maintenancechecklist): New variable.
7694 * gdbcmd.h (maintenancechecklist): Declare it.
7695 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
7696 Call i386_linux_read_description with different masks.
7697 * maint.c (maintenance_check_command): New function.
7698 (_initialize_maint_cmds): Call add_prefix_cmd.
7699 * target-descriptions.c (tdesc_reg): override operator != and ==.
7700 (tdesc_type): Likewise.
7701 (tdesc_feature): Likewise.
7702 (target_desc): Likewise.
7703 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
7704 (maintenance_check_xml_descriptions): New function.
7705 (_initialize_target_descriptions) Add command "xml-descriptions".
7706 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
7707
ea03d0d3
YQ
77082017-07-26 Yao Qi <yao.qi@linaro.org>
7709
7710 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
7711 Include features/i386/32bit-*.c.
7712 (i386_linux_read_description): Generate target description if it
7713 doesn't exist.
7714 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
7715 functions.
7716 * features/i386/32bit-linux.c: Re-generated.
7717 * features/i386/32bit-sse.c: Likewise.
7718 * target-descriptions.c (print_c_feature::visit): Print code to
7719 set register number if needed.
7720 (print_c_feature) <m_next_regnum>: New field.
7721
25aa13e5
YQ
77222017-07-26 Yao Qi <yao.qi@linaro.org>
7723
7724 * features/Makefile (CFILES): Rename with TDESC_CFILES.
7725 (FEATURE_XMLFILES): New.
7726 (FEATURE_CFILES): New.
7727 New rules.
7728 (clean-cfiles): Remove generated c files.
7729 * features/i386/32bit-avx.c: Generated.
7730 * features/i386/32bit-avx512.c: Generated.
7731 * features/i386/32bit-core.c: Generated.
7732 * features/i386/32bit-linux.c: Generated.
7733 * features/i386/32bit-mpx.c: Generated.
7734 * features/i386/32bit-pkeys.c: Generated.
7735 * features/i386/32bit-sse.c: Generated.
7736 * target-descriptions.c: Include algorithm.
7737 (tdesc_element_visitor): Add method visit_end.
7738 (print_c_tdesc): Implement visit_end.
7739 (print_c_tdesc:: m_filename_after_features): Move it to
7740 protected.
7741 (print_c_feature): New class.
7742 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
7743 name starts with "i386/32bit-".
7744
6eb1e6a8
YQ
77452017-07-26 Yao Qi <yao.qi@linaro.org>
7746
7747 * target-descriptions.c (tdesc_element_visitor): New class.
7748 (tdesc_element): New class.
7749 (tdesc_reg): Inherit from tdesc_element.
7750 (tdesc_reg::accept): New function.
7751 (tdesc_type): Inherit from tdesc_element.
7752 (tdesc_type::accept): New function.
7753 (tdesc_feature): Inherit from tdesc_element.
7754 (tdesc_feature::accept): New function.
7755 (target_desc): Inherit from tdesc_element.
7756 (target_desc::target_desc): New.
7757 (target_desc::~target_desc): New.
7758 (target_desc::accept): New.
7759 (allocate_target_description): Use new.
7760 (free_target_description): Use delete.
7761 (print_c_tdesc): New class.
7762 (maint_print_c_tdesc_cmd): Adjust.
7763
7764 * features/aarch64.c: Re-generated.
7765 * features/arc-arcompact.c: Re-generated.
7766 * features/arc-v2.c: Re-generated.
7767 * features/arm/arm-with-iwmmxt.c: Re-generated.
7768 * features/arm/arm-with-m.c: Re-generated.
7769 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
7770 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
7771 * features/arm/arm-with-neon.c: Re-generated.
7772 * features/arm/arm-with-vfpv2.c: Re-generated.
7773 * features/arm/arm-with-vfpv3.c: Re-generated.
7774 * features/i386/amd64-avx-avx512.c: Re-generated.
7775 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7776 * features/i386/amd64-avx.c: Re-generated.
7777 * features/i386/amd64-avx-linux.c: Re-generated.
7778 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
7779 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7780 * features/i386/amd64-avx-mpx.c: Re-generated.
7781 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
7782 * features/i386/amd64.c: Re-generated.
7783 * features/i386/amd64-linux.c: Re-generated.
7784 * features/i386/amd64-mpx.c: Re-generated.
7785 * features/i386/amd64-mpx-linux.c: Re-generated.
7786 * features/i386/i386-avx-avx512.c: Re-generated.
7787 * features/i386/i386-avx-avx512-linux.c: Re-generated.
7788 * features/i386/i386-avx.c: Re-generated.
7789 * features/i386/i386-avx-linux.c: Re-generated.
7790 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
7791 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
7792 * features/i386/i386-avx-mpx.c: Re-generated.
7793 * features/i386/i386-avx-mpx-linux.c: Re-generated.
7794 * features/i386/i386.c: Re-generated.
7795 * features/i386/i386-linux.c: Re-generated.
7796 * features/i386/i386-mmx.c: Re-generated.
7797 * features/i386/i386-mmx-linux.c: Re-generated.
7798 * features/i386/i386-mpx.c: Re-generated.
7799 * features/i386/i386-mpx-linux.c: Re-generated.
7800 * features/i386/x32-avx-avx512.c: Re-generated.
7801 * features/i386/x32-avx-avx512-linux.c: Re-generated.
7802 * features/i386/x32-avx.c: Re-generated.
7803 * features/i386/x32-avx-linux.c: Re-generated.
7804 * features/i386/x32.c: Re-generated.
7805 * features/i386/x32-linux.c: Re-generated.
7806 * features/microblaze.c: Re-generated.
7807 * features/microblaze-with-stack-protect.c: Re-generated.
7808 * features/mips64-dsp-linux.c: Re-generated.
7809 * features/mips64-linux.c: Re-generated.
7810 * features/mips-dsp-linux.c: Re-generated.
7811 * features/mips-linux.c: Re-generated.
7812 * features/nds32.c: Re-generated.
7813 * features/nios2.c: Re-generated.
7814 * features/nios2-linux.c: Re-generated.
7815 * features/rs6000/powerpc-32.c: Re-generated.
7816 * features/rs6000/powerpc-32l.c: Re-generated.
7817 * features/rs6000/powerpc-403.c: Re-generated.
7818 * features/rs6000/powerpc-403gc.c : Re-generated.
7819 * features/rs6000/powerpc-405.c: Re-generated.
7820 * features/rs6000/powerpc-505.c: Re-generated.
7821 * features/rs6000/powerpc-601.c: Re-generated.
7822 * features/rs6000/powerpc-602.c: Re-generated.
7823 * features/rs6000/powerpc-603.c: Re-generated.
7824 * features/rs6000/powerpc-604.c: Re-generated.
7825 * features/rs6000/powerpc-64.c: Re-generated.
7826 * features/rs6000/powerpc-64l.c: Re-generated.
7827 * features/rs6000/powerpc-7400.c: Re-generated.
7828 * features/rs6000/powerpc-750.c: Re-generated.
7829 * features/rs6000/powerpc-860.c: Re-generated.
7830 * features/rs6000/powerpc-altivec32.c: Re-generated.
7831 * features/rs6000/powerpc-altivec32l.c: Re-generated.
7832 * features/rs6000/powerpc-altivec64.c: Re-generated.
7833 * features/rs6000/powerpc-altivec64l.c: Re-generated.
7834 * features/rs6000/powerpc-cell32l.c: Re-generated.
7835 * features/rs6000/powerpc-cell64l.c: Re-generated.
7836 * features/rs6000/powerpc-e500.c: Re-generated.
7837 * features/rs6000/powerpc-e500l.c: Re-generated.
7838 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
7839 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
7840 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
7841 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
7842 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
7843 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
7844 * features/rs6000/powerpc-vsx32.c: Re-generated.
7845 * features/rs6000/powerpc-vsx32l.c: Re-generated.
7846 * features/rs6000/powerpc-vsx64.c: Re-generated.
7847 * features/rs6000/powerpc-vsx64l.c: Re-generated.
7848 * features/rs6000/rs6000.c: Re-generated.
7849 * features/s390-linux32.c: Re-generated.
7850 * features/s390-linux32v1.c: Re-generated.
7851 * features/s390-linux32v2.c: Re-generated.
7852 * features/s390-linux64.c: Re-generated.
7853 * features/s390-linux64v1.c: Re-generated.
7854 * features/s390-linux64v2.c: Re-generated.
7855 * features/s390-te-linux64.c: Re-generated.
7856 * features/s390-tevx-linux64.c: Re-generated.
7857 * features/s390-vx-linux64.c: Re-generated.
7858 * features/s390x-linux64.c: Re-generated.
7859 * features/s390x-linux64v1.c: Re-generated.
7860 * features/s390x-linux64v2.c: Re-generated.
7861 * features/s390x-te-linux64.c: Re-generated.
7862 * features/s390x-tevx-linux64.c: Re-generated.
7863 * features/s390x-vx-linux64.c: Re-generated.
7864 * features/sparc/sparc32-solaris.c: Re-generated.
7865 * features/sparc/sparc64-solaris.c: Re-generated.
7866 * features/tic6x-c62x.c: Re-generated.
7867 * features/tic6x-c62x-linux.c: Re-generated.
7868 * features/tic6x-c64x.c: Re-generated.
7869 * features/tic6x-c64x-linux.c: Re-generated.
7870 * features/tic6x-c64xp.c: Re-generated.
7871 * features/tic6x-c64xp-linux.c: Re-generated.
7872
35b4818d
YQ
78732017-07-26 Yao Qi <yao.qi@linaro.org>
7874
7875 * i386-linux-tdep.c (i386_linux_read_description): New function.
7876 (i386_linux_core_read_description): Call
7877 i386_linux_read_description.
7878 * i386-linux-tdep.h (i386_linux_read_description): Declare.
7879 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
7880 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
7881 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
7882 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
7883 * x86-linux-nat.c (x86_linux_read_description): Call
7884 i386_linux_read_description.
7885
8e2141c6
YQ
78862017-07-26 Yao Qi <yao.qi@linaro.org>
7887
7888 * NEWS: Mention it.
7889 * features/Makefile (%.c: %.xml): Pass the xml file name to
7890 command "maint print c-tdesc".
7891 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
7892 name from 'arg'.
7893
b468ff4c
YQ
78942017-07-26 Yao Qi <yao.qi@linaro.org>
7895
7896 * target-descriptions.c (target_desc): Add ctor and dtor. Do
7897 in-class initialization.
7898 (tdesc_create_feature): Call new instead of XCNEW.
7899 (free_target_description): Ue delete.
7900
b9c0e1b4
JB
79012017-07-25 John Baldwin <jhb@FreeBSD.org>
7902
7903 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
7904
a04b5337
YQ
79052017-07-25 Yao Qi <yao.qi@linaro.org>
7906
7907 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
7908 constant.
7909 (amd64_x32_init_abi): Likewise.
7910 * amd64-tdep.h (amd64_init_abi): Update declaration.
7911 (amd64_x32_init_abi): Likewise.
7912
02ad7fc2
YQ
79132017-07-25 Yao Qi <yao.qi@linaro.org>
7914
7915 PR tdep/21717
7916 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
7917 condition for FPSCR.
7918 (arm_linux_store_inferior_registers): Likewise.
7919
b6f48cb0
TT
79202017-07-22 Tom Tromey <tom@tromey.com>
7921
7922 * break-catch-syscall.c (struct catch_syscall_inferior_data)
7923 <syscalls_counts>: Now a std::vector.
7924 (get_catch_syscall_inferior_data): Use "new".
7925 (catch_syscall_inferior_data_cleanup): Use "delete".
7926 (insert_catch_syscall, remove_catch_syscall)
7927 (clear_syscall_counts): Update.
7928
e12c9b7a
TT
79292017-07-22 Tom Tromey <tom@tromey.com>
7930
7931 * break-catch-syscall.c (syscall_catchpoint)
7932 <syscalls_to_be_caught>: Now a std::vector<int>
7933 (~syscall_catchpoint): Remove.
7934 (insert_catch_syscall, remove_catch_syscall)
7935 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
7936 (print_mention_catch_syscall, print_recreate_catch_syscall):
7937 Update.
7938 (create_syscall_event_catchpoint): Change type of "filter"
7939 parameter.
7940 (catch_syscall_split_args): Return a std::vector.
7941 (catch_syscall_command_1, catching_syscall_number_1): Update.
7942
4fa8aeac
TT
79432017-07-22 Tom Tromey <tom@tromey.com>
7944
7945 * break-catch-throw.c (struct exception_catchpoint)
7946 <exception_rx>: Now a std::string.
7947 (~exception_catchpoint): Remove.
7948 (print_one_detail_exception_catchpoint): Update.
7949 (handle_gnu_v3_exceptions): Change type of except_rx.
7950 (extract_exception_regexp): Return a std::string.
7951 (catch_exception_command_1): Update.
7952
f746a154
TT
79532017-07-22 Tom Tromey <tom@tromey.com>
7954
7955 * break-catch-sig.c (gdb_signal_type): Remove typedef.
7956 (struct signal_catchpoint) <signals_to_be_caught>: Now a
7957 std::vector.
7958 <catch_all>: Now a bool.
7959 (~signal_catchpoint): Remove.
7960 (signal_catchpoint_insert_location)
7961 (signal_catchpoint_remove_location)
7962 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
7963 (signal_catchpoint_print_mention)
7964 (signal_catchpoint_print_recreate)
7965 (signal_catchpoint_explains_signal): Update.
7966 (create_signal_catchpoint): Change type of "filter" and
7967 "catch_all".
7968 (catch_signal_split_args): Return a std::vector. Change type of
7969 "catch_all".
7970 (catch_signal_command): Update.
7971
47e77640
PA
79722017-07-20 Pedro Alves <palves@redhat.com>
7973
7974 * ada-lang.c (ada_language_defn): Make extern.
7975 (_initialize_ada_language): Remove add_language call.
7976 * c-lang.c (c_language_defn, cplus_language_defn)
7977 (asm_language_defn, minimal_language_defn): Make extern.
7978 (_initialize_c_language): Delete.
7979 * completer.c (compare_cstrings): Delete, moved to utils.h.
7980 * d-lang.c (d_language_defn): Make extern.
7981 (_initialize_d_language): Remove add_language calls.
7982 * defs.h (enum language): Add comment.
7983 * f-lang.c (f_language_defn): Make extern.
7984 (_initialize_f_language): Remove add_language call.
7985 * go-lang.c (go_language_defn): Make extern.
7986 (_initialize_go_language): Remove add_language call.
7987 * language.c: Include <algorithm>.
7988 (languages): Redefine as const array.
7989 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
7990 (set_language_command): Handle "local". Use for-range loop.
7991 (set_language): Remove loop.
7992 (language_enum): Rewrite.
7993 (language_def, language_str): Remove loops.
7994 (add_language): Delete.
7995 (add_set_language_command): New, based on add_languages.
7996 (skip_language_trampoline): Adjust.
7997 (local_language_defn): Delete.
7998 (language_gdbarch_post_init): Adjust.
7999 (_initialize_language): Remove add_language calls. Call
8000 add_set_language_command.
8001 * language.h (add_language): Delete.
8002 (auto_language_defn)
8003 (unknown_language_defn, minimal_language_defn, ada_language_defn)
8004 (asm_language_defn, c_language_defn, cplus_language_defn)
8005 (d_language_defn, f_language_defn, go_language_defn)
8006 (m2_language_defn, objc_language_defn, opencl_language_defn)
8007 (pascal_language_defn, rust_language_defn): Declare.
8008 * m2-lang.c (m2_language_defn): Make extern.
8009 (_initialize_m2_language): Remove add_language call.
8010 * objc-lang.c (objc_language_defn): Make extern.
8011 (_initialize_objc_language): Remove add_language call.
8012 * opencl-lang.c (opencl_language_defn): Make extern.
8013 (_initialize_opencl_language): Remove add_language call.
8014 * p-lang.c (pascal_language_defn): Make extern.
8015 (_initialize_pascal_language): Delete.
8016 * rust-lang.c (rust_language_defn): Make extern.
8017 (_initialize_rust_language): Delete.
8018 * utils.h (compare_cstrings): New static inline function.
8019
edb0c9cb
PA
80202017-07-20 Pedro Alves <palves@redhat.com>
8021
8022 * ada-lang.c (ada_to_fixed_type_1): Adjust.
8023 (get_var_value): Constify parameters.
8024 (get_int_var_value): Change prototype.
8025 (to_fixed_range_type): Adjust.
8026 * ada-lang.h (get_int_var_value): Change prototype.
8027
a778f165
PA
80282017-07-20 Pedro Alves <palves@redhat.com>
8029
8030 * dwarf2read.c (dw2_lookup_symbol): Use
8031 SYMBOL_MATCHES_SEARCH_NAME.
8032 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
8033
42edd901
PA
80342017-07-20 Pedro Alves <palves@redhat.com>
8035
8036 * block.c (block_iter_name_step, block_iter_name_first)
8037 (block_iter_name_next): Delete.
8038 (block_lookup_symbol_primary): Adjust to use
8039 dict_iter_match_first/dict_iter_match_next.
8040 * block.h (block_iter_name_first, block_iter_name_next): Delete
8041 declarations.
8042 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
8043 dict_iter_match_first/dict_iter_match_next.
8044
cf325299
PA
80452017-07-20 Pedro Alves <palves@redhat.com>
8046
8047 * cp-support.c (cp_find_first_component_aux): Add missing case for
8048 end of string.
8049
c5ed0576
DB
80502017-07-18 David Blaikie <dblaikie@gmail.com>
8051
8052 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
8053 of dwo_cu's dwo_file.
8054
27841e76
YQ
80552017-07-18 Yao Qi <yao.qi@linaro.org>
8056
8057 * remote.c (store_registers_using_G): Remove one line comment.
8058
cfb7e58b
YQ
80592017-07-18 Yao Qi <yao.qi@linaro.org>
8060
8061 * regcache.c (regcache_cpy): Simplify it.
8062 (regcache::cpy_no_passthrough): Remove it.
8063 * regcache.h (cpy_no_passthrough): Remove it.
8064 (regcache_dup, regcache_cpy): Update comments.
8065
386535dd
PA
80662017-07-18 Pedro Alves <palves@redhat.com>
8067
8068 * remote-sim.c (sim_command_completer): Adjust to work with a
8069 completion_tracker instead of a VEC.
8070
c45ec17c
PA
80712017-07-17 Pedro Alves <palves@redhat.com>
8072
8073 * completer.c (complete_source_filenames): New function.
8074 (complete_address_and_linespec_locations): New function.
8075 (location_completer): Use complete_address_and_linespec_locations.
8076 (completion_tracker::build_completion_result): Honor the tracker's
8077 request to suppress append.
8078 * completer.h (completion_tracker::suppress_append_ws)
8079 (completion_tracker::set_suppress_append_ws): New methods.
8080 (completion_tracker::m_suppress_append_ws): New field.
8081 (complete_source_filenames): New declaration.
8082 * linespec.c (linespec_complete_what): New.
8083 (struct ls_parser) <complete_what, completion_word,
8084 completion_quote_char, completion_quote_end, completion_tracker>:
8085 New fields.
8086 (string_find_incomplete_keyword_at_end): New.
8087 (linespec_lexer_lex_string): Record quote char. If in completion
8088 mode, don't throw.
8089 (linespec_lexer_consume_token): Advance the completion word point.
8090 (linespec_lexer_peek_token): Save/restore completion info.
8091 (save_stream_and_consume_token): New.
8092 (set_completion_after_number): New.
8093 (linespec_parse_basic): Set what to complete next depending on
8094 token. Handle function and label completions specially.
8095 (parse_linespec): Disable objc shortcut in completion mode. Set
8096 what to complete next depending on token type. Skip keyword if in
8097 completion mode.
8098 (complete_linespec_component, linespec_complete): New.
8099 * linespec.h (linespec_complete): Declare.
8100
be966d42
PA
81012017-07-17 Pedro Alves <palves@redhat.com>
8102
8103 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
8104 Handle 'operator<' / 'operator<<'.
8105
a2459270
PA
81062017-07-17 Pedro Alves <palves@redhat.com>
8107
8108 * completer.c (collect_explicit_location_matches): Handle
8109 MATCH_LABEL.
8110 (convert_explicit_location_to_linespec): New, factored out from
8111 ...
8112 (convert_explicit_location_to_sals): ... this.
8113 (complete_label): New.
8114 (linespec_complete_label, find_label_symbols_in_block): New.
8115 (find_label_symbols): Add completion_mode parameter and adjust to
8116 call find_label_symbols_in_block.
8117 * linespec.h (linespec_complete_label): Declare.
8118
c6756f62
PA
81192017-07-17 Pedro Alves <palves@redhat.com>
8120
8121 * ada-lang.c (ada_collect_symbol_completion_matches): Add
8122 complete_symbol_mode parameter.
8123 * cli/cli-cmds.c (complete_command): Get the completion result out
8124 of the handle_brkchars tracker if used a custom word point.
8125 * completer.c: Include "linespec.h".
8126 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
8127 (advance_to_expression_complete_word_point): New.
8128 (completion_tracker::completes_to_completion_word): New.
8129 (complete_files_symbols): Pass down
8130 complete_symbol_mode::EXPRESSION.
8131 (explicit_options, probe_options): New.
8132 (collect_explicit_location_matches): Complete on the
8133 explictit_loc->foo instead of word. Use
8134 linespec_complete_function. Handle MATCH_LINE. Handle offering
8135 keyword and options completions.
8136 (backup_text_ptr): Delete.
8137 (skip_keyword): New.
8138 (complete_explicit_location): Remove 'word' parameter. Add
8139 language, quoted_arg_start and quoted_arg_end parameters.
8140 Rewrite, parsing left to right.
8141 (location_completer): Rewrite.
8142 (location_completer_handle_brkchars): New function.
8143 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
8144 (enum complete_line_internal_reason): Adjust comments.
8145 (completion_tracker::discard_completions): New.
8146 (completer_handle_brkchars_func_for_completer): Handle
8147 location_completer.
8148 (gdb_custom_word_point_brkchars)
8149 (gdb_org_rl_basic_quote_characters): New.
8150 (gdb_completion_word_break_characters_throw)
8151 (completion_find_completion_word): Handle trackers that use a
8152 custom word point.
8153 (completion_tracker::advance_custom_word_point_by): New.
8154 (completion_tracker::build_completion_result): Don't rely on
8155 readline appending the quote char.
8156 (gdb_rl_attempted_completion_function_throw): Handle trackers that
8157 use a custom word point.
8158 (gdb_rl_attempted_completion_function): Restore
8159 rl_basic_quote_characters.
8160 * completer.h (class completion_tracker): Extend intro comment.
8161 (completion_tracker::set_quote_char)
8162 (completion_tracker::quote_char)
8163 (completion_tracker::set_use_custom_word_point)
8164 (completion_tracker::use_custom_word_point)
8165 (completion_tracker::custom_word_point)
8166 (completion_tracker::set_custom_word_point)
8167 (completion_tracker::advance_custom_word_point_by)
8168 (completion_tracker::completes_to_completion_word)
8169 (completion_tracker::discard_completions): New methods.
8170 (completion_tracker::m_quote_char)
8171 (completion_tracker::m_use_custom_word_point)
8172 (completion_tracker::m_custom_word_point): New fields.
8173 (advance_to_expression_complete_word_point): Declare.
8174 * f-lang.c (f_collect_symbol_completion_matches): Add
8175 complete_symbol_mode parameter.
8176 * language.h (struct language_defn)
8177 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
8178 parameter.
8179 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
8180 (linespec_complete_function): New function.
8181 (linespec_lexer_lex_keyword): Adjust.
8182 * linespec.h (linespec_keywords, linespec_complete_function): New
8183 declarations.
8184 * location.c (find_end_quote): New function.
8185 (explicit_location_lex_one): Add explicit_completion_info
8186 parameter. Save quoting info. Don't throw if being called for
8187 completion. Don't handle Ada operators here.
8188 (is_cp_operator, skip_op_false_positives, first_of)
8189 (explicit_location_lex_one_function): New function.
8190 (string_to_explicit_location): Replace 'dont_throw' parameter with
8191 an explicit_completion_info pointer parameter. Handle it. Don't
8192 use explicit_location_lex_one to lex function names. Use
8193 explicit_location_lex_one_function instead.
8194 * location.h (struct explicit_completion_info): New.
8195 (string_to_explicit_location): Replace 'dont_throw' parameter with
8196 an explicit_completion_info pointer parameter.
8197 * symtab.c (default_collect_symbol_completion_matches_break_on):
8198 Add complete_symbol_mode parameter. Handle LINESPEC mode.
8199 (default_collect_symbol_completion_matches)
8200 (collect_symbol_completion_matches): Add complete_symbol_mode
8201 parameter.
8202 (collect_symbol_completion_matches_type): Pass down
8203 complete_symbol_mode::EXPRESSION.
8204 (collect_file_symbol_completion_matches): Add complete_symbol_mode
8205 parameter. Handle LINESPEC mode.
8206 * symtab.h (complete_symbol_mode): New.
8207 (default_collect_symbol_completion_matches_break_on)
8208 (default_collect_symbol_completion_matches)
8209 (collect_symbol_completion_matches)
8210 (collect_file_symbol_completion_matches): Add complete_symbol_mode
8211 parameter.
8212
1d550c82
PA
82132017-07-17 Pedro Alves <palves@redhat.com>
8214
8215 * utils.c (enum class strncmp_iw_mode): New.
8216 (strcmp_iw): Rename to ...
8217 (strncmp_iw_with_mode): ... this. Add string2_len and mode
8218 parameters. Handle them.
8219 (strncmp_iw): New.
8220 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
8221 * utils.h (strncmp_iw): Declare.
8222 (strcmp_iw): Move describing comments here.
8223
8090b426
PA
82242017-07-17 Pedro Alves <palves@redhat.com>
8225
8226 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
8227 CP_OPERATOR_STR.
8228 * c-typeprint.c (is_type_conversion_operator): Use
8229 CP_OPERATOR_STR.
8230 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
8231 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
8232 CP_OPERATOR_LEN.
8233 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
8234 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
8235 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
8236 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
8237 CP_OPERATOR_STR.
8238 * location.c: Include "cp-support.h".
8239 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
8240 CP_OPERATOR_STR.
8241 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
8242 CP_OPERATOR_LEN.
8243
6a2c1b87
PA
82442017-07-17 Pedro Alves <palves@redhat.com>
8245
8246 * cli/cli-cmds.c (complete_command): Use a completion tracker
8247 along with completion_find_completion_word for handle_brkchars
8248 phase.
8249 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
8250 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
8251 (struct gdb_rl_completion_word_info): New.
8252 (gdb_rl_find_completion_word): New.
8253 (completion_find_completion_word): New.
8254 * completer.h (completion_find_completion_word): Declare.
8255
eb3ff9a5
PA
82562017-07-17 Pedro Alves <palves@redhat.com>
8257
8258 * ada-lang.c (symbol_completion_match): Adjust comments.
8259 (symbol_completion_add): Replace vector parameter with
8260 completion_tracker parameter. Use it.
8261 (ada_make_symbol_completion_list): Rename to...
8262 (ada_collect_symbol_completion_matches): ... this. Add
8263 completion_tracker parameter and use it.
8264 (ada_language_defn): Adjust.
8265 * break-catch-syscall.c (catch_syscall_completer): Adjust
8266 prototype and work with completion_tracker instead of VEC.
8267 * breakpoint.c (condition_completer): Adjust prototype and work
8268 with completion_tracker instead of VEC.
8269 * c-lang.c (c_language_defn, cplus_language_defn)
8270 (asm_language_defn, minimal_language_defn): Adjust to renames.
8271 * cli/cli-cmds.c (complete_command): Rework using
8272 completion_tracker. Catch exceptions when completing.
8273 * cli/cli-decode.c (integer_unlimited_completer)
8274 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
8275 with completion_tracker instead of VEC.
8276 * command.h (struct completion_tracker): Forward declare.
8277 (completer_ftype, completer_handle_brkchars_ftype): Change
8278 types.
8279 (complete_on_cmdlist, complete_on_enum): Adjust.
8280 * completer.c: Include <algorithm>.
8281 (struct gdb_completer_state): New.
8282 (current_completion): New global.
8283 (readline_line_completion_function): Delete.
8284 (noop_completer, filename_completer)
8285 (filename_completer_handle_brkchars, complete_files_symbols)
8286 (linespec_location_completer): Adjust to work with a
8287 completion_tracker instead of a VEC.
8288 (string_or_empty): New.
8289 (collect_explicit_location_matches): Adjust to work with a
8290 completion_tracker instead of a VEC.
8291 (explicit_location_completer): Rename to ...
8292 (complete_explicit_location): ... this and adjust to work with a
8293 completion_tracker instead of a VEC.
8294 (location_completer): Adjust to work with a completion_tracker
8295 instead of a VEC.
8296 (add_struct_fields): Adjust to work with a completion_list instead
8297 of VEC.
8298 (expression_completer): Rename to ...
8299 (complete_expression): ... this and adjust to work with a
8300 completion_tracker instead of a VEC. Use complete_files_symbols.
8301 (expression_completer): Reimplement on top of complete_expression.
8302 (symbol_completer): Adjust to work with a completion_tracker
8303 instead of a VEC.
8304 (enum complete_line_internal_reason): Add describing comments.
8305 (complete_line_internal_normal_command): Adjust to work with a
8306 completion_tracker instead of a VEC.
8307 (complete_line_internal): Rename to ...
8308 (complete_line_internal_1): ... this and adjust to work with a
8309 completion_tracker instead of a VEC. Assert TEXT is NULL in the
8310 handle_brkchars phase.
8311 (new_completion_tracker): Delete.
8312 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
8313 complete_line_internal_1.
8314 (free_completion_tracker): Delete.
8315 (INITIAL_COMPLETION_HTAB_SIZE): New.
8316 (completion_tracker::completion_tracker)
8317 (completion_tracker::~completion_tracker): New.
8318 (maybe_add_completion): Delete.
8319 (completion_tracker::maybe_add_completion)
8320 (completion_tracker::add_completion)
8321 (completion_tracker::add_completions): New.
8322 (throw_max_completions_reached_error): Delete.
8323 (complete_line): Adjust to work with a completion_tracker instead
8324 of a VEC. Don't create a completion_tracker_t or check for max
8325 completions here.
8326 (command_completer, command_completer_handle_brkchars)
8327 (signal_completer, reg_or_group_completer_1)
8328 (reg_or_group_completer, default_completer_handle_brkchars):
8329 Adjust to work with a completion_tracker.
8330 (gdb_completion_word_break_characters_throw): New.
8331 (gdb_completion_word_break_characters): Reimplement.
8332 (line_completion_function): Delete.
8333 (completion_tracker::recompute_lowest_common_denominator)
8334 (expand_preserving_ws)
8335 (completion_tracker::build_completion_result)
8336 (completion_result::completion_result)
8337 (completion_result::completion_result)
8338 (completion_result::~completion_result)
8339 (completion_result::completion_result)
8340 (completion_result::release_match_list, compare_cstrings)
8341 (completion_result::sort_match_list)
8342 (completion_result::reset_match_list)
8343 (gdb_rl_attempted_completion_function_throw)
8344 (gdb_rl_attempted_completion_function): New.
8345 * completer.h (completion_list, struct completion_result)
8346 (class completion_tracker): New.
8347 (complete_line): Add completion_tracker parameter.
8348 (readline_line_completion_function): Delete.
8349 (gdb_rl_attempted_completion_function): New.
8350 (noop_completer, filename_completer, expression_completer)
8351 (location_completer, symbol_completer, command_completer)
8352 (signal_completer, reg_or_group_completer): Update prototypes.
8353 (completion_tracker_t, new_completion_tracker)
8354 (make_cleanup_free_completion_tracker): Delete.
8355 (enum maybe_add_completion_enum): Delete.
8356 (maybe_add_completion): Delete.
8357 (throw_max_completions_reached_error): Delete.
8358 * corefile.c (complete_set_gnutarget): Adjust to work with a
8359 completion_tracker instead of a VEC.
8360 * cp-abi.c (cp_abi_completer): Adjust to work with a
8361 completion_tracker instead of a VEC.
8362 * d-lang.c (d_language_defn): Adjust.
8363 * disasm.c (disassembler_options_completer): Adjust to work with a
8364 completion_tracker instead of a VEC.
8365 * f-lang.c (f_make_symbol_completion_list): Rename to ...
8366 (f_collect_symbol_completion_matches): ... this. Adjust to work
8367 with a completion_tracker instead of a VEC.
8368 (f_language_defn): Adjust.
8369 * go-lang.c (go_language_defn): Adjust.
8370 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
8371 Adjust to work with a completion_tracker instead of a VEC.
8372 * infrun.c (handle_completer): Likewise.
8373 * interps.c (interpreter_completer): Likewise.
8374 * interps.h (interpreter_completer): Likewise.
8375 * language.c (unknown_language_defn, auto_language_defn)
8376 (local_language_defn): Adjust.
8377 * language.h (language_defn::la_make_symbol_completion_list):
8378 Rename to ...
8379 (language_defn::la_collect_symbol_completion_matches): ... this
8380 and adjust to work with a completion_tracker instead of a VEC.
8381 * m2-lang.c (m2_language_defn): Adjust.
8382 * objc-lang.c (objc_language_defn): Adjust.
8383 * opencl-lang.c (opencl_language_defn): Adjust.
8384 * p-lang.c (pascal_language_defn): Adjust.
8385 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
8386 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
8387 with a completion_tracker.
8388 * rust-lang.c (rust_language_defn): Adjust.
8389 * symtab.c (free_completion_list, do_free_completion_list)
8390 (return_val, completion_tracker): Delete.
8391 (completion_list_add_name, completion_list_add_symbol)
8392 (completion_list_add_msymbol, completion_list_objc_symbol)
8393 (completion_list_add_fields, add_symtab_completions): Add
8394 completion_tracker parameter and use it.
8395 (default_make_symbol_completion_list_break_on_1): Rename to...
8396 (default_collect_symbol_completion_matches_break_on): ... this.
8397 Add completion_tracker parameter and use it instead of allocating
8398 a completion tracker here.
8399 (default_make_symbol_completion_list_break_on): Delete old
8400 implementation.
8401 (default_make_symbol_completion_list): Delete.
8402 (default_collect_symbol_completion_matches): New.
8403 (make_symbol_completion_list): Delete.
8404 (collect_symbol_completion_matches): New.
8405 (make_symbol_completion_type): Rename to ...
8406 (collect_symbol_completion_matches_type): ... this. Add
8407 completion_tracker parameter and use it instead of VEC.
8408 (make_file_symbol_completion_list_1): Rename to...
8409 (collect_file_symbol_completion_matches): ... this. Add
8410 completion_tracker parameter and use it instead of VEC.
8411 (make_file_symbol_completion_list): Delete.
8412 (add_filename_to_list): Use completion_list instead of a VEC.
8413 (add_partial_filename_data::list): Now a completion_list.
8414 (make_source_files_completion_list): Work with a completion_list
8415 instead of a VEC.
8416 * symtab.h: Include "completer.h".
8417 (default_make_symbol_completion_list_break_on)
8418 (default_make_symbol_completion_list, make_symbol_completion_list)
8419 (make_symbol_completion_type, make_file_symbol_completion_list)
8420 (make_source_files_completion_list): Delete.
8421 (default_collect_symbol_completion_matches_break_on)
8422 (default_collect_symbol_completion_matches)
8423 (collect_symbol_completion_matches)
8424 (collect_symbol_completion_matches_type)
8425 (collect_file_symbol_completion_matches)
8426 (make_source_files_completion_list): New.
8427 * top.c (init_main): Don't install a rl_completion_entry_function
8428 hook. Install a rl_attempted_completion_function hook instead.
8429 * tui/tui-layout.c (layout_completer): Adjust to work with a
8430 completion_tracker.
8431 * tui/tui-regs.c (tui_reggroup_completer):
8432 * tui/tui-win.c (window_name_completer, focus_completer)
8433 (winheight_completer): Adjust to work with a completion_tracker.
8434 * value.c: Include "completer.h".
8435 (complete_internalvar): Adjust to work with a completion_tracker.
8436 * value.h (complete_internalvar): Likewise.
8437
6e1dbf8c
PA
84382017-07-17 Pedro Alves <palves@redhat.com>
8439
8440 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
8441 renames.
8442 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
8443 comments to completer_ftype's declaration.
8444 <completer_handle_brkchars>: Change type to
8445 completer_handle_brkchars_ftype.
8446 * command.h (completer_ftype): Add describing comment and give
8447 names to parameters.
8448 (completer_ftype_void): Rename to ...
8449 (completer_handle_brkchars_ftype) ... this. Add describing comment.
8450 (set_cmd_completer_handle_brkchars): Adjust.
8451 * completer.c (filename_completer_handle_brkchars): New function.
8452 (complete_line_internal_normal_command): New function, factored
8453 out from ...
8454 (complete_line_internal): ... here.
8455 (command_completer_handle_brkchars)
8456 (default_completer_handle_brkchars)
8457 (completer_handle_brkchars_func_for_completer): New functions.
8458 * completer.h (set_gdb_completion_word_break_characters): Delete
8459 declaration.
8460 (completer_handle_brkchars_func_for_completer): New declaration.
8461 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
8462 completer_handle_brkchars_func_for_completer.
8463
78b13106
PA
84642017-07-17 Pedro Alves <palves@redhat.com>
8465
8466 * completer.c (symbol_completer): New function, based on
8467 make_symbol_completion_list_fn.
8468 * completer.h (symbol_completer): New declaration.
8469 * guile/scm-cmd.c (cmdscm_completers): Adjust.
8470 * python/py-cmd.c (completers): Adjust.
8471 * symtab.c (make_symbol_completion_list_fn): Delete.
8472 * symtab.h (make_symbol_completion_list_fn): Delete.
8473 * cli/cli-decode.c (add_cmd): Adjust.
8474
bbf2f4df
PA
84752017-07-17 Pedro Alves <palves@redhat.com>
8476
8477 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
8478 * dwarf2read.c: Include "filename-seen-cache.h".
8479 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
8480 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
8481 * filename-seen-cache.c: New file.
8482 * filename-seen-cache.h: New file.
8483 * symtab.c: Include "filename-seen-cache.h".
8484 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
8485 (create_filename_seen_cache, clear_filename_seen_cache)
8486 (delete_filename_seen_cache, filename_seen): Delete, parts moved
8487 to filename-seen-cache.h/filename-seen-cache.c.
8488 (output_source_filename, sources_info)
8489 (maybe_add_partial_symtab_filename)
8490 (make_source_files_completion_list): Adjust to use
8491 filename_seen_cache.
8492
330cdd98
PA
84932017-07-17 Pedro Alves <palves@redhat.com>
8494
8495 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
8496 fields.
8497 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
8498 dwarf2_debug_sections*)): New.
8499 (dwarf2_per_objfile::dwarf2_per_objfile(const
8500 dwarf2_per_objfile&)): Declare as deleted.
8501 (dwarf2_per_objfile::operator=): Declare as deleted.
8502 (dwarf2_per_objfile::dwarf2_per_objfile)
8503 (dwarf2_per_objfile::~dwarf2_per_objfile)
8504 (dwarf2_per_objfile::free_cached_comp_units): New.
8505 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
8506 ctor. Call dwarf2_per_objfile's ctor manually.
8507 (dwarf2_locate_sections): Deleted/refactored as ...
8508 (dwarf2_per_objfile::locate_sections): ... this new method.
8509 (free_cached_comp_units): Defer to
8510 dwarf2_per_objfile::free_cached_comp_units.
8511 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
8512
8880f2a9
TT
85132017-07-14 Tom Tromey <tom@tromey.com>
8514
8515 PR rust/21764:
8516 * rust-exp.y (convert_ast_to_expression): Add "want_type"
8517 parameter.
8518 <UNOP_SIZEOF>: Split into separate case.
8519 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
8520
65547233
TT
85212017-07-14 Tom Tromey <tom@tromey.com>
8522
8523 PR rust/21763:
8524 * symtab.c (symbol_matches_domain): Add language_rust to special
8525 case.
8526 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
8527 treat LOC_TYPEDEF symbols as variables.
8528
8f14146e
PA
85292017-07-14 Pedro Alves <palves@redhat.com>
8530
8531 * symtab.c (make_file_symbol_completion_list_1): Iterate over
8532 symtabs matching all symtabs with SRCFILE as file name instead of
8533 only considering the first hit, with lookup_symtab.
8534
2347965c
SM
85352017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8536
8537 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
8538 operator_name parameters.
8539 (gen_expr): Update function call.
8540
40f4af28
SM
85412017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8542
8543 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
8544 parameter.
8545 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
8546 Likewise.
8547 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
8548 parameter, use agent_expr::gdbarch instead, update function
8549 calls.
8550 (locexpr_tracepoint_var_ref): Likewise.
8551 (loclist_tracepoint_var_ref): Likewise.
8552 * ax-gdb.c (gen_trace_static_fields): Likewise.
8553 (gen_traced_pop): Likewise.
8554 (gen_frame_args_address): Likewise.
8555 (gen_frame_locals_address): Likewise.
8556 (gen_var_ref): Likewise.
8557 (gen_struct_ref_recursive): Likewise.
8558 (gen_static_field): Likewise.
8559 (gen_maybe_namespace_elt): Likewise.
8560 (gen_expr): Likewise.
8561 (gen_trace_for_var): Likewise.
8562 (gen_trace_for_expr): Likewise.
8563 (gen_trace_for_return_address): Likewise.
8564
053f8057
SM
85652017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8566
8567 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
8568 parameter.
8569 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
8570
6661ad48
SM
85712017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8572
8573 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
8574 from ax, update calls.
8575 (gen_usual_arithmetic): Likewise.
8576 (gen_integral_promotions): Likewise.
8577 (gen_bitfield_ref): Likewise.
8578 (gen_primitive_field): Likewise.
8579 (gen_struct_ref_recursive): Likewise.
8580 (gen_struct_ref): Likewise.
8581 (gen_maybe_namespace_elt): Likewise.
8582 (gen_struct_elt_for_reference): Likewise.
8583 (gen_namespace_elt): Likewise.
8584 (gen_aggregate_elt_ref): Likewise.
8585 (gen_expr): Get gdbarch from ax, update calls.
8586 (gen_expr_binop_rest): Likewise.
8587
c55a47e7
PA
85882017-07-13 Pedro Alves <palves@redhat.com>
8589
8590 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
8591 as default tdesc.
8592 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
8593 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
8594 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
8595 tdesc_amd64_linux as default tdesc. Get final tdesc from the
8596 tdep.
8597 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
8598 Get final tdesc from the tdep.
8599 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
8600 default tdesc.
8601 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
8602 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
8603 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
8604 Use it as default tdesc.
8605 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
8606 down to amd_init_abi. No longer handle fallback tdesc here.
8607 * amd64-tdep.h (tdesc_x32): Declare.
8608 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
8609 parameter.
8610 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
8611 as default tdesc.
8612
55efceab
AA
86132017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8614
8615 * s390-linux-tdep.c (s390_process_record): Add support for
8616 instructions new in arch12.
8617
0aa37b65
JB
86182017-07-11 John Baldwin <jhb@FreeBSD.org>
8619
8620 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8621 PT_GETFSBASE and PT_GETGSBASE.
8622 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
8623 PT_SETGSBASE.
8624
48aeef91
JB
86252017-07-11 John Baldwin <jhb@FreeBSD.org>
8626
8627 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
8628 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
8629 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
8630 those rules.
8631 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
8632 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
8633 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
8634 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
8635 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
8636 * features/i386/amd64.xml: Add 64bit-segments.xml.
8637 * features/i386/amd64-avx-avx512.c: Regenerated.
8638 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
8639 * features/i386/amd64-avx-mpx.c: Regenerated.
8640 * features/i386/amd64-avx.c: Regenerated.
8641 * features/i386/amd64-mpx.c: Regenerated.
8642 * features/i386/amd64.c: Regenerated.
8643 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
8644 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8645 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
8646 * regformats/i386/amd64-avx.dat: Regenerated.
8647 * regformats/i386/amd64-mpx.dat: Regenerated.
8648 * regformats/i386/amd64.dat: Regenerated.
8649
77c501bc
YQ
86502017-07-10 Yao Qi <yao.qi@linaro.org>
8651
8652 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
8653 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
8654
6dc8d757
AK
86552017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
8656
8657 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
8658 unsetenv.
8659 * gnulib/aclocal.m4: Regenerate.
8660 * gnulib/config.in: Regenerate.
8661 * gnulib/configure: Regenerate.
8662 * gnulib/import/Makefile.am: Regenerate.
8663 * gnulib/import/Makefile.in: Regenerate.
8664 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
8665 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
8666 * gnulib/import/m4/environ.m4: New file.
8667 * gnulib/import/m4/setenv.m4: New file.
8668 * gnulib/import/setenv.c: New file.
8669 * gnulib/import/unsetenv.c: New file.
8670
266934d1
SM
86712017-07-09 Simon Marchi <simon.marchi@ericsson.com>
8672
8673 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
8674 address when op is DW_OP_addr.
8675
03278692
TT
86762017-07-09 Tom Tromey <tom@tromey.com>
8677
8678 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
8679 check and apply to outer type.
8680
4b654465
JB
86812017-07-07 John Baldwin <jhb@FreeBSD.org>
8682
8683 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
8684 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
8685 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
8686 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
8687
2af9fc44
JB
86882017-07-07 John Baldwin <jhb@FreeBSD.org>
8689
8690 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
8691
382b69bb
JB
86922017-07-07 John Baldwin <jhb@FreeBSD.org>
8693
8694 * corelow.c (get_core_siginfo): Remove.
8695 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
8696 instead of get_core_siginfo.
8697 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
8698 * gdbarch.h: Re-generate.
8699 * gdbarch.c: Re-generate.
8700 * linux-tdep.c (linux_core_xfer_siginfo): New.
8701 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
8702
6e5eab33
JB
87032017-07-07 John Baldwin <jhb@FreeBSD.org>
8704
8705 * corelow.c (thread_section_name): Move to ...
8706 * gdbcore.h (thread_section_name): ... here.
8707
929edea9
JB
87082017-07-07 John Baldwin <jhb@FreeBSD.org>
8709
8710 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
8711 (struct siginfo32): New.
8712 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
8713 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
8714 via ptrace(PT_LWPINFO).
8715
762c974a
JB
87162017-07-07 John Baldwin <jhb@FreeBSD.org>
8717
8718 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
8719 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
8720 (fbsd_get_siginfo_type): New.
8721 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
8722 (_initialize_fbsd_tdep): New.
8723
33c5cd75
DB
87242017-07-06 David Blaikie <dblaikie@gmail.com>
8725
8726 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
8727 a singular dwo_unit*) to support multiple CUs in the same way that
8728 multiple TUs are supported.
8729 (create_cus_hash_table): Replace create_dwo_cu with a function for
8730 parsing multiple CUs from a DWO file.
8731 (open_and_init_dwo_file): Use create_cus_hash_table rather than
8732 create_dwo_cu.
8733 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
8734 htab_find, rather than comparing the signature to a singleton CU in
8735 the dwo_file.
8736
8455d262
PA
87372017-07-06 Pedro Alves <palves@redhat.com>
8738
8739 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
8740
4da3eb35
PA
87412017-07-04 Pedro Alves <palves@redhat.com>
8742
8743 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
8744 * gdbtypes.h (TYPE_STATIC): Delete.
8745 (struct fn_field) <is_public, is_abstract, is_static, is_final,
8746 is_synchronized, is_native>: Delete.
8747 <dummy>: Bump.
8748 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
8749 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
8750 (TYPE_FN_FIELD_ABSTRACT): Delete.
8751
5bfd255c
SM
87522017-07-03 Simon Marchi <simon.marchi@ericsson.com>
8753
8754 * buffer.h (buffer_finish): Fix spelling mistakes.
8755
25c54127
EZ
87562017-07-01 Eli Zaretskii <eliz@gnu.org>
8757
8758 * .dir-locals.el: Automatically switch to C-style comments in
8759 versions of Emacs that support the feature.
8760
dc4bde35
SDJ
87612017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8762 Pedro Alves <palves@redhat.com>
8763
8764 PR cli/21688
8765 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
8766 (process_next_line): New variable 'inline_cmd'.
8767 Adjust 'if' clauses for "python", "compile" and "guile" to use
8768 'command_name_equals' and check for '!inline_cmd'.
8769
51ed89aa
SDJ
87702017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8771
8772 PR cli/21688
8773 * cli/cli-script.c (command_name_equals_not_inline): New function.
8774 (process_next_line): Adjust 'if' clauses for "python", "compile"
8775 and "guile" to use command_name_equals_not_inline.
8776
eb17d413
PA
87772017-06-29 Pedro Alves <palves@redhat.com>
8778
8779 * completer.c (expression_completer): Call
8780 linespec_location_completer instead of location_completer.
8781
195bcdd5
PA
87822017-06-29 Pedro Alves <palves@redhat.com>
8783
8784 * completer.c (expression_completer): Remove code that recomputes
8785 'text' from 'word'.
8786
adc764e7
YQ
87872017-06-29 Yao Qi <yao.qi@linaro.org>
8788
8789 * regformats/regdat.sh: Generate code with
8790 "ifndef IN_PROCESS_AGENT".
8791
6e75794e
PA
87922017-06-28 Pedro Alves <palves@redhat.com>
8793
8794 * command.h: Include "common/scoped_restore.h".
8795
bc491f2e
YQ
87962017-06-28 Yao Qi <yao.qi@linaro.org>
8797
8798 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
8799 instead of obstack_grow.
8800
41664b45
DG
88012017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
8802
8803 PR gdb/21337
8804 * symfile.c (reread_symbols): Call objfiles_changed just before
8805 read_symbols.
8806
6da67eb1
PA
88072017-06-27 Pedro Alves <palves@redhat.com>
8808
8809 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
8810 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
8811 (completion_list_add_symbol, completion_list_add_msymbol):
8812 ... these new functions.
8813 (add_symtab_completions)
8814 (default_make_symbol_completion_list_break_on_1): Adjust.
8815
23732b1e
PA
88162017-06-27 Pedro Alves <palves@redhat.com>
8817
8818 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
8819 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
8820 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
8821 dtor.
8822 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
8823 'storage_obstack' field an auto_obstack. In-class initialize all
8824 non-bitfield fields. Make minsyms_read bool.
8825 * symfile.c (read_symbols): Adjust.
8826
a4d1e79a
AH
88272017-06-27 Alan Hayward <alan.hayward@arm.com>
8828
8829 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
8830 (gdbsim_store_register): Likewise.
8831
8268c778
PA
88322017-06-27 Pedro Alves <palves@redhat.com>
8833
8834 * c-exp.y (name_obstack): Now an auto_obstack.
8835 (yylex): Use auto_obstack::clear.
8836 (c_parse): Use auto_obstack::clear instead of reinitializing and
8837 freeing the obstack.
8838 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
8839 * d-exp.y (name_obstack): Now an auto_obstack.
8840 (yylex): Use auto_obstack::clear.
8841 (d_parse): Use auto_obstack::clear instead of reinitializing and
8842 freeing the obstack.
8843 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
8844 auto_obstack.
8845 * dwarf2read.c (create_addrmap_from_index)
8846 (dwarf2_build_psymtabs_hard)
8847 (update_enumeration_type_from_children): Likewise.
8848 * gdb_obstack.h (auto_obstack): New type.
8849 * go-exp.y (name_obstack): Now an auto_obstack.
8850 (build_packaged_name): Use auto_obstack::clear.
8851 (go_parse): Use auto_obstack::clear instead of reinitializing and
8852 freeing the obstack.
8853 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
8854 auto_obstack.
8855 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
8856 * rust-exp.y (work_obstack): Now an auto_obstack.
8857 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
8858 reinitializing and freeing the obstack.
8859 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
8860 (host_char_to_target): Use auto_obstack.
8861 * utils.h (make_cleanup_obstack_free): Delete declaration.
8862 * valprint.c (generic_emit_char, generic_printstr): Use
8863 auto_obstack.
8864
db665f42
SM
88652017-06-27 Simon Marchi <simon.marchi@ericsson.com>
8866
8867 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
8868 thread.
8869 (darwin_init_thread_list): Don't update dummy thread.
8870 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
8871
873c0814
SM
88722017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8873
8874 * record-full.c (netorder16): Remove.
8875
8b5a7a6e
SM
88762017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8877
8878 * common/diagnostics.h: Define macros for GCC.
8879 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
8880 * common/vec.h: Include diagnostics.h.
8881 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
8882 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
8883 warning.
8884
d1435379
SM
88852017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8886
8887 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
8888 New macro.
8889 * ada-lex.l: Ignore deprecated register warnings.
8890
cc75e0fd
SM
88912017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8892
8893 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
8894 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
8895
07809eaf
SM
88962017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8897
8898 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
8899 its own line.
8900
f076f034
SM
89012017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8902
8903 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
8904
0dd5cbc5
AH
89052017-06-23 Alan Hayward <alan.hayward@arm.com>
8906
8907 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
8908 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
8909 (xtensa_register_read_masked): Likewise.
8910
d4c6ce5b
SDJ
89112017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
8912
8913 * common/environ.c (gdb_environ::unset): Update comment.
8914
16892a03
AH
89152017-06-22 Alan Hayward <alan.hayward@arm.com>
8916
8917 * python/py-unwind.c (pyuw_sniffer): Allocate space for
8918 registers.
8919
d7dcbefc
AH
89202017-06-22 Alan Hayward <alan.hayward@arm.com>
8921
8922 * record-full.c (record_full_exec_insn): Use byte_vector.
8923
b30ff123
YQ
89242017-06-22 Yao Qi <yao.qi@linaro.org>
8925
8926 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
8927 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8928
4fa847d7
AH
89292017-06-22 Alan Hayward <alan.hayward@arm.com>
8930
8931 * remote.c (cached_reg): Move from here...
8932 * regcache.h (cached_reg): ...to here.
8933 * python/py-unwind.c (struct reg_info): Remove.
8934 (cached_frame_info): Use cached_reg_t.
8935 (pyuw_prev_register): Likewise.
8936 (pyuw_sniffer): Use cached_reg_t and allocate registers.
8937 (pyuw_dealloc_cache): Free all registers.
8938
f4906a9a
PA
89392017-06-22 Pedro Alves <palves@redhat.com>
8940 Simon Marchi <simon.marchi@ericsson.com>
8941
8942 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
8943 warning.
8944 * common/diagnostics.h: New file.
8945
b45a1208
PA
89462017-06-22 Pedro Alves <palves@redhat.com>
8947
8948 * common/agent.h: Add include guards.
8949
e4da2c61
SM
89502017-06-21 Simon Marchi <simon.marchi@ericsson.com>
8951
8952 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
8953 talk about addressable units instead of bytes.
8954
96160d60
SDJ
89552017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8956
8957 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
8958 of '::const_iterator'.
8959
9a6c7d9c
SDJ
89602017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8961
8962 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8963 'unittests/environ-selftests.c'.
8964 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
8965 * charset.c (find_charset_names): Declare object 'iconv_env'.
8966 Update code to use 'iconv_env' object. Remove call to
8967 'free_environ'.
8968 * common/environ.c: Include <utility>.
8969 (make_environ): Delete function.
8970 (free_environ): Delete function.
8971 (gdb_environ::clear): New function.
8972 (gdb_environ::operator=): New function.
8973 (gdb_environ::get): Likewise.
8974 (environ_vector): Delete function.
8975 (set_in_environ): Delete function.
8976 (gdb_environ::set): New function.
8977 (unset_in_environ): Delete function.
8978 (gdb_environ::unset): New function.
8979 (gdb_environ::envp): Likewise.
8980 * common/environ.h: Include <vector>.
8981 (struct gdb_environ): Delete; transform into...
8982 (class gdb_environ): ... this class.
8983 (free_environ): Delete prototype.
8984 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
8985 environ_vector): Likewise.
8986 * infcmd.c (run_command_1): Update code to call
8987 'envp' from 'gdb_environ' class.
8988 (environment_info): Update code to call methods from 'gdb_environ'
8989 class.
8990 (unset_environment_command): Likewise.
8991 (path_info): Likewise.
8992 (path_command): Likewise.
8993 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
8994 (inferior::inferior): Initialize 'environment' using the host's
8995 information.
8996 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
8997 Include "environ.h".
8998 (class inferior) <environment>: Change type from 'struct
8999 gdb_environ' to 'gdb_environ'.
9000 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
9001 methods from 'gdb_environ' class.
9002 * solib.c (solib_find_1): Likewise
9003 * unittests/environ-selftests.c: New file.
9004
75c554cf
YQ
90052017-06-20 Yao Qi <yao.qi@linaro.org>
9006
9007 * features/i386/i386-linux.xml: Exchange the order of including
9008 32bit-linux.xml and 32bit-sse.xml.
9009 * features/i386/i386-linux.c: Regenerated.
9010
72ddacb7
YQ
90112017-06-20 Yao Qi <yao.qi@linaro.org>
9012
9013 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
9014 Delete copy ctor and assignment operator.
9015 (tdesc_type): Likewise.
9016 (tdesc_feature): Likewise.
9017 (tdesc_free_reg): Remove.
9018 (tdesc_create_reg): Use new.
9019 (tdesc_free_type): Remove.
9020 (tdesc_create_vector): Use new.
9021 (tdesc_create_union): Likewise.
9022 (tdesc_create_flags): Likewise.
9023 (tdesc_create_enum): Likewise.
9024 (tdesc_free_feature): Delete.
9025 (free_target_description): Use delete.
9026
325c9fd4
JB
90272017-06-19 John Baldwin <jhb@FreeBSD.org>
9028
9029 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
9030 registers.
9031
16b7a719
PA
90322017-06-19 Pedro Alves <palves@redhat.com>
9033
9034 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
9035 after gdb::unlinker.
9036
1c8e01c9
SDJ
90372017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
9038
9039 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
9040 gdb_environ to access an environment variable.
9041
ffce45d2
TP
90422017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9043
9044 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
9045 gdb_byte*.
9046
1d4fbac9
SM
90472017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9048
9049 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
9050
8465943a
SM
90512017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9052
9053 * configure: Re-generate.
9054 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
9055
3e019bdc
SM
90562017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9057
9058 * configure: Re-generate.
9059 * warning.m4: Pass -Werror to compiler when checking for
9060 supported warning flags.
9061
cf0dd6f0
SM
90622017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9063
9064 * Makefile.in (COMPILE.pre): Add "-x c++".
9065
6f98355c
YQ
90662017-06-16 Alan Hayward <alan.hayward@arm.com>
9067 Pedro Alves <palves@redhat.com>
9068 Yao Qi <yao.qi@linaro.org>
9069
9070 * defs.h (RequireLongest): New.
9071 (extract_integer): Declare function template.
9072 (extract_signed_integer): Remove the declaration, but define it
9073 static inline.
9074 (extract_unsigned_integer): Likewise.
9075 (store_integer): Declare function template.
9076 (store_signed_integer): Remove the declaration, but define it
9077 static inline.
9078 (store_unsigned_integer): Likewise.
9079 * findvar.c (extract_integer): New function template.
9080 (extract_signed_integer): Remove.
9081 (extract_unsigned_integer): Remove.
9082 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
9083 instantiations.
9084 (store_integer): New function template.
9085 (store_signed_integer): Remove.
9086 (store_unsigned_integer): Remove.
9087 (store_integer): Explicit instantiations.
9088 * regcache.c (regcache_raw_read_signed): Update.
9089 (regcache::raw_read): New function.
9090 (regcache::raw_read_signed): Remove.
9091 (regcache::raw_read_unsigned): Remove.
9092 (regcache_raw_read_unsigned): Update.
9093 (regcache_raw_write_unsigned): Update.
9094 (regcache::raw_write_signed): Remove.
9095 (regcache::raw_write): New function.
9096 (regcache_cooked_read_signed): Update.
9097 (regcache::raw_write_unsigned): Remove.
9098 (regcache::cooked_read_signed): Remove.
9099 (regcache_cooked_read_unsigned): Update.
9100 (regcache::cooked_read_unsigned): Remove.
9101 (regcache_cooked_write_signed): Update.
9102 (regcache_cooked_write_unsigned): Update.
9103 * regcache.h (regcache) <raw_read_signed>: Remove.
9104 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
9105 <raw_read, raw_write>: New.
9106 <cooked_read_signed, cooked_write_signed>: Remove.
9107 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
9108 <cooked_read, cooked_write>: New.
9109 * sh64-tdep.c (sh64_pseudo_register_read): Update.
9110 (sh64_pseudo_register_write): Update.
9111
a87dc45a
AK
91122017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
9113
9114 * arc-tdep.c (arc_disassembler_options): New variable.
9115 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
9116 of default_print_insn.
9117 (arc_delayed_print_insn): Set info->section when needed,
9118 use default_print_insn to retrieve a disassembler.
9119
45159d6a
SDJ
91202017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
9121
9122 PR gdb/21574
9123 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
9124 to mention $SHELL and startup-with-shell.
9125
b46c4cf0
MF
91262017-06-14 Max Filippov <jcmvbkbc@gmail.com>
9127
9128 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
9129
6394c606
YQ
91302017-06-14 Yao Qi <yao.qi@linaro.org>
9131
9132 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
9133 default_print_insn instead of print_insn_aarch64.
9134 * arm-tdep.c (gdb_print_insn_arm): Call
9135 default_print_insn instead of print_insn_big_arm
9136 and print_insn_little_arm.
9137 * i386-tdep.c (i386_print_insn): Call default_print_insn
9138 instead of print_insn_i386.
9139 * ia64-tdep.c (ia64_print_insn): Call
9140 default_print_insn instead of print_insn_ia64.
9141 * mips-tdep.c (gdb_print_insn_mips): Call
9142 default_print_insn instead of print_insn_big_mips
9143 and print_insn_little_mips.
9144 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
9145 instead of print_insn_spu.
9146
d5722aa2
PA
91472017-06-14 Pedro Alves <palves@redhat.com>
9148
9149 * ada-lang.c: Include "common/byte-vector.h".
9150 (ada_value_primitive_packed_val): Use gdb::byte_vector.
9151 * charset.c (wchar_iterator::iterate): Resize the vector instead
9152 of reserving it.
9153 * common/byte-vector.h: Include "common/def-vector.h".
9154 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
9155 * cli/cli-dump.c: Include "common/byte-vector.h".
9156 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
9157 * common/byte-vector.h: New file.
9158 * common/def-vector.h: New file.
9159 * common/default-init-alloc.h: New file.
9160 * dwarf2loc.c: Include "common/byte-vector.h".
9161 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
9162 instead of reserving it.
9163 * dwarf2read.c: Include "common/byte-vector.h".
9164 (data_buf::m_vec): Now a gdb::byte_vector.
9165 * gdb_regex.c: Include "common/def-vector.h".
9166 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
9167 * mi/mi-main.c: Include "common/byte-vector.h".
9168 (mi_cmd_data_read_memory): Use gdb::byte_vector.
9169 * printcmd.c: Include "common/byte-vector.h".
9170 (print_scalar_formatted): Use gdb::byte_vector.
9171 * valprint.c: Include "common/byte-vector.h".
9172 (maybe_negate_by_bytes, print_decimal_chars): Use
9173 gdb::byte_vector.
9174
01ec7a27
SM
91752017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9176
9177 * darwin-nat.c: Include "nat/fork-inferior.h".
9178
848d9074
SM
91792017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9180
9181 * configure.nat: Factor out Darwin bits that are not
9182 architecture-specific. Add fork-inferior.o.
9183
3b912944
SM
91842017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9185
9186 * configure.nat: Factor out AIX bits that are not
9187 architecture-specific. Add fork-inferior.o.
9188
55acdf22
AA
91892017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9190
9191 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
9192 (read_pieced_value, write_pieced_value): ...here. Reduce to
9193 wrappers that just call rw_pieced_value.
9194
f65e2044
AA
91952017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9196
9197 * dwarf2loc.c (write_pieced_value): When writing the data for a
9198 memory piece, use write_memory_with_notification instead of
9199 write_memory.
9200
23f945bf
AA
92012017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9202
9203 * valops.c (read_value_memory): Change embedded_offset to
9204 represent a bit offset instead of a byte offset.
9205 * value.h (read_value_memory): Adjust comment.
9206
f236533e
AA
92072017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9208
9209 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
9210 dest_offset_bits and source_offset_bits.
9211 (write_pieced_value): Likewise.
9212
65d84b76
AA
92132017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9214
9215 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
9216 given by DW_OP_bit_piece.
9217 (write_pieced_value): Likewise.
9218
242d31ab
AA
92192017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9220
9221 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
9222 some other preparations to the places where sufficient information
9223 is available.
9224 (write_pieced_value): Likewise.
9225
03c8af18
AA
92262017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9227
9228 * dwarf2loc.c (bits_to_bytes): New function.
9229 (read_pieced_value): Fix offset calculations for register pieces
9230 on big-endian targets.
9231 (write_pieced_value): Likewise.
9232
840989c1
AA
92332017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9234
9235 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
9236 (write_pieced_value): Likewise.
9237
359b19bb
AA
92382017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9239
9240 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
9241 transfer the source value's least significant bits, instead of its
9242 lowest-addressed ones. Rename type_len to max_offset.
9243 (read_pieced_value): Mirror above changes to write_pieced_value as
9244 applicable.
9245
07c9ca3b
AA
92462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9247
9248 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
9249 truncate full bytes from dest_offset_bits before using it as an
9250 offset into the buffer.
9251
f1cc9874
AA
92522017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9253
9254 * dwarf2loc.c (write_pieced_value): Include transfer size in
9255 byte-wise check.
9256
cdaac320
AA
92572017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9258
9259 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
9260 calculation of this_size.
9261
af547a96
AA
92622017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9263
9264 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
9265 when targeting a bit-field.
9266 (write_pieced_value): Likewise.
9267
ddd7882a
AA
92682017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9269
9270 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
9271 (allocate_piece_closure): Drop addr_size parameter.
9272 (dwarf2_evaluate_loc_desc_full): Adjust call to
9273 allocate_piece_closure.
9274
e9352324
AA
92752017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9276
9277 PR gdb/21226
9278 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
9279 the LSB end, independent of endianness.
9280
d5d1163e
AA
92812017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9282
9283 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
9284 size capping.
9285
032bb6ea
YQ
92862017-06-13 Yao Qi <yao.qi@linaro.org>
9287
9288 * mips-linux-nat.c: Move include features/mips*-linux.c to
9289 mips-linux-tdep.c.
9290 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
9291 to mips-linux-tdep.c.
9292 * mips-linux-tdep.c: Include features/mips*-linux.c
9293 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
9294 functions.
9295 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
9296 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
9297 (tdesc_mips64_dsp_linux): Declare.
9298
f12f6bad
TT
92992017-06-12 Tom Tromey <tom@tromey.com>
9300
9301 * valprint.h (val_print_type_code_int): Remove.
9302 * valprint.c (generic_val_print_int): Always call
9303 val_print_scalar_formatted.
9304 (val_print_type_code_int): Remove.
9305 * printcmd.c (print_scalar_formatted): Handle options->format==0.
9306 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
9307 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
9308 * ada-valprint.c (ada_val_print_num): Use
9309 val_print_scalar_formatted.
9310
d9109c80
TT
93112017-06-12 Tom Tromey <tom@tromey.com>
9312
9313 * printcmd.c (print_scalar_formatted): Unify the two switches.
9314 Don't convert scalars to LONGEST.
9315
4ac0cb1c
TT
93162017-06-12 Tom Tromey <tom@tromey.com>
9317
9318 PR exp/16225:
9319 * valprint.h (print_decimal_chars): Update.
9320 * valprint.c (maybe_negate_by_bytes): New function.
9321 (print_decimal_chars): Add "is_signed" argument.
9322 * printcmd.c (print_scalar_formatted): Update.
9323
30a25466
TT
93242017-06-12 Tom Tromey <tom@tromey.com>
9325
9326 PR exp/16225:
9327 * valprint.h (print_binary_chars, print_hex_chars): Update.
9328 * valprint.c (val_print_type_code_int): Update.
9329 (print_binary_chars): Add "zero_pad" argument.
9330 (emit_octal_digit): New function.
9331 (print_octal_chars): Don't zero-pad.
9332 (print_decimal_chars): Likewise.
9333 (print_hex_chars): Add "zero_pad" argument.
9334 * sh64-tdep.c (sh64_do_fp_register): Update.
9335 * regcache.c (regcache::dump): Update.
9336 * printcmd.c (print_scalar_formatted): Update.
9337 * infcmd.c (default_print_one_register_info): Update.
9338
b3464d03
PA
93392017-06-12 Pedro Alves <palves@redhat.com>
9340 Alan Hayward <alan.hayward@arm.com>
9341
9342 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
9343 (mips_eabi_push_dummy_call): Rename local 'regsize' to
9344 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
9345 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
9346 Assert that abi_regsize bytes fit in 'ref_valbuf'.
9347
4b76cda9
PA
93482017-06-12 Pedro Alves <palves@redhat.com>
9349
9350 * dwarf2read.c (mapped_symtab::data): Now a vector of
9351 symtab_index_entry instead of vector of
9352 std::unique_ptr<symtab_index_entry>. All users adjusted to check
9353 whether an element's name is NULL instead of checking whether the
9354 element itself is NULL.
9355 (find_slot): Change return type. Adjust.
9356 (hash_expand, , add_index_entry, uniquify_cu_indices)
9357 (write_hash_table): Adjust.
9358
e8f8bcb3
PA
93592017-06-12 Pedro Alves <palves@redhat.com>
9360
9361 * dwarf2read.c (recursively_count_psymbols): New function.
9362 (write_psymtabs_to_index): Call it to compute number of psyms and
9363 pass estimate size of psyms_seen to unordered_set's ctor.
9364
70a1152b
PA
93652017-06-12 Pedro Alves <palves@redhat.com>
9366
9367 * dwarf2read.c (write_hash_table): Check if key already exists
9368 before emplacing.
9369
c2f134ac
PA
93702017-06-12 Pedro Alves <palves@redhat.com>
9371
9372 * dwarf2read.c (data_buf::append_space): Rename to...
9373 (data_buf::grow): ... this, and make private. Adjust all callers.
9374 (data_buf::append_uint): New method.
9375 (add_address_entry, write_one_signatured_type)
9376 (write_psymtabs_to_index): Use it.
9377
a81e6d4d
PA
93782017-06-12 Pedro Alves <palves@redhat.com>
9379
9380 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
9381 (file_write (FILE *, const std::vector<Elem>&)): Delete.
9382 (data_buf::file_write): Call ::fwrite directly.
9383
6fd931f2
PA
93842017-06-12 Pedro Alves <palves@redhat.com>
9385
9386 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
9387 std::vector::erase.
9388
bc8f2430
JK
93892017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9390
9391 Code cleanup: C++ify .gdb_index producer.
9392 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
9393 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
9394 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
9395 (create_strtab, add_string): Remove.
9396 (file_write, data_buf): New.
9397 (struct symtab_index_entry): Use std::vector for cu_indices.
9398 (struct mapped_symtab): Use std::vector for data.
9399 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
9400 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
9401 Remove.
9402 (find_slot): Change return type. Update it to the new data structures.
9403 (hash_expand, add_index_entry): Update it to the new data structures.
9404 (offset_type_compare): Remove.
9405 (uniquify_cu_indices): Update it to the new data structures.
9406 (c_str_view, c_str_view_hasher, vector_hasher): New.
9407 (add_indices_to_cpool): Remove.
9408 (write_hash_table): Update it to the new data structures.
9409 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
9410 (eq_psymtab_cu_index): Remove.
9411 (psym_index_map): New typedef.
9412 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
9413 reference and std::unordered_map for cu_index_htab.
9414 (add_address_entry, add_address_entry_worker, write_address_map)
9415 (write_psymbols): Update it to the new data structures.
9416 (write_obstack): Remove.
9417 (struct signatured_type_index_data): Change types_list to a data_buf
9418 reference and psyms_seen to a std::unordered_set reference.
9419 (write_one_signatured_type, recursively_write_psymbols)
9420 (write_psymtabs_to_index): Update it to the new data structures.
9421
c4dcb155
SM
94222017-06-11 Simon Marchi <simon.marchi@ericsson.com>
9423
9424 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
9425 separate-debug-file commands.
9426 * symfile.h (separate_debug_file_debug): New global.
9427 * symfile.c (separate_debug_file_debug): New global.
9428 (separate_debug_file_exists, find_separate_debug_file): Add
9429 debug output.
9430 (_initialize_symfile): Add "set debug separate-debug-file"
9431 command.
9432 * build-id.c (build_id_to_debug_bfd,
9433 find_separate_debug_file_by_buildid): Add debug output.
9434
6d45d4b4
SM
94352017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
9436
9437 * gdbarch.sh (displaced_step_free_closure): Remove.
9438 * gdbarch.h, gdbarch.c: Re-generate.
9439 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
9440 displaced_step_free_closure.
9441 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
9442 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9443 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9444 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
9445 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9446 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9447 * arch-utils.h (simple_displaced_step_free_closure): Remove.
9448 * arch-utils.c (simple_displaced_step_free_closure): Remove.
9449 * infrun.c (displaced_step_clear): Call xfree instead of
9450 gdbarch_displaced_step_free_closure.
9451
2f91880f
SDJ
94522017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
9453
9454 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
9455 NULL".
9456
b8b6e72f
AH
94572017-06-08 Alan Hayward <alan.hayward@arm.com>
9458
9459 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
9460 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
9461 (mn10300_push_dummy_call): Likewise.
9462
5369082e
AH
94632017-06-08 Alan Hayward <alan.hayward@arm.com>
9464
9465 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
9466
ff4ca5ac
AH
94672017-06-08 Alan Hayward <alan.hayward@arm.com>
9468
9469 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
9470
aefd8b33
SDJ
94712017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9472
9473 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
9474 able to start inferiors using a shell.
9475 (New remote packets): Announce new packet "QStartupWithShell".
9476 * remote.c: Add PACKET_QStartupWithShell.
9477 (extended_remote_create_inferior): Handle new
9478 PACKET_QStartupWithShell.
9479 (remote_protocol_features) <QStartupWithShell>: New entry for
9480 PACKET_QStartupWithShell.
9481 (_initialize_remote): Call "add_packet_config_cmd" for
9482 QStartupShell.
9483
2090129c
SDJ
94842017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9485 Pedro Alves <palves@redhat.com>
9486
9487 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
9488 and "nat/fork-inferior.h".
9489 * common/common-inferior.h: New file, with contents from
9490 "gdb/inferior.h".
9491 * commom/common-utils.c: Include "common-utils.h".
9492 (stringify_argv): New function.
9493 * common/common-utils.h (stringify_argv): New prototype.
9494 * configure.nat: Add "fork-inferior.o" as a dependency for
9495 "*linux*", "fbsd*" and "nbsd*" hosts.
9496 * corefile.c (get_exec_file): Update comment.
9497 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
9498 instead of "startup_inferior".
9499 (darwin_create_inferior): Call "add_thread_silent" after
9500 "fork_inferior".
9501 * fork-child.c: Cleanup unnecessary includes.
9502 (SHELL_FILE): Move to "common/common-fork-child.c".
9503 (environ): Likewise.
9504 (exec_wrapper): Initialize.
9505 (get_exec_wrapper): New function.
9506 (breakup_args): Move to "common/common-fork-child.c"; rename to
9507 "breakup_args_for_exec".
9508 (escape_bang_in_quoted_argument): Move to
9509 "common/common-fork-child.c".
9510 (saved_ui): New variable.
9511 (prefork_hook): New function.
9512 (postfork_hook): Likewise.
9513 (postfork_child_hook): Likewise.
9514 (gdb_startup_inferior): Likewise.
9515 (fork_inferior): Move to "common/common-fork-child.c". Update
9516 function to support gdbserver.
9517 (startup_inferior): Likewise.
9518 * gdbcore.h (get_exec_file): Remove declaration.
9519 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
9520 instead of "startup_inferior". Call "add_thread_silent" after
9521 "fork_inferior".
9522 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
9523 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
9524 instead of "startup_inferior". Call "add_thread_silent" after
9525 "fork_inferior".
9526 * inferior.h: Include "common-inferior.h".
9527 (trace_start_error): Move to "common/common-utils.h".
9528 (trace_start_error_with_name): Likewise.
9529 (fork_inferior): Move prototype to "nat/fork-inferior.h".
9530 (startup_inferior): Likewise.
9531 (gdb_startup_inferior): New prototype.
9532 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
9533 * nat/fork-inferior.h: New file.
9534 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
9535 instead of "startup_inferior". Call "add_thread_silent" after
9536 "fork_inferior".
9537 * target.h (target_terminal_init): Move prototype to
9538 "target/target.h".
9539 (target_terminal_inferior): Likewise.
9540 (target_terminal_ours): Likewise.
9541 * target/target.h (target_terminal_init): New prototype, moved
9542 from "target.h".
9543 (target_terminal_inferior): Likewise.
9544 (target_terminal_ours): Likewise.
9545 * utils.c (gdb_flush_out_err): New function.
9546
043a4934
SDJ
95472017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9548
9549 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
9550 * common/common-gdbthread.h: New file, with parts from
9551 "gdb/gdbthread.h".
9552 * gdbthread.h: Include "common-gdbthread.h".
9553 (switch_to_thread): Moved to "common/common-gdbthread.h".
9554
15652511
SDJ
95552017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9556
9557 * Makefile.in (SFILES): Add "common/job-control.c".
9558 (HFILES_NO_SRCDIR): Add "common/job-control.h".
9559 (COMMON_OBS): Add "job-control.o".
9560 * common/job-control.c: New file, with contents from
9561 "gdb/inflow.c".
9562 * common/job-control.h: New file, with contents from "terminal.h".
9563 * fork-child.c: Include "job-control.h".
9564 * inflow.c: Include "job-control.h".
9565 (gdb_setpgid): Move to "common/common-inflow.c".
9566 (_initialize_inflow): Move setting of "job_control" to
9567 "handle_job_control".
9568 * terminal.h (job_control): Moved to "common/common-terminal.h".
9569 (gdb_setpgid): Likewise.
9570 * top.c: Include "job_control.h".
9571 * utils.c: Likewise.
9572 (job_control): Moved to "job-control.c".
9573
2d7cc5c7
PA
95742017-06-07 Pedro Alves <palves@redhat.com>
9575
9576 * Makefile.in (SFILES): Add gdb_regex.c.
9577 (COMMON_OBS): Add gdb_regex.o.
9578 * ada-lang.c (ada_add_standard_exceptions)
9579 (ada_add_exceptions_from_frame, name_matches_regex)
9580 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
9581 parameter type to compiled_regex. Adjust.
9582 (ada_exceptions_list): Use compiled_regex.
9583 * break-catch-throw.c (exception_catchpoint::pattern): Now a
9584 std::unique_ptr<compiled_regex>.
9585 (exception_catchpoint::~exception_catchpoint): Remove regfree
9586 call.
9587 (check_status_exception_catchpoint): Adjust to use compiled_regex.
9588 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
9589 * breakpoint.c (solib_catchpoint::compiled): Now a
9590 std::unique_ptr<compiled_regex>.
9591 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
9592 (check_status_catch_solib): Adjust to use compiled_regex.
9593 (add_solib_catchpoint): Adjust to use compiled_regex.
9594 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
9595 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
9596 compiled_regex reference. Adjust to use it.
9597 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
9598 declaration. Include "gdb_regex.h".
9599 (apropos_cmd): Change regex parameter to compiled_regex reference.
9600 * gdb_regex.c: New file.
9601 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
9602 declarations.
9603 (class compiled_regex): New.
9604 * linux-tdep.c: Include "common/gdb_optional.h".
9605 (struct mapping_regexes): New, factored out from
9606 mapping_is_anonymous_p, and adjusted to use compiled_regex.
9607 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
9608 gdb::optional and remove cleanups. Adjust to compiled_regex.
9609 * probe.c: Include "common/gdb_optional.h".
9610 (collect_probes): Use compiled_regex and gdb::optional and remove
9611 cleanups.
9612 * skip.c: Include "common/gdb_optional.h".
9613 (skiplist_entry::compiled_function_regexp): Now a
9614 gdb::optional<compiled_regex>.
9615 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
9616 (free_skiplist_entry): Remove regfree call.
9617 (compile_skip_regexp, skip_rfunction_p): Adjust to use
9618 compiled_regex and gdb::optional.
9619 * symtab.c: Include "common/gdb_optional.h".
9620 (search_symbols): Use compiled_regex and gdb::optional.
9621 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
9622 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
9623 to gdb_regex.c.
9624
50d6adef
AH
96252017-06-07 Alan Hayward <alan.hayward@arm.com>
9626
9627 * regcache.c (regcache::save): Avoid buffer use.
9628 (regcache::dump): Likewise.
9629
4a8a33c8
AH
96302017-06-07 Alan Hayward <alan.hayward@arm.com>
9631
9632 * sh-tdep.c (sh_pseudo_register_read): Remove
9633 MAX_REGISTER_SIZE.
9634 (sh_pseudo_register_write): Likewise.
9635 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
9636 (sh64_pseudo_register_write): Likewise
9637
d1be909e
AH
96382017-06-07 Alan Hayward <alan.hayward@arm.com>
9639
9640 * aarch64-tdep.c (aarch64_store_return_value): Use
9641 V_REGISTER_SIZE.
9642 (aarch64_pseudo_read_value): Likewise.
9643 (aarch64_pseudo_write): Likewise.
9644
f4a65042
YQ
96452017-06-06 Yao Qi <yao.qi@linaro.org>
9646
9647 * regformats/regdef.h (set_register_cache): Remove the
9648 declaration.
9649
9f7fb0aa
AH
96502017-06-06 Alan Hayward <alan.hayward@arm.com>
9651
9652 * frame.c (frame_unwind_register_signed): Use
9653 frame_unwind_register_value.
9654
e1e01040
PA
96552017-06-06 Pedro Alves <palves@redhat.com>
9656
9657 PR breakpoints/21553
9658 * breakpoint.c (create_breakpoints_sal_default)
9659 (init_breakpoint_sal, create_breakpoint_sal): Use
9660 gdb::unique_xmalloc_ptr for string parameters.
9661 (create_breakpoint): Constify 'extra_string' and 'cond_string'
9662 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
9663 (base_breakpoint_create_breakpoints_sal)
9664 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
9665 (strace_marker_create_breakpoints_sal)
9666 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
9667 string parameters.
9668 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
9669 gdb::unique_xmalloc_ptr for string parameters.
9670 (create_breakpoint): Constify 'extra_string' and 'cond_string'
9671 parameters.
9672
fbe654c8
AH
96732017-06-06 Alan Hayward <alan.hayward@arm.com>
9674
9675 * alpha-tdep.c (alpha_register_to_value): Use
9676 get_frame_register_value.
9677 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
9678
ae0d01d6
AH
96792017-06-06 Alan Hayward <alan.hayward@arm.com>
9680
9681 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
9682 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
9683 (ia64_value_to_register): Likewise.
9684 (ia64_extract_return_value): Likewise.
9685 (ia64_store_return_value): Likewise.
9686 (ia64_push_dummy_call): Likewise.
9687
49cf576c
JB
96882017-06-04 Joel Brobecker <brobecker@adacore.com>
9689
9690 GDB 8.0 released.
9691
26b6a6ab
SM
96922017-06-03 Simon Marchi <simon.marchi@ericsson.com>
9693
9694 * x86-linux-nat.c (struct arch_lwp_info): Remove.
9695
22827c51
SM
96962017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
9697
9698 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
9699 parameter.
9700 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
9701
0e05cf3a
SM
97022017-06-02 Simon Marchi <simon.marchi@ericsson.com>
9703
9704 * event-loop.c (poll_timers): Unallocate timer using delete
9705 instead of xfree.
9706
c1fc2657
SM
97072017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9708
9709 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
9710 (struct breakpoint) <~breakpoint>: New.
9711 (struct watchpoint): Inherit from breakpoint.
9712 <~watchpoint>: New.
9713 <base>: Remove.
9714 (struct tracepoint): Inherit from breakpoint.
9715 <base>: Remove.
9716 * breakpoint.c (longjmp_breakpoint_ops): Remove.
9717 (struct longjmp_breakpoint): Inherit from breakpoint.
9718 <~longjmp_breakpoint>: New.
9719 <base>: Remove.
9720 (new_breakpoint_from_type): Remove casts.
9721 (watchpoint_in_thread_scope): Remove reference to base field.
9722 (watchpoint_del_at_next_stop): Likewise.
9723 (update_watchpoint): Likewise.
9724 (watchpoint_check): Likewise.
9725 (bpstat_check_watchpoint): Likewise.
9726 (set_longjmp_breakpoint): Likewise.
9727 (struct fork_catchpoint): Inherit from breakpoint.
9728 <base>: Remove.
9729 (struct solib_catchpoint): Inherit from breakpoint.
9730 <~solib_catchpoint>: New.
9731 <base>: Remove.
9732 (dtor_catch_solib): Change to ...
9733 (solib_catchpoint::~solib_catchpoint): ... this.
9734 (breakpoint_hit_catch_solib): Remove reference to base field.
9735 (add_solib_catchpoint): Likewise.
9736 (create_fork_vfork_event_catchpoint): Likewise.
9737 (struct exec_catchpoint): Inherit from breakpoint.
9738 <~exec_catchpoint>: New.
9739 <base>: Remove.
9740 (dtor_catch_exec): Change to ...
9741 (exec_catchpoint::~exec_catchpoint): ... this.
9742 (dtor_watchpoint): Change to ...
9743 (watchpoint::~watchpoint): ... this.
9744 (watch_command_1): Remove reference to base field.
9745 (catch_exec_command_1): Likewise.
9746 (base_breakpoint_dtor): Change to ...
9747 (breakpoint::~breakpoint): ... this.
9748 (base_breakpoint_ops): Remove dtor field value.
9749 (longjmp_bkpt_dtor): Change to ...
9750 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
9751 (strace_marker_create_breakpoints_sal): Remove reference to base
9752 field.
9753 (delete_breakpoint): Don't manually call breakpoint destructor.
9754 (create_tracepoint_from_upload): Remove reference to base field.
9755 (trace_pass_set_count): Likewise.
9756 (initialize_breakpoint_ops): Don't initialize
9757 momentary_breakpoint_ops, don't set dtors.
9758 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
9759 <~ada_catchpoint>: New.
9760 <base>: Remove.
9761 (create_excep_cond_exprs): Remove reference to base field.
9762 (dtor_exception): Change to ...
9763 (ada_catchpoint::~ada_catchpoint): ... this.
9764 (dtor_catch_exception): Remove.
9765 (dtor_catch_exception_unhandled): Remove.
9766 (dtor_catch_assert): Remove.
9767 (create_ada_exception_catchpoint): Remove reference to base
9768 field.
9769 (initialize_ada_catchpoint_ops): Don't set dtors.
9770 * break-catch-sig.c (struct signal_catchpoint): Inherit from
9771 breakpoint.
9772 <~signal_catchpoint>: New.
9773 <base>: Remove.
9774 (signal_catchpoint_dtor): Change to ...
9775 (signal_catchpoint::~signal_catchpoint): ... this.
9776 (create_signal_catchpoint): Remove reference to base field.
9777 (initialize_signal_catchpoint_ops): Don't set dtor.
9778 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
9779 from breakpoint.
9780 <~syscall_catchpoint>: New.
9781 <base>: Remove.
9782 (dtor_catch_syscall): Change to ...
9783 (syscall_catchpoint::~syscall_catchpoint): ... this.
9784 (create_syscall_event_catchpoint): Remove reference to base
9785 field.
9786 (initialize_syscall_catchpoint_ops): Don't set dtor.
9787 * break-catch-throw.c (struct exception_catchpoint): Inherit
9788 from breakpoint.
9789 <~exception_catchpoint>: New.
9790 <base>: Remove.
9791 (dtor_exception_catchpoint): Change to ...
9792 (exception_catchpoint::~exception_catchpoint): ... this.
9793 (handle_gnu_v3_exceptions): Remove reference to base field.
9794 (initialize_throw_catchpoint_ops): Don't set dtor.
9795 * ctf.c (ctf_get_traceframe_address): Remove reference to base
9796 field.
9797 * remote.c (remote_get_tracepoint_status): Likewise.
9798 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
9799 * tracefile.c (tracefile_fetch_registers): Likewise.
9800 * tracepoint.c (actions_command): Likewise.
9801 (validate_actionline): Likewise.
9802 (tfind_1): Likewise.
9803 (get_traceframe_location): Likewise.
9804 (find_matching_tracepoint_location): Likewise.
9805 (parse_tracepoint_status): Likewise.
9806 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
9807
3b0871f4
SM
98082017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9809
9810 * breakpoint.c (struct longjmp_breakpoint): New struct.
9811 (is_tracepoint_type): Change return type to bool.
9812 (is_longjmp_type): New function.
9813 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
9814 (set_raw_breakpoint_without_location): Use
9815 new_breakpoint_from_type.
9816 (set_raw_breakpoint): Likewise.
9817
a5e364af
SM
98182017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9819
9820 * breakpoint.c (new_breakpoint_from_type): New function.
9821 (create_breakpoint_sal): Use new_breakpoint_from_type and
9822 unique_ptr.
9823 (create_breakpoint): Likewise.
9824
ae3b3f34
SM
98252017-05-31 Simon Marchi <simon.marchi@ericsson.com>
9826
9827 * memattr.c (mem_info_command): Rename to ...
9828 (info_mem_command): ... this.
9829 (mem_enable_command): Rename to ...
9830 (enable_mem_command): ... this.
9831 (mem_disable_command): Rename to ...
9832 (disable_mem_command): ... this.
9833 (mem_delete_command): Rename to ...
9834 (delete_mem_command): ... this.
9835 (_initialize_mem): Adjust function names.
9836
13ace077
MM
98372017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9838
9839 * btrace.c (handle_pt_insn_events): New.
9840 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
9841 STATUS. Split into this and ...
9842 (handle_pt_insn_event_flags): ... this.
9843
c56ccc05
MM
98442017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9845
9846 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
9847 and struct pt_insn.resynced.
9848 * configure: Regenerated.
9849 * config.in: Regenerated.
9850
08c3f6d2
TW
98512017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9852
9853 * btrace.c (ftrace_find_call_by_number): New function.
9854 (ftrace_new_function): Store objects, not pointers.
9855 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
9856 ftrace_new_gap, ftrace_update_function,
9857 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
9858 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
9859 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
9860 btrace_ends_with_single_insn, btrace_call_get): Account for
9861 btrace_thread_info::functions now storing objects.
9862 * btrace.h (struct btrace_thread_info): Add constructor.
9863 (struct btrace_thread_info) <functions>: Make std::vector.
9864 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
9865 Initialize with default values.
9866 * record-btrace.c (record_btrace_frame_sniffer): Account for
9867 btrace_thread_info::functions now storing objects.
9868
8ffd39f2
TW
98692017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9870
9871 * btrace.c: Remove typedef bfun_s.
9872 (ftrace_new_gap): Directly add gaps to the list of gaps.
9873 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
9874 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
9875 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
9876 instead of gdb VEC.
9877
4aeb0dfc
TW
98782017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9879
9880 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
9881 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
9882 with btrace_thread_info::next_segment and
9883 btrace_thread_info::prev_segment.
9884 * btrace.h: Remove struct btrace_func_link.
9885 (struct btrace_function): Replace pair of function segment pointers
9886 with pair of indices.
9887 * python/py-record-btrace.c (btpy_call_prev_sibling,
9888 btpy_call_next_sibling): Replace references to
9889 btrace_thread_info::segment with btrace_thread_info::next_segment and
9890 btrace_thread_info::prev_segment.
9891 * record-btrace.c (record_btrace_frame_this_id): Use
9892 btrace_find_call_by_number.
9893
eb8f2b9c
TW
98942017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9895
9896 * btrace.c (ftrace_new_function, ftrace_fixup_level,
9897 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
9898 btrace_insn_next, btrace_insn_prev): Remove references to
9899 btrace_thread_info::flow.
9900 * btrace.h (struct btrace_function): Remove FLOW.
9901
42bfe59e
TW
99022017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9903
9904 * btrace.c (ftrace_find_call_by_number): New function.
9905 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
9906 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
9907 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
9908 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
9909 index.
9910 * btrace.h (struct btrace_function): Turn UP into an index.
9911 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
9912 as an index.
9913 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
9914 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
9915 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
9916
b54b03bd
TW
99172017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9918
9919 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9920 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9921 ftrace_update_function, ftrace_compute_global_level_offset,
9922 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
9923 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
9924 btrace_insn_end, btrace_is_empty): Remove references to
9925 btrace_thread_info::begin and btrace_thread_info::end.
9926 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
9927 (struct btrace_thread_info) <functions>: Adjust comment.
9928 * record-btrace.c (record_btrace_start_replaying): Remove reference to
9929 btrace_thread_info::begin.
9930
8286623c
TW
99312017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9932
9933 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9934 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9935 ftrace_update_function): Remove arguments that implicitly were always
9936 BTINFO->END.
9937 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
9938 Don't pass BTINFO->END.
9939
a0f1b963
TW
99402017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9941
9942 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
9943 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
9944 btrace_find_insn_by_number): Replace function segment pointer with
9945 index.
9946 (btrace_insn_cmp): Simplify.
9947 * btrace.h: (struct btrace_insn_iterator) Rename index to
9948 insn_index. Replace function segment pointer with index into function
9949 segment vector.
9950 * record-btrace.c (record_btrace_call_history): Replace function
9951 segment pointer use with index.
9952 (record_btrace_frame_sniffer): Retrieve function call segment through
9953 vector.
9954 (record_btrace_set_replay): Remove defunc't safety check.
9955
f158f208
TW
99562017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9957
9958 * btrace.c (btrace_ends_with_single_insn): New function.
9959 (btrace_call_get, btrace_call_number, btrace_call_begin,
9960 btrace_call_end, btrace_call_next, btrace_call_prev,
9961 btrace_find_call_by_number): Use index into call segment vector
9962 instead of pointer.
9963 (btrace_call_cmp): Simplify.
9964 * btrace.h (struct btrace_call_iterator): Replace function call segment
9965 pointer with index into vector.
9966 * record-btrace.c (record_btrace_call_history): Use index instead of
9967 pointer.
9968
521103fd
TW
99692017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9970
9971 * btrace.c (btrace_insn_begin, btrace_insn_end,
9972 btrace_find_insn_by_number): Add btinfo to iterator.
9973 * btrace.h (struct btrace_insn_iterator): Add btinfo.
9974
17b89b34
TW
99752017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9976
9977 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
9978 and save pointers directly.
9979 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
9980 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
9981 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
9982 changed signature of functions.
9983 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
9984 (btrace_fetch): Remove code that adds btrace_function pointers to
9985 vector of btrace_functions.
9986 (btrace_clear): Simplify freeing vector of btrace_functions.
9987
2b51eddc
TW
99882017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9989
9990 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
9991 Replace VEC_* with std::vector functions.
9992 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
9993 (struct btrace_thread_info)<functions>: Change type to std::vector.
9994
db6be0d5
SM
99952017-05-30 Simon Marchi <simon.marchi@ericsson.com>
9996
9997 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
9998 "Removed targets and native configurations" up. Merge duplicate
9999 "New commands" sub-sections. Add "New options" sub-sections.
10000
b057297a
AH
100012017-05-26 Alan Hayward <alan.hayward@arm.com>
10002
10003 * defs.h (copy_integer_to_size): New declaration.
10004 * findvar.c (copy_integer_to_size): New function.
10005 (do_cint_test): New selftest function.
10006 (copy_integer_to_size_test): Likewise.
10007 (_initialize_findvar): Likewise.
10008 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
10009 (mips_fbsd_collect_reg): Use raw_collect_integer.
10010 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
10011 (mips64_fill_gregset): Use raw_collect_integer
10012 (mips64_fill_fpregset): Use raw_supply_integer.
10013 * regcache.c (regcache::raw_supply_integer): New function.
10014 (regcache::raw_collect_integer): Likewise.
10015 * regcache.h: (regcache::raw_supply_integer): New declaration.
10016 (regcache::raw_collect_integer): Likewise.
10017
b77b02a5
YQ
100182017-05-24 Yao Qi <yao.qi@linaro.org>
10019
10020 * Makefile.in (SFILES): Add gdbarch-selftests.c.
10021 (COMMON_OBS): Add gdbarch-selftests.o.
10022 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
10023 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
10024 * gdbarch-selftests.c: New file.
10025 * regcache.h (regcache) <~regcache>: Mark it virtual if
10026 GDB_SELF_TEST.
10027 <raw_write>: Likewise.
10028
e521e87e
YQ
100292017-05-24 Yao Qi <yao.qi@linaro.org>
10030
10031 * regcache.c (current_regcache): Change it to
10032 regcache::current_regcache.
10033 (regcache_observer_target_changed): Update.
10034 (regcache_thread_ptid_changed): Make it a regcache static
10035 method.
10036 (regcache_thread_ptid_changed): Update.
10037 (class regcache_access): New.
10038 (current_regcache_test): Update.
10039 (_initialize_regcache): Update.
10040 * regcache.h: Include forward_list.
10041 (regcache): Declare regcache_thread_ptid_changed and declare
10042 registers_changed_ptid as friend.
10043
d8e07dda
YQ
100442017-05-24 Yao Qi <yao.qi@linaro.org>
10045
10046 * i387-tdep.c (i387_register_to_value): Use register_size
10047 instead of TYPE_LENGTH.
10048 * m68k-tdep.c (m68k_register_to_value): Likewise.
10049
8c8f9122
YQ
100502017-05-24 Yao Qi <yao.qi@linaro.org>
10051
10052 * i387-tdep.c (i387_convert_register_p): Return false if type
10053 code isn't TYPE_CODE_FLT.
10054
68fce50f
YQ
100552017-05-24 Yao Qi <yao.qi@linaro.org>
10056
10057 * alpha-tdep.c (alpha_convert_register_p): Return true if type
10058 length is 4.
10059 (alpha_register_to_value): Remove type length check.
10060 (alpha_value_to_register): Likewise.
10061
88954b49
YQ
100622017-05-24 Yao Qi <yao.qi@linaro.org>
10063
10064 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
10065 TYPE_CODE_FLT.
10066
e3ec9b69
YQ
100672017-05-24 Yao Qi <yao.qi@linaro.org>
10068
10069 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
10070 TYPE_CODE_FLT or not.
10071
cdd238da
YQ
100722017-05-24 Yao Qi <yao.qi@linaro.org>
10073
10074 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
10075 * avr-tdep.c (avr_gdbarch_init): Likewise.
10076 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10077 * cris-tdep.c (cris_gdbarch_init): Likewise.
10078 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
10079 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10080 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10081 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10082 * mep-tdep.c (mep_gdbarch_init): Likewise.
10083 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10084 * mips-tdep.c (mips_gdbarch_init): Likewise.
10085 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10086 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10087 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
10088 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10089 * v850-tdep.c (v850_gdbarch_init): Likewise.
10090
7a3929c4
YQ
100912017-05-24 Yao Qi <yao.qi@linaro.org>
10092
10093 * selftest-arch.c (tests_with_arch): Call registers_changed
10094 and reinit_frame_cache.
10095 * selftest.c (run_self_tests): Likewise.
10096
f4985dba
YQ
100972017-05-24 Yao Qi <yao.qi@linaro.org>
10098
10099 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
10100 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
10101
ab20fa4a
YQ
101022017-05-24 Yao Qi <yao.qi@linaro.org>
10103
10104 * rl78-tdep.c (rl78_gdbarch_init): Don't call
10105 set_gdbarch_print_insn.
10106
f532ab94
YQ
101072017-05-24 Yao Qi <yao.qi@linaro.org>
10108
10109 * h8300-tdep.c (h8300_gdbarch_init): Don't call
10110 set_gdbarch_print_insn.
10111
39503f82
YQ
101122017-05-24 Yao Qi <yao.qi@linaro.org>
10113
10114 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10115 set_gdbarch_print_insn.
10116 * arc-tdep.c (arc_gdbarch_init): Likewise.
10117 * arch-utils.c: include dis-asm.h.
10118 (default_print_insn): New function.
10119 * arch-utils.h (default_print_insn): Declare.
10120 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
10121 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10122 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
10123 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
10124 * frv-tdep.c (frv_gdbarch_init): Likewise.
10125 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
10126 * gdbarch.sh (print_insn): Use default_print_insn.
10127 * gdbarch.c: Regenerated.
10128 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10129 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
10130 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10131 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
10132 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10133 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
10134 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
10135 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10136 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
10137 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10138 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10139 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10140 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
10141 * mt-tdep.c (mt_gdbarch_init): Likewise.
10142 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10143 * nios2-tdep.c (nios2_print_insn): Remove.
10144 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
10145 * rx-tdep.c (rx_gdbarch_init): Likewise.
10146 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10147 * score-tdep.c (score_print_insn): Remove.
10148 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
10149 * sh-tdep.c (sh_gdbarch_init): Likewise.
10150 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10151 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10152 * tic6x-tdep.c (tic6x_print_insn): Remove.
10153 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
10154 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
10155 * v850-tdep.c (v850_gdbarch_init): Likewise.
10156 * vax-tdep.c (vax_gdbarch_init): Likewise.
10157 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10158 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
10159
f7241d4f
JB
101602017-05-23 John Baldwin <jhb@FreeBSD.org>
10161
10162 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
10163 (MIPS_FP0_REGNUM): Remove.
10164 (MIPS_FSR_REGNUM): Remove.
10165 (mips_fbsd_supply_fpregs): Use mips_regnum.
10166 (mips_fbsd_supply_gregs): Likewise.
10167 (mips_fbsd_collect_fpregs): Likewise.
10168 (mips_fbsd_collect_gregs): Likewise.
10169
d489d81d
JB
101702017-05-23 John Baldwin <jhb@FreeBSD.org>
10171
10172 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
10173 (getpfpregs_supplies): New function.
10174 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
10175 getfpregs_supplies.
10176 (mips_fbsd_store_inferior_registers): Likewise.
10177
e11b3cdc
PA
101782017-05-22 Pedro Alves <palves@redhat.com>
10179
10180 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
10181 maintainer.
10182
0f068fb5
AH
101832017-05-22 Alan Hayward <alan.hayward@arm.com>
10184
10185 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
10186 (store_register): Likewise.
10187 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
10188 (get_decimal_float_return_value): Likewise.
10189 (do_ppc_sysv_return_value): Likewise.
10190 (ppc64_sysv_abi_push_integer): Likewise.
10191 (ppc64_sysv_abi_push_freg): Likewise.
10192 (ppc64_sysv_abi_return_value_base): Likewise.
10193 (ppc64_sysv_abi_return_value): Likewise.
10194 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
10195 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
10196 * rs6000-nat.c: Likewise.
10197 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
10198 (rs6000_value_to_register): Likewise.
10199 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
10200
e6cf65f2
TT
102012017-05-21 Tom Tromey <tom@tromey.com>
10202
10203 PR rust/21466:
10204 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
10205 arrays as "[T]", not "[T; ]".
10206
43cc5389
TT
102072017-05-19 Tom Tromey <tom@tromey.com>
10208
10209 PR rust/21484:
10210 * rust-lang.c (exp_descriptor_rust): New function.
10211 (rust_language_defn): Use it.
10212 * p-lang.c (pascal_language_defn): Update.
10213 * opencl-lang.c (opencl_language_defn): Update.
10214 * objc-lang.c (objc_language_defn): Update.
10215 * m2-lang.c (m2_language_defn): Update.
10216 * language.h (struct language_defn)
10217 <la_watch_location_expression>: New member.
10218 * language.c (unknown_language_defn, auto_language_defn)
10219 (local_language_defn): Update.
10220 * go-lang.c (go_language_defn): Update.
10221 * f-lang.c (f_language_defn): Update.
10222 * d-lang.c (d_language_defn): Update.
10223 * c-lang.h (c_watch_location_expression): Declare.
10224 * c-lang.c (c_watch_location_expression): New function.
10225 (c_language_defn, cplus_language_defn, asm_language_defn)
10226 (minimal_language_defn): Use it.
10227 * breakpoint.c (watch_command_1): Call
10228 la_watch_location_expression.
10229 * ada-lang.c (ada_language_defn): Update.
10230
7a6e7fcc
RO
102312017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10232
6e7e1744
RO
10233 PR tui/21482
10234 * gdb_curses.h (NOMACROS): Define.
10235 (NCURSES_NOMACROS): Define.
10236
102372017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10238
10239 PR tui/21482
7a6e7fcc
RO
10240 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
10241 arg to char *.
10242 * tui/tui-wingeneral.c (box_win): Likewise.
10243 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
10244 (tui_show_source_line): Likewise.
10245 (tui_show_exec_info_content): Likewise.
10246
1933fd8e
VM
102472017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
10248
10249 * sparc-tdep.c (sparc_structure_return_p)
10250 (sparc_arg_on_registers_p): New functions.
10251 (sparc32_store_arguments): Use them.
10252 * sparc64-tdep.c (sparc64_16_byte_align_p)
10253 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
10254 Handle TYPE_CODE_ARRAY.
10255
21873064
YQ
102562017-05-17 Yao Qi <yao.qi@linaro.org>
10257
10258 * cli/cli-decode.c (add_alias_cmd): New function.
10259 * command.h (add_alias_cmd): Declare.
10260 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
10261 instead call add_alias_cmd.
10262
2b351b19
PA
102632017-05-17 Pedro Alves <palves@redhat.com>
10264
10265 * Makefile.in (nat_extra_makefile_frag): Rename to ...
10266 (nat_makefile_frag): ... this. All references updated.
10267 * configure.ac: Likewise.
10268 * configure.nat: Likewise. Enhance comments.
10269 * configure: Regenerate.
10270
5f2ad7a3
RO
102712017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10272
10273 * procfs.c (procfs_create_inferior): Change prototype to match
10274 definition.
10275
adf3dde5
EZ
102762017-05-13 Eli Zaretskii <eliz@gnu.org>
10277
10278 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
10279 C++ compiler warning.
10280
6830f270
TT
102812017-05-12 Tom Tromey <tom@tromey.com>
10282
10283 PR rust/21483:
10284 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
10285 recurse, just call value_struct_elt directly.
10286
68f2f2e3
TT
102872017-05-12 Tom Tromey <tom@tromey.com>
10288
10289 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
10290 OP_RUST_ARRAY>: Fix.
10291
256afbc2
TT
102922017-05-12 Tom Tromey <tom@tromey.com>
10293
10294 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
10295
94bb8dfe
YQ
102962017-05-09 Yao Qi <yao.qi@linaro.org>
10297
10298 * regcache.c: Include <forward_list>.
10299 (struct regcache_list): Remove.
10300 (current_regcache): Update.
10301 (get_thread_arch_aspace_regcache): Update for std::forward_list.
10302 (regcache_thread_ptid_changed): Likewise.
10303 (registers_changed_ptid): Likewise.
10304 (current_regcache_size): Likewise.
10305
8248946c
YQ
103062017-05-09 Yao Qi <yao.qi@linaro.org>
10307
10308 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
10309 (current_regcache_size): New function.
10310 (current_regcache_test): New function.
10311 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
10312
313c5961
AH
103132017-05-08 Alan Hayward <alan.hayward@arm.com>
10314
10315 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
10316 (print_gp_register_row): Use get_frame_register_value.
10317
27bfc1d1
AH
103182017-05-08 Alan Hayward <alan.hayward@arm.com>
10319
10320 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
10321 (mips_supply_fpregset): Likewise.
10322 (mips64_supply_gregset): Likewise.
10323
146e6c5c
AH
103242017-05-08 Alan Hayward <alan.hayward@arm.com>
10325
10326 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
10327 regcache->raw_supply_zeroed.
10328
e50f25ec
SDJ
103292017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
10330
10331 * configure.nat: Rearrange 'case' statements to match
10332 host before cpu.
10333
21ea5acd
SDJ
103342017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
10335
10336 * Makefile.in: Remove "@host_makefile_frag@". Add variables
10337 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
10338 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
10339 "@nat_extra_makefile_frag@".
10340 (Makefile): Remove dependency on "@frags@".
10341 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
10342 (data-directory/Makefile): Likewise.
10343 * config/aarch64/linux.mh: Deleted; moved contents to
10344 "gdb/configure.nat".
10345 * config/alpha/alpha-linux.mh: Likewise.
10346 * config/alpha/nbsd.mh: Likewise.
10347 * config/arm/linux.mh: Likewise.
10348 * config/arm/nbsdelf.mh: Likewise.
10349 * config/i386/cygwin.mh: Likewise.
10350 * config/i386/cygwin64.mh: Likewise.
10351 * config/i386/darwin.mh: Likewise.
10352 * config/i386/fbsd.mh: Likewise.
10353 * config/i386/fbsd64.mh: Likewise.
10354 * config/i386/go32.mh: Likewise.
10355 * config/i386/i386gnu.mh: Likewise.
10356 * config/i386/i386sol2.mh: Likewise.
10357 * config/i386/linux.mh: Likewise.
10358 * config/i386/linux64.mh: Likewise.
10359 * config/i386/mingw.mh: Likewise.
10360 * config/i386/mingw64.mh: Likewise.
10361 * config/i386/nbsd64.mh: Likewise.
10362 * config/i386/nbsdelf.mh: Likewise.
10363 * config/i386/nto.mh: Likewise.
10364 * config/i386/obsd.mh: Likewise.
10365 * config/i386/obsd64.mh: Likewise.
10366 * config/i386/sol2-64.mh: Likewise.
10367 * config/ia64/linux.mh: Likewise.
10368 * config/m32r/linux.mh: Likewise.
10369 * config/m68k/linux.mh: Likewise.
10370 * config/m68k/nbsdelf.mh: Likewise.
10371 * config/m68k/obsd.mh: Likewise.
10372 * config/m88k/obsd.mh: Likewise.
10373 * config/mips/fbsd.mh: Likewise.
10374 * config/mips/linux.mh: Likewise.
10375 * config/mips/nbsd.mh: Likewise.
10376 * config/mips/obsd64.mh: Likewise.
10377 * config/pa/linux.mh: Likewise.
10378 * config/pa/nbsd.mh: Likewise.
10379 * config/pa/obsd.mh: Likewise.
10380 * config/powerpc/aix.mh: Likewise.
10381 * config/powerpc/fbsd.mh: Likewise.
10382 * config/powerpc/linux.mh: Likewise.
10383 * config/powerpc/nbsd.mh: Likewise.
10384 * config/powerpc/obsd.mh: Likewise.
10385 * config/powerpc/ppc64-linux.mh: Likewise.
10386 * config/powerpc/spu-linux.mh: Likewise.
10387 * config/s390/linux.mh: Likewise.
10388 * config/sh/nbsd.mh: Likewise.
10389 * config/sparc/fbsd.mh: Likewise.
10390 * config/sparc/linux.mh: Likewise.
10391 * config/sparc/linux64.mh: Likewise.
10392 * config/sparc/nbsd64.mh: Likewise.
10393 * config/sparc/nbsdelf.mh: Likewise.
10394 * config/sparc/obsd64.mh: Likewise.
10395 * config/sparc/sol2.mh: Likewise.
10396 * config/tilegx/linux.mh: Likewise.
10397 * config/vax/nbsdelf.mh: Likewise.
10398 * config/vax/obsd.mh: Likewise.
10399 * config/xtensa/linux.mh: Likewise.
10400 * config/i386/i386gnu.mn: New file, with excerpts from
10401 "config/i386/i386gnu.mh".
10402 * configure: Regenerate.
10403 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
10404 *.mh files under "gdb/config".
10405 * configure.nat: New file, with contents from the
10406 "gdb/config/*/*.mh" files.
10407
7ed1acaf
TW
104082017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
10409
10410 * btrace.c (btrace_clear): Free insn vector.
10411
e13cb306
PA
104122017-05-05 Pedro Alves <palves@redhat.com>
10413
10414 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
10415 * configure: Regenerate.
10416
5ed8105e
PA
104172017-05-04 Pedro Alves <palves@redhat.com>
10418
10419 * Makefile.in (SFILES): Add progspace-and-thread.c.
10420 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
10421 (COMMON_OBS): Add progspace-and-thread.o.
10422 * breakpoint.c: Include "progspace-and-thread.h".
10423 (update_inserted_breakpoint_locations)
10424 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
10425 Use scoped_restore_current_pspace_and_thread.
10426 (create_std_terminate_master_breakpoint): Use
10427 scoped_restore_current_program_space.
10428 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
10429 (print_breakpoint_location): Use
10430 scoped_restore_current_program_space.
10431 (bp_loc_is_permanent): Use
10432 scoped_restore_current_pspace_and_thread.
10433 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
10434 (download_tracepoint_locations): Use
10435 scoped_restore_current_pspace_and_thread.
10436 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
10437 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
10438 (enum step_over_calls_kind): Moved from inferior.h.
10439 (class scoped_restore_current_thread): New class.
10440 * gdbthread.h (make_cleanup_restore_current_thread): Delete
10441 declaration.
10442 (scoped_restore_current_thread): New class.
10443 * infcmd.c: Include "common/gdb_optional.h".
10444 (continue_1, proceed_after_attach): Use
10445 scoped_restore_current_thread.
10446 (notice_new_inferior): Use scoped_restore_current_thread.
10447 * inferior.c: Include "progspace-and-thread.h".
10448 (restore_inferior, save_current_inferior): Delete.
10449 (add_inferior_command, clone_inferior_command): Use
10450 scoped_restore_current_pspace_and_thread.
10451 * inferior.h (scoped_restore_current_inferior): New class.
10452 * infrun.c: Include "progspace-and-thread.h" and
10453 "common/gdb_optional.h".
10454 (follow_fork_inferior): Use
10455 scoped_restore_current_pspace_and_thread.
10456 (scoped_restore_exited_inferior): New class.
10457 (handle_vfork_child_exec_or_exit): Use
10458 scoped_restore_exited_inferior,
10459 scoped_restore_current_pspace_and_thread,
10460 scoped_restore_current_thread and scoped_restore.
10461 (fetch_inferior_event): Use scoped_restore_current_thread.
10462 * linespec.c (decode_line_full, decode_line_1): Use
10463 scoped_restore_current_program_space.
10464 * mi/mi-main.c: Include "progspace-and-thread.h".
10465 (exec_continue): Use scoped_restore_current_thread.
10466 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
10467 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
10468 * proc-service.c (ps_pglobal_lookup): Use
10469 scoped_restore_current_program_space.
10470 * progspace-and-thread.c: New file.
10471 * progspace-and-thread.h: New file.
10472 * progspace.c (release_program_space, clone_program_space): Use
10473 scoped_restore_current_program_space.
10474 (restore_program_space, save_current_program_space)
10475 (save_current_space_and_thread): Delete.
10476 (switch_to_program_space_and_thread): Moved to
10477 progspace-and-thread.c.
10478 * progspace.h (save_current_program_space)
10479 (save_current_space_and_thread): Delete declarations.
10480 (scoped_restore_current_program_space): New class.
10481 * remote.c (remote_btrace_maybe_reopen): Use
10482 scoped_restore_current_thread.
10483 * symtab.c: Include "progspace-and-thread.h".
10484 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
10485 * thread.c (print_thread_info_1): Use
10486 scoped_restore_current_thread.
10487 (struct current_thread_cleanup): Delete.
10488 (do_restore_current_thread_cleanup)
10489 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
10490 (scoped_restore_current_thread::~scoped_restore_current_thread):
10491 ... this new dtor.
10492 (make_cleanup_restore_current_thread): Rename/convert to ...
10493 (scoped_restore_current_thread::scoped_restore_current_thread):
10494 ... this new ctor.
10495 (thread_apply_all_command): Use scoped_restore_current_thread.
10496 (thread_apply_command): Use scoped_restore_current_thread.
10497 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
10498 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
10499
f6223dbb
PA
105002017-05-04 Pedro Alves <palves@redhat.com>
10501
10502 * thread.c (make_cleanup_restore_current_thread): Move
10503 find_thread_ptid call before the is_stopped call. Assert that the
10504 thread is found. Replace is_stopped call by checking the thread's
10505 state directly. Remove unnecessary NULL-thread check.
10506
3c3ae77e
PA
105072017-05-04 Pedro Alves <palves@redhat.com>
10508
10509 * corelow.c (thread_section_name): New class.
10510 (get_core_register_section, get_core_siginfo): Use it.
10511
45eba0ab
AA
105122017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10513
10514 * corelow.c (sniff_core_bfd): Remove extra semicolon.
10515 (get_core_register_section): Remove xfree of NULL pointer.
10516
f81fdd35
AH
105172017-05-03 Alan Hayward <alan.hayward@arm.com>
10518
10519 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
10520 * regcache.c (regcache::raw_supply_zeroed): New function.
10521 * regcache.h (regcache::raw_supply_zeroed): New declaration.
10522
35837774
SM
105232017-05-03 Simon Marchi <simon.marchi@ericsson.com>
10524
10525 * gdbarch.sh: Remove commented out definition of
10526 TARGET_CHAR_BIT.
10527 * gdbarch.h: Re-generate.
10528
c94fee56
SDJ
105292017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
10530
10531 * configure: Regenerate.
10532
d17f7b36
SM
105332017-05-02 Simon Marchi <simon.marchi@ericsson.com>
10534
10535 * solib-target.c (solib_target_relocate_section_addresses):
10536 Remove num_section_bases, num_bases, segment_bases variables.
10537
b560ebd6
SM
105382017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10539
10540 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
10541
f2f46dfc
SM
105422017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10543
10544 * solib-target.c: Include <vector>
10545 (struct lm_info_target) <~lm_info_target>: Remove.
10546 <segment_bases, section_bases>: Change type to
10547 std::vector<CORE_ADDR>.
10548 (library_list_start_segment, library_list_start_section,
10549 library_list_end_library,
10550 solib_target_relocate_section_addresses): Adjust.
10551
a0ff9e1a
SM
105522017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10553
10554 * gdbarch.sh (software_single_step): Change return type to
10555 std::vector<CORE_ADDR>.
10556 * gdbarch.c, gdbarch.h: Re-generate.
10557 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
10558 Adjust.
10559 (arm_deal_with_atomic_sequence_raw): Adjust.
10560 (thumb_get_next_pcs_raw): Adjust.
10561 (arm_get_next_pcs_raw): Adjust.
10562 (arm_get_next_pcs): Adjust.
10563 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
10564 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
10565 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
10566 (alpha_software_single_step): Adjust.
10567 * alpha-tdep.h (alpha_software_single_step): Adjust.
10568 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
10569 * arm-tdep.c (arm_software_single_step): Adjust.
10570 (arm_breakpoint_kind_from_current_state): Adjust.
10571 * arm-tdep.h (arm_software_single_step): Adjust.
10572 * breakpoint.c (insert_single_step_breakpoint): Adjust.
10573 * cris-tdep.c (cris_software_single_step): Adjust.
10574 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
10575 (micromips_deal_with_atomic_sequence): Adjust.
10576 (deal_with_atomic_sequence): Adjust.
10577 (mips_software_single_step): Adjust.
10578 * mips-tdep.h (mips_software_single_step): Adjust.
10579 * moxie-tdep.c (moxie_software_single_step): Adjust.
10580 * nios2-tdep.c (nios2_software_single_step): Adjust.
10581 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
10582 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
10583 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
10584 * s390-linux-tdep.c (s390_software_single_step): Adjust.
10585 * sparc-tdep.c (sparc_software_single_step): Adjust.
10586 * spu-tdep.c (spu_software_single_step): Adjust.
10587 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
10588
ea480a30
SM
105892017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10590
10591 * gdbarch.sh: Use semi-colon as field separator instead of colon.
10592 * gdbarch.h: Re-generate.
10593
d050f7d7
TW
105942017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10595
10596 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
10597 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
10598 * python/py-instruction.c, python/py-instruction.h: New file.
10599 * python/py-record.c: Add py-instruction.h include.
10600 (gdbpy_initialize_record): Make gdb.Instruction a super class of
10601 gdb.RecordInstruction.
10602 * python/python-internal.h: Add gdbpy_initialize_instruction
10603 declaration.
10604 * python/python.c (do_start_initialization): Add
10605 gdbpy_initialize_instruction.
10606
14f819c8
TW
106072017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10608
10609 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
10610 Remove.
10611 (btrace_func_from_recpy_func): New function.
10612 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
10613 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
10614 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
10615 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
10616 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
10617 Also, use new helper functions.
10618 (btpy_list_item): Use new helper functions.
10619 (recpy_bt_function_call_history): Use new type name.
10620 (btpy_call_getset): Remove.
10621 (gdbpy_initialize_btrace): Remove code to initialize
10622 gdb.BtraceFunctionCall.
10623 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
10624 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
10625 recpy_bt_func_prev, recpy_bt_func_next): New export.
10626 * python/py-record.c (recpy_func_type): New static object.
10627 (recpy_func_new, recpy_func_level, recpy_func_symbol,
10628 recpy_func_instructions, recpy_func_up, recpy_func_prev,
10629 recpy_func_next): New function.
10630 (recpy_element_hash, recpy_element_richcompare): Updated comment.
10631 (recpy_func_getset): New static object.
10632 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
10633 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
10634
0ed5da75
TW
106352017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10636
10637 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
10638 (btpy_object, btpy_insn_type, btpy_new): Remove.
10639 (btpy_list_object): Use gdb.RecordInstruction type instead of
10640 gdb.BtraceInstruction type.
10641 (btrace_insn_from_recpy_insn): New function.
10642 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
10643 btpy_new.
10644 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
10645 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
10646 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
10647 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
10648 instead of btpy_object.
10649 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
10650 btpy_insn_data, btpy_insn_decode): Rename to ...
10651 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
10652 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
10653 recpy_bt_insn_decode): This. Also, use new helper functions.
10654 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
10655 recpy_insn_type.
10656 (btpy_insn_getset): Remove.
10657 (gdbpy_initialize_btrace): Remove code to initialize
10658 gdb.BtraceInstruction. Use recpy_element_object.
10659 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
10660 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
10661 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
10662 * python/py-record.c (recpy_insn_type): New static object.
10663 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
10664 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
10665 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
10666 New function.
10667 (recpy_insn_getset): New static object.
10668 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
10669 * python/py-record.h (recpy_element_object): New typedef.
10670 (recpy_insn_type, recpy_insn_new): New export.
10671
913aeadd
TW
106722017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10673
10674 * py-record-btrace.c (btpy_insn_new): Removed.
10675 (btpy_insn_or_gap_new): New function.
10676 (btpy_insn_error): Removed.
10677 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
10678 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
10679 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
10680 btpy_insn_or_gap_new instead of btpy_insn_new.
10681 (btpy_insn_getset): Remove btpy_insn_error.
10682 * py-record.c (recpy_gap_type): New static object.
10683 (recpy_gap_object): New typedef.
10684 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
10685 recpy_gap_reason_string): New function.
10686 (recpy_gap_getset): New static object.
10687 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
10688 * py-record.h (recpy_gap_new): New export.
10689
a3be24ad
TW
106902017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10691
10692 * python/py-record.c (recpy_ptid): Remove.
10693 (recpy_record_getset): Remove recpy_ptid.
10694
ae20e79a
TW
106952017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10696
10697 * btrace.c (btrace_fetch): Set inferior_ptid.
10698 * python/py-record-btrace.c: Add "py-record.h" include.
10699 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
10700 recpy_bt_end, recpy_bt_instruction_history,
10701 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
10702 in gdb.Record object instead of current ptid.
10703 * python/py-record.c: Include new "py-record.h" file.
10704 (recpy_record_object): Moved to py-record.h.
10705 * python/py-record.h: New file.
10706
8d0050ea
TW
107072017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10708
10709 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
10710 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
10711 indentation.
10712
3f380b50
JB
107132017-05-01 Joel Brobecker <brobecker@adacore.com>
10714
10715 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
10716 the past maintainers section.
10717
07495424
YQ
107182017-04-28 Yao Qi <yao.qi@linaro.org>
10719
10720 * infcmd.c (get_return_value): Use regcache ctor, and remove
10721 cleanup.
10722
deb1fa3e
YQ
107232017-04-28 Yao Qi <yao.qi@linaro.org>
10724 Pedro Alves <palves@redhat.com>
10725
10726 * regcache.c (regcache::regcache): New tag dispatch ctor.
10727 (do_cooked_read): Moved above.
10728 (regcache_dup): Use the tag dispatch ctor..
10729 * regcache.h (regcache): Declare ctor, delete copy ctor and
10730 assignment operator, remove friend regcache_dup.
10731
b421c83c
YQ
107322017-04-28 Yao Qi <yao.qi@linaro.org>
10733
10734 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
10735 call method save instead of regcache_cpy.
10736 * regcache.h (struct regcache): Make regcache_dup a friend.
10737
ef79d9a3
YQ
107382017-04-28 Yao Qi <yao.qi@linaro.org>
10739
10740 * regcache.c (struct regcache): Move to regcache.h
10741 (regcache::arch): New method.
10742 (regcache_get_ptid): Update.
10743 (get_regcache_arch): Call arch method.
10744 (get_regcache_aspace): Call method aspace.
10745 (register_buffer): Change it to method.
10746 (regcache_save): Change it to regcache::save.
10747 (regcache_restore): Likewise.
10748 (regcache_cpy_no_passthrough): Remove the declaration.
10749 (regcache_cpy): Call methods restore and cpy_no_passthrough.
10750 (regcache_cpy_no_passthrough): Change it to method
10751 cpy_no_passthrough.
10752 (regcache_register_status): Change it to method
10753 get_register_status.
10754 (regcache_invalidate): Change it to method invalidate.
10755 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
10756 (regcache_raw_update): Change it to method raw_update.
10757 (regcache_raw_read): Likewise.
10758 (regcache_raw_read_signed): Likewise.
10759 (regcache_raw_read_unsigned): Likewise.
10760 (regcache_raw_write_signed): Likewise.
10761 (regcache_raw_write_unsigned): Likewise.
10762 (regcache_cooked_read): Likewise.
10763 (regcache_cooked_read_value): Likewise.
10764 (regcache_cooked_read_signed): Likewise.
10765 (regcache_cooked_read_unsigned): Likewise.
10766 (regcache_cooked_write_signed): Likewise.
10767 (regcache_cooked_write_unsigned): Likewise.
10768 (regcache_raw_set_cached_value): Likewise.
10769 (regcache_raw_write): Likewise.
10770 (regcache_cooked_write): Likewise.
10771 (regcache_xfer_part): Likewise.
10772 (regcache_raw_read_part): Likewise.
10773 (regcache_raw_write_part): Likewise.
10774 (regcache_cooked_read_part): Likewise.
10775 (regcache_cooked_write_part): Likewise.
10776 (regcache_raw_supply): Likewise.
10777 (regcache_raw_collect): Likewise.
10778 (regcache_transfer_regset): Likewise.
10779 (regcache_supply_regset): Likewise.
10780 (regcache_collect_regset): Likewise.
10781 (regcache_debug_print_register): Likewise.
10782 (enum regcache_dump_what): Move it to regcache.h.
10783 (regcache_dump): Change it to method dump.
10784 * regcache.h (enum regcache_dump_what): New.
10785 (class regcache): New.
10786 * target.c (target_fetch_registers): Call method
10787 debug_print_register.
10788 (target_store_registers): Likewise.
10789
f8fdb78e
SM
107902017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10791
10792 * windows-nat.c (struct lm_info_windows): Initialize field.
10793 (windows_make_so): Allocate lm_info_windows with new.
10794 (windows_free_so): Free lm_info_windows with delete.
10795
9ccbfd7b
SM
107962017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10797
10798 * solib-darwin.c (struct lm_info_darwin): Initialize field.
10799 (darwin_current_sos): Allocate lm_info_darwin with new, remove
10800 cleanup.
10801 (darwin_free_so): Free lm_info_darwin with delete.
10802
76e75227
SM
108032017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10804
10805 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
10806 <l_addr_p>: Change type to bool.
10807 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
10808 (svr4_free_so): Free lm_info_svr4 with delete.
10809 (svr4_copy_library_list): Replace memcpy with call to copy
10810 constructor.
10811 (library_list_start_library, svr4_default_sos): Allocate
10812 lm_info_svr4 with new.
10813
51046d9e
SM
108142017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10815
10816 * solib-target.c (struct lm_info_target): Add destructor,
10817 initialize fields.
10818 <name>: Change type to std::string.
10819 (library_list_start_library): Allocate lm_info_target with new.
10820 (solib_target_free_library_list): Free lm_info_target with
10821 delete.
10822 (solib_target_current_sos): Adapt to std::string.
10823 (solib_target_free_so): Free lm_info_target with delete.
10824
4023ae76
SM
108252017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10826
10827 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
10828 fields.
10829 (frv_current_sos): Allocate lm_info_frv with new.
10830 (frv_relocate_main_executable): Free lm_info_frv with delete,
10831 allocate with new.
10832 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
10833
af43057b
SM
108342017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10835
10836 * solib-frv.c (struct lm_info_frv): Fix indentation.
10837
b0911207
SM
108382017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10839
10840 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
10841 map field.
10842 (dsbt_current_sos): Allocate lm_info_dsbt with new.
10843 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
10844 and allocate with new.
10845 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
10846
6c401f72
SM
108472017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10848
10849 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
10850 <filename, member_name>: Change type to std::string.
10851 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
10852 (library_list_start_library): Allocate lm_info_aix with new.
10853 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
10854 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
10855 with copy constructor.
10856
d0e449a1
SM
108572017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10858
10859 * solist.h (struct lm_info): Remove.
10860 (struct lm_info_base): New class.
10861 (struct so_list) <lm_info>: Change type to lm_info_base *.
10862 * nto-tdep.c (struct lm_info): Remove.
10863 (lm_addr): Adjust.
10864 * solib-aix.c (struct lm_info): Rename to ...
10865 (struct lm_info_aix): ... this. Extend lm_info_base.
10866 (lm_info_p): Rename to ...
10867 (lm_info_aix_p): ... this, and adjust.
10868 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
10869 solib_aix_parse_libraries, library_list_start_library,
10870 solib_aix_free_library_list, solib_aix_parse_libraries,
10871 solib_aix_get_library_list,
10872 solib_aix_relocate_section_addresses, solib_aix_free_so,
10873 solib_aix_get_section_offsets,
10874 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
10875 Adjust.
10876 (struct solib_aix_inferior_data) <library_list>: Adjust.
10877 * solib-darwin.c (struct lm_info): Rename to ...
10878 (struct lm_info_darwin): ... this. Extend lm_info_base.
10879 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
10880 * solib-dsbt.c (struct lm_info): Rename to ...
10881 (struct lm_info_dsbt): ... this. Extend lm_info_base.
10882 (struct dsbt_info) <main_executable_lm_info): Adjust.
10883 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
10884 dsbt_relocate_section_addresses): Adjust.
10885 * solib-frv.c (struct lm_info): Rename to ...
10886 (struct lm_info_frv): ... this. Extend lm_info_base.
10887 (main_executable_lm_info): Adjust.
10888 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
10889 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
10890 find_canonical_descriptor_in_load_object,
10891 frv_fdpic_find_canonical_descriptor): Adjust.
10892 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
10893 to lm_info_svr4.
10894 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
10895 svr4_clear_so, svr4_copy_library_list,
10896 library_list_start_library, svr4_default_sos, svr4_read_so_list,
10897 svr4_current_sos, svr4_fetch_objfile_link_map,
10898 solist_update_incremental): Adjust.
10899 * solib-svr4.h (struct lm_info_svr4): Move here from
10900 solib-svr4.c.
10901 * solib-target.c (struct lm_info): Rename to ...
10902 (struct lm_info_target): ... this. Extend lm_info_base.
10903 (lm_info_p): Rename to ...
10904 (lm_info_target_p): ... this.
10905 (solib_target_parse_libraries, library_list_start_segment,
10906 library_list_start_section, library_list_start_library,
10907 library_list_end_library, solib_target_free_library_list,
10908 solib_target_current_sos, solib_target_free_so,
10909 solib_target_relocate_section_addresses): Adjust.
10910 * windows-nat.c (struct lm_info): Rename to ...
10911 (struct lm_info_windows): ... this. Extend lm_info_base.
10912 (windows_make_so, handle_load_dll, handle_unload_dll,
10913 windows_xfer_shared_libraries): Adjust.
10914
434a4023
SM
109152017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10916
10917 * solib-darwin.c (struct darwin_so_list): Remove.
10918 (darwin_current_sos): Allocate an so_list object instead of a
10919 darwin_so_list, separately allocate an lm_info object.
10920 (darwin_free_so): Free lm_info.
10921
428544e8
JB
109222017-04-28 John Baldwin <jhb@FreeBSD.org>
10923
10924 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
10925 with fprintf_filtered.
10926
4621115f
YQ
109272017-04-28 Yao Qi <yao.qi@linaro.org>
10928
10929 * regcache.c (regcache::regcache): New function.
10930 (regcache::~regcache): New function.
10931 (regcache_xmalloc_1): Remove.
10932 (regcache_xmalloc): Call new regcache.
10933 (regcache_xfree): Call delete regcache.
10934 (get_thread_arch_aspace_regcache): Call new regcache.
10935
339053c2
YQ
109362017-04-28 Yao Qi <yao.qi@linaro.org>
10937
10938 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
10939 lwp instead of ptid_get_lwp.
10940
7974a605
YQ
109412017-04-28 Yao Qi <yao.qi@linaro.org>
10942
10943 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
10944 lwp_info instead of getting from inferior_ptid.
10945
e15c3eb4
KS
109462017-04-27 Keith Seitz <keiths@redhat.com>
10947
10948 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
10949 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
10950 (CV_CONVERSION_BADNESS): Define.
10951 (rank_one_type): Remove overly restrictive rvalue reference
10952 rank checks.
10953 Add cv-qualifier checks and subranks for type equality.
10954 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
10955 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
10956 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
10957
72bc1d24
SM
109582017-04-27 Simon Marchi <simon.marchi@ericsson.com>
10959
10960 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
10961 count when creating the object.
10962
55bcecda
UW
109632017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
10964 Ulrich Weigand <uweigand@de.ibm.com>
10965
10966 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
10967 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
10968 is used in AIX.
10969 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
10970 (process_xcoff_symbol): Likewise.
10971 (scan_xcoff_symtab): Likewise.
10972
5c99fcf8
AH
109732017-04-26 Alan Hayward <alan.hayward@arm.com>
10974
10975 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
10976 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
10977 (ia64_access_reg): Use get_frame_register_unsigned.
10978 (ia64_access_rse_reg): Likewise.
10979 (ia64_libunwind_frame_prev_register): Likewise.
10980
b41c5a85
JW
109812017-04-26 Jiong Wang <jiong.wang@arm.com>
10982
10983 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
10984 * gdbarch.c: Regenerated.
10985 * gdbarch.h: Regenerated.
10986 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
10987 visibility external.
10988 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
10989 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
10990 (enum cfa_how_kind): Move to ...
10991 (struct dwarf2_frame_state_reg_info): Likewise.
10992 (struct dwarf2_frame_state): Likewise.
10993 * dwarf2-frame.h: ... here.
10994 (dwarf2_frame_state_alloc_regs): New declaration.
10995 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
10996 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
10997
c185f580
AH
109982017-04-26 Alan Hayward <alan.hayward@arm.com>
10999
11000 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
11001 regcache_raw_read_unsigned.
11002 (xtensa_pseudo_register_write): Likewise.
11003
19c45594
AH
110042017-04-26 Alan Hayward <alan.hayward@arm.com>
11005
11006 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
11007 (nds32_pseudo_register_write): Likewise.
11008
4658f12e
YQ
110092017-04-25 Yao Qi <yao.qi@linaro.org>
11010
11011 * regcache.c (struct regcache) <readonly_p>: Change its type
11012 to bool.
11013 (regcache_xmalloc_1): Update parameter type and callers update.
11014
d581dda8
YQ
110152017-04-25 Yao Qi <yao.qi@linaro.org>
11016
11017 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
11018 set_gdbarch_wchar_bit.
11019 * arm-tdep.c (arm_gdbarch_init): Likewise.
11020
debed3db
PA
110212017-04-25 Pedro Alves <palves@redhat.com>
11022
11023 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
11024 (BothAreRelocatable, memcopy, memmove): Don't define.
11025 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
11026 macros.
11027
b0b92aeb
PA
110282017-04-25 Pedro Alves <palves@redhat.com>
11029
11030 * common/common-defs.h: Include "common/poison.h".
11031 * common/function-view.h: (Not, Or, Requires): Move to traits.h
11032 and adjust.
11033 * common/poison.h: New file.
11034 * common/traits.h: Include <type_traits>.
11035 (Not, Or, Requires): New, moved from common/function-view.h.
11036
16c4d54a
PA
110372017-04-25 Pedro Alves <palves@redhat.com>
11038
11039 * breakpoint.h (struct breakpoint): In-class initialize all
11040 fields. Make boolean fields "bool".
11041 * breakpoint.c (init_raw_breakpoint_without_location): Remove
11042 memset call and initializations no longer necessary.
11043
b5c36682
PA
110442017-04-25 Pedro Alves <palves@redhat.com>
11045
11046 * btrace.c (pt_btrace_insn_flags): Change parameter type to
11047 reference.
11048 (pt_btrace_insn): New function.
11049 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
11050
5625a286
PA
110512017-04-25 Pedro Alves <palves@redhat.com>
11052
11053 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
11054 "base" field and inherit from "bp_location" instead. Add
11055 non-default ctor.
11056 (allocate_location_exception): Use new non-default ctor.
11057 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
11058 (init_bp_location): Convert to ...
11059 (bp_location::bp_location): ... this new ctor, and remove memset
11060 call.
11061 (base_breakpoint_allocate_location): Use the new non-default ctor.
11062 * breakpoint.h (bp_location): Now a class. Declare default and
11063 non-default ctors. In-class initialize all members.
11064 (init_bp_location): Remove declaration.
11065
23bcc18f
PA
110662017-04-25 Pedro Alves <palves@redhat.com>
11067
11068 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
11069 assignment operator.
11070
e1ba3053
YQ
110712017-04-24 Yao Qi <yao.qi@linaro.org>
11072
11073 * doublest.c (convert_doublest_to_floatformat): Call
11074 floatformat_totalsize_bytes.
11075
10f489e5
TT
110762017-04-22 Tom Tromey <tom@tromey.com>
11077
11078 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
11079 ui_out_emit_list.
11080 * stack.c (print_frame): Use ui_out_emit_list.
11081 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
11082 ui_out_emit_list.
11083 * mi/mi-main.c (print_one_inferior)
11084 (mi_cmd_data_list_register_names)
11085 (mi_cmd_data_list_register_values, mi_cmd_list_features)
11086 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
11087 ui_out_emit_list.
11088 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
11089 (mi_output_solib_attribs): Use ui_out_emit_list,
11090 ui_out_emit_tuple.
11091 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
11092 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
11093 (mi_cmd_stack_list_args, list_args_or_locals): Use
11094 ui_out_emit_list.
11095 * disasm.c (do_assembly_only): Use ui_out_emit_list.
11096 * breakpoint.c (print_solib_event, output_thread_groups): Use
11097 ui_out_emit_list.
11098
0092b74d
TT
110992017-04-22 Tom Tromey <tom@tromey.com>
11100
11101 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
11102 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
11103 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
11104
a14a62dd
TT
111052017-04-22 Tom Tromey <tom@tromey.com>
11106
11107 * tracepoint.c (tvariables_info_1)
11108 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
11109
46b9c129
TT
111102017-04-22 Tom Tromey <tom@tromey.com>
11111
11112 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
11113 annotate_arg_emitter.
11114 * breakpoint.c (print_mention_watchpoint)
11115 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
11116 * annotate.h (struct annotate_arg_emitter): New.
11117
2e783024
TT
111182017-04-22 Tom Tromey <tom@tromey.com>
11119
11120 * record-btrace.c (record_btrace_insn_history)
11121 (record_btrace_insn_history_range, record_btrace_call_history)
11122 (record_btrace_call_history_range): Use ui_out_emit_tuple.
11123 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
11124 ui_out_emit_tuple.
11125 * stack.c (print_frame_info): Use ui_out_emit_tuple.
11126 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
11127 * skip.c (skip_info): Use ui_out_emit_tuple.
11128 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
11129 * progspace.c (print_program_space): Use ui_out_emit_tuple.
11130 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
11131 * osdata.c (info_osdata): Use ui_out_emit_tuple.
11132 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
11133 ui_out_emit_tuple.
11134 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
11135 (output_register, mi_cmd_data_read_memory)
11136 (mi_cmd_data_read_memory_bytes, mi_load_progress)
11137 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
11138 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
11139 Use ui_out_emit_tuple.
11140 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
11141 ui_out_emit_tuple.
11142 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11143 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
11144 * linux-thread-db.c (info_auto_load_libthread_db): Use
11145 ui_out_emit_tuple.
11146 * inferior.c (print_inferior): Use ui_out_emit_tuple.
11147 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
11148 * disasm.c (do_mixed_source_and_assembly_deprecated)
11149 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
11150 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
11151 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
11152 * breakpoint.c (print_one_breakpoint_location)
11153 (print_one_breakpoint): Use ui_out_emit_tuple.
11154 * auto-load.c (print_script, info_auto_load_cmd): Use
11155 ui_out_emit_tuple.
11156 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
11157
9be21bb4
SM
111582017-04-21 Simon Marchi <simon.marchi@ericsson.com>
11159
11160 * thread.c (print_thread_info_1): Remove dead code.
11161
0d4c07af
JK
111622017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11163
11164 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
11165 GDB_SELF_TEST.
11166 * arm-tdep.c (selftests::arm_record_test): Likewise.
11167
4daf993d
YQ
111682017-04-21 Yao Qi <yao.qi@linaro.org>
11169
11170 * regcache.c (regcache_restore): Remove argument 2. Replace
11171 argument 3 with regcache. Get register status from
11172 src->register_status and get register contents from
11173 register_buffer (src, regnum).
11174 (regcache_cpy): Update.
11175
a6c21d4a
PA
111762017-04-19 Pedro Alves <palves@redhat.com>
11177
11178 * gdbthread.h (thread): Add missing closing parenthesis in
11179 comment.
11180
3a3fd0fd
PA
111812017-04-19 Pedro Alves <palves@redhat.com>
11182
11183 * common/refcounted-object.h: New file.
11184 * gdbthread.h: Include "common/refcounted-object.h".
11185 (thread_info): Inherit from refcounted_object and add comments.
11186 (thread_info::incref, thread_info::decref)
11187 (thread_info::m_refcount): Delete.
11188 (thread_info::deletable): Use the refcounted_object::refcount()
11189 method.
11190 * inferior.c (current_inferior_): Add comment.
11191 (set_current_inferior): Increment/decrement refcounts.
11192 (prune_inferiors, remove_inferior_command): Skip inferiors marked
11193 not-deletable instead of comparing with the current inferior.
11194 (initialize_inferiors): Increment the initial inferior's refcount.
11195 * inferior.h (struct inferior): Forward declare.
11196 Include "common/refcounted-object.h".
11197 (current_inferior, set_current_inferior): Move declaration to
11198 before struct inferior's definition, and fix comment.
11199 (inferior): Inherit from refcounted_object. Add comments.
11200 * thread.c (switch_to_thread_no_regs): Reference the thread's
11201 inferior pointer directly instead of doing a ptid lookup.
11202 (switch_to_no_thread): New function.
11203 (switch_to_thread(thread_info *)): New function, factored out
11204 from ...
11205 (switch_to_thread(ptid_t)): ... this.
11206 (restore_current_thread): Delete.
11207 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
11208 fields, and add 'inf' field.
11209 (do_restore_current_thread_cleanup): Check whether old->inf is
11210 alive instead of looking up an inferior by ptid. Use
11211 switch_to_thread and switch_to_no_thread.
11212 (restore_current_thread_cleanup_dtor): Use old->inf directly
11213 instead of lookup up an inferior by id. Decref the inferior.
11214 Don't restore 'removable'.
11215 (make_cleanup_restore_current_thread): Same the inferior pointer
11216 in old, instead of the inferior number. Incref the inferior.
11217 Don't save/clear 'removable'.
11218
9bcb1f16
PA
112192017-04-19 Pedro Alves <palves@redhat.com>
11220
11221 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11222 unittests/scoped_restore-selftests.c.
11223 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
11224 * common/scoped_restore.h (scoped_restore_base): Make "class".
11225 (scoped_restore_base::release): New public method.
11226 (scoped_restore_base::scoped_restore_base): New protected ctor.
11227 (scoped_restore_base::m_saved_var): New protected field.
11228 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
11229 scoped_restore_base base class instead of m_saved_var directly.
11230 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
11231 (scoped_restore_tmpl::scoped_restore_tmpl(const
11232 scoped_restore_tmpl<T>&)): Likewise.
11233 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
11234 method.
11235 (scoped_restore_tmpl::saved_var): New method.
11236 (scoped_restore_tmpl::m_saved_var): Delete.
11237 * inferior.h (inferior::detaching): Now a bool.
11238 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
11239 cleanup.
11240 * unittests/scoped_restore-selftests.c: New file.
11241
26fcd539
PA
112422017-04-19 Pedro Alves <palves@redhat.com>
11243
11244 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
11245 Re-sort in alphabetic order.
11246
fdd243b0
PA
112472017-04-18 Pedro Alves <palves@redhat.com>
11248
11249 * xml-support.c (obstack_xml_printf): Delete.
11250 * xml-support.h (obstack_xml_printf): Delete.
11251
4895cde2
PA
112522017-04-18 Pedro Alves <palves@redhat.com>
11253
11254 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
11255 vdebug, verror, body_text, start_element, end_element, name,
11256 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
11257 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
11258 is_xinclude>: Make private and add m_ prefix.
11259 (gdb_xml_parser::body_text): New method, based on ...
11260 (gdb_xml_body_text): ... this. Adjust.
11261 (gdb_xml_parser::vdebug): New method, based on ...
11262 (gdb_xml_debug): ... this. Adjust.
11263 (gdb_xml_parser::verror): New method, based on ...
11264 (gdb_xml_error): ... this. Adjust.
11265 (gdb_xml_parser::start_element): New method, based on ...
11266 (gdb_xml_start_element): ... this. Adjust.
11267 (gdb_xml_start_element_wrapper): Defer to
11268 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
11269 (gdb_xml_parser::end_element): New method, based on ...
11270 (gdb_xml_end_element_wrapper): ... this. Adjust.
11271 (gdb_xml_parser::~gdb_xml_parser): Adjust.
11272 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
11273 (gdb_xml_parser::use_dtd): New method, based on ...
11274 (gdb_xml_use_dtd): ... this. Adjust.
11275 (gdb_xml_parser::parse): New method, based on ...
11276 (gdb_xml_parse): ... this. Adjust.
11277 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
11278 (xinclude_start_include): Adjust to call the parser's name method.
11279 (xml_xinclude_default, xml_xinclude_start_doctype)
11280 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
11281 method.
11282 (xml_process_xincludes): Adjust to call parser methods.
11283 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
11284 declarations.
11285
bd8a901f
PA
112862017-04-18 Pedro Alves <palves@redhat.com>
11287
11288 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
11289 gdb::optional<std::string>.
11290 * xml-support.c: Include <string>.
11291 (scope_level::scope_level(scope_level &&))
11292 (scope_level::~scope_level): Delete.
11293 (scope_level::body): Now a std::string.
11294 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
11295 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
11296 parameter.
11297 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
11298 (xinclude_parsing_data::output): Now a std::string reference.
11299 (xinclude_start_include): Adjust.
11300 (xml_xinclude_default): Adjust.
11301 (xml_process_xincludes): Add 'output' parameter, and return bool.
11302 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
11303 and return bool.
11304 * xml-tdesc.c: Include <unordered_map> and <string>.
11305 (tdesc_xml_cache): Delete.
11306 (tdesc_xml_cache_s): Delete.
11307 (xml_cache): Now an std::unordered_map.
11308 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
11309 (target_fetch_description_xml): Change return type to
11310 gdb::optional<std::string>, and adjust.
11311 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
11312 (target_fetch_description_xml): Change return type to
11313 gdb::optional<std::string>.
11314
d35d1958
PA
113152017-04-18 Pedro Alves <palves@redhat.com>
11316
11317 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11318 unittests/optional-selftests.c.
11319 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
11320 * unittests/optional-selftests.c: New file.
11321 * unittests/optional/assignment/1.cc: New file.
11322 * unittests/optional/assignment/2.cc: New file.
11323 * unittests/optional/assignment/3.cc: New file.
11324 * unittests/optional/assignment/4.cc: New file.
11325 * unittests/optional/assignment/5.cc: New file.
11326 * unittests/optional/assignment/6.cc: New file.
11327 * unittests/optional/assignment/7.cc: New file.
11328 * unittests/optional/cons/copy.cc: New file.
11329 * unittests/optional/cons/default.cc: New file.
11330 * unittests/optional/cons/move.cc: New file.
11331 * unittests/optional/cons/value.cc: New file.
11332 * unittests/optional/in_place.cc: New file.
11333 * unittests/optional/observers/1.cc: New file.
11334 * unittests/optional/observers/2.cc: New file.
11335
22796e97
PA
113362017-04-18 Pedro Alves <palves@redhat.com>
11337
11338 * common/gdb_optional.h: Include common/traits.h.
11339 (in_place_t): New type.
11340 (in_place): New constexpr variable.
11341 (optional::optional): Remove member initialization of
11342 m_instantiated.
11343 (optional::optional(in_place_t...)): New constructor.
11344 (optional::~optional): Use reset.
11345 (optional::optional(const optional&)): New.
11346 (optional::optional(const optional&&)): New.
11347 (optional::optional(T &)): New.
11348 (optional::optional(T &&)): New.
11349 (operator::operator=(const optional &)): New.
11350 (operator::operator=(optional &&)): New.
11351 (operator::operator= (const T &))
11352 (operator::operator= (T &&))
11353 (operator::emplace (Args &&... args)): Return a T&. Use reset.
11354 (operator::reset): New.
11355 (operator::m_instantiated):: Add in-class initializer.
11356 * common/traits.h: Include <type_traits>.
11357 (struct And): New types.
11358
a7fc9b61
PA
113592017-04-18 Pedro Alves <palves@redhat.com>
11360
11361 * xml-support.c: Include <vector>.
11362 (scope_level::scope_level(const gdb_xml_element *))
11363 (scope_level::scope_level(scope_level&&)): New.
11364 (scope_level::~scope_level): New.
11365 (scope_level_s): Delete.
11366 (gdb_xml_parser::scopes): Now a std::vector.
11367 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
11368 Use std::vector.
11369 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
11370 scope cleanup code.
11371 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
11372 of the scopes member. Use std::vector::emplace_back.
11373
010151c9
PA
113742017-04-18 Pedro Alves <palves@redhat.com>
11375
11376 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
11377 a bool.
11378 (gdb_xml_end_element): Change type of first parameter.
11379 (gdb_xml_cleanup): Rename to ...
11380 (gdb_xml_parser::~gdb_xml_parser): ... this.
11381 (gdb_xml_create_parser_and_cleanup): Delete with ...
11382 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
11383 to this new ctor.
11384 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
11385 using gdb_xml_create_parser_and_cleanup.
11386 (xinclude_parsing_data): Add ctor/dtor.
11387 (xml_xinclude_cleanup): Delete.
11388 (xml_process_xincludes): Create a local xinclude_parsing_data
11389 instead of heap-allocating one. Create a local gdb_xml_parser
11390 instead of heap-allocating one with
11391 gdb_xml_create_parser_and_cleanup.
11392
d56060f0
JB
113932017-04-18 John Baldwin <jhb@FreeBSD.org>
11394
11395 PR threads/20743
11396 * fbsd-nat.c (resume_one_thread_cb): Remove.
11397 (resume_all_threads_cb): Remove.
11398 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
11399 iterate_over_threads.
11400
305d16a9
JB
114012017-04-17 Joel Brobecker <brobecker@adacore.com>
11402
11403 * NEWS: Create a new section for the next release branch.
11404 Rename the section of the current branch, now that it has
11405 been cut.
11406
8bb57231
JB
114072017-04-17 Joel Brobecker <brobecker@adacore.com>
11408
11409 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
11410 * version.in: Bump version to 8.0.50.DATE-git.
11411
096c92dd
SDJ
114122017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
11413
11414 PR gdb/21385
11415 * windows-nat.c (windows_create_inferior): Declare 'allargs'
11416 independently of the host, and fix build breakage on Cygwin.
11417
0550c955
PA
114182017-04-13 Pedro Alves <palves@redhat.com>
11419
11420 * inferior.c (free_inferior): Convert to ...
11421 (inferior::~inferior): ... this dtor.
11422 (inferior::inferior): New ctor, factored out from ...
11423 (add_inferior_silent): ... here. Allocate the inferior with a new
11424 expression.
11425 (delete_inferior): Call delete instead of free_inferior.
11426 * inferior.h (gdb_environ, continuation): Forward declare.
11427 (inferior): Now a class. Add in-class initialization to all
11428 members. Make boolean fields bool, except 'detaching'.
11429 (inferior::inferior): New explicit ctor.
11430 (inferior::~inferior): New.
11431
e3d60dfc
PA
114322017-04-13 Pedro Alves <palves@redhat.com>
11433
11434 * inferior.c (init_inferior_list): Delete.
11435 * inferior.h (init_inferior_list): Delete.
11436
5fd69d0a
PA
114372017-04-13 Pedro Alves <palves@redhat.com>
11438
11439 PR threads/13217
11440 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
11441 (top level): Call it twice, with different thread sets.
11442
c6609450
PA
114432017-04-13 Pedro Alves <palves@redhat.com>
11444
11445 * thread.c: Include <algorithm>.
11446 (thread_array_cleanup): Delete.
11447 (scoped_inc_dec_ref): New class.
11448 (live_threads_count): New function.
11449 (set_thread_refcount): Delete.
11450 (tp_array_compar_ascending): Now a bool.
11451 (tp_array_compar): Convert to a std::sort comparison function.
11452 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
11453 and live_threads_count.
11454
2a00d7ce
PA
114552017-04-13 Pedro Alves <palves@redhat.com>
11456
11457 * infrun.c (follow_fork_inferior): Also switch the current
11458 inferior.
11459
441d7c93
PA
114602017-04-13 Pedro Alves <palves@redhat.com>
11461
11462 * breakpoint.c (watch_command_1): Save watchpoint-frame info
11463 before calling create_internal_breakpoint.
11464
808480f6
PA
114652017-04-13 Pedro Alves <palves@redhat.com>
11466
11467 * fork-child.c (execv_argv): New class.
11468 (breakup_args): Refactored as ...
11469 (execv_argv::init_for_no_shell): .. this method of execv_argv.
11470 Copy arguments to storage and replace separators with NULL
11471 terminators in place.
11472 (escape_bang_in_quoted_argument): Adjust to return bool.
11473 (execv_argv::execv_argv): New ctor.
11474 (execv_argv::init_for_shell): New method, factored out from
11475 fork_inferior. Don't strdup strings into the vector.
11476 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
11477 Remove free_vector_argv call.
11478
ad3d022a
YQ
114792017-04-13 Yao Qi <yao.qi@linaro.org>
11480
11481 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
11482 tdep->rx_psw_type.
11483
e6ddc3bf
YQ
114842017-04-13 Yao Qi <yao.qi@linaro.org>
11485
11486 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
11487 * rx-tdep.c (rx_gdbarch_init): Likewise.
11488
bfb8cf90
PA
114892017-04-13 Pedro Alves <palves@redhat.com>
11490
11491 * breakpoint.h (struct breakpoint): Reindent.
11492
f5336ca5
PA
114932017-04-13 Pedro Alves <palves@redhat.com>
11494
11495 * breakpoint.c (bp_location): Rename to ...
11496 (bp_locations): ... this. All references updated.
11497 (bp_location_count): Rename to ...
11498 (bp_locations_count): ... this. All references updated.
11499 (bp_location_placed_address_before_address_max): Rename to ...
11500 (bp_locations_placed_address_before_address_max): ... this. All
11501 references updated.
11502 (bp_location_shadow_len_after_address_max): Rename to ...
11503 (bp_locations_shadow_len_after_address_max): ... this. All
11504 references updated.
11505 (bp_location_compare_addrs): Rename to ...
11506 (bp_locations_compare_addrs): ... this. All references updated.
11507 (bp_location_compare):Rename to ...
11508 (bp_locations_compare): ... this. All references updated.
11509 (bp_location_target_extensions_update): Rename to ...
11510 (bp_locations_target_extensions_update): ... this. All references
11511 updated.
11512
be628ab8
SDJ
115132017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11514
11515 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
11516 * common/common.m4: Check headers 'termios.h', 'termio.h' and
11517 'sgtty.h'.
11518 * common/gdb_termios.h: New file, with parts of "terminal.h".
11519 * inflow.c: Include "gdb_termios.h".
11520 * ser-unix.c: Include "gdb_termios.h".
11521 * terminal.h: Move terminal-related defines to
11522 "common/gdb_termios.h".
11523
8e9e35b1
TT
115242017-04-12 Tom Tromey <tom@tromey.com>
11525
11526 * probe.c (parse_probes): Update.
11527 * location.h (delete_event_location): Don't declare.
11528 (event_location_deleter::operator()): Update.
11529 * location.c (event_location_deleter::operator()): Rename from
11530 delete_event_location.
11531 * linespec.h (linespec_result) <location>: Change type to
11532 event_location_up.
11533 * linespec.c (canonicalize_linespec, event_location_to_sals)
11534 (decode_objc): Update.
11535 (linespec_result): Don't call delete_event_location.
11536 * breakpoint.c (create_breakpoints_sal)
11537 (bkpt_probe_create_sals_from_location)
11538 (strace_marker_create_sals_from_location): Update.
11539
16e802b9
TT
115402017-04-12 Tom Tromey <tom@tromey.com>
11541
11542 * linespec.h (struct linespec_result): Add constructor and
11543 destructor.
11544 (init_linespec_result, destroy_linespec_result)
11545 (make_cleanup_destroy_linespec_result): Don't declare.
11546 * linespec.c (init_linespec_result): Remove.
11547 (linespec_result::~linespec_result): Rename from
11548 destroy_linespec_result. Update.
11549 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
11550 Remove.
11551 * breakpoint.c (create_breakpoint, break_range_command)
11552 (decode_location_default): Update.
11553 * ax-gdb.c (agent_command_1): Update.
11554
d28cd78a
TT
115552017-04-12 Tom Tromey <tom@tromey.com>
11556
11557 * remote.c (remote_download_tracepoint): Update.
11558 * python/py-breakpoint.c (bppy_get_location): Update.
11559 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
11560 (gdbscm_breakpoint_location): Update.
11561 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
11562 * breakpoint.h (struct breakpoint) <location, location_range_end>:
11563 Change type to event_location_up.
11564 * breakpoint.c (create_overlay_event_breakpoint)
11565 (create_longjmp_master_breakpoint)
11566 (create_std_terminate_master_breakpoint)
11567 (create_exception_master_breakpoint)
11568 (breakpoint_event_location_empty_p, print_breakpoint_location)
11569 (print_one_breakpoint_location, create_thread_event_breakpoint)
11570 (init_breakpoint_sal, create_breakpoint)
11571 (print_recreate_ranged_breakpoint, break_range_command)
11572 (init_ada_exception_breakpoint, say_where): Update.
11573 (base_breakpoint_dtor): Don't call delete_event_location.
11574 (bkpt_print_recreate, tracepoint_print_recreate)
11575 (dprintf_print_recreate, update_static_tracepoint)
11576 (breakpoint_re_set_default): Update.
11577
711799d5
TT
115782017-04-12 Tom Tromey <tom@tromey.com>
11579
11580 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
11581 type of "to_do". Update.
11582 (compute_stack_depth): Use std::vector.
11583
52d214d3
TT
115842017-04-12 Tom Tromey <tom@tromey.com>
11585
11586 * printcmd.c (find_instruction_backward): Use std::vector.
11587
4c404b8b
TT
115882017-04-12 Tom Tromey <tom@tromey.com>
11589
11590 * symfile.c (objfilep): Remove typedef.
11591 (reread_symbols): Use a std::vector.
11592
156d9eab
TT
115932017-04-12 Tom Tromey <tom@tromey.com>
11594
11595 * mi/mi-main.c (exec_direction_forward): Remove.
11596 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
11597 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
11598 scoped_restore.
11599 * guile/guile.c (guile_repl_command, guile_command)
11600 (gdbscm_execute_gdb_command): Use scoped_restore.
11601 * go-exp.y (go_parse): Use scoped_restore.
11602 * d-exp.y (d_parse): Use scoped_restore.
11603 * cli/cli-decode.c (cmd_func): Use scoped_restore.
11604 * c-exp.y (c_parse): Use scoped_restore.
11605
4d89769a
TT
116062017-04-12 Tom Tromey <tom@tromey.com>
11607
11608 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
11609 (mi_parse): Update return type.
11610 (mi_parse_free): Remove.
11611 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
11612 (mi_parse::~mi_parse): Rename from mi_parse_free.
11613 (mi_parse_cleanup): Remove.
11614 (mi_parse): Return a unique_ptr. Use new.
11615 * mi/mi-main.c (mi_execute_command): Update.
11616
4b217cc7
TT
116172017-04-12 Tom Tromey <tom@tromey.com>
11618
11619 * location.c (explicit_location_lex_one): Return a
11620 unique_xmalloc_ptr.
11621 (string_to_explicit_location): Update. Remove cleanups.
11622
59d3651b
TT
116232017-04-12 Tom Tromey <tom@tromey.com>
11624
11625 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
11626 (compare_value_and_voffset): Change type. Update.
11627 (compute_vtable_size): Change type of "offset_vec".
11628 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
11629 (gnuv3_get_typeid): Remove extraneous declaration.
11630
b24b0d6c
TT
116312017-04-12 Tom Tromey <tom@tromey.com>
11632
11633 * charset.h (wchar_iterator): Fix comment.
11634
80a3b8c5
TT
116352017-04-12 Tom Tromey <tom@tromey.com>
11636
11637 * charset.c (iconv_wrapper): New class.
11638 (cleanup_iconv): Remove.
11639 (convert_between_encodings): Use it.
11640
c83dd867
TT
116412017-04-12 Tom Tromey <tom@tromey.com>
11642
11643 * symfile.h (increment_reading_symtab): Update type.
11644 * symfile.c (decrement_reading_symtab): Remove.
11645 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
11646 * psymtab.c (psymtab_to_symtab): Update.
11647 * dwarf2read.c (dw2_instantiate_symtab): Update.
11648
0e8621a0
TT
116492017-04-12 Tom Tromey <tom@tromey.com>
11650
11651 * jit.c (struct jit_reader): Declare separately. Add constructor
11652 and destructor. Change type of "handle".
11653 (loaded_jit_reader): Define separately.
11654 (jit_reader_load): Update. New "new".
11655 (jit_reader_unload_command): Use "delete".
11656 * gdb-dlfcn.h (struct dlclose_deleter): New.
11657 (gdb_dlhandle_up): New typedef.
11658 (gdb_dlopen, gdb_dlsym): Update types.
11659 (gdb_dlclose): Remove.
11660 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
11661 (gdb_dlsym): Change type of "handle".
11662 (make_cleanup_dlclose): Remove.
11663 (dlclose_deleter::operator()): Rename from gdb_dlclose.
11664 * compile/compile-c-support.c (load_libcc): Update.
11665
67d89901
TT
116662017-04-12 Tom Tromey <tom@tromey.com>
11667
11668 * symtab.h (find_pcs_for_symtab_line): Change return type.
11669 * symtab.c (find_pcs_for_symtab_line): Change return type.
11670 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
11671 type of "vec". Update.
11672 (ltpy_get_pcs_for_line): Update.
11673 * linespec.c (decode_digits_ordinary): Update.
11674
93921405
TT
116752017-04-12 Tom Tromey <tom@tromey.com>
11676
11677 * tracepoint.c (actions_command): Update.
11678 * python/python.c (python_command, python_interactive_command):
11679 Update.
11680 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
11681 * guile/guile.c (guile_command): Update.
11682 * defs.h (read_command_lines, read_command_lines_1): Return
11683 command_line_up.
11684 (command_lines_deleter): New struct.
11685 (command_line_up): New typedef.
11686 * compile/compile.c (compile_code_command)
11687 (compile_print_command): Update.
11688 * cli/cli-script.h (get_command_line, copy_command_lines): Return
11689 command_line_up.
11690 (make_cleanup_free_command_lines): Remove.
11691 * cli/cli-script.c (get_command_line, read_command_lines_1)
11692 (copy_command_lines): Return command_line_up.
11693 (while_command, if_command, read_command_lines, define_command)
11694 (document_command): Update.
11695 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
11696 Remove.
11697 * breakpoint.h (breakpoint_set_commands): Change type of
11698 "commands".
11699 * breakpoint.c (breakpoint_set_commands): Change type of
11700 "commands". Update.
11701 (do_map_commands_command, update_dprintf_command_list)
11702 (create_tracepoint_from_upload): Update.
11703
ffc2605c
TT
117042017-04-12 Tom Tromey <tom@tromey.com>
11705
11706 * tracepoint.c (scope_info): Update.
11707 * spu-tdep.c (spu_catch_start): Update.
11708 * python/python.c (gdbpy_decode_line): Update.
11709 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
11710 * python/py-breakpoint.c (bppy_init): Update.
11711 * probe.c (parse_probes): Update.
11712 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
11713 * location.h (event_location_deleter): New struct.
11714 (event_location_up): New typedef.
11715 (new_linespec_location, new_address_location, new_probe_location)
11716 (new_explicit_location, copy_event_location)
11717 (string_to_event_location, string_to_event_location_basic)
11718 (string_to_explicit_location): Update return type.
11719 (make_cleanup_delete_event_location): Remove.
11720 * location.c (new_linespec_location, new_address_location)
11721 (new_probe_location, new_explicit_location, copy_event_location):
11722 Return event_location_up.
11723 (delete_event_location_cleanup)
11724 (make_cleanup_delete_event_location): Remove.
11725 (string_to_explicit_location, string_to_event_location_basic)
11726 (string_to_event_location): Return event_location_up.
11727 * linespec.c (canonicalize_linespec, event_location_to_sals)
11728 (decode_line_with_current_source)
11729 (decode_line_with_last_displayed, decode_objc): Update.
11730 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11731 * completer.c (location_completer): Update.
11732 * cli/cli-cmds.c (edit_command, list_command): Update.
11733 * breakpoint.c (create_overlay_event_breakpoint)
11734 (create_longjmp_master_breakpoint)
11735 (create_std_terminate_master_breakpoint)
11736 (create_exception_master_breakpoint)
11737 (create_thread_event_breakpoint): Update.
11738 (init_breakpoint_sal): Update. Remove some dead code.
11739 (create_breakpoint_sal): Change type of "location". Update.
11740 (create_breakpoints_sal, create_breakpoint, break_command_1)
11741 (dprintf_command, break_range_command, until_break_command)
11742 (init_ada_exception_breakpoint)
11743 (strace_marker_create_sals_from_location)
11744 (update_static_tracepoint, trace_command, ftrace_command)
11745 (strace_command, create_tracepoint_from_upload): Update.
11746 * break-catch-throw.c (re_set_exception_catchpoint): Update.
11747 * ax-gdb.c (agent_command_1): Update.
11748
8f10c932
PA
117492017-04-12 Pedro Alves <palves@redhat.com>
11750
11751 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
11752 * configure.tgt: Handle i[34567]86-*-go32* and
11753 i[34567]86-*-msdosdjgpp*.
11754 * i386-tdep.c (i386_svr4_reg_to_regnum):
11755 Make extern.
11756 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
11757 i386-go32-tdep.c.
11758 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
11759 * i386-go32-tdep.c: New file.
11760 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
11761 declarations.
11762
0a31ccfb
SM
117632017-04-12 Simon Marchi <simon.marchi@ericsson.com>
11764
11765 * aix-thread.c (pd_status2str): Change return type to const char *.
11766
e9bb3fbb
PA
117672017-04-12 Pedro Alves <palves@redhat.com>
11768
11769 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
11770 calls to set_gdbarch_gnu_triplet_regexp.
11771
53375380
PA
117722017-04-12 Pedro Alves <palves@redhat.com>
11773
11774 PR gdb/21323
11775 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
11776 New enum value.
11777 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
11778 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
11779 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
11780 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
11781 * gdbarch.h, gdbarch.c: Regenerate.
11782 * aarch64-tdep.c (aarch64_gdbarch_init): Override
11783 gdbarch_wchar_bit and gdbarch_wchar_signed.
11784 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
11785 * arm-tdep.c (arm_gdbarch_init): Likewise.
11786 * avr-tdep.c (avr_gdbarch_init): Likewise.
11787 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11788 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
11789 * i386-tdep.c (i386_go32_init_abi): Likewise.
11790 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11791 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11792 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11793 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11794 * sh-tdep.c (sh_gdbarch_init): Likewise.
11795 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11796 * sparc64-tdep.c (sparc64_init_abi): Likewise.
11797 * windows-tdep.c (windows_init_abi): Likewise.
11798 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11799
53e710ac
PA
118002017-04-12 Pedro Alves <palves@redhat.com>
11801
11802 PR c++/21323
11803 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
11804 cplus_primitive_type_char32_t>: New enum values.
11805 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
11806 and cplus_primitive_type_char32_t.
11807 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
11808 32, use the archtecture's built-in type for char16_t and char32_t,
11809 respectively. Otherwise, fallback to init_integer_type as before,
11810 but make the type unsigned, and issue a complaint.
11811 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
11812
ab0538b8
AH
118132017-04-12 Alan Hayward <alan.hayward@arm.com>
11814
5e0e0422 11815 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
11816 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
11817
5430098f
SDJ
118182017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11819
11820 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
11821 'const char *'.
11822
7c5ded6a
SDJ
118232017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11824
11825 * common/common-utils.c (free_vector_argv): New function.
11826 * common/common-utils.h: Include <vector>.
11827 (free_vector_argv): New prototype.
11828 * darwin-nat.c (darwin_create_inferior): Rewrite function
11829 prototype in order to constify "exec_file" and accept a
11830 "std::string" for "allargs".
11831 * fork-child.c: Include <vector>.
11832 (breakup_args): Rewrite function, using C++.
11833 (fork_inferior): Rewrite function header, constify "exec_file_arg"
11834 and accept "std::string" for "allargs". Update the code to
11835 calculate "argv" based on "allargs". Update calls to "exec_fun"
11836 and "execvp".
11837 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
11838 order to constify "exec_file" and accept a "std::string" for
11839 "allargs".
11840 * go32-nat.c (go32_create_inferior): Likewise.
11841 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
11842 * infcmd.c (run_command_1): Constify "exec_file". Use
11843 "std::string" for inferior arguments.
11844 * inferior.h (fork_inferior): Update prototype.
11845 * linux-nat.c (linux_nat_create_inferior): Rewrite function
11846 prototype in order to constify "exec_file" and accept a
11847 "std::string" for "allargs".
11848 * nto-procfs.c (procfs_create_inferior): Likewise.
11849 * procfs.c (procfs_create_inferior): Likewise.
11850 * remote-sim.c (gdbsim_create_inferior): Likewise.
11851 * remote.c (extended_remote_run): Update code to accept
11852 "std::string" as argument.
11853 (extended_remote_create_inferior): Rewrite function prototype in
11854 order to constify "exec_file" and accept a "std::string" for
11855 "allargs".
11856 * rs6000-nat.c (super_create_inferior): Likewise.
11857 (rs6000_create_inferior): Likewise.
11858 * target.h (struct target_ops) <to_create_inferior>: Likewise.
11859 * windows-nat.c (windows_create_inferior): Likewise.
11860
ae0eee42
PA
118612017-04-11 Pedro Alves <palves@redhat.com>
11862
11863 * thread.c: Fix whitespace throughout.
11864
a6acac06
PR
118652017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
11866
11867 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
11868
64403bd1
AH
118692017-04-11 Alan Hayward <alan.hayward@arm.com>
11870
11871 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
11872
a5bef50f
SDJ
118732017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
11874
11875 PR gdb/21364
11876 * osdata.c (info_osdata): Check if 'type' is an empty string
11877 instead of NULL.
11878
9295a5a9
PA
118792017-04-10 Pedro Alves <palves@redhat.com>
11880
11881 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
11882 (ptid_to_global_thread_id, in_thread_list)
11883 (do_captured_list_thread_ids, set_resumed, set_running)
11884 (set_executing, set_stop_requested, finish_thread_state)
11885 (validate_registers_access, can_access_registers_ptid)
11886 (print_thread_info_1, switch_to_thread)
11887 (do_restore_current_thread_cleanup)
11888 (make_cleanup_restore_current_thread, thread_command)
11889 (thread_name_command): Use operator== instead of ptid_equal.
11890
996812e3
PA
118912017-04-10 Pedro Alves <palves@redhat.com>
11892
11893 * thread.c (struct current_thread_cleanup) <next>: Delete field.
11894 (current_thread_cleanup_chain): Delete.
11895 (restore_current_thread_cleanup_dtor)
11896 (make_cleanup_restore_current_thread): Remove references to
11897 current_thread_cleanup_chain.
11898
845b344f
AH
118992017-04-10 Alan Hayward <alan.hayward@arm.com>
11900
11901 * msp430-tdep.c (msp430_pseudo_register_read): Never return
11902 REG_UNKNOWN.
11903
803bdfe4
YQ
119042017-04-10 Yao Qi <yao.qi@linaro.org>
11905
11906 PR gdb/19942
11907 * gdbthread.h (thread_info::deletable): New method.
11908 (thread_info::incref): New method.
11909 (thread_info::decref): New method.
11910 (thread_info::refcount): Move it to private.
11911 * infrun.c (save_stop_context): Call inc_refcount.
11912 (release_stop_context_cleanup): Likewise.
11913 * thread.c (set_thread_exited): New function.
11914 (init_thread_list): Delete "tp" only it is deletable, otherwise
11915 call set_thread_exited.
11916 (delete_thread_1): Call set_thread_exited.
11917 (current_thread_cleanup) <inferior_pid>: Remove.
11918 <thread>: New field.
11919 (restore_current_thread_ptid_changed): Removed.
11920 (do_restore_current_thread_cleanup): Adjust.
11921 (restore_current_thread_cleanup_dtor): Don't call
11922 find_thread_ptid.
11923 (set_thread_refcount): Use dec_refcount.
11924 (make_cleanup_restore_current_thread): Adjust.
11925 (thread_apply_all_command): Call inc_refcount.
11926 (_initialize_thread): Don't call
11927 observer_attach_thread_ptid_changed.
11928
8c25b497
YQ
119292017-04-10 Yao Qi <yao.qi@linaro.org>
11930
11931 * thread.c (delete_thread_1): Hoist code on marking thread as
11932 exited.
11933
8473b447
SM
119342017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11935
11936 * windows-nat.c (windows_detach): Initialize ptid with
11937 minus_one_ptid.
11938
6670ec13
SM
119392017-04-07 Simon Marchi <simon.marchi@ericsson.com>
11940
11941 * unittests/ptid-selftests.c: Fix erroneous assert messages.
11942
ba2f91bb
AH
119432017-04-07 Alan Hayward <alan.hayward@arm.com>
11944
11945 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
11946 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
11947 (bfin_pseudo_register_write): Likewise
11948
436252de
SM
119492017-04-06 Simon Marchi <simon.marchi@ericsson.com>
11950
11951 * common/ptid.h (struct ptid): Change to...
11952 (class ptid_t): ... this.
11953 <ptid_t>: New constructors.
11954 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
11955 matches>: New methods.
11956 <make_null, make_minus_one>: New static methods.
11957 <pid>: Rename to...
11958 <m_pid>: ...this.
11959 <lwp>: Rename to...
11960 <m_lwp>: ...this.
11961 <tid>: Rename to...
11962 <m_tid>: ...this.
11963 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
11964 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
11965 as references, move comment to class ptid_t.
11966 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
11967 ptid_t static methods.
11968 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
11969 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
11970 Take ptid arguments as references, implement using ptid_t methods.
11971 * unittests/ptid-selftests.c: New file.
11972 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11973 unittests/ptid-selftests.c.
11974 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
11975
0dedf377
TP
119762017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11977
11978 * python/python.c (python_run_simple_file): Cast mode literal to
11979 non-const char pointer as expected by PyFile_FromString.
11980
4e9868d4
SM
119812017-04-05 Simon Marchi <simon.marchi@ericsson.com>
11982
11983 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
11984 minus_one_ptid and null_ptid.
11985
9bf2a700
PA
119862017-04-05 Pedro Alves <palves@redhat.com>
11987
11988 * warning.m4 (build_warnings): Remove -Wno-write-strings.
11989 * configure: Regenerate.
11990
a121b7c1
PA
119912017-04-05 Pedro Alves <palves@redhat.com>
11992
11993 * ada-exp.y (yyerror): Constify.
11994 * ada-lang.c (bound_name, get_selections)
11995 (ada_variant_discrim_type)
11996 (ada_variant_discrim_name, ada_value_struct_elt)
11997 (ada_lookup_struct_elt_type, is_unchecked_variant)
11998 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
11999 (catch_ada_exception_command_split)
12000 (catch_ada_assert_command_split, catch_assert_command)
12001 (ada_op_name): Constify.
12002 * ada-lang.h (ada_yyerror, get_selections)
12003 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
12004 * arc-tdep.c (arc_print_frame_cache): Constify.
12005 * arm-tdep.c (arm_skip_stub): Constify.
12006 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
12007 (gen_aggregate_elt_ref): Constify.
12008 * bcache.c (print_bcache_statistics): Constify.
12009 * bcache.h (print_bcache_statistics): Constify.
12010 * break-catch-throw.c (catch_exception_command_1):
12011 * breakpoint.c (struct ep_type_description::description):
12012 Constify.
12013 (add_solib_catchpoint): Constify.
12014 (catch_fork_command_1): Add cast.
12015 (add_catch_command): Constify.
12016 * breakpoint.h (add_catch_command, add_solib_catchpoint):
12017 Constify.
12018 * bsd-uthread.c (bsd_uthread_state): Constify.
12019 * buildsym.c (patch_subfile_names): Constify.
12020 * buildsym.h (next_symbol_text_func, patch_subfile_names):
12021 Constify.
12022 * c-exp.y (yyerror): Constify.
12023 (token::oper): Constify.
12024 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
12025 * c-varobj.c (cplus_describe_child): Constify.
12026 * charset.c (find_charset_names): Add cast.
12027 (find_charset_names): Constify array and add const_cast.
12028 * cli/cli-cmds.c (complete_command, cd_command): Constify.
12029 (edit_command): Constify.
12030 * cli/cli-decode.c (lookup_cmd): Constify.
12031 * cli/cli-dump.c (dump_memory_command, dump_value_command):
12032 Constify.
12033 (struct dump_context): Constify.
12034 (add_dump_command, restore_command): Constify.
12035 * cli/cli-script.c (get_command_line): Constify.
12036 * cli/cli-script.h (get_command_line): Constify.
12037 * cli/cli-utils.c (check_for_argument): Constify.
12038 * cli/cli-utils.h (check_for_argument): Constify.
12039 * coff-pe-read.c (struct read_pe_section_data): Constify.
12040 * command.h (lookup_cmd): Constify.
12041 * common/print-utils.c (decimal2str): Constify.
12042 * completer.c (gdb_print_filename): Constify.
12043 * corefile.c (set_gnutarget): Constify.
12044 * cp-name-parser.y (yyerror): Constify.
12045 * cp-valprint.c (cp_print_class_member): Constify.
12046 * cris-tdep.c (cris_register_name, crisv32_register_name):
12047 Constify.
12048 * d-exp.y (yyerror): Constify.
12049 (struct token::oper): Constify.
12050 * d-lang.h (d_yyerror): Constify.
12051 * dbxread.c (struct header_file_location::name): Constify.
12052 (add_old_header_file, add_new_header_file, last_function_name)
12053 (dbx_next_symbol_text, add_bincl_to_list)
12054 (find_corresponding_bincl_psymtab, set_namestring)
12055 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
12056 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
12057 * defs.h (command_line_input, print_address_symbolic)
12058 (deprecated_readline_begin_hook): Constify.
12059 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
12060 Constify.
12061 * event-top.c (handle_line_of_input): Constify and add cast.
12062 * exceptions.c (catch_errors): Constify.
12063 * exceptions.h (catch_errors): Constify.
12064 * expprint.c (print_subexp_standard, op_string, op_name)
12065 (op_name_standard, dump_raw_expression, dump_raw_expression):
12066 * expression.h (op_name, op_string, dump_raw_expression):
12067 Constify.
12068 * f-exp.y (yyerror): Constify.
12069 (struct token::oper): Constify.
12070 (struct f77_boolean_val::name): Constify.
12071 * f-lang.c (f_word_break_characters): Constify.
12072 * f-lang.h (f_yyerror): Constify.
12073 * fork-child.c (fork_inferior): Add cast.
12074 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
12075 (new_variant): Constify.
12076 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
12077 * gdbarch.c: Regenerate.
12078 * gdbcore.h (set_gnutarget): Constify.
12079 * go-exp.y (yyerror): Constify.
12080 (token::oper): Constify.
12081 * go-lang.h (go_yyerror): Constify.
12082 * go32-nat.c (go32_sysinfo): Constify.
12083 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
12084 * guile/scm-cmd.c (cmdscm_function): Constify.
12085 * guile/scm-param.c (pascm_param_value): Constify.
12086 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
12087 (h8300sx_register_name): Constify.
12088 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
12089 Constify.
12090 * ia64-tdep.c (ia64_register_names): Constify.
12091 * infcmd.c (construct_inferior_arguments): Constify.
12092 (path_command, attach_post_wait): Constify.
12093 * language.c (show_range_command, show_case_command)
12094 (unk_lang_error): Constify.
12095 * language.h (language_defn::la_error)
12096 (language_defn::la_name_of_this): Constify.
12097 * linespec.c (decode_line_2): Constify.
12098 * linux-thread-db.c (thread_db_err_str): Constify.
12099 * lm32-tdep.c (lm32_register_name): Constify.
12100 * m2-exp.y (yyerror): Constify.
12101 * m2-lang.h (m2_yyerror): Constify.
12102 * m32r-tdep.c (m32r_register_names): Constify and make static.
12103 * m68hc11-tdep.c (m68hc11_register_names): Constify.
12104 * m88k-tdep.c (m88k_register_name): Constify.
12105 * macroexp.c (appendmem): Constify.
12106 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
12107 (upgrade_type, parse_external, parse_partial_symbols)
12108 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
12109 (new_symbol): Constify.
12110 * memattr.c (mem_info_command): Constify.
12111 * mep-tdep.c (register_name_from_keyword): Constify.
12112 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
12113 Constify.
12114 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
12115 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
12116 * mi/mi-main.c (captured_mi_execute_command): Constify and add
12117 cast.
12118 (mi_execute_async_cli_command): Constify.
12119 * mips-tdep.c (mips_register_name): Constify.
12120 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
12121 (am33_register_name, am33_2_register_name)
12122 * moxie-tdep.c (moxie_register_names): Constify.
12123 * nat/linux-osdata.c (osdata_type): Constify fields.
12124 * nto-tdep.c (nto_parse_redirection): Constify.
12125 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
12126 (lookup_child_selector): Constify.
12127 (objc_methcall::name): Constify.
12128 * objc-lang.h (lookup_objc_class, lookup_child_selector)
12129 (lookup_struct_typedef): Constify.
12130 * objfiles.c (pc_in_section): Constify.
12131 * objfiles.h (pc_in_section): Constify.
12132 * p-exp.y (struct token::oper): Constify.
12133 (yyerror): Constify.
12134 * p-lang.h (pascal_yyerror): Constify.
12135 * parser-defs.h (op_name_standard): Constify.
12136 (op_print::string): Constify.
12137 (exp_descriptor::op_name): Constify.
12138 * printcmd.c (print_address_symbolic): Constify.
12139 * psymtab.c (print_partial_symbols): Constify.
12140 * python/py-breakpoint.c (stop_func): Constify.
12141 (bppy_get_expression): Constify.
12142 * python/py-cmd.c (cmdpy_completer::name): Constify.
12143 (cmdpy_function): Constify.
12144 * python/py-event.c (evpy_add_attribute)
12145 (gdbpy_initialize_event_generic): Constify.
12146 * python/py-event.h (evpy_add_attribute)
12147 (gdbpy_initialize_event_generic): Constify.
12148 * python/py-evts.c (add_new_registry): Constify.
12149 * python/py-finishbreakpoint.c (outofscope_func): Constify.
12150 * python/py-framefilter.c (get_py_iter_from_func): Constify.
12151 * python/py-inferior.c (get_buffer): Add cast.
12152 * python/py-param.c (parm_constant::name): Constify.
12153 * python/py-unwind.c (fprint_frame_id): Constify.
12154 * python/python.c (gdbpy_parameter_value): Constify.
12155 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
12156 * remote.c (memory_packet_config::name): Constify.
12157 (show_packet_config_cmd, remote_write_bytes)
12158 (remote_buffer_add_string):
12159 * reverse.c (exec_reverse_once): Constify.
12160 * rs6000-tdep.c (variant::name, variant::description): Constify.
12161 * rust-exp.y (rustyyerror): Constify.
12162 * rust-lang.c (rust_op_name): Constify.
12163 * rust-lang.h (rustyyerror): Constify.
12164 * serial.h (serial_ops::name): Constify.
12165 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
12166 (sh_sh3e_register_name, sh_sh2e_register_name)
12167 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
12168 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
12169 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
12170 (sh_sh4al_dsp_register_name): Constify.
12171 * sh64-tdep.c (sh64_register_name): Constify.
12172 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
12173 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
12174 * stabsread.c (patch_block_stabs, read_type_number)
12175 (ref_map::stabs, ref_add, process_reference)
12176 (symbol_reference_defined, define_symbol, define_symbol)
12177 (error_type, read_type, read_member_functions, read_cpp_abbrev)
12178 (read_one_struct_field, read_struct_fields, read_baseclasses)
12179 (read_tilde_fields, read_struct_type, read_array_type)
12180 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
12181 (read_huge_number, read_range_type, read_args, common_block_start)
12182 (find_name_end): Constify.
12183 * stabsread.h (common_block_start, define_symbol)
12184 (process_one_symbol, symbol_reference_defined, ref_add):
12185 * symfile.c (get_section_index, add_symbol_file_command):
12186 * symfile.h (get_section_index): Constify.
12187 * target-descriptions.c (tdesc_type::name): Constify.
12188 (tdesc_free_type): Add cast.
12189 * target.c (find_default_run_target):
12190 (add_deprecated_target_alias, find_default_run_target)
12191 (target_announce_detach): Constify.
12192 (do_option): Constify.
12193 * target.h (add_deprecated_target_alias): Constify.
12194 * thread.c (print_thread_info_1): Constify.
12195 * top.c (deprecated_readline_begin_hook, command_line_input):
12196 Constify.
12197 (init_main): Add casts.
12198 * top.h (handle_line_of_input): Constify.
12199 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
12200 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
12201 (tfind_command): Rename to ...
12202 (tfind_command_1): ... this and constify.
12203 (tfind_command): New function.
12204 (tfind_end_command, tfind_start_command): Adjust.
12205 (encode_source_string): Constify.
12206 * tracepoint.h (encode_source_string): Constify.
12207 * tui/tui-data.c (tui_partial_win_by_name): Constify.
12208 * tui/tui-data.h (tui_partial_win_by_name): Constify.
12209 * tui/tui-source.c (tui_set_source_content_nil): Constify.
12210 * tui/tui-source.h (tui_set_source_content_nil): Constify.
12211 * tui/tui-win.c (parse_scrolling_args): Constify.
12212 * tui/tui-windata.c (tui_erase_data_content): Constify.
12213 * tui/tui-windata.h (tui_erase_data_content): Constify.
12214 * tui/tui-winsource.c (tui_erase_source_content): Constify.
12215 * tui/tui.c (tui_enable): Add cast.
12216 * utils.c (defaulted_query): Constify.
12217 (init_page_info): Add cast.
12218 (puts_debug, subset_compare): Constify.
12219 * utils.h (subset_compare): Constify.
12220 * varobj.c (varobj_format_string): Constify.
12221 * varobj.h (varobj_format_string): Constify.
12222 * vax-tdep.c (vax_register_name): Constify.
12223 * windows-nat.c (windows_detach): Constify.
12224 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
12225 * xml-support.c (gdb_xml_end_element): Constify.
12226 * xml-tdesc.c (tdesc_start_reg): Constify.
12227 * xstormy16-tdep.c (xstormy16_register_name): Constify.
12228 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
12229 * xtensa-tdep.h (xtensa_register_t::name): Constify.
12230
995816ba
PA
122312017-04-05 Pedro Alves <palves@redhat.com>
12232
12233 * proc-api.c (struct trans): Constify.
12234 (procfs_note): Constify.
12235 * proc-events.c (struct trans, syscall_table):
12236 * proc-flags.c (struct trans): Constify.
12237 * proc-utils.h (procfs_note): Constify.
12238 * proc-why.c (struct trans): Constify.
12239 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
12240 (procfs_detach): Constify.
12241 * sol-thread.c (struct string_map): Constify.
12242 (td_err_string, td_state_string): Constify.
12243
3e83a920
PA
122442017-04-05 Pedro Alves <palves@redhat.com>
12245
12246 * proc-api.c (procfs_filename): Don't initialize
12247 procfs_filename.
12248 (prepare_to_trace): Assume procfs_filename is non-NULL.
12249 (_initialize_proc_api): Give procfs_filename a default value here.
12250
63160a43
PA
122512017-04-05 Pedro Alves <palves@redhat.com>
12252
12253 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
12254 'cond_string' parameter.
12255 (extract_exception_regexp): Constify 'string' parameter.
12256 (catch_exception_command_1): Constify.
12257 * breakpoint.c (init_catchpoint)
12258 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
12259 parameter.
12260 (ep_parse_optional_if_clause, catch_fork_command_1)
12261 (catch_exec_command_1): Constify.
12262 * breakpoint.h (init_catchpoint): Constify 'cond_string'
12263 parameter.
12264 (ep_parse_optional_if_clause): Constify.
12265 * cli/cli-utils.c (remove_trailing_whitespace)
12266 (check_for_argument): Constify.
12267 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
12268 non-const overload.
12269 (check_for_argument): Likewise.
12270
9b2eba3d
PA
122712017-04-05 Pedro Alves <palves@redhat.com>
12272
12273 * event-top.c (command_line_handler): Add cast to execute_command
12274 call.
12275 * record-btrace.c (cmd_record_btrace_bts_start)
12276 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
12277 (cmd_record_btrace_start): Add cast to execute_command call.
12278 * record-full.c (record_full_goto_insn):
12279 * record.c (record_start, record_stop): Add cast to
12280 execute_command_to_string calls.
12281 (cmd_record_start): Add cast to execute_command calls.
12282
2adadf51
PA
122832017-04-05 Pedro Alves <palves@redhat.com>
12284
12285 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
12286 static inline function.
12287 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
12288 array and use gdb_PyArg_ParseTupleAndKeywords.
12289 * python/py-cmd.c (cmdpy_init): Likewise.
12290 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
12291 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
12292 (infpy_search_memory): Likewise.
12293 * python/py-objfile.c (objfpy_add_separate_debug_file)
12294 (gdbpy_lookup_objfile): Likewise.
12295 * python/py-symbol.c (gdbpy_lookup_symbol)
12296 (gdbpy_lookup_global_symbol): Likewise.
12297 * python/py-type.c (gdbpy_lookup_type): Likewise.
12298 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
12299 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
12300 Likewise.
12301
0d1f4ceb
PA
123022017-04-05 Pedro Alves <palves@redhat.com>
12303
12304 * python/python-internal.h (gdb_PyGetSetDef): New type.
12305 * python/py-block.c (block_object_getset)
12306 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
12307 * python/py-event.c (event_object_getset)
12308 (finish_breakpoint_object_getset): Likewise.
12309 * python/py-inferior.c (inferior_object_getset): Likewise.
12310 * python/py-infthread.c (thread_object_getset): Likewise.
12311 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
12312 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
12313 * python/py-objfile.c (objfile_getset): Likewise.
12314 * python/py-progspace.c (pspace_getset): Likewise.
12315 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
12316 Likewise.
12317 * python/py-record.c (recpy_record_getset): Likewise.
12318 * python/py-symbol.c (symbol_object_getset): Likewise.
12319 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
12320 Likewise.
12321 * python/py-type.c (type_object_getset, field_object_getset):
12322 Likewise.
12323 * python/py-value.c (value_object_getset): Likewise.
12324
4d759979
PA
123252017-04-05 Pedro Alves <palves@redhat.com>
12326
12327 * python/python-internal.h (gdb_PyObject_CallMethod)
12328 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
12329 New functions.
12330 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
12331 (PySys_GetObject, PySys_SetPath): New macros.
12332
fdf9e36f
PA
123332017-04-05 Pedro Alves <palves@redhat.com>
12334
12335 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
12336 info_osdata_command.
12337 * osdata.c (info_osdata_command): Rename to ...
12338 (info_osdata): ... this. Constify 'type' parameter, and remove
12339 the 'from_tty' parameter. Accept NULL TYPE.
12340 (info_osdata_command): New function.
12341 * osdata.h (info_osdata_command): Remove declaration.
12342 (info_osdata): New declaration.
12343
9f33b8b7
PA
123442017-04-05 Pedro Alves <palves@redhat.com>
12345
12346 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
12347 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
12348 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
12349 parameter.
12350 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
12351 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
12352 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
12353 parameter.
12354 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
12355 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
12356 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12357 (mi_cmd_file_list_exec_source_files)
12358 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
12359 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12360 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
12361 parameter.
12362 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
12363 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
12364 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
12365 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
12366 (mi_cmd_stack_info_frame): Constify 'command' parameter.
12367 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
12368 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
12369 'command' parameter.
12370 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
12371 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
12372 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
12373 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
12374 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
12375 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
12376 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
12377 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
12378 (mi_cmd_var_set_update_range): Constify 'command' parameter.
12379 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
12380 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
12381 parameter.
12382 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
12383 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
12384 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
12385 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
12386 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
12387 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
12388 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
12389 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
12390 (mi_cmd_data_list_changed_registers)
12391 (mi_cmd_data_write_register_values)
12392 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
12393 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
12394 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
12395 (mi_cmd_list_features, mi_cmd_list_target_features)
12396 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
12397 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
12398 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
12399 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
12400 (mi_cmd_trace_frame_collected): Constify 'command'
12401 parameter.
12402 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
12403 'command' parameter.
12404
67cb5b2d
PA
124052017-04-05 Pedro Alves <palves@redhat.com>
12406
12407 * ada-lang.c (ada_completer_word_break_characters): Now a const
12408 array.
12409 (ada_get_gdb_completer_word_break_characters): Constify.
12410 * completer.c (gdb_completer_command_word_break_characters)
12411 (gdb_completer_file_name_break_characters)
12412 (gdb_completer_quote_characters): Now const arrays.
12413 (get_gdb_completer_quote_characters): Constify.
12414 (set_rl_completer_word_break_characters): New function.
12415 (set_gdb_completion_word_break_characters)
12416 (complete_line_internal): Use it.
12417 * completer.h (get_gdb_completer_quote_characters): Constify.
12418 (set_rl_completer_word_break_characters): Declare.
12419 * f-lang.c (f_word_break_characters): Constify.
12420 * language.c (default_word_break_characters): Constify.
12421 * language.h (language_defn::la_word_break_characters): Constify.
12422 (default_word_break_characters): Constify.
12423 * top.c (init_main): Use set_rl_completer_word_break_characters.
12424
7a114964
PA
124252017-04-05 Pedro Alves <palves@redhat.com>
12426
12427 * aix-thread.c (aix_thread_pid_to_str)
12428 (aix_thread_extra_thread_info): Constify.
12429 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
12430 * bsd-uthread.c (bsd_uthread_extra_thread_info)
12431 (bsd_uthread_pid_to_str): Constify.
12432 * corelow.c (core_pid_to_str): Constify.
12433 * darwin-nat.c (darwin_pid_to_str): Constify.
12434 * fbsd-nat.c (fbsd_pid_to_str): Constify.
12435 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
12436 Constify.
12437 * gnu-nat.c (gnu_pid_to_str): Constify.
12438 * go32-nat.c (go32_pid_to_str): Constify.
12439 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
12440 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
12441 * inferior.c (inferior_pid_to_str): Constify.
12442 * linux-nat.c (linux_nat_pid_to_str): Constify.
12443 * linux-tdep.c (linux_core_pid_to_str): Constify.
12444 * linux-thread-db.c (thread_db_pid_to_str)
12445 (thread_db_extra_thread_info): Constify.
12446 * nto-tdep.c (nto_extra_thread_info): Constify.
12447 * nto-tdep.h (nto_extra_thread_info): Constify.
12448 * obsd-nat.c (obsd_pid_to_str): Constify.
12449 * procfs.c (procfs_pid_to_str): Constify.
12450 * ravenscar-thread.c (ravenscar_extra_thread_info)
12451 (ravenscar_pid_to_str): Constify.
12452 * remote-sim.c (gdbsim_pid_to_str): Constify.
12453 * remote.c (remote_threads_extra_info, remote_pid_to_str):
12454 Constify.
12455 * sol-thread.c (solaris_pid_to_str): Constify.
12456 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
12457 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
12458 * target.c (default_pid_to_str, target_pid_to_str)
12459 (normal_pid_to_str, default_pid_to_str): Constify.
12460 * target.h (target_ops::to_pid_to_str)
12461 (target_ops::to_extra_thread_info): Constify.
12462 (target_pid_to_str, normal_pid_to_str): Constify.
12463 * windows-nat.c (windows_pid_to_str): Constify.
12464 * gdbarch.sh (core_pid_to_str): Constify.
12465 * target-delegates.c: Regenerate.
12466 * gdbarch.h, gdbarch.c: Regenerate.
12467
69bbf465
PA
124682017-04-05 Pedro Alves <palves@redhat.com>
12469
12470 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
12471 the memory of the temporary warning_pre_print override.
12472 * utils.c (warning_pre_print): Constify.
12473 * utils.h (warning_pre_print): Constify.
12474
be47f9e8
PA
124752017-04-05 Pedro Alves <palves@redhat.com>
12476
12477 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
12478 (shell_command): New function.
12479 (make_command): Use std::string.
12480 (init_cli_cmds): Register shell_command instead of shell_escape.
12481
bde6261a
PA
124822017-04-05 Pedro Alves <palves@redhat.com>
12483
12484 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
12485 * tracepoint.c (default_collect): Don't initialize.
12486
b38ef47f
PA
124872017-04-05 Pedro Alves <palves@redhat.com>
12488
12489 * macroexp.c (macro_buffer::shared): Now a bool.
12490 (init_buffer): Update.
12491 (init_shared_buffer): Constify 'addr' parameter.
12492 (substitute_args, expand, macro_expand, macro_expand_next): Remove
12493 casts.
12494
f995bbe8
PA
124952017-04-05 Pedro Alves <palves@redhat.com>
12496
12497 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
12498 * disasm.c (set_disassembler_options): Constify local.
12499 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
12500
4a596fe2
SDJ
125012017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
12502
12503 PR gdb/21352
12504 * tracefile.c (tsave_command): Fix argument parsing for '-r'
12505 option.
12506
2cad08ea
YQ
125072017-04-05 Yao Qi <yao.qi@linaro.org>
12508
12509 * frame.c (frame_unwind_register_unsigned): Call
12510 frame_unwind_register_value.
12511
55a98976
YQ
125122017-04-05 Yao Qi <yao.qi@linaro.org>
12513
12514 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
12515 Use gdb_test_multiple, and don't match anchor.
12516
4ac40124
PA
125172017-04-05 Pedro Alves <palves@redhat.com>
12518
12519 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
12520 (Write After Approval): Remove Simon Marchi.
12521
c053b654
PA
125222017-04-05 Pedro Alves <palves@redhat.com>
12523
12524 * common/gdb_optional.h (optional::optional): Make constexpr and
12525 initialize m_dummy.
12526
4c7bf4f9
JB
125272017-04-04 John Baldwin <jhb@FreeBSD.org>
12528
12529 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
12530 (amd64fbsd_jmp_buf_reg_offset): Remove.
12531 (amd64fbsd_supply_uthread): Remove function.
12532 (amd64fbsd_collect_uthread): Remove function.
12533 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
12534 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
12535 (x86_64-*-freebsd*): Remove bsd-uthread.o.
12536 (fbsd-nat.c): Update comment.
12537 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
12538 (i386fbsd_jmp_buf_reg_offset): Remove.
12539 (i386fbsd_supply_uthread): Remove function.
12540 (i386fbsd_collect_uthread): Remove function.
12541 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
12542
1e1a8bef
JB
125432017-04-04 John Baldwin <jhb@FreeBSD.org>
12544
12545 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
12546 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
12547 * NEWS: Mention that support for FreeBSD/alpha was removed.
12548 * alpha-fbsd-tdep.c: Delete file.
12549 * config/alpha/fbsd.mh: Delete file.
12550 * configure.host: Delete alpha*-*-freebsd* and
12551 alpha*-*-kfreebsd*-gnu.
12552 * configure.tgt: Delete alpha*-*-freebsd* and
12553 alpha*-*-kfreebsd*-gnu.
12554
49907934
JB
125552017-04-04 John Baldwin <jhb@FreeBSD.org>
12556
12557 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
12558 amd64bsd_store_inferior_registers): Use ptid from regcache.
12559
6f77053d
PA
125602017-04-04 Pedro Alves <palves@redhat.com>
12561
12562 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
12563 data fields, make them private and add "m_" prefixes.
12564 (lnp_state_machine::lnp_state_machine): New ctor.
12565 (record_line, check_line_address, handle_set_discriminator)
12566 (handle_set_address, handle_advance_pc, handle_special_opcode)
12567 (handle_advance_line, handle_set_file, handle_negate_stmt)
12568 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
12569 (end_sequence, advance_line): New methods.
12570 (m_gdbarch, m_record_lines_p): New fields.
12571 (lnp_reader_state): Delete.
12572 (dwarf_record_line): Rename to ...
12573 (lnp_state_machine::record_line): ... adjust.
12574 (init_lnp_state_machine): Delete.
12575 (lnp_state_machine::lnp_state_machine): New.
12576 (check_line_address): Rename to ...
12577 (lnp_state_machine::check_line_address): This.
12578 (dwarf_decode_lines_1): Remove reference to "reader_state".
12579 Adjust lnp_state_machine having a non-default ctor. Use bool.
12580 State machine internal state manipulation moved to
12581 lnp_state_machine methods.
12582
9c541725
PA
125832017-04-04 Pedro Alves <palves@redhat.com>
12584
12585 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12586 unittests/offset-type-selftests.c.
12587 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
12588 * common/offset-type.h: New file.
12589 * common/preprocessor.h: New file.
12590 * common/traits.h: New file.
12591 * common/valid-expr.h: New file.
12592 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
12593 sect_offset and cu_offset strong typedefs throughout.
12594 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
12595 typedefs throughout.
12596 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
12597 sect_offset and cu_offset strong typedefs throughout.
12598 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
12599 typedefs throughout.
12600 * gdbtypes.h: Include "common/offset-type.h".
12601 (cu_offset): Now an offset type (strong typedef) instead of a
12602 struct.
12603 (sect_offset): Likewise.
12604 (union call_site_parameter_u): Rename "param_offset" field to
12605 "param_cu_off".
12606 * unittests/offset-type-selftests.c: New file.
12607
ecfb656c
PA
126082017-04-04 Pedro Alves <palves@redhat.com>
12609
12610 * common/underlying.h: New file.
12611 * dwarf2read.c: Include "common/gdb_optional.h" and
12612 "common/underlying.h".
12613 (dir_index, file_name_index): New types.
12614 (file_entry): Use them.
12615 (file_entry::include): Use to_underlying.
12616 (line_header::add_file_name): Use dir_index.
12617 (read_formatted_entries): Use gdb::optional. Read form before
12618 writting to file_entry.
12619 (dwarf_decode_line_header): Use dir_index.
12620 (lnp_state_machine::current_file): Use to_underlying.
12621 (lnp_state_machine::file): Change type to file_name_index.
12622 (dwarf_record_line): Use to_underlying.
12623 (init_lnp_state_machine): Use file_name_index.
12624 (dwarf_decode_lines_1): Use dir_index and file_name_index.
12625
d194f1fe
PA
126262017-04-04 Pedro Alves <palves@redhat.com>
12627
12628 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
12629 operator bool, has_value and get methods.
12630
fff8551c
PA
126312017-04-04 Pedro Alves <palves@redhat.com>
12632
12633 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
12634 fields.
12635 (line_header): Initialize all data fields. Change type of
12636 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
12637 Change type of include_dirs to std::vector<const char *>. Remove
12638 num_include_dirs, include_dirs_size. Change type of file_names to
12639 std::vector<file_entry>. Remove num_file_names, file_names_size.
12640 (line_header::line_header): New.
12641 (line_header::add_include_dir, line_header::add_file_name): New
12642 methods.
12643 (line_header::include_dir_at): Remove NULL check.
12644 (line_header::file_name_at): Add const overload.
12645 (line_header_up): New unique_ptr typedef.
12646 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
12647 std::vector. Remove free_line_header call.
12648 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
12649 free_line_header call.
12650 (free_cu_line_header): Delete.
12651 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
12652 (setup_type_unit_groups): Use line_header_up instead of cleanups.
12653 Adjust to use std::vector.
12654 (free_line_header): Delete.
12655 (free_line_header_voidp): Use delete.
12656 (add_include_dir): Replace with ...
12657 (line_header::add_include_dir): ... this method. Use std::vector.
12658 (add_file_name): Replace with ...
12659 (line_header::add_file_name): ... this method. Use std::vector.
12660 (add_include_dir_stub): Delete.
12661 (read_formatted_entries): Remove memset.
12662 (dwarf_decode_line_header): Return a line_header_up instead of a
12663 raw pointer. Remove cleanup handling. Pass lambdas to
12664 read_formatted_entries. Adjust to use line_header methods.
12665 (dwarf_decode_lines_1): Adjust to use line_header methods.
12666 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
12667 use std::vector.
12668
d62a8ae2
SM
126692017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
12670
12671 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
12672 instead of struct ptid.
12673
db3a1dc7
AH
126742017-05-04 Alan Hayward <alan.hayward@arm.com>
12675
12676 * frame.c (get_frame_register_bytes): Unwind using value.
12677 (put_frame_register_bytes): Likewise.
12678
b1b45502
IB
126792017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
12680
12681 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
12682 aggregate-like.
12683
ec13808e
JK
126842017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
12685
12686 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
12687
12316564
YQ
126882017-03-29 Yao Qi <yao.qi@linaro.org>
12689
12690 * gdbthread.h (struct thread_info): Declare constructor and
12691 destructor. Add some in-class member initializers.
12692 * thread.c (free_thread): Remove.
12693 (init_thread_list): Call delete instead of free_thread.
12694 (new_thread): Call thread_info constructor.
12695 (thread_info::thread_info): New function.
12696 (thread_info::~thread_info): New function.
12697 (delete_thread_1): Call delete instead of free_thread.
12698 (make_cleanup_restore_current_thread): Move tp and frame to
12699 inner block.
12700
fe5f7374
AK
127012017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12702
12703 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
12704 (arc_skip_prologue): Likewise.
12705 (arc_make_frame_cache): Likewise.
12706 (arc_pv_get_operand): New function.
12707 (arc_is_in_prologue): Likewise.
12708 (arc_analyze_prologue): Likewise.
12709 (arc_print_frame_cache): Likewise.
12710 (MAX_PROLOGUE_LENGTH): New constant.
12711
eea78757
AK
127122017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12713
12714 * configure.tgt: Add arc-insn.o.
12715 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
12716 (dump_arc_instruction_command): New function.
12717 (arc_fprintf_disasm): Likewise.
12718 (arc_disassemble_info): Likewise.
12719 (arc_insn_get_operand_value): Likewise.
12720 (arc_insn_get_operand_value_signed): Likewise.
12721 (arc_insn_get_memory_base_reg): Likewise.
12722 (arc_insn_get_memory_offset): Likewise.
12723 (arc_insn_get_branch_target): Likewise.
12724 (arc_insn_dump): Likewise.
12725 (arc_insn_get_linear_next_pc): Likewise.
12726 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
12727 (arc_disassemble_info): Likewise.
12728 (arc_insn_get_branch_target): Likewise.
12729 (arc_insn_get_linear_next_pc): Likewise.
12730 * NEWS: Mention new "maint print arc arc-instruction".
12731
3be78afd
AK
127322017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12733
12734 * arc-tdep (maintenance_print_arc_list): New variable.
12735 (maintenance_print_arc_command): New function.
12736
296ec4fa
AK
127372017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12738
12739 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
12740 Add "limm" and "reserved".
12741 (arc_cannot_fetch_register, arc_cannot_store_register): Add
12742 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
12743 * arc-tdep.h (arc_regnum): Likewise.
12744
f74f865e
MF
127452017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12746
12747 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12748 for THREADPTR register.
12749 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
12750 register.
12751 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
12752 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
12753 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
12754
0d0bf81a
MF
127552017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12756
12757 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
12758 registers above gdbarch_num_regs (gdbarch) as privileged in
12759 call0 ABI.
12760
0ce4291e
MF
127612017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12762
12763 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12764 for a single specified register or for all registers in
12765 a0_base..a0_base + C0_NREGS range.
12766 (supply_gregset_reg): Call regcache_raw_supply for a single
12767 specified register or for all registers in a0_base..a0_base +
12768 C0_NREGS range.
12769
c56054f9
MF
127702017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12771
12772 * arch/xtensa.h (C0_NREGS): Add definition.
12773 * xtensa-tdep.c (C0_NREGS): Remove definition.
12774
a4398628
MF
127752017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12776
12777 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
12778 Drop xtensa_default_isa initialization.
12779 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
12780
8c43009f
PA
127812017-03-27 Pedro Alves <palves@redhat.com>
12782
12783 * dwarf2read.c (file_entry) <dir_index>: Add comment.
12784 (file_entry::include_dir): New method.
12785 (line_header::include_dir_at, line_header::file_name_at): New
12786 methods.
12787 (setup_type_unit_groups, setup_type_unit_groups)
12788 (psymtab_include_file_name): Simplify using the new methods.
12789 (lnp_state_machine) <the_line_header>: New field.
12790 <file>: Add comment.
12791 (lnp_state_machine::current_file): New method.
12792 (dwarf_record_line): Simplify using the new methods.
12793 (init_lnp_state_machine): Initialize the "the_line_header" field.
12794 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
12795 Simplify using the new methods.
12796
a7e80b9e
PA
127972017-03-27 Pedro Alves <palves@redhat.com>
12798
12799 * cp-name-parser.y (make_empty): Delete.
12800 (demangler_special, nested_name, ptr_operator, array_indicator)
12801 (direct_declarator, declarator_1): Use fill_comp instead of
12802 make_empty.
12803
21047726
PA
128042017-03-27 Pedro Alves <palves@redhat.com>
12805
12806 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
12807 to ATTRIBUTE_PRINTF.
12808 * solib-target.c (library_list_start_list): Print "string" not
12809 "version".
12810 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
12811 gdb_xml_error call.
12812
d721ba37
PA
128132017-03-27 Pedro Alves <palves@redhat.com>
12814
12815 * dwarf2read.c (struct file_and_directory): New.
12816 (dwarf2_get_dwz_file): Adjust to use std::string.
12817 (dw2_get_file_names_reader): Adjust to use file_and_directory.
12818 (find_file_and_directory): Adjust to return a file_and_directory
12819 object.
12820 (read_file_scope): Adjust to use file_and_directory. Remove
12821 make_cleanup/do_cleanups calls.
12822 (open_and_init_dwp_file): Adjust to use std::string. Remove
12823 make_cleanup/do_cleanups calls.
12824 * python/python.c (do_start_initialization): Adjust to ldirname
12825 returning a std::string.
12826 * utils.c (ldirname): Now returns a std::string.
12827 * utils.h (ldirname): Change return type to std::string.
12828 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
12829 returning a std::string.
12830 * xml-tdesc.c (file_read_description_xml): Likewise.
12831
ed771251
AH
128322017-03-24 Alan Hayward <alan.hayward@arm.com>
12833
12834 * regcache.c (regcache_debug_print_register): New function.
12835 * regcache.h (regcache_debug_print_register): New declaration.
12836 * target.c (debug_print_register): Remove.
12837 (target_fetch_registers): Call regcache_debug_print_register.
12838 (target_store_registers): Likewise.
12839
568c1b9f
PB
128402017-03-24 Pádraig Brady <pbrady@fb.com>
12841
12842 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
12843 reference beyond the 'lh->include_dirs' array before accessing to
12844 it.
12845 (psymtab_include_file_name): Likewise.
12846 (dwarf_decode_lines_1): Likewise.
12847 (dwarf_decode_lines): Likewise.
12848 (file_file_name): Likewise.
12849
3e00d44f
SM
128502017-03-23 Simon Marchi <simon.marchi@ericsson.com>
12851
12852 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
12853 inferior_ptid.
12854 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12855 ps_lsetfpregs): Likewise.
12856 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
12857 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12858 ps_lsetfpregs): Likewise.
12859 * target.c (target_fetch_registers, target_store_registers):
12860 Remove asserts.
12861
077ae656
AH
128622017-03-23 Alan Hayward <alan.hayward@arm.com>
12863
12864 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
12865
1e2b521d
YQ
128662017-03-23 Yao Qi <yao.qi@linaro.org>
12867
12868 * aarch64-tdep.c (aarch64_process_record_test): Declare.
12869 (_initialize_aarch64_tdep): Register it.
12870 (aarch64_record_load_store): Handle PRFM instruction.
12871 (aarch64_process_record_test): New function.
12872
33877125
YQ
128732017-03-23 Yao Qi <yao.qi@linaro.org>
12874
12875 * aarch64-tdep.c (aarch64_record_load_store): Fix code
12876 indentation.
12877
a0eef940
YQ
128782017-03-23 Yao Qi <yao.qi@linaro.org>
12879
12880 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
12881
3f2a3564
PR
128822017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12883
12884 python/python.c (do_start_initialization): Fix memory leak.
12885
b67aeab0
SM
128862017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12887
12888 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
12889 using get_ptrace_pid.
12890 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
12891 inferior_ptid.
12892 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
12893 inferior_ptid instead of pid.
12894
ffdbe864
YQ
128952017-03-22 Yao Qi <yao.qi@linaro.org>
12896
12897 * aarch64-tdep.c: Wrap locally used classes in anonymous
12898 namespace.
12899 * arm-tdep.c: Likewise.
12900 * linespec.c: Likewise.
12901 * ui-out.c: Likewise.
12902
9d736fbf
JG
129032017-03-22 Jonah Graham <jonah@kichwacoders.com>
12904
12905 PR gdb/19637
12906 * python/lib/gdb/printer/bound_registers.py: Import sys.
12907
3de88e9a
SM
129082017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12909
12910 * windows-nat.c (do_windows_fetch_inferior_registers): Add
12911 windows_thread_info parameter and use it instead of
12912 current_thread.
12913 (windows_fetch_inferior_registers): Don't set current_thread,
12914 pass the thread to do_windows_fetch_inferior_registers. Use
12915 ptid from regcache instead of inferior_ptid.
12916 (do_windows_store_inferior_registers): Add windows_thread_info
12917 parameter and use it instead of current_thread.
12918 (windows_store_inferior_registers): Don't set current_thread,
12919 pass the thread to do_windows_store_inferior_registers. Use
12920 ptid from regcache instead of inferior_ptid.
12921
0e7b8f61
SM
129222017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12923
12924 * ser-mingw.c (ser_windows_raw): Remove reference to
12925 struct serial::current_timeout.
12926
5badf10a
IR
129272017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
12928
12929 PR tdep/20928
12930 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
12931 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
12932 (sparc64_fsr_type): Fix %fsr decoding.
12933
cee59b3f
TW
129342017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
12935
12936 * python/py-record-btrace.c (btpy_insn_data): Change return type
12937 for Python 2.
12938
639a9038
SM
129392017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12940
12941 * spu-linux-nat.c (spu_fetch_inferior_registers,
12942 spu_store_inferior_registers): Use ptid from regcache, set and
12943 restore inferior_ptid.
12944 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
12945 Likewise.
12946
bcc0c096
SM
129472017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12948
12949 * i386-linux-nat.c (fetch_register, store_register,
12950 i386_linux_fetch_inferior_registers,
12951 i386_linux_store_inferior_registers): Use ptid from regcache.
12952 * ia64-linux-nat.c (ia64_linux_fetch_register,
12953 ia64_linux_store_register): Likewise.
12954 * inf-ptrace.c (inf_ptrace_fetch_register,
12955 inf_ptrace_store_register): Likewise.
12956 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
12957 m32r_linux_store_inferior_registers): Likewise.
12958 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
12959 m68kbsd_store_inferior_registers): Likewise.
12960 * m68k-linux-nat.c (fetch_register, store_register,
12961 m68k_linux_fetch_inferior_registers,
12962 m68k_linux_store_inferior_registers): Likewise.
12963 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
12964 m88kbsd_store_inferior_registers): Likewise.
12965 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
12966 mips_fbsd_store_inferior_registers): Likewise.
12967 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
12968 mips64_linux_regsets_store_registers): Likewise.
12969 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
12970 mipsnbsd_store_inferior_registers): Likewise.
12971 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
12972 mips64obsd_store_inferior_registers): Likewise.
12973 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
12974 Likewise.
12975 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
12976 ppcfbsd_store_inferior_registers): Likewise.
12977 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
12978 ppc_linux_store_inferior_registers): Likewise.
12979 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
12980 ppcnbsd_store_inferior_registers): Likewise.
12981 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
12982 ppcobsd_store_registers): Likewise.
12983 * procfs.c (procfs_fetch_registers, procfs_store_registers):
12984 Likewise.
12985 * ravenscar-thread.c (ravenscar_fetch_registers,
12986 ravenscar_store_registers, ravenscar_prepare_to_store):
12987 Likewise.
12988 * record-btrace.c (record_btrace_fetch_registers,
12989 record_btrace_store_registers, record_btrace_prepare_to_store):
12990 Likewise.
12991 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
12992 Lookup inferior using ptid from regcache, instead of
12993 current_inferior.
12994 * remote.c (remote_fetch_registers, remote_store_registers): Use
12995 ptid from regcache.
12996 * rs6000-nat.c (fetch_register, store_register): Likewise.
12997 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
12998 s390_linux_store_inferior_registers): Likewise.
12999 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
13000 shnbsd_store_inferior_registers): Likewise.
13001 * sol-thread.c (sol_thread_fetch_registers,
13002 sol_thread_store_registers): Likewise.
13003 * sparc-nat.c (sparc_fetch_inferior_registers,
13004 sparc_store_inferior_registers): Likewise.
13005 * tilegx-linux-nat.c (fetch_inferior_registers,
13006 store_inferior_registers): Likewise.
13007 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
13008 vaxbsd_store_inferior_registers): Likewise.
13009 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
13010 store_xtregs): Likewise.
13011
c0f55cc6
AV
130122017-03-20 Artemiy Volkov <artemiyv@acm.org>
13013
13014 PR gdb/14441
13015 * NEWS: Mention support for rvalue references in GDB and python.
13016 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
13017 supports both lvalue and rvalue references.
13018
15c0a2a9
AV
130192017-03-20 Artemiy Volkov <artemiyv@acm.org>
13020
13021 PR gdb/14441
13022 * gdbtypes.c (rank_one_type): Implement overloading
13023 resolution rules regarding rvalue references.
13024
aa006118
AV
130252017-03-20 Artemiy Volkov <artemiyv@acm.org>
13026
13027 PR gdb/14441
13028 * aarch64-tdep.c (aarch64_type_align)
13029 (aarch64_extract_return_value, aarch64_store_return_value): Change
13030 lvalue reference type checks to general reference type checks.
13031 * amd64-tdep.c (amd64_classify): Likewise.
13032 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
13033 Likewise.
13034 * arm-tdep.c (arm_type_align, arm_extract_return_value)
13035 (arm_store_return_value): Likewise.
13036 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
13037 * c-typeprint.c (c_print_type): Likewise.
13038 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
13039 (cplus_number_of_children, cplus_describe_child): Likewise.
13040 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
13041 * completer.c (expression_completer): Likewise.
13042 * cp-support.c (make_symbol_overload_list_adl_namespace):
13043 Likewise.
13044 * darwin-nat-info.c (info_mach_region_command): Likewise.
13045 * dwarf2loc.c (entry_data_value_coerce_ref)
13046 (value_of_dwarf_reg_entry): Likewise.
13047 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
13048 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
13049 Likewise.
13050 * findvar.c (extract_typed_address, store_typed_address):
13051 Likewise.
13052 * gdbtypes.c (rank_one_type): Likewise.
13053 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
13054 * infcall.c (value_arg_coerce): Likewise.
13055 * language.c (pointer_type): Likewise.
13056 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
13057 Likewise.
13058 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
13059 * mn10300-tdep.c (mn10300_type_align): Likewise.
13060 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
13061 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
13062 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
13063 Likewise.
13064 * printcmd.c (print_formatted, x_command): Likewise.
13065 * python/py-type.c (typy_get_composite, typy_template_argument):
13066 Likewise.
13067 * python/py-value.c (valpy_referenced_value)
13068 (valpy_get_dynamic_type, value_has_field): Likewise.
13069 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
13070 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
13071 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
13072 * spu-tdep.c (spu_scalar_value_p): Likewise.
13073 * symtab.c (lookup_symbol_aux): Likewise.
13074 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
13075 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
13076 Likewise.
13077 * valops.c (value_cast_pointers, value_cast)
13078 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
13079 (value_struct_elt, value_struct_elt_bitpos)
13080 (value_find_oload_method_list, find_overload_match)
13081 (value_rtti_indirect_type): Likewise.
13082 * valprint.c (val_print_scalar_type_p, generic_val_print):
13083 Likewise.
13084 * value.c (value_actual_type, value_as_address, unpack_long)
13085 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
13086 (coerce_ref): Likewise.
13087 * varobj.c (varobj_get_value_type): Likewise.
13088
3fcf899d
AV
130892017-03-20 Artemiy Volkov <artemiyv@acm.org>
13090
13091 PR gdb/14441
13092 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
13093 table of constants.
13094 * python/lib/gdb/command/explore.py: Support exploring values
13095 of rvalue reference types.
13096 * python/lib/gdb/types.py: Implement get_basic_type() for
13097 rvalue reference types.
13098 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
13099 constant.
13100 * python/py-value.c (valpy_getitem): Add an rvalue reference
13101 check.
13102 (valpy_reference_value): Add new parameter "refcode".
13103 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
13104 New wrappers for valpy_reference_value().
13105 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
13106 (gdbpy_invoke_xmethod): Likewise.
13107
4297a3f0
AV
131082017-03-20 Artemiy Volkov <artemiyv@acm.org>
13109
13110 PR gdb/14441
13111 * dwarf2read.c (process_die, read_type_die_1): Handle the
13112 DW_TAG_rvalue_reference_type DIE.
13113 (read_tag_reference_type): Add new parameter "refcode".
13114
e1cb3213
AV
131152017-03-20 Artemiy Volkov <artemiyv@acm.org>
13116
13117 PR gdb/14441
13118 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
13119 (c_type_print_modifier, c_type_print_varspec_suffix)
13120 (c_type_print_base): Support printing rvalue reference types.
13121 * c-valprint.c (c_val_print, c_value_print): Support printing
13122 rvalue reference values.
13123
e4347c89
AV
131242017-03-20 Artemiy Volkov <artemiyv@acm.org>
13125
13126 PR gdb/14441
13127 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
13128 typename.
13129 * cp-support.c (replace_typedefs): Handle
13130 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
13131 * python/py-type.c (typy_lookup_type): Likewise.
13132
53cc15f5
AV
131332017-03-20 Artemiy Volkov <artemiyv@acm.org>
13134
13135 PR gdb/14441
13136 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
13137 * parse.c (insert_type): Change assert statement.
13138 (follow_types): Handle rvalue reference types.
13139 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
13140 constant.
13141
a65cfae5
AV
131422017-03-20 Artemiy Volkov <artemiyv@acm.org>
13143
13144 PR gdb/14441
13145 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
13146 value_ref() interface.
13147 * c-valprint.c (c_value_print): Likewise.
13148 * infcall.c (value_arg_coerce): Likewise.
13149 * python/py-value.c (valpy_reference_value): Likewise.
13150 * valops.c (value_cast, value_reinterpret_cast)
13151 (value_dynamic_cast, typecmp): Likewise.
13152 (value_ref): Parameterize by kind of return value reference type.
13153 * value.h (value_ref): Add new parameter "refcode".
13154
3b224330
AV
131552017-03-20 Artemiy Volkov <artemiyv@acm.org>
13156
13157 PR gdb/14441
13158 * dwarf2read.c (read_tag_reference_type): Use
13159 lookup_lvalue_reference_type() instead of lookup_reference_type().
13160 * eval.c (evaluate_subexp_standard): Likewise.
13161 * f-exp.y: Likewise.
13162 * gdbtypes.c (make_reference_type, lookup_reference_type):
13163 Generalize with rvalue reference types.
13164 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
13165 convenience wrappers for lookup_reference_type().
13166 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
13167 reference kind parameter.
13168 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
13169 wrappers for lookup_reference_type().
13170 * guile/scm-type.c (gdbscm_type_reference): Use
13171 lookup_lvalue_reference_type() instead of lookup_reference_type().
13172 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
13173 * parse.c (follow_types): Likewise.
13174 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
13175 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
13176 Likewise.
13177 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
13178 (gdbpy_invoke_xmethod): Likewise.
13179 * stabsread.c: Provide extra argument to make_reference_type()
13180 call.
13181 * valops.c (value_ref, value_rtti_indirect_type): Use
13182 lookup_lvalue_reference_type() instead of lookup_reference_type().
13183
f9aeb8d4
AV
131842017-03-20 Artemiy Volkov <artemiyv@acm.org>
13185
13186 PR gdb/14441
13187 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
13188 (TYPE_IS_REFERENCE): New macro.
13189 (struct type): Add rvalue_reference_type field.
13190 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
13191
51457a05
MAL
131922017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
13193
13194 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
13195 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
13196 New function definition.
13197 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
13198 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
13199 New function declaration.
13200 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
13201 * mi/mi-interp.h: New file.
13202 * solib.c (info_sharedlibrary_command): Replace for loop with
13203 ALL_SO_LIBS macro
13204 * solib.h (update_solib_list): New function declaration.
13205 (so_list_head): Move macro.
13206 * solist.h (ALL_SO_LIBS): New macro.
13207
e696b3ad
MAL
132082017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
13209
13210 * infcmd.c (post_create_inferior): Remove unused argument in
13211 call to solib_add.
13212 * remote.c (remote_start_remote): Likewise.
13213 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
13214 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
13215 (enable_break): Likewise.
13216 * solib.c (update_solib_list): Remove unused target argument
13217 and its documentation.
13218 (solib_add): Remove unused target argument. Remove unused
13219 argument in call to update_solib_list.
13220 (info_sharedlibrary_command): Remove unused argument in call
13221 to update_solib_list.
13222 (sharedlibrary_command): Remove unused argument in call to
13223 solib_add.
13224 (handle_solib_event): Likewise.
13225 (reload_shared_libraries): Likewise.
13226 * solib.h (solib_add): Remove unused target argument.
13227
dcb84eda
AA
132282017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
13229
13230 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
13231 (s390_displaced_step_fixup): Cover relative branches with the
13232 default fixup handling. This fixes lack of support for some
13233 relative branch instructions.
13234
d9cb6cdc
SM
132352017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13236
13237 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
13238 ptid from regcache.
13239
1afaf9f4
SM
132402017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13241
13242 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
13243 i386_darwin_store_inferior_registers): Use ptid from regcache.
13244
aac12e24
SM
132452017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13246
13247 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
13248 i386bsd_store_inferior_registers): Use ptid from regcache.
13249
bbe1eef1
SM
132502017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13251
13252 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
13253 hppaobsd_store_registers): Use ptid from regcache.
13254
10799020
SM
132552017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13256
13257 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
13258 hppanbsd_store_registers): Use ptid from regcache.
13259
00204cf7
SM
132602017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13261
13262 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
13263 from regcache. Use get_ptrace_pid.
13264
11a33714
SM
132652017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13266
13267 * corelow.c (get_core_register_section): Use ptid from regcache,
13268 update doc.
13269
317cd492
SM
132702017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13271
13272 * bsd-uthread.c (bsd_uthread_fetch_registers,
13273 bsd_uthread_store_registers): Use ptid from regcache, set and
13274 restore inferior_ptid.
13275
9ac8a7c2
SM
132762017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13277
13278 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
13279 fetch_fp_regs, store_register, store_regs, store_fp_register,
13280 store_fp_regs): Use ptid from regcache.
13281
4ac4bb6a
SM
132822017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13283
13284 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
13285 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
13286 store_vfp_regs): Use ptid from regcache.
13287
9bcbdca8
PA
132882017-03-17 Pedro Alves <palves@redhat.com>
13289
13290 PR remote/21188
13291 * ser-base.c (ser_base_wait_for): Add comment.
13292 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
13293 version.
13294 * ser-unix.c (hardwire_raw): Remove reference to
13295 scb->current_timeout.
13296 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
13297 (hardwire_ops): Install ser_base_readchar instead of
13298 hardwire_readchar.
13299 * serial.h (struct serial) <current_timeout, timeout_remaining>:
13300 Remove fields.
13301
7503099f
JG
133022017-03-17 Jonah Graham <jonah@kichwacoders.com>
13303
13304 PR gdb/19637
13305 * python/lib/gdb/printer/bound_registers.py: Add support for
13306 Python 3.
13307
7942e96e
AA
133082017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
13309
13310 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
13311 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
13312 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
13313 byte_offset to subobj_byte_offset. Fix the handling of
13314 DWARF_VALUE_STACK on big-endian targets when coming via an
13315 implicit pointer.
13316 (dwarf2_evaluate_loc_desc): Adjust call to
13317 dwarf2_evaluate_loc_desc_full.
13318 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
13319 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
13320
ba14f379
YQ
133212017-03-16 Yao Qi <yao.qi@linaro.org>
13322
13323 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
13324 and REVSH instructions.
13325
b121eeb9
YQ
133262017-03-16 Yao Qi <yao.qi@linaro.org>
13327
13328 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
13329 (arm_record_test): Declare.
13330 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
13331 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
13332 align with the manual.
13333 (thumb_record_misc): Adjust the code order to align with the
13334 manual.
13335 (thumb2_record_decode_insn_handler): Fix instruction matching.
13336 (instruction_reader_thumb): New class.
13337 (arm_record_test): New function.
13338
728a7913
YQ
133392017-03-16 Yao Qi <yao.qi@linaro.org>
13340
13341 * arm-tdep.c (abstract_memory_reader): New class.
13342 (instruction_reader): New class.
13343 (extract_arm_insn): Add argument 'reader'. Callers updated.
13344 (decode_insn): Likewise.
13345
34b43320
DE
133462017-03-16 Doug Evans <dje@google.com>
13347
a7c0469f
DE
13348 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
13349 member. Change type of TYPE member to SCM. All uses updated.
13350 (lsscm_make_lazy_string_smob): Add assert.
13351 (lsscm_make_lazy_string): Flag bad length values.
13352 (lsscm_elt_type): New function.
13353 (gdbscm_lazy_string_to_value): Rewrite to use
13354 lsscm_safe_lazy_string_to_value.
13355 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
13356 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
13357 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
13358 in incoming type.
13359 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
13360 * guile/scm-type.c (tyscm_scm_to_type): New function.
13361
133622017-03-15 Doug Evans <dje@google.com>
13363
34b43320
DE
13364 PR python/17728, python/18439, python/18779
13365 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
13366 member. Change type of TYPE member to PyObject *. All uses updated.
13367 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
13368 (gdbpy_create_lazy_string_object): Flag bad length values.
13369 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
13370 Handle typedefs in incoming type.
13371 (stpy_lazy_string_elt_type): New function.
13372 (gdbpy_extract_lazy_string): Call it.
13373 * python/py-value.c (valpy_lazy_string): Flag bad length values.
13374 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
13375 typedefs in incoming type.
13376
a3a5fecc
DE
133772017-03-16 Doug Evans <dje@google.com>
13378
13379 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
13380 * guile/scm-type.c (tyscm_scm_to_type): New function.
13381
28f1c605
JW
133822017-03-16 Jiong Wang <jiong.wang@arm.com>
13383
13384 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
13385 "ULONGEST" for "skip".
13386
87c336f6
AA
133872017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
13388
13389 PR gdb/21220
13390 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
13391 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
13392 (inf_ptrace_peek_poke): ...here. New function. Now also loop
13393 over ptrace peek/poke until end of buffer or error.
13394
cf81cf60
SM
133952017-03-14 Simon Marchi <simon.marchi@ericsson.com>
13396
13397 * parse.c (length_of_subexp): Make static.
13398 * parser-defs.h (length_of_subexp): Remove.
13399
a379284a
AA
134002017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
13401
13402 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
13403 as well.
13404
8a6200ba
PA
134052017-03-14 Pedro Alves <palves@redhat.com>
13406
13407 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
13408 (main): Use std::unique_ptr. Remove calls to
13409 cp_demangled_name_parse_free.
13410
f79ec206
SM
134112017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13412
13413 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
13414 alphabsd_store_inferior_registers): Use regcache->ptid instead
13415 of inferior_ptid.
13416
edb5fb00
SM
134172017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13418
13419 * aix-thread.c (aix_thread_fetch_registers,
13420 aix_thread_store_registers): Use regcache->ptid instead of
13421 inferior_ptid.
13422
55119686
SM
134232017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13424
13425 * aarch64-linux-nat.c (fetch_gregs_from_thread,
13426 store_gregs_to_thread, fetch_fpregs_from_thread,
13427 store_fpregs_to_thread): Use regcache->ptid instead of
13428 inferior_ptid.
13429
6a06fbb7
SM
134302017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13431
13432 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
13433 amd64_linux_fetch_inferior_registers): Use regcache->ptid
13434 instead of inferior_ptid.
13435
c6386875
SM
134362017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13437
13438 * target.c (target_fetch_registers, target_store_registers): Add
13439 assert.
13440
ddaaf0fb
SM
134412017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13442
13443 * regcache.h (regcache_get_ptid): New function.
13444 * regcache.c (regcache_get_ptid): New function.
13445
b9da89d1 134462017-03-13 Mark Wielaard <mark@klomp.org>
13447
13448 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
13449
5f4d1085
KS
134502017-03-10 Keith Seitz <keiths@redhat.com>
13451
13452 PR c++/8218
13453 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
13454
c65d6b55
PA
134552017-03-08 Pedro Alves <palves@redhat.com>
13456
13457 PR gdb/18360
13458 * infrun.c (start_step_over, do_target_resume, resume)
13459 (restart_threads): Assert we're not resuming a thread that is
13460 meant to be stopped.
13461 (infrun_thread_stop_requested_callback): Delete.
13462 (infrun_thread_stop_requested): If the thread is internally
13463 stopped, queue a pending stop event and clear the thread's
13464 inline-frame state.
13465 (handle_stop_requested): New function.
13466 (handle_syscall_event, handle_inferior_event_1): Use
13467 handle_stop_requested.
13468 (handle_stop_requested): New function.
13469 (handle_signal_stop): Set the thread's stop_signal here instead of
13470 at caller.
13471 (finish_step_over): Clear step over info unconditionally.
13472 (handle_signal_stop): If the user had interrupted the event
13473 thread, consider the stop a random signal.
13474 (handle_signal_stop) <signal arrived while stepping over
13475 breakpoint>: Don't restart threads here.
13476 (stop_waiting): Don't clear step-over info here.
13477
15c22686
PA
134782017-03-08 Pedro Alves <palves@redhat.com>
13479
13480 PR 21206
13481 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
13482 goes to argument 2, not 1.
13483
6e5d74e7
PA
134842017-03-08 Pedro Alves <palves@redhat.com>
13485
13486 PR cli/21218
13487 * top.c (gdb_readline_wrapper): Avoid passing NULL to
13488 display_gdb_prompt.
13489 (command_line_input): Add comment.
13490
9753a2f6
PA
134912017-03-08 Pedro Alves <palves@redhat.com>
13492
13493 PR tui/21216
13494 * tui/tui-file.c (tui_file::write): New.
13495 * tui/tui-file.h (tui_file): Override "write".
13496 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
13497 factored out from ...
13498 (tui_puts): ... here.
13499 (tui_putc): Use them.
13500 (tui_write): New function.
13501 * tui/tui-io.h (tui_write): Declare.
13502
1672e0d9
SDJ
135032017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
13504
13505 * Makefile.in (SFILES): Replace "environ.c" with
13506 "common/environ.c".
13507 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
13508 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
13509 to...
13510 * common/environ.c: ... here.
13511 * environ.h: Moved to...
13512 * common/environ.h: ... here.
13513
f7bb4e3a
PB
135142017-03-07 Peter Bergner <bergner@vnet.ibm.com>
13515
13516 * gdbarch.sh (pstring_ptr): New static function.
13517 (gdbarch_disassembler_options): Use it.
13518 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
13519 not valid_disassembler_option->name.
13520 * gdbarch.c: Regenerate.
13521
e45ced6c
PB
135222017-03-07 Peter Bergner <bergner@vnet.ibm.com>
13523
13524 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
13525
5f6fd321
PA
135262017-03-07 Pedro Alves <palves@redhat.com>
13527
13528 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
13529
6dbb839a 135302017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
13531
13532 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
13533 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
13534 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 13535 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 13536
d274ecf4
SM
135372017-03-06 Simon Marchi <simon.marchi@ericsson.com>
13538
13539 * xtensa-linux-nat.c (fetch_gregs): Remove const.
13540
df97be55
SM
135412017-03-03 Simon Marchi <simon.marchi@ericsson.com>
13542
13543 * remote.c (remote_add_target_side_commands): Use range-based
13544 for loop.
13545
7d45f3df
YQ
135462017-03-03 Yao Qi <yao.qi@linaro.org>
13547
13548 PR gdb/21165
13549 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
13550 value is lazy.
13551 * valprint.c (common_val_print): Likewise.
13552
65b48a81
PB
135532017-02-28 Peter Bergner <bergner@vnet.ibm.com>
13554
13555 * NEWS: Mention new set/show disassembler-options commands.
13556 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
13557 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
13558 (prospective_options): New static variable.
13559 (gdb_disassembler::gdb_disassembler): Initialize
13560 m_di.disassembler_options.
13561 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
13562 (get_disassembler_options): New function.
13563 (set_disassembler_options): Likewise.
13564 (set_disassembler_options_sfunc): Likewise.
13565 (show_disassembler_options_sfunc): Likewise.
13566 (disassembler_options_completer): Likewise.
13567 (_initialize_disasm): Likewise.
13568 * disasm.h (get_disassembler_options): New prototype.
13569 (set_disassembler_options): Likewise.
13570 * gdbarch.sh (gdbarch_disassembler_options): New variable.
13571 (gdbarch_verify_disassembler_options): Likewise.
13572 * gdbarch.c: Regenerate.
13573 * gdbarch.h: Likewise.
13574 * arm-tdep.c (num_disassembly_options): Delete.
13575 (set_disassembly_style): Likewise.
13576 (arm_disassembler_options): New static variable.
13577 (set_disassembly_style_sfunc): Convert short style name into long
13578 option name. Call set_disassembler_options.
13579 (show_disassembly_style_sfunc): New function.
13580 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
13581 set_gdbarch_verify_disassembler_options.
13582 (_initialize_arm_tdep): Delete regnames variable and update callers.
13583 (arm_disassembler_options): Initialize.
13584 (disasm_options): New variable.
13585 (num_disassembly_options): Rename from this...
13586 (num_disassembly_styles): ...to this. Compute by scanning through
13587 disasm_options.
13588 (valid_disassembly_styles): Initialize using disasm_options.
13589 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
13590 set_arm_regname_option.
13591 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
13592 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
13593 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
13594 set_gdbarch_verify_disassembler_options.
13595 * s390-tdep.c (s390_disassembler_options): New static variable.
13596 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
13597 set_gdbarch_verify_disassembler_options.
13598
d538e36d
SM
135992017-02-27 Simon Marchi <simon.marchi@ericsson.com>
13600
13601 * remote.c (remote_add_target_side_condition): Remove "struct"
13602 keyword from range-based for loop.
13603
83621223
SM
136042017-02-27 Simon Marchi <simon.marchi@ericsson.com>
13605
13606 * remote.c (remote_add_target_side_condition): Use range-based
13607 for loop. Update comment.
13608
2123df0e
YQ
136092017-02-27 Yao Qi <yao.qi@linaro.org>
13610
13611 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
13612
8e368124
AH
136132017-02-26 Alan Hayward <alan.hayward@arm.com>
13614
13615 * regcache.c (regcache_raw_update): New function.
13616 (regcache_raw_read): Move code to regcache_raw_update.
13617 * regcache.h (regcache_raw_update): New declaration.
13618 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
13619
a49dd8dd
JK
136202017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
13621
13622 * dwarf2read.c (create_debug_type_hash_table): Initialize
13623 header.signature and header.type_offset_in_tu.
13624
34e4bae9
PA
136252017-02-24 Pedro Alves <palves@redhat.com>
13626
13627 * symtab.c (make_file_symbol_completion_list_1): Use
13628 add_symtab_completions.
13629
b0e4b369
AH
136302017-02-24 Alan Hayward <alan.hayward@arm.com>
13631
13632 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
13633
975c21ab
AH
136342017-02-24 Alan Hayward <alan.hayward@arm.com>
13635
13636 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
13637 I386_MAX_REGISTER_SIZE.
13638 (i386_pseudo_register_write): Likewise.
13639 (i386_process_record): Likewise.
13640 * i387-tdep.c (i387_supply_xsave): Likewise.
13641 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
13642 (store_register): Likewise.
13643
14bc53a8
PA
136442017-02-23 Pedro Alves <palves@redhat.com>
13645
13646 * ada-lang.c: Include "common/function-view.h".
13647 (ada_iterate_over_symbols): Adjust to use function_view as
13648 callback type.
13649 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
13650 (ada_make_symbol_completion_list): Use a lambda.
13651 (ada_exc_search_name_matches): Delete.
13652 (name_matches_regex): New.
13653 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
13654 * compile/compile-c-support.c: Include "common/function-view.h".
13655 (print_one_macro): Change prototype to accept a ui_file pointer.
13656 (write_macro_definitions): Use a lambda.
13657 * dwarf2read.c: Include "common/function-view.h".
13658 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
13659 (dw2_expand_symtabs_matching): Adjust to use function_view as
13660 callback type.
13661 * language.h: Include "common/function-view.h".
13662 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
13663 function_view as callback type.
13664 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
13665 * linespec.c: Include "common/function-view.h".
13666 (collect_info::add_symbol): New method.
13667 (struct symbol_and_data_callback, iterate_inline_only, struct
13668 symbol_matcher_data, iterate_name_matcher): Delete.
13669 (iterate_over_all_matching_symtabs): Adjust to use function_view
13670 as callback type and lambdas.
13671 (iterate_over_file_blocks): Adjust to use function_view as
13672 callback type.
13673 (decode_compound_collector): Now a class with private fields.
13674 (decode_compound_collector::release_symbols): New method.
13675 (collect_one_symbol): Rename to...
13676 (decode_compound_collector::operator()): ... this and adjust.
13677 (lookup_prefix_sym): decode_compound_collector construction bits
13678 move to decode_compound_collector ctor. Pass the
13679 decode_compound_collector object directly as callback. Remove
13680 cleanups and use decode_compound_collector::release_symbols
13681 instead.
13682 (symtab_collector): Now a class with private fields.
13683 (symtab_collector::release_symtabs): New method.
13684 (add_symtabs_to_list): Rename to...
13685 (symtab_collector::operator()): ... this and adjust.
13686 (collect_symtabs_from_filename): symtab_collector construction
13687 bits move to symtab_collector ctor. Pass the symtab_collector
13688 object directly as callback. Remove cleanups and use
13689 symtab_collector::release_symtabs instead.
13690 (collect_symbols): Delete.
13691 (add_matching_symbols_to_info): Use lambdas.
13692 * macrocmd.c (print_macro_callback): Delete.
13693 (info_macro_command): Use a lambda.
13694 (info_macros_command): Pass print_macro_definition as callable
13695 directly.
13696 (print_one_macro): Remove 'ignore' parameter.
13697 (macro_list_command): Adjust.
13698 * macrotab.c (macro_for_each_data::fn): Now a function_view.
13699 (macro_for_each_data::user_data): Delete field.
13700 (foreach_macro): Adjust to call the function_view.
13701 (macro_for_each): Adjust to use function_view as callback type.
13702 (foreach_macro_in_scope): Adjust to call the function_view.
13703 (macro_for_each_in_scope): Adjust to use function_view as callback
13704 type.
13705 * macrotab.h: Include "common/function-view.h".
13706 (macro_callback_fn): Declare a prototype instead of a pointer.
13707 Remove "user_data" parameter.
13708 (macro_for_each, macro_for_each_in_scope): Adjust to use
13709 function_view as callback type.
13710 * psymtab.c (partial_map_expand_apply)
13711 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
13712 Adjust to use function_view as callback type and to return bool.
13713 (psym_expand_symtabs_matching): Adjust to use function_view as
13714 callback types.
13715 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
13716 to use function_view as callback type and to return bool.
13717 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
13718 callback types.
13719 * symfile.c (expand_symtabs_matching): Adjust to use function_view
13720 as callback types.
13721 * symfile.h: Include "common/function-view.h".
13722 (expand_symtabs_file_matcher_ftype)
13723 (expand_symtabs_symbol_matcher_ftype)
13724 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
13725 return bool.
13726 (quick_symbol_functions::map_symtabs_matching_filename)
13727 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
13728 function_view as callback type and return bool.
13729 (expand_symtabs_matching): Adjust to use function_view as callback
13730 type.
13731 (maintenance_expand_name_matcher)
13732 (maintenance_expand_file_matcher): Delete.
13733 (maintenance_expand_symtabs): Use lambdas.
13734 * symtab.c (iterate_over_some_symtabs): Adjust to use
13735 function_view as callback types and return bool.
13736 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
13737 of a cleanup.
13738 (lookup_symtab_callback): Delete.
13739 (lookup_symtab): Use a lambda.
13740 (iterate_over_symbols): Adjust to use function_view as callback
13741 type.
13742 (struct search_symbols_data, search_symbols_file_matches)
13743 (search_symbols_name_matches): Delete.
13744 (search_symbols): Use a pair of lambdas.
13745 (struct add_name_data, add_macro_name, symbol_completion_matcher)
13746 (symtab_expansion_callback): Delete.
13747 (default_make_symbol_completion_list_break_on_1): Use lambdas.
13748 * symtab.h: Include "common/function-view.h".
13749 (iterate_over_some_symtabs): Adjust to use function_view as
13750 callback type and return bool.
13751 (iterate_over_symtabs): Adjust to use function_view as callback
13752 type.
13753 (symbol_found_callback_ftype): Remove 'data' parameter and return
13754 bool.
13755 (iterate_over_symbols): Adjust to use function_view as callback
13756 type.
13757
07e253aa
PA
137582017-02-23 Pedro Alves <palves@redhat.com>
13759
13760 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
13761 (%.o) <unittests/%.c>: New pattern.
13762 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
13763 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
13764 * common/function-view.h: New file.
13765 * unittests/function-view-selftests.c: New file.
13766 * configure: Regenerate.
13767
8eaf5320
SM
137682017-02-23 Simon Marchi <simon.marchi@ericsson.com>
13769
13770 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
13771 inferior_ptid.
13772 * go32-nat.c (go32_thread_alive): Likewise.
13773
38768751
YQ
137742017-02-23 Yao Qi <yao.qi@linaro.org>
13775
13776 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
13777 delete.
13778
0a8beaba
YQ
137792017-02-23 Yao Qi <yao.qi@linaro.org>
13780
13781 * varobj.c (varobj_clear_saved_item): Use delete instead of
13782 xfree.
13783 (update_dynamic_varobj_children): Likewise.
13784
58fdfd2c
JK
137852017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13786
13787 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
13788
1b90b139
SM
137892017-02-21 Simon Marchi <simon.marchi@ericsson.com>
13790
13791 * common/enum-flags.h (enum_flags::enum_flags): Initialize
13792 m_enum_value to 0 in default constructor.
13793
2039d74e
EBM
137942017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13795
13796 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
13797 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
13798 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
13799 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
13800 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
13801 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
13802 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
13803 IS_STORE_CONDITIONAL_INSN.
13804
7814882a
JK
138052017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13806
13807 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
13808
0ae60b63
JK
138092017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13810
13811 * NEWS (Changes since GDB 7.12): Add DWARF-5.
13812
0224619f
JK
138132017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13814
13815 * dwarf2read.c (skip_one_die, read_attribute_value)
13816 (dwarf2_const_value_attr, dump_die_shallow)
13817 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
13818 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
13819
0af92d60
JK
138202017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13821
13822 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
13823 (dwarf_parse_macro_header): Accept DWARF version 5.
13824 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
13825
216f72a1
JK
138262017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13827
13828 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
13829 DW_AT_GNU_*.
13830 * common/common-exceptions.h (enum errors): Likewise.
13831 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
13832 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
13833 (dwarf_expr_context::execute_stack_op): Likewise.
13834 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
13835 Likewise.
13836 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
13837 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13838 (show_entry_values_debug, call_site_to_target_addr)
13839 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
13840 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
13841 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
13842 (value_of_dwarf_block_entry, indirect_pieced_value)
13843 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
13844 (disassemble_dwarf_expression): Likewise.
13845 * dwarf2read.c (process_die, inherit_abstract_dies)
13846 (read_call_site_scope): Likewise.
13847 * gdbtypes.h (struct func_type, struct call_site_parameter)
13848 (struct call_site): Likewise.
13849 * stack.c (read_frame_arg): Likewise.
13850 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
13851
43988095
JK
138522017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13853
13854 * defs.h (read_unsigned_leb128): New declaration.
13855 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
13856 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
13857 (dwarf2_find_location_expression): Call also
13858 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
13859 * dwarf2loc.h (dwarf2_version): New declaration.
13860 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
13861 rnglists.
13862 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
13863 .debug_rnglists.
13864 (struct dwop_section_names): Add loclists_dwo.
13865 (dwop_section_names): Add .debug_loclists.dwo.
13866 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
13867 (struct dwarf2_per_cu_data): Add dwarf_version.
13868 (struct dwo_sections): Add loclists.
13869 (struct attr_abbrev): Add implicit_const.
13870 (read_indirect_line_string): New declaration.
13871 (read_unsigned_leb128): Delete declaration.
13872 (rcuh_kind): New definition.
13873 (read_and_check_comp_unit_head): Change parameter
13874 is_debug_types_section to section_kind.
13875 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
13876 (read_comp_unit_head): Change parameter abfd to section, add parameter
13877 section_kind. Handle DWARF-5.
13878 (error_check_comp_unit_head): Accept also DWARF version 5.
13879 (read_and_check_comp_unit_head): Change parameter
13880 is_debug_types_section to section_kind.
13881 (read_and_check_type_unit_head): Delete function.
13882 (read_abbrev_offset): Handle DWARF-5.
13883 (create_debug_type_hash_table): Add parameter section_kind. Process
13884 only DW_UT_type. Use signature and type_offset_in_tu from struct
13885 comp_unit_head.
13886 (create_debug_types_hash_table): Update create_debug_type_hash_table
13887 caller.
13888 (create_all_type_units): Call create_debug_type_hash_table.
13889 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
13890 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
13891 caller.
13892 (skip_one_die): Handle DW_FORM_implicit_const.
13893 (dwarf2_rnglists_process): New function.
13894 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
13895 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
13896 (read_attribute_value): Handle DW_FORM_implicit_const,
13897 DW_FORM_line_strp.
13898 (read_attribute): Handle DW_FORM_implicit_const.
13899 (read_indirect_string_at_offset_from): New function from
13900 read_indirect_string_at_offset.
13901 (read_indirect_string_at_offset): Call
13902 read_indirect_string_at_offset_from.
13903 (read_indirect_line_string_at_offset): New function.
13904 (read_indirect_string): New function comment.
13905 (read_indirect_line_string): New function.
13906 (read_unsigned_leb128): Make it global.
13907 (dwarf2_string_attr): Handle DWARF-5.
13908 (add_include_dir_stub, read_formatted_entries): New functions.
13909 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
13910 Handle DWARF-5.
13911 (per_cu_header_read_in): Update read_comp_unit_head caller.
13912 (dwarf2_version): New function.
13913 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
13914 rnglists.
13915 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
13916 fields.
13917
22d2f3ab
JK
139182017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13919
13920 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
13921
5f46c5a5
JK
139222017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13923
13924 * dwarf2read.c (dwarf2_ranges_process): New function from
13925 dwarf2_ranges_read.
13926 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
13927 dwarf2_ranges_process.
13928
78d4d2c5
JK
139292017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13930
13931 * dwarf2read.c (create_debug_type_hash_table): New function from
13932 create_debug_types_hash_table.
13933 (create_debug_types_hash_table): Call create_debug_type_hash_table.
13934 (create_all_type_units, open_and_init_dwo_file): Update
13935 create_debug_types_hash_table callers.
13936
1b076f25
SDJ
139372017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13938
13939 PR gdb/16188
13940 * fork-child.c (trace_start_error): Fix thinko. va_end should
13941 refer to 'ap', not 'args'.
13942
0db8980c
SDJ
139432017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13944 Pedro Alves <palves@redhat.com>
13945
13946 PR gdb/16188
13947 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
13948 calls succeeded.
13949 * fork-child.c (trace_start_error): New function.
13950 (trace_start_error_with_name): Likewise.
13951 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
13952 * inf-ptrace.c (inf_ptrace_me): Likewise.
13953 * inferior.h (trace_start_error): New prototype.
13954 (trace_start_error_with_name): Likewise.
13955
99e8a4f9
SDJ
139562017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
13957
13958 PR gdb/21164
13959 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
13960 NULL before using it.
13961 * symmisc.c (maintenance_print_symbols): Likewise.
13962 (maintenance_print_msymbols): Likewise.
13963
4e746bb6
TW
139642017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13965
13966 * NEWS: Add record Python bindings entry.
13967
139682017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13969
13970 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
13971 py-record-full.o.
13972 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
13973 * python/py-record-btrace.c, python/py-record-btrace.h,
13974 python/py-record-full.c, python/py-record-full.h: New file.
13975 * python/py-record.c: Add include for py-record-btrace.h and
13976 py-record-full.h.
13977 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
13978 recpy_instruction_history, recpy_function_call_history, recpy_begin,
13979 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
13980 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
13981 New definition.
13982 (gdbpy_initialize_btrace): New export.
13983 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
13984
139852017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13986
13987 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
13988 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
13989 * python/py-record.c: New file.
13990 * python/python-internal.h (gdbpy_start_recording,
13991 gdbpy_current_recording, gdpy_stop_recording,
13992 gdbpy_initialize_record): New export.
13993 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
13994 (python_GdbMethods): Add gdbpy_start_recording,
13995 gdbpy_current_recording and gdbpy_stop_recording.
13996
139972017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13998
13999 * record-btrace.c (record_btrace_record_method): New function.
14000 (init_record_btrace_ops): Initialize to_record_method.
14001 * record-full.c (record_full_record_method): New function.
14002 (init_record_full_ops, init_record_full_core_ops): Add
14003 record_full_record_method.
14004 * record.h (enum record_method): New enum.
14005 * target-debug.h (target_debug_print_enum_record_method: New define.
14006 * target-delegates.c: Regenerate.
14007 * target.c (target_record_method): New function.
14008 * target.h: Include record.h.
14009 (struct target_ops) <to_record_method>: New field.
14010 (target_record_method): New export.
14011
140122017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14013
14014 * record.h (record_start, record_stop): New export.
14015 * record.c (record_start, record_stop): New function.
14016
140172017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14018
14019 * btrace.c (btrace_fetch): Copy function call segments pointer
14020 into a vector.
14021 (btrace_clear): Clear the vector.
14022 (btrace_find_insn_by_number): Use binary search to find the correct
14023 function call segment.
14024 * btrace.h (brace_fun_p): New typedef.
14025 (struct btrace_thread_info) <functions>: New field.
14026
140272017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14028
14029 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
14030 * btrace.c (btrace_decode_error): ... here. New function.
14031 * btrace.h (btrace_decode_error): New export.
14032
140332017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14034
14035 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
14036 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
14037 btrace_find_insn_by_number): Remove special case for gaps.
14038 * btrace.h (btrace_insn_get_error): New export.
14039 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
14040 * record-btrace.c (btrace_insn_history): Print number for gaps.
14041 (record_btrace_info, record_btrace_goto): Handle gaps.
14042
3f77c769
TT
140432017-02-14 Tom Tromey <tom@tromey.com>
14044
14045 PR python/13598:
14046 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
14047 event.
14048 * python/py-evts.c (gdbpy_initialize_py_events): Add
14049 before_prompt registry.
14050 * python/py-events.h (events_object) <before_prompt>: New field.
14051
4c2c7ac6
MM
140522017-02-14 Markus Metzger <markus.t.metzger@intel.com>
14053
14054 * btrace.c (ftrace_new_switch): Preserve up link and flags.
14055
5cf30ebf
LM
140562017-02-13 Luis Machado <lgustavo@codesourcery.com>
14057
14058 * symfile (_initialize_symfile): Add usage text to the load command's
14059 help text.
14060
26a06916
SM
140612017-02-10 Simon Marchi <simon.marchi@ericsson.com>
14062
14063 * utils.c (defaulted_query): Don't query on secondary UIs.
14064
0b145e37
TT
140652017-02-10 Tom Tromey <tom@tromey.com>
14066
14067 * rust-lang.c (rust_get_disr_info): Remove unused variable.
14068
2d8365c4
TT
140692017-02-10 Tom Tromey <tom@tromey.com>
14070
14071 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
14072 "cleanup" local.
14073 * python/py-type.c (typy_legacy_template_argument): Remove
14074 unnecessary "cleanup" local.
14075
2bb8f231
TT
140762017-02-10 Tom Tromey <tom@tromey.com>
14077
14078 * python/python.c (do_start_initialization): New function, from
14079 _initialize_python.
14080 (_initialize_python): Call do_start_initialization.
14081 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
14082 goto.
14083
1bdfaf42
TT
140842017-02-10 Tom Tromey <tom@tromey.com>
14085
14086 * python/py-prettyprint.c (pretty_print_one_value): Use
14087 gdbpy_ref.
14088
88b6faea
TT
140892017-02-10 Tom Tromey <tom@tromey.com>
14090
14091 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
14092 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
14093 gdbpy_ref.
14094 * python/py-type.c (field_new): Use gdbpy_ref.
14095 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
14096 gdbpy_ref.
14097 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
14098 (py_free_pspace): Likewise.
14099 (pspace_to_pspace_object): Likewise.
14100 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
14101 (py_free_objfile): Likewise.
14102 (objfile_to_objfile_object): Likewise.
14103 * python/py-inferior.c (delete_thread_object): Use
14104 gdbpy_ref.
14105 (infpy_read_memory): Likewise.
14106 (py_free_inferior): Likewise.
14107 * python/py-evtregistry.c (create_eventregistry_object): Use
14108 gdbpy_ref.
14109 * python/py-event.c (create_event_object): Use gdbpy_ref.
14110
7780f186
TT
141112017-02-10 Tom Tromey <tom@tromey.com>
14112
14113 * python/py-ref.h (gdbpy_ref_policy): Now a template.
14114 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
14115 used.
14116 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
14117 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
14118 python/py-exitedevent.c, python/py-finishbreakpoint.c,
14119 python/py-framefilter.c, python/py-function.c,
14120 python/py-inferior.c, python/py-infevents.c,
14121 python/py-linetable.c, python/py-newobjfileevent.c,
14122 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
14123 python/py-signalevent.c, python/py-stopevent.c,
14124 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
14125 python/py-unwind.c, python/py-utils.c, python/py-value.c,
14126 python/py-varobj.c, python/py-xmethods.c, python/python.c,
14127 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
14128
d4b0bb18
TT
141292017-02-10 Tom Tromey <tom@tromey.com>
14130
14131 * ui-out.h (ui_out_emit_type): New class.
14132 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
14133 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
14134 and ui_out_emit_tuple.
14135 (enumerate_locals): Likewise.
14136 (py_mi_print_variables, py_print_locals, py_print_args): Use
14137 ui_out_emit_list.
14138 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
14139 ui_out_emit_list.
14140 * common/gdb_optional.h: New file.
14141
f67f945c
MG
141422017-02-10 Martin Galvan <martingalvan@sourceware.org>
14143
14144 * MAINTAINERS (Write After Approval): Update my e-mail address.
14145
18da0c51
MG
141462017-02-10 Martin Galvan <martingalvan@sourceware.org>
14147
14148 PR gdb/21122
14149 * breakpoint.c (_initialize_breakpoint): Update the help description
14150 of the 'commands' command to indicate that it takes a list argument.
14151
62c14536
SM
141522017-02-09 Simon Marchi <simon.marchi@ericsson.com>
14153
14154 * interps.c (current_interp_set_logging): Remove "return".
14155
ff6fa247
GB
141562017-02-09 Gary Benson <gbenson@redhat.com>
14157
14158 * symtab.c (add_symtab_completions): Prevent NULL pointer
14159 dereference.
14160
a474bd8e
PA
141612017-02-08 Pedro Alves <palves@redhat.com>
14162
14163 * interps.c (interp::interp): Remove reference to quiet_p.
14164 (interp_set): Make static. Remove dead "Switching to" output
14165 code.
14166 (interp_quiet_p, interp_set_quiet): Delete.
14167 (interpreter_exec_cmd): Don't set the interpreter quiet.
14168 * interps.h (interp_quiet_p): Make static.
14169 (class interp) <quiet_p>: Remove field
14170
3d7b173c
JG
141712017-02-08 Jerome Guitton <guitton@adacore.com>
14172
604c4576
JG
14173 * cli/cli-decode.c (find_command_name_length): Make it extern.
14174 * cli/cli-decode.h (find_command_name_length): Declare.
14175 * cli/cli-script.c (command_name_equals, line_first_arg):
14176 New functions.
14177 (process_next_line): Use cli-decode to parse command names.
14178 (build_command_line): Make args a constant pointer.
14179
141802017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 14181
3d7b173c
JG
14182 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
14183 Remove case-insensitive search.
14184
1291063d
JM
141852017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
14186
14187 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
14188 at the end of the line. Avoids an ARI warning.
14189
20b477a7
LM
141902017-02-06 Luis Machado <lgustavo@codesourcery.com>
14191
14192 * NEWS: Mention support for record/replay of Intel 64 rdrand and
14193 rdseed instructions.
14194 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
14195
3f7b46f2
IR
141962017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
14197
14198 PR tdep/20936
14199 Provide and use sparc32 and sparc64 target description XML files.
14200 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
14201 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
14202 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
14203 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
14204 * features/sparc/sparc32-solaris.xml: New file.
14205 * features/sparc/sparc64-solaris.xml: New file.
14206 * features/sparc/sparc32-solaris.c: Generated.
14207 * features/sparc/sparc64-solaris.c: Generated.
14208 * sparc-tdep.h: Account for differences in target descriptions.
14209 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
14210 (sparc32_register_type): Use target provided registers.
14211 (validate_tdesc_registers): New function.
14212 (sparc32_gdbarch_init): Use tdesc_has_registers.
14213 Set pseudoregister functions.
14214 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
14215 (sparc64_register_type): Use target provided registers.
14216 (sparc64_init_abi): Set pseudoregister functions.
14217
f0fd41c1
TT
142182017-02-03 Tom Tromey <tom@tromey.com>
14219
14220 PR rust/21097:
14221 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
14222 with a single member.
14223
d6f9b0fb
PA
142242017-02-03 Pedro Alves <palves@redhat.com>
14225
14226 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
14227 (cli_interp_base::~cli_interp_base): New.
14228 (cli_interp): New struct.
14229 (as_cli_interp): Cast the interp itself to cli_interp.
14230 (cli_interpreter_pre_command_loop): Rename to ...
14231 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
14232 parameter.
14233 (cli_interpreter_init): Rename to ...
14234 (cli_interp::init): ... this. Remove 'self' parameter. Use
14235 boolean. Make extern.
14236 (cli_interpreter_resume): Rename to ...
14237 (cli_interp::resume): ... this. Remove 'data' parameter. Make
14238 extern.
14239 (cli_interpreter_suspend): Rename to ...
14240 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
14241 extern.
14242 (cli_interpreter_exec): Rename to ...
14243 (cli_interp::exec): ... this. Remove 'data' parameter. Make
14244 extern.
14245 (cli_interpreter_supports_command_editing): Rename to ...
14246 (cli_interp_base::supports_command_editing): ... this. Remove
14247 'interp' parameter. Make extern.
14248 (cli_ui_out): Rename to ...
14249 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
14250 Make extern.
14251 (cli_set_logging): Rename to ...
14252 (cli_interp_base::set_logging): ... this. Remove 'interp'
14253 parameter. Make extern.
14254 (cli_interp_procs): Delete.
14255 (cli_interp_factory): Adjust to use "new".
14256 * cli/cli-interp.h: Include "interps.h".
14257 (struct cli_interp_base): New struct.
14258 * interps.c (struct interp): Delete. Fields moved to interps.h.
14259 (interp_new): Delete.
14260 (interp::interp, interp::~interp): New.
14261 (interp_set): Use bool, and return void. Assume the interpreter
14262 has suspend, init and resume methods, and that the all return
14263 void.
14264 (set_top_level_interpreter): interp_set returns void.
14265 (interp_ui_out): Adapt.
14266 (current_interp_set_logging): Adapt.
14267 (interp_data): Delete.
14268 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
14269 (interp_exec): Adapt.
14270 (top_level_interpreter_data): Delete.
14271 * interps.h (interp_init_ftype, interp_resume_ftype)
14272 (interp_suspend_ftype, interp_exec_ftype)
14273 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
14274 (class interp): New.
14275 (interp_new): Delete.
14276 (interp_set): Now returns void. Use bool.
14277 (interp_data, top_level_interpreter_data): Delete.
14278 * mi/mi-common.h: Include interps.h.
14279 (class mi_interp): Inherit from interp. Define a ctor. Declare
14280 init, resume, suspect, exec, interp_ui_out, set_logging and
14281 pre_command_loop methods.
14282 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
14283 (mi_interpreter_init): Rename to ...
14284 (mi_interp::init): ... this. Remove the 'interp' parameter, use
14285 bool, return void and make extern. Adjust.
14286 (mi_interpreter_resume): ... Rename to ...
14287 (mi_interp::resume): ... this. Remove the 'data' parameter,
14288 return void and make extern. Adjust.
14289 (mi_interpreter_suspend): ... Rename to ...
14290 (mi_interp::suspend): ... this. Remove the 'data' parameter,
14291 return void and make extern. Adjust.
14292 (mi_interpreter_exec): ... Rename to ...
14293 (mi_interp::exec): ... this. Remove the 'data' parameter and make
14294 extern. Adjust.
14295 (mi_interpreter_pre_command_loop): ... Rename to ...
14296 (mi_interp::pre_command_loop): ... this. Remove the 'self'
14297 parameter and make extern.
14298 (mi_on_normal_stop_1): Adjust.
14299 (mi_ui_out): Rename to ...
14300 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
14301 parameter and make extern. Adjust.
14302 (mi_set_logging): Rename to ...
14303 (mi_interp::set_logging): ... this. Remove the 'interp'
14304 parameter and make extern. Adjust.
14305 (mi_interp_procs): Delete.
14306 (mi_interp_factory): Adjust to use 'new'.
14307 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
14308 (mi_print_exception, mi_execute_command, mi_load_progress):
14309 Adjust.
14310 * tui/tui-interp.c (tui_interp): New class.
14311 (as_tui_interp): Return a tui_interp pointer.
14312 (tui_on_normal_stop, tui_on_signal_received)
14313 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
14314 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
14315 to use interp::interp_ui_out.
14316 (tui_init): Rename to ...
14317 (tui_interp::init): ... this. Remove the 'self' parameter, use
14318 bool, return void and make extern. Adjust.
14319 (tui_resume): Rename to ...
14320 (tui_interp::resume): ... this. Remove the 'data' parameter,
14321 return void and make extern. Adjust.
14322 (tui_suspend): Rename to ...
14323 (tui_interp::suspend): ... this. Remove the 'data' parameter,
14324 return void and make extern. Adjust.
14325 (tui_ui_out): Rename to ...
14326 (tui_interp::interp_ui_out): ... this. Remove the 'self'
14327 parameter, and make extern. Adjust.
14328 (tui_exec): Rename to ...
14329 (tui_interp::exec): ... this. Remove the 'data' parameter and
14330 make extern.
14331 (tui_interp_procs): Delete.
14332 (tui_interp_factory): Use "new".
14333
65c40c95
TT
143342017-02-02 Tom Tromey <tom@tromey.com>
14335
14336 * rust-exp.y (ends_raw_string, space_then_number)
14337 (rust_identifier_start_p): Return bool.
14338 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
14339 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
14340 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
14341 (rust_chartype_p): Return bool.
14342 (val_print_struct, rust_print_struct_def, rust_print_type):
14343 Update.
14344 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
14345 Return bool.
14346
b50f188d
TT
143472017-02-02 Tom Tromey <tom@tromey.com>
14348
14349 * rust-lang.c: Reindent.
14350
03c85b11
TT
143512017-02-02 Tom Tromey <tom@tromey.com>
14352
14353 * rust-lang.h (rust_crate_for_block): Update.
14354 * rust-lang.c (rust_crate_for_block): Return std::string.
14355 (rust_get_disr_info): Use std:;string, not
14356 gdb::unique_xmalloc_ptr.
14357 * rust-exp.y (crate_name): Update.
14358
9b6da501
PA
143592017-02-02 Pedro Alves <palves@redhat.com>
14360
14361 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
14362 field out of gdb_disassembler_test and make it static.
14363
ec4cb20b
PA
143642017-02-02 Pedro Alves <palves@redhat.com>
14365
14366 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
14367 mi1_interp and mi_interp fields.
14368
5be5dbf0
PA
143692017-02-02 Pedro Alves <palves@redhat.com>
14370
616268b6
PA
14371 * cli/cli-interp.c (struct saved_output_files, saved_output):
14372 Moved from cli/cli-logging.c.
14373 (cli_set_logging): New function.
14374 (cli_interp_procs): Install cli_set_logging.
14375 * cli/cli-interp.h (make_logging_output, cli_set_logging):
14376 Declare.
14377 * cli/cli-logging.c (struct saved_output_files, saved_output):
14378 Moved to cli/cli-interp.c.
14379 (pop_output_files): Don't save outputs here.
14380 (make_logging_output): New function.
14381 (handle_redirections): Don't build tee nor save previous outputs
14382 here.
14383 * interps.c (current_interp_set_logging): Change prototype.
14384 Assume there's always a set_logging_proc method installed.
14385 * interps.h (interp_set_logging_ftype): Change prototype.
14386 (current_interp_set_logging): Change prototype and adjust comment.
14387 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
14388 use make_logging_output.
14389 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
143902017-02-02 Pedro Alves <palves@redhat.com>
14391
5be5dbf0
PA
14392 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
14393 from ...
14394 (set_logging_overwrite): ... here.
14395 (logging_no_redirect_file): Delete.
14396 (set_logging_redirect): Don't handle redirection on the fly.
14397 Instead warn that "logging off" / "logging on" is necessary.
14398 (pop_output_files): Delete references to logging_no_redirect_file.
14399 (show_logging_command): Always speak in terms of what will happen
14400 once logging is reenabled.
14401
c99cc448
PA
144022017-02-02 Pedro Alves <palves@redhat.com>
14403
14404 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
14405
8b172ce7
PA
144062017-02-02 Pedro Alves <palves@redhat.com>
14407
14408 * disasm.c (gdb_pretty_print_insn): Rename to ...
14409 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
14410 Remove gdbarch parameter. Adapt to clear the object's buffers
14411 instead of allocating new buffers, and to print using the object's
14412 gdb_disassembler instead of calling gdb_print_insn.
14413 (dump_insns): Use gdb_pretty_print_disassembler.
14414 * disasm.h (gdb_pretty_print_insn): Delete declaration.
14415 (gdb_pretty_print_disassembler): New class.
14416 * record-btrace.c (btrace_insn_history): Use
14417 gdb_pretty_print_disassembler.
14418
d7e74731
PA
144192017-02-02 Pedro Alves <palves@redhat.com>
14420
14421 * ada-lang.c (type_as_string): Use string_file.
14422 * ada-valprint.c (ada_print_floating): Use string_file.
14423 * ada-varobj.c (ada_varobj_scalar_image)
14424 (ada_varobj_get_value_image): Use string_file.
14425 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
14426 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
14427 * breakpoint.c (update_inserted_breakpoint_locations)
14428 (insert_breakpoint_locations, reattach_breakpoints)
14429 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
14430 (print_it_watchpoint): Use string_file.
14431 (save_breakpoints): Use stdio_file.
14432 * c-exp.y (oper): Use string_file.
14433 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
14434 tee_file.
14435 (pop_output_files): Use delete.
14436 (handle_redirections): Use stdio_file and tee_file.
14437 * cli/cli-setshow.c (do_show_command): Use string_file.
14438 * compile/compile-c-support.c (c_compute_program): Use
14439 string_file.
14440 * compile/compile-c-symbols.c (generate_vla_size): Take a
14441 'string_file &' instead of a 'ui_file *'.
14442 (generate_c_for_for_one_variable): Take a 'string_file &' instead
14443 of a 'ui_file *'. Use string_file.
14444 (generate_c_for_variable_locations): Take a 'string_file &'
14445 instead of a 'ui_file *'.
14446 * compile/compile-internal.h (generate_c_for_for_one_variable):
14447 Take a 'string_file &' instead of a 'ui_file *'.
14448 * compile/compile-loc2c.c (push, pushf, unary, binary)
14449 (print_label, pushf_register_address, pushf_register)
14450 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
14451 'ui_file *'. Adjust.
14452 * compile/compile.c (compile_to_object): Use string_file.
14453 * compile/compile.h (compile_dwarf_expr_to_c)
14454 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
14455 'ui_file *'.
14456 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
14457 (replace_typedefs_qualified_name): Use string_file and
14458 obstack_copy0.
14459 * disasm.c (gdb_pretty_print_insn): Use string_file.
14460 (gdb_disassembly): Adjust reference the null_stream global.
14461 (do_ui_file_delete): Delete.
14462 (gdb_insn_length): Use null_stream.
14463 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
14464 * dwarf2loc.c (dwarf2_compile_property_to_c)
14465 (locexpr_generate_c_location, loclist_generate_c_location): Take a
14466 'string_file &' instead of a 'ui_file *'.
14467 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
14468 * dwarf2read.c (do_ui_file_peek_last): Delete.
14469 (dwarf2_compute_name): Use string_file.
14470 * event-top.c (gdb_setup_readline): Use stdio_file.
14471 * gdbarch.sh (verify_gdbarch): Use string_file.
14472 * gdbtypes.c (safe_parse_type): Use null_stream.
14473 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
14474 string_file.
14475 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
14476 'string_file *' instead of a 'ui_file *'.
14477 (gdbscm_arch_disassemble): Use string_file.
14478 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
14479 * guile/scm-ports.c (class ioscm_file_port): Now a class that
14480 inherits from ui_file.
14481 (ioscm_file_port_delete, ioscm_file_port_rewind)
14482 (ioscm_file_port_put): Delete.
14483 (ioscm_file_port_write): Rename to ...
14484 (ioscm_file_port::write): ... this. Remove file_port_magic
14485 checks.
14486 (ioscm_file_port_new): Delete.
14487 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
14488 ui_file_up.
14489 * guile/scm-type.c (tyscm_type_name): Use string_file.
14490 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
14491 Use string_file.
14492 * infcmd.c (print_return_value_1): Use string_file.
14493 * infrun.c (print_target_wait_results): Use string_file.
14494 * language.c (add_language): Use string_file.
14495 * location.c (explicit_to_string_internal): Use string_file.
14496 * main.c (captured_main_1): Use null_file.
14497 * maint.c (maintenance_print_architecture): Use stdio_file.
14498 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
14499 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
14500 event_channel>: Change type to mi_console_file pointer.
14501 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
14502 (mi_console_file_delete): Delete.
14503 (struct mi_console_file): Delete.
14504 (mi_console_file_magic): Delete.
14505 (mi_console_file_new): Delete.
14506 (mi_console_file::mi_console_file): New.
14507 (mi_console_file_delete): Delete.
14508 (mi_console_file_fputs): Delete.
14509 (mi_console_file::write): New.
14510 (mi_console_raw_packet): Delete.
14511 (mi_console_file::flush): New.
14512 (mi_console_file_flush): Delete.
14513 (mi_console_set_raw): Rename to ...
14514 (mi_console_file::set_raw): ... this.
14515 * mi/mi-console.h (class mi_console_file): New class.
14516 (mi_console_file_new, mi_console_set_raw): Delete.
14517 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
14518 (mi_set_logging): Use delete and tee_file. Adjust.
14519 * mi/mi-main.c (output_register): Use string_file.
14520 (mi_cmd_data_evaluate_expression): Use string_file.
14521 (mi_cmd_data_read_memory): Use string_file.
14522 (mi_cmd_execute, print_variable_or_computed): Use string_file.
14523 * mi/mi-out.c (mi_ui_out::main_stream): New.
14524 (mi_ui_out::rewind): Use main_stream and
14525 string_file.
14526 (mi_ui_out::put): Use main_stream and string_file.
14527 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
14528 Allocate a 'string_file' instead.
14529 (mi_out_new): Don't allocate a mem_fileopen stream here.
14530 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
14531 (mi_ui_out::main_stream): Declare method.
14532 * printcmd.c (eval_command): Use string_file.
14533 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
14534 * python/py-arch.c (archpy_disassemble): Use string_file.
14535 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
14536 * python/py-frame.c (frapy_str): Use string_file.
14537 * python/py-framefilter.c (py_print_type, py_print_single_arg):
14538 Use string_file.
14539 * python/py-type.c (typy_str): Use string_file.
14540 * python/py-unwind.c (unwind_infopy_str): Use string_file.
14541 * python/py-value.c (valpy_str): Use string_file.
14542 * record-btrace.c (btrace_insn_history): Use string_file.
14543 * regcache.c (regcache_print): Use stdio_file.
14544 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
14545 * remote.c (escape_buffer): Use string_file.
14546 * rust-lang.c (rust_get_disr_info): Use string_file.
14547 * serial.c (serial_open_ops_1): Use stdio_file.
14548 (do_serial_close): Use delete.
14549 * stack.c (print_frame_arg): Use string_file.
14550 (print_frame_args): Remove local mem_fileopen stream, not used.
14551 (print_frame): Use string_file.
14552 * symmisc.c (maintenance_print_symbols): Use stdio_file.
14553 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
14554 Take a 'string_file *' instead of a 'ui_file *'.
14555 * top.c (new_ui): Use stdio_file and stderr_file.
14556 (free_ui): Use delete.
14557 (execute_command_to_string): Use string_file.
14558 (quit_confirm): Use string_file.
14559 * tracepoint.c (collection_list::append_exp): Use string_file.
14560 * tui/tui-disasm.c (tui_disassemble): Use string_file.
14561 * tui/tui-file.c: Don't include "ui-file.h".
14562 (enum streamtype, struct tui_stream): Delete.
14563 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
14564 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
14565 (tui_file::tui_file): New method.
14566 (tui_file_fputs): Delete.
14567 (tui_file_get_strbuf): Delete.
14568 (tui_file::puts): New method.
14569 (tui_file_adjust_strbuf): Delete.
14570 (tui_file_flush): Delete.
14571 (tui_file::flush): New method.
14572 * tui/tui-file.h: Tweak intro comment.
14573 Include ui-file.h.
14574 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
14575 (tui_file_adjust_strbuf): Delete declarations.
14576 (class tui_file): New class.
14577 * tui/tui-io.c (tui_initialize_io): Use tui_file.
14578 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
14579 (tui_register_format): Use string_stream.
14580 * tui/tui-stack.c (tui_make_status_line): Use string_file.
14581 (tui_get_function_from_frame): Use string_file.
14582 * typeprint.c (type_to_string): Use string_file.
14583 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
14584 (null_stream): New global.
14585 (ui_file_delete): Delete.
14586 (ui_file::ui_file): New.
14587 (null_file_isatty): Delete.
14588 (ui_file::~ui_file): New.
14589 (null_file_rewind): Delete.
14590 (ui_file::printf): New.
14591 (null_file_put): Delete.
14592 (null_file_flush): Delete.
14593 (ui_file::putstr): New.
14594 (null_file_write): Delete.
14595 (ui_file::putstrn): New.
14596 (null_file_read): Delete.
14597 (ui_file::putc): New.
14598 (null_file_fputs): Delete.
14599 (null_file_write_async_safe): Delete.
14600 (ui_file::vprintf): New.
14601 (null_file_delete): Delete.
14602 (null_file::write): New.
14603 (null_file_fseek): Delete.
14604 (null_file::puts): New.
14605 (ui_file_data): Delete.
14606 (null_file::write_async_safe): New.
14607 (gdb_flush, ui_file_isatty): Adjust.
14608 (ui_file_put, ui_file_rewind): Delete.
14609 (ui_file_write): Adjust.
14610 (ui_file_write_for_put): Delete.
14611 (ui_file_write_async_safe, ui_file_read): Adjust.
14612 (ui_file_fseek): Delete.
14613 (fputs_unfiltered): Adjust.
14614 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
14615 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
14616 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
14617 (set_ui_file_data): Delete.
14618 (string_file::~string_file, string_file::write)
14619 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
14620 (do_ui_file_as_string, ui_file_as_string): Delete.
14621 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
14622 (struct mem_file): Delete.
14623 (mem_file_new): Delete.
14624 (stdio_file::stdio_file): New.
14625 (mem_file_delete): Delete.
14626 (stdio_file::stdio_file): New.
14627 (mem_fileopen): Delete.
14628 (stdio_file::~stdio_file): New.
14629 (mem_file_rewind): Delete.
14630 (stdio_file::set_stream): New.
14631 (mem_file_put): Delete.
14632 (stdio_file::open): New.
14633 (mem_file_write): Delete.
14634 (stdio_file_magic, struct stdio_file): Delete.
14635 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
14636 (stdio_file::flush): New.
14637 (stdio_file_read): Rename to ...
14638 (stdio_file::read): ... this. Adjust.
14639 (stdio_file_write): Rename to ...
14640 (stdio_file::write): ... this. Adjust.
14641 (stdio_file_write_async_safe): Rename to ...
14642 (stdio_file::write_async_safe) ... this. Adjust.
14643 (stdio_file_fputs): Rename to ...
14644 (stdio_file::puts) ... this. Adjust.
14645 (stdio_file_isatty): Delete.
14646 (stdio_file_fseek): Delete.
14647 (stdio_file::isatty): New.
14648 (stderr_file_write): Rename to ...
14649 (stderr_file::write) ... this. Adjust.
14650 (stderr_file_fputs): Rename to ...
14651 (stderr_file::puts) ... this. Adjust.
14652 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
14653 (stderr_file::stderr_file): New.
14654 (tee_file_magic): Delete.
14655 (struct tee_file): Delete.
14656 (tee_file::tee_file): New.
14657 (tee_file_new): Delete.
14658 (tee_file::~tee_file): New.
14659 (tee_file_delete): Delete.
14660 (tee_file_flush): Rename to ...
14661 (tee_file::flush): ... this. Adjust.
14662 (tee_file_write): Rename to ...
14663 (tee_file::write): ... this. Adjust.
14664 (tee_file::write_async_safe): New.
14665 (tee_file_fputs): Rename to ...
14666 (tee_file::puts): ... this. Adjust.
14667 (tee_file_isatty): Rename to ...
14668 (tee_file::isatty): ... this. Adjust.
14669 * ui-file.h (struct obstack, struct ui_file): Don't
14670 forward-declare.
14671 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
14672 (ui_file_write_ftype)
14673 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
14674 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
14675 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
14676 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
14677 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
14678 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
14679 (set_ui_file_fseek): Delete.
14680 (ui_file_data, ui_file_delete, ui_file_rewind)
14681 (struct ui_file): New.
14682 (ui_file_up): New.
14683 (class null_file): New.
14684 (null_stream): Declare.
14685 (ui_file_write_for_put, ui_file_put): Delete.
14686 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
14687 Delete.
14688 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
14689 (gdb_fopen, tee_file_new): Delete.
14690 (struct string_file): New.
14691 (struct stdio_file): New.
14692 (stdio_file_up): New.
14693 (struct stderr_file): New.
14694 (class tee_file): New.
14695 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
14696 of a 'ui_file *'. Adjust.
14697 * ui-out.h (class ui_out) <field_stream>: Likewise.
14698 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
14699 (null_stream): Delete.
14700 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
14701 Adjust.
14702 * utils.h (struct ui_file): Delete forward declaration..
14703 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
14704 (error_stream): Take a 'string_file &' instead of a
14705 'ui_file *'.
14706 * varobj.c (varobj_value_get_print_value): Use string_file.
14707 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
14708 * gdbarch.c: Regenerate.
14709
187808b0
PA
147102017-02-02 Pedro Alves <palves@redhat.com>
14711
14712 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
14713 (gdb_pretty_print_insn): ... this. Now a free function. Add back
14714 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
14715 Adjust to call gdb_print_insn instead of
14716 gdb_disassembler::print_insn.
14717 (dump_insns, do_mixed_source_and_assembly_deprecated)
14718 (do_mixed_source_and_assembly, do_assembly_only): Add back a
14719 'gdbarch' parameter. Remove gdb_disassembler parameter.
14720 (gdb_disassembly): Don't allocate a gdb_disassembler here.
14721 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
14722 declaration.
14723 (gdb_pretty_print_insn): Re-add declaration.
14724 * record-btrace.c (btrace_insn_history): Don't allocate a
14725 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
14726
7a8eb317
SM
147272017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
14728
14729 * disasm.h (gdb_disassembly): Remove file_string parameter.
14730 * disasm.c (gdb_disassembly): Likewise.
14731 * cli/cli-cmds.c (print_disassembly): Adapt.
14732 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
14733 * stack.c (do_gdb_disassembly): Likewise.
14734
7346ef59
AA
147352017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
14736
14737 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
14738 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
14739 targets. And if the implicit value is longer than needed, extract
14740 the first bytes instead of the "least significant" ones.
14741
cd4007e4
MM
147422017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14743
14744 * btrace.c (btrace_enable): Do not call btrace_add_pc for
14745 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
14746 (btrace_fetch): Assert can_access_registers_ptid.
14747 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
14748 validate_registers_access.
14749
cf77c34e
MM
147502017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14751
14752 * gdbthread.h (can_access_registers_ptid): New.
14753 * thread.c (can_access_registers_ptid): New.
14754
be85ce7d
PA
147552017-02-01 Pedro Alves <palves@redhat.com>
14756
14757 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
14758
29b0b251
PA
147592017-01-31 Pedro Alves <palves@redhat.com>
14760
14761 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
14762 Fix typos.
14763
289b5b24
PA
147642017-01-31 Pedro Alves <palves@redhat.com>
14765
14766 * stack.c (print_frame_args): Remove local mem_fileopen stream,
14767 not used.
14768
b47413b4
PA
147692017-01-31 Pedro Alves <palves@redhat.com>
14770
14771 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
14772
60adb36c
PA
147732017-01-31 Pedro Alves <palves@redhat.com>
14774
14775 * common/scoped_restore.h
14776 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
14777 change the value's parameter type to T2.
14778 (make_scoped_restore): Likewise.
14779
2735833d
WT
147802017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14781 Richard Henderson <rth@redhat.com>
14782
14783 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
14784 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
14785 GS_BASE for older kernels.
14786 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
14787 GS_BASE for older kernels.
14788 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
14789 and GS_BASE to the offset table.
14790 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
14791 system register group.
14792 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
14793 for older kernels.
14794 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
14795 amd64 ABI.
14796 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
14797 AMD64_GSBASE_REGNUM.
14798 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
14799 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
14800 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
14801 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
14802 i386/64bit-segments.xml in those rules.
14803 * features/i386/64bit-segments.xml: New file.
14804 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
14805 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
14806 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
14807 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
14808 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
14809 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
14810 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
14811 * features/i386/amd64-avx-linux.c: Regenerated.
14812 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
14813 * features/i386/amd64-avx-mpx.c: Regenerated.
14814 * features/i386/amd64-avx512-linux.c: Regenerated.
14815 * features/i386/amd64-linux.c: Regenerated.
14816 * features/i386/amd64-mpx-linux.c: Regenerated.
14817 * features/i386/i386-avx-mpx-linux.c: Regenerated.
14818 * features/i386/i386-avx-mpx.c: Regenerated.
14819 * features/i386/x32-avx-linux.c: Regenerated.
14820 * features/i386/x32-avx512-linux.c: Regenerated.
14821 * regformats/i386/amd64-avx-linux.dat: Regenerated.
14822 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
14823 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
14824 * regformats/i386/amd64-linux.dat: Regenerated.
14825 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
14826 * regformats/i386/x32-avx-linux.dat: Regenerated.
14827 * regformats/i386/x32-avx512-linux.dat: Regenerated.
14828 * regformats/i386/x32-linux.dat: Regenerated.
14829
8884e97e
WT
148302017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14831
14832 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
14833 Set to AMD64_NUM_REGS.
14834
7005d26a
WT
148352017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14836
14837 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
14838 that checks validity of a register number.
14839
4bd2e1b2
KC
148402017-01-27 Kees Cook <keescook@google.com>
14841
14842 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
14843 fetch_fpregs if target has fpa registers.
14844 (arm_linux_store_inferior_registers): Call store_fpregs if target
14845 has fpa registers.
14846
7cf1de6c
AA
148472017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
14848
14849 * cris-tdep.c (cris_gdbarch_init): Remove check for
14850 info.byte_order and force it to BFD_ENDIAN_LITTLE.
14851
874a1c8c
AT
148522017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
14853
14854 * corelow.c (get_core_register_section): Check for regset
14855 existence before checking for REGSET_VARIABLE_SIZE.
14856
d8b49cf0
YQ
148572017-01-26 Yao Qi <yao.qi@linaro.org>
14858 Pedro Alves <palves@redhat.com>
14859
14860 PR gdb/20939
14861 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
14862 call memory_error, save memaddr instead.
14863 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
14864 negative, cal memory_error.
14865 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
14866
658ca58c
YQ
148672017-01-26 Yao Qi <yao.qi@linaro.org>
14868
14869 * disasm-selftests.c (memory_error_test): New function.
14870 (_initialize_disasm_selftests): Register memory_error_test.
14871
79843d45
YQ
148722017-01-26 Yao Qi <yao.qi@linaro.org>
14873
14874 * Makefile.in (SFILES): Add disasm-selftests.c and
14875 selftest-arch.c.
14876 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
14877 * disasm-selftests.c: New file.
14878 * selftest-arch.c: New file.
14879 * selftest-arch.h: New file.
14880
8cafda32
YQ
148812017-01-26 Yao Qi <yao.qi@linaro.org>
14882
14883 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
14884 to bfd_arch_mep. Don't return 0 if section is not
14885 found. Call print_insn_mep.
14886
e47ad6c0
YQ
148872017-01-26 Pedro Alves <palves@redhat.com>
14888 Yao Qi <yao.qi@linaro.org>
14889
14890 * arm-tdep.c: Include "disasm.h".
14891 (gdb_print_insn_arm): Update code to get gdbarch.
14892 * disasm.c (dis_asm_read_memory): Change it to
14893 gdb_disassembler::dis_asm_read_memory.
14894 (dis_asm_memory_error): Likewise.
14895 (dis_asm_print_address): Likewise.
14896 (gdb_pretty_print_insn): Change it to
14897 gdb_disassembler::pretty_print_insn.
14898 (dump_insns): Add one argument gdb_disassemlber. All
14899 callers updated.
14900 (do_mixed_source_and_assembly_deprecated): Likewise.
14901 (do_mixed_source_and_assembly): Likewise.
14902 (do_assembly_only): Likewise.
14903 (gdb_disassembler::gdb_disassembler): New.
14904 (gdb_disassembler::print_insn): New.
14905 * disasm.h (class gdb_disassembler): New.
14906 (gdb_pretty_print_insn): Remove declaration.
14907 (gdb_disassemble_info): Likewise.
14908 * guile/scm-disasm.c (class gdbscm_disassembler): New.
14909 (gdbscm_disasm_read_memory_worker): Update.
14910 (gdbscm_disasm_read_memory): Update.
14911 (gdbscm_disasm_memory_error): Remove.
14912 (gdbscm_disasm_print_address): Remove.
14913 (gdbscm_disassembler::gdbscm_disassembler): New.
14914 (gdbscm_print_insn_from_port): Update.
14915 * mips-tdep.c: Include disasm.h.
14916 (gdb_print_insn_mips): Update code to get gdbarch.
14917 * record-btrace.c (btrace_insn_history): Update.
14918 * spu-tdep.c: Include disasm.h.
14919 (struct spu_dis_asm_data): Remove.
14920 (struct spu_dis_asm_info): New.
14921 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
14922 SPU id.
14923 (gdb_print_insn_spu): Cast disassemble_info to
14924 spu_dis_asm_info.
14925
80d75874
YQ
149262017-01-26 Yao Qi <yao.qi@linaro.org>
14927
14928 * disasm.c (do_ui_file_delete): Delete.
14929 (gdb_insn_length): Move code creating stream to ...
14930 * utils.c (null_stream): ... here. New function.
14931 * utils.h (null_stream): Declare.
14932
60685cd0
SM
149332017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14934
14935 * python/py-inferior.c (find_thread_object): Return directly
14936 from the loop. Remove "found" variable.
14937
eb1cdb62
JB
149382017-01-21 Joel Brobecker <brobecker@adacore.com>
14939
14940 GDB 7.12.1 released.
14941
b1ce6568
SM
149422017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14943
14944 * python/py-function.c (fnpy_call): Reorder declarations to have
14945 the gdbpy_enter object declared first.
14946 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
14947
6f8b0407
SM
149482017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14949
fec93fb1 14950 PR python/21068
6f8b0407
SM
14951 * python/python-internal.h (PyMem_RawMalloc): Define for
14952 Python < 3.4.
14953 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
14954 PyMem_RawMalloc instead of PyMem_Malloc.
14955
78cbbba8
LM
149562017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
14957 Luis Machado <lgustavo@codesourcery.com>
14958
14959 * NEWS (New commands): Mention flash-erase.
14960 (New MI commands): Mention target-flash-erase.
14961 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
14962 command.
14963 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
14964 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
14965 * target.c (flash_erase_command): New function.
14966 (initialize_targets): Add new flash-erase command.
14967 * target.h (flash_erase_command): New declaration.
14968
2132fe85
JB
149692017-01-20 Joel Brobecker <brobecker@adacore.com>
14970
14971 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
14972 HAVE_SYS_PROCFS_H is defined.
14973
d1dff226
AH
149742017-01-18 Alan Hayward <alan.hayward@arm.com>
14975
14976 * remote.c (struct cached_reg): Change data into a pointer.
14977 * (stop_reply_dtr): Free data pointers before deleting vector.
14978 (process_stop_reply): Likewise.
14979 (remote_parse_stop_reply): Allocate space for data
14980
9890e433
AH
149812017-01-18 Alan Hayward <alan.hayward@arm.com>
14982
14983 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
14984 MAX_REGISTER_SIZE.
14985 (amd64_pseudo_register_read_value): Likewise.
14986 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
14987 (store_register_using_P): Likewise.
14988 * regcache.c (regcache_xfer_part): Likewise.
14989
7a36499a
IR
149902017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
14991
14992 Split real and pseudo registers.
14993 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
14994 (sparc32_pseudo_regnum): New enum.
14995 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
14996 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
14997 (SPARC32_CP0_REGISTERS): New macro.
14998 (sparc32_pseudo_register_name): New function.
14999 (sparc32_register_name): Use sparc32_pseudo_register_name.
15000 (sparc32_pseudo_register_type): New function.
15001 (sparc32_register_type): Use sparc32_pseudo_register_type.
15002 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
15003 pseudo register numbers.
15004 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
15005 (SPARC64_CP0_REGISTERS): New macro.
15006 (sparc64_pseudo_register_name): New function.
15007 (sparc64_register_name): Use sparc64_pseudo_register_name.
15008 (sparc64_pseudo_register_type): New function.
15009 (sparc64_register_type): Use sparc64_pseudo_register_type.
15010 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
15011 pseudo register numbers.
15012 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
15013 sparc64_store_arguments): Handle pseudo register numbers.
15014
6f8976bf
YQ
150152017-01-13 Yao Qi <yao.qi@linaro.org>
15016
15017 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
15018 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
15019 output.
15020 (getpkt_or_notif_sane_1): Likewise.
15021
e4241ace
YQ
150222017-01-13 Yao Qi <yao.qi@linaro.org>
15023
15024 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
15025 of CC. Pass "-x c++-header" instead of "-x c".
15026
3015c064
SM
150272017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15028
15029 * remote.c (remote_can_async_p): Update comment.
15030
fde1b17d
SM
150312017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15032
15033 * linux-nat.c (linux_nat_can_async_p): Update comment.
15034
ca1ca08b
SM
150352017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15036
15037 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
15038
4ad2da73
SM
150392017-01-11 Simon Marchi <simon.marchi@ericsson.com>
15040
15041 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
15042
c8b23b3f
TT
150432017-01-10 Tom Tromey <tom@tromey.com>
15044
15045 * python/py-type.c (typy_legacy_template_argument): Update.
15046 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
15047 ~demangle_parse_info): Declare new members.
15048 (cp_demangled_name_to_comp): Return unique_ptr.
15049 (cp_demangled_name_parse_free)
15050 (make_cleanup_cp_demangled_name_parse_free)
15051 (cp_new_demangle_parse_info): Remove.
15052 * cp-support.c (do_demangled_name_parse_free_cleanup)
15053 (make_cleanup_cp_demangled_name_parse_free): Remove.
15054 (inspect_type, cp_canonicalize_string_full)
15055 (cp_canonicalize_string): Update.
15056 (mangled_name_to_comp): Change return type.
15057 (cp_class_name_from_physname, method_name_from_physname)
15058 (cp_func_name, cp_remove_params): Update.
15059 * cp-name-parser.y (demangle_parse_info): New constructor, from
15060 cp_new_demangle_parse_info.
15061 (~demangle_parse_info): New destructor, from
15062 cp_demangled_name_parse_free.
15063 (cp_merge_demangle_parse_infos): Update.
15064 (cp_demangled_name_to_comp): Change return type.
15065
1ac32117
TT
150662017-01-10 Tom Tromey <tom@tromey.com>
15067
15068 * top.c (prevent_dont_repeat): Change return type.
15069 * python/python.c (execute_gdb_command): Use std::string.
15070 Update.
15071 * guile/guile.c (gdbscm_execute_gdb_command): Update.
15072 * command.h (prevent_dont_repeat): Change return type.
15073 * breakpoint.c (bpstat_do_actions_1): Update.
15074
0cf08227
TT
150752017-01-10 Tom Tromey <tom@tromey.com>
15076
15077 * value.h (scoped_value_mark::~scoped_value_mark): Call
15078 free_to_mark.
15079 (scoped_value_mark::free_to_mark): New method.
15080 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
15081 scoped_value_mark.
15082
eb115069
TT
150832017-01-10 Tom Tromey <tom@tromey.com>
15084
15085 * python/py-value.c (valpy_dereference, valpy_referenced_value)
15086 (valpy_reference_value, valpy_const_value, valpy_get_address)
15087 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
15088 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
15089 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
15090 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
15091 scoped_value_mark.
15092 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
15093 * value.h (scoped_value_mark): New class.
15094
906768f9
TT
150952017-01-10 Tom Tromey <tom@tromey.com>
15096
15097 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
15098 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
15099 * psymtab.c (discard_psymtabs_upto): Remove.
15100 (make_cleanup_discard_psymtabs): Remove.
15101 (struct psymtab_state): Remove.
15102
bef155c3
TT
151032017-01-10 Tom Tromey <tom@tromey.com>
15104
15105 * record-full.c (record_full_save_cleanups): Remove.
15106 (record_full_save): Use gdb::unlinker.
15107 * gcore.c (do_bfd_delete_cleanup): Remove.
15108 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
15109 cleanups.
15110 * dwarf2read.c (unlink_if_set): Remove.
15111 (write_psymtabs_to_index): Use gdb::unlinker.
15112 * common/gdb_unlinker.h: New file.
15113
192b62ce
TT
151142017-01-10 Tom Tromey <tom@tromey.com>
15115
15116 * windows-tdep.c (windows_xfer_shared_library): Update.
15117 * windows-nat.c (windows_make_so): Update.
15118 * utils.h (make_cleanup_bfd_unref): Remove.
15119 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
15120 * symfile.h (symfile_bfd_open)
15121 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
15122 * symfile.c (read_symbols, symbol_file_add)
15123 (separate_debug_file_exists): Update.
15124 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
15125 (generic_load, reread_symbols): Update.
15126 * symfile-mem.c (symbol_file_add_from_memory): Update.
15127 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
15128 (spu_symbol_file_add_from_memory): Update.
15129 * solist.h (struct target_so_ops) <bfd_open>: Return
15130 gdb_bfd_ref_ptr.
15131 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
15132 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
15133 gdb_bfd_ref_ptr.
15134 (solib_map_sections, reload_shared_libraries_1): Update.
15135 * solib-svr4.c (enable_break): Update.
15136 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
15137 * solib-frv.c (enable_break2): Update.
15138 * solib-dsbt.c (enable_break): Update.
15139 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
15140 gdb_bfd_ref_ptr.
15141 (darwin_solib_get_all_image_info_addr_at_init): Update.
15142 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
15143 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
15144 * record-full.c (record_full_save): Update.
15145 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
15146 * procfs.c (insert_dbx_link_bpt_in_file): Update.
15147 * minidebug.c (find_separate_debug_file_in_section): Return
15148 gdb_bfd_ref_ptr.
15149 * machoread.c (macho_add_oso_symfile): Change abfd to
15150 gdb_bfd_ref_ptr.
15151 (macho_symfile_read_all_oso): Update.
15152 (macho_check_dsym): Return gdb_bfd_ref_ptr.
15153 (macho_symfile_read): Update.
15154 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
15155 (jit_bfd_try_read_symtab): Update.
15156 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
15157 (gdb_bfd_openw, gdb_bfd_openr_iovec)
15158 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
15159 gdb_bfd_ref_ptr.
15160 (gdb_bfd_ref_policy): New struct.
15161 (gdb_bfd_ref_ptr): New typedef.
15162 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
15163 (gdb_bfd_openw, gdb_bfd_openr_iovec)
15164 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
15165 gdb_bfd_ref_ptr.
15166 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
15167 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
15168 (gcore_command): Update.
15169 * exec.c (exec_file_attach): Update.
15170 * elfread.c (elf_symfile_read): Update.
15171 * dwarf2read.c (dwarf2_get_dwz_file): Update.
15172 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
15173 (open_and_init_dwo_file): Update.
15174 (open_dwp_file): Return gdb_bfd_ref_ptr.
15175 (open_and_init_dwp_file): Update.
15176 * corelow.c (core_open): Update.
15177 * compile/compile-object-load.c (compile_object_load): Update.
15178 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
15179 * coffread.c (coff_symfile_read): Update.
15180 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
15181 gdb_bfd_ref_ptr. Rename.
15182 (dump_bfd_file, restore_command): Update.
15183 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
15184 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
15185 (find_separate_debug_file_by_buildid): Update.
15186
50315b21
TT
151872017-01-10 Tom Tromey <tom@tromey.com>
15188
15189 * common/gdb_ref_ptr.h: New file.
15190 * python/py-ref.h (struct gdbpy_ref_policy): New.
15191 (gdbpy_ref): Now a typedef.
15192
fc4007c9
TT
151932017-01-10 Tom Tromey <tom@tromey.com>
15194
15195 * utils.h (make_cleanup_htab_delete): Don't declare.
15196 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
15197 Remove.
15198 * linespec.c (decode_compound_collector): Add constructor,
15199 destructor.
15200 (lookup_prefix_sym): Remove cleanup.
15201 (symtab_collector): Add constructor, destructor.
15202 (collect_symtabs_from_filename): Remove cleanup.
15203 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
15204 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
15205 Use htab_up.
15206 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
15207 * dwarf2read.c (dw2_expand_symtabs_matching)
15208 (dw2_map_symbol_filenames, dwarf_decode_macros)
15209 (write_psymtabs_to_index): Use htab_up.
15210 * dwarf2loc.c (func_verify_no_selftailcall)
15211 (call_site_find_chain_1, func_verify_no_selftailcall)
15212 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
15213 std::vector, gdb::unique_xmalloc_ptr.
15214 (call_sitep): Remove typedef.
15215 (dwarf2_locexpr_baton_eval): Remove unused variable.
15216
8dbcee67
TT
152172017-01-10 Tom Tromey <tom@tromey.com>
15218
15219 * python/python-internal.h (make_cleanup_py_decref)
15220 (make_cleanup_py_xdecref): Don't declare.
15221 * python/py-utils.c (py_decref, make_cleanup_py_decref)
15222 (py_xdecref, make_cleanup_py_xdecref): Remove.
15223
13df46cc
TT
152242017-01-10 Tom Tromey <tom@tromey.com>
15225
15226 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
15227 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
15228
06fc9bf7
TT
152292017-01-10 Tom Tromey <tom@tromey.com>
15230
15231 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
15232
830a4934
TT
152332017-01-10 Tom Tromey <tom@tromey.com>
15234
15235 * python/py-utils.c (unicode_to_encoded_string)
15236 (python_string_to_target_string)
15237 (python_string_to_target_python_string)
15238 (python_string_to_host_string, gdbpy_obj_to_string)
15239 (get_addr_from_python): Use gdbpy_ref.
15240
4586d543
TT
152412017-01-10 Tom Tromey <tom@tromey.com>
15242
15243 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
15244 gdbpy_ref.
15245
59876f8f
TT
152462017-01-10 Tom Tromey <tom@tromey.com>
15247
15248 * python/python.c (eval_python_command, gdbpy_decode_line)
15249 (gdbpy_run_events, gdbpy_start_type_printers)
15250 (gdbpy_apply_type_printers): Use gdbpy_ref.
15251
97d83487
TT
152522017-01-10 Tom Tromey <tom@tromey.com>
15253
15254 * python/py-param.c (get_doc_string, compute_enum_values): Use
15255 gdbpy_ref.
15256
9205649a
TT
152572017-01-10 Tom Tromey <tom@tromey.com>
15258
15259 * python/py-inferior.c (find_thread_object, build_inferior_list):
15260 Use gdbpy_ref.
15261
74c49d45
TT
152622017-01-10 Tom Tromey <tom@tromey.com>
15263
15264 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
15265
16361ffb
TT
152662017-01-10 Tom Tromey <tom@tromey.com>
15267
15268 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
15269 gdbpy_ref.
15270
905f2cca
TT
152712017-01-10 Tom Tromey <tom@tromey.com>
15272
15273 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
15274 extra incref.
15275 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
15276 Use gdbpy_ref.
15277
64081434
TT
152782017-01-10 Tom Tromey <tom@tromey.com>
15279
15280 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
15281 gdbpy_ref.
15282
59e9e831
TT
152832017-01-10 Tom Tromey <tom@tromey.com>
15284
15285 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
15286 decref results of PyArg_ParseTupleAndKeywords.
15287
9de10f6d
TT
152882017-01-10 Tom Tromey <tom@tromey.com>
15289
15290 * python/python.c (python_run_simple_file): Use
15291 unique_xmalloc_ptr, gdbpy_ref.
15292
2bd5759d
TT
152932017-01-10 Tom Tromey <tom@tromey.com>
15294
15295 * python/py-prettyprint.c (print_stack_unless_memory_error)
15296 (print_string_repr, print_children): Use gdbpy_ref.
15297 (dummy_python_frame): New class.
15298 (dummy_python_frame::dummy_python_frame): Rename from
15299 push_dummy_python_frame.
15300 (py_restore_tstate): Remove.
15301
3b4e0e01
TT
153022017-01-10 Tom Tromey <tom@tromey.com>
15303
15304 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
15305
17a22718
TT
153062017-01-10 Tom Tromey <tom@tromey.com>
15307
15308 * python/python.c (ensure_python_env, restore_python_env):
15309 Remove.
15310 * python/python-internal.h (ensure_python_env): Don't declare.
15311 * varobj.h (varobj_ensure_python_env): Don't declare.
15312 * varobj.c (varobj_ensure_python_env): Remove.
15313
68cdc557
TT
153142017-01-10 Tom Tromey <tom@tromey.com>
15315
15316 * varobj.c (varobj_value_get_print_value): Use
15317 gdbpy_enter_varobj.
15318
1eba6383
TT
153192017-01-10 Tom Tromey <tom@tromey.com>
15320
15321 * python/py-prettyprint.c (print_string_repr, print_children):
15322 Update.
15323 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
15324 of "encoding".
15325 * varobj.c (varobj_value_get_print_value): Update.
15326 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
15327
bde7b3e3
TT
153282017-01-10 Tom Tromey <tom@tromey.com>
15329
15330 * varobj.c (varobj_get_display_hint)
15331 (dynamic_varobj_has_child_method, install_new_value_visualizer)
15332 (varobj_set_visualizer, free_variable): Use
15333 gdbpy_enter_varobj.
15334
a7785f8c
TT
153352017-01-10 Tom Tromey <tom@tromey.com>
15336
15337 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
15338 (do_finish_initialization): New function. Use gdbpy_ref.
15339 (gdbpy_finish_initialization): Use gdbpy_enter. Call
15340 do_finish_initialization.
15341
2865bfce
TT
153422017-01-10 Tom Tromey <tom@tromey.com>
15343
15344 * python/py-param.c (get_set_value, get_show_value): Use
15345 gdbpy_enter, gdbpy_ref.
15346
0e9dcc75
TT
153472017-01-10 Tom Tromey <tom@tromey.com>
15348
15349 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
15350
12a5cedd
TT
153512017-01-10 Tom Tromey <tom@tromey.com>
15352
15353 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
15354
788f2586
TT
153552017-01-10 Tom Tromey <tom@tromey.com>
15356
15357 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
15358 Use gdbpy_enter_varobj.
15359
6cd67bea
TT
153602017-01-10 Tom Tromey <tom@tromey.com>
15361
15362 * varobj.c (gdbpy_enter_varobj): New constructor.
15363 * python/python-internal.h (gdbpy_enter_varobj): New class.
15364 * python/py-varobj.c (py_varobj_get_iterator): Use
15365 gdbpy_enter_varobj.
15366
14b122bf
TT
153672017-01-10 Tom Tromey <tom@tromey.com>
15368
15369 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
15370 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
15371 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
15372 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
15373 unique_xmalloc_ptr.
15374 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
15375
bf1ca3b9
TT
153762017-01-10 Tom Tromey <tom@tromey.com>
15377
15378 * python/py-xmethods.c (invoke_match_method): Use
15379 gdbpy_ref.
15380
572a5524
TT
153812017-01-10 Tom Tromey <tom@tromey.com>
15382
15383 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
15384 gdbpy_enter, gdbpy_ref.
15385
396a78b6
TT
153862017-01-10 Tom Tromey <tom@tromey.com>
15387
15388 * python/python.c (python_interactive_command): Use gdbpy_enter.
15389
a88b13c7
TT
153902017-01-10 Tom Tromey <tom@tromey.com>
15391
15392 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
15393 gdbpy_ref.
15394
e9f0c363
TT
153952017-01-10 Tom Tromey <tom@tromey.com>
15396
15397 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
15398 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
15399
6349f452
TT
154002017-01-10 Tom Tromey <tom@tromey.com>
15401
15402 * utils.h (htab_deleter): New struct.
15403 (htab_up): New typedef.
15404 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
15405 gdbpy_enter, gdbpy_ref, htab_up.
15406
c0171de6
TT
154072017-01-10 Tom Tromey <tom@tromey.com>
15408
15409 * python/py-unwind.c (pending_frame_invalidate): Remove.
15410 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
15411
f18e226f
TT
154122017-01-10 Tom Tromey <tom@tromey.com>
15413
15414 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
15415 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
15416
c57af3f1
TT
154172017-01-10 Tom Tromey <tom@tromey.com>
15418
15419 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
15420
60e600ec
TT
154212017-01-10 Tom Tromey <tom@tromey.com>
15422
15423 * python/python.c (gdbpy_eval_from_control_command)
15424 (gdbpy_source_script, gdbpy_run_events)
15425 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
15426 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
15427 gdbpy_enter.
15428
bf7da5b0
TT
154292017-01-10 Tom Tromey <tom@tromey.com>
15430
15431 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
15432
2d38bced
TT
154332017-01-10 Tom Tromey <tom@tromey.com>
15434
15435 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
15436
07bc7329
TT
154372017-01-10 Tom Tromey <tom@tromey.com>
15438
15439 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
15440 (python_on_inferior_call_pre, python_on_inferior_call_post)
15441 (python_on_memory_change, python_on_register_change)
15442 (python_inferior_exit, python_new_objfile, add_thread_object)
15443 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
15444
6e7c365e
TT
154452017-01-10 Tom Tromey <tom@tromey.com>
15446
15447 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
15448 (bpfinishpy_handle_exit): Use gdbpy_enter.
15449
6ba0cd40
TT
154502017-01-10 Tom Tromey <tom@tromey.com>
15451
15452 * python/py-cmd.c (cmdpy_destroyer)
15453 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
15454 gdbpy_enter.
15455
de2dc875
TT
154562017-01-10 Tom Tromey <tom@tromey.com>
15457
15458 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
15459 gdbpy_enter.
15460 (gdbpy_breakpoint_has_cond): Likewise.
15461
4ecee2c4
TT
154622017-01-10 Tom Tromey <tom@tromey.com>
15463
15464 * python/python.c (gdbpy_enter): New constructor.
15465 (~gdbpy_enter): New destructor.
15466 (restore_python_env, ensure_python_env): Rewrite.
15467 * python/python-internal.h (gdbpy_enter): New class.
15468
37fce74f
TT
154692017-01-10 Tom Tromey <tom@tromey.com>
15470
15471 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
15472
53a0cca3
TT
154732017-01-10 Tom Tromey <tom@tromey.com>
15474
15475 * python/py-value.c (value_has_field, get_field_flag)
15476 (get_field_type, valpy_getitem, convert_value_from_python): Use
15477 gdbpy_ref.
15478
ff3724f5
TT
154792017-01-10 Tom Tromey <tom@tromey.com>
15480
15481 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
15482 gdbpy_ref.
15483
0700aea5
TT
154842017-01-10 Tom Tromey <tom@tromey.com>
15485
15486 * python/py-prettyprint.c (search_pp_list)
15487 (find_pretty_printer_from_objfiles)
15488 (find_pretty_printer_from_progspace)
15489 (find_pretty_printer_from_gdb, find_pretty_printer)
15490 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
15491 gdbpy_ref.
15492
1bb44c9f
TT
154932017-01-10 Tom Tromey <tom@tromey.com>
15494
15495 * python/py-param.c (call_doc_function): Use gdbpy_ref.
15496
87ce03fd
TT
154972017-01-10 Tom Tromey <tom@tromey.com>
15498
15499 * python/py-linetable.c (build_line_table_tuple_from_pcs)
15500 (ltpy_get_all_source_lines): Use gdbpy_ref.
15501
ee0a3fb8
TT
155022017-01-10 Tom Tromey <tom@tromey.com>
15503
15504 * python/py-framefilter.c (extract_sym, extract_value)
15505 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
15506 gdbpy_ref.
15507
bf2a52fa
TT
155082017-01-10 Tom Tromey <tom@tromey.com>
15509
15510 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
15511
f59fe7f8
TT
155122017-01-10 Tom Tromey <tom@tromey.com>
15513
15514 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
15515
80bd970a
TT
155162017-01-10 Tom Tromey <tom@tromey.com>
15517
15518 * python/py-function.c (convert_values_to_python, fnpy_init): Use
15519 gdbpy_ref.
15520
d1b3de2e
TT
155212017-01-10 Tom Tromey <tom@tromey.com>
15522
15523 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
15524
3bb43384
TT
155252017-01-10 Tom Tromey <tom@tromey.com>
15526
15527 * python/py-type.c (convert_field, make_fielditem, typy_fields)
15528 (typy_range): Use gdbpy_ref.
15529
abf5651e
TT
155302017-01-10 Tom Tromey <tom@tromey.com>
15531
15532 * python/py-threadevent.c (create_thread_event_object): Use
15533 gdbpy_ref.
15534 * python/py-stopevent.c (create_stop_event_object): Simplify.
15535 (emit_stop_event): Use gdbpy_ref.
15536 * python/py-signalevent.c (create_signal_event_object): Use
15537 gdbpy_ref.
15538 * python/py-newobjfileevent.c (create_new_objfile_event_object)
15539 (emit_new_objfile_event, create_clear_objfiles_event_object)
15540 (emit_clear_objfiles_event): Use gdbpy_ref.
15541 * python/py-infevents.c (create_inferior_call_event_object)
15542 (create_register_changed_event_object)
15543 (create_memory_changed_event_object, emit_inferior_call_event)
15544 (emit_memory_changed_event, emit_register_changed_event): Use
15545 gdbpy_ref.
15546 * python/py-exitedevent.c (create_exited_event_object)
15547 (emit_exited_event): Use gdbpy_ref.
15548 * python/py-event.h (evpy_emit_event): Remove
15549 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
15550 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
15551 * python/py-continueevent.c (emit_continue_event): Use
15552 gdbpy_ref.
15553 * python/py-breakpoint.c (gdbpy_breakpoint_created)
15554 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
15555 gdbpy_ref.
15556 * python/py-bpevent.c (create_breakpoint_event_object): Use
15557 gdbpy_ref.
15558
a68ff33e
TT
155592017-01-10 Tom Tromey <tom@tromey.com>
15560
15561 * python/py-ref.h: New file.
15562
7becfd03
SM
155632017-01-10 Simon Marchi <simon.marchi@ericsson.com>
15564
15565 * cli-out.c (cli_ui_out::do_redirect): Change return type to
15566 void.
15567 * cli-out.h (cli_ui_out::do_redirect): Likewise.
15568 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
15569 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
15570 * ui-out.c (ui_out::redirect): Likewise.
15571 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
15572 * cli/cli-logging.c (set_logging_redirect): Update call site of
15573 ui_out::redirect.
15574 (handle_redirections): Likewise.
15575 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
15576 * top.c (execute_command_to_string): Likewise.
15577 * utils.c (do_ui_out_redirect_pop): Likewise.
15578
df294654
SM
155792017-01-10 Simon Marchi <simon.marchi@ericsson.com>
15580
15581 * stack.c (_initialize_stack): Update "frame" command help message.
15582
f5e6296e
IB
155832017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
15584
15585 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
15586
0e2d6fa6
YQ
155872017-01-06 Yao Qi <yao.qi@linaro.org>
15588
15589 * x86-linux-nat.h: Include gdb_proc_service.h.
15590
44d6d3f9
YQ
155912017-01-06 Yao Qi <yao.qi@linaro.org>
15592
15593 * ser-base.h: Include serial.h.
15594
656731fe
YQ
155952017-01-06 Yao Qi <yao.qi@linaro.org>
15596
15597 * ppc-linux-tdep.h: Include ppc-tdep.h.
15598
1ca8f924
YQ
155992017-01-06 Yao Qi <yao.qi@linaro.org>
15600
15601 * nat/amd64-linux-siginfo.h: Include signal.h.
15602
bc3008c4
YQ
156032017-01-06 Yao Qi <yao.qi@linaro.org>
15604
15605 * nat/aarch64-linux-hw-point.h: Include break-common.h.
15606
66c80d03
YQ
156072017-01-06 Yao Qi <yao.qi@linaro.org>
15608
15609 * mi/mi-parse.h: Include mi-cmds.h.
15610
051d2dda
YQ
156112017-01-06 Yao Qi <yao.qi@linaro.org>
15612
15613 * inf-loop.c: Don't include "target.h".
15614 * inf-loop.h: Include it here.
15615
8018d34f
YQ
156162017-01-06 Yao Qi <yao.qi@linaro.org>
15617
15618 * dfp.h: Include "dboulest.h" and "expression.h".
15619
c0b8369c
YQ
156202017-01-06 Yao Qi <yao.qi@linaro.org>
15621
15622 * ax-gdb.h: Include "ax.h".
15623
ad5cba2a
YQ
156242017-01-06 Yao Qi <yao.qi@linaro.org>
15625
15626 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
15627 with nat/gdb_ptrace.h.
15628
1c33cd7f
YQ
156292017-01-05 Yao Qi <yao.qi@linaro.org>
15630
15631 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
15632 new line.
15633 (mips64_fbsd_sigframe_init): Likewise.
15634
c988ac1d
JB
156352017-01-04 John Baldwin <jhb@FreeBSD.org>
15636
15637 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
15638 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
15639
b268007c
JB
156402017-01-04 John Baldwin <jhb@FreeBSD.org>
15641
15642 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
15643 * NEWS: Mention new FreeBSD/mips native configuration.
15644 * config/mips/fbsd.mh: New file.
15645 * configure.host: Add mips*-*-freebsd*.
15646 * mips-fbsd-nat.c: New file.
15647
387360da
JB
156482017-01-04 John Baldwin <jhb@FreeBSD.org>
15649
15650 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
15651 (ALLDEPFILES): Add mips-fbsd-tdep.c.
15652 * NEWS: Mention new FreeBSD/mips target.
15653 * configure.tgt: Add mips*-*-freebsd*.
15654 * mips-fbsd-tdep.c: New file.
15655 * mips-fbsd-tdep.h: New file.
15656
2aaaf250
YQ
156572017-01-04 Yao Qi <yao.qi@linaro.org>
15658
15659 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
15660 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
15661
61baf725
JB
156622017-01-01 Joel Brobecker <brobecker@adacore.com>
15663
6dbb839a 15664 Update copyright year range in all GDB files.
61baf725 15665
c113e7ff 156662017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 15667
c113e7ff 15668 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 15669
c113e7ff 15670For older changes see ChangeLog-2016.
c906108c
SS
15671\f
15672Local Variables:
15673mode: change-log
15674left-margin: 8
15675fill-column: 74
15676version-control: never
57da7796 15677coding: utf-8
c906108c 15678End:
This page took 6.357672 seconds and 4 git commands to generate.