]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/inflow.c: Move SIGTTOU temporary ignoring to a RAII class
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e2c33ac7
PA
12017-11-16 Pedro Alves <palves@redhat.com>
2
3 * inflow.c (scoped_ignore_sigttou): New class.
4 (child_terminal_ours_1, new_tty): Use it.
5
d7236961
UW
62017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
7
8 * target-float.c (decimal_from_number): Add byte_order argument and
9 call match_endianness. Error if unknown floating-point type.
10 (decimal_to_number): Add byte_order argument and call match_endianness.
11 (decimal_from_longest): Update call. Do not call match_endianness.
12 (decimal_from_ulongest): Likewise.
13 (decimal_binop): Likewise.
14 (decimal_is_zero): Likewise.
15 (decimal_compare): Likewise.
16 (decimal_convert): Likewise.
17
d8ae99a7
PM
182017-11-16 Phil Muldoon <pmuldoon@redhat.com>
19
20 * python/python.c (gdbpy_rbreak): New function.
21 * NEWS: Document Python rbreak feature.
22
c632b645
YQ
232017-11-16 Yao Qi <yao.qi@linaro.org>
24
25 * features/tic6x-c62x.xml: Remove.
26 * features/tic6x-c64x.xml: Remove.
27 * features/tic6x-c64xp.xml: Remove.
28
a014b87a
JB
292017-11-15 John Baldwin <jhb@FreeBSD.org>
30
31 * symtab.h: Include <array>.
32
94765011
JB
332017-11-15 John Baldwin <jhb@FreeBSD.org>
34
35 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
36 (bsd_kvm_proc_cmd): Likewise.
37
625ad440
SM
382017-11-15 Simon Marchi <simon.marchi@ericsson.com>
39
40 * tui/tui-win.c (window_name_completer): Replace VEC with
41 std::vector.
42
c0c11fa9
AC
432017-11-15 Andrew Cagney <cagney@gnu.org>
44
45 * MAINTAINERS: Remove no-longer applicable entries.
46
34a7ebaf
AC
472017-11-15 Andrew Cagney <cagney@gnu.org>
48
49 * MAINTAINERS: Move self to Past Maintainers.
50
5334ef39
YQ
512017-11-15 Yao Qi <yao.qi@linaro.org>
52
53 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
54 * features/nios2-linux.c: Remove.
55 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
56 initialize_tdesc_nios2_linux.
57
a714b0d6
YQ
582017-11-15 Yao Qi <yao.qi@linaro.org>
59
60 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
61 M68HC11_LAST_HARD_REG + 1.
62
92ffd475
PC
632017-11-14 Paul Carroll <pcarroll@codesourcery.com>
64
65 PR gdb/22388
66 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
67 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
68 Return TARGET_XFER_EOF if size of returned data is 0.
69
07431908
SM
702017-11-14 Simon Marchi <simon.marchi@ericsson.com>
71
72 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
73 memory-map-selftests.c.
74 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
75 * memory-map.c (memory_map_start_memory): Fix computation of hi
76 address.
77 * unittests/memory-map-selftests.c: New file.
78
31432a67
JB
792017-11-09 Joel Brobecker <brobecker@adacore.com>
80
81 * ada-lang.c: Fix some typos in the general command documenting
82 how Ada expressions are being evaluated and how their result
83 is printed.
84
e793c052
TT
852017-11-09 Tom Tromey <tom@tromey.com>
86
87 * psymtab.c (psymbol_hash): Do not hash string contents.
88 (psymbol_compare): Add comment.
89
7e8835c5
TT
902017-11-09 Tom Tromey <tom@tromey.com>
91
92 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
93
286acbb5
JB
942017-11-08 Joel Brobecker <brobecker@adacore.com>
95
96 * ada-exp.y (write_var_from_sym): Remove parameter
97 "orig_left_context". Update all callers.
98
b44ec619
SM
992017-11-08 Simon Marchi <simon.marchi@ericsson.com>
100
101 * tracepoint.h (class collection_list) <stringify>: Return
102 std::vector<std::string>.
103 (encode_actions_rsp): Change parameters to
104 std::vector<std::string> *.
105 * tracepoint.c (collection_list::stringify): Return
106 std::vector<std::string> and adjust accordingly.
107 (encode_actions_rsp): Changee parameters to
108 std::vector<std::string> and adjust accordingly.
109 * remote.c (free_actions_list),
110 free_actions_list_cleanup_wrapper): Remove.
111 (remote_download_tracepoint): Adjust to std::vector.
112
2f4732b0
TT
1132017-11-08 Tom Tromey <tom@tromey.com>
114
115 * dwarf2read.c (symbolp): Remove typedef.
116 (read_func_scope): Use std::vector.
117 (process_structure_scope): Use std::vector.
118
f9d67a22
PA
1192017-11-08 Pedro Alves <palves@redhat.com>
120
121 * ada-lang.c (ada_make_symbol_completion_list): Use
122 completion_skip_symbol.
123 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
124 (symbol_is_function_or_method(symbol*)): New.
125 (add_symtab_completions): Add complete_symbol_mode parameter. Use
126 completion_skip_symbol.
127 (default_collect_symbol_completion_matches_break_on): Use
128 completion_skip_symbol. Pass down mode.
129 (collect_file_symbol_completion_matches): Pass down mode.
130 * symtab.h (symbol_is_function_or_method): New declarations.
131 (completion_skip_symbol): New template function.
132
56d87ef7
PA
1332017-11-08 Pedro Alves <palves@redhat.com>
134
135 * linespec.c (iterate_over_all_matching_symtabs): Add
136 search_domain parameter. Pass it down to expand_symtabs_matching.
137 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
138 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
139 search_domain.
140 (add_all_symbol_names_from_pspace): Add search_domain parameter.
141 Pass it down.
142 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
143 symbols.
144 (add_matching_symbols_to_info): Add search_domain parameter. Pass
145 it down.
146
1b026119
PA
1472017-11-08 Pedro Alves <palves@redhat.com>
148
149 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
150 text_len locals and don't pass them down.
151 * symtab.c (completion_list_add_name): Remove
152 sym_text/sym_text_len parameters and adjust.
153 (completion_list_add_symbol, completion_list_add_msymbol)
154 (completion_list_objc_symbol, completion_list_add_fields)
155 (add_symtab_completions): Likewise.
156 (default_collect_symbol_completion_matches_break_on)
157 (collect_file_symbol_completion_matches): Remove sym_text_len
158 local and don't pass it down.
159 * symtab.h (completion_list_add_name): Remove
160 sym_text/sym_text_len parameters.
161
c62446b1
PA
1622017-11-08 Pedro Alves <palves@redhat.com>
163
164 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
165 unittests/lookup_name_info-selftests.c.
166 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
167 * cp-support.c: Include "selftest.h".
168 (cp_remove_params_1): Rename from cp_remove_params. Add
169 'require_param' parameter, and handle it.
170 (cp_remove_params): Reimplement.
171 (cp_remove_params_if_any): New.
172 (selftests::quote): New.
173 (selftests::check_remove_params): New.
174 (selftests::test_cp_remove_params): New.
175 (_initialize_cp_support): Install
176 selftests::test_cp_remove_params.
177 * cp-support.h (cp_remove_params_if_any): Declare.
178 * dwarf2read.c :Include "selftest.h".
179 (dw2_expand_symtabs_matching_symbol): Use
180 lookup_name_info::make_ignore_params.
181 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
182 (selftests::dw2_expand_symtabs_matching::string_or_null)
183 (selftests::dw2_expand_symtabs_matching::check_match)
184 (selftests::dw2_expand_symtabs_matching::test_symbols)
185 (selftests::dw2_expand_symtabs_matching::run_test): New.
186 (_initialize_dwarf2_read): Register
187 selftests::dw2_expand_symtabs_matching::run_test.
188 * psymtab.c (psym_expand_symtabs_matching): Use
189 lookup_name_info::make_ignore_params.
190 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
191 If the lookup name wants to ignore parameters, strip them.
192 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
193 code handling '('.
194 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
195 (default_collect_symbol_completion_matches_break_on): Don't try to
196 strip parameters.
197 * symtab.h (lookup_name_info::lookup_name_info): Add
198 'ignore_parameters' parameter.
199 (lookup_name_info::ignore_parameters)
200 (lookup_name_info::make_ignore_params): New methods.
201 (lookup_name_info::m_ignore_parameters): New field.
202 * unittests/lookup_name_info-selftests.c: New file.
203
61920122
PA
2042017-11-08 Pedro Alves <palves@redhat.com>
205
206 * dwarf2read.c (dw2_expand_marked_cus)
207 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
208 (dw2_expand_symtabs_matching): Move further below.
209 (dw2_expand_marked_cus): Reindent.
210
3f563c84
PA
2112017-11-08 Pedro Alves <palves@redhat.com>
212
213 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
214 (struct name_component): New.
215 (mapped_index::name_components): New field.
216 (mapped_index::symbol_name_at): New method.
217 (dwarf2_read_index): Call mapped_index ctor.
218 (dw2_map_matching_symbols): Add comment about name_components
219 table.
220 (dw2_expand_symtabs_matching): Factor part to...
221 (dw2_expand_symtabs_matching_symbol): ... this new function.
222 Build name components table, and lookup symbols in it before
223 calling the name matcher.
224 (dw2_expand_marked_cus): New, factored out from
225 dw2_expand_symtabs_matching.
226 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
227
b5ec771e
PA
2282017-11-08 Pedro Alves <palves@redhat.com>
229
230 * ada-lang.c (ada_encode): Rename to ..
231 (ada_encode_1): ... this. Add throw_errors parameter and handle
232 it.
233 (ada_encode): Reimplement.
234 (match_name): Delete, folded into full_name.
235 (resolve_subexp): No longer pass the encoded name to
236 ada_lookup_symbol_list.
237 (should_use_wild_match): Delete.
238 (name_match_type_from_name): New.
239 (ada_lookup_simple_minsym): Use lookup_name_info and the
240 language's symbol_name_matcher_ftype.
241 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
242 (ada_add_block_renamings): Adjust to use lookup_name_info.
243 (ada_lookup_name): New.
244 (add_nonlocal_symbols, ada_add_all_symbols)
245 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
246 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
247 (ada_name_for_lookup): Delete.
248 (ada_lookup_encoded_symbol): Construct a verbatim name.
249 (wild_match): Reverse sense of return type. Use bool.
250 (full_match): Reverse sense of return type. Inline bits of old
251 match_name here.
252 (ada_add_block_symbols): Adjust to use lookup_name_info.
253 (symbol_completion_match): Delete, folded into...
254 (ada_lookup_name_info::matches): ... .this new method.
255 (symbol_completion_add): Delete.
256 (ada_collect_symbol_completion_matches): Add name_match_type
257 parameter. Adjust to use lookup_name_info and
258 completion_list_add_name.
259 (get_var_value, ada_add_global_exceptions): Adjust to use
260 lookup_name_info.
261 (ada_get_symbol_name_cmp): Delete.
262 (do_wild_match, do_full_match): New functions.
263 (ada_lookup_name_info::ada_lookup_name_info): New method.
264 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
265 functions.
266 (ada_language_defn): Install ada_get_symbol_name_matcher.
267 * ada-lex.l (processId): If name starts with '<', copy it
268 verbatim.
269 * block.c (block_iter_match_step, block_iter_match_first)
270 (block_iter_match_next, block_lookup_symbol)
271 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
272 lookup_name_info.
273 * block.h (block_iter_match_first, block_iter_match_next)
274 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
275 * c-lang.c (c_language_defn, cplus_language_defn)
276 (asm_language_defn, minimal_language_defn): Adjust comments to
277 refer to la_get_symbol_name_matcher.
278 * completer.c (complete_files_symbols)
279 (collect_explicit_location_matches, symbol_completer): Pass a
280 symbol_name_match_type down.
281 * completer.h (class completion_match, completion_match_result):
282 New classes.
283 (completion_tracker::reset_completion_match_result): New method.
284 (completion_tracker::m_completion_match_result): New field.
285 * cp-support.c (make_symbol_overload_list_block): Adjust to use
286 lookup_name_info.
287 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
288 functions.
289 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
290 * d-lang.c: Adjust comments to refer to
291 la_get_symbol_name_matcher.
292 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
293 Adjust to use lookup_name_info.
294 (dict_iter_match_first, dict_iter_match_next)
295 (iter_match_first_hashed, iter_match_next_hashed)
296 (iter_match_first_linear, iter_match_next_linear): Adjust to work
297 with a lookup_name_info.
298 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
299 Likewise.
300 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
301 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
302 (gdb_index_symbol_name_matcher): New class.
303 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
304 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
305 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
306 with a symbol_name_match_type.
307 (f_language_defn): Adjust comments to refer to
308 la_get_symbol_name_matcher.
309 * go-lang.c (go_language_defn): Adjust comments to refer to
310 la_get_symbol_name_matcher.
311 * language.c (default_symbol_name_matcher)
312 (language_get_symbol_name_matcher): New functions.
313 (unknown_language_defn, auto_language_defn): Adjust comments to
314 refer to la_get_symbol_name_matcher.
315 * language.h (symbol_name_cmp_ftype): Delete.
316 (language_defn) <la_collect_symbol_completion_matches>: Add match
317 type parameter.
318 <la_get_symbol_name_cmp>: Delete field.
319 <la_get_symbol_name_matcher>: New field.
320 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
321 (default_symbol_name_matcher, language_get_symbol_name_matcher):
322 Declare.
323 * linespec.c (iterate_over_all_matching_symtabs)
324 (iterate_over_file_blocks): Adjust to use lookup_name_info.
325 (find_methods): Add language parameter, and use lookup_name_info
326 and the language's symbol_name_matcher_ftype.
327 (linespec_complete_function): Adjust.
328 (lookup_prefix_sym): Use lookup_name_info.
329 (add_all_symbol_names_from_pspace): Adjust.
330 (find_superclass_methods): Add language parameter and pass it
331 down.
332 (find_method): Pass symbol language down.
333 (find_linespec_symbols): Don't demangle or Ada encode here.
334 (search_minsyms_for_name): Add lookup_name_info parameter.
335 (add_matching_symbols_to_info): Add name_match_type parameter.
336 Use lookup_name_info.
337 * m2-lang.c (m2_language_defn): Adjust comments to refer to
338 la_get_symbol_name_matcher.
339 * minsyms.c: Include <algorithm>.
340 (add_minsym_to_demangled_hash_table): Remove table parameter and
341 add objfile parameter. Use search_name_hash, and add language to
342 demangled languages vector.
343 (struct found_minimal_symbols): New struct.
344 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
345 New functions.
346 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
347 input names here. Use lookup_name_info instead. Lookup up
348 demangled names once for each language in the demangled names
349 vector.
350 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
351 demangled names once for each language in the demangled names
352 vector.
353 (build_minimal_symbol_hash_tables): Adjust.
354 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
355 lookup_name_info.
356 * objc-lang.c (objc_language_defn): Adjust comment to refer to
357 la_get_symbol_name_matcher.
358 * objfiles.h: Include <vector>.
359 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
360 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
361 la_get_symbol_name_matcher.
362 * p-lang.c (pascal_language_defn): Adjust comment to refer to
363 la_get_symbol_name_matcher.
364 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
365 (match_partial_symbol): Use symbol_name_match_type,
366 lookup_name_info and psymbol_name_matches.
367 (lookup_partial_symbol): Use lookup_name_info.
368 (map_block): Use symbol_name_match_type and lookup_name_info.
369 (psym_map_matching_symbols): Use symbol_name_match_type.
370 (psymbol_name_matches): New.
371 (recursively_search_psymtabs): Use lookup_name_info and
372 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
373 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
374 'kind' parameter to 'domain'.
375 * rust-lang.c (rust_language_defn): Adjust comment to refer to
376 la_get_symbol_name_matcher.
377 * symfile-debug.c (debug_qf_map_matching_symbols)
378 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
379 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
380 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
381 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
382 Adjust to use symbol_name_match_type.
383 <expand_symtabs_matching>: Adjust to use lookup_name_info.
384 (expand_symtabs_matching): Adjust to use lookup_name_info.
385 * symmisc.c (maintenance_expand_symtabs): Use
386 lookup_name_info::match_any ().
387 * symtab.c (symbol_matches_search_name): New.
388 (eq_symbol_entry): Adjust to use lookup_name_info and the
389 language's matcher.
390 (demangle_for_lookup_info::demangle_for_lookup_info): New.
391 (lookup_name_info::match_any): New.
392 (iterate_over_symbols, search_symbols): Use lookup_name_info.
393 (compare_symbol_name): Add language, lookup_name_info and
394 completion_match_result parameters, and use them.
395 (completion_list_add_name): Make extern. Add language and
396 lookup_name_info parameters. Use them.
397 (completion_list_add_symbol, completion_list_add_msymbol)
398 (completion_list_objc_symbol): Add lookup_name_info parameters and
399 adjust. Pass down language.
400 (completion_list_add_fields): Add lookup_name_info parameters and
401 adjust. Pass down language.
402 (add_symtab_completions): Add lookup_name_info parameters and
403 adjust.
404 (default_collect_symbol_completion_matches_break_on): Add
405 name_match_type parameter, and use it. Use lookup_name_info.
406 (default_collect_symbol_completion_matches)
407 (collect_symbol_completion_matches): Add name_match_type
408 parameter, and pass it down.
409 (collect_symbol_completion_matches_type): Adjust.
410 (collect_file_symbol_completion_matches): Add name_match_type
411 parameter, and use lookup_name_info.
412 * symtab.h: Include <string> and "common/gdb_optional.h".
413 (enum class symbol_name_match_type): New.
414 (class ada_lookup_name_info): New.
415 (struct demangle_for_lookup_info): New.
416 (class lookup_name_info): New.
417 (symbol_name_matcher_ftype): New.
418 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
419 (symbol_matches_search_name): Declare.
420 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
421 (default_collect_symbol_completion_matches)
422 (collect_symbol_completion_matches)
423 (collect_file_symbol_completion_matches): Add name_match_type
424 parameter.
425 (iterate_over_symbols): Use lookup_name_info.
426 (completion_list_add_name): Declare.
427 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
428 (strncmp_iw_with_mode): Now extern.
429 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
430 (strncmp_iw_with_mode): Declare.
431
5ffa0793
PA
4322017-11-08 Keith Seitz <keiths@redhat.com>
433 Pedro Alves <palves@redhat.com>
434
435 * ada-lang.c (ada_language_defn): Install
436 default_search_name_hash.
437 * buildsym.c (struct buildsym_compunit): <language>: New field.
438 (finish_block_internal): Pass language when creating dictionaries.
439 (start_buildsym_compunit, start_symtab): New language parameters.
440 Use them.
441 (restart_symtab): Pass down compilation unit's language.
442 * buildsym.h (enum language): Forward declare.
443 (start_symtab): New 'language' parameter.
444 * c-lang.c (c_language_defn, cplus_language_defn)
445 (asm_language_defn, minimal_language_defn): Install
446 default_search_name_hash.
447 * coffread.c (coff_start_symtab): Adjust.
448 * d-lang.c (d_language_defn): Install default_search_name_hash.
449 * dbxread.c (struct symloc): Add 'pst_language' field.
450 (PST_LANGUAGE): Define.
451 (start_psymtab, read_ofile_symtab): Use it.
452 (process_one_symbol): New 'language' parameter. Pass it down.
453 * dictionary.c (struct dictionary) <language>: New field.
454 (DICT_LANGUAGE): Define.
455 (dict_create_hashed, dict_create_hashed_expandable)
456 (dict_create_linear, dict_create_linear_expandable): New parameter
457 'language'. Set the dictionary's language.
458 (iter_match_first_hashed): Adjust to rename.
459 (insert_symbol_hashed): Assert we don't see mismatching
460 languages. Adjust to rename.
461 (dict_hash): Rename to ...
462 (default_search_name_hash): ... this and make extern.
463 * dictionary.h (struct language_defn): Forward declare.
464 (dict_create_hashed): New parameter 'language'.
465 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
466 * f-lang.c (f_language_defn): Install default_search_name_hash.
467 * go-lang.c (go_language_defn): Install default_search_name_hash.
468 * jit.c (finalize_symtab): Pass compunit's language to dictionary
469 creation.
470 * language.c (unknown_language_defn, auto_language_defn):
471 * language.h (language_defn::la_search_name_hash): New field.
472 (default_search_name_hash): Declare.
473 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
474 * mdebugread.c (new_block): New parameter 'language'.
475 * mdebugread.c (parse_symbol): Pass symbol language to block
476 allocation.
477 (psymtab_to_symtab_1): Pass down language.
478 (new_symtab): Pass compunit's language to block allocation.
479 * objc-lang.c (objc_language_defn): Install
480 default_search_name_hash.
481 * opencl-lang.c (opencl_language_defn):
482 * p-lang.c (pascal_language_defn): Install
483 default_search_name_hash.
484 * rust-lang.c (rust_language_defn): Install
485 default_search_name_hash.
486 * stabsread.h (enum language): Forward declare.
487 (process_one_symbol): Add 'language' parameter.
488 * symtab.c (search_name_hash): New function.
489 * symtab.h (search_name_hash): Declare.
490 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
491
2a1dde5d
PA
4922017-11-08 Pedro Alves <palves@redhat.com>
493
494 * cp-name-parser.y (main): Don't initialize extra_chars.
495
95a6b0a1
TT
4962017-11-07 Tom Tromey <tom@tromey.com>
497
498 * event-top.h (command_handler): Constify.
499 * record-full.c (cmd_record_full_start): Update.
500 * thread.c (thread_apply_all_command): Update.
501 * printcmd.c (eval_command): Update.
502 * mi/mi-main.c (mi_execute_cli_command): Update.
503 (mi_execute_async_cli_command): Update.
504 * tui/tui-stack.c (tui_update_command): Update.
505 * cli/cli-interp.c (safe_execute_command): Constify.
506 * record.c (record_start): Update.
507 (record_start, record_stop, cmd_record_start): Update.
508 * record-btrace.c (cmd_record_btrace_bts_start): Update.
509 (cmd_record_btrace_pt_start): Update.
510 (cmd_record_btrace_start): Update.
511 (cmd_record_btrace_start): Update.
512 * reverse.c (exec_reverse_once): Update.
513 * python/python.c (execute_gdb_command): Don't copy the command.
514 * event-top.c (command_line_handler): Update.
515 (command_handler): Constify.
516 * defs.h (deprecated_call_command_hook): Constify.
517 * cli/cli-script.h (execute_user_command): Constify.
518 * cli/cli-script.c (execute_user_command): Constify.
519 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
520 (enum command_control_type): Update.
521 * main.c (catch_command_errors): Remove non-const overload.
522 (catch_command_errors_ftype): Remove.
523 * python/py-cmd.c (cmdpy_function): Constify.
524 * guile/scm-cmd.c (cmdscm_function): Constify.
525 * cli/cli-dump.c (call_dump_func): Constify.
526 * cli/cli-decode.c (do_const_cfunc): Constify.
527 (do_sfunc): Constify.
528 (cmd_func): Constify.
529 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
530 * top.h (execute_command): Constify.
531 * top.c (execute_command): Constify.
532 (execute_command_to_string): Constify.
533 (deprecated_call_command_hook): Constify.
534 * command.h (cmd_func): Constify.
535 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
536
eb4c3f4a
TT
5372017-11-07 Tom Tromey <tom@tromey.com>
538
539 * ada-lang.c (catch_ada_exception_command): Constify.
540 (catch_assert_command): Constify.
541 * break-catch-throw.c (catch_catch_command, catch_throw_command)
542 (catch_rethrow_command): Constify.
543 (catch_exception_command_1): Constify.
544 * breakpoint.h (add_catch_command): Constify.
545 * break-catch-syscall.c (catch_syscall_command_1): Constify.
546 (catch_syscall_split_args): Constify.
547 * break-catch-sig.c (catch_signal_command): Constify.
548 (catch_signal_split_args): Constify.
549 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
550 cmd_const_sfunc_ftype.
551 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
552 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
553 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
554 (add_setshow_string_cmd, struct cmd_list_element)
555 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
556 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
557 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
558 Constify.
559 (set_cmd_sfunc): Constify.
560 (empty_sfunc): Constify.
561 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
562 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
563 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
564 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
565 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
566 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
567 Constify.
568 (set_cmd_sfunc): Constify.
569 (cmd_sfunc_ftype): Remove.
570 * compile/compile.c (set_compile_args): Constify.
571 * infrun.c (set_disable_randomization): Constify.
572 * infcmd.c (set_args_command, set_cwd_command): Constify.
573 * breakpoint.c (set_condition_evaluation_mode): Constify.
574 (add_catch_command): Constify.
575 (catch_fork_command_1, catch_exec_command_1)
576 (catch_load_command_1, catch_unload_command_1): Constify.
577 (catch_load_or_unload): Constify.
578 * guile/scm-param.c (pascm_set_func): Constify.
579 (add_setshow_generic): Constify.
580 * python/py-param.c (get_set_value): Constify.
581 * top.h (set_verbose): Constify.
582 * tui/tui-win.c (tui_set_var_cmd): Constify.
583 * mi/mi-main.c (set_mi_async_command): Constify.
584 * cli/cli-logging.c (set_logging_overwrite)
585 (set_logging_redirect): Constify.
586 * value.c (set_max_value_size): Constify.
587 * valprint.c (set_input_radix, set_output_radix): Constify.
588 * utils.c (set_width_command, set_height_command): Constify.
589 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
590 * tracepoint.c (set_disconnected_tracing)
591 (set_circular_trace_buffer, set_trace_buffer_size)
592 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
593 * top.c (set_history_size_command, set_verbose, set_editing)
594 (set_gdb_datadir, set_history_filename): Constify.
595 * target.c (set_targetdebug, maint_set_target_async_command)
596 (maint_set_target_non_stop_command, set_target_permissions)
597 (set_write_memory_permission): Constify.
598 (open_target): Constify.
599 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
600 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
601 * symtab.c (set_symbol_cache_size_handler): Constify.
602 * symfile.c (set_ext_lang_command): Constify.
603 * symfile-debug.c (set_debug_symfile): Constify.
604 * source.c (set_directories_command): Constify.
605 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
606 * serial.c (set_parity): Constify.
607 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
608 * remote.c (set_remote_exec_file, set_remotebreak)
609 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
610 * record.c (set_record_insn_history_size)
611 (set_record_call_history_size): Constify.
612 * record-full.c (set_record_full_insn_max_num): Constify.
613 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
614 * osabi.c (set_osabi): Constify.
615 * mips-tdep.c (set_mips64_transfers_32bit_regs)
616 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
617 * maint.c (maintenance_set_profile_cmd): Constify.
618 * linux-thread-db.c (set_libthread_db_search_path): Constify.
619 * language.c (set_language_command, set_range_command)
620 (set_case_command): Constify.
621 * infrun.c (set_non_stop, set_observer_mode)
622 (set_stop_on_solib_events, set_schedlock_func)
623 (set_exec_direction_func): Constify.
624 * infcmd.c (set_inferior_tty_command): Constify.
625 * disasm.c (set_disassembler_options_sfunc): Constify.
626 * demangle.c (set_demangling_command): Constify.
627 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
628 * cris-tdep.c (set_cris_version, set_cris_mode)
629 (set_cris_dwarf2_cfi): Constify.
630 * corefile.c (set_gnutarget_command): Constify.
631 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
632 (set_target_wide_charset_sfunc): Constify.
633 * breakpoint.c (update_dprintf_commands): Constify.
634 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
635 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
636 (set_disassembly_style_sfunc): Constify.
637 * arch-utils.c (set_endian, set_architecture): Constify.
638 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
639 * agent.c (set_can_use_agent): Constify.
640
5fed81ff
TT
6412017-11-07 Tom Tromey <tom@tromey.com>
642
643 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
644 (go32_pde, go32_pte, go32_pte_for_address): Constify.
645 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
646 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
647 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
648 (parse_int_arg, show_thread_default_detach_sc_cmd)
649 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
650 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
651 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
652 (show_task_pause_cmd, set_task_detach_sc_cmd)
653 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
654 (set_noninvasive_cmd, set_thread_pause_cmd)
655 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
656 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
657 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
658 * windows-nat.c (display_selectors): Constify.
659 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
660 non-const "cfunc".
661 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
662 (cmd_cfunc_eq): Likewise.
663 (struct cmd_list_element): Likewise.
664 (do_cfunc): Remove.
665 (cli_user_command_p): Update.
666 * command.h (add_cmd): Remove non-const overload.
667 (cmd_cfunc_ftype): Remove typedef.
668 (cmd_cfunc_eq): Remove non-const overload.
669 * value.c (show_values): Constify.
670 * thread.c (thread_apply_all_command): Constify.
671 * symfile.c (load_command): Constify.
672 * source.c (directory_command): Constify.
673 * maint.c (maintenance_internal_error)
674 (maintenance_demangler_warning, maintenance_space_display)
675 (maintenance_print_architecture, maintenance_translate_address)
676 (maintenance_info_selftests, maintenance_internal_warning):
677 Constify.
678 * breakpoint.c (disable_trace_command, enable_trace_command):
679 Constify.
680 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
681 Constify.
682 (add_auto_load_safe_path): Constify.
683 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
684 * top.h (show_commands): Constify.
685 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
686 * sparc64-tdep.c (adi_examine_command): Constify.
687 (adi_assign_command): Constify.
688
1d12d88f
TT
6892017-11-07 Tom Tromey <tom@tromey.com>
690
691 * frame.h (info_locals_command, info_args_command): Constify.
692 * auto-load.h (auto_load_info_scripts): Constify.
693 * inferior.h (registers_info): Constify.
694 * copying.c: Rebuild.
695 * copying.awk: Constify generated commands.
696 * auto-load.c (auto_load_info_scripts)
697 (info_auto_load_gdb_scripts): Constify.
698 * cli/cli-decode.c (struct cmd_list_element): Take a
699 cmd_const_cfunc_ftype.
700 * command.h (add_info): Take a cmd_const_cfunc_ftype.
701 * tui/tui-win.c (tui_all_windows_info): Constify.
702 * python/py-auto-load.c (info_auto_load_python_scripts):
703 Constify.
704 * cli/cli-cmds.c (show_command): Remove non-const overload.
705 * tracepoint.c (info_tvariables_command, info_scope_command):
706 Constify.
707 (info_static_tracepoint_markers_command): Constify.
708 * thread.c (info_threads_command): Constify.
709 (print_thread_info_1): Constify.
710 * target.c (info_target_command): Constify.
711 * symtab.c (info_sources_command, info_functions_command)
712 (info_types_command): Constify.
713 (info_variables_command): Remove non-const overload.
714 * symfile.c (info_ext_lang_command): Constify.
715 * stack.c (info_frame_command, info_locals_command)
716 (info_args_command): Constify.
717 (backtrace_command): Remove non-const overload.
718 * source.c (info_source_command, info_line_command): Constify.
719 * solib.c (info_sharedlibrary_command): Constify.
720 * skip.c (info_skip_command): Constify.
721 * ser-go32.c (info_serial_command): Constify.
722 * reverse.c (info_bookmarks_command): Constify.
723 * printcmd.c (info_symbol_command, info_address_command)
724 (info_display_command): Constify.
725 * osdata.c (info_osdata_command): Constify.
726 * objc-lang.c (info_selectors_command, info_classes_command):
727 Constify.
728 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
729 * memattr.c (info_mem_command): Constify.
730 * macrocmd.c (info_macro_command, info_macros_command): Constify.
731 * linux-fork.c (info_checkpoints_command): Constify.
732 * infrun.c (info_signals_command): Constify.
733 * inflow.c (info_terminal_command): Constify.
734 * inferior.c (info_inferiors_command): Constify.
735 (print_inferior): Constify.
736 * infcmd.c (info_program_command, info_all_registers_command)
737 (info_registers_command, info_vector_command)
738 (info_float_command): Constify.
739 (registers_info): Constify.
740 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
741 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
742 Constify.
743 * f-valprint.c (info_common_command): Constify.
744 * dcache.c (info_dcache_command): Constify.
745 (dcache_info_1): Constify.
746 * darwin-nat-info.c (info_mach_tasks_command)
747 (info_mach_task_command, info_mach_ports_command)
748 (info_mach_port_command, info_mach_threads_command)
749 (info_mach_thread_command, info_mach_regions_command)
750 (info_mach_regions_recurse_command, info_mach_region_command)
751 (info_mach_exceptions_command): Constify.
752 (get_task_from_args): Constify.
753 * cp-support.c (info_vtbl_command): Constify.
754 * breakpoint.c (info_watchpoints_command)
755 (info_tracepoints_command): Constify.
756 (info_breakpoints_command): Remove non-const overload.
757 * avr-tdep.c (avr_io_reg_read_command): Constify.
758 * auxv.c (info_auxv_command): Constify.
759 * ada-tasks.c (info_tasks_command): Constify.
760 (info_task): Constify.
761 * ada-lang.c (info_exceptions_command): Constify.
762
0b39b52e
TT
7632017-11-07 Tom Tromey <tom@tromey.com>
764
765 * solib.h (no_shared_libraries): Constify.
766 * frame.h (return_command): Constify.
767 * cli/cli-cmds.h (quit_command): Constify.
768 * top.h (quit_command, execute_command): Constify.
769 * target.h (flash_erase_command): Constify.
770 * inferior.h (set_inferior_args, attach_command): Constify.
771 * tracepoint.h (start_tracing, stop_tracing): Constify.
772 * breakpoint.h (break_command, tbreak_command)
773 (hbreak_command_wrapper, thbreak_command_wrapper)
774 (rbreak_command_wrapper, watch_command_wrapper)
775 (awatch_command_wrapper, rwatch_command_wrapper)
776 (get_tracepoint_by_number): Constify.
777 * symtab.c (info_variables_command, rbreak_command)
778 (symtab_symbol_info): Constify.
779 (info_variables_command): Add non-const overload.
780 * top.c (dont_repeat_command): Constify.
781 * breakpoint.c (ignore_command, commands_command)
782 (condition_command, tbreak_command, hbreak_command)
783 (thbreak_command, clear_command, break_command)
784 (info_breakpoints_command, watch_command, rwatch_command)
785 (awatch_command, trace_command, ftrace_command, strace_command)
786 (trace_pass_command, break_range_command, dprintf_command)
787 (agent_printf_command, get_tracepoint_by_number)
788 (watch_maybe_just_location, trace_pass_command): Constify.
789 (info_breakpoints_command): Add non-const overload.
790 * tracefile.c (tsave_command): Constify.
791 * infcmd.c (attach_command, disconnect_command, signal_command)
792 (queue_signal_command, stepi_command, nexti_command)
793 (finish_command, next_command, step_command, until_command)
794 (advance_command, jump_command, continue_command, run_command)
795 (start_command, starti_command, interrupt_command)
796 (run_command_1, set_inferior_args, step_1): Constify.
797 * inferior.c (add_inferior_command, remove_inferior_command)
798 (clone_inferior_command): Constify.
799 * linux-fork.c (checkpoint_command, restart_command): Constify.
800 * windows-nat.c (signal_event_command): Constify.
801 * guile/guile.c (guile_repl_command, guile_command): Constify.
802 * printcmd.c (x_command, display_command, printf_command)
803 (output_command, set_command, call_command, print_command)
804 (eval_command): Constify.
805 (non_const_set_command): Remove.
806 (_initialize_printcmd): Update.
807 * source.c (forward_search_command, reverse_search_command):
808 Constify.
809 * jit.c (jit_reader_load_command, jit_reader_unload_command):
810 Constify.
811 * infrun.c (handle_command): Constify.
812 * memattr.c (mem_command): Constify.
813 * stack.c (return_command, up_command, up_silently_command)
814 (down_command, down_silently_command, frame_command)
815 (backtrace_command, func_command, backtrace_command_1): Constify.
816 (backtrace_command): Add non-const overload.
817 * remote-sim.c (simulator_command): Constify.
818 * exec.c (set_section_command): Constify.
819 * tracepoint.c (tdump_command, trace_variable_command)
820 (tstatus_command, tstop_command, tstart_command)
821 (end_actions_pseudocommand, while_stepping_pseudocommand)
822 (collect_pseudocommand, teval_pseudocommand, actions_command)
823 (start_tracing, stop_tracing): Constify.
824 * value.c (init_if_undefined_command): Constify.
825 * tui/tui-stack.c (tui_update_command): Constify.
826 * tui/tui-win.c (tui_refresh_all_command)
827 (tui_set_tab_width_command, tui_set_win_height_command)
828 (tui_set_focus_command, tui_scroll_forward_command)
829 (tui_scroll_backward_command, tui_scroll_left_command)
830 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
831 (tui_set_win_height): Constify.
832 * tui/tui-layout.c (tui_layout_command): Constify.
833 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
834 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
835 (proc_untrace_sysexit_cmd): Constify.
836 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
837 (threadset_test_cmd, threadlist_update_test_cmd)
838 (threadalive_test): Constify.
839 * objc-lang.c (print_object_command): Constify.
840 * command.h (add_com): Constify.
841 * cli/cli-dump.c (restore_command): Constify.
842 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
843 (help_command, complete_command, shell_command, edit_command)
844 (list_command, disassemble_command, make_command)
845 (apropos_command, alias_command): Constify.
846 * cli/cli-script.c (document_command, define_command)
847 (while_command, if_command, validate_comname): Constify.
848 * cli/cli-decode.c (struct cmd_list_element): Change type of
849 "fun".
850 * target.c (do_monitor_command, flash_erase_command): Constify.
851 * regcache.c (reg_flush_command): Constify.
852 * reverse.c (reverse_step, reverse_next, reverse_stepi)
853 (reverse_nexti, reverse_continue, reverse_finish)
854 (save_bookmark_command, goto_bookmark_command)
855 (exec_reverse_once): Constify.
856 * python/python.c (python_interactive_command, python_command):
857 Constify.
858 * typeprint.c (ptype_command, whatis_command, whatis_exp):
859 Constify.
860 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
861 * gcore.c (gcore_command): Constify.
862
85c4be7c
TT
8632017-11-07 Tom Tromey <tom@tromey.com>
864
865 * printcmd.c (x_command): Call set_repeat_arguments.
866 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
867 * top.c (repeat_arguments): New global.
868 (set_repeat_arguments): New function.
869 (execute_command): Handle repeat_arguments.
870 (show_commands): Calls set_repeat_arguments.
871 * command.h (set_repeat_arguments): Declare.
872
022643b4
TT
8732017-11-07 Tom Tromey <tom@tromey.com>
874
875 * stack.c (backtrace_command): Use std::string.
876 (backtrace_command_1): Make "count_exp" const.
877
5614fb77
TT
8782017-11-07 Tom Tromey <tom@tromey.com>
879
880 * source.c (directory_switch, mod_path, add_path): Constify.
881 * defs.h (add_path, mod_path, directory_switch): Constify.
882 * mi/mi-cmd-env.c (env_mod_path): Constify.
883
6be9a197
TT
8842017-11-07 Tom Tromey <tom@tromey.com>
885
886 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
887 (run_command_1, continue_command, step_1, jump_command)
888 (signal_command, until_command, advance_command, finish_command)
889 (attach_command): Update.
890
c2252c0d
TT
8912017-11-07 Tom Tromey <tom@tromey.com>
892
893 * command.h (set_cmd_cfunc): Don't declare.
894 * cli/cli-decode.c (set_cmd_cfunc): Now static.
895
1ee870c5
TT
8962017-11-07 Tom Tromey <tom@tromey.com>
897
898 * stack.c (select_frame_command): Constify.
899 * cli/cli-decode.c (add_com_suppress_notification): Constify.
900 * command.h (add_com_suppress_notification): Constify.
901
ee7ddd71
TT
9022017-11-07 Tom Tromey <tom@tromey.com>
903
904 * breakpoint.c (stop_command): Constify.
905 * cli/cli-decode.c (struct cmd_list_element): Constify.
906 * command.h (add_abbrev_prefix_cmd): Constify.
907
95e95a6d
PA
9082017-11-07 Pedro Alves <palves@redhat.com>
909
910 * breakpoint.c (extract_bp_kind): New enum.
911 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
912 factored out from ...
913 (extract_bp_number_and_location): ... here.
914 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
915
cc638e86
PA
9162017-11-07 Pedro Alves <palves@redhat.com>
917
918 * breakpoint.c (extract_bp_number_and_location): Change return
919 type to void. Throw error instead of warning.
920 (enable_disable_command): Adjust.
921
d0fe4701
XR
9222017-11-07 Xavier Roirand <roirand@adacore.com>
923 Pedro Alves <palves@redhat.com>
924
925 * breakpoint.c (map_breakpoint_number_range): New, factored out
926 from ...
927 (map_breakpoint_numbers): ... here.
928 (find_location_by_number): Change parameters from string to
929 breakpoint number and location.
930 (extract_bp_number_and_location): New function.
931 (enable_disable_bp_num_loc)
932 (enable_disable_breakpoint_location_range)
933 (enable_disable_command): New functions, factored out ...
934 (enable_command, disable_command): ... these functions, and
935 adjusted to support ranges.
936 * NEWS: Document enable/disable breakpoint location range feature.
937
635dc5b2
LM
9382017-11-06 Luis Machado <luis.machado@linaro.org>
939
940 * MAINTAINERS (Write After Approval): Update my e-mail address.
941
556e5da5
PA
9422017-11-06 Pedro Alves <palves@redhat.com>
943
944 * gnu-nat.c (gnu_terminal_init): Delete.
945 (gnu_target): Don't install gnu_terminal_init.
946 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
947 (child_terminal_init): ... this function.
948
d1928160
PA
9492017-11-06 Pedro Alves <palves@redhat.com>
950
951 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
952 sgtty.h.
953 * config.in, configure: Regenerate.
954
6aa899ce
PA
9552017-11-06 Pedro Alves <palves@redhat.com>
956
957 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
958 (async_init_signals): Adjust.
959 (handle_stop_sig): Rename to ...
960 (handle_sigtstp): ... this.
961 (async_stop_sig): Rename to ...
962 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
963 SIGTSTP path.
964 * event-top.h: Move signal.h include to the top. Check SIGTSTP
965 instead of STOP_SIGNAL thoughout.
966 (handle_stop_sig): Rename to ...
967 (handle_sigtstp): ... this.
968 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
969
a94799ac
PA
9702017-11-06 Pedro Alves <palves@redhat.com>
971
972 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
973 longer set flags twice in row.
974
726e1356
PA
9752017-11-06 Pedro Alves <palves@redhat.com>
976
977 * Makefile.in (SER_HARDWIRE): Update comment.
978 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
979 * common/gdb_termios.h: Delete file.
980 * common/job-control.c: Include termios.h and unistd.h instead of
981 gdb_termios.h.
982 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
983 check.
984 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
985 Remove sgtty code.
986 * configure.ac: No longer check for termio.h and sgtty.h.
987 * configure: Regenerate.
988 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
989 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
990 Replace PROCESS_GROUP_TYPE references with pid_t references
991 throughout.
992 (gdb_getpgrp): Delete.
993 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
994 (child_terminal_inferior): Remove comment. Remove sgtty code.
995 (child_terminal_ours_1): Use tcgetpgrp directly instead of
996 gdb_getpgrp. Use serial_set_tty_state instead aof
997 serial_noflush_set_tty_state. Remove sgtty code.
998 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
999 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
1000 (inferior_process_group): Now returns pid_t.
1001 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
1002 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
1003 * ser-event.c (serial_event_ops): Update.
1004 * ser-go32.c (dos_noflush_set_tty_state): Delete.
1005 (dos_ops): Update.
1006 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
1007 * ser-pipe.c (pipe_ops): Update.
1008 * ser-tcp.c (tcp_ops): Update.
1009 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
1010 HAVE_TERMIOS checks.
1011 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
1012 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
1013 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
1014 assume termios.
1015 (hardwire_noflush_set_tty_state): Delete.
1016 (hardwire_print_tty_state, hardwire_drain_output)
1017 (hardwire_flush_output, hardwire_flush_input)
1018 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
1019 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
1020 code, and assume termios.
1021 (hardwire_ops): Update.
1022 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
1023 * serial.c (serial_noflush_set_tty_state): Delete.
1024 * serial.h (serial_noflush_set_tty_state): Delete.
1025 (serial_ops::noflush_set_tty_state): Delete.
1026
1cfb73db
UW
10272017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1028
1029 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
1030 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
1031 (COMMON_OBS): Remove doublest.o and dfp.o.
1032 Do not build target-float.c (instead of doublest.c)
1033 with -Wformat-nonliteral.
1034
1035 * doublest.c: Remove file.
1036 * doublest.h: Remove file.
1037 * dfp.c: Remove file.
1038 * dfp.h: Remove file.
1039
1040 * target-float.c: Do not include "doublest.h" and "dfp.h".
1041 (DOUBLEST): Move here from doublest.h.
1042 (enum float_kind): Likewise.
1043 (FLOATFORMAT_CHAR_BIT): Likewise.
1044 (FLOATFORMAT_LARGEST_BYTES): Likewise.
1045 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
1046 (floatformat_precision): Likewise.
1047 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
1048 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
1049 Likewise.
1050 (host_float_format, host_double_format, host_long_double_format):
1051 Likewise.
1052 (floatformat_to_string, floatformat_from_string): Likewise.
1053 (floatformat_to_doublest): Likewise. Also, inline the original
1054 convert_floatformat_to_doublest.
1055 (floatformat_from_doublest): Likewise. Also, inline the original
1056 convert_floatformat_from_doublest.
1057
1058 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
1059 (MAX_DECIMAL_STRING): Move here from dfp.c.
1060 (match_endianness): Likewise.
1061 (set_decnumber_context, decimal_check_errors): Likewise.
1062 (decimal_from_number, decimal_to_number): Likewise.
1063 (decimal_to_string, decimal_from_string): Likewise. Make static.
1064 (decimal_from_longest, decimal_from_ulongest): Likewise.
1065 (decimal_to_longest): Likewise.
1066 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
1067 (decimal_convert): Likewise.
1068
b07e9c46
UW
10692017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1070
1071 * doublest.c: Do not include "gdbtypes.h".
1072 (extract_typed_floating): Remove.
1073 (store_typed_floating): Remove.
1074 (convert_typed_floating): Remove.
1075 * doublest.h (struct type): Remove.
1076 (DOUBLEST_PRINT_FORMAT): Remove.
1077 (DOUBLEST_SCAN_FORMAT): Remove.
1078 (extract_typed_floating): Remove.
1079 (store_typed_floating): Remove.
1080 (convert_typed_floating): Remove.
1081
1082 * dfp.c (decimal_from_doublest): Remove.
1083 (decimal_to_doublest): Remove.
1084 * dfp.h: Do not include "doublest.h".
1085 (decimal_from_doublest): Remove.
1086 (decimal_to_doublest): Remove.
1087
1088 * value.c: Do not include "doublest.h" and "dfp.h".
1089 (value_as_double): Remove.
1090 (unpack_double): Remove.
1091 (value_from_double): Remove.
1092 (value_from_decfloat): Remove.
1093 * value.h: Do not include "doublest.h".
1094 (value_as_double): Remove.
1095 (unpack_double): Remove.
1096 (value_from_double): Remove.
1097 (value_from_decfloat): Remove.
1098
3b2ca824
UW
10992017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1100
1101 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
1102 (i386_extract_return_value): Use target_float_convert.
1103 (i386_store_return_value): Likewise.
1104 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
1105 (i387_value_to_register): Likewise.
1106 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
1107 (ia64_register_to_value): Use target_float_convert.
1108 (ia64_value_to_register): Likewise.
1109 (ia64_extract_return_value): Likewise.
1110 (ia64_store_return_value): Likewise.
1111 (ia64_push_dummy_call): Likewise.
1112 * m68k-tdep.c: Include "target-float.h".
1113 (m68k_register_to_value): Use target_float_convert.
1114 (m68k_value_to_register): Likewise.
1115 (m68k_svr4_extract_return_value): Likewise.
1116 (m68k_svr4_store_return_value): Likewise.
1117 * ppc-sysv-tdep.c: Include "target-float.h".
1118 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
1119 (do_ppc_sysv_return_value): Likewise.
1120 (ppc64_sysv_abi_push_freg): Likewise.
1121 (ppc64_sysv_abi_return_value_base): Likewise.
1122 * rs6000-aix-tdep.c: Include "target-float.h".
1123 (rs6000_push_dummy_call): Use target_float_convert.
1124 (rs6000_return_value): Likewise.
1125 * rs6000-lynx178-tdep.c: Include "target-float.h".
1126 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
1127 (rs6000_lynx178_return_value): Likewise.
1128 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
1129 (rs6000_register_to_value): Use target_float_convert.
1130 (rs6000_value_to_register): Likewise.
1131 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
1132 (arm_extract_return_value): Use target_float_convert.
1133 (arm_store_return_value): Likewise.
1134 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
1135 (sh_register_convert_to_virtual): Use target_float_convert.
1136 (sh_register_convert_to_raw): Likewise.
1137 * sh64-tdep.c: Include "target-float.h".
1138 (sh64_extract_return_value): Use target_float_convert.
1139 (sh64_register_convert_to_virtual): Likewise.
1140 (sh64_register_convert_to_raw): Likewise. Fix argument types.
1141
14ad9311
UW
11422017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1143
1144 * target-float.c (floatformat_to_host_double): New function.
1145 (floatformat_from_host_double): Likewise.
1146 (target_float_to_host_double): Likewise.
1147 (target_float_from_host_double): Likewise.
1148 * target-float.h (target_float_to_host_double): Add prototype.
1149 (target_float_from_host_double): Likewise.
1150
1151 * guile/scm-value.c: Include "target-float.h".
1152 (gdbscm_value_to_real): Use target_float_to_host_double.
1153 Handle integer source values via value_as_long.
1154 * guile/scm-math.c: Include "target-float.h". Do not include
1155 "doublest.h", "dfp.h", and "expression.h".
1156 (vlscm_convert_typed_number): Use target_float_from_host_double.
1157 (vlscm_convert_number): Likewise.
1158
1159 * python/py-value.c (valpy_float): Use target_float_to_host_double.
1160 (convert_value_from_python): Use target_float_from_host_double.
1161
50eff16b
UW
11622017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1163
1164 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
1165 (cast_from_fixed): Likewise.
1166 (ada_scaling_type): New function.
1167 (ada_delta): Return value instead of DOUBLEST. Perform target
1168 arithmetic instead of host arithmetic.
1169 (scaling_factor): Rename to ...
1170 (ada_scaling_factor) ... this. Make non-static. Return value instead
1171 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
1172 (ada_fixed_to_float): Remove.
1173 (ada_float_to_fixed): Remove.
1174 * ada-lang.h (ada_fixed_to_float): Remove.
1175 (ada_float_to_fixed): Remove.
1176 (ada_delta): Return value instead of DOUBLEST.
1177 (ada_scaling_factor): Add prototype.
1178
1179 * ada-typeprint.c: Include "target-float.h".
1180 (print_fixed_point_type): Perform target arithmetic instead of
1181 host arithmetic.
1182 * ada-valprint.c: Include "target-float.h".
1183 (ada_val_print_num): Perform target arithmetic instead of
1184 host arithmetic for fixed-point types.
1185
66c02b9e
UW
11862017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1187
1188 * target-float.c: Include <math.h>.
1189 (floatformat_binop): New function.
1190 (floatformat_compare): Likewise.
1191 (target_float_binop): Likewise.
1192 (target_float_compare): Likewise.
1193 * target-float.h: Include "expression.h".
1194 (target_float_binop): Add prototype.
1195 (target_float_compare): Likewise.
1196
1197 * valarith.c: Do not include "doublest.h" and "dfp.h".
1198 Include "common/byte-vector.h".
1199 (value_args_as_decimal): Remove, replace by ...
1200 (value_args_as_target_float): ... this function. Handle both
1201 binary and decimal target floating-point formats.
1202 (scalar_binop): Handle both binary and decimal FP using
1203 value_args_as_target_float and target_float_binop.
1204 (value_equal): Handle both binary and decimal FP using
1205 value_args_as_target_float and target_float_compare.
1206 (value_less): Likewise.
1207 (value_pos): Handle all scalar types as simple copy.
1208 (value_neg): Handle all scalar types via BINOP_SUB from 0.
1209 * dfp.c (decimal_binop): Throw error instead of internal_error
1210 when called with an unsupported operation code.
1211
f69fdf9b
UW
12122017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1213
1214 * target-float.c (target_float_to_string): New function.
1215 (target_float_from_string): New function.
1216 * target-float.h (target_float_to_string): Add prototype.
1217 (target_float_from_string): Add prototype.
1218
1219 * valprint.c: Include "target-float.h". Do not include
1220 "doublest.h" and "dfp.h".
1221 (print_floating): Use target_float_to_string.
1222 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
1223 (printf_floating): Use target_float_to_string.
1224 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
1225 (print_i387_value): Use target_float_to_string.
1226 * mips-tdep.c: Include "target-float.h".
1227 (mips_print_fp_register): Use target_float_to_string.
1228 * sh64-tdep.c: Include "target-float.h".
1229 (sh64_do_fp_register): Use target_float_to_string.
1230
1231 * parse.c: Include "target-float.h". Do not include
1232 "doublest.h" and "dfp.h".
1233 (parse_float): Use target_float_from_string.
1234 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
1235 (define_symbol): Use target_float_from_string.
1236 * gdbarch-selftests.c: Include "target-float.h".
1237 (register_to_value_test): Use target_float_from_string.
1238
70100014
UW
12392017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1240
1241 * Makefile.c (SFILES): Add target-float.c.
1242 (HFILES_NO_SRCDIR): Add target-float.h.
1243 (COMMON_OBS): Add target-float.o.
1244 * target-float.h: New file.
1245 * target-float.c: New file.
1246
1247 * doublest.c (floatformat_classify): Fix detection of float_zero.
1248
1249 * gdbtypes.c (is_floating_type): New function.
1250 * gdbtypes.h (is_floating_type): Add prototype.
1251
1252 * value.c: Do not include "floatformat.h".
1253 (unpack_double): Use target_float_is_valid.
1254 (is_floating_value): New function.
1255 * value.h (is_floating_value): Add prototype-
1256
1257 * valarith.c: Include "target-float.h".
1258 (value_logical_not): Use target_float_is_zero.
1259
1260 * python/py-value.c: Include "target-float.h".
1261 (valpy_nonzero): Use target_float_is_zero.
1262
ab4b1c46
TT
12632017-11-04 Tom Tromey <tom@tromey.com>
1264
1265 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
1266
454dafbd
TT
12672017-11-04 Tom Tromey <tom@tromey.com>
1268
1269 * breakpoint.c (set_momentary_breakpoint): Return
1270 breakpoint_up.
1271 (until_break_command): Update.
1272 (new_until_break_fsm): Change argument types to
1273 breakpoint_up.
1274 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
1275 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
1276 Remove.
1277 * infcmd.c (finish_forward): Update.
1278 * breakpoint.h (set_momentary_breakpoint)
1279 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
1280 (make_cleanup_delete_breakpoint): Remove.
1281 (struct breakpoint_deleter): New.
1282 (breakpoint_up): New typedef.
1283 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
1284 (insert_exception_resume_breakpoint): Update.
1285 (insert_exception_resume_from_probe): Update.
1286 (insert_longjmp_resume_breakpoint): Update.
1287 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
1288 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
1289 * infcall.c (call_function_by_hand_dummy): Update
1290
331b71e5
TT
12912017-11-04 Tom Tromey <tom@tromey.com>
1292
1293 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
1294
9f584b37
TT
12952017-11-04 Tom Tromey <tom@tromey.com>
1296
1297 * linux-tdep.c (linux_core_info_proc_mappings): Use
1298 gdb::def_vector.
1299 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
1300 "size" argument.
1301 (linux_corefile_thread): Update.
1302 (linux_make_corefile_notes): Remove unused variable.
1303
779bc38e
TT
13042017-11-04 Tom Tromey <tom@tromey.com>
1305
1306 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
1307 gdb::byte_vector.
1308
ed2b3126
TT
13092017-11-04 Tom Tromey <tom@tromey.com>
1310
1311 * objfiles.c (do_free_objfile_cleanup): Remove.
1312 * compile/compile-object-load.c (compile_object_load): Update.
1313 * objfiles.h (make_cleanup_free_objfile): Remove.
1314
7f6743fd
TT
13152017-11-04 Tom Tromey <tom@tromey.com>
1316
1317 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
1318 (adi_read_versions): Change "tags" to "gdb_byte *".
1319 (adi_print_versions): Likewise.
1320
c80049d3
TT
13212017-11-04 Tom Tromey <tom@tromey.com>
1322
1323 * breakpoint.c
1324 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
1325 from start_rbreak_breakpoints.
1326 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
1327 * breakpoint.h (class scoped_rbreak_breakpoints): New.
1328 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
1329 * symtab.c (do_end_rbreak_breakpoints): Remove.
1330 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
1331
167b0be1
TT
13322017-11-04 Tom Tromey <tom@tromey.com>
1333
1334 * cp-namespace.c (reset_directive_searched): Remove.
1335 (cp_lookup_symbol_via_imports): Use scoped_restore.
1336 * cp-support.c (reset_directive_searched): Remove.
1337 (make_symbol_overload_list_using): Use scoped_restore.
1338 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
1339 (reset_directive_searched): Remove.
1340
5eae7aea
TT
13412017-11-04 Tom Tromey <tom@tromey.com>
1342
1343 * symfile.c (find_separate_debug_file_by_debuglink): Use
1344 unique_xmalloc_ptr.
1345
c6bcad5f
TT
13462017-11-04 Tom Tromey <tom@tromey.com>
1347
1348 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
1349 type of "info".
1350 (compute_stack_depth): Likewise.
1351 (do_compile_dwarf_expr_to_c): Use std::vector.
1352
20dcd8ca
TT
13532017-11-04 Tom Tromey <tom@tromey.com>
1354
1355 * compile/compile-object-load.c (link_callbacks_einfo): Use
1356 std::string.
1357
33c7c59d
TT
13582017-11-04 Tom Tromey <tom@tromey.com>
1359
1360 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
1361 Use scoped_free_pendings.
1362 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
1363 scoped_free_pendings.
1364 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
1365 (xcoff_initial_scan): Likewise.
1366 * buildsym.c (reset_symtab_globals): Update comment.
1367 (scoped_free_pendings): Rename from really_free_pendings.
1368 (prepare_for_building): Update comment.
1369 (buildsym_init): Likewise.
1370 * buildsym.h (class scoped_free_pendings): New class.
1371 (really_free_pendings): Don't declare.
1372
67fa57cf
UW
13732017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
1374
1375 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
1376 output when converting a zero value to a special byteorder format.
1377
f26ae15b
YQ
13782017-11-02 Yao Qi <yao.qi@linaro.org>
1379
1380 * frame.c (do_frame_register_read): Remove aspace.
1381 * jit.c (jit_frame_sniffer): Likwise.
1382 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
1383 * regcache.c (regcache::regcache): Pass nullptr.
1384 (regcache_print): Caller updated.
1385 * regcache.h (regcache::regcache): Remove one constructor
1386 parameter aspace.
1387
6c6e9412
YQ
13882017-11-02 Yao Qi <yao.qi@linaro.org>
1389
1390 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
1391
8b86c959
YQ
13922017-11-02 Yao Qi <yao.qi@linaro.org>
1393
1394 * breakpoint.c (insert_single_step_breakpoints): Update.
1395 * frame.c (struct frame_info) <aspace>: Add const.
1396 (frame_save_as_regcache): Add const.
1397 (get_frame_address_space): Return const address_space *.
1398 * frame.h (get_frame_address_space): Update declaration.
1399 * infrun.c (struct step_over_info) <aspace>: Add const.
1400 (set_step_over_info): Make aspace const.
1401 (displaced_step_prepare_throw): Change variable const.
1402 (resume): Likewise.
1403 (proceed): Likewise.
1404 (adjust_pc_after_break): Likewise.
1405 (save_waitstatus): Likewise.
1406 (handle_signal_stop): Likewise.
1407 (keep_going_pass_signal): Likewise.
1408 * jit.c (jit_frame_sniffer): Add const.
1409 * mips-tdep.c (mips_single_step_through_delay): Likewise.
1410 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
1411 * record-full.c (record_full_wait_1): Likewise.
1412 * regcache.c (regcache::regcache): Change parameter to const.
1413 * regcache.h (regcache::regcache): Likewise.
1414 (regcache::aspace): Return const address_space *.
1415 (regcache) <m_aspace>: Add const.
1416
a01bda52
YQ
14172017-11-02 Yao Qi <yao.qi@linaro.org>
1418
1419 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
1420 * frame.c (create_sentinel_frame): Likewise.
1421 * infrun.c (displaced_step_prepare_throw): Likewise.
1422 (resume): Likewise.
1423 (thread_still_needs_step_over_bp): Likewise.
1424 (proceed): Likewise.
1425 (do_target_wait): Likewise.
1426 (adjust_pc_after_break): Likewise.
1427 (handle_syscall_event): Likewise.
1428 (save_waitstatus): Likewise.
1429 (handle_inferior_event_1): Likewise.
1430 (handle_signal_stop): Likewise.
1431 (keep_going_pass_signal): Likewise.
1432 * linux-nat.c (status_callback): Likewise.
1433 (save_stop_reason): Likewise.
1434 (resume_stopped_resumed_lwps): Likewise.
1435 * record-full.c (record_full_exec_insn): Likewise.
1436 (record_full_wait_1): Likewise.
1437 * regcache.c (get_regcache_aspace): Remove.
1438 * regcache.h (get_regcache_aspace): Remove.
1439
d999647b
YQ
14402017-11-02 Yao Qi <yao.qi@linaro.org>
1441
1442 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
1443 (init_regcache_descr): Use gdbarch_num_regs.
1444 (regcache::regcache): Likewise.
1445 (regcache::get_register_status): Likewise.
1446 (regcache::assert_raw_regnum): Likewise.
1447 (regcache::cooked_read): Likewise.
1448 (regcache::cooked_read_value): Likewise.
1449 (regcache::cooked_write): Likewise.
1450 (regcache::dump): Likewise.
1451 (regcache::num_raw_registers): New method.
1452 * regcache.h (class regcache) <num_raw_registers>: New.
1453
4e888c28
YQ
14542017-11-02 Yao Qi <yao.qi@linaro.org>
1455
1456 * regcache.c (regcache::assert_regnum): New method.
1457 (regcache::invalidate): Call assert_regnum.
1458 (regcache::raw_update): Likewise.
1459 (regcache::raw_write): Likewise.
1460 (regcache::raw_read_part): Likewise.
1461 (regcache::raw_write_part): Likewise.
1462 (regcache::raw_supply): Likewise.
1463 (regcache::raw_supply_integer): Likewise.
1464 (regcache::raw_supply_zeroed): Likewise.
1465 (regcache::raw_collect): Likewise.
1466 (regcache::raw_collect_integer): Likewise.
1467 * regcache.h (regcache::assert_regnum): Declare.
1468
2e1b49b3
YQ
14692017-11-02 Yao Qi <yao.qi@linaro.org>
1470
1471 * regcache.c (regcache::dump): Remove code.
1472
6c5218df
YQ
14732017-11-02 Yao Qi <yao.qi@linaro.org>
1474
1475 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
1476 Remove.
1477 <sizeof_cooked_register_status>: Remove.
1478 (init_regcache_descr): Update.
1479 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
1480 (regcache::save): Likewise.
1481 (regcache::dump): Likewise.
1482
dcc31d28
JB
14832017-11-01 James Bowman <james.bowman@ftdichip.com>
1484
1485 * ft32-tdep.c (ft32_fetch_instruction): New function.
1486 (ft32_analyze_prologue): Use ft32_fetch_instruction().
1487
3a87ae65
SM
14882017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1489
1490 * cli/cli-script.c (execute_control_command): Rename to ...
1491 (execute_control_command_1): ... this.
1492 (execute_control_command): New function.
1493
09b847f3
SM
14942017-10-31 Simon Marchi <simon.marchi@ericsson.com>
1495
1496 * tracepoint.c (tfind_command): Remove const_cast.
1497
f871c485
MG
14982017-10-30 Mike Gulick <mgulick@mathworks.com>
1499
1500 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
1501
b020ff80
SM
15022017-10-30 Simon Marchi <simon.marchi@ericsson.com>
1503
1504 * common/common-utils.h (in_inclusive_range): New function.
1505 * arm-tdep.c (arm_record_extension_space): Use
1506 in_inclusive_range.
1507 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
1508 * cris-tdep.c (cris_spec_reg_applicable): Use
1509 in_inclusive_range.
1510
1b81856f
PA
15112017-10-30 Pedro Alves <palves@redhat.com>
1512 Simon Marchi <simon.marchi@ericsson.com>
1513
1514 * remote.c (remote_set_syscall_catchpoint): Build a std::string
1515 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
1516
31b833b3
PA
15172017-10-30 Pedro Alves <palves@redhat.com>
1518
1519 * common/common-utils.c (string_appendf, string_vappendf): New
1520 functions.
1521 * common/common-utils.h (string_appendf, string_vappendf): New
1522 declarations.
1523 * unittests/common-utils-selftests.c (string_appendf_func)
1524 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
1525 (string_vappendf_tests): New functions.
1526 (_initialize_common_utils_selftests): Register "string_appendf" and
1527 "string_vappendf tests".
1528
4a250334
PA
15292017-10-30 Pedro Alves <palves@redhat.com>
1530
1531 * unittests/common-utils-selftests.c (format_func): New typedef.
1532 (string_printf_tests, string_vprintf_tests): Tests factored out
1533 and merged to ...
1534 (test_format_func): ... this new function.
1535 (string_printf_tests, string_vprintf_tests): Reimplement on top of
1536 test_format_func.
1537
16c5c17e
SM
15382017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1539
1540 * darwin-nat.c: Remove include of gdb.h.
1541
7ca51576
SM
15422017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1543
1544 * xtensa-xtregs.c: Fix formatting issues.
1545
c1342859
SM
15462017-10-29 Simon Marchi <simon.marchi@ericsson.com>
1547
1548 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
1549
484d8d36
MD
15502017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
1551
1552 PR python/21213
1553 * python/py-infthread.c (thpy_get_inferior): Increment reference
1554 of inferior before returning it.
1555
b5540b5f
SM
15562017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1557
1558 * unittests/common-utils-selftests.c (format): Add
1559 ATTRIBUTE_PRINTF.
1560
5a9dcda1
SM
15612017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1562
1563 * xml-syscall.c (struct syscall_desc): Add constructor.
1564 <name>: Change type to std::string.
1565 (syscall_desc_up): New typedef.
1566 (syscall_desc_p): Remove typeder.
1567 (DEF_VEC_P(syscall_desc_p)): Remove.
1568 (struct syscall_group_desc): Add constructor.
1569 <name>: Change type to std::string.
1570 <syscalls>: Change type to std::vector.
1571 (syscall_group_desc_up): New typedef.
1572 (syscall_group_desc_p): Remove typedef.
1573 (DEF_VEC_P(syscall_group_desc_p)): Remove.
1574 (struct syscalls_info) <syscalls>: Change type to std::vector of
1575 unique_ptr.
1576 <groups>: Likewise.
1577 <my_gdb_datadir>: Change type to std::string.
1578 (syscalls_info_up): New typedef.
1579 (allocate_syscalls_info): Remove.
1580 (syscalls_info_free_syscalls_desc): Remove.
1581 (syscalls_info_free_syscall_group_desc): Remove.
1582 (free_syscalls_info): Remove.
1583 (make_cleanup_free_syscalls_info): Remove.
1584 (syscall_group_create_syscall_group_desc): Adjust.
1585 (syscall_group_add_syscall): Adjust.
1586 (syscall_create_syscall_desc): Adjust.
1587 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
1588 (init_syscalls_info): Adjust.
1589 (syscall_group_get_group_by_name): Adjust.
1590 (xml_get_syscall_number): Adjust.
1591 (xml_get_syscall_name): Adjust.
1592 (xml_list_of_syscalls): Adjust.
1593 (xml_list_syscalls_by_group): Adjust.
1594 (xml_list_of_groups): Adjust.
1595
45461e0d
SM
15962017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1597
1598 * probe.h: Don't include gdb_vecs.h.
1599 (DEF_VEC_P (probe_p)): Remove.
1600 (find_probes_in_objfile): Return an std::vector.
1601 * probe.c (find_probes_in_objfile): Likewise.
1602 * breakpoint.c (breakpoint_objfile_data)
1603 <longjmp_probes>: Change type to std::vector.
1604 <exception_probes>: Likewise.
1605 (free_breakpoint_probes): Don't manually free vectors.
1606 (create_longjmp_master_breakpoint): Adjust.
1607 (create_exception_master_breakpoint): Adjust.
1608 * solib-svr4.c (svr4_create_probe_breakpoints): Change
1609 parameter type, adjust.
1610 (svr4_create_solib_event_breakpoints): Adjust.
1611
43dce439
SM
16122017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1613
1614 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
1615 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
1616 with new.
1617 (free_breakpoint_probes): Rename to ...
1618 (free_breakpoint_objfile_data): ... this, and call delete on
1619 bp_objfile_data..
1620
6a1b9516
SM
16212017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1622
1623 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
1624 (loaded_script_ptr): Remove typedef.
1625 (DEF_VEC_P (loaded_script_ptr)): Remove.
1626 (struct collect_matching_scripts_data): Add constructor.
1627 <scripts_p>: Change type to (pointer to) std::vector.
1628 (collect_matching_scripts_data): Adjust.
1629 (sort_scripts_by_name): Make suitable for std::sort.
1630 (print_scripts): Don't sort vector, adjust to std::vector.
1631 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
1632
593e3209
SM
16332017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1634
1635 * symfile.c (filename_language): Make struct, not typedef. Add
1636 constructor.
1637 <ext>: Change type to std::string.
1638 (DEF_VEC_O (filename_language)): Remove.
1639 (filename_language_table): Change type to std::vector.
1640 (add_filename_language): Adjust.
1641 (set_ext_lang_command): Adjust.
1642 (info_ext_lang_command): Adjust.
1643 (deduce_language_from_filename): Adjust.
1644 (class scoped_restore_filename_language_table): Remove.
1645 (test_filename_language): Use scoped_restore.
1646 (test_set_ext_lang_command): Use scoped_restore, adjust to
1647 std::vector change.
1648
32fa66eb
SM
16492017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1650
1651 * symfile.c: Include selftest.h.
1652 (class scoped_restore_filename_language_table): New.
1653 (test_filename_language): New test.
1654 (test_set_ext_lang_command): New test.
1655 (_initialize_symfile): Register tests.
1656
4a27f119
KS
16572017-10-27 Keith Seitz <keiths@redhat.com>
1658
1659 * breakpoint.c (print_breakpoint_location): Use the symbol saved
1660 in the bp_location, falling back to find_pc_sect_function when
1661 needed.
1662 (add_location_to_breakpoint): Save sal->symbol.
1663 * breakpoint.h (struct bp_location) <symbol>: New field.
1664 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
1665 * symtab.h (struct symtab_and_line) <symbol>: New field.
1666
a43f3893
PF
16672017-10-26 Patrick Frants <osscontribute@gmail.com>
1668
7453e6b2 1669 PR gdb/13669
a43f3893
PF
1670 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
1671 to rewind obstack.
1672
23cc4e1b
PA
16732017-10-26 Pedro Alves <palves@redhat.com>
1674
1675 * remote.c (remote_async_terminal_ours_p): Delete.
1676 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
1677 Remove references to 'remote_async_terminal_ours_p'.
1678
6abc18bb
YQ
16792017-10-26 Yao Qi <yao.qi@linaro.org>
1680
1681 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
1682
bd522513
YQ
16832017-10-26 Yao Qi <yao.qi@linaro.org>
1684
1685 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
1686 aspace const.
1687 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
1688 Likewise.
1689 * breakpoint.c (bpstat_check_location): Remove cast.
1690 (breakpoint_hit_catch_fork): Make aspce const.
1691 (breakpoint_hit_catch_solib): Likewise.
1692 (breakpoint_hit_catch_exec): Likewise.
1693 (breakpoint_hit_ranged_breakpoint): Likewise.
1694 (breakpoint_hit_watchpoint): Likewise.
1695 (base_breakpoint_breakpoint_hit): Likewise.
1696 (bkpt_breakpoint_hit): Likewise.
1697 (dprintf_breakpoint_hit): Likewise.
1698 (tracepoint_breakpoint_hit): Likewise.
1699 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
1700
accd0bcd
YQ
17012017-10-26 Yao Qi <yao.qi@linaro.org>
1702
1703 * breakpoint.c (breakpoint_location_address_match): Change
1704 "struct address_space *" to "const address_space".
1705 (breakpoint_location_address_range_overlap): Likewise.
1706 (breakpoint_here_p): Likewise.
1707 (breakpoint_in_range_p): Likewise.
1708 (moribund_breakpoint_here_p): Likewise.
1709 (bp_location_inserted_here_p): Likewise.
1710 (software_breakpoint_inserted_here_p): Likewise.
1711 (hardware_breakpoint_inserted_here_p): Likewise.
1712 (hardware_watchpoint_inserted_in_range): Likewise.
1713 (bpstat_check_location): Likewise.
1714 (bpstat_stop_status): Likewise.
1715 (breakpoint_address_match): Likewise.
1716 (breakpoint_address_match_range): Likewise.
1717 (breakpoint_location_address_match): Likewise.
1718 (breakpoint_location_address_range_overlap): Likewise.
1719 (insert_single_step_breakpoint): Likewise.
1720 (breakpoint_has_location_inserted_here): Likewise.
1721 (single_step_breakpoint_inserted_here_p): Likewise.
1722 (pc_at_non_inline_function): Likewise.
1723 * breakpoint.h (bpstat_stop_status): Update declaration.
1724 (breakpoint_here_p): Likewise.
1725 (breakpoint_in_range_p): Likewise.
1726 (moribund_breakpoint_here_p): Likewise.
1727 (breakpoint_inserted_here_p): Likewise.
1728 (software_breakpoint_inserted_here_p): Likewise.
1729 (hardware_breakpoint_inserted_here_p): Likewise.
1730 (breakpoint_has_location_inserted_here): Likewise.
1731 (single_step_breakpoint_inserted_here_p): Likewise.
1732 (hardware_watchpoint_inserted_in_range): Likewise.
1733 (breakpoint_address_match): Likewise.
1734 (insert_single_step_breakpoint): Likewise.
1735 (pc_at_non_inline_function): Likewise.
1736 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
1737 * record.c (record_check_stopped_by_breakpoint): Likewise.
1738 * record.h (record_check_stopped_by_breakpoint): Likewise.
1739 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
1740
ac7936df
YQ
17412017-10-25 Yao Qi <yao.qi@linaro.org>
1742
1743 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
1744 regcache->arch () instead get_regcache_arch.
1745 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
1746 Likewise.
1747 (aarch64_fbsd_store_inferior_registers): Likewise.
1748 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
1749 (store_gregs_to_thread): Likewise.
1750 (fetch_fpregs_from_thread): Likewise.
1751 (store_fpregs_to_thread): Likewise.
1752 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
1753 (aarch64_store_return_value): Likewise.
1754 (aarch64_software_single_step): Likewise.
1755 * aix-thread.c (aix_thread_wait): Likewise.
1756 (supply_reg32): Likewise.
1757 (supply_sprs64): Likewise.
1758 (supply_sprs32): Likewise.
1759 (fill_gprs64): Likewise.
1760 (fill_gprs32): Likewise.
1761 (fill_sprs64): Likewise.
1762 (fill_sprs32): Likewise.
1763 (store_regs_user_thread): Likewise.
1764 (store_regs_kernel_thread): Likewise.
1765 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
1766 (alphabsd_store_inferior_registers): Likewise.
1767 * alpha-tdep.c (alpha_extract_return_value): Likewise.
1768 (alpha_store_return_value): Likewise.
1769 (alpha_deal_with_atomic_sequence): Likewise.
1770 (alpha_next_pc): Likewise.
1771 (alpha_software_single_step): Likewise.
1772 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
1773 (amd64bsd_store_inferior_registers): Likewise.
1774 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
1775 Likewise.
1776 (amd64_linux_store_inferior_registers): Likewise.
1777 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1778 (amd64_collect_native_gregset): Likewise.
1779 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
1780 (amd64obsd_collect_uthread): Likewise.
1781 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
1782 (amd64_collect_fpregset): Likewise.
1783 (amd64_supply_fxsave): Likewise.
1784 (amd64_supply_xsave): Likewise.
1785 (amd64_collect_fxsave): Likewise.
1786 (amd64_collect_xsave): Likewise.
1787 * arc-tdep.c (arc_write_pc): Likewise.
1788 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
1789 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
1790 (arm_fbsd_store_inferior_registers): Likewise.
1791 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
1792 (store_vfp_regs): Likewise.
1793 (arm_linux_fetch_inferior_registers): Likewise.
1794 (arm_linux_store_inferior_registers): Likewise.
1795 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1796 (arm_linux_sigreturn_next_pc): Likewise.
1797 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
1798 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
1799 (fetch_register): Likewise.
1800 (store_register): Likewise.
1801 * arm-tdep.c (arm_is_thumb): Likewise.
1802 (displaced_in_arm_mode): Likewise.
1803 (bx_write_pc): Likewise.
1804 (arm_get_next_pcs_addr_bits_remove): Likewise.
1805 (arm_software_single_step): Likewise.
1806 (arm_extract_return_value): Likewise.
1807 (arm_store_return_value): Likewise.
1808 (arm_write_pc): Likewise.
1809 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1810 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
1811 (bsd_uthread_store_registers): Likewise.
1812 * core-regset.c (fetch_core_registers): Likewise.
1813 * corelow.c (get_core_registers): Likewise.
1814 * cris-tdep.c (cris_store_return_value): Likewise.
1815 (cris_extract_return_value): Likewise.
1816 (find_step_target): Likewise.
1817 (find_step_target): Likewise.
1818 (cris_software_single_step): Likewise.
1819 * ctf.c (ctf_fetch_registers): Likewise.
1820 * darwin-nat.c (cancel_breakpoint): Likewise.
1821 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
1822 * frv-tdep.c (frv_extract_return_value): Likewise.
1823 * ft32-tdep.c (ft32_store_return_value): Likewise.
1824 (ft32_extract_return_value): Likewise.
1825 * go32-nat.c (fetch_register): Likewise.
1826 (go32_fetch_registers): Likewise.
1827 (go32_store_registers): Likewise.
1828 (store_register): Likewise.
1829 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1830 (h8300_store_return_value): Likewise.
1831 * hppa-linux-nat.c (fetch_register): Likewise.
1832 (store_register): Likewise.
1833 (hppa_linux_fetch_inferior_registers): Likewise.
1834 (hppa_linux_store_inferior_registers): Likewise.
1835 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
1836 (i386_darwin_store_inferior_registers): Likewise.
1837 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
1838 (gnu_store_registers): Likewise.
1839 * i386-linux-nat.c (fetch_register): Likewise.
1840 (store_register): Likewise.
1841 (supply_gregset): Likewise.
1842 (fill_gregset): Likewise.
1843 (i386_linux_fetch_inferior_registers): Likewise.
1844 (i386_linux_store_inferior_registers): Likewise.
1845 (i386_linux_resume): Likewise.
1846 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
1847 Likewise.
1848 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
1849 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
1850 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
1851 (i386obsd_collect_uthread): Likewise.
1852 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1853 (i386_supply_gregset): Likewise.
1854 (i386_collect_gregset): Likewise.
1855 (i386_supply_fpregset): Likewise.
1856 (i386_collect_fpregset): Likewise.
1857 (i386_mpx_bd_base): Likewise.
1858 * i386-v4-nat.c (supply_fpregset): Likewise.
1859 (fill_fpregset): Likewise.
1860 * i387-tdep.c (i387_supply_fsave): Likewise.
1861 (i387_collect_fsave): Likewise.
1862 (i387_supply_fxsave): Likewise.
1863 (i387_collect_fxsave): Likewise.
1864 (i387_supply_xsave): Likewise.
1865 (i387_collect_xsave): Likewise.
1866 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
1867 (ia64_linux_store_registers): Likewise.
1868 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
1869 (ia64_extract_return_value): Likewise.
1870 (ia64_store_return_value): Likewise.
1871 (find_func_descr): Likewise.
1872 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1873 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
1874 (inf_ptrace_store_registers): Likewise.
1875 * infrun.c (use_displaced_stepping): Likewise.
1876 (displaced_step_prepare_throw): Likewise.
1877 (resume): Likewise.
1878 (proceed): Likewise.
1879 (do_target_wait): Likewise.
1880 (adjust_pc_after_break): Likewise.
1881 (handle_inferior_event_1): Likewise.
1882 (handle_signal_stop): Likewise.
1883 (save_infcall_suspend_state): Likewise.
1884 (restore_infcall_suspend_state): Likewise.
1885 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
1886 * jit.c (jit_frame_prev_register): Likewise.
1887 * linux-nat.c (save_stop_reason): Likewise.
1888 (linux_nat_wait_1): Likewise.
1889 (resume_stopped_resumed_lwps): Likewise.
1890 * linux-record.c (record_linux_sockaddr): Likewise.
1891 (record_linux_msghdr): Likewise.
1892 (record_linux_system_call): Likewise.
1893 * linux-tdep.c (linux_collect_thread_registers): Likewise.
1894 * lm32-tdep.c (lm32_extract_return_value): Likewise.
1895 (lm32_store_return_value): Likewise.
1896 * m32c-tdep.c (m32c_read_flg): Likewise.
1897 (m32c_pseudo_register_read): Likewise.
1898 (m32c_pseudo_register_write): Likewise.
1899 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
1900 (m32r_linux_collect_gregset): Likewise.
1901 * m32r-tdep.c (m32r_store_return_value): Likewise.
1902 (m32r_extract_return_value): Likewise.
1903 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1904 (m68kbsd_collect_fpregset): Likewise.
1905 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1906 * m68k-linux-nat.c (fetch_register): Likewise.
1907 (old_fetch_inferior_registers): Likewise.
1908 (old_store_inferior_registers): Likewise.
1909 (store_regs): Likewise.
1910 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
1911 (m68k_svr4_store_return_value): Likewise.
1912 * m88k-tdep.c (m88k_store_arguments): Likewise.
1913 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
1914 (mi_cmd_data_write_register_values): Likewise.
1915 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
1916 (mips_fbsd_store_inferior_registers): Likewise.
1917 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
1918 (mips_fbsd_supply_gregs): Likewise.
1919 (mips_fbsd_collect_fpregs): Likewise.
1920 (mips_fbsd_collect_gregs): Likewise.
1921 (mips_fbsd_supply_fpregset): Likewise.
1922 (mips_fbsd_collect_fpregset): Likewise.
1923 (mips_fbsd_supply_gregset): Likewise.
1924 (mips_fbsd_collect_gregset): Likewise.
1925 * mips-linux-nat.c (supply_gregset): Likewise.
1926 (fill_gregset): Likewise.
1927 (supply_fpregset): Likewise.
1928 (fill_fpregset): Likewise.
1929 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
1930 (mips_fill_gregset): Likewise.
1931 (mips_supply_fpregset): Likewise.
1932 (mips_fill_fpregset): Likewise.
1933 (mips64_supply_gregset): Likewise.
1934 (micromips_linux_sigframe_validate): Likewise.
1935 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
1936 (mipsnbsd_fetch_inferior_registers): Likewise.
1937 (mipsnbsd_store_inferior_registers): Likewise.
1938 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1939 (mipsnbsd_supply_gregset): Likewise.
1940 (mipsnbsd_iterate_over_regset_sections): Likewise.
1941 (mipsnbsd_supply_reg): Likewise.
1942 (mipsnbsd_supply_fpreg): Likewise.
1943 * mips-tdep.c (mips_in_frame_stub): Likewise.
1944 (mips_dummy_id): Likewise.
1945 (is_octeon_bbit_op): Likewise.
1946 (micromips_bc1_pc): Likewise.
1947 (extended_mips16_next_pc): Likewise.
1948 (mips16_next_pc): Likewise.
1949 (deal_with_atomic_sequence): Likewise.
1950 * moxie-tdep.c (moxie_process_readu): Likewise.
1951 * nios2-tdep.c (nios2_get_next_pc): Likewise.
1952 * nto-procfs.c (procfs_store_registers): Likewise.
1953 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
1954 (ppcfbsd_store_inferior_registers): Likewise.
1955 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
1956 (fetch_altivec_register): Likewise.
1957 (get_spe_registers): Likewise.
1958 (fetch_spe_register): Likewise.
1959 (fetch_altivec_registers): Likewise.
1960 (fetch_all_gp_regs): Likewise.
1961 (fetch_all_fp_regs): Likewise.
1962 (store_vsx_register): Likewise.
1963 (store_altivec_register): Likewise.
1964 (set_spe_registers): Likewise.
1965 (store_spe_register): Likewise.
1966 (store_altivec_registers): Likewise.
1967 (store_all_gp_regs): Likewise.
1968 (store_all_fp_regs): Likewise.
1969 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1970 (ppc_linux_collect_gregset): Likewise.
1971 (ppc_canonicalize_syscall): Likewise.
1972 (ppc_linux_record_signal): Likewise.
1973 (ppu2spu_prev_register): Likewise.
1974 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1975 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
1976 (ppcobsd_store_registers): Likewise.
1977 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
1978 Likewise.
1979 (ppc_ravenscar_generic_store_registers): Likewise.
1980 * procfs.c (procfs_fetch_registers): Likewise.
1981 (procfs_store_registers): Likewise.
1982 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
1983 (ravenscar_store_registers): Likewise.
1984 (ravenscar_prepare_to_store): Likewise.
1985 * record-btrace.c (record_btrace_fetch_registers): Likewise.
1986 * record-full.c (record_full_wait_1): Likewise.
1987 (record_full_registers_change): Likewise.
1988 (record_full_store_registers): Likewise.
1989 (record_full_core_fetch_registers): Likewise.
1990 (record_full_save): Likewise.
1991 (record_full_goto_insn): Likewise.
1992 * regcache.c (regcache_register_size): Likewise.
1993 (get_regcache_arch): Remove.
1994 (regcache_read_pc): Likewise.
1995 * regcache.h (get_regcache_arch): Remove.
1996 * remote-sim.c (gdbsim_fetch_register): Likewise.
1997 (gdbsim_store_register): Likewise.
1998 * remote.c (fetch_register_using_p): Likewise.
1999 (send_g_packet): Likewise.
2000 (remote_prepare_to_store): Likewise.
2001 (store_registers_using_G): Likewise.
2002 * reverse.c (save_bookmark_command): Likewise.
2003 (goto_bookmark_command): Likewise.
2004 * rs6000-aix-tdep.c (branch_dest): Likewise.
2005 * rs6000-nat.c (rs6000_ptrace64): Likewise.
2006 (fetch_register): Likewise.
2007 * rs6000-tdep.c (ppc_supply_reg): Likewise.
2008 (ppc_collect_reg): Likewise.
2009 (ppc_collect_gregset): Likewise.
2010 (ppc_collect_fpregset): Likewise.
2011 (ppc_collect_vsxregset): Likewise.
2012 (ppc_collect_vrregset): Likewise.
2013 (ppc_displaced_step_hw_singlestep): Likewise.
2014 (rs6000_pseudo_register_read): Likewise.
2015 (rs6000_pseudo_register_write): Likewise.
2016 * s390-linux-nat.c (supply_gregset): Likewise.
2017 (fill_gregset): Likewise.
2018 (s390_linux_fetch_inferior_registers): Likewise.
2019 * s390-linux-tdep.c (s390_write_pc): Likewise.
2020 (s390_software_single_step): Likewise.
2021 (s390_all_but_pc_registers_record): Likewise.
2022 (s390_linux_syscall_record): Likewise.
2023 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
2024 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
2025 (shnbsd_store_inferior_registers): Likewise.
2026 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
2027 (sh_extract_return_value_fpu): Likewise.
2028 (sh_store_return_value_nofpu): Likewise.
2029 (sh_corefile_supply_regset): Likewise.
2030 (sh_corefile_collect_regset): Likewise.
2031 * sh64-tdep.c (sh64_extract_return_value): Likewise.
2032 (sh64_store_return_value): Likewise.
2033 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
2034 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
2035 (sparc_store_inferior_registers): Likewise.
2036 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
2037 (sparc_ravenscar_prepare_to_store): Likewise.
2038 * sparc-tdep.c (sparc32_store_arguments): Likewise.
2039 (sparc_analyze_control_transfer): Likewise.
2040 (sparc_step_trap): Likewise.
2041 (sparc_software_single_step): Likewise.
2042 (sparc32_gdbarch_init): Likewise.
2043 (sparc_supply_rwindow): Likewise.
2044 (sparc_collect_rwindow): Likewise.
2045 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
2046 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
2047 (sparc64nbsd_collect_gregset): Likewise.
2048 (sparc64nbsd_supply_fpregset): Likewise.
2049 (sparc64nbsd_collect_fpregset): Likewise.
2050 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
2051 (sparc64_supply_gregset): Likewise.
2052 (sparc64_collect_gregset): Likewise.
2053 (sparc64_supply_fpregset): Likewise.
2054 (sparc64_collect_fpregset): Likewise.
2055 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2056 * spu-tdep.c (spu_unwind_sp): Likewise.
2057 (spu2ppu_prev_register): Likewise.
2058 (spu_memory_remove_breakpoint): Likewise.
2059 * stack.c (return_command): Likewise.
2060 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
2061 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2062 * tracefile.c (trace_save_ctf): Likewise.
2063 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
2064 (do_windows_store_inferior_registers): Likewise.
2065 (windows_resume): Likewise.
2066 * xtensa-linux-nat.c (fill_gregset): Likewise.
2067 (supply_gregset_reg): Likewise.
2068 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
2069 (xtensa_register_read_masked): Likewise.
2070 (xtensa_supply_gregset): Likewise.
2071 (xtensa_extract_return_value): Likewise.
2072 (xtensa_store_return_value): Likewise.
2073
edd079d9
UW
20742017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
2075
2076 * doublest.c (floatformat_from_string): New function.
2077 * doublest.h (floatformat_from_string): Add prototype.
2078
2079 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
2080 (OP_FLOAT): ... this.
2081 * expression.h: Do not include "doublest.h".
2082 (union exp_element): Replace doubleconst and decfloatconst by
2083 new element floatconst.
2084 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
2085 (ada_evaluate_subexp): Likewise.
2086 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
2087 OP_DOUBLE and OP_DECFLOAT.
2088 * expprint.c (print_subexp_standard): Likewise.
2089 (dump_subexp_body_standard): Likewise.
2090 * breakpoint.c (watchpoint_exp_is_const): Likewise.
2091
2092 * parse.c: Include "dfp.h".
2093 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
2094 (write_exp_elt_floatcst): New function.
2095 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
2096 and OP_DECFLOAT.
2097 (operator_check_standard): Likewise.
2098 (parse_float): Do not accept suffix. Take type as input. Return bool.
2099 Return target format buffer instead of host DOUBLEST.
2100 Use floatformat_from_string and decimal_from_string to parse
2101 either binary or decimal floating-point types.
2102 (parse_c_float): Remove.
2103 * parser-defs.h: Do not include "doublest.h".
2104 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
2105 (write_exp_elt_floatcst): Add prototype.
2106 (parse_float): Update prototype.
2107 (parse_c_float): Remove.
2108
2109 * c-exp.y: Do not include "dfp.h".
2110 (typed_val_float): Use byte buffer instead of DOUBLEST.
2111 (typed_val_decfloat): Remove.
2112 (DECFLOAT): Remove.
2113 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2114 (parse_number): Update to new parse_float interface.
2115 Parse suffixes and determine type before calling parse_float.
2116 Handle decimal and binary FP types the same way.
2117
2118 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2119 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
2120 (parse_number): Update to new parse_float interface.
2121 Parse suffixes and determine type before calling parse_float.
2122
2123 * f-exp.y: Replace dval by typed_val_float.
2124 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2125 (parse_number): Use parse_float instead of atof.
2126
2127 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2128 (parse_go_float): Remove.
2129 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2130 (parse_number): Call parse_float instead of parse_go_float.
2131 Parse suffixes and determine type before calling parse_float.
2132
2133 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2134 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2135 (parse_number): Update to new parse_float interface.
2136 Parse suffixes and determine type before calling parse_float.
2137
2138 * m2-exp.y: Replace dval by byte buffer val.
2139 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2140 (parse_number): Call parse_float instead of atof.
2141
2142 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2143 (lex_number): Call parse_float instead of strtod.
2144 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
2145 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
2146 Use write_exp_elt_floatcst.
2147 (unit_testing): Remove static variable.
2148 (rust_type): Do not check unit_testing.
2149 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
2150
2151 * ada-exp.y (type_float, type_double): Remove.
2152 (typed_val_float): Use byte buffer instead of DOUBLEST.
2153 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2154 * ada-lex.l (processReal): Use parse_float instead of sscanf.
2155
cc628f3d
AH
21562017-10-25 Alan Hayward <alan.hayward@arm.com>
2157
2158 * aarch64-tdep.h (enum aarch64_regnum): Remove.
2159 * arch/aarch64.h: New file.
2160
09a7c6aa
UW
21612017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2162
2163 * dfp.h (decimal_from_string): Use const reference for argument.
2164 * dfp.c (decimal_from_string): Likewise.
2165
8ba0dd51
UW
21662017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2167
2168 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
2169 * sh64-tdep.c (sh64_do_fp_register): Likewise.
2170 * mips-tdep.c (mips_print_fp_register): Likewise.
2171
16e812b2
UW
21722017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2173
2174 * common/format.h (enum argclass): Replace decfloat_arg by
2175 dec32float_arg, dec64float_arg, and dec128float_arg.
2176 * common/format.c (parse_format_string): Update to return
2177 new decimal float argument classes.
2178
2179 * printcmd.c (printf_decfloat): Rename to ...
2180 (printf_floating): ... this. Add argclass argument, and use it
2181 instead of parsing the format string again. Add support for
2182 binary floating-point values, using floatformat_to_string.
2183 Convert value to the target format if it doesn't already match.
2184 (ui_printf): Call printf_floating instead of printf_decfloat,
2185 also for double_arg / long_double_arg. Pass argclass.
2186
2187 * dfp.c (decimal_to_string): Add format string argument.
2188 * dfp.h (decimal_to_string): Likewise.
2189
2190 * doublest.c (floatformat_to_string): Add format string argument.
2191 * doublest.h (floatformat_to_string): Likewise.
2192
fdf0cbc2
UW
21932017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2194
2195 * doublest.c (floatformat_precision): New routine.
2196 (floatformat_to_string): Likewise.
2197 * doublest.c (floatformat_to_string): Add prototype.
2198
2199 * printcmd.c (print_scalar_formatted): Only call print_floating
2200 on floating-point types.
2201 * valprint.c: Do not include "floatformat.h".
2202 (generic_val_print_decfloat): Remove.
2203 (generic_val_print): Call generic_val_print_float for both
2204 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
2205 (print_floating): Use floatformat_to_string. Handle decimal float.
2206 (print_decimal_floating): Remove, merge into floatformat_to_string.
2207 * value.h (print_decimal_floating): Remove.
2208
2209 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
2210
5033013f
UW
22112017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2212
2213 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
2214
a664f67e
SM
22152017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2216
2217 * memattr.h: Don't include vec.h.
2218 (struct mem_attrib): Initialize fields.
2219 <unknown>: New static method.
2220 (struct mem_region): Add constructors, operator<, initialize
2221 fields.
2222 * memattr.c: Include algorithm.
2223 (default_mem_attrib, unknown_mem_attrib): Remove.
2224 (user_mem_region_list): New global.
2225 (target_mem_region_list, mem_region_list): Change type to
2226 std::vector<mem_region>.
2227 (mem_use_target): Now a function.
2228 (target_mem_regions_valid): Change type to bool.
2229 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
2230 (require_user_regions): Adjust.
2231 (require_target_regions): Adjust.
2232 (create_mem_region): Adjust.
2233 (lookup_mem_region): Adjust.
2234 (invalidate_target_mem_regions): Adjust.
2235 (mem_clear): Rename to...
2236 (user_mem_clear): ... this, and adjust.
2237 (mem_command): Adjust.
2238 (info_mem_command): Adjust.
2239 (mem_enable, enable_mem_command, mem_disable,
2240 disable_mem_command): Adjust.
2241 (mem_delete): Adjust.
2242 (delete_mem_command): Adjust.
2243 * memory-map.h (parse_memory_map): Return an std::vector.
2244 * memory-map.c (parse_memory_map): Likewise.
2245 (struct memory_map_parsing_data): Add constructor.
2246 <memory_map>: Point to std::vector.
2247 (memory_map_start_memory): Adjust.
2248 (memory_map_end_memory): Adjust.
2249 (memory_map_end_property): Adjust.
2250 (clear_result): Remove.
2251 * remote.c (remote_memory_map): Return an std::vector.
2252 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
2253 Remove.
2254 (target_debug_print_mem_region_vector): New.
2255 * target-delegates.c: Regenerate.
2256 * target.h (mem_region_vector): New typedef.
2257 (to_memory_map): Return mem_region_vector.
2258 (target_memory_map): Return an std::vector.
2259 * target.c (target_memory_map): Return an std::vector.
2260 (flash_erase_command): Adjust.
2261
6e17c565
SM
22622017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2263
2264 * memory-map.c (struct memory_map_parsing_data) <property_name>:
2265 Change type to std::string.
2266 (memory_map_start_property): Adjust.
2267 (memory_map_end_property): Adjust.
2268
cfba9872
SM
22692017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2270
2271 * infrun.h: Include common/byte-vector.h.
2272 (struct displaced_step_closure): New struct.
2273 (struct buf_displaced_step_closure): New struct.
2274 * infrun.c (displaced_step_closure::~displaced_step_closure):
2275 Provide default implementation.
2276 (displaced_step_clear): Deallocate step closure with delete.
2277 * aarch64-tdep.c (displaced_step_closure): Rename to ...
2278 (aarch64_displaced_step_closure): ... this, extend
2279 displaced_step_closure.
2280 (aarch64_displaced_step_data) <dsc>: Change type to
2281 aarch64_displaced_step_closure.
2282 (aarch64_displaced_step_copy_insn): Adjust to type change, use
2283 unique_ptr.
2284 (aarch64_displaced_step_fixup): Add cast for displaced step
2285 closure.
2286 * amd64-tdep.c (displaced_step_closure): Rename to ...
2287 (amd64_displaced_step_closure): ... this, extend
2288 displaced_step_closure.
2289 <insn_buf>: Change type to std::vector<gdb_byte>.
2290 <max_len>: Remove.
2291 (fixup_riprel): Change type of DSC parameter, adjust to type
2292 change of insn_buf.
2293 (fixup_displaced_copy): Change type of DSC parameter.
2294 (amd64_displaced_step_copy_insn): Instantiate
2295 amd64_displaced_step_closure.
2296 (amd64_displaced_step_fixup): Add cast for closure type, adjust
2297 to type change of insn_buf.
2298 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
2299 parameter DSC.
2300 (arm_linux_copy_svc): Likewise.
2301 (cleanup_kernel_helper_return): Likewise.
2302 (arm_catch_kernel_helper_return): Likewise.
2303 (arm_linux_displaced_step_copy_insn): Instantiate
2304 arm_displaced_step_closure.
2305 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
2306 (displaced_read_reg): Change type of parameter DSC.
2307 (branch_write_pc): Likewise.
2308 (load_write_pc): Likewise.
2309 (alu_write_pc): Likewise.
2310 (displaced_write_reg): Likewise.
2311 (arm_copy_unmodified): Likewise.
2312 (thumb_copy_unmodified_32bit): Likewise.
2313 (thumb_copy_unmodified_16bit): Likewise.
2314 (cleanup_preload): Likewise.
2315 (install_preload): Likewise.
2316 (arm_copy_preload): Likewise.
2317 (thumb2_copy_preload): Likewise.
2318 (install_preload_reg): Likewise.
2319 (arm_copy_preload_reg): Likewise.
2320 (cleanup_copro_load_store): Likewise.
2321 (install_copro_load_store): Likewise.
2322 (arm_copy_copro_load_store) Likewise.
2323 (thumb2_copy_copro_load_store): Likewise.
2324 (cleanup_branch): Likewise.
2325 (install_b_bl_blx): Likewise.
2326 (arm_copy_b_bl_blx): Likewise.
2327 (thumb2_copy_b_bl_blx): Likewise.
2328 (thumb_copy_b): Likewise.
2329 (install_bx_blx_reg): Likewise.
2330 (arm_copy_bx_blx_reg): Likewise.
2331 (thumb_copy_bx_blx_reg): Likewise.
2332 (cleanup_alu_imm): Likewise.
2333 (arm_copy_alu_imm): Likewise.
2334 (thumb2_copy_alu_imm): Likewise.
2335 (cleanup_alu_reg): Likewise.
2336 (install_alu_reg): Likewise.
2337 (arm_copy_alu_reg): Likewise.
2338 (thumb_copy_alu_reg): Likewise.
2339 (cleanup_alu_shifted_reg): Likewise.
2340 (install_alu_shifted_reg): Likewise.
2341 (arm_copy_alu_shifted_reg): Likewise.
2342 (cleanup_load): Likewise.
2343 (cleanup_store): Likewise.
2344 (arm_copy_extra_ld_st): Likewise.
2345 (install_load_store): Likewise.
2346 (thumb2_copy_load_literal): Likewise.
2347 (thumb2_copy_load_reg_imm): Likewise.
2348 (arm_copy_ldr_str_ldrb_strb): Likewise.
2349 (cleanup_block_load_all): Likewise.
2350 (cleanup_block_store_pc): Likewise.
2351 (cleanup_block_load_pc): Likewise.
2352 (arm_copy_block_xfer): Likewise.
2353 (thumb2_copy_block_xfer): Likewise.
2354 (cleanup_svc): Likewise.
2355 (install_svc): Likewise.
2356 (arm_copy_svc): Likewise.
2357 (thumb_copy_svc): Likewise.
2358 (arm_copy_undef): Likewise.
2359 (thumb_32bit_copy_undef): Likewise.
2360 (arm_copy_unpred): Likewise.
2361 (arm_decode_misc_memhint_neon): Likewise.
2362 (arm_decode_unconditional): Likewise.
2363 (arm_decode_miscellaneous): Likewise.
2364 (arm_decode_dp_misc): Likewise.
2365 (arm_decode_ld_st_word_ubyte): Likewise.
2366 (arm_decode_media): Likewise.
2367 (arm_decode_b_bl_ldmstm): Likewise.
2368 (arm_decode_ext_reg_ld_st): Likewise.
2369 (thumb2_decode_dp_shift_reg): Likewise.
2370 (thumb2_decode_ext_reg_ld_st): Likewise.
2371 (arm_decode_svc_copro): Likewise.
2372 (thumb2_decode_svc_copro): Likewise.
2373 (install_pc_relative): Likewise.
2374 (thumb_copy_pc_relative_16bit): Likewise.
2375 (thumb_decode_pc_relative_16bit): Likewise.
2376 (thumb_copy_pc_relative_32bit): Likewise.
2377 (thumb_copy_16bit_ldr_literal): Likewise.
2378 (thumb_copy_cbnz_cbz): Likewise.
2379 (thumb2_copy_table_branch): Likewise.
2380 (cleanup_pop_pc_16bit_all): Likewise.
2381 (thumb_copy_pop_pc_16bit): Likewise.
2382 (thumb_process_displaced_16bit_insn): Likewise.
2383 (decode_thumb_32bit_ld_mem_hints): Likewise.
2384 (thumb_process_displaced_32bit_insn): Likewise.
2385 (thumb_process_displaced_insn): Likewise.
2386 (arm_process_displaced_insn): Likewise.
2387 (arm_displaced_init_closure): Likewise.
2388 (arm_displaced_step_fixup): Add cast for closure.
2389 * arm-tdep.h: Include infrun.h.
2390 (displaced_step_closure): Rename to ...
2391 (arm_displaced_step_closure): ... this, extend
2392 displaced_step_closure.
2393 <u::svc::copy_svc_os>: Change type of parameter DSC.
2394 <cleanup>: Likewise.
2395 (arm_process_displaced_insn): Likewise.
2396 (arm_displaced_init_closure): Likewise.
2397 (displaced_read_reg): Likewise.
2398 (displaced_write_reg): Likewise.
2399 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
2400 Adjust.
2401 * i386-tdep.h: Include infrun.h.
2402 (i386_displaced_step_closure): New typedef.
2403 * i386-tdep.c (i386_displaced_step_copy_insn): Use
2404 i386_displaced_step_closure.
2405 (i386_displaced_step_fixup): Adjust.
2406 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
2407 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
2408 and unique_ptr.
2409 (ppc_displaced_step_fixup): Adjust.
2410 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
2411 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
2412 and unique_ptr.
2413 (s390_displaced_step_fixup): Adjust.
2414
b392b304
SM
24152017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2416
2417 * interps.h (interp_resume, interp_suspend, interp_set_temp):
2418 Remove declarations.
2419
d5833c62
TT
24202017-10-20 Tom Tromey <tom@tromey.com>
2421
2422 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
2423 std::vector.
2424 (gdb_bfd_record_inclusion): Update.
2425 (bfdp): Remove typedef.
2426
06d5bbc8
TT
24272017-10-20 Tom Tromey <tom@tromey.com>
2428
2429 * gdb_bfd.c (gdb_bfd_ref): Use new.
2430 (struct gdb_bfd_data): Add constructor, destructor, and member
2431 initializers.
2432 (gdb_bfd_unref): Use delete.
2433
2712ce2e
TT
24342017-10-20 Tom Tromey <tom@tromey.com>
2435
2436 * exec.c (exec_file_attach): Use new_bfd_ref.
2437 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
2438 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
2439 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
2440 new_bfd_ref.
2441 * gdb_bfd.h (new_bfd_ref): New function.
2442
fcc8fb2f
PA
24432017-10-20 Pedro Alves <palves@redhat.com>
2444
2445 * main.c (captured_command_loop): Add attribute noinline.
2446
4c2287b0
SM
24472017-10-19 Simon Marchi <simon.marchi@ericsson.com>
2448
2449 * interps.c (struct interp_factory): Add constructor.
2450 (interp_factory_p): Remove typedef.
2451 (DEF_VEC_P(interp_factory_p)): Remove.
2452 (interpreter_factories): Change type to std::vector.
2453 (interp_factory_register): Adjust.
2454 (interp_lookup): Adjust.
2455 (interpreter_completer): Adjust.
2456
3d415c26
TT
24572017-10-19 Tom Tromey <tom@tromey.com>
2458
2459 * break-catch-syscall.c (catch_syscall_completer): Use
2460 std::string, gdb::unique_xmalloc_ptr.
2461
395423c4
TT
24622017-10-19 Tom Tromey <tom@tromey.com>
2463
2464 * infcall.c (call_function_by_hand_dummy): Use std::string.
2465
54f70bc1
TT
24662017-10-19 Tom Tromey <tom@tromey.com>
2467
2468 * mi/mi-main.c (mi_cmd_execute): Update.
2469 * top.h (prepare_execute_command): Return scoped_value_mark.
2470 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
2471 Add move constructor.
2472 * top.c (prepare_execute_command): Return scoped_value_mark.
2473 (execute_command): Update.
2474
63929e84
PA
24752017-10-19 Pedro Alves <palves@redhat.com>
2476
2477 * xml-support.c (xml_fetch_content_from_file): Check fread's
2478 return.
2479
a75868f5
PA
24802017-10-19 Pedro Alves <palves@redhat.com>
2481
2482 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
2483 async.
2484 (handle_error_fd): New function.
2485 (ser_base_async): Add/delete an event loop file handler for
2486 error_fd.
2487
2edf834e
PA
24882017-10-19 Pedro Alves <palves@redhat.com>
2489
2490 * xml-support.c (xml_fetch_content_from_file): Don't read in
2491 chunks. Instead use fseek to determine the file's size, and read
2492 it in one go.
2493
c8ba13ad
KS
24942017-11-18 Keith Seitz <keiths@redhat.com>
2495
2496 * c-exp.y (oper): Canonicalize conversion operators of user-defined
2497 types.
2498 Add whitespace to front of type name.
2499
37534686
KS
25002017-10-18 Keith Seitz <keiths@redhat.com>
2501
2502 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
2503 DW_AT_accessibility.
2504
28c7c158
YQ
25052017-10-18 Yao Qi <yao.qi@linaro.org>
2506
2507 * features/tic6x-c62x-linux.c: Remove.
2508
30f0b101
TT
25092017-10-17 Tom Tromey <tom@tromey.com>
2510
2511 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
2512 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
2513 (do_mixed_source_and_assembly): Likewise.
2514
57e12da9
TT
25152017-10-17 Tom Tromey <tom@tromey.com>
2516
2517 * regcache.c (regcache::xfer_part): Remove assertion.
2518
7b700999
PA
25192017-10-17 Pedro Alves <palves@redhat.com>
2520
2521 * xml-support.c (xml_fetch_content_from_file): Call
2522 unique_ptr::release() instead unique_ptr::get() when passing
2523 through xrealloc.
2524
d3037ba6
YQ
25252017-10-17 Yao Qi <yao.qi@linaro.org>
2526
2527 * regcache.c (regcache::xfer_part): Remove parameters read and
2528 write, add parameter is_raw. All callers are updated.
2529
83d5a34d
KS
25302017-10-16 Keith Seitz <keiths@redhat.com>
2531
2532 * c-typeprint.c (enum access_specifier): Moved here from
2533 c_type_print_base.
2534 (output_access_specifier): New function.
2535 (c_type_print_base): Consider typedefs when assessing
2536 whether access labels are needed.
2537 Use output_access_specifier as needed.
2538 Output access specifier for typedefs, if needed.
2539 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
2540 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
2541 fields.
2542 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
2543 accessor macros.
2544
87028b87
TT
25452017-10-16 Tom Tromey <tom@tromey.com>
2546
2547 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
2548 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
2549 * target.c (target_fileio_read_stralloc): Update.
2550 * sparc64-tdep.c (adi_is_addr_mapped): Update.
2551 * target.h (target_fileio_read_stralloc): Return
2552 unique_xmalloc_ptr.
2553
b7b030ad
TT
25542017-10-16 Tom Tromey <tom@tromey.com>
2555
2556 * xml-syscall.c (xml_init_syscalls_info): Update.
2557 * xml-support.c (xinclude_start_include): Update.
2558 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
2559 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
2560 (xml_fetch_content_from_file): Likewise.
2561 * osdata.c (get_osdata): Update.
2562 * target.h (target_read_stralloc, target_get_osdata): Return
2563 unique_xmalloc_ptr.
2564 * solib-aix.c (solib_aix_get_library_list): Update.
2565 * solib-target.c (solib_target_current_sos): Update.
2566 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
2567 * xml-tdesc.c (fetch_available_features_from_target): Update.
2568 (target_fetch_description_xml): Update.
2569 (file_read_description_xml): Update.
2570 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
2571 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
2572 (remote_pid_to_exec_file): Update.
2573 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
2574 (target_get_osdata): Likewise.
2575
b80406ac
TT
25762017-10-16 Tom Tromey <tom@tromey.com>
2577
2578 * remote.c (remote_register_number_and_offset): Use std::vector.
2579 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
2580 (putpkt_binary): Use gdb::def_vector.
2581 (compare_sections_command): Use gdb::byte_vector.
2582
a90ecff8
TT
25832017-10-16 Tom Tromey <tom@tromey.com>
2584
2585 * ppc-linux-nat.c (hwdebug_insert_point): Use
2586 gdb::unique_xmalloc_ptr, XDUP.
2587
2dc0e219
TT
25882017-10-16 Tom Tromey <tom@tromey.com>
2589
2590 * probe.c (parse_probes): Use std::string.
2591 (info_probes_for_ops, enable_probes_command)
2592 (disable_probes_command): Remove cleanups.
2593
b05628f0
TT
25942017-10-16 Tom Tromey <tom@tromey.com>
2595
2596 * buildsym.c (block_compar): Remove.
2597 (end_symtab_get_static_block): Use std::vector.
2598
a79b1bc6
SM
25992017-10-16 Simon Marchi <simon.marchi@ericsson.com>
2600
2601 * memrange.h (struct mem_range): Define operator< and operator==.
2602 (mem_range_s): Remove.
2603 (DEF_VEC_O (mem_range_s)): Remove.
2604 (normalize_mem_ranges): Change parameter type to std::vector.
2605 * memrange.c (compare_mem_ranges): Remove.
2606 (normalize_mem_ranges): Change parameter type to std::vector,
2607 adjust to vector change.
2608 * exec.c (section_table_available_memory): Return vector, remove
2609 parameter.
2610 (section_table_read_available_memory): Adjust to std::vector
2611 change.
2612 * remote.c (remote_read_bytes): Adjust to std::vector
2613 change.
2614 * tracepoint.h (traceframe_available_memory): Change parameter
2615 type to std::vector.
2616 * tracepoint.c (traceframe_available_memory): Change parameter
2617 type to std::vector, adjust.
2618 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
2619 std::vector change.
2620 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2621 unittests/memrange-selftests.c.
2622 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
2623 * gdb/unittests/memrange-selftests.c: New file.
2624
63f0e930
PA
26252017-10-16 Pedro Alves <palves@redhat.com>
2626
2627 * elfread.c (probe_key_free): Rename range-for variable.
2628 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
2629 (find_probe_by_pc, collect_probes): Rename range-for variable.
2630
c40c7bfc
YQ
26312017-10-16 Yao Qi <yao.qi@linaro.org>
2632
2633 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
2634 * features/tic6x-c62x.c: Remove.
2635 * features/tic6x-c64x-linux.c: Remove.
2636 * features/tic6x-c64x.c: Remove.
2637 * features/tic6x-c64xp-linux.c: Remove.
2638 * features/tic6x-c64xp.c: Remove.
2639 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
2640 initialize_tdesc_tic6x_*_linux functions.
2641 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
2642 initialize_tdesc_tic6x_* functions.
2643
df27ae6a
YQ
26442017-10-16 Yao Qi <yao.qi@linaro.org>
2645
2646 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
2647 tic6x-c62x.
2648 * regformats/tic6x-c62x.dat: Remove.
2649 * regformats/tic6x-c64x.dat: Remove.
2650 * regformats/tic6x-c64xp.dat: Remove.
2651
86766165
SM
26522017-10-15 Simon Marchi <simon.marchi@ericsson.com>
2653
2654 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
2655 (the !HAVE_LIBEXPAT version).
2656
824dfcc3
SM
26572017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2658
2659 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
2660 const.
2661
2098b393
SM
26622017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2663
2664 * target.h: Include tracepoint.h.
2665 (enum trace_find_type): Move to tracepoint.h.
2666 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
2667 * tracepoint.h: Don't include target.h
2668 (enum trace_find_type): Move from target.h.
2669 (parse_traceframe_info): Return a unique ptr.
2670 * tracepoint.c (current_traceframe_info): Change type to unique
2671 ptr.
2672 (free_traceframe_info): Remove.
2673 (clear_traceframe_info): Don't manually free
2674 current_traceframe_info.
2675 (free_result): Remove.
2676 (parse_traceframe_info): Return a unique ptr.
2677 (get_traceframe_info): Adjust to unique ptr.
2678 * ctf.c (ctf_traceframe_info): Return a unique ptr.
2679 * remote.c (remote_traceframe_info): Return a unique ptr.
2680 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
2681 ptr.
2682 * target-debug.h (target_debug_print_traceframe_info_up): New
2683 macro.
2684 * target-delegates.c: Regenerate.
2685
4cdd21a8
SM
26862017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2687
2688 * memrange.h (struct mem_range): Add constructors.
2689 * tracepoint.h (struct traceframe_info) <memory>: Change type to
2690 std::vector<mem_range>.
2691 * tracepoint.c (free_traceframe_info): Don't manually free
2692 vector.
2693 (traceframe_info_start_memory): Adjust to vector change.
2694 (traceframe_available_memory): Likewise.
2695 * tracefile-tfile.c (build_traceframe_info): Likewise.
2696 * ctf.c (ctf_traceframe_info): Likewise.
2697
d0d292a2
SM
26982017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2699
2700 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
2701 std::vector<int>.
2702 * tracepoint.c (free_traceframe_info): Deallocate with delete.
2703 (traceframe_info_start_tvar): Adjust to vector change.
2704 (parse_traceframe_info): Allocate with new.
2705 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
2706 vector change.
2707 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
2708 change.
2709 tfile_traceframe_info): Allocate with new.
2710 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
2711 change.
2712
8d3c73ef
SM
27132017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2714
2715 * tracepoint.c (traceframe_info): Rename to...
2716 (current_traceframe_info): ...this.
2717 (clear_traceframe_info): Adjust.
2718 (get_traceframe_info): Adjust.
2719
b129dcac
SM
27202017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2721
2722 * nat/linux-osdata.c: Include algorithm.
2723 (compare_processes): Remove.
2724 (struct pid_pgid_entry): New struct.
2725 (linux_xfer_osdata_processgroups): Use std::vector instead of
2726 XNEWVEC.
2727
af5bf4ad
SM
27282017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2729
2730 * objfiles.h: Don't include symfile.h.
2731 (struct partial_symbol): Remove forward-declaration.
2732 (struct objfile) <global_psymbols, static_psymbols>: Change type
2733 to std::vector<partial_symbol *>.
2734 * objfiles.c (objfile::objfile): Don't memset those fields.
2735 (objfile::~objfile): Don't free those fields.
2736 * psympriv.h (struct psymbol_allocation_list): Remove
2737 forward-declaration.
2738 (add_psymbol_to_list): Change psymbol_allocation_list parameter
2739 to std::vector.
2740 (start_psymtab_common): Change parameters to std::vector.
2741 * psymtab.c: Include algorithm.
2742 (require_partial_symbols): Call shrink_to_fit.
2743 (find_pc_sect_psymbol): Adjust to vector change.
2744 (match_partial_symbol): Likewise.
2745 (lookup_partial_symbol): Likewise.
2746 (psym_relocate): Likewise.
2747 (dump_psymtab): Likewise.
2748 (recursively_search_psymtabs): Likewise.
2749 (compare_psymbols): Remove.
2750 (sort_pst_symbols): Adjust to vector change.
2751 (start_psymtab_common): Likewise.
2752 (end_psymtab_common): Likewise.
2753 (psymbol_bcache_full): De-constify return value.
2754 (add_psymbol_to_bcache): Likewise.
2755 (extend_psymbol_list): Remove.
2756 (append_psymbol_to_list): Adjust to vector change.
2757 (add_psymbol_to_list): Likewise.
2758 (init_psymbol_list): Likewise.
2759 (maintenance_info_psymtabs): Likewise.
2760 (maintenance_check_psymtabs): Likewise.
2761 * symfile.h (struct psymbol_allocation_list): Remove.
2762 * symfile.c (reread_symbols): Adjust to vector change.
2763 * dbxread.c (start_psymtab): Change type of parameters.
2764 (dbx_symfile_read): Adjust to vector change.
2765 (read_dbx_symtab): Likewise.
2766 (start_psymtab): Change type of parameters.
2767 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
2768 (create_partial_symtab): Likewise.
2769 (add_partial_symbol): Likewise.
2770 (write_one_signatured_type): Likewise.
2771 (recursively_write_psymbols): Likewise.
2772 * mdebugread.c (parse_partial_symbols): Likewise.
2773 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
2774 (scan_xcoff_symtab): Adjust to vector change.
2775 (xcoff_initial_scan): Likewise.
2776
3ec5942f
SM
27772017-10-13 Simon Marchi <simon.marchi@ericsson.com>
2778
2779 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
2780
2399fe6a
YQ
27812017-10-13 Yao Qi <yao.qi@linaro.org>
2782
2783 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
2784 Remove s390x-*-expedite, add s390x-expedite.
2785
4bf3f4a8
YQ
27862017-10-13 Yao Qi <yao.qi@linaro.org>
2787
2788 * features/s390-gs-linux64.c: Regenerated.
2789 * features/s390x-gs-linux64.c: Regenerated.
2790
9e86da07
TT
27912017-10-13 Tom Tromey <tom@tromey.com>
2792
2793 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2794 * solib.c (update_solib_list, reload_shared_libraries_1): Use
2795 delete.
2796 * symfile.c (symbol_file_add_with_addrs): Use new.
2797 (symbol_file_add_separate): Update comment.
2798 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
2799 * jit.c (jit_object_close_impl): Use new.
2800 (jit_unregister_code): Use delete.
2801 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
2802 (~objfile): Rename from free_objfile.
2803 (free_objfile_separate_debug, do_free_objfile_cleanup)
2804 (free_all_objfiles, objfile_purge_solibs): Use delete.
2805 * objfiles.h (struct objfile): Add constructor and destructor.
2806 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
2807 (allocate_objfile, free_objfile): Don't declare.
2808 (struct objstats): Add initializers.
2809
c2508e90
SM
28102017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2811
2812 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
2813 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
2814 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
2815 * gdbarch.h: Regenerate.
2816 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
2817 Adjust comment.
2818 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
2819 (i386_displaced_step_fixup): Adjust comment.
2820 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
2821
a900ff72
TT
28222017-10-12 Tom Tromey <tom@tromey.com>
2823
2824 * prologue-value.h (pv_area::store_would_trash): Return bool.
2825 (pv_area::find_reg): Likewise.
2826 * prologue-value.c (pv_area::store_would_trash): Return bool.
2827 (pv_area::find_reg): Likewise.
2828
f7b7ed97
TT
28292017-10-12 Tom Tromey <tom@tromey.com>
2830
2831 * s390-linux-tdep.c (s390_store, s390_load)
2832 (s390_check_for_saved, s390_analyze_prologue): Update.
2833 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
2834 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
2835 * prologue-value.h (class pv_area): Move from prologue-value.c.
2836 Change names of members. Add constructor, destructor, member
2837 functions.
2838 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
2839 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
2840 (pv_area_fetch, pv_area_scan): Don't declare.
2841 * prologue-value.c (struct pv_area::area_entry): Now member of
2842 pv_area.
2843 (struct pv_area): Move to prologue-value.h.
2844 (pv_area::pv_area): Rename from make_pv_area.
2845 (pv_area::~pv_area): Rename from free_pv_area.
2846 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
2847 (clear_entries, find_entry, overlaps, store_would_trash, store)
2848 (fetch, find_reg, scan): Now member of pv_area.
2849 Remove "area" argument. Update.
2850 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
2851 Update.
2852 * mn10300-tdep.c (push_reg, check_for_saved)
2853 (mn10300_analyze_prologue): Update.
2854 * mep-tdep.c (is_arg_spill, check_for_saved)
2855 (mep_analyze_prologue): Update.
2856 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
2857 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
2858 (m32c_is_struct_return, m32c_analyze_prologue): Update.
2859 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
2860 Update.
2861 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
2862 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
2863
466eecee
SM
28642017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2865
2866 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
2867 * linux-nat.c (linux_nat_delete_thread): New variable.
2868 (lwp_free): Invoke linux_nat_delete_thread if set.
2869 (linux_nat_set_delete_thread): New function.
2870 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
2871 thread delete callback.
2872 * arm-linux-nat.c (arm_linux_delete_thread): New function.
2873 (_initialize_arm_linux_nat): Assign thread delete callback.
2874 * s390-linux-nat.c (s390_delete_thread): New function.
2875 (_initialize_s390_nat): Assign thread delete callback.
2876 * x86-linux-nat.c (x86_linux_add_target): Likewise.
2877 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
2878 function.
2879 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
2880 declaration.
2881 * nat/x86-linux.c (x86_linux_delete_thread): New function.
2882 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
2883
f71c8822
TT
28842017-10-09 Tom Tromey <tom@tromey.com>
2885
2886 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
2887 std::string.
2888 * tui/tui-layout.c (enum tui_status): Use std::string.
2889
981a3fb3
TT
28902017-10-11 Tom Tromey <tom@tromey.com>
2891
2892 * gdbthread.h (thread_command): Constify.
2893 * inferior.h (detach_command): Constify.
2894 * top.h (set_history, show_history): Constify.
2895 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
2896 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
2897 * bsd-kvm.c (bsd_kvm_cmd): Constify.
2898 * printcmd.c (set_command): Constify.
2899 (non_const_set_command): New function.
2900 * dcache.c (set_dcache_command, show_dcache_command): Constify.
2901 * breakpoint.c (enable_command, disable_command, delete_command)
2902 (catch_command, tcatch_command, set_breakpoint_cmd)
2903 (show_breakpoint_cmd): Constify.
2904 * macrocmd.c (macro_command): Constify.
2905 * infcmd.c (unset_command, kill_command, detach_command)
2906 (info_proc_cmd): Constify.
2907 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
2908 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
2909 (info_auto_load_cmd): Constify.
2910 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
2911 (unset_tdesc_cmd): Constify.
2912 * ada-lang.c (set_ada_command, show_ada_command)
2913 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
2914 * guile/guile.c (set_guile_command, show_guile_command)
2915 (info_guile_command): Constify.
2916 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
2917 Constify.
2918 * skip.c (skip_command): Constify.
2919 * compile/compile.c (_initialize_compile): Constify.
2920 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
2921 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
2922 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
2923 (maint_btrace_pt_show_cmd): Constify.
2924 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
2925 Constify.
2926 * python/python.c (user_show_python, user_set_python): Constify.
2927 * mips-tdep.c (set_mips_command, show_mips_command)
2928 (set_mipsfpu_command): Constify.
2929 * record-btrace.c (cmd_record_btrace_start)
2930 (cmd_set_record_btrace, cmd_show_record_btrace)
2931 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
2932 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
2933 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
2934 Constify.
2935 * symfile.c (overlay_command): Constify.
2936 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
2937 * cli/cli-logging.c (set_logging_command, show_logging_command):
2938 Constify.
2939 * cli/cli-dump.c (dump_command, append_command)
2940 (srec_dump_command, ihex_dump_command, verilog_dump_command)
2941 (tekhex_dump_command, binary_dump_command)
2942 (binary_append_command): Constify.
2943 * cli/cli-decode.c (struct cmd_list_element): Change type of
2944 "fun".
2945 * cli/cli-cmds.c (info_command, show_command, set_debug)
2946 (show_debug): Constify.
2947 (show_command): Add non-const overload.
2948 * top.c (set_history, show_history): Constify.
2949 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
2950 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
2951 * target.c (target_command): Constify.
2952 * sparc64-tdep.c (info_adi_command): Constify.
2953 * record-full.c (cmd_record_full_start): Constify.
2954 (set_record_full_command): Constify. Fix typo.
2955 (show_record_full_command): Constify.
2956 * thread.c (thread_command, thread_apply_command): Constify.
2957 * memattr.c (dummy_cmd): Constify.
2958 * value.c (function_command): Constify.
2959 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
2960 * probe.c (info_probes_command): Constify.
2961 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
2962 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
2963 (show_thread_cmd, set_thread_default_cmd)
2964 (show_thread_default_cmd): Constify.
2965 (check_empty): Constify.
2966 * tracepoint.c (tfind_command): Constify.
2967 * cp-support.c (maint_cplus_command): Constify.
2968 * windows-tdep.c (info_w32_command): Constify.
2969 * record.c (cmd_record_start, set_record_command)
2970 (show_record_command, info_record_command, cmd_record_goto):
2971 Constify.
2972 * ravenscar-thread.c (set_ravenscar_command)
2973 (show_ravenscar_command): Constify.
2974 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
2975 Constify.
2976 (add_internal_problem_command): Remove casts.
2977 * arc-tdep.c (maintenance_print_arc_command): Constify.
2978 * valprint.c (set_print, show_print, set_print_raw)
2979 (show_print_raw): Constify.
2980 * maint.c (maintenance_command, maintenance_info_command)
2981 (maintenance_print_command, maintenance_set_cmd)
2982 (maintenance_show_cmd, set_per_command_cmd)
2983 (show_per_command_cmd, maintenance_check_command): Constify.
2984 * language.c (set_check, show_check): Constify.
2985 * typeprint.c (show_print_type, set_print_type): Constify.
2986 * go32-nat.c (go32_info_dos_command): Constify.
2987
fdf44873
TT
29882017-10-11 Tom Tromey <tom@tromey.com>
2989
2990 * breakpoint.c (prepare_re_set_context): Remove.
2991 (breakpoint_re_set_one): Update. Don't use cleanups.
2992 (breakpoint_re_set): Use scoped_restore, std::string, and
2993 scoped_restore_current_language.
2994
81b1e71c
TT
29952017-10-11 Tom Tromey <tom@tromey.com>
2996
2997 * breakpoint.c (commands_command_1): Use std::string.
2998 (cleanup_executing_breakpoints): Remove.
2999 (bpstat_do_actions_1): Use scoped_restore.
3000 (bpstat_check_watchpoint): Use std::string.
3001 (decode_static_tracepoint_spec): Likewise.
3002 (break_range_command): Likewise.
3003 (watch_command_1): Likewise.
3004 (compare_breakpoints): Change argument types.
3005 (clear_command): Use std::vector.
3006 (cleanup_executing_breakpoints): Remove.
3007 (update_global_location_list): Use unique_xmalloc_ptr.
3008 (strace_command): Remove unused declaration.
3009
4f9d9906
JB
30102017-10-11 John Baldwin <jhb@FreeBSD.org>
3011
3012 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
3013 * NEWS: Mention new FreeBSD/arm native configuration.
3014 * configure.host: Add arm*-*-freebsd*.
3015 * configure.nat: Likewise.
3016 * arm-fbsd-nat.c: New file.
3017
7176dfd2
JB
30182017-10-11 John Baldwin <jhb@FreeBSD.org>
3019
3020 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
3021 (ALLDEPFILES): Add arm-fbsd-tdep.c.
3022 * NEWS: Mention new FreeBSD/arm target.
3023 * configure.tgt: Add arm*-*-freebsd*.
3024 * arm-fbsd-tdep.c: New file.
3025 * arm-fbsd-tdep.h: New file.
3026
fe220226
MR
30272017-10-11 Maciej W. Rozycki <macro@imgtec.com>
3028
3029 * linux-tdep.c (linux_make_corefile_notes): Remove call to
3030 `gdbarch_elfcore_write_linux_prpsinfo'.
3031 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
3032 method.
3033 (elf_internal_linux_prpsinfo): Remove declaration.
3034 * gdbarch.h: Regenerate.
3035 * gdbarch.c: Regenerate.
3036
a2f63b2e
MR
30372017-10-11 Maciej W. Rozycki <macro@imgtec.com>
3038
3039 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
3040 `set_gdbarch_elfcore_write_linux_prpsinfo'.
3041
458ca1d0
PA
30422017-10-11 Pedro Alves <palves@redhat.com>
3043
3044 * breakpoint.c (reattach_breakpoints): Delete.
3045 * breakpoint.h (reattach_breakpoints): Delete.
3046
905014d7
SM
30472017-10-11 Simon Marchi <simon.marchi@ericsson.com>
3048
3049 * symfile.c (registered_sym_fns): Make struct, not typedef.
3050 (DEF_VEC_O (registered_sym_fns)): Remove.
3051 (symtab_fns): Change type to std::vector.
3052 (add_symtab_fns): Adjust.
3053 (find_sym_fns): Adjust.
3054
56d704da
AK
30552017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
3056
3057 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
3058 * arc-tdep.h (arc_arch_is_em): New function.
3059 (arc_arch_is_hs): Likewise.
3060
7fa29be9
EB
30612017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
3062
3063 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
3064 parentheses in the declaration.
3065 (macro_lookup_inclusion): Likewise.
3066 (macro_lookup_definition): Likewise.
3067 * p-lang.h (pascal_builtin_types): Likewise.
3068 * tui/tui-data.c (tui_win_list): Likewise.
3069 * tui/tui-data.h (tui_win_list): Likewise.
3070 * utils.h (make_cleanup_free_section_addr_info): Likewise.
3071
d9b477e3
KB
30722017-10-11 Mark Rages <markrages@gmail.com>
3073
3074 * target-memory.c (block_boundaries): Fix for block address not
3075 aligned on block size.
3076
65630365
PA
30772017-10-10 Pedro Alves <palves@redhat.com>
3078 Tom Tromey <tom@tromey.com>
3079
3080 * breakpoint.c (struct captured_breakpoint_query_args)
3081 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
3082 (print_breakpoint): New.
3083 * breakpoint.h (print_breakpoint): Declare.
3084 * common/common-exceptions.h (enum return_reason): Remove
3085 references to catch_exceptions.
3086 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
3087 Delete.
3088 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
3089 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
3090 * gdb.h: Delete.
3091 * gdbthread.h (thread_select): Declare.
3092 * mi/mi-cmd-break.c: Don't include gdb.h.
3093 (breakpoint_notify): Use print_breakpoint.
3094 * mi/mi-cmd-catch.c: Don't include gdb.h.
3095 * mi/mi-interp.c: Don't include gdb.h.
3096 (mi_print_breakpoint_for_event): New.
3097 (mi_breakpoint_created, mi_breakpoint_modified): Use
3098 mi_print_breakpoint_for_event.
3099 * mi/mi-main.c: Don't include gdb.h.
3100 (mi_cmd_thread_select): Parse the global thread ID here. Use
3101 thread_select instead of gdb_thread_select.
3102 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
3103 of using gdb_list_thread_ids.
3104 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
3105 FILEIO_ENOSYS here.
3106 (remote_fileio_request): Use TRY/CATCH instead of
3107 catch_exceptions.
3108 * symfile-mem.c (struct symbol_file_add_from_memory_args)
3109 (symbol_file_add_from_memory_wrapper): Delete.
3110 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
3111 * thread.c: Don't include gdb.h.
3112 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
3113 (thread_alive): Use thread_select.
3114 (do_captured_thread_select): Delete, parts salvaged as ...
3115 (thread_select): ... this new function.
3116 (gdb_thread_select): Delete.
3117
bf469271
PA
31182017-10-10 Pedro Alves <palves@redhat.com>
3119 Tom Tromey <tom@tromey.com>
3120
3121 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
3122 and reverse logic.
3123 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
3124 No longer macros. Instead ...
3125 (enum wp_check_result): They're now values of this new
3126 enumeration.
3127 (watchpoint_check): Change return type to wp_check_result and
3128 parameter type to bpstat.
3129 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
3130 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
3131 catch_errors. Reverse logic of watchpoint_check call.
3132 (breakpoint_re_set_one): Now returns void and takes a breakpoint
3133 pointer as parameter.
3134 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
3135 * common/common-exceptions.c (throw_exception_sjlj): Update
3136 comments to avoid mentioning catch_errors.
3137 * exceptions.c (catch_errors): Delete.
3138 * exceptions.h: Update comments to avoid mentioning catch_errors.
3139 (catch_errors_ftype, catch_errors): Delete.
3140 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
3141 (hook_stop_stub): Delete.
3142 (restore_selected_frame): Change return type to void, and
3143 parameter type to const frame_id &.
3144 (restore_infcall_control_state): Use TRY/CATCH instead of
3145 catch_errors.
3146 * main.c (captured_command_loop): Return void and remove
3147 parameter. Remove references to catch_errors.
3148 (captured_main): Use TRY/CATCH instead of catch_errors.
3149 * objc-lang.c (objc_submethod_helper_data)
3150 (find_objc_msgcall_submethod_helper): Delete.
3151 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
3152 catch_errors.
3153 * record-full.c (record_full_message): Return void.
3154 (record_full_message_args, record_full_message_wrapper): Delete.
3155 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
3156 instead of catch_errors.
3157 * solib-aix.c (solib_aix_open_symbol_file_object): Change
3158 parameter type to int.
3159 * solib-darwin.c (open_symbol_file_object): Ditto.
3160 * solib-dsbt.c (open_symbol_file_object): Ditto.
3161 * solib-frv.c (open_symbol_file_object): Ditto.
3162 * solib-svr4.c (open_symbol_file_object): Ditto.
3163 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
3164 * solib.c (update_solib_list): Use TRY/CATCH instead of
3165 catch_errors.
3166 * solist.h (struct target_so_ops) <open_symbol_file_object>:
3167 Change type.
3168 * symmisc.c (struct print_symbol_args): Remove.
3169 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
3170 (print_symbol): Change type.
3171 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
3172 and remove parameters.
3173 (catch_errors): New.
3174 (get_windows_debug_event): Adjust.
3175
1a56bfa5
TT
31762017-10-09 Tom Tromey <tom@tromey.com>
3177
3178 * mi/mi-main.c (free_splay_tree): Remove.
3179 (list_available_thread_groups): Use splay_tree_up.
3180 * common/gdb_splay_tree.h: New file.
3181
0c478e2d
TT
31822017-10-09 Tom Tromey <tom@tromey.com>
3183
3184 * mi/mi-main.c (do_nothing): Remove.
3185 (list_available_thread_groups): Update.
3186
cbd2b4e3
PA
31872017-10-09 Pedro Alves <palves@redhat.com>
3188
3189 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
3190 reading registers when switching context.
3191
a181c0bf
JB
31922017-10-09 John Baldwin <jhb@FreeBSD.org>
3193
3194 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
3195 (fbsd_convert_siginfo): Likewise.
3196 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
3197
6e66f753
SM
31982017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
3199
3200 * configure.ac (try_guile_versions): Remove guile-2.2.
3201 * configure: Regenerate.
3202
890e9790
TT
32032017-10-09 Tom Tromey <tom@tromey.com>
3204
3205 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
3206 (COMPILE.pre): Use $(CXX).
3207
109483d9
PA
32082017-10-09 Pedro Alves <palves@redhat.com>
3209
3210 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
3211 Use bool.
3212 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
3213 * cp-support.h (cp_remove_params): Now returns a
3214 gdb::unique_xmalloc_ptr.
3215 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
3216 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
3217 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
3218 returning a gdb::unique_xmalloc_ptr.
3219 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
3220 * stack.c (find_frame_funname): Adjust to cp_remove_params
3221 returning a gdb::unique_xmalloc_ptr.
3222
791afaa2
TT
32232017-10-08 Tom Tromey <tom@tromey.com>
3224
3225 * dwarf2read.c (dwarf2_get_dwz_file): Use
3226 gdb::unique_xmalloc_ptr.
3227 (find_slot_in_mapped_hash): Likewise.
3228 (dwarf2_physname): Likewise.
3229 (create_dwo_unit_in_dwp_v1): Use std::string.
3230 (create_dwo_unit_in_dwp_v2): Likewise.
3231 (lookup_dwo_cutu): Likewise.
3232 (inherit_abstract_dies): Use std::vector.
3233 (read_array_type): Likewise.
3234 (dwarf_decode_macros): Remove unused declaration.
3235 (unsigned_int_compar): Remove.
3236 (dwarf2_build_psymtabs_hard): Use scoped_restore.
3237 (psymtabs_addrmap_cleanup): Remove.
3238
30a9c02f
TT
32392017-10-08 Tom Tromey <tom@tromey.com>
3240
3241 * frame-unwind.c (frame_unwind_try_unwinder): Update.
3242 * frame.h (frame_cleanup_after_sniffer): Declare.
3243 (frame_prepare_for_sniffer): Return void.
3244 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
3245 type of argument.
3246 (frame_prepare_for_sniffer): Return void.
3247
757325a3
TT
32482017-10-08 Tom Tromey <tom@tromey.com>
3249
3250 * utils.h (make_cleanup_value_free): Remove.
3251 * utils.c (do_value_free, struct cleanup): Remove.
3252 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
3253 Use gdb_value_up.
3254 * value.h (struct value_deleter): New.
3255 (gdb_value_up): New typedef.
3256
b9c04fb2
TT
32572017-10-08 Tom Tromey <tom@tromey.com>
3258
3259 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
3260 (make_cleanup_free_search_symbols): Remove.
3261 (search_symbols): Return std::vector.
3262 (symbol_search::compare_search_syms): Now member of
3263 symbol_search. Change arguments.
3264 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
3265 (symtab_symbol_info, rbreak_command): Update.
3266 * symtab.h (struct symbol_search) <next>: Remove.
3267 Add constructors.
3268 (symbol_search::operator<): New function.
3269 (symbol_search::operator==): New function.
3270 (search_symbols): Remove std::vector.
3271 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
3272 (symbol_search::compare_search_syms): Declare.
3273
0d28b0a5
YQ
32742017-10-06 Yao Qi <yao.qi@linaro.org>
3275
3276 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
3277 arch/aarch64-insn.o.
3278 Remove one rule.
3279 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
3280
71917808
YQ
32812017-10-06 Yao Qi <yao.qi@linaro.org>
3282
3283 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
3284 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
3285 arch/arm-linux.o respectively.
3286 * configure.tgt: Likewise.
3287
2081b2b2
YQ
32882017-10-06 Yao Qi <yao.qi@linaro.org>
3289
3290 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
3291 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
3292
a1b85d28
PA
32932017-10-06 Pedro Alves <palves@redhat.com>
3294
3295 * windows-nat.c: Include <algorithm>.
3296
d97987e2
YQ
32972017-10-06 Yao Qi <yao.qi@linaro.org>
3298
3299 * configure.tgt (i386_tobjs): New variable.
3300 (amd64_tobjs): New variable.
3301 Set $cpu_obs and $os_obs.
3302
f38307f5
YQ
33032017-10-06 Yao Qi <yao.qi@linaro.org>
3304
3305 * Makefile.in (CONFIG_SRC_SUBDIR): New.
3306 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
3307 (clean): Remove object files and dependency files.
3308 (distclean): Remove the directory.
3309 * configure.ac: Invoke AC_CONFIG_COMMANDS.
3310 * configure: Re-generated.
3311 * configure.tgt: Replace amd64.o with arch/amd64.o.
3312
2f924de6
JM
33132017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
3314
3315 PR build/22188
3316 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
3317 and SETEND.
3318
2fd9d7ca
PA
33192017-10-05 Pedro Alves <palves@redhat.com>
3320
3321 * linux-nat.c (linux_child_follow_fork): When following the parent
3322 and detaching the child, consult the parent thread's architecture
3323 instead of the child's.
3324
d13b8493
UW
33252017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3326
3327 * ax.h: Do not include "doublest.h".
3328 (union agent_val): Remove.
3329
3b4b2f16
UW
33302017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3331
3332 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
3333 (decimal_to_string): Return std::string object.
3334 (decimal_from_string): Accept std::string object. Return bool.
3335 (decimal_from_integral, decimal_from_doublest): Remove.
3336 (decimal_from_longest): Add prototype.
3337 (decimal_from_ulongest): Likewise.
3338 (decimal_to_longest): Likewise.
3339 (decimal_from_doublest): Likewise.
3340 * dfp.c: Do not include "gdbtypes.h" or "value.h".
3341 (MAX_DECIMAL_STRING): Move here.
3342 (decimal_to_string): Return std::string object.
3343 (decimal_from_string): Accept std::string object. Return bool.
3344 (decimal_from_integral): Remove, replace by ...
3345 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
3346 (decimal_to_longest): New function.
3347 (decimal_from_floating): Remove, replace by ...
3348 (decimal_from_doublest): ... this new function.
3349 (decimal_to_doublest): Update to new decimal_to_string interface.
3350
3351 * value.c (unpack_long): Use decimal_to_longest.
3352 * valops.c (value_cast): Use decimal_from_doublest instead of
3353 decimal_from_floating. Use decimal_from_[u]longest isntead of
3354 decimal_from_integral.
3355 * valarith.c (value_args_as_decimal): Likewise.
3356 * valprint.c (print_decimal_floating): Update to new
3357 decimal_to_string interface.
3358 * printcmd.c (printf_decfloat): Likewise.
3359 * c-exp.y (parse_number): Update to new decimal_from_string interface.
3360
1841ee5d
UW
33612017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
3362
3363 * doublest.h: Do not include "floatformat.h". Remove stale comments.
3364 * gdbtypes.c: Include "floatformat.h".
3365 * value.c: Likewise.
3366 * m68k-tdep.c: Likewise.
3367
3368 * findvar.c: Do not include "floatformat.h".
3369 * amd64-darwin-tdep.c: Likewise.
3370 * arm-linux-tdep.c: Likewise.
3371 * i386-darwin-tdep.c: Likewise.
3372 * i387-tdep.c: Likewise.
3373 * m68k-linux-tdep.c: Likewise.
3374 * mep-tdep.c: Likewise.
3375 * mips-tdep.c: Likewise.
3376 * nios2-tdep.c: Likewise.
3377 * s390-linux-tdep.c: Likewise.
3378 * sparc-obsd-tdep.c: Likewise.
3379 * sparc-tdep.c: Likewise.
3380 * sparc64-tdep.c: Likewise.
3381 * spu-tdep.c: Likewise.
3382 * tic6x-tdep.c: Likewise.
3383 * tilegx-tdep.c: Likewise.
3384 * vax-tdep.c: Likewise.
3385 * xstormy16-tdep.c: Likewise.
3386 * xtensa-tdep.c: Likewise.
3387
3388 * top.c: Do not include "doublest.h".
3389 * aarch64-tdep.c: Likewise.
3390 * alpha-tdep.c: Likewise.
3391 * arm-linux-tdep.c: Likewise.
3392 * m68k-linux-tdep.c: Likewise.
3393 * tilegx-tdep.c: Likewise.
3394 * xstormy16-tdep.c: Likewise.
3395
a80a6471
JB
33962017-10-05 John Baldwin <jhb@FreeBSD.org>
3397
3398 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
3399 (mipsn32_fbsd_sigframe): Define.
3400 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
3401 for FreeBSD/mipsn32.
3402
12c4bd7f
JB
34032017-10-05 John Baldwin <jhb@FreeBSD.org>
3404
3405 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
3406 AT_HWCAP.
3407
c91933e9
TG
34082017-10-05 Tristan Gingold <tgingold@free.fr>
3409
3410 * MAINTAINERS (Misc): Update my email address.
3411
5cd63fda
PA
34122017-10-04 Pedro Alves <palves@redhat.com>
3413
3414 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
3415 it instead of target_gdbarch.
3416 (get_remote_state, get_remote_packet_size): Adjust
3417 get_remote_arch_state calls, passing down target_gdbarch
3418 explicitly.
3419 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
3420 'gdbarch' and use it instead of target_gdbarch.
3421 (get_memory_packet_size): Adjust get_remote_arch_state calls,
3422 passing down target_gdbarch explicitly.
3423 (struct stop_reply) <arch>: New field.
3424 (remote_parse_stop_reply): Use the stopped thread's architecture,
3425 not the current inferior's. Save the architecture in the
3426 stop_reply.
3427 (process_stop_reply): Use the stop reply's architecture.
3428 (process_g_packet, remote_fetch_registers)
3429 (remote_prepare_to_store, store_registers_using_G)
3430 (remote_store_registers): Adjust get_remote_arch_state calls,
3431 using the regcache's architecture.
3432 (remote_get_trace_status): Adjust get_remote_arch_state calls,
3433 passing down target_gdbarch explicitly.
3434 * spu-multiarch.c (spu_thread_architecture): Defer to the target
3435 beneath instead of calling target_gdbarch.
3436 * target.c (default_thread_architecture): Use the specified
3437 inferior's architecture, instead of the current inferior's
3438 architecture (via target_gdbarch).
3439
ed4227b7
PA
34402017-10-04 Pedro Alves <palves@redhat.com>
3441
3442 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
3443 case.
3444 (regcache_print): Handle !target_has_registers here instead.
3445
55b11ddf
PA
34462017-10-04 Pedro Alves <palves@redhat.com>
3447
3448 * frame.c (create_test_frame): Delete.
3449 * frame.h (create_test_frame): Delete.
3450 * gdbarch-selftests.c: Include gdbthread.h and target.h.
3451 (class regcache_test): Delete.
3452 (test_target_has_registers, test_target_has_stack)
3453 (test_target_has_memory, test_target_prepare_to_store)
3454 (test_target_store_registers): New functions.
3455 (test_target_ops): New class.
3456 (register_to_value_test): Error out if there's already a
3457 process_stratum (or higher) target pushed. Create a fuller mock
3458 environment, with mock target_ops, inferior, address space, thread
3459 and inferior_ptid.
3460 * progspace.c (struct address_space): Move to ...
3461 * progspace.h (struct address_space): ... here.
3462 * regcache.h (regcache::~regcache, regcache::raw_write)
3463 [GDB_SELF_TEST]: No longer virtual.
3464
4c71c105
SM
34652017-10-04 Simon Marchi <simon.marchi@ericsson.com>
3466
3467 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
3468
73dcd72d
PA
34692017-10-04 Pedro Alves <palves@redhat.com>
3470
3471 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
3472 out of 'between TRY and CATCH'.
3473
44704526
PA
34742017-10-04 Pedro Alves <palves@redhat.com>
3475
3476 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
3477 * common/common-exceptions.h (TRY): Open an outermost scope.
3478 Expand intro comment.
3479 (CATCH): Reindent.
3480 (END_CATCH): Close the outermost scope.
3481 * completer.c (complete_line_internal): Add missing END_CATCH.
3482
bc3b087d
SDJ
34832017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3484
3485 * NEWS (Changes since GDB 8.0): Add entry about new
3486 'set-cwd-on-gdbserver' feature.
3487 (New remote packets): Add entry for QSetWorkingDir.
3488 * common/common-inferior.h (set_inferior_cwd): New prototype.
3489 * infcmd.c (set_inferior_cwd): Remove "static".
3490 (show_cwd_command): Expand text to include remote debugging.
3491 * remote.c: Add PACKET_QSetWorkingDir.
3492 (remote_protocol_features) <QSetWorkingDir>: New entry for
3493 PACKET_QSetWorkingDir.
3494 (extended_remote_set_inferior_cwd): New function.
3495 (extended_remote_create_inferior): Call
3496 "extended_remote_set_inferior_cwd".
3497 (_initialize_remote): Call "add_packet_config_cmd" for
3498 QSetWorkingDir.
3499
d092c5a2
SDJ
35002017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3501
3502 * NEWS (New commands): Mention "set/show cwd".
3503 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
3504 "cd" command's help text.
3505 * common/common-inferior.h (get_inferior_cwd): New prototype.
3506 * infcmd.c (inferior_cwd_scratch): New global variable.
3507 (set_inferior_cwd): New function.
3508 (get_inferior_cwd): Likewise.
3509 (set_cwd_command): Likewise.
3510 (show_cwd_command): Likewise.
3511 (_initialize_infcmd): Add "set/show cwd" commands.
3512 * inferior.h (class inferior) <cwd>: New field.
3513 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
3514 (fork_inferior): Change inferior's cwd before its execution.
3515 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
3516 to CreateProcess.
3517
7da0a886
SDJ
35182017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3519
3520 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
3521 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
3522 (COMMON_OBS): Add gdb_tilde_expand.o.
3523 * common/gdb_tilde_expand.c: New file.
3524 * common/gdb_tilde_expand.h: Likewise.
3525
db8dd160
MR
35262017-10-03 Maciej W. Rozycki <macro@imgtec.com>
3527
3528 * gdbarch.sh (objfile): Remove duplicate declaration.
3529 * gdbarch.h: Regenerate.
3530
f8bfbf22
TT
35312017-10-03 Tom Tromey <tom@tromey.com>
3532
3533 * utils.c (internal_vproblem): Use string_vprintf.
3534
5178ed48
TT
35352017-10-03 Tom Tromey <tom@tromey.com>
3536
3537 * printcmd.c (info_symbol_command): Use std::string.
3538
8cff8730
TT
35392017-10-03 Tom Tromey <tom@tromey.com>
3540
3541 * top.c (gdb_safe_append_history): Use std::string.
3542
895b8f30
TT
35432017-10-03 Tom Tromey <tom@tromey.com>
3544
3545 * event-top.c (stdin_event_handler): Update.
3546 * main.c (captured_main_1): Update.
3547 * top.h (make_delete_ui_cleanup): Remove.
3548 (struct ui): Add constructor and destructor.
3549 (new_ui, delete_ui): Remove.
3550 * top.c (make_delete_ui_cleanup): Remove.
3551 (new_ui_command): Use std::unique_ptr.
3552 (delete_ui_cleanup): Remove.
3553 (ui::ui): Rename from new_ui. Update.
3554 (free_ui): Remove.
3555 (ui::~ui): Rename from delete_ui. Update.
3556
0efef640
TT
35572017-10-03 Tom Tromey <tom@tromey.com>
3558
3559 * symfile.c (load_progress): Use gdb::byte_vector.
3560
245ad7d3
TT
35612017-10-03 Tom Tromey <tom@tromey.com>
3562
3563 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
3564 declaration.
3565 * printcmd.c (x_command): Remove unused declaration.
3566 * symfile.c (symbol_file_command): Remove unused declaration.
3567
e05550d7
TT
35682017-10-03 Tom Tromey <tom@tromey.com>
3569
3570 * utils.c (internal_vproblem): Use std::string.
3571 (defaulted_query): Likewise.
3572
b95de2b7
TT
35732017-10-03 Tom Tromey <tom@tromey.com>
3574
3575 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
3576 * top.c (execute_command_to_string): Update.
3577 * utils.c (make_cleanup_restore_page_info): Remove.
3578 (do_restore_page_info_cleanup): Remove.
3579 (set_batch_flag_and_restore_page_info):
3580 New.
3581 (make_cleanup_restore_page_info): Remove.
3582 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
3583 (~set_batch_flag_and_restore_page_info): New
3584 (make_cleanup_restore_uinteger): Remove.
3585 (make_cleanup_restore_integer): Remove.
3586 (struct restore_integer_closure): Remove.
3587 (restore_integer): Remove.
3588 * utils.h (struct set_batch_flag_and_restore_page_info): New
3589 class.
3590 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
3591 (make_cleanup_restore_page_info): Remove.
3592 (make_cleanup_restore_uinteger) Remove.
3593 (make_cleanup_restore_integer) Remove.
3594
07036511
TT
35952017-10-03 Tom Tromey <tom@tromey.com>
3596
3597 * record-full.h (record_full_gdb_operation_disable_set): Return
3598 scoped_restore_tmpl<int>.
3599 * infrun.c (adjust_pc_after_break): Update.
3600 (handle_signal_stop): Update.
3601 * record-full.c (record_full_gdb_operation_disable_set): Return
3602 scoped_restore_tmpl<int>.
3603 (record_full_wait_1, record_full_insert_breakpoint)
3604 (record_full_remove_breakpoint, record_full_save)
3605 (record_full_goto_insn): Update.
3606
45320ffa
TT
36072017-10-02 Tom Tromey <tom@tromey.com>
3608
3609 PR rust/22236:
3610 * rust-lang.c (rust_val_print_str): New function.
3611 (val_print_struct): Call it.
3612 (rust_subscript): Preserve name of slice type.
3613
b3e3859b
TT
36142017-10-02 Tom Tromey <tom@tromey.com>
3615
3616 * rust-lang.c (rust_subscript): Handle slices in
3617 EVAL_AVOID_SIDE_EFFECTS case.
3618
01af5e0d
TT
36192017-10-02 Tom Tromey <tom@tromey.com>
3620
3621 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
3622
888e3ddb
TT
36232017-10-02 Tom Tromey <tom@tromey.com>
3624
3625 * rust-lang.h (rust_slice_type): Add "extern".
3626
cc536b21
PA
36272017-10-02 Tom Tromey <tom@tromey.com>
3628 Pedro Alves <palves@redhat.com>
3629
3630 * ada-lang.h (ada_exc_info::operator<): Make const.
3631 (ada_exc_info::operator==): Make const.
3632 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
3633 Make const.
3634
386c8614
TT
36352017-09-29 Tom Tromey <tom@tromey.com>
3636
3637 * target.c (read_whatever_is_readable): Change type of "result".
3638 Update.
3639 (free_memory_read_result_vector): Remove.
3640 (read_memory_robust): Change return type. Update.
3641 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
3642 bin2hex, std::string.
3643 * target.h (memory_read_result_s): Remove typedef.
3644 (free_memory_read_result_vector): Remove.
3645 (read_memory_robust): Return std::vector.
3646
789c4b5e
TT
36472017-09-29 Tom Tromey <tom@tromey.com>
3648
3649 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
3650
ab816a27
TT
36512017-09-29 Tom Tromey <tom@tromey.com>
3652
3653 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
3654 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
3655 operator< and operator==.
3656 (ada_exceptions_list): Return a std::vector.
3657 * ada-lang.c (ada_exc_info::operator<): Rename from
3658 compare_ada_exception_info.
3659 (ada_exc_info::operator==): New.
3660 (sort_remove_dups_ada_exceptions_list): Change type of
3661 "exceptions".
3662 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
3663 (ada_add_global_exceptions): Likewise.
3664 (ada_exceptions_list_1): Return a std::vector.
3665 (ada_exceptions_list): Likewise.
3666
52f9abe4
TT
36672017-09-29 Tom Tromey <tom@tromey.com>
3668
3669 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
3670 'std::set *'.
3671 (print_one_inferior): Update.
3672 (free_vector_of_ints): Remove.
3673 (list_available_thread_groups): Change "ids" to std::set.
3674 (mi_cmd_list_thread_groups): Update.
3675 (struct collect_cores_data) <core>: Now a std::set.
3676 (collect_cores): Update.
3677 (unique): Remove.
3678 (print_one_inferior): Update.
3679
dcd5ddcc
TT
36802017-09-29 Tom Tromey <tom@tromey.com>
3681
3682 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
3683 (mi_execute_async_cli_command): Likewise.
3684 (mi_cmd_trace_frame_collected): Use field_fmt.
3685
45d288cc
TT
36862017-09-29 Tom Tromey <tom@tromey.com>
3687
3688 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
3689 gdb::byte_vector.
3690
6afe2f4a
TT
36912017-09-29 Tom Tromey <tom@tromey.com>
3692
3693 * mi/mi-parse.c (mi_parse): Remove unused declaration.
3694
9813429a
TT
36952017-09-29 Tom Tromey <tom@tromey.com>
3696
3697 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
3698
2d6960b4
TT
36992017-09-29 Tom Tromey <tom@tromey.com>
3700
3701 * varobj.h (varobj_gen_name): Return std::string.
3702 * varobj.c (varobj_gen_name): Return std::string.
3703 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
3704 (mi_cmd_var_delete): Don't copy "name".
3705
784c453a
TT
37062017-09-29 Tom Tromey <tom@tromey.com>
3707
3708 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
3709 (mi_cmd_break_insert_1): Update.
3710
a9bc57b9
TT
37112017-09-29 Tom Tromey <tom@tromey.com>
3712
3713 * target.h (make_scoped_defer_target_commit_resume): Update.
3714 * target.c (make_scoped_defer_target_commit_resume): Rename from
3715 make_cleanup_defer_target_commit_resume. Return a
3716 scoped_restore.
3717 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
3718
9754d8c4
TT
37192017-09-29 Tom Tromey <tom@tromey.com>
3720
3721 * main.c (captured_main_1): Remove unused declaration.
3722 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
3723
99ef965c
TT
37242017-09-29 Tom Tromey <tom@tromey.com>
3725
3726 * symtab.c (search_symbols): Remove unused outer cleanup.
3727 (make_source_files_completion_list): Remove unused declaration.
3728
42518ba7
TT
37292017-09-29 Tom Tromey <tom@tromey.com>
3730
3731 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
3732
726b2169
TT
37332017-09-29 Tom Tromey <tom@tromey.com>
3734
3735 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
3736 gdb::byte_vector.
3737
55b06432
TT
37382017-09-29 Tom Tromey <tom@tromey.com>
3739
3740 * complaints.c (vcomplaint): Use std::string.
3741
8abcee91
TT
37422017-09-29 Tom Tromey <tom@tromey.com>
3743
3744 * tracepoint.c (trace_variable_command): Use std::string.
3745 (encode_actions_1): Remove unused declarations.
3746 (create_tsv_from_upload): Use std::string.
3747
6ad94bc7
TT
37482017-09-29 Tom Tromey <tom@tromey.com>
3749
3750 * cp-support.c (gdb_demangle): Use std::string.
3751
2003f3d8
TT
37522017-09-29 Tom Tromey <tom@tromey.com>
3753
3754 * stack.c (parse_frame_specification): Use std::string
3755 (info_frame_command): Use gdb::unique_xmalloc_ptr.
3756
8f8accb5
TT
37572017-09-29 Tom Tromey <tom@tromey.com>
3758
3759 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
3760
200aa7b1
TT
37612017-09-29 Tom Tromey <tom@tromey.com>
3762
3763 * utils.c (vfprintf_maybe_filtered): Use std::string.
3764 (vfprintf_unfiltered): Likewise.
3765
606aae8a
TT
37662017-09-29 Tom Tromey <tom@tromey.com>
3767
3768 * event-top.c (top_level_prompt): Return std::string.
3769 (display_gdb_prompt): Update.
3770
bd413795
TT
37712017-09-29 Tom Tromey <tom@tromey.com>
3772
3773 * unittests/common-utils-selftests.c (format): New function.
3774 (string_vprintf_tests): New function.
3775 (_initialize_common_utils_selftests): Register new tests.
3776 * common/common-utils.c (string_vprintf): New function.
3777 * common/common-utils.h (string_vprintf): Declare.
3778
256642e8
PA
37792017-09-29 Pedro Alves <palves@redhat.com>
3780
3781 * common/rsp-low.c (unpack_varlen_hex): Constify.
3782 * common/rsp-low.h (unpack_varlen_hex): Constify.
3783 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3784 Constify.
3785 * remote.c (remote_set_permissions, read_ptid)
3786 (remote_current_thread, remote_get_threads_with_qthreadinfo)
3787 (remote_static_tracepoint_marker_at)
3788 (remote_static_tracepoint_markers_by_strid)
3789 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
3790 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
3791 (parse_tracepoint_definition, parse_tsv_definition)
3792 (parse_static_tracepoint_marker_definition): Constify.
3793 * tracepoint.h (parse_static_tracepoint_marker_definition)
3794 (parse_trace_status, parse_tracepoint_status)
3795 (parse_tracepoint_definition, parse_tsv_definition): Constify.
3796
b6bb3468
PA
37972017-09-29 Pedro Alves <palves@redhat.com>
3798
3799 * remote.c (target_buf, target_buf_size): Delete.
3800 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
3801 Use the connection's packet buffer instead.
3802 All callers adjusted.
3803 (_initialize_remote): Remove references to target_buf and
3804 target_buf_size.
3805
b2f8eb7a
PA
38062017-09-28 Pedro Alves <palves@redhat.com>
3807
3808 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3809 unittests/common-utils-selftests.c.
3810 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
3811 (COMMON_OBS): Remove utils-selftests.o.
3812 * utils-selftests.c: Move to ...
3813 * unittests/common-utils-selftests.c: ... here and rename self
3814 test to "string_printf".
3815
08302ed2
DE
38162017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
3817
3818 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
3819 having NULL cus or tus.
3820
96a5a1d3
UW
38212017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3822
3823 * arm-tdep.c: (convert_from_extended): Remove.
3824 (convert_to_extended): Likewise.
3825 (arm_extract_return_value): Use convert_typed_floating.
3826 (arm_store_return_value): Likewise.
3827
3828 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3829 * sh-tdep.c: Do not include "floatformat.h".
3830 (sh_littlebyte_bigword_type): New function.
3831 (sh_register_convert_to_virtual): Use convert_typed_floating.
3832 (sh_register_convert_to_raw): Likewise.
3833 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3834 (sh64_littlebyte_bigword_type): New function.
3835 (sh64_extract_return_value): Use convert_typed_floating.
3836 (sh64_register_convert_to_virtual): Likewise.
3837 (sh64_register_convert_to_raw): Likewise.
3838
0db7851f
UW
38392017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3840
3841 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
3842 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
3843
3844 * gdbtypes.h (union type_specific): Make field floatformat hold
3845 just a single struct floatformat, not an array.
3846 (floatformat_from_type): Move here.
3847 * gdbtypes.c (floatformat_from_type): Move here. Update to
3848 changed TYPE_FLOATFORMAT definition.
3849 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
3850 (recursive_dump_type): Likewise.
3851 (init_float_type): Install correct floatformat for byte order.
3852 (arch_float_type): Likewise.
3853
77b7c781
UW
38542017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3855
3856 * gdbtypes.c (init_type): Change incoming argument from
3857 length-in-bytes to length-in-bits. Assert length is a
3858 multiple of TARGET_CHAR_BITS.
3859 (arch_type, arch_flags_type): Likewise.
3860 (init_integer_type): Update call to init_type.
3861 (init_character_type): Likewise.
3862 (init_boolean_type): Likewise.
3863 (init_float_type): Likewise.
3864 (init_decfloat_type): Likewise.
3865 (init_complex_type): Likewise.
3866 (init_pointer_type): Likewise.
3867 (objfile_type): Likewise.
3868 (arch_integer_type): Update call to arch_type.
3869 (arch_character_type): Likewise.
3870 (arch_boolean_type): Likewise.
3871 (arch_float_type): Likewise.
3872 (arch_decfloat_type): Likewise.
3873 (arch_complex_type): Likewise.
3874 (arch_pointer_type): Likewise.
3875 (gdbtypes_post_init): Likewise.
3876
3877 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
3878 (read_base_type): Likewise.
3879 * mdebugread.c (basic_type): Likewise.
3880 * stabsread.c (dbx_init_float_type): Likewise.
3881 (rs6000_builtin_type): Likewise.
3882 (read_range_type): Likewise. Also, fix call to init_integer_type
3883 with erroneous length argument.
3884
3885 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
3886 * d-lang.c (build_d_types): Likewise.
3887 * f-lang.c (build_fortran_types): Likewise.
3888 * go-lang.c (build_go_types): Likewise.
3889 * opencl-lang.c (build_opencl_types): Likewise.
3890 * jit.c (finalize_symtab): Likewise.
3891 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3892 (build_std_type_info_type): Likewise.
3893 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
3894 update call to arch_flags_type.
3895
3896 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
3897 arch_type.
3898 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
3899 * windows-tdep.c (windows_get_tlb_type): Likewise.
3900
3901 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
3902 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
3903 * m32c-tdep.c (make_types): Likewise.
3904 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3905 (rl78_psw_type): Update call to arch_flags_type.
3906 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
3907 * rx-tdep.c (rx_psw_type): Likewise.
3908 (rx_fpsw_type): Likewise.
3909 * sparc-tdep.c (sparc_psr_type): Likewise.
3910 (sparc_fsr_type): Likewise.
3911 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
3912 (sparc64_ccr_type): Likewise.
3913 (sparc64_fsr_type): Likewise.
3914 (sparc64_fprs_type): Likewise.
3915
f21b4d5c
TT
39162017-09-27 Tom Tromey <tom@tromey.com>
3917
3918 * findcmd.c (find_command): Constify.
3919
643c2ffa
TT
39202017-09-27 Tom Tromey <tom@tromey.com>
3921
3922 * ada-tasks.c (task_command_1, task_command): Constify.
3923
510e5e56
TT
39242017-09-27 Tom Tromey <tom@tromey.com>
3925
3926 * symtab.c (maintenance_print_symbol_cache)
3927 (maintenance_flush_symbol_cache)
3928 (maintenance_print_symbol_cache_statistics): Constify.
3929
e503b191
TT
39302017-09-27 Tom Tromey <tom@tromey.com>
3931
3932 * inferior.c (detach_inferior_command, kill_inferior_command)
3933 (inferior_command): Constify.
3934
4e001312
TT
39352017-09-27 Tom Tromey <tom@tromey.com>
3936
3937 * regcache.c (regcache_print, maintenance_print_registers)
3938 (maintenance_print_raw_registers)
3939 (maintenance_print_cooked_registers)
3940 (maintenance_print_register_groups)
3941 (maintenance_print_remote_registers): Constify.
3942
77763700
TT
39432017-09-27 Tom Tromey <tom@tromey.com>
3944
3945 * printcmd.c (map_display_numbers, undisplay_command)
3946 (enable_disable_display_command, enable_display_command)
3947 (disable_display_command): Constify.
3948
4495129a
TT
39492017-09-27 Tom Tromey <tom@tromey.com>
3950
3951 * breakpoint.h (delete_command): Don't declare.
3952 * breakpoint.c (delete_command, enable_once_command)
3953 (enable_count_command, enable_delete_command, breakpoint_1)
3954 (maintenance_info_breakpoints, stopin_command, stopat_command)
3955 (delete_command, delete_trace_command, save_breakpoints)
3956 (save_breakpoints_command, save_tracepoints_command): Constify.
3957
3088cf40
TT
39582017-09-27 Tom Tromey <tom@tromey.com>
3959
3960 * macrocmd.c (macro_expand_command, macro_expand_once_command)
3961 (skip_ws, extract_identifier, macro_define_command)
3962 (macro_undef_command, macro_list_command): Constify.
3963
69f476a3
TT
39642017-09-27 Tom Tromey <tom@tromey.com>
3965
3966 * infcmd.c (environment_info, set_environment_command)
3967 (unset_environment_command, path_info, info_proc_cmd_1)
3968 (info_proc_cmd_mappings, info_proc_cmd_stat)
3969 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
3970 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
3971
c4a3e68e
TT
39722017-09-27 Tom Tromey <tom@tromey.com>
3973
3974 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
3975 Constify.
3976
c9d31bd6
TT
39772017-09-27 Tom Tromey <tom@tromey.com>
3978
3979 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
3980
1f3f85eb
TT
39812017-09-27 Tom Tromey <tom@tromey.com>
3982
3983 * demangle.c (demangle_command): Constify.
3984
9c504b5d
TT
39852017-09-27 Tom Tromey <tom@tromey.com>
3986
3987 * progspace.c (maintenance_info_program_spaces_command):
3988 Constify.
3989
6663cf91
TT
39902017-09-27 Tom Tromey <tom@tromey.com>
3991
3992 * compile/compile.c (check_raw_argument, compile_file_command)
3993 (compile_code_command, compile_print_command): Constify.
3994
34e5fa26
TT
39952017-09-27 Tom Tromey <tom@tromey.com>
3996
3997 * reggroups.c (maintenance_print_reggroups): Constify.
3998
8384c356
TT
39992017-09-27 Tom Tromey <tom@tromey.com>
4000
4001 * dwarf2read.c (save_gdb_index_command): Constify.
4002
884beb0c
TT
40032017-09-27 Tom Tromey <tom@tromey.com>
4004
4005 * stap-probe.c (info_probes_stap_command): Constify.
4006
e0b2930c
TT
40072017-09-27 Tom Tromey <tom@tromey.com>
4008
4009 * fork-child.c (unset_exec_wrapper_command): Constify.
4010
f938677d
TT
40112017-09-27 Tom Tromey <tom@tromey.com>
4012
4013 * btrace.c (get_uint, get_context_size, no_chunk)
4014 (maint_btrace_packet_history_cmd)
4015 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
4016 (maint_info_btrace_cmd): Constify.
4017
8949cb87
TT
40182017-09-27 Tom Tromey <tom@tromey.com>
4019
4020 * reverse.c (delete_bookmark_command): Constify.
4021
ac88e2de
TT
40222017-09-27 Tom Tromey <tom@tromey.com>
4023
4024 * remote.c (set_memory_packet_size)
4025 (set_memory_write_packet_size, show_memory_write_packet_size)
4026 (set_memory_read_packet_size, show_memory_read_packet_size)
4027 (compare_sections_command, packet_command, remote_put_command)
4028 (remote_get_command, remote_delete_command): Constify.
4029
bd4c9dfe
TT
40302017-09-27 Tom Tromey <tom@tromey.com>
4031
4032 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
4033 (set_mipsfpu_double_command, set_mipsfpu_none_command)
4034 (set_mipsfpu_auto_command): Constify.
4035
5e93d4c6
TT
40362017-09-27 Tom Tromey <tom@tromey.com>
4037
4038 * cli/cli-cmds.h (cd_command): Constify.
4039 * cli/cli-cmds.c (cd_command): Constify.
4040
fc41a75b
TT
40412017-09-27 Tom Tromey <tom@tromey.com>
4042
4043 * thread.c (thread_name_command, thread_find_command): Constify.
4044
67810076
TT
40452017-09-27 Tom Tromey <tom@tromey.com>
4046
4047 * probe.c (enable_probes_command, disable_probes_command):
4048 Constify.
4049
1d8b34a7
TT
40502017-09-27 Tom Tromey <tom@tromey.com>
4051
4052 * symfile.c (symbol_file_command): Constify.
4053 * gdbcore.h (deprecated_file_changed_hook): Constify.
4054 * exec.c (deprecated_file_changed_hook, exec_file_command)
4055 (file_command): Constify.
4056 * defs.h (symbol_file_command): Constify.
4057
442019e1
TT
40582017-09-27 Tom Tromey <tom@tromey.com>
4059
4060 * remote-fileio.c (set_system_call_allowed)
4061 (show_system_call_allowed): Constify.
4062
2983f7cb
TT
40632017-09-27 Tom Tromey <tom@tromey.com>
4064
4065 * tracepoint.c (delete_trace_variable_command)
4066 (tfind_end_command, tfind_start_command, tfind_pc_command)
4067 (tfind_tracepoint_command, tfind_line_command)
4068 (tfind_range_command, tfind_outside_command): Constify.
4069
4fd41b24
TT
40702017-09-27 Tom Tromey <tom@tromey.com>
4071
4072 * ax-gdb.c (maint_agent_printf_command, agent_command)
4073 (agent_eval_command): Constify.
4074
f2fc3015
TT
40752017-09-27 Tom Tromey <tom@tromey.com>
4076
4077 * tracepoint.c (info_scope_command): Constify.
4078 * python/python.c (gdbpy_decode_line): Constify.
4079 * python/py-breakpoint.c (bppy_init): Constify.
4080 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
4081 * location.h: (new_linespec_location)
4082 (string_to_event_location_basic, string_to_event_location):
4083 Constify.
4084 * location.c (new_linespec_location)
4085 (string_to_event_location_basic, string_to_event_location):
4086 Constify.
4087 * linespec.h (decode_line_with_current_source)
4088 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
4089 * linespec.c (linespec_lex_to_end)
4090 (decode_line_with_current_source)
4091 (decode_line_with_last_displayed): Constify.
4092 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
4093 Constify.
4094 * cli/cli-cmds.c (edit_command, list_command): Constify.
4095 * breakpoint.h (until_break_command, watch_command_wrapper)
4096 (awatch_command_wrapper, rwatch_command_wrapper)
4097 (init_ada_exception_breakpoint): Constify.
4098 * breakpoint.c (break_command_1, dprintf_command)
4099 (break_range_command, watch_command_wrapper)
4100 (rwatch_command_wrapper, awatch_command_wrapper)
4101 (until_break_command, init_ada_exception_breakpoint)
4102 (strace_marker_create_sals_from_location, trace_command)
4103 (ftrace_command, strace_command, struct tracepoint): Constify.
4104 * ax-gdb.c (agent_command_1): Constify.
4105 * ada-lang.c (ada_exception_sal): Constify.
4106
8c2f95f4
TT
41072017-09-27 Tom Tromey <tom@tromey.com>
4108
4109 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
4110 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
4111 (get_context_size, no_chunk, get_insn_history_modifiers)
4112 (cmd_record_insn_history, get_call_history_modifiers)
4113 (cmd_record_call_history): Constify.
4114
a0d65762
TT
41152017-09-27 Tom Tromey <tom@tromey.com>
4116
4117 * source.c (show_substitute_path_command)
4118 (unset_substitute_path_command, set_substitute_path_command):
4119 Constify.
4120
58971144
TT
41212017-09-27 Tom Tromey <tom@tromey.com>
4122
4123 * typeprint.c (maintenance_print_type): Constify.
4124 * maint.c (maintenance_dump_me, maintenance_demangle)
4125 (maintenance_time_display, maintenance_info_sections)
4126 (maintenance_print_statistics, maintenance_deprecate)
4127 (maintenance_undeprecate): Constify.
4128 (maintenance_do_deprecate): Constify. Use std::string.
4129 (maintenance_selftest): Constify.
4130 * gdbtypes.h (maintenance_print_type): Constify.
4131
c482f52c
TT
41322017-09-27 Tom Tromey <tom@tromey.com>
4133
4134 * hppa-tdep.c (unwind_command): Constify.
4135
e100df1a
TT
41362017-09-27 Tom Tromey <tom@tromey.com>
4137
4138 * target-descriptions.c (unset_tdesc_filename_cmd)
4139 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
4140 Constify.
4141
31d56ade
TT
41422017-09-27 Tom Tromey <tom@tromey.com>
4143
4144 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
4145
b961da0b
TT
41462017-09-27 Tom Tromey <tom@tromey.com>
4147
4148 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
4149
e2d8ae16
TT
41502017-09-27 Tom Tromey <tom@tromey.com>
4151
4152 * tui/tui-regs.c (tui_reg_command): Constify.
4153
863779b0
TT
41542017-09-27 Tom Tromey <tom@tromey.com>
4155
4156 * skip.c (skip_file_command, skip_function_command)
4157 (skip_enable_command, skip_disable_command, skip_delete_command):
4158 Constify.
4159
cdb34d4a
TT
41602017-09-27 Tom Tromey <tom@tromey.com>
4161
4162 * record-btrace.c (cmd_record_btrace_bts_start)
4163 (cmd_record_btrace_pt_start): Constify.
4164
e99c83e7
TT
41652017-09-27 Tom Tromey <tom@tromey.com>
4166
4167 * symmisc.c (maintenance_print_symbols)
4168 (maintenance_print_msymbols, maintenance_print_objfiles)
4169 (maintenance_info_symtabs, maintenance_check_symtabs)
4170 (maintenance_expand_symtabs, maintenance_info_line_tables):
4171 Constify.
4172
32faf971
TT
41732017-09-27 Tom Tromey <tom@tromey.com>
4174
4175 * top.c (new_ui_command): Constify.
4176
2cf311eb
TT
41772017-09-27 Tom Tromey <tom@tromey.com>
4178
4179 * symfile.c (add_symbol_file_command)
4180 (remove_symbol_file_command, list_overlays_command)
4181 (map_overlay_command, unmap_overlay_command)
4182 (overlay_auto_command, overlay_manual_command)
4183 (overlay_off_command, overlay_load_command): Constify.
4184
e6738699
TT
41852017-09-27 Tom Tromey <tom@tromey.com>
4186
4187 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4188 (info_spu_mailbox_command, info_spu_dma_command)
4189 (info_spu_proxydma_command): Constify.
4190
aa360cd5
TT
41912017-09-27 Tom Tromey <tom@tromey.com>
4192
4193 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
4194
898241a5
TT
41952017-09-27 Tom Tromey <tom@tromey.com>
4196
4197 * cli/cli-script.c (user_defined_command): Constify.
4198
2d0ac106
TT
41992017-09-27 Tom Tromey <tom@tromey.com>
4200
4201 * cli/cli-dump.c (dump_memory_command, dump_value_command)
4202 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
4203 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
4204 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
4205 (dump_binary_value, append_binary_memory, append_binary_value):
4206 Constify.
4207 (struct dump_context) <func>: Constify.
4208 (add_dump_command): Update.
4209
dede02ce
TT
42102017-09-27 Tom Tromey <tom@tromey.com>
4211
4212 * cli/cli-cmds.c (show_version, show_configuration)
4213 (source_command, show_user): Constify.
4214
d3cb6b99
TT
42152017-09-27 Tom Tromey <tom@tromey.com>
4216
4217 * target.c (maintenance_print_target_stack): Constify.
4218
1970a12f
TT
42192017-09-27 Tom Tromey <tom@tromey.com>
4220
4221 * interps.c (interpreter_exec_cmd): Constify.
4222
41243651
TT
42232017-09-27 Tom Tromey <tom@tromey.com>
4224
4225 * record-full.c (cmd_record_full_restore): Constify.
4226
4465d9db
TT
42272017-09-27 Tom Tromey <tom@tromey.com>
4228
4229 * memattr.c (enable_mem_command, disable_mem_command)
4230 (delete_mem_command): Constify.
4231
ad25e423
TT
42322017-09-27 Tom Tromey <tom@tromey.com>
4233
4234 * value.c (show_convenience): Constify.
4235
d64097b1
TT
42362017-09-27 Tom Tromey <tom@tromey.com>
4237
4238 * gdbcore.h (core_file_command): Update.
4239 * corefile.c (core_file_command): Constify.
4240
4d4589ef
TT
42412017-09-27 Tom Tromey <tom@tromey.com>
4242
4243 * user-regs.c (maintenance_print_user_registers): Constify.
4244
32a7bf17
TT
42452017-09-27 Tom Tromey <tom@tromey.com>
4246
4247 * cp-namespace.c (maintenance_cplus_namespace): Constify.
4248
4a475551
TT
42492017-09-27 Tom Tromey <tom@tromey.com>
4250
4251 * cp-support.c (first_component_command): Constify.
4252
990b9f9f
TT
42532017-09-27 Tom Tromey <tom@tromey.com>
4254
4255 * psymtab.c (maintenance_print_psymbols)
4256 (maintenance_info_psymtabs, maintenance_check_psymtabs):
4257 Constify.
4258
c281872e
TT
42592017-09-27 Tom Tromey <tom@tromey.com>
4260
4261 * windows-tdep.c (display_tib): Constify.
4262
5b64bf74
TT
42632017-09-27 Tom Tromey <tom@tromey.com>
4264
4265 * linux-fork.c (delete_checkpoint_command)
4266 (detach_checkpoint_command): Constify.
4267
4ada038f
TT
42682017-09-27 Tom Tromey <tom@tromey.com>
4269
4270 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
4271
57f5a81b
TT
42722017-09-27 Tom Tromey <tom@tromey.com>
4273
4274 * arc-tdep.c (dump_arc_instruction_command): Constify.
4275
b0a8e6c4
TT
42762017-09-27 Tom Tromey <tom@tromey.com>
4277
4278 * valprint.c (set_radix, show_radix): Constify.
4279
8d97dc1c
TT
42802017-09-27 Tom Tromey <tom@tromey.com>
4281
4282 * dtrace-probe.c (info_probes_dtrace_command): Constify.
4283
eb7c454d
TT
42842017-09-27 Tom Tromey <tom@tromey.com>
4285
4286 * command.h (not_just_help_class_command): Update.
4287 * cli/cli-decode.h (not_just_help_class_command): Update.
4288 * cli/cli-decode.c (not_just_help_class_command): Constify.
4289
e4e33335
TT
42902017-09-27 Tom Tromey <tom@tromey.com>
4291
4292 * gdb_bfd.c (maintenance_info_bfds): Constify.
4293
0450cc4c
TT
42942017-09-27 Tom Tromey <tom@tromey.com>
4295
4296 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
4297 overloads.
4298 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
4299 (do_const_cfunc): New function.
4300 (cmd_cfunc_eq): New overload.
4301 (cli_user_command_p): Check do_const_cfunc.
4302 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
4303 const_cfunc.
4304 * command.h (add_cmd): Add const overload and no-function
4305 overload.
4306 (set_cmd_cfunc): Add const overload.
4307 (cmd_const_cfunc_ftype): Declare.
4308 (cmd_cfunc_eq): Add const overload.
4309 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
4310 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
4311 overload.
4312
a9bbfbd8
TT
43132017-09-27 Tom Tromey <tom@tromey.com>
4314
4315 * macroexp.c (get_next_token_for_substitution): New function.
4316 (substitute_args): Call it. Check for __VA_OPT__.
4317
5230b05a
WT
43182017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
4319 Pedro Alves <palves@redhat.com>
4320
4321 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
4322 producer_is_icc_lt_14.
4323 (producer_is_icc_lt_14): New function.
4324 (check_producer): Add code for checking version of ICC.
4325 (producer_is_icc): Move to producer.c.
4326 (read_structure_type): Restrict ICC workaround to ICC<14.
4327 * producer.c: Include selftest.h.
4328 (producer_is_icc, producer_parsing_tests, _initialize_producer):
4329 New functions.
4330 * producer.h (producer_is_icc): New declaration.
4331
b32b108a
WT
43322017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
4333
4334 * Makefile.in (SFILES): Add producer.c.
4335 (COMMON_OBS): Add producer.o
4336 * amd64-tdep.c (producer.h): Add new include.
4337 * dwarf2read.c (producer.h): Add new include.
4338 * producer.c: New file.
4339 * producer.h: New file.
4340 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
4341 producer.c.
4342 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
4343 producer.h.
4344
5007d765
MK
43452017-09-26 Matthias Klose <doko@ubuntu.com>
4346
4347 * configure.ac: Search ncursesw before ncurses.
4348 Check ncursesw/ncurses.h before ncurses/ncurses.h.
4349 * gdb_curses.h: Include <ncursesw/ncurses.h>
4350 * config.in, configure: Regenerate.
4351
281c4447
RO
43522017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4353
4354 PR gdb/22185
4355 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
4356 obsolete.
4357 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
4358 Remove i386sol2 support.
4359 * configure.nat <i386sol2>: Remove.
4360 <sol2-64>: Fold into ...
4361 <sol2>: ... this.
4362 Move common settings to default section.
4363 Add sol-thread.o.
4364 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
4365 x86_64-*-solaris2.1[0-9]*>: Rename to ...
4366 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
4367 <i[34567]86-*-solaris*>: Remove.
4368 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
4369
4370 * configure.ac: Remove wctype in libw check.
4371 (_MSE_INT_H): Don't define on Solaris 7-9.
4372 <solaris*>: Remove libthread_db.so.1 check.
4373 * configure: Regenerate.
4374 * config.in: Regenerate.
4375
4376 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
4377 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
4378 (gdb_ps_size_t): Remove.
4379 Use base types in users.
4380 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
4381
4382 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
4383
39b06c20
RO
43842017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4385
4386 PR build/22206
4387 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
4388 (adi_is_addr_mapped): Likewise.
4389 (PSR_ICC): Don't redefine.
4390 (PSR_IMPL): Likewise.
4391
6c3e20f1
TT
43922017-09-25 Tom Tromey <tom@tromey.com>
4393
4394 * regcache.c (regcache::dump): Use string_printf.
4395
b292235f
TT
43962017-09-25 Tom Tromey <tom@tromey.com>
4397
4398 * regcache.c (class regcache_invalidator): New.
4399 (struct register_to_invalidate): Remove.
4400 (make_cleanup_regcache_invalidate): Remove.
4401 (regcache::raw_write): Use regcache_invalidator.
4402
9ac86b52
TT
44032017-09-25 Tom Tromey <tom@tromey.com>
4404
4405 * spu-tdep.c (spu2ppu_sniffer): Update.
4406 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
4407 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
4408 Remove.
4409 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
4410 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
4411 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
4412 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
4413 (frame_pop): Update.
4414
c0e383c6
TT
44152017-09-25 Tom Tromey <tom@tromey.com>
4416
4417 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
4418 * regcache.h (regcache_xfree): Don't declare.
4419 * regcache.c (regcache_xfree): Remove.
4420 (do_regcache_xfree): Use delete.
4421 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
4422 * linux-fork.c (free_fork): Use delete.
4423 (fork_save_infrun_state): Likewise.
4424 * jit.c (jit_dealloc_cache): Use delete.
4425 * infrun.c (discard_infcall_suspend_state): Use delete.
4426
791199cc
TT
44272017-09-25 Tom Tromey <tom@tromey.com>
4428
4429 * regcache.h (regcache_xmalloc): Don't declare.
4430 (regcache_raw_set_cached_value): Update comment.
4431 * regcache.c (regcache_xmalloc): Remove.
4432 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
4433 * jit.c (jit_frame_sniffer): Use new.
4434 * frame.c (frame_save_as_regcache): Use new.
4435
289e23aa
AA
44362017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4437
4438 * NEWS: Advertise support for guarded-storage registers on IBM z.
4439
1b63490c
AA
44402017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4441
4442 * s390-linux-nat.c (have_regset_gs): New static variable.
4443 (s390_linux_fetch_inferior_registers): Handle guarded-storage
4444 control block and guarded-storage broadcast control regsets.
4445 (s390_read_description): Detect whether the target has
4446 guarded-storage support, return appropriate tdesc.
4447 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
4448 (features/s390x-gs-linux64.c): Likewise.
4449 (struct gdbarch_tdep) <have_gs>: New field.
4450 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
4451 (s390_gsbc_regset): New variables.
4452 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
4453 and s390_gsbc_regset, if applicable.
4454 (s390_core_read_description): Check whether core file was from a
4455 target with guarded-storage support; include appropriate regsets.
4456 (s390_gdbarch_init): Add registers for guarded-storage support.
4457 (_initialize_s390_tdep): Initialize new target descriptions that
4458 include registers for guarded-storage support.
4459 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
4460 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
4461 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
4462 (S390_NUM_REGS): Adjust macro definition.
4463 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
4464 (tdesc_s390x_gs_linux64): New declarations.
4465
96235dc1
AA
44662017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4467
4468 * features/s390-gs-linux64.xml: New file.
4469 * features/s390-gs.xml: New file.
4470 * features/s390-gsbc.xml: New file.
4471 * features/s390x-gs-linux64.xml: New file.
4472 * features/Makefile (WHICH): Add s390-gs-linux64 and
4473 s390x-gs-linux64.
4474 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
4475 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
4476 * features/s390-gs-linux64.c: New generated file.
4477 * features/s390x-gs-linux64.c: New file.
4478 * regformats/s390-gs-linux64.dat: New file.
4479 * regformats/s390x-gs-linux64.dat: New file.
4480
b4a7c699
TT
44812017-09-23 Tom Tromey <tom@tromey.com>
4482
4483 * defs.h (make_cleanup_override_quit_handler): Don't declare.
4484
c2f97536
TT
44852017-09-22 Tom Tromey <tom@tromey.com>
4486
4487 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
4488 type to scoped_restore_tmpl.
4489 <scoped_input_handler>: Initialize m_quit_handler directly.
4490
43573013
SDJ
44912017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
4492
4493 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
4494 (cd_command): Likewise. Free "current_directory" before
4495 assigning to it.
4496 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
4497 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
4498 * top.c (gdb_dirbuf): Remove global declaration.
4499 * top.h (gdb_dirbuf): Likewise.
4500
6ec2e0f5
SDJ
45012017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
4502
4503 * gnulib/aclocal.m4: Regenerate.
4504 * gnulib/config.in: Regenerate.
4505 * gnulib/configure: Regenerate.
4506 * gnulib/import/Makefile.am: Regenerate.
4507 * gnulib/import/Makefile.in: Regenerate.
4508 * gnulib/import/assure.h: New file.
4509 * gnulib/import/at-func.c: Likewise
4510 * gnulib/import/chdir-long.c: New file.
4511 * gnulib/import/chdir-long.h: New file.
4512 * gnulib/import/cloexec.c: New file.
4513 * gnulib/import/cloexec.h: New file.
4514 * gnulib/import/close.c: New file.
4515 * gnulib/import/closedir.c: New file.
4516 * gnulib/import/dirent-private.h: New file.
4517 * gnulib/import/dup-safer.c: New file.
4518 * gnulib/import/dup.c: New file.
4519 * gnulib/import/dup2.c: New file.
4520 * gnulib/import/error.c: New file.
4521 * gnulib/import/error.h: New file.
4522 * gnulib/import/exitfail.c: New file.
4523 * gnulib/import/exitfail.h: New file.
4524 * gnulib/import/fchdir.c: New file.
4525 * gnulib/import/fcntl.c: New file.
4526 * gnulib/import/fcntl.in.h: New file.
4527 * gnulib/import/fd-hook.c: New file.
4528 * gnulib/import/fd-hook.h: New file.
4529 * gnulib/import/fd-safer.c: New file.
4530 * gnulib/import/fdopendir.c: New file.
4531 * gnulib/import/filename.h: New file.
4532 * gnulib/import/filenamecat-lgpl.c: New file.
4533 * gnulib/import/filenamecat.h: New file.
4534 * gnulib/import/fstat.c: New file.
4535 * gnulib/import/fstatat.c: New file.
4536 * gnulib/import/getcwd-lgpl.c: New file.
4537 * gnulib/import/getcwd.c: New file.
4538 * gnulib/import/getdtablesize.c: New file.
4539 * gnulib/import/getlogin_r.c: New file.
4540 * gnulib/import/getprogname.c: New file.
4541 * gnulib/import/getprogname.h: New file.
4542 * gnulib/import/gettext.h: New file.
4543 * gnulib/import/glob-libc.h: New file.
4544 * gnulib/import/glob.c: New file.
4545 * gnulib/import/glob.in.h: New file.
4546 * gnulib/import/intprops.h: New file.
4547 * gnulib/import/m4/chdir-long.m4: New file.
4548 * gnulib/import/m4/close.m4: New file.
4549 * gnulib/import/m4/closedir.m4: New file.
4550 * gnulib/import/m4/d-ino.m4: New file.
4551 * gnulib/import/m4/d-type.m4: New file.
4552 * gnulib/import/m4/dup.m4: New file.
4553 * gnulib/import/m4/dup2.m4: New file.
4554 * gnulib/import/m4/error.m4: New file.
4555 * gnulib/import/m4/fchdir.m4: New file.
4556 * gnulib/import/m4/fcntl.m4: New file.
4557 * gnulib/import/m4/fcntl_h.m4: New file.
4558 * gnulib/import/m4/fdopendir.m4: New file.
4559 * gnulib/import/m4/filenamecat.m4: New file.
4560 * gnulib/import/m4/fstat.m4: New file.
4561 * gnulib/import/m4/fstatat.m4: New file.
4562 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
4563 * gnulib/import/m4/getcwd-path-max.m4: New file.
4564 * gnulib/import/m4/getcwd.m4: New file.
4565 * gnulib/import/m4/getdtablesize.m4: New file.
4566 * gnulib/import/m4/getlogin_r.m4: New file.
4567 * gnulib/import/m4/getprogname.m4: New file.
4568 * gnulib/import/m4/glob.m4: New file.
4569 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4570 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4571 * gnulib/import/m4/mempcpy.m4: New file.
4572 * gnulib/import/m4/memrchr.m4: New file.
4573 * gnulib/import/m4/mode_t.m4: New file.
4574 * gnulib/import/m4/msvc-inval.m4: New file.
4575 * gnulib/import/m4/msvc-nothrow.m4: New file.
4576 * gnulib/import/m4/open.m4: New file.
4577 * gnulib/import/m4/openat.m4: New file.
4578 * gnulib/import/m4/opendir.m4: New file.
4579 * gnulib/import/m4/readdir.m4: New file.
4580 * gnulib/import/m4/realloc.m4: New file.
4581 * gnulib/import/m4/rewinddir.m4: New file.
4582 * gnulib/import/m4/save-cwd.m4: New file.
4583 * gnulib/import/m4/strdup.m4: New file.
4584 * gnulib/import/m4/strerror.m4: New file.
4585 * gnulib/import/m4/unistd-safer.m4: New file.
4586 * gnulib/import/mempcpy.c: New file.
4587 * gnulib/import/memrchr.c: New file.
4588 * gnulib/import/msvc-inval.c: New file.
4589 * gnulib/import/msvc-inval.h: New file.
4590 * gnulib/import/msvc-nothrow.c: New file.
4591 * gnulib/import/msvc-nothrow.h: New file.
4592 * gnulib/import/open.c: New file.
4593 * gnulib/import/openat-die.c: New file.
4594 * gnulib/import/openat-priv.h: New file.
4595 * gnulib/import/openat-proc.c: New file.
4596 * gnulib/import/openat.c: New file.
4597 * gnulib/import/openat.h: New file.
4598 * gnulib/import/opendir.c: New file.
4599 * gnulib/import/pipe-safer.c: New file.
4600 * gnulib/import/readdir.c: New file.
4601 * gnulib/import/realloc.c: New file.
4602 * gnulib/import/rewinddir.c: New file.
4603 * gnulib/import/save-cwd.c: New file.
4604 * gnulib/import/save-cwd.h: New file.
4605 * gnulib/import/strdup.c: New file.
4606 * gnulib/import/strerror-override.c: New file.
4607 * gnulib/import/strerror-override.h: New file.
4608 * gnulib/import/strerror.c: New file.
4609 * gnulib/import/unistd--.h: New file.
4610 * gnulib/import/unistd-safer.h: New file.
4611 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
4612 "getcwd" and "glob".
4613 * ser-tcp.c: Undefine "close" before redefining it.
4614
432ae719
SM
46152017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4616
4617 * guile/scm-value.c (gdbscm_value_address): Initialize address,
4618 get rid of res_val.
4619
4fa7574e
RO
46202017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4621
4622 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
4623 <sol2,sparc>: Likewise.
4624 <sol2-64,i386>: Likewise.
4625
4626 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
4627 -Wdeprecated-declarations on *-*-solaris*.
4628 * configure: Regenerate.
4629
4630 * procfs.c: Include "nat/inferior.h".
4631 (procfs_info_proc): Fix typo.
4632
f6327dcb
KB
46332017-09-21 Kevin Buettner <kevinb@redhat.com>
4634
4635 * remote.c (vector): Include.
4636 (struct private_thread_info): Add field, thread_handle.
4637 (free_private_thread_info): Deallocate storage associated with
4638 thread handle.
4639 (get_private_info_thread): Initialize `thread_handle' field.
4640 (struct thread_item): Add field, thread_handle.
4641 (clear_threads_listing_context): Deallocate storage associated
4642 with thread handle.
4643 (start_thread): Add support for "handle" attribute.
4644 (thread_attributes): Add "handle".
4645 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
4646 field.
4647 (remote_update_thread_list): Update thread_handle.
4648 (remote_thread_handle_to_thread_info): New function.
4649 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
4650
fbbe5337
KB
46512017-09-21 Kevin Buettner <kevinb@redhat.com>
4652
4653 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
4654 function.
4655 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
4656 * python/python-internal.h (thread_object_type): Declare.
4657
e04ee09e
KB
46582017-09-21 Kevin Buettner <kevinb@redhat.com>
4659
4660 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
4661 (target_thread_handle_to_thread_info): Declare.
4662 * target.c (target_thread_handle_to_thread_info): New function.
4663 * target-delegates.c: Regenerate.
4664 * gdbthread.h (find_thread_by_handle): Declare.
4665 * thread.c (find_thread_by_handle): New function.
4666 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
4667 function.
4668 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
4669
1e5b66ed
SM
46702017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4671
4672 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
4673
ebe48ba0
SM
46742017-09-21 Simon Marchi <simon.marchi@ericsson.com>
4675
4676 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
4677
0a0bf5dc
YQ
46782017-09-21 Yao Qi <yao.qi@linaro.org>
4679
4680 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
4681 to gdb_target_obs.
4682
d1b0a7bf
TT
46832017-09-20 Tom Tromey <tom@tromey.com>
4684
4685 * breakpoint.c (struct counted_command_line): Remove.
4686 (breakpoint_commands): Update.
4687 (alloc_counted_command_line, incref_counted_command_line)
4688 (decref_counted_command_line, do_cleanup_counted_command_line)
4689 (make_cleanup_decref_counted_command_line): Remove.
4690 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
4691 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
4692 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
4693 (save_breakpoints): Update.
4694 * breakpoint.h (counted_command_line): Now a typedef to
4695 shared_ptr.
4696 (struct breakpoint) <commands>: Now a counted_command_line.
4697 (struct bpstats) <command>: Likewise.
4698
48649e1b
TT
46992017-09-20 Tom Tromey <tom@tromey.com>
4700
4701 * breakpoint.c (struct commands_info, do_map_commands_command):
4702 Remove.
4703 (commands_command_1): Update.
4704 (iterate_over_related_breakpoints): Take a function_view.
4705 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
4706 (delete_command): Update.
4707 (map_breakpoint_numbers): Take a function_view.
4708 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
4709 (disable_command): Update.
4710 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
4711 (enable_command): Update.
4712 (struct disp_data, do_enable_breakpoint_disp)
4713 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
4714 (do_map_enable_delete_breakpoint): Remove.
4715 (enable_once_command, enable_count_command, enable_delete_command)
4716 (delete_trace_variable_command): Update.
4717
04afa70c
TT
47182017-09-20 Tom Tromey <tom@tromey.com>
4719
4720 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
4721 (bpstat_clear): Use delete.
4722 (bpstats): New constructors.
4723 (bpstat_copy, bpstat_stop_status): Use new.
4724 (dprintf_after_condition_true): Update.
4725 * breakpoint.h (bpstats::bpstats): Add constructors.
4726 (bpstats::~bpstats): Add destructor.
4727
c83833f4
PA
47282017-09-20 Pedro Alves <palves@redhat.com>
4729
4730 * eval.c (make_params): Delete, refactored as ...
4731 (class fake_method): ... this new type's ctor.
4732 (fake_method::~fake_method): New.
4733 (evaluate_subexp_standard): Use 'fake_method'.
4734
223ffa71
TT
47352017-09-20 Tom Tromey <tom@tromey.com>
4736
4737 * windows-nat.c (get_windows_debug_event, windows_wait)
4738 (do_initial_windows_stuff, windows_attach): Update.
4739 * utils.c (vwarning, internal_vproblem): Update.
4740 (ui_unregister_input_event_handler_cleanup)
4741 (prepare_to_handle_input): Remove.
4742 (class scoped_input_handler): New.
4743 (defaulted_query, prompt_for_continue): Update.
4744 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4745 Update.
4746 * top.c (undo_terminal_modifications_before_exit): Update.
4747 * target/target.h (target_terminal_init, target_terminal_inferior)
4748 (target_terminal_ours): Don't declare.
4749 (class target_terminal): New.
4750 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
4751 (target_terminal_ours_for_output)
4752 (make_cleanup_restore_target_terminal): Don't declare.
4753 (target_terminal_info): Remove.
4754 * target.c (enum terminal_state, terminal_state): Remove.
4755 (target_terminal::terminal_state): Define.
4756 (target_terminal::init): Rename from target_terminal_init.
4757 (target_terminal::inferior): Rename from
4758 target_terminal_inferior.
4759 (target_terminal::ours): Rename from target_terminal_ours.
4760 (target_terminal::ours_for_output): Rename from
4761 target_terminal_ours_for_output.
4762 (target_terminal::info): New method.
4763 (cleanup_restore_target_terminal)
4764 (make_cleanup_restore_target_terminal): Remove.
4765 * solib.c (handle_solib_event): Update.
4766 * remote.c (remote_serial_quit_handler): Update.
4767 (remote_terminal_inferior, remote_wait_as): Update.
4768 * record-full.c (record_full_wait_1): Update.
4769 * nto-procfs.c (procfs_create_inferior): Update.
4770 * nat/fork-inferior.c (startup_inferior): Update.
4771 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
4772 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
4773 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
4774 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
4775 (mi_breakpoint_created, mi_breakpoint_deleted)
4776 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
4777 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
4778 (mi_user_selected_context_changed, report_initial_inferior):
4779 Update.
4780 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
4781 (linux_nat_terminal_inferior): Update.
4782 * infrun.c (follow_fork_inferior)
4783 (handle_vfork_child_exec_or_exit, do_target_resume)
4784 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
4785 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
4786 Update.
4787 * inflow.c (child_terminal_init, info_terminal_command): Update.
4788 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
4789 (attach_command): Update.
4790 * infcall.c (call_thread_fsm_should_stop): Update.
4791 * gnu-nat.c (gnu_attach): Update.
4792 * extension.c (struct active_ext_lang_state)
4793 (restore_active_ext_lang): Update.
4794 * exceptions.c (print_flush): Update.
4795 * event-top.c (async_enable_stdin, default_quit_handler): Update.
4796 (struct quit_handler_cleanup_data, restore_quit_handler)
4797 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
4798 Remove.
4799 * cp-support.c (gdb_demangle): Update.
4800 * breakpoint.c (update_inserted_breakpoint_locations)
4801 (insert_breakpoint_locations, handle_jit_event)
4802 (disable_breakpoints_in_unloaded_shlib): Update.
4803 * annotate.c (annotate_breakpoints_invalid)
4804 (annotate_frames_invalid): Update.
4805
013af3fc
TT
48062017-09-20 Tom Tromey <tom@tromey.com>
4807
4808 * main.c (catch_command_errors): Rename from
4809 catch_command_errors_const.
4810 (captured_main_1): Update.
4811
06871ae8
PA
48122017-09-20 Pedro Alves <palves@redhat.com>
4813
4814 * cli/cli-cmds.c (list_command): Use print_sal_location.
4815 (print_sal_location): New function.
4816 (ambiguous_line_spec): Use print_sal_location.
4817 * linespec.c (symbol_to_sal): Record the symbol in the sal.
4818 * symtab.c (find_function_start_sal): Likewise.
4819 * symtab.h (symtab_and_line::symbol): New field.
4820
e5f25bc5
PA
48212017-09-20 Pedro Alves <palves@redhat.com>
4822
4823 * linespec.c (minsym_found): Handle non-text minsyms.
4824 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
4825
1b7fa39e
WT
48262017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4827
4828 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
4829 backslash.
4830
37dd0825
WT
48312017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4832
4833 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
4834 vmovups instead vmovaps.
4835 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
4836
4e5a4f58
JB
48372017-09-19 John Baldwin <jhb@FreeBSD.org>
4838
4839 * NEWS (Changes since GDB 8.0): Add starti.
4840 * infcmd.c (enum run_break): New.
4841 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
4842 case.
4843 (run_command): Use enum run_how.
4844 (start_command): Likewise.
4845 (starti_command): New function.
4846 (RUN_ARGS_HELP): New macro.
4847 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
4848 commands. Add starti command.
4849
aa70c9f1
YQ
48502017-09-19 Yao Qi <yao.qi@linaro.org>
4851
4852 * Makefile.in (monitor.o): Remove the rule.
4853
d6541620
YQ
48542017-09-19 Yao Qi <yao.qi@linaro.org>
4855
4856 * annotate.h (struct annotate_arg_emitter): Use
4857 DISABLE_COPY_AND_ASSIGN.
4858 * common/refcounted-object.h (refcounted_object): Likewise.
4859 * completer.h (struct completion_result): Likewise.
4860 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
4861 * filename-seen-cache.h (filename_seen_cache): Likewise.
4862 * gdbcore.h (thread_section_name): Likewise.
4863 * gdb_regex.h (compiled_regex): Likewise.
4864 * gdbthread.h (scoped_restore_current_thread): Likewise.
4865 * inferior.h (scoped_restore_current_inferior): Likewise.
4866 * jit.c (jit_reader): Likewise.
4867 * linespec.h (struct linespec_result): Likewise.
4868 * mi/mi-parse.h (struct mi_parse): Likewise.
4869 * nat/fork-inferior.c (execv_argv): Likewise.
4870 * progspace.h (scoped_restore_current_program_space): Likewise.
4871 * python/python-internal.h (class gdbpy_enter): Likewise.
4872 * regcache.h (regcache): Likewise.
4873 * target-descriptions.c (struct tdesc_reg): Likewise.
4874 (struct tdesc_type): Likewise.
4875 (struct tdesc_feature): Likewise.
4876 * ui-out.h (ui_out_emit_type): Likewise.
4877
0615127c
SM
48782017-09-18 Simon Marchi <simon.marchi@ericsson.com>
4879
4880 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
4881 label abort_expression.
4882
5e187554
SM
48832017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4884
4885 * common/buffer.c (buffer_xml_printf): Adjust.
4886 * common/xml-utils.c (xml_escape_text): Change return type to
4887 std::string, update code accordingly.
4888 * common/xml-utils.h (xml_escape_text): Change return type to
4889 std::string.
4890 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
4891 * windows-tdep.c (windows_xfer_shared_library): Adjust.
4892 * unittests/xml-utils-selftests.c (test_xml_escape_text):
4893 Adjust.
4894
c3d7b541
SM
48952017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4896
4897 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
4898 (SUBDIR_UNITTESTS_OBS): Add new object file.
4899 * unittests/xml-utils-selftests.c: New file.
4900
1526853e
SM
49012017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4902
4903 * common/selftest.h (selftest): New struct/interface.
4904 (register_test): Add name parameter, add new overload.
4905 (run_tests): Add filter parameter.
4906 (for_each_selftest_ftype): New typedef.
4907 (for_each_selftest): New declaration.
4908 * common/selftest.c (tests): Change type to
4909 map<string, unique_ptr<selftest>>.
4910 (simple_selftest): New struct.
4911 (register_test): New function.
4912 (register_test): Add name parameter and use it.
4913 (run_tests): Add filter parameter and use it. Add prints.
4914 Adjust to vector -> map change.
4915 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
4916 registering selftests.
4917 * arm-tdep.c (_initialize_arm_tdep): Likewise.
4918 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
4919 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
4920 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
4921 * findvar.c (_initialize_findvar): Likewise.
4922 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
4923 * maint.c (maintenance_selftest): Update call to run_tests.
4924 (maintenance_info_selftests): New function.
4925 (_initialize_maint_cmds): Register "maintenance info selftests"
4926 command. Update "maintenance selftest" doc.
4927 * regcache.c (_initialize_regcache): Add names when registering
4928 selftests.
4929 * rust-exp.y (_initialize_rust_exp): Likewise.
4930 * selftest-arch.c (gdbarch_selftest): New struct.
4931 (gdbarch_tests): Remove.
4932 (register_test_foreach_arch): Add name parameter. Call
4933 register_test.
4934 (tests_with_arch): Remove, move most content to
4935 gdbarch_selftest::operator().
4936 (_initialize_selftests_foreach_arch): Remove.
4937 * selftest-arch.h (register_test_foreach_arch): Add name
4938 parameter.
4939 (run_tests_with_arch): New declaration.
4940 * utils-selftests.c (_initialize_utils_selftests): Add names
4941 when registering selftests.
4942 * utils.c (_initialize_utils): Likewise.
4943 * unittests/array-view-selftests.c
4944 (_initialize_array_view_selftests): Likewise.
4945 * unittests/environ-selftests.c (_initialize_environ_selftests):
4946 Likewise.
4947 * unittests/function-view-selftests.c
4948 (_initialize_function_view_selftests): Likewise.
4949 * unittests/offset-type-selftests.c
4950 (_initialize_offset_type_selftests): Likewise.
4951 * unittests/optional-selftests.c
4952 (_initialize_optional_selftests): Likewise.
4953 * unittests/scoped_restore-selftests.c
4954 (_initialize_scoped_restore_selftests): Likewise.
4955 * NEWS: Document "maintenance selftest" and "maint info
4956 selftests".
4957
5846367a
SM
49582017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4959
4960 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
4961 scoped_restore.
4962
bd77e8ff
SM
49632017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4964
4965 * mi/mi-main.c (mi_load_progress): Make uiout variable
4966 a unique_ptr.
4967
26a67918
PA
49682017-09-15 Pedro Alves <palves@redhat.com>
4969
4970 * compile/compile-c-types.c (convert_enum, convert_int)
4971 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
4972
3f8a7804
SM
49732017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4974
4975 * dwarf2read.c (copy_string): Remove.
4976 (parse_macro_definition): Replace copy_string with savestring.
4977
8d200706
YQ
49782017-09-15 Yao Qi <yao.qi@linaro.org>
4979
4980 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
4981 gdb_target_obs.
4982 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
4983 Likewise.
4984 (i[34567]86-*-linux*): Likewise.
4985
d185219d
SM
49862017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4987
4988 * dwarf2expr.h (dwarf_stack_value): Add constructor.
4989 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
4990 <stack>: Change type to std::vector.
4991 <stack_len, stack_allocated>: Remove.
4992 <grow_stack>: Remove.
4993 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4994 (dwarf_expr_context::~dwarf_expr_context): Remove.
4995 (dwarf_expr_context::grow_stack): Remove.
4996 (dwarf_expr_context::push): Adjust.
4997 (dwarf_expr_context::pop): Adjust.
4998 (dwarf_expr_context::fetch): Adjust.
4999 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
5000 (dwarf_expr_context::stack_empty_p): Adjust.
5001 (dwarf_expr_context::execute_stack_op): Adjust.
5002
eccd80d6
SM
50032017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5004
5005 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
5006 return type to bool.
5007 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
5008
69009882
SM
50092017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5010
5011 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
5012 Change type to bool.
5013 (dwarf_stack_value) <in_stack_memory>: Likewise.
5014 (dwarf_expr_context) <push_address>: Change parameter type to
5015 bool.
5016 <fetch_in_stack_memory>: Change return type to bool.
5017 <push>: Change parameter type to bool.
5018 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
5019 to bool.
5020 (dwarf_expr_context::push_address): Likewise.
5021 (dwarf_expr_context::fetch_in_stack_memory): Change return type
5022 to bool.
5023 (dwarf_expr_context::execute_stack_op): Adjust.
5024 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
5025
1e467161
SM
50262017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5027
5028 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
5029 (struct dwarf_expr_context) <n_pieces>: Remove.
5030 <pieces>: Change type to std::vector.
5031 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
5032 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
5033 pieces.
5034 (dwarf_expr_context::add_piece): Adjust.
5035 * dwarf2loc.c (struct piece_closure): Initialize fields.
5036 <n_pieces>: Remove.
5037 <pieces>: Change type to std::vector.
5038 (allocate_piece_closure): Adjust, change parameter to
5039 std::vector rvalue and std::move it to piece_closure.
5040 (rw_pieced_value): Adjust.
5041 (check_pieced_synthetic_pointer): Adjust.
5042 (indirect_synthetic_pointer): Adjust.
5043 (coerce_pieced_ref): Adjust.
5044 (free_pieced_value_closure): Adjust. Use delete to free
5045 piece_closure.
5046 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
5047 to allocate_piece_closure.
5048 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
5049
0782db84
SM
50502017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5051
5052 * probe.h (probe_ops_cp): Remove typedef.
5053 (DEF_VEC_P (probe_ops_cp)): Remove.
5054 (all_probe_ops): Change type to std::vector.
5055 * probe.c (info_probes_for_ops): Adjust to vector change.
5056 (probe_linespec_to_ops): Likewise.
5057 (all_probe_ops): Change type to std::vector.
5058 (_initialize_probe): Adjust to vector change.
5059 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
5060 * elfread.c (elf_get_probes): Likewise.
5061 * stap-probe.c (_initialize_stap_probe): Likewise.
5062
1eac6bea
SM
50632017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5064
5065 * probe.h (struct bound_probe): Define constructors.
5066 * probe.c (bound_probe_s): Remove typedef.
5067 (DEF_VEC_O (bound_probe_s)): Remove VEC.
5068 (collect_probes): Change return type to std::vector, remove
5069 cleanup.
5070 (compare_probes): Return bool, change parameter type. Change
5071 semantic to "less than".
5072 (gen_ui_out_table_header_info): Change parameter to std::vector
5073 and update.
5074 (exists_probe_with_pops): Likewise.
5075 (info_probes_for_ops): Update to std::vector change.
5076 (enable_probes_command): Likewise.
5077 (disable_probes_command): Likewise.
5078
aaa63a31
SM
50792017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5080
5081 * probe.h (struct probe_ops) <get_probes>: Change parameter from
5082 vec to std::vector.
5083 * probe.c (parse_probes_in_pspace): Update.
5084 (find_probes_in_objfile): Update.
5085 (find_probe_by_pc): Update.
5086 (collect_probes): Update.
5087 (probe_any_get_probes): Update.
5088 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
5089 return type to reference to std::vector.
5090 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
5091 std::vector and update.
5092 (dtrace_process_dof): Likewise.
5093 (dtrace_get_probes): Likewise.
5094 * elfread.c (elf_get_probes): Change return type to std::vector,
5095 store an std::vector in bfd_data.
5096 (probe_key_free): Update to std::vector.
5097 * stap-probe.c (handle_stap_probe): Change parameter to
5098 std::vector and update.
5099 (stap_get_probes): Likewise.
5100 * symfile-debug.c (debug_sym_get_probes): Change return type to
5101 std::vector and update.
5102
cb85b21b
TT
51032017-09-11 Tom Tromey <tom@tromey.com>
5104
5105 * breakpoint.c (program_breakpoint_here_p): Update.
5106 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
5107 from make_show_memory_breakpoints_cleanup. Return a
5108 scoped_restore_tmpl<int>.
5109 (restore_show_memory_breakpoints): Remove.
5110 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
5111 * mem-break.c (memory_validate_breakpoint): Update.
5112 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
5113 (ia64_memory_remove_breakpoint): Update.
5114 (ia64_breakpoint_from_pc): Update.
5115 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
5116 from make_show_memory_breakpoints_cleanup.
5117
8fbc99ef
TT
51182017-09-11 Tom Tromey <tom@tromey.com>
5119
5120 * d-namespace.c (d_lookup_symbol): Use std::string.
5121 (find_symbol_in_baseclass): Likewise.
5122
50feb4bd
TT
51232017-09-11 Tom Tromey <tom@tromey.com>
5124
5125 * ctf.c (ctf_start): Use std::string.
5126
c6dc63a1
TT
51272017-09-11 Tom Tromey <tom@tromey.com>
5128
5129 * ada-lang.c (is_known_support_routine): Update.
5130 (ada_unhandled_exception_name_addr_from_raise): Update.
5131 * guile/scm-frame.c (gdbscm_frame_name): Update.
5132 * python/py-frame.c (frapy_name): Update.
5133 (frapy_function): Update.
5134 * stack.h (find_frame_funname): Update.
5135 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
5136 (print_frame): Update.
5137
d6b9b80f
TT
51382017-09-11 Tom Tromey <tom@tromey.com>
5139
5140 * findcmd.c (put_bits): Take a gdb::byte_vector.
5141 (parse_find_args): Return gdb::byte_vector. "args" now const.
5142 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
5143 cleanups.
5144 (find_command): Update.
5145
a9921622
TT
51462017-09-11 Tom Tromey <tom@tromey.com>
5147
5148 * cli/cli-script.c (class scoped_restore_hook_in): New.
5149 (clear_hook_in_cleanup): Remove.
5150 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
5151 scoped_restore_hook_in.
5152
be0d7abb
TT
51532017-09-11 Tom Tromey <tom@tromey.com>
5154
5155 * cli/cli-script.c (restore_interp): Remove.
5156 (read_command_lines): Use scoped_restore_interp.
5157 * interps.c (scoped_restore_interp::set_temp): Rename from
5158 interp_set_temp.
5159 * interps.h (class scoped_restore_interp): New.
5160 (interp_set_temp): Remove.
5161
00f675ff
TT
51622017-09-11 Tom Tromey <tom@tromey.com>
5163
5164 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
5165 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
5166 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
5167 scoped_restore.
5168 (mi_cmd_break_insert_1): Update.
5169 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
5170 scoped_restore.
5171
cb791d59
TT
51722017-09-11 Tom Tromey <tom@tromey.com>
5173
5174 * demangle.c (demangle_command): Update.
5175 * breakpoint.c (disable_command): Update.
5176 (enable_command): Update.
5177 (find_location_by_number): Make "number" const. Use
5178 get_number_trailer.
5179 * cli/cli-utils.c (extract_arg): Return std::string.
5180 * probe.c (parse_probe_linespec): Update. Change types.
5181 (collect_probes): Take string arguments.
5182 (parse_probe_linespec): Likewise.
5183 (info_probes_for_ops): Update.
5184 (enable_probes_command): Update.
5185 (disable_probes_command): Update.
5186 * break-catch-sig.c (catch_signal_split_args): Update.
5187 * mi/mi-parse.c (mi_parse): Update.
5188
2039bd9f
TT
51892017-09-11 Tom Tromey <tom@tromey.com>
5190
5191 * language.h (language_enum): Make argument const.
5192 * language.c (language_enum): Make argument const.
5193
f1735a53
TT
51942017-09-11 Tom Tromey <tom@tromey.com>
5195
5196 * common/common-utils.h (skip_to_space): Remove macro, redeclare
5197 as function.
5198 (skip_to_space): Rename from skip_to_space_const.
5199 * common/common-utils.c (skip_to_space): New function.
5200 (skip_to_space): Rename from skip_to_space_const.
5201 * cli/cli-utils.h (get_number): Rename from get_number_const.
5202 (extract_arg): Rename from extract_arg_const.
5203 * cli/cli-utils.c (get_number): Rename from get_number_const.
5204 (extract_arg): Rename from extract_arg_const.
5205 (number_or_range_parser::get_number): Use ::get_number.
5206 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
5207 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
5208 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
5209 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
5210 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
5211 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
5212 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
5213 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
5214
7d221d74
TT
52152017-09-11 Tom Tromey <tom@tromey.com>
5216
5217 * python/python.c (do_start_initialization): Use
5218 py-event-types.def to initialize types.
5219 Define all object type structures.
5220 * python/python-internal.h: Don't declare event initialization
5221 functions.
5222 * python/py-threadevent.c (thread_event_object_type): Don't
5223 define.
5224 * python/py-stopevent.c (stop_event_object_type): Don't define.
5225 * python/py-signalevent.c (signal_event_object_type): Don't
5226 declare or define.
5227 * python/py-newobjfileevent.c (new_objfile_event_object_type)
5228 (clear_objfiles_event_object_type): Don't declare or define.
5229 * python/py-infevents.c (inferior_call_pre_event_object_type)
5230 (inferior_call_post_event_object_type)
5231 (register_changed_event_object_type)
5232 (memory_changed_event_object_type): Don't declare or define.
5233 * python/py-inferior.c (new_thread_event_object_type)
5234 (new_inferior_event_object_type)
5235 (inferior_deleted_event_object_type): Don't declare or define.
5236 * python/py-exitedevent.c (exited_event_object_type): Don't
5237 declare or define.
5238 * python/py-evts.c (gdbpy_initialize_py_events): Use
5239 py-all-events.def.
5240 * python/py-events.h (thread_event_object_type): Don't declare.
5241 (events_object): Use py-all-events.def.
5242 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
5243 py-event-types.def.
5244 * python/py-event-types.def: New file.
5245 * python/py-continueevent.c (create_continue_event_object): Don't
5246 declare or define.
5247 * python/py-bpevent.c (breakpoint_event_object_type): Don't
5248 declare or define.
5249 * python/py-all-events.def: New file.
5250
35c61a1d
TT
52512017-09-11 Tom Tromey <tom@tromey.com>
5252
5253 * python/py-threadevent.c (create_thread_event_object): Return
5254 gdbpy_ref.
5255 * python/py-stopevent.h (create_stop_event_object)
5256 (create_breakpoint_event_object, create_signal_event_object):
5257 Update.
5258 * python/py-stopevent.c (create_stop_event_object): Return
5259 gdbpy_ref.
5260 (emit_stop_event): Update.
5261 * python/py-signalevent.c (create_signal_event_object): Return
5262 gdbpy_ref.
5263 * python/py-infevents.c (create_inferior_call_event_object):
5264 Update.
5265 * python/py-event.h (create_event_object)
5266 (create_thread_event_object): Update.
5267 * python/py-event.c (create_event_object): Return gdbpy_ref.
5268 * python/py-continueevent.c: Return gdbpy_ref.
5269 * python/py-bpevent.c (create_breakpoint_event_object): Return
5270 gdbpy_ref.
5271
7c96f8c1
TT
52722017-09-11 Tom Tromey <tom@tromey.com>
5273
5274 PR python/15622:
5275 * NEWS: Add entry.
5276 * python/python.c (do_start_initialization): Initialize new event
5277 types.
5278 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
5279 (gdbpy_initialize_inferior_deleted_event)
5280 (gdbpy_initialize_new_thread_event): Declare.
5281 * python/py-threadevent.c (create_thread_event_object): Add option
5282 "thread" parameter.
5283 * python/py-inferior.c (new_thread_event_object_type)
5284 (new_inferior_event_object_type)
5285 (inferior_deleted_event_object_type): Declare.
5286 (python_new_inferior, python_inferior_deleted): New functions.
5287 (add_thread_object): Emit new_thread event.
5288 (gdbpy_initialize_inferior): Attach new functions to corresponding
5289 observers.
5290 (new_thread, new_inferior, inferior_deleted): Define new event
5291 types.
5292 * python/py-evts.c (gdbpy_initialize_py_events): Add new
5293 registries.
5294 * python/py-events.h (events_object) <new_inferior,
5295 inferior_deleted, new_thread>: New fields.
5296 * python/py-event.h (create_thread_event_breakpoint): Add optional
5297 "thread" parameter.
5298
72542b8e
AB
52992017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
5300
5301 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
5302 check current_ui instead.
5303 (internal_vproblem): Likewise.
5304
0d64823e
SM
53052017-09-09 Simon Marchi <simon.marchi@ericsson.com>
5306
5307 * thread.c (print_thread_info_1): Remove unnecessary calls to
5308 uiout->is_mi_like_p.
5309
eb1e02fd
TT
53102017-09-09 Tom Tromey <tom@tromey.com>
5311
5312 * namespace.h (add_using_directive): Update.
5313 * namespace.c (add_using_directive): Change type of excludes to
5314 std::vector.
5315 * dwarf2read.c (read_import_statement): Use std::vector.
5316 (read_namespace): Update.
5317 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5318
0fc21fd8
TT
53192017-09-09 Tom Tromey <tom@tromey.com>
5320
5321 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
5322
49663d05
TT
53232017-09-09 Tom Tromey <tom@tromey.com>
5324
5325 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
5326
0b868b60
TT
53272017-09-09 Tom Tromey <tom@tromey.com>
5328
5329 * stack.c (func_command): Use gdb::def_vector.
5330
c0470d48
TT
53312017-09-09 Tom Tromey <tom@tromey.com>
5332
5333 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
5334 ui_out_emit_list, ui_out_emit_tuple.
5335 (mi_cmd_var_update): Likewise.
5336
ca5909c7
TT
53372017-09-09 Tom Tromey <tom@tromey.com>
5338
5339 * mi/mi-interp.c (mi_user_selected_context_changed): Use
5340 ui_out_redirect_pop.
5341 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
5342 ui_out_redirect_pop.
5343 * utils.c (do_ui_out_redirect_pop)
5344 (make_cleanup_ui_out_redirect_pop): Remove.
5345 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
5346 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
5347 * ui-out.h (ui_out_redirect_pop): New class.
5348
e6a2252a
TT
53492017-09-09 Tom Tromey <tom@tromey.com>
5350
5351 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
5352 (list_available_thread_groups, mi_cmd_list_thread_groups)
5353 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
5354 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
5355 Likewise.
5356
393702cd
TT
53572017-09-09 Tom Tromey <tom@tromey.com>
5358
5359 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5360 ui_out_emit_tuple.
5361
76f9c9cf
TT
53622017-09-09 Tom Tromey <tom@tromey.com>
5363
5364 * target.c (flash_erase_command): Use ui_out_emit_tuple.
5365 * stack.c (print_frame): Use ui_out_emit_tuple.
5366 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
5367 (info_spu_mailbox_command, info_spu_dma_command)
5368 (info_spu_proxydma_command): Likewise.
5369 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
5370 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
5371 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
5372 ui_out_emit_tuple.
5373 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
5374
dc9fe180
TT
53752017-09-09 Tom Tromey <tom@tromey.com>
5376
5377 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
5378 (class ui_out_emit_table): Update comment.
5379 * ui-out.c (do_cleanup_table_end)
5380 (make_cleanup_ui_out_table_begin_end): Remove.
5381 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
5382 (info_spu_dma_cmdlist): Likewise.
5383 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
5384 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
5385 ui_out_emit_table.
5386
f8cc3da6
TT
53872017-09-09 Tom Tromey <tom@tromey.com>
5388
5389 * thread.c (print_thread_info_1): Use ui_out_emit_table,
5390 ui_out_emit_list, gdb::optional.
5391
481695ed
JB
53922017-09-09 John Baldwin <jhb@FreeBSD.org>
5393
5394 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
5395 prototype.
5396 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
5397 prototype.
5398 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
5399 prototype.
5400 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
5401 * ada-exp.y: Remove _initialize_ada_exp prototype.
5402 * ada-lang.c: Remove _initialize_ada_language prototype.
5403 * ada-tasks.c: Remove _initialize_tasks prototype.
5404 * addrmap.c: Remove _initialize_addrmap prototype.
5405 * agent.c: Remove _initialize_agent prototype.
5406 * aix-thread.c: Remove _initialize_aix_thread prototype.
5407 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
5408 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
5409 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
5410 prototype.
5411 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
5412 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
5413 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
5414 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
5415 prototype.
5416 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
5417 prototype.
5418 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
5419 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
5420 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
5421 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
5422 prototype.
5423 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
5424 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
5425 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
5426 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
5427 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
5428 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
5429 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
5430 prototype.
5431 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
5432 prototype.
5433 * annotate.c: Remove _initialize_annotate prototype.
5434 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
5435 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
5436 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
5437 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
5438 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
5439 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
5440 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
5441 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
5442 prototype.
5443 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
5444 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
5445 * auto-load.c: Remove _initialize_auto_load prototype.
5446 * auxv.c: Remove _initialize_auxv prototype.
5447 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
5448 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
5449 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
5450 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
5451 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
5452 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
5453 prototype.
5454 * break-catch-throw.c: Remove _initialize_break_catch_throw
5455 prototype.
5456 * breakpoint.c: Remove _initialize_breakpoint prototype.
5457 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
5458 * btrace.c: Remove _initialize_btrace prototype.
5459 * charset.c: Remove _initialize_charset prototype.
5460 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
5461 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
5462 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
5463 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
5464 * cli/cli-script.c: Remove _initialize_cli_script prototype.
5465 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
5466 * coffread.c: Remove _initialize_coffread prototype.
5467 * compile/compile.c: Remove _initialize_compile prototype.
5468 * complaints.c: Remove _initialize_complaints prototype.
5469 * completer.c: Remove _initialize_completer prototype.
5470 * copying.awk: Remove _initialize_copying prototype.
5471 * copying.c: Regenerate.
5472 * core-regset.c: Remove _initialize_core_regset prototype.
5473 * corefile.c: Remove _initialize_core prototype.
5474 * corelow.c: Remove _initialize_corelow prototype.
5475 * cp-abi.c: Remove _initialize_cp_abi prototype.
5476 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
5477 * cp-support.c: Remove _initialize_cp_support prototype.
5478 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
5479 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
5480 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
5481 * ctf.c: Remove _initialize_ctf prototype.
5482 * d-lang.c: Remove _initialize_d_language prototype.
5483 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
5484 prototype.
5485 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
5486 * dbxread.c: Remove _initialize_dbxread prototype.
5487 * dcache.c: Remove _initialize_dcache prototype.
5488 * demangle.c: Remove _initialize_demangler prototype.
5489 * disasm-selftests.c: Remove _initialize_disasm_selftests
5490 prototype.
5491 * disasm.c: Remove _initialize_disasm prototype.
5492 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
5493 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
5494 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
5495 prototype.
5496 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
5497 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
5498 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
5499 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
5500 * elfread.c: Remove _initialize_elfread prototype.
5501 * exec.c: Remove _initialize_exec prototype.
5502 * extension.c: Remove _initialize_extension prototype.
5503 * f-lang.c: Remove _initialize_f_language prototype.
5504 * f-valprint.c: Remove _initialize_f_valprint prototype.
5505 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
5506 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
5507 * filesystem.c: Remove _initialize_filesystem prototype.
5508 * findcmd.c: Remove _initialize_mem_search prototype.
5509 * fork-child.c: Remove _initialize_fork_child prototype.
5510 * frame-base.c: Remove _initialize_frame_base prototype.
5511 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
5512 * frame.c: Remove _initialize_frame prototype.
5513 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
5514 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
5515 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
5516 * gcore.c: Remove _initialize_gcore prototype.
5517 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
5518 * gdbarch.c: Regenerate.
5519 * gdbarch.sh: Remove _initialize_gdbarch prototype.
5520 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
5521 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
5522 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
5523 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
5524 * go-lang.c: Remove _initialize_go_language prototype.
5525 * go32-nat.c: Remove _initialize_go32_nat prototype.
5526 * guile/guile.c: Remove _initialize_guile prototype.
5527 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
5528 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
5529 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
5530 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
5531 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
5532 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
5533 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
5534 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
5535 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
5536 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
5537 prototype.
5538 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
5539 prototype.
5540 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
5541 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
5542 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
5543 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
5544 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
5545 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
5546 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
5547 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
5548 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
5549 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
5550 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
5551 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
5552 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
5553 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
5554 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
5555 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
5556 prototype.
5557 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
5558 prototype.
5559 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
5560 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
5561 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
5562 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
5563 * infcall.c: Remove _initialize_infcall prototype.
5564 * infcmd.c: Remove _initialize_infcmd prototype.
5565 * inferior.c: Remove _initialize_inferiors prototype.
5566 * inflow.c: Remove _initialize_inflow prototype.
5567 * infrun.c: Remove _initialize_infrun prototype.
5568 * interps.c: Remove _initialize_interpreter prototype.
5569 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
5570 * jit.c: Remove _initialize_jit prototype.
5571 * language.c: Remove _initialize_language prototype.
5572 * linux-fork.c: Remove _initialize_linux_fork prototype.
5573 * linux-nat.c: Remove _initialize_linux_nat prototype.
5574 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
5575 * linux-thread-db.c: Remove _initialize_thread_db prototype.
5576 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
5577 * m2-lang.c: Remove _initialize_m2_language prototype.
5578 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
5579 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
5580 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
5581 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
5582 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
5583 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
5584 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
5585 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
5586 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
5587 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
5588 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
5589 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
5590 * machoread.c: Remove _initialize_machoread prototype.
5591 * macrocmd.c: Remove _initialize_macrocmd prototype.
5592 * macroscope.c: Remove _initialize_macroscope prototype.
5593 * maint.c: Remove _initialize_maint_cmds prototype.
5594 * mdebugread.c: Remove _initialize_mdebugread prototype.
5595 * memattr.c: Remove _initialize_mem prototype.
5596 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
5597 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
5598 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
5599 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
5600 * mi/mi-main.c: Remove _initialize_mi_main prototype.
5601 * microblaze-linux-tdep.c: Remove
5602 _initialize_microblaze_linux_tdep prototype.
5603 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
5604 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
5605 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
5606 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
5607 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
5608 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
5609 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
5610 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
5611 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
5612 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
5613 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
5614 prototype.
5615 * mipsread.c: Remove _initialize_mipsread prototype.
5616 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
5617 prototype.
5618 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
5619 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
5620 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
5621 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
5622 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
5623 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
5624 prototype.
5625 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
5626 * nto-procfs.c: Remove _initialize_procfs prototype.
5627 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
5628 * objc-lang.c: Remove _initialize_objc_language prototype.
5629 * objfiles.c: Remove _initialize_objfiles prototype.
5630 * observer.c: Remove observer_test_first_notification_function,
5631 observer_test_second_notification_function,
5632 observer_test_third_notification_function, and
5633 _initialize_observer prototypes.
5634 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
5635 * osabi.c: Remove _initialize_gdb_osabi prototype.
5636 * osdata.c: Remove _initialize_osdata prototype.
5637 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
5638 * parse.c: Remove _initialize_parse prototype.
5639 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
5640 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
5641 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
5642 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
5643 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
5644 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
5645 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
5646 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
5647 * printcmd.c: Remove _initialize_printcmd prototype.
5648 * probe.c: Remove _initialize_probe prototype.
5649 * proc-api.c: Remove _initialize_proc_api prototype.
5650 * proc-events.c: Remove _initialize_proc_events prototype.
5651 * proc-service.c: Remove _initialize_proc_service prototype.
5652 * procfs.c: Remove _initialize_procfs prototype.
5653 * psymtab.c: Remove _initialize_psymtab prototype.
5654 * python/python.c: Remove _initialize_python prototype.
5655 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
5656 * record-btrace.c: Remove _initialize_record_btrace prototype.
5657 * record-full.c: Remove _initialize_record_full prototype.
5658 * record.c: Remove _initialize_record prototype.
5659 * regcache.c: Remove _initialize_regcache prototype.
5660 * reggroups.c: Remove _initialize_reggroup prototype.
5661 * remote-notif.c: Remove _initialize_notif prototype.
5662 * remote-sim.c: Remove _initialize_remote_sim prototype.
5663 * remote.c: Remove _initialize_remote prototype.
5664 * reverse.c: Remove _initialize_reverse prototype.
5665 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
5666 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
5667 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
5668 prototype.
5669 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
5670 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
5671 * rust-exp.y: Remove _initialize_rust_exp prototype.
5672 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
5673 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
5674 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
5675 * score-tdep.c: Remove _initialize_score_tdep prototype.
5676 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
5677 prototype.
5678 * ser-go32.c: Remove _initialize_ser_dos prototype.
5679 * ser-mingw.c: Remove _initialize_ser_windows prototype.
5680 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
5681 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
5682 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
5683 * serial.c: Remove _initialize_serial prototype.
5684 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
5685 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
5686 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
5687 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
5688 * skip.c: Remove _initialize_step_skip prototype.
5689 * sol-thread.c: Remove _initialize_sol_thread prototype.
5690 * solib-aix.c: Remove _initialize_solib_aix prototype.
5691 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
5692 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
5693 * solib-frv.c: Remove _initialize_frv_solib prototype.
5694 * solib-spu.c: Remove _initialize_spu_solib prototype.
5695 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
5696 * solib-target.c: Remove _initialize_solib_target prototype.
5697 * solib.c: Remove _initialize_solib prototype.
5698 * source.c: Remove _initialize_source prototype.
5699 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
5700 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
5701 prototype.
5702 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
5703 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
5704 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
5705 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
5706 prototype.
5707 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
5708 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
5709 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
5710 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
5711 prototype.
5712 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
5713 prototype.
5714 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
5715 prototype.
5716 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
5717 prototype.
5718 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
5719 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
5720 prototype.
5721 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
5722 prototype.
5723 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
5724 prototype.
5725 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
5726 prototype.
5727 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
5728 prototype.
5729 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
5730 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
5731 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
5732 * stabsread.c: Remove _initialize_stabsread prototype.
5733 * stack.c: Remove _initialize_stack prototype.
5734 * stap-probe.c: Remove _initialize_stap_probe prototype.
5735 * std-regs.c: Remove _initialize_frame_reg prototype.
5736 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
5737 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
5738 * symfile.c: Remove _initialize_symfile prototype.
5739 * symmisc.c: Remove _initialize_symmisc prototype.
5740 * symtab.c: Remove _initialize_symtab prototype.
5741 * target-dcache.c: Remove _initialize_target_dcache prototype.
5742 * target-descriptions.c: Remove _initialize_target_descriptions
5743 prototype.
5744 * thread.c: Remove _initialize_thread prototype.
5745 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
5746 prototype.
5747 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
5748 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
5749 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
5750 prototype.
5751 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
5752 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
5753 * tracefile.c: Remove _initialize_tracefile prototype.
5754 * tracepoint.c: Remove _initialize_tracepoint prototype.
5755 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
5756 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
5757 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
5758 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
5759 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
5760 * tui/tui-win.c: Remove _initialize_tui_win prototype.
5761 * tui/tui.c: Remove _initialize_tui prototype.
5762 * typeprint.c: Remove _initialize_typeprint prototype.
5763 * user-regs.c: Remove _initialize_user_regs prototype.
5764 * utils.c: Remove _initialize_utils prototype.
5765 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
5766 * valarith.c: Remove _initialize_valarith prototype.
5767 * valops.c: Remove _initialize_valops prototype.
5768 * valprint.c: Remove _initialize_valprint prototype.
5769 * value.c: Remove _initialize_values prototype.
5770 * varobj.c: Remove _initialize_varobj prototype.
5771 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
5772 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
5773 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
5774 * windows-nat.c: Remove _initialize_windows_nat,
5775 _initialize_check_for_gdb_ini, and _initialize_loadable
5776 prototypes.
5777 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
5778 * xcoffread.c: Remove _initialize_xcoffread prototype.
5779 * xml-support.c: Remove _initialize_xml_support prototype.
5780 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
5781 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
5782 prototype.
5783 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
5784 prototype.
5785 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
5786
a611b5cb
KS
57872017-09-08 Keith Seitz <keiths@redhat.com>
5788
5789 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
5790 field.
5791
469412dd
CW
57922017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
5793
5794 * f-valprint.c (f_val_print): Remove check for one byte
5795 sized integers. Remove printing of character type.
5796
a5ad232b
FP
57972017-09-08 Frank Penczek <frank.penczek@intel.com>
5798 Christoph Weinmann <christoph.t.weinmann@intel.com>
5799 Bernhard Heckel <bernhard.heckel@intel.com>
5800
5801 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
5802 to maintain proper indentation when printing pointers/refs.
5803
e5014227
JB
58042017-09-07 Joel Brobecker <brobecker@adacore.com>
5805
5806 GDB 8.0.1 released.
5807
63c99141
JB
58082017-09-07 Joel Brobecker <brobecker@adacore.com>
5809
5810 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
5811
69c1e056
TT
58122017-09-05 Tom Tromey <tom@tromey.com>
5813
5814 * parse.c (funcall_chain): Now a std::vector.
5815 (start_arglist, end_arglist): Simplify.
5816 (free_funcalls): Remove.
5817 (parse_exp_in_context_1): Remove cleanup.
5818
fef704bf
TT
58192017-09-05 Tom Tromey <tom@tromey.com>
5820
5821 * go-exp.y (go_parse): Don't create a cleanup.
5822
5613c585
TT
58232017-09-05 Tom Tromey <tom@tromey.com>
5824
5825 * d-exp.y (PrimaryExpression): Use std::string.
5826 (d_parse): Don't create a cleanup.
5827
eae49211
TT
58282017-09-05 Tom Tromey <tom@tromey.com>
5829
5830 * utils.c (do_clear_parser_state): Remove.
5831 (make_cleanup_clear_parser_state): Remove.
5832 * p-exp.y (pascal_parse): Use scoped_restore.
5833 * m2-exp.y (m2_parse): Use scoped_restore.
5834 * f-exp.y (f_parse): Use scoped_restore.
5835 * d-exp.y (d_parse): Use scoped_restore.
5836 * c-exp.y (c_parse): Use scoped_restore.
5837 * ada-exp.y (ada_parse): Use scoped_restore.
5838 * utils.h (make_cleanup_clear_parser_state): Remove.
5839
73b9be8b
KS
58402017-09-06 Keith Seitz <keiths@redhat.com>
5841
5842 * dwarf2read.c (dw2_linkage_name_attr): New function.
5843 (dw2_linkage_name): New function.
5844 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
5845 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
5846 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
5847
a102602b
KR
58482017-09-06 Kamil Rytarowski <n54@gmx.com>
5849
5850 * config/djgpp/djconfig.sh: Correct shell portability issue.
5851
28ad437d
KR
58522017-09-06 Kamil Rytarowski <n54@gmx.com>
5853
5854 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
5855
351787dd
JB
58562017-09-06 John Baldwin <jhb@FreeBSD.org>
5857
5858 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
5859 * NEWS: Mention new FreeBSD/mips native configuration.
5860 * configure.host: Add aarch64*-*-freebsd*.
5861 * configure.nat: Likewise.
5862 * aarch64-fbsd-nat.c: New file.
5863
c0f84956
JB
58642017-09-06 John Baldwin <jhb@FreeBSD.org>
5865
5866 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
5867 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
5868 * NEWS: Mention new FreeBSD/aarch64 target.
5869 * configure.tgt: Add aarch64*-*-freebsd*.
5870 * aarch64-fbsd-tdep.c: New file.
5871 * aarch64-fbsd-tdep.h: New file.
5872
7610297a
KR
58732017-09-06 Kamil Rytarowski <n54@gmx.com>
5874
5875 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
5876
fbd1b771
JK
58772017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5878
5879 * parse.c (find_minsym_type_and_address): Don't relocate addresses
5880 of TLS symbols.
5881
5ca79eae
PW
58822017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5883
5884 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
5885 call.
5886
bf93d7ba
SM
58872017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5888
5889 * infrun.c (follow_exec): Call add_thread after
5890 target_find_description.
5891
1bb7c059
SM
58922017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5893
5894 * infrun.c (handle_inferior_event_1): When exec'ing, read
5895 stop_pc after follow_exec.
5896
fc809827
SM
58972017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5898
5899 * remote.c (process_g_packet): Update error message.
5900
d2fcdd85
YQ
59012017-09-05 Yao Qi <yao.qi@linaro.org>
5902
5903 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
5904 targets.
5905
e69570ee
PA
59062017-09-05 Pedro Alves <palves@redhat.com>
5907
5908 * eval.c (eval_call, evaluate_funcall): New functions, factored
5909 out from ...
5910 (evaluate_subexp_standard): ... this.
5911
22916b07
YQ
59122017-09-05 Yao Qi <yao.qi@linaro.org>
5913
5914 * amd64-tdep.c (amd64_target_description): Create target
5915 descriptions.
5916 (_initialize_amd64_tdep): Don't call functions
5917 initialize_tdesc_amd64_*. Add self tests.
5918 * arch/amd64.c (amd64_create_target_description): Add parameter
5919 is_linux. Call set_tdesc_osabi if is_linux is true.
5920 * arch/amd64.h (amd64_create_target_description): Update the
5921 declaration.
5922 * arch/i386.c (i386_create_target_description): Add parameter
5923 is_linux. Call set_tdesc_osabi if is_linux is true.
5924 * arch/i386.h (i386_create_target_description): Update
5925 declaration.
5926 * configure.tgt: Add i386.o to gdb_target_obs.
5927 * features/Makefile (XMLTOC): Remove i386/*.xml.
5928 * features/i386/amd64-avx-avx512.c: Remove.
5929 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
5930 * features/i386/amd64-avx-mpx.c: Remove.
5931 * features/i386/amd64-avx.c: Remove.
5932 * features/i386/amd64-mpx.c: Remove.
5933 * features/i386/amd64.c: Remove.
5934 * features/i386/i386-avx-avx512.c: Remove.
5935 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
5936 * features/i386/i386-avx-mpx.c: Remove.
5937 * features/i386/i386-avx.c: Remove.
5938 * features/i386/i386-mmx.c: Remove.
5939 * features/i386/i386-mpx.c: Remove.
5940 * features/i386/i386.c: Remove.
5941 * i386-tdep.c: Don't include features/i386/i386*.c., include
5942 target-descriptions.h and arch/i386.h.
5943 (i386_target_description): Create target descriptions.
5944 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
5945 functions. Do self tests.
5946
0854b7b1
YQ
59472017-09-05 Yao Qi <yao.qi@linaro.org>
5948
5949 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
5950 * features/i386/amd64-avx-avx512-linux.c: Removed.
5951 * features/i386/amd64-avx-linux.c: Removed.
5952 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
5953 * features/i386/amd64-avx-mpx-linux.c: Removed.
5954 * features/i386/amd64-linux.c: Removed.
5955 * features/i386/amd64-mpx-linux.c: Removed.
5956 * features/i386/x32-avx-avx512-linux.c: Removed.
5957 * features/i386/x32-avx-linux.c: Removed.
5958 * features/i386/x32-linux.c: Removed.
5959
b4570e4b
YQ
59602017-09-05 Yao Qi <yao.qi@linaro.org>
5961
5962 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
5963 features/i386/*.c.
5964 (amd64_linux_read_description): Call
5965 amd64_create_target_description.
5966 * arch/amd64.c: New file.
5967 * arch/amd64.h: New file.
5968 * configure.tgt (x86_64-*-linux*): Append amd64.o.
5969 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
5970
6c73f67f
YQ
59712017-09-05 Yao Qi <yao.qi@linaro.org>
5972
5973 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
5974 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
5975 (amd64_linux_read_description): Create target descriptions.
5976 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
5977 functions. Add unit tests.
5978 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
5979 x32-core.xml.
5980 * features/i386/64bit-avx.c: Generated.
5981 * features/i386/64bit-avx512.c: Generated.
5982 * features/i386/64bit-core.c: Generated.
5983 * features/i386/64bit-linux.c: Generated.
5984 * features/i386/64bit-mpx.c: Generated.
5985 * features/i386/64bit-pkeys.c: Generated.
5986 * features/i386/64bit-segments.c: Generated.
5987 * features/i386/64bit-sse.c: Generated.
5988 * features/i386/x32-core.c: Generated.
5989 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
5990 c files for amd64-linux and x32-linux.
5991
9d3d478b
YQ
59922017-09-05 Yao Qi <yao.qi@linaro.org>
5993
5994 * amd64-linux-tdep.c (amd64_linux_read_description): New
5995 function.
5996 (amd64_linux_core_read_description): Call
5997 amd64_linux_read_description.
5998 (amd64_linux_init_abi): Likewise.
5999 (amd64_x32_linux_init_abi): Likewise.
6000 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
6001 * x86-linux-nat.c (x86_linux_read_description): Call
6002 amd64_linux_read_description.
6003
b9f1d50f
YQ
60042017-09-05 Yao Qi <yao.qi@linaro.org>
6005
6006 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
6007 comments.
6008
188c9e6d
YQ
60092017-09-05 Yao Qi <yao.qi@linaro.org>
6010
6011 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
6012 * features/i386/i386-avx-avx512-linux.c: Remove.
6013 * features/i386/i386-avx-linux.c: Remove.
6014 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
6015 * features/i386/i386-avx-mpx-linux.c: Remove.
6016 * features/i386/i386-linux.c: Remove.
6017 * features/i386/i386-mmx-linux.c: Remove.
6018 * features/i386/i386-mpx-linux.c: Remove.
6019
5f035c07
YQ
60202017-09-05 Yao Qi <yao.qi@linaro.org>
6021
6022 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
6023 (SFILES): Add arch/i386.c.
6024 (HFILES_NO_SRCDIR): Add arch/i386.h.
6025 * arch/i386.c: New file.
6026 * arch/i386.h: New file.
6027 * arch/tdesc.h (allocate_target_description): Declare.
6028 (set_tdesc_architecture): Declare.
6029 (set_tdesc_osabi): Declare.
6030 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
6031 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
6032 include arch/i386.h.
6033 (i386_linux_read_description): Remove code and call
6034 i386_create_target_description.
6035 (set_tdesc_architecture): New function.
6036 (set_tdesc_osabi): New function.
6037 * target-descriptions.h (allocate_target_description): Remove.
6038
0abe8a89
YQ
60392017-09-05 Yao Qi <yao.qi@linaro.org>
6040
6041 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
6042 * target-descriptions.c (tdesc_create_feature): Likewise, and
6043 adjust code.
6044 * features/i386/32bit-avx.c: Re-generated.
6045 * features/i386/32bit-avx512.c: Re-generated.
6046 * features/i386/32bit-core.c: Re-generated.
6047 * features/i386/32bit-linux.c: Re-generated.
6048 * features/i386/32bit-mpx.c: Re-generated.
6049 * features/i386/32bit-pkeys.c: Re-generated.
6050 * features/i386/32bit-sse.c: Re-generated.
6051
0a188386
YQ
60522017-09-05 Yao Qi <yao.qi@linaro.org>
6053
6054 * regformats/regdef.h (struct reg): Override operator == and !=.
6055
f49ff000
YQ
60562017-09-05 Yao Qi <yao.qi@linaro.org>
6057
6058 * arch/tdesc.h: New file.
6059 * regformats/regdat.sh: Generate code using tdesc_create_reg.
6060 * target-descriptions.c: Update comments.
6061 * target-descriptions.h: Include "arch/tdesc.h". Remove the
6062 declarations.
6063 * features/i386/32bit-avx.c: Re-generated.
6064 * features/i386/32bit-avx512.c: Re-generated.
6065 * features/i386/32bit-core.c: Re-generated.
6066 * features/i386/32bit-linux.c: Re-generated.
6067 * features/i386/32bit-mpx.c: Re-generated.
6068 * features/i386/32bit-pkeys.c: Re-generated.
6069 * features/i386/32bit-sse.c: Re-generated.
6070
f7000548
YQ
60712017-09-05 Yao Qi <yao.qi@linaro.org>
6072
6073 * regformats/regdat.sh: Update generated code.
6074
c9a5e2a5
YQ
60752017-09-05 Yao Qi <yao.qi@linaro.org>
6076
6077 * regformats/regdat.sh: Adjust code order.
6078
d6b687ac
SM
60792017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6080
6081 * expprint.c (dump_subexp_body_standard): Use constant format
6082 string in fprintf_filtered call.
6083
a379bfd0
JB
60842017-09-04 John Baldwin <jhb@FreeBSD.org>
6085
6086 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
6087 NetBSD/i386.
6088 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
6089
f7efc967
JB
60902017-09-04 John Baldwin <jhb@FreeBSD.org>
6091
6092 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
6093
c49fbc6c
JB
60942017-09-04 John Baldwin <jhb@FreeBSD.org>
6095
6096 * bsd-kvm.o: Define _KMEMUSER.
6097 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
6098 * configure: Regenerate.
6099
26562e73
JB
61002017-09-04 John Baldwin <jhb@FreeBSD.org>
6101
6102 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
6103 * i386-fbsd-nat.c: Likewise.
6104
31cf1487
JB
61052017-09-04 John Baldwin <jhb@FreeBSD.org>
6106
6107 * unittests/array-view-selftests.c: Add include of <array>.
6108
5b9f8a7c
JB
61092017-09-04 John Baldwin <jhb@FreeBSD.org>
6110
6111 * spu-tdep.c (flush_ea_cache): Add missing argument to
6112 call_function_by_hand.
6113
d69cf9b2
PA
61142017-09-04 Pedro Alves <palves@redhat.com>
6115
6116 * NEWS (Safer support for debugging with no debug info): New.
6117
3693fdb3
PA
61182017-09-04 Pedro Alves <palves@redhat.com>
6119
6120 * c-exp.y (function_method, function_method_void): Add current
6121 instance flags to TYPE_INSTANCE.
6122 * dwarf2read.c (check_modifier): New.
6123 (compute_delayed_physnames): Assert that only C++ adds delayed
6124 physnames. Mark fn_fields as const/volatile depending on
6125 physname.
6126 * eval.c (make_params): New type_instance_flags parameter. Use
6127 it as the new type's instance flags.
6128 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
6129 flags element and pass it to make_params.
6130 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
6131 instance flags element.
6132 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
6133 * gdbtypes.h: Include "enum-flags.h".
6134 (type_instance_flags): New enum-flags type.
6135 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
6136 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
6137 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
6138 (follow_type_instance_flags): New function.
6139 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
6140 * parser-defs.h (follow_type_instance_flags): Declare.
6141 * valops.c (value_struct_elt_for_reference): const/volatile must
6142 match too.
6143
e68cb8e0
PA
61442017-09-04 Pedro Alves <palves@redhat.com>
6145
6146 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
6147 function/method scopes; lookup the nested name as a function local
6148 static variable.
6149
858be34c
PA
61502017-09-04 Pedro Alves <palves@redhat.com>
6151
6152 (%type <voidval>): Add function_method.
6153 * c-exp.y (exp): New production for calls with no arguments.
6154 (function_method, function_method_void_or_typelist): New
6155 productions.
6156 (exp): New production for "method()::static_var".
6157 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
6158 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6159 Handle OP_FUNC_STATIC_VAR.
6160 * parse.c (operator_length_standard):
6161 Handle OP_FUNC_STATIC_VAR.
6162
dd5901a6
PA
61632017-09-04 Pedro Alves <palves@redhat.com>
6164
6165 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
6166 handling.
6167 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6168 Ditto.
6169 * parse.c (operator_length_standard, operator_check_standard):
6170 Ditto.
6171 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
6172
46a4882b
PA
61732017-09-04 Pedro Alves <palves@redhat.com>
6174
6175 * ax-gdb.c: Include "typeprint.h".
6176 (gen_expr_for_cast): New function.
6177 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
6178 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
6179 type is unknown.
6180 * dwarf2read.c (new_symbol_full): Fallback to int instead of
6181 nodebug_data_symbol.
6182 * eval.c: Include "typeprint.h".
6183 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
6184 Error out if symbol has unknown type.
6185 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
6186 evaluate_subexp_for_cast.
6187 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
6188 OP_VAR_MSYM_VALUE.
6189 (evaluate_subexp_for_cast): New function.
6190 * gdbtypes.c (init_nodebug_var_type): New function.
6191 (objfile_type): Use it to initialize types of variables with no
6192 debug info.
6193 * typeprint.c (error_unknown_type): New.
6194 * typeprint.h (error_unknown_type): New declaration.
6195 * compile/compile-c-types.c (convert_type_basic): Handle
6196 TYPE_CODE_ERROR; warn and fallback to int for variables with
6197 unknown type.
6198
fe13dfec
PA
61992017-09-04 Pedro Alves <palves@redhat.com>
6200
6201 * eval.c (evaluate_var_value): New function, factored out from ...
6202 (evaluate_subexp_standard): ... here.
6203
d008ee21
PA
62042017-09-04 Pedro Alves <palves@redhat.com>
6205
6206 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
6207 Remove useless assignments to 'op'.
6208
827d0c51
PA
62092017-09-04 Pedro Alves <palves@redhat.com>
6210
6211 * eval.c (eval_skip_value): New function.
6212 (evaluate_subexp_standard): Use it.
6213
2c5a2be1
PA
62142017-09-04 Pedro Alves <palves@redhat.com>
6215
6216 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
6217 function name from symbol/minsym and pass it to
6218 error_call_unknown_return_type.
6219
74ea4be4
PA
62202017-09-04 Pedro Alves <palves@redhat.com>
6221
6222 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
6223 * ax-gdb.c (gen_msym_var_ref): New function.
6224 (gen_expr): Handle OP_VAR_MSYM_VALUE.
6225 * eval.c (evaluate_var_msym_value): New function.
6226 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
6227 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
6228 to call_function_by_hand.
6229 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6230 Handle OP_VAR_MSYM_VALUE.
6231 (union exp_element) <msymbol>: New field.
6232 * minsyms.h (struct type): Forward declare.
6233 (find_minsym_type_and_address): Declare.
6234 * parse.c (write_exp_elt_msym): New function.
6235 (write_exp_msymbol): Delete, refactored as ...
6236 (find_minsym_type_and_address): ... this new function.
6237 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
6238 (operator_length_standard, operator_check_standard): Handle
6239 OP_VAR_MSYM_VALUE.
6240 * std-operator.def (OP_VAR_MSYM_VALUE): New.
6241
7022349d
PA
62422017-09-04 Pedro Alves <palves@redhat.com>
6243
6244 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
6245 TYPE_GNU_IFUNC specially here. Throw error if return type is
6246 unknown.
6247 * ada-typeprint.c (print_func_type): Handle functions with unknown
6248 return type.
6249 * c-typeprint.c (c_type_print_base): Handle functions and methods
6250 with unknown return type.
6251 * compile/compile-c-symbols.c (convert_symbol_bmsym)
6252 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
6253 * compile/compile-c-types.c: Include "objfiles.h".
6254 (convert_func): For functions with unknown return type, warn and
6255 default to int.
6256 * compile/compile-object-run.c (compile_object_run): Adjust call
6257 to call_function_by_hand_dummy.
6258 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
6259 call_function_by_hand.
6260 * eval.c (evaluate_subexp_standard): Adjust calls to
6261 call_function_by_hand. Handle functions and methods with unknown
6262 return type. Pass expect_type to call_function_by_hand.
6263 * f-typeprint.c (f_type_print_base): Handle functions with unknown
6264 return type.
6265 * gcore.c (call_target_sbrk): Adjust call to
6266 call_function_by_hand.
6267 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
6268 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
6269 an integer address type instead of nodebug.
6270 * guile/scm-value.c (gdbscm_value_call): Adjust call to
6271 call_function_by_hand.
6272 * infcall.c (error_call_unknown_return_type): New function.
6273 (call_function_by_hand): New "default_return_type" parameter.
6274 Pass it down.
6275 (call_function_by_hand_dummy): New "default_return_type"
6276 parameter. Use it instead of defaulting to int. If there's no
6277 default and the return type is unknown, throw an error. If
6278 there's a default return type, and the called function has no
6279 debug info, then assume the function is prototyped.
6280 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
6281 New "default_return_type" parameter.
6282 (error_call_unknown_return_type): New declaration.
6283 * linux-fork.c (call_lseek): Cast return type of lseek.
6284 (inferior_call_waitpid, checkpoint_command): Adjust calls to
6285 call_function_by_hand.
6286 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
6287 calls to call_function_by_hand.
6288 * m2-typeprint.c (m2_procedure): Handle functions with unknown
6289 return type.
6290 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6291 (value_nsstring, print_object_command): Adjust calls to
6292 call_function_by_hand.
6293 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
6294 functions with unknown return type.
6295 (pascal_type_print_func_varspec_suffix): New function.
6296 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
6297 TYPE_CODE_METHOD>: Use it.
6298 * python/py-value.c (valpy_call): Adjust call to
6299 call_function_by_hand.
6300 * rust-lang.c (rust_evaluate_funcall): Adjust call to
6301 call_function_by_hand.
6302 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
6303 call_function_by_hand.
6304 * valops.c (value_allocate_space_in_inferior): Adjust call to
6305 call_function_by_hand.
6306 * typeprint.c (type_print_unknown_return_type): New function.
6307 * typeprint.h (type_print_unknown_return_type): New declaration.
6308
54990598
PA
63092017-09-04 Pedro Alves <palves@redhat.com>
6310
6311 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
6312 types with more than one parameter as prototyped.
6313
9a24775b
PA
63142017-09-04 Pedro Alves <palves@redhat.com>
6315
6316 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
6317 (disassemble_command): Use gdb_disassembly_flags instead of bare
6318 int.
6319 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
6320 (dump_insns, do_mixed_source_and_assembly_deprecated)
6321 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
6322 Use gdb_disassembly_flags instead of bare int.
6323 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
6324 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
6325 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
6326 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
6327 (enum gdb_disassembly_flag): ... values of this new enumeration.
6328 (gdb_disassembly_flags): Define.
6329 (gdb_disassembly)
6330 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
6331 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
6332 gdb_disassembly_flags instead of bare int.
6333 * record-btrace.c (btrace_insn_history)
6334 (record_btrace_insn_history, record_btrace_insn_history_range)
6335 (record_btrace_insn_history_from): Use gdb_disassembly_flags
6336 instead of bare int.
6337 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
6338 Use gdb_disassembly_flags instead of bare int.
6339 * target-debug.h (target_debug_print_gdb_disassembly_flags):
6340 Define.
6341 * target-delegates.c: Regenerate.
6342 * target.c (target_insn_history, target_insn_history_from)
6343 (target_insn_history_range): Use gdb_disassembly_flags instead of
6344 bare int.
6345 * target.h: Include "disasm.h".
6346 (struct target_ops) <to_insn_history, to_insn_history_from,
6347 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
6348 int.
6349 (target_insn_history, target_insn_history_from)
6350 (target_insn_history_range): Use gdb_disassembly_flags instead of
6351 bare int.
6352
80a65e9b
SM
63532017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6354
6355 * cli/cli-script.c (build_command_line): For if/while commands,
6356 check whether args is empty.
6357
6b66338c
SM
63582017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6359
6360 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
6361 (enum command_control_type): Likewise.
6362 (struct command_line): Likewise.
6363 (free_command_lines): Likewise.
6364 (struct command_lines_deleter): Likewise.
6365 (command_line_up): Likewise.
6366 (read_command_lines): Likewise.
6367 (read_command_lines_1): Likewise.
6368 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
6369 (enum command_control_type): Likewise.
6370 (struct command_line): Likewise.
6371 (free_command_lines): Likewise.
6372 (struct command_lines_deleter): Likewise.
6373 (command_line_up): Likewise.
6374 (read_command_lines): Likewise.
6375 (read_command_lines_1): Likewise.
6376 * breakpoint.h: Include cli/cli-script.h.
6377 * extension-priv.h: Likewise.
6378 * gdbcmd.h: Likewise.
6379
51abb421
PA
63802017-09-04 Pedro Alves <palves@redhat.com>
6381
6382 * ada-lang.c (is_known_support_routine): Move sal declaration to
6383 where it is initialized.
6384 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
6385 (parse_breakpoint_sals, decode_static_tracepoint_spec)
6386 (clear_command, update_static_tracepoint): Remove init_sal
6387 references. Move declarations closer to initializations.
6388 * cli/cli-cmds.c (list_command): Move sal declarations closer to
6389 initializations.
6390 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
6391 references. Move sal declarations closer to initializations.
6392 * frame.c (find_frame_sal): Return a symtab_and_line via function
6393 return instead of output parameter. Remove init_sal references.
6394 * frame.h (find_frame_sal): Return a symtab_and_line via function
6395 return instead of output parameter.
6396 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
6397 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
6398 instead of memset.
6399 (gdbscm_find_pc_line): Remove init_sal reference.
6400 * infcall.c (call_function_by_hand_dummy): Remove init_sal
6401 references. Move declarations closer to initializations.
6402 * infcmd.c (set_step_frame): Update. Move declarations closer to
6403 initializations.
6404 (finish_backward): Remove init_sal references. Move declarations
6405 closer to initializations.
6406 * infrun.c (process_event_stop_test, handle_step_into_function)
6407 (insert_hp_step_resume_breakpoint_at_frame)
6408 (insert_step_resume_breakpoint_at_caller): Likewise.
6409 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
6410 (symbol_to_sal): Likewise.
6411 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
6412 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
6413 to its initialization.
6414 * reverse.c (save_bookmark_command): Use new/delete. Remove
6415 init_sal references. Move declarations closer to initializations.
6416 * source.c (get_current_source_symtab_and_line): Remove brace
6417 initialization.
6418 (set_current_source_symtab_and_line): Now takes the sal by const
6419 reference. Remove brace initialization.
6420 (line_info): Remove init_sal reference.
6421 * source.h (set_current_source_symtab_and_line): Now takes a
6422 symtab_and_line via const reference.
6423 * stack.c (set_current_sal_from_frame): Adjust.
6424 (print_frame_info): Adjust.
6425 (get_last_displayed_sal): Return the sal via function return
6426 instead of via output parameter. Simplify.
6427 (frame_info): Adjust.
6428 * stack.h (get_last_displayed_sal): Return the sal via function
6429 return instead of via output parameter.
6430 * symtab.c (init_sal): Delete.
6431 (find_pc_sect_line): Remove init_sal references. Move
6432 declarations closer to initializations.
6433 (find_function_start_sal): Remove init_sal references. Move
6434 declarations closer to initializations.
6435 * symtab.h (struct symtab_and_line): In-class initialize all
6436 fields.
6437 * tracepoint.c (set_traceframe_context)
6438 (print_one_static_tracepoint_marker): Remove init_sal references.
6439 Move declarations closer to initializations.
6440 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
6441 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
6442 declarations closer to initializations.
6443 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
6444 init_sal references. Adjust.
6445
6c5b2ebe
PA
64462017-09-04 Pedro Alves <palves@redhat.com>
6447
6448 * ax-gdb.c (agent_command_1): Use range-for.
6449 * break-catch-throw.c (re_set_exception_catchpoint): Update.
6450 * breakpoint.c: Include "common/array-view.h".
6451 (init_breakpoint_sal, create_breakpoint_sal): Change sals
6452 parameter from struct symtabs_and_lines to
6453 array_view<symtab_and_line>. Adjust. Use range-for. Update.
6454 (breakpoint_sals_to_pc): Change sals parameter from struct
6455 symtabs_and_lines to std::vector reference.
6456 (check_fast_tracepoint_sals): Change sals parameter from struct
6457 symtabs_and_lines to std::array_view. Use range-for.
6458 (decode_static_tracepoint_spec): Return a std::vector instead of
6459 symtabs_and_lines. Update.
6460 (create_breakpoint): Update.
6461 (break_range_command, until_break_command, clear_command): Update.
6462 (base_breakpoint_decode_location, bkpt_decode_location)
6463 (bkpt_probe_create_sals_from_location)
6464 (bkpt_probe_decode_location, tracepoint_decode_location)
6465 (tracepoint_probe_decode_location)
6466 (strace_marker_create_sals_from_location): Return a std::vector
6467 instead of symtabs_and_lines.
6468 (strace_marker_create_breakpoints_sal): Update.
6469 (strace_marker_decode_location): Return a std::vector instead of
6470 symtabs_and_lines. Update.
6471 (update_breakpoint_locations): Change struct symtabs_and_lines
6472 parameters to gdb::array_view. Adjust.
6473 (location_to_sals): Return a std::vector instead of
6474 symtabs_and_lines. Update.
6475 (breakpoint_re_set_default): Use std::vector instead of struct
6476 symtabs_and_lines.
6477 (decode_location_default): Return a std::vector instead of
6478 symtabs_and_lines. Update.
6479 * breakpoint.h: Include "common/array-view.h".
6480 (struct breakpoint_ops) <decode_location>: Now returns a
6481 std::vector instead of returning a symtabs_and_lines via output
6482 parameter.
6483 (update_breakpoint_locations): Change sals parameters to use
6484 gdb::array_view.
6485 * cli/cli-cmds.c (edit_command, list_command): Update to use
6486 std::vector and gdb::array_view.
6487 (ambiguous_line_spec): Adjust to use gdb::array_view and
6488 range-for.
6489 (compare_symtabs): Rename to ...
6490 (cmp_symtabs): ... this. Change parameters to symtab_and_line
6491 const reference and adjust.
6492 (filter_sals): Rewrite using std::vector and standard algorithms.
6493 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
6494 (jump_command): Update to use std::vector.
6495 * linespec.c (struct linespec_state) <canonical_names>: Update
6496 comment.
6497 (add_sal_to_sals_basic): Delete.
6498 (add_sal_to_sals, filter_results, convert_results_to_lsals)
6499 (decode_line_2, create_sals_line_offset)
6500 (convert_address_location_to_sals, convert_linespec_to_sals)
6501 (convert_explicit_location_to_sals, parse_linespec)
6502 (event_location_to_sals, decode_line_full, decode_line_1)
6503 (decode_line_with_current_source)
6504 (decode_line_with_last_displayed, decode_objc)
6505 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
6506 (linespec_result::~linespec_result): Adjust to use std::vector
6507 instead of symtabs_and_lines.
6508 * linespec.h (linespec_sals::sals): Now a std::vector.
6509 (struct linespec_result): Use std::vector, bool, and in-class
6510 initialization.
6511 (decode_line_1, decode_line_with_current_source)
6512 (decode_line_with_last_displayed): Return std::vector.
6513 * macrocmd.c (info_macros_command): Use std::vector.
6514 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
6515 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
6516 std::vector.
6517 * probe.h (parse_probes): Return a std::vector.
6518 * python/python.c (gdbpy_decode_line): Use std::vector and
6519 gdb::array_view.
6520 * source.c (select_source_symtab, line_info): Use std::vector.
6521 * stack.c (func_command): Use std::vector.
6522 * symtab.h (struct symtabs_and_lines): Delete.
6523 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
6524
7c44b49c
PA
65252017-09-04 Pedro Alves <palves@redhat.com>
6526
6527 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6528 unittests/array-view-selftests.c.
6529 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
6530 * common/array-view.h: New file.
6531 * unittests/array-view-selftests.c: New file.
6532
e439fa14
PA
65332017-09-04 Pedro Alves <palves@redhat.com>
6534
6535 * cli/cli-cmds.c (edit_command): Pass message to
6536 ambiguous_line_spec.
6537 (list_command): Pass message to ambiguous_line_spec. Say
6538 "first"/"last" instead of "start" and "end" to be consistent with
6539 the manual.
6540 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
6541 them to print formatted message.
6542
7525b645
PA
65432017-09-04 Pedro Alves <palves@redhat.com>
6544
6545 * btrace.c (ftrace_add_pt): Pass btrace_insn to
6546 ftrace_update_insns by reference instead of pointer.
6547
badc0020
YQ
65482017-09-04 Yao Qi <yao.qi@linaro.org>
6549
6550 * i386-go32-tdep.c: Include x86-xstate.h.
6551 (i386_go32_init_abi): Call i386_target_description.
6552 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
6553 if xcr0 is X86_XSTATE_X87_MASK.
6554 * i386-tdep.h (tdesc_i386): Remove the declaration.
6555 (tdesc_i386_mmx): Likewise.
6556
d78bdb54
YQ
65572017-09-04 Yao Qi <yao.qi@linaro.org>
6558
6559 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
6560 X86_XSTATE_SSE_MASK instead of 0.
6561
ca1fa5ee
YQ
65622017-09-04 Yao Qi <yao.qi@linaro.org>
6563
6564 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
6565 i386_target_description.
6566 * i386-fbsd-nat.c (i386fbsd_read_description): Call
6567 i386_target_description.
6568 * i386-tdep.c (i386_gdbarch_init): Likewise.
6569
2434b019
YQ
65702017-09-04 Yao Qi <yao.qi@linaro.org>
6571
6572 * amd64-darwin-tdep.c: Include "x86-xstate.h".
6573 (x86_darwin_init_abi_64): Call amd64_target_description.
6574 * amd64-dicos-tdep.c: Likewise.
6575 * amd64-fbsd-nat.c: Likewise.
6576 * amd64-fbsd-tdep.c: Likewise.
6577 * amd64-nbsd-tdep.c: Likewise.
6578 * amd64-obsd-tdep.c: Likewise.
6579 * amd64-sol2-tdep.c: Likewise.
6580 * amd64-windows-tdep.c: Likewise.
6581 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
6582
0860c437
SM
65832017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6584
6585 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
6586 (btrace_function) <insn>: Change type to use std::vector.
6587 * btrace.c (ftrace_debug, ftrace_call_num_insn,
6588 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
6589 ftrace_update_insns, ftrace_compute_global_level_offset,
6590 btrace_stitch_bts, btrace_clear, btrace_insn_get,
6591 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
6592 change to std::vector.
6593 (ftrace_update_insns): Adjust to change to std::vector, change
6594 type of INSN parameter.
6595 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
6596 * record-btrace.c (btrace_call_history_insn_range,
6597 btrace_compute_src_line_range,
6598 record_btrace_frame_prev_register): Adjust to change to
6599 std::vector.
6600 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
6601 to change to std::vector.
6602
0638b7f9
TT
66032017-09-03 Tom Tromey <tom@tromey.com>
6604
6605 * corefile.c (reopen_exec_file): Use std::string.
6606
8f84fb0e
TT
66072017-09-03 Tom Tromey <tom@tromey.com>
6608
6609 * compile/compile.c (compile_register_name_mangled): Return
6610 std::string.
6611 * compile/compile-loc2c.c (pushf_register_address): Update.
6612 (pushf_register): Update.
6613 * compile/compile-c-types.c (convert_array): Update.
6614 * compile/compile-c-symbols.c (generate_vla_size): Update.
6615 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
6616 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
6617 (convert_one_symbol): Update.
6618 (generate_c_for_for_one_variable): Update.
6619 * compile/compile-c-support.c (c_get_range_decl_name): Return a
6620 std::string.
6621 (generate_register_struct): Update.
6622 * compile/compile-internal.h (c_get_range_decl_name): Return a
6623 std::string.
6624 (compile_register_name_mangled): Return std::string.
6625
18e9961f
TT
66262017-09-03 Tom Tromey <tom@tromey.com>
6627
6628 * utils.c (perror_string): Return a std::string.
6629 (throw_perror_with_name, perror_warning_with_name): Update.
6630
45343786
TT
66312017-09-03 Tom Tromey <tom@tromey.com>
6632
6633 * demangle.c (demangle_command): Use std::string,
6634 unique_xmalloc_ptr.
6635
b57af503
TT
66362017-09-03 Tom Tromey <tom@tromey.com>
6637
6638 * cli/cli-setshow.c (do_set_command): Use std::string.
6639
6eecf35f
TT
66402017-09-03 Tom Tromey <tom@tromey.com>
6641
6642 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
6643
56496dd4
TT
66442017-09-03 Tom Tromey <tom@tromey.com>
6645
6646 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
6647
e91a1fa7
TT
66482017-09-03 Tom Tromey <tom@tromey.com>
6649
6650 * mi/mi-cmd-env.c (env_execute_cli_command): Use
6651 gdb::unique_xmalloc_ptr.
6652
7ffd83d7
TT
66532017-09-03 Tom Tromey <tom@tromey.com>
6654
6655 * thread.c (print_thread_info_1): Use string_printf.
6656 (thread_apply_command, thread_apply_all_command): Use
6657 std::string.
6658
1ccbe998
TT
66592017-09-03 Tom Tromey <tom@tromey.com>
6660
6661 * valprint.c (val_print_string): Update.
6662 * gdbcore.h (memory_error_message): Return std::string.
6663 * corefile.c (memory_error_message): Return std::string.
6664 (memory_error): Update.
6665 * breakpoint.c (insert_bp_location): Update.
6666
23fdd69e
SM
66672017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6668
6669 * target/waitstatus.h (target_waitstatus_to_string): Change
6670 return type to std::string.
6671 * target/waitstatus.c (target_waitstatus_to_string): Return
6672 std::string.
6673 * target.h (target_waitstatus_to_string): Remove declaration.
6674 * infrun.c (resume, clear_proceed_status_thread,
6675 print_target_wait_results, do_target_wait, save_waitstatus,
6676 stop_all_threads): Adjust.
6677 * record-btrace.c (record_btrace_wait): Adjust.
6678 * target-debug.h
6679 (target_debug_print_struct_target_waitstatus_p): Adjust.
6680
5c811d30
JK
66812017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6682
6683 PR gdb/22046
6684 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
6685 detection.
6686
0a2dde4a
SDJ
66872017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6688
6689 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
6690 for setting/unsetting environment variables on the remote target.
6691 (New remote packets): Add entries for QEnvironmentHexEncoded,
6692 QEnvironmentUnset and QEnvironmentReset.
6693 * common/environ.c (gdb_environ::operator=): Extend method to
6694 handle m_user_set_env_list and m_user_unset_env_list.
6695 (gdb_environ::clear): Likewise.
6696 (match_var_in_string): Change type of first parameter from 'char
6697 *' to 'const char *'.
6698 (gdb_environ::set): Extend method to handle
6699 m_user_set_env_list and m_user_unset_env_list.
6700 (gdb_environ::unset): Likewise.
6701 (gdb_environ::clear_user_set_env): New method.
6702 (gdb_environ::user_set_envp): Likewise.
6703 (gdb_environ::user_unset_envp): Likewise.
6704 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
6705 m_user_unset_env_list on move constructor/assignment.
6706 (unset): Add new default parameter 'update_unset_list = true'.
6707 (clear_user_set_env): New method.
6708 (user_set_envp): Likewise.
6709 (user_unset_envp): Likewise.
6710 (m_user_set_env_list): New std::set.
6711 (m_user_unset_env_list): Likewise.
6712 * common/rsp-low.c (hex2str): New function.
6713 (bin2hex): New overload for bin2hex function.
6714 * common/rsp-low.c (hex2str): New prototype.
6715 (str2hex): New overload prototype.
6716 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
6717 QEnvironmentUnset and QEnvironmentReset.
6718 (remote_protocol_features): Add QEnvironmentHexEncoded,
6719 QEnvironmentUnset and QEnvironmentReset packets.
6720 (send_environment_packet): New function.
6721 (extended_remote_environment_support): Likewise.
6722 (extended_remote_create_inferior): Call
6723 extended_remote_environment_support.
6724 (_initialize_remote): Add QEnvironmentHexEncoded,
6725 QEnvironmentUnset and QEnvironmentReset packet configs.
6726 * unittests/environ-selftests.c (gdb_selftest_env_var):
6727 New variable.
6728 (test_vector_initialization): New function.
6729 (test_init_from_host_environ): Likewise.
6730 (test_reinit_from_host_environ): Likewise.
6731 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
6732 Likewise.
6733 (test_unset_set_empty_vector): Likewise.
6734 (test_vector_clear): Likewise.
6735 (test_std_move): Likewise.
6736 (test_move_constructor):
6737 (test_self_move): Likewise.
6738 (test_set_unset_reset): Likewise.
6739 (run_tests): Rewrite in terms of the functions above.
6740
654670a4
WP
67412017-08-31 Weimin Pan <weimin.pan@oracle.com>
6742
6743 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
6744 (adi_available): Use a temp variable of type CORE_ADDR as argument
6745 3 when calling target_auxv_search.
6746 (adi_normalize_address): Use masks and xor operators to calculate
6747 normalized address.
6748 (adi_read_versions, adi_write_versions, adi_print_versions)
6749 (do_examine, do_assign): Use paddress.
6750
7755ddb7
JB
67512017-08-29 John Baldwin <jhb@FreeBSD.org>
6752
6753 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
6754 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
6755 out of loop and add supply of FIR.
6756 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
6757 add collect of FIR.
6758
fd437cbc
SM
67592017-08-28 Simon Marchi <simon.marchi@ericsson.com>
6760
3804a343 6761 PR gdb/21827
fd437cbc
SM
6762 * cli/cli-script.c (define_command): Don't convert command name
6763 to lower case.
6764
988f6b3d
JB
67652017-08-25 Joel Brobecker <brobecker@adacore.com>
6766
6767 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
6768 Update all callers accordingly. Remove all code blocks handling
6769 the case where DISPP is not NULL.
6770
663c44ac
JK
67712017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6772
6773 PR symtab/22003
6774 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
6775 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6776 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
6777
f1902523
JK
67782017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6779
6780 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
6781 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
6782 (read_comp_units_from_section): New parameter abbrev_section, use
6783 read_and_check_comp_unit_head, allocate signatured_type if needed.
6784 (create_all_comp_units): Update read_comp_units_from_section caller.
6785
87215ad1
SDJ
67862017-08-23 Pedro Alves <palves@redhat.com>
6787
6788 PR remote/21852
6789 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
6790 to null_ptid and switch to thread without reading the registers
6791 after adding the inferior.
6792
6e41ddec
JK
67932017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6794
6795 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
6796 compile-gcc.
6797 * compile/compile.c (compile_gcc, show_compile_gcc): New.
6798 (compile_to_object): Implement compile_gcc.
6799 (_initialize_compile): Install "set compile-gcc". Initialize
6800 compile_gcc.
6801
e68c32d5
JK
68022017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6803
6804 * compile/compile.c (compile_to_object): Conditionally call
6805 set_verbose. Conditionally call compile or compile_v0.
6806
58afddc6
WP
68072017-08-07 Weimin Pan <weimin.pan@oracle.com>
6808
6809 * sparc64-tdep.h: (adi_normalize_address): New export.
6810 * sparc-nat.h: (open_adi_tag_fd): New export.
6811 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
6812 * sparc64-linux-tdep.c:
6813 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
6814 (sparc64_linux_handle_segmentation_fault): New function.
6815 (sparc64_linux_init_abi): Register
6816 sparc64_linux_handle_segmentation_fault
6817 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
6818 (sparc64_addr_bits_remove): New function.
6819 (sparc64_init_abi): Register sparc64_addr_bits_remove.
6820 (MAX_PROC_NAME_SIZE): New macro.
6821 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
6822 (sparc64adilist): New variable.
6823 (adi_proc_list): New variable.
6824 (find_adi_info): New function.
6825 (add_adi_info): New function.
6826 (get_adi_info_proc): New function.
6827 (get_adi_info): New function.
6828 (info_adi_command): New function.
6829 (read_maps_entry): New function.
6830 (adi_available): New function.
6831 (adi_normalize_address): New function.
6832 (adi_align_address): New function.
6833 (adi_convert_byte_count): New function.
6834 (adi_tag_fd): New function.
6835 (adi_is_addr_mapped): New function.
6836 (adi_read_versions): New function.
6837 (adi_write_versions): New function.
6838 (adi_print_versions): New function.
6839 (do_examine): New function.
6840 (do_assign): New function.
6841 (adi_examine_command): New function.
6842 (adi_assign_command): New function.
6843 (_initialize_sparc64_adi_tdep): New function.
6844
11db9430
SM
68452017-08-22 Simon Marchi <simon.marchi@ericsson.com>
6846
6847 * breakpoint.c (breakpoints_info): Rename to ...
6848 (info_breakpoints_command): ... this.
6849 (watchpoints_info): Rename to ...
6850 (info_watchpoints_command): ... this.
6851 (tracepoints_info): Rename to ...
6852 (info_tracepoints_command): ... this.
6853 (_initialize_breakpoint): Adjust.
6854 * dcache.c (dcache_info): Rename to ...
6855 (info_display_command): ... this.
6856 (_initialize_dcache): Adjust.
6857 * frame.h (args_info): Rename to ...
6858 (info_args_command): ... this.
6859 (locals_info): Rename to ...
6860 (info_locals_command): ... this.
6861 * infcmd.c (nofp_registers_info): Rename to ...
6862 (info_registers_command): ... this.
6863 (float_info): Rename to ...
6864 (info_float_command): ... this.
6865 (program_info): Rename to ...
6866 (info_program_command): ... this.
6867 (all_registers_info): Rename to ...
6868 (info_all_registers_command): ... this.
6869 (vector_info): Rename to ...
6870 (info_vector_command): ... this.
6871 (float_info): Rename to ...
6872 (info_float_command): ... this.
6873 (_initialize_infcmd): Adjust.
6874 * inferior.h (term_info): Rename to ...
6875 (info_terminal_command): ... this.
6876 * inflow.c (term_info): Rename to ...
6877 (info_terminal_command): ... this.
6878 (_initialize_inflow): Adjust.
6879 * infrun.c (signals_info): Rename to ...
6880 (info_signals_command): ... this.
6881 (_initialize_infrun): Adjust.
6882 * objc-lang.c (classes_info): Rename to ...
6883 (info_classes_command): ... this.
6884 (selectors_info): Rename to ...
6885 (info_selectors_command): ... this.
6886 (_initialize_objc_language): Adjust.
6887 * printcmd.c (sym_info): Rename to ...
6888 (info_symbol_command): ... this.
6889 (address_info): Rename to ...
6890 (info_address_command): ... this.
6891 (display_info): Rename to ...
6892 (info_display_command): ... this.
6893 (_initialize_printcmd): Adjust.
6894 * reverse.c (bookmarks_info): Rename to ...
6895 (info_breakpoints_command): ... this.
6896 (_initialize_reverse): Adjust.
6897 * ser-go32.c (dos_info): Rename to ...
6898 (info_serial_command): ... this.
6899 (_initialize_ser_dos): Adjust.
6900 * skip.c (skip_info): Rename to ...
6901 (info_skip_command): ... this.
6902 (_initialize_step_skip): Adjust.
6903 * source.c (line_info): Rename to ...
6904 (info_line_command): ... this.
6905 (source_info): Rename to ...
6906 (info_source_command)
6907 * stack.c (frame_info): Rename to ...
6908 (info_frame_command): ... this.
6909 (locals_info): Rename to ...
6910 (info_locals_command): ... this.
6911 (args_info): Rename to ...
6912 (info_args_command): ... this.
6913 (_initialize_stack): Adjust.
6914 * symtab.c (sources_info): Rename to ...
6915 (info_sources_command): ... this.
6916 (variables_info): Rename to ...
6917 (info_variables_command): ... this.
6918 (functions_info): Rename to ...
6919 (info_functions_command): ... this.
6920 (types_info): Rename to ...
6921 (info_types_command): ... this.
6922 (_initialize_symtab): Adjust.
6923 * target.c (target_info): Rename to ...
6924 (info_target_command): ... this.
6925 (initialize_targets): Adjust.
6926 * tracepoint.c (tvariables_info): Rename to ...
6927 (info_tvariables_command): ... this.
6928 (scope_info): Rename to ...
6929 (info_scope_command): ... this.
6930 (trace_dump_actions): Adjust.
6931 (_initialize_tracepoint): Adjust.
6932
b270e6f9
TT
69332017-08-22 Tom Tromey <tom@tromey.com>
6934
6935 * breakpoint.h (install_breakpoint): Update.
6936 * breakpoint.c (add_solib_catchpoint): Update.
6937 (install_breakpoint): Change argument to a std::unique_ptr.
6938 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
6939 (create_breakpoint_sal, create_breakpoint): Update.
6940 (watch_command_1, catch_exec_command_1)
6941 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
6942 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
6943 Return the breakpoint.
6944 (set_raw_breakpoint_without_location, set_raw_breakpoint)
6945 (new_single_step_breakpoint): Update.
6946 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
6947 std::unique_ptr.
6948 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6949 std::unique_ptr.
6950 * break-catch-sig.c (create_signal_catchpoint): Use
6951 std::unique_ptr.
6952 * ada-lang.c (create_ada_exception_catchpoint): Use
6953 std::unique_ptr.
6954
36bd8eaa
TT
69552017-08-22 Tom Tromey <tom@tromey.com>
6956
6957 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
6958
56f37645
TT
69592017-08-22 Tom Tromey <tom@tromey.com>
6960
6961 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
6962 (lookup_partial_symbol): Update.
6963
0b581c69
TT
69642017-08-22 Tom Tromey <tom@tromey.com>
6965
6966 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
6967 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
6968 (find_and_open_source, symtab_to_fullname): Update.
6969 * psymtab.c (psymtab_to_fullname): Update.
6970
14278e1f
TT
69712017-08-22 Tom Tromey <tom@tromey.com>
6972
6973 * exec.c (exec_file_attach): Update.
6974 * linux-thread-db.c (try_thread_db_load): Update.
6975 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
6976 * utils.c (gdb_realpath): Change return type.
6977 (gdb_realpath_keepfile): Update.
6978 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
6979 (_initialize_utils): Register the new self test.
6980 * source.c (openp): Update.
6981 (find_and_open_source): Update.
6982 * nto-tdep.c (nto_find_and_open_solib): Update.
6983 * main.c (set_gdb_data_directory): Update.
6984 (captured_main_1): Update.
6985 * dwarf2read.c (dwarf2_get_dwz_file): Update
6986 (dw2_map_symbol_filenames): Update.
6987 * auto-load.c (auto_load_safe_path_vec_update): Update.
6988 (filename_is_in_auto_load_safe_path_vec): Change type of
6989 "filename_realp".
6990 (auto_load_objfile_script): Update.
6991 (file_is_auto_load_safe): Update. Use std::string.
6992 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
6993
4971c9a7
TT
69942017-08-22 Tom Tromey <tom@tromey.com>
6995
6996 * utils.c (gdb_realpath_keepfile): Return a
6997 gdb::unique_xmalloc_ptr.
6998 * exec.c (exec_file_attach): Update.
6999 * utils.h (gdb_realpath_keepfile): Return a
7000 gdb::unique_xmalloc_ptr.
7001
e3e41d58
TT
70022017-08-22 Tom Tromey <tom@tromey.com>
7003
7004 * compile/compile.c (compile_file_command): Use
7005 gdb::unique_xmalloc_ptr, std::string.
7006 * utils.c (gdb_abspath): Change return type.
7007 * source.c (openp): Update.
7008 * objfiles.c (allocate_objfile): Update.
7009 * main.c (set_gdb_data_directory): Update.
7010 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
7011
0d999a6e
ZZ
70122017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
7013
7014 * cli-cmds.c (list_commands): List actual code around more than
7015 one location.
7016
329d5e7e
JB
70172017-08-21 John Baldwin <jhb@FreeBSD.org>
7018
7019 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
7020
bf223d3e
PA
70212017-08-21 Pedro Alves <palves@redhat.com>
7022
7023 PR gdb/19487
7024 * c-exp.y (variable production): Handle function aliases.
7025 * minsyms.c (msymbol_is_text): New function.
7026 * minsyms.h (msymbol_is_text): Declare.
7027 * symtab.c (find_function_alias_target): New function.
7028 * symtab.h (find_function_alias_target): Declare.
7029
c973d0aa
PA
70302017-08-21 Pedro Alves <palves@redhat.com>
7031
7032 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
7033 typedefs.
7034 * typeprint.c (whatis_exp): If handling "whatis", and expression
7035 is OP_TYPE, strip one typedef level. Otherwise don't strip
7036 typedefs here.
7037 * valops.c (value_cast): Save "to" type before resolving
7038 stubs/typedefs. Use that type as resulting value's type.
7039
2989a365
TT
70402017-08-18 Tom Tromey <tom@tromey.com>
7041 Pedro Alves <palves@redhat.com>
7042
7043 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
7044 * sol-thread.c (sol_thread_resume, sol_thread_wait)
7045 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
7046 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
7047 * proc-service.c (ps_xfer_memory): Use scoped_restore.
7048 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
7049 (linux_get_siginfo_data): Add "thread" argument. Use
7050 scoped_restore.
7051 * linux-nat.c (linux_child_follow_fork)
7052 (check_stopped_by_watchpoint): Use scoped_restore.
7053 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
7054 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
7055 (restore_inferior_ptid, save_inferior_ptid): Remove.
7056 * btrace.c (btrace_fetch): Use scoped_restore.
7057 * bsd-uthread.c (bsd_uthread_fetch_registers)
7058 (bsd_uthread_store_registers): Use scoped_restore.
7059 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
7060 scoped_restore.
7061 * aix-thread.c (aix_thread_resume, aix_thread_wait)
7062 (aix_thread_xfer_partial): Use scoped_restore.
7063 * inferior.h (save_inferior_ptid): Remove.
7064
e60eb288
YQ
70652017-08-18 Yao Qi <yao.qi@linaro.org>
7066
7067 PR tdep/21818
7068 * arm-tdep.c (gdb_print_insn_arm): Mark
7069 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
7070
6d580b63
YQ
70712017-08-18 Yao Qi <yao.qi@linaro.org>
7072
7073 * NEWS: Mention GDBserver's new option "--selftest".
7074 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
7075 * selftest.c: Move it to common/selftest.c.
7076 * selftest.h: Move it to common/selftest.h.
7077 * selftest-arch.c (reset): New function.
7078 (tests_with_arch): Call reset.
7079
86dcbf50
YQ
70802017-08-18 Yao Qi <yao.qi@linaro.org>
7081
7082 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
7083 instead of exception_fprintf and printf_filtered.
7084
7649770c
YQ
70852017-08-18 Yao Qi <yao.qi@linaro.org>
7086
7087 * selftest.c (register_self_test): Rename it to
7088 selftests::register_test.
7089 (run_self_tests): selftest::run_tests.
7090 * selftest.h: Update declarations.
7091 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
7092 selftests::register_test_foreach_arch.
7093 * selftest-arch.h: Update declaration.
7094 * aarch64-tdep.c: Update.
7095 * arm-tdep.c: Likewise.
7096 * disasm-selftests.c: Likewise.
7097 * dwarf2loc.c: Likewise.
7098 * dwarf2-frame.c: Likewise.
7099 * findvar.c: Likewise.
7100 * gdbarch-selftests.c: Likewise.
7101 * maint.c (maintenance_selftest): Likewise.
7102 * regcache.c: Likewise.
7103 * rust-exp.y: Likewise.
7104 * selftest-arch.c: Likewise.
7105 * unittests/environ-selftests.c: Likewise.
7106 * unittests/function-view-selftests.c: Likewise.
7107 * unittests/offset-type-selftests.c: Likewise.
7108 * unittests/optional-selftests.c: Likewise.
7109 * unittests/scoped_restore-selftests.c: Likewise.
7110 * utils-selftests.c: Likewise.
7111
b0cba12e
PA
71122017-08-17 Pedro Alves <palves@redhat.com>
7113
7114 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
7115 local.
7116
4c8aa72d
PA
71172017-08-17 Pedro Alves <palves@redhat.com>
7118
7119 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
7120 field.
7121 (reset_die_in_process): Delete, replaced by ...
7122 (process_die_scope): ... this new class. Make it responsible for
7123 freeing cu->line_header too.
7124 (process_die): Use process_die_scope.
7125 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
7126 cu->line_header_die_owner. Don't release the line header if it's
7127 owned by the CU.
7128 (setup_type_unit_groups): Make the CU/DIE own the line header.
7129 Don't release the line header here.
7130
ba713918
AL
71312017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
7132
7133 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
7134
44d0fb3a
RK
71352017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
7136
7137 * NEWS: Mention new shortcuts for nexti and stepi in TUI
7138 Single-Key mode
7139
a5afdb16
RK
71402017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
7141
7142 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
7143 mode command list.
7144
47613aeb
SH
71452017-08-15 Stafford Horne <shorne@gmail.com>
7146
7147 * MAINTAINERS (Write After Approval): Add Stafford Horne.
7148
9c3cc999
SH
71492017-08-15 Stafford Horne <shorne@gmail.com>
7150
7151 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
7152
206726fb
SDJ
71532017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
7154
7155 PR gdb/21954
7156 * infcmd.c (unset_environment_command): Use the 'clear' method on
7157 the environment instead of resetting it.
7158
0335ac6d
JB
71592017-08-15 John Baldwin <jhb@FreeBSD.org>
7160
7161 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
7162 platforms.
7163
d3abe1c8
TT
71642017-08-14 Tom Tromey <tom@tromey.com>
7165
7166 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
7167 (print_binary_chars): Likewise.
7168 (BITS_IN_BYTES): Remove.
7169
d6382fff
TT
71702017-08-14 Tom Tromey <tom@tromey.com>
7171
7172 PR gdb/21675
7173 * valprint.c (LOW_ZERO): Change value to 034.
7174 (print_octal_chars): Add static_asserts for octal constants.
7175 * printcmd.c (print_scalar_formatted): Add 'd' case.
7176
f978cb06
TT
71772017-08-11 Tom Tromey <tom@tromey.com>
7178
7179 * symfile.c (add_symbol_file_command): Use std::vector.
7180
2f5404b3
TT
71812017-08-14 Tom Tromey <tom@tromey.com>
7182
7183 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
7184 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
7185 std::move.
7186 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
7187
de7985c3
PA
71882017-08-11 Pedro Alves <palves@redhat.com>
7189
7190 * infrun.c (process_event_stop_test): Adjust
7191 function_name_is_marked_for_skip call.
7192 * skip.c: Include <list>.
7193 (skiplist_entry): Make it a class with private fields, and
7194 getters/setters.
7195 (skiplist_entry_chain): Delete.
7196 (skiplist_entries): New.
7197 (skiplist_entry_count): Delete.
7198 (highest_skiplist_entry_num): New.
7199 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
7200 (add_skiplist_entry): Delete.
7201 (skiplist_entry::skiplist_entry): New.
7202 (skiplist_entry::add_entry): New.
7203 (skip_file_command, skip_function): Adjust.
7204 (compile_skip_regexp): Delete.
7205 (skip_command): Don't compile regexp here. Adjust to use
7206 skiplist_entry::add_entry.
7207 (skip_info): Adjust to use range-for and getters.
7208 (skip_enable_command, skip_disable_command): Adjust to use
7209 range-for and setters.
7210 (skip_delete_command): Adjust to use std::list.
7211 (add_skiplist_entry): Delete.
7212 (skip_file_p): Delete, refactored as ...
7213 (skiplist_entry::do_skip_file_p): ... this new method.
7214 (skip_gfile_p): Delete, refactored as ...
7215 (skiplist_entry::do_gskip_file_p): ... this new method.
7216 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
7217 (skiplist_entry::skip_function_p): ... this new method.
7218 (function_name_is_marked_for_skip): Now returns bool, and takes
7219 the function sal by const reference. Adjust to use range-for and
7220 skiplist_entry methods.
7221 (_initialize_step_skip): Remove references to
7222 skiplist_entry_chain, skiplist_entry_count.
7223 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
7224 takes the function sal by const reference.
7225
be7d3cd5
YQ
72262017-08-11 Yao Qi <yao.qi@linaro.org>
7227
7228 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
7229 (dwarf2_frame_cache): Remove reset_cache_cleanup.
7230 (dwarf2_frame_cache):
7231 * frame-unwind.c (frame_unwind_try_unwinder): Catch
7232 RETURN_MASK_ALL and set *this_case to NULL.
7233 * frame-unwind.h: Update comments.
7234
1c90d9f0
YQ
72352017-08-11 Yao Qi <yao.qi@linaro.org>
7236
7237 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
7238 (dwarf2_frame_state_copy_regs): Remove.
7239 (dwarf2_frame_state_free_regs): Remove.
7240 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
7241 (dwarf2_restore_rule): Call method .alloc_regs instead of
7242 dwarf2_frame_state_alloc_regs.
7243 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
7244 constructor. Call std::move.
7245 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
7246 (dwarf2_frame_cache): Likewise.
7247
7248 [GDB_SELF_TEST]: Include selftest.h and
7249 selftest-arch.h.
7250 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
7251 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
7252 execute_cfa_program_test.
7253
7254 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
7255 copy ctor, assignment operator, move assignment.
7256 <alloc_regs>: New method.
7257 <swap>: New method.
7258 (struct dwarf2_frame_state): Delete dtor.
7259 (dwarf2_frame_state_alloc_regs): Remove declaration.
7260 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
7261 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
7262
afe37d6b
YQ
72632017-08-11 Yao Qi <yao.qi@linaro.org>
7264
7265 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
7266 (dwarf2_frame_state::dwarf2_frame_state): New.
7267 (dwarf2_frame_state::~dwarf2_frame_state): New.
7268 (dwarf2_fetch_cfa_info): Update.
7269 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
7270 rather than a pointer. Update code.
7271 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
7272 dtor.
7273 <data_align, code_align, retaddr_column>: Change them to const.
7274 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
7275 to bool.
7276
b348037f
YQ
72772017-08-11 Yao Qi <yao.qi@linaro.org>
7278
7279 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
7280 <loc.exp>: New field.
7281 * dwarf2-frame.c (execute_cfa_program): Update.
7282 (dwarf2_frame_prev_register): Update.
7283
e7c9de26
PA
72842017-08-10 Pedro Alves <palves@redhat.com>
7285
7286 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
7287
e8c6b620
JB
72882017-08-09 John Baldwin <jhb@FreeBSD.org>
7289
7290 * fbsd-nat.c (struct fbsd_fork_info): Remove.
7291 (fbsd_pending_children): Use std::list.
7292 (fbsd_remember_child): Likewise.
7293 (fbsd_is_child_pending): Likewise.
7294 (fbsd_pending_vfork_done): Use std::forward_list.
7295 (fbsd_add_vfork_done): Likewise.
7296 (fbsd_is_vfork_done_pending): Likewise.
7297 (fbsd_next_vfork_done): Likewise.
7298
e4a26669
JB
72992017-08-09 John Baldwin <jhb@FreeBSD.org>
7300
7301 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
7302 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
7303 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
7304 for `mapfilename'.
7305 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 7306 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 7307
142311d3
JB
73082017-08-09 John Baldwin <jhb@FreeBSD.org>
7309
7310 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
7311 "filestuff.h".
7312 (fbsd_find_memory_regions): Fix `mapfile' initialization.
7313
42fa2e0e
TT
73142017-08-09 Tom Tromey <tom@tromey.com>
7315
7316 * skip.c (skiplist_entry): New constructor.
7317 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
7318 (skiplist_entry::file_is_glob): Now bool.
7319 (skiplist_entry::file, skiplist_entry::function): Now
7320 std::string.
7321 (make_skip_entry): Return a unique_ptr. Use new.
7322 (free_skiplist_entry, free_skiplist_entry_cleanup)
7323 (make_free_skiplist_entry_cleanup): Remove.
7324 (skip_command, skip_disable_command, add_skiplist_entry)
7325 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
7326 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
7327 (function_name_is_marked_for_skip): Update.
7328 (skip_delete_command): Update. Use delete.
7329
cd3af38d
JW
73302017-08-09 Jiong Wang <jiong.wang@arm.com>
7331
7332 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
7333 (aarch64_linux_core_read_description): New function.
7334 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
7335
29592bde
PA
73362017-08-09 Pedro Alves <palves@redhat.com>
7337
7338 * cp-name-parser.y (cp_comp_to_string): Return a
7339 gdb::unique_xmalloc_ptr<char>.
7340 * cp-support.c (replace_typedefs_qualified_name)
7341 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
7342 (cp_canonicalize_string_full): Use op= instead of explicit
7343 convertion.
7344 (cp_class_name_from_physname, method_name_from_physname)
7345 (cp_func_name, cp_remove_params): Adjust to use
7346 gdb::unique_xmalloc_ptr<char>.
7347 * cp-support.h (cp_comp_to_string): Return a
7348 gdb::unique_xmalloc_ptr<char>.
7349 * python/py-type.c (typy_lookup_type): Adjust to use
7350 gdb::unique_xmalloc_ptr<char>.
7351
b3340438
L
73522017-08-09 H.J. Lu <hongjiu.lu@intel.com>
7353
7354 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
7355
e88e8651
YQ
73562017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
7357 Yao Qi <yao.qi@linaro.org>
7358
7359 * cp-support.c (cp_canonicalize_string_full): Use
7360 gdb::unique_xmalloc_ptr<char>.
7361 (cp_canonicalize_string): Likewise.
7362
f5a29eb0
YQ
73632017-08-09 Yao Qi <yao.qi@linaro.org>
7364
7365 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
7366 * regformats/i386/amd64-avx-avx512.dat: Remove.
7367 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
7368 * regformats/i386/amd64-avx-mpx.dat:Remove.
7369 * regformats/i386/amd64-avx.dat: Remove.
7370 * regformats/i386/amd64-mpx.dat: Remove.
7371 * regformats/i386/i386-avx-avx512.dat: Remove.
7372 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
7373 * regformats/i386/i386-avx-mpx.dat: Remove.
7374 * regformats/i386/i386-mmx.dat: Remove.
7375 * regformats/i386/i386-mpx.dat: Remove.
7376
57757c2f
YQ
73772017-08-09 Yao Qi <yao.qi@linaro.org>
7378
7379 * amd64-tdep.h (tdesc_x32): Remove the declaration.
7380 * amd64-tdep.c: Don't include features/i386/x32*.c.
7381 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
7382 functions.
7383 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
7384 and i386/x32-avx-avx512.
7385 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
7386 and i386/x32.xml.
7387 * features/i386/x32-avx-avx512.c: Removed.
7388 * features/i386/x32-avx-avx512.xml: Removed.
7389 * features/i386/x32-avx.c: Removed.
7390 * features/i386/x32-avx.xml: Removed.
7391 * features/i386/x32.c: Removed.
7392 * features/i386/x32.xml: Removed.
7393 * regformats/i386/x32-avx-avx512.dat: Removed.
7394 * regformats/i386/x32-avx.dat: Removed.
7395 * regformats/i386/x32.dat: Removed.
7396
ba7b109b
MR
73972017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7398
7399 PR breakpoints/21886
7400 * mem-break.c (default_memory_insert_breakpoint): Use
7401 `->placed_address' rather than `->reqstd_address' for the
7402 breakpoint location.
7403
e347efc3
MR
74042017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7405
7406 * arch-utils.c (default_print_insn): Remove arch/mach/endian
7407 assertions.
7408
0dba2a6c
MR
74092017-08-07 Maciej W. Rozycki <macro@imgtec.com>
7410
7411 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
7412 a union of `tdep_info', `tdesc_data' and `id'.
7413 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
7414 rather than `info.tdep_info'.
7415 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
7416 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7417 * i386-tdep.c (i386_gdbarch_init): Likewise.
7418 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
7419 * mips-tdep.c (mips_gdbarch_init): Likewise.
7420 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7421 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7422 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
7423 `info.tdep_info'.
7424 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
7425 `info.tdep_info'.
7426 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7427 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
7428 `info.tdep_info'.
7429 * spu-tdep.c (spu_gdbarch_init): Likewise.
7430 * gdbarch.h: Regenerate.
7431
16eb6b2d
LS
74322017-08-07 Leszek Swirski <leszeks@google.com>
7433
7b005726 7434 PR symtab/20899
16eb6b2d
LS
7435 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
7436
74cbb09e
SM
74372017-08-07 Simon Marchi <simon.marchi@ericsson.com>
7438
7439 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
7440 (gdbsim_open): Rename gdb_argv args object to argv.
7441
ee0c3293
TT
74422017-08-05 Tom Tromey <tom@tromey.com>
7443
7444 * compile/compile-object-load.c (compile_object_load): Use
7445 gdb::unique_xmalloc_ptr.
7446 * cli/cli-dump.c (scan_filename): Rename from
7447 scan_filename_with_cleanup. Change return type.
7448 (scan_expression): Rename from scan_expression_with_cleanup.
7449 Change return type.
7450 (dump_memory_to_file, dump_value_to_file, restore_command):
7451 Use gdb::unique_xmalloc_ptr. Update.
7452 * cli/cli-cmds.c (find_and_open_script): Use
7453 gdb::unique_xmalloc_ptr.
7454 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
7455 * symmisc.c (maintenance_print_symbols)
7456 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
7457 * symfile.c (symfile_bfd_open, generic_load)
7458 (add_symbol_file_command, remove_symbol_file_command): Use
7459 gdb::unique_xmalloc_ptr.
7460 * source.c (openp): Use gdb::unique_xmalloc_ptr.
7461 * psymtab.c (maintenance_print_psymbols): Use
7462 gdb::unique_xmalloc_ptr.
7463 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
7464 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
7465 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
7466 (reload_shared_libraries_1): Likewise.
7467
3232fabd
TT
74682017-08-05 Tom Tromey <tom@tromey.com>
7469
7470 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
7471 (rust_op_vector, rust_set_vector): New typedefs.
7472 (current_parser): New global.
7473 (work_obstack): Change to pointer type. Update all users.
7474 (rust_ast, pstate): Remove globals.
7475 (struct rust_parser): New.
7476 (%union) <params, field_inits>: Change type.
7477 (start, tuple_expr, unit_expr, struct_expr_list, literal)
7478 (field_expr, expr_list, maybe_expr_list, type_list): Update.
7479 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
7480 (convert_params_to_types, convert_params_to_expression): Change
7481 type of "params".
7482 (ast_string): Change type of "fields".
7483 (rust_parse): Make a rust_parser. Remove cleanups.
7484 (rust_lex_tests): Make and install an auto_obstack.
7485
f02fd774
YQ
74862017-08-04 Yao Qi <yao.qi@linaro.org>
7487
7488 * configure.srv (ipa_x32_linux_regobj): New.
7489 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
7490 instead of X86_TDESC_AVX512.
7491 (initialize_low_tracepoint): Call
7492 init_registers_x32_avx_avx512_linux.
7493
91975afd
YQ
74942017-08-04 Yao Qi <yao.qi@linaro.org>
7495
7496 * utils.h (gdb_argv): Add namespace std for nullptr_t.
7497
2331fa3a
RK
74982017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
7499
7500 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
7501
744e4fe1
TT
75022017-08-03 Tom Tromey <tom@tromey.com>
7503
7504 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
7505 Remove.
7506 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
7507
1c034b67
TT
75082017-08-03 Tom Tromey <tom@tromey.com>
7509
7510 * python/py-param.c (compute_enum_values): Use gdb_argv.
7511
773a1edc
TT
75122017-08-03 Tom Tromey <tom@tromey.com>
7513
7514 * utils.h (struct gdb_argv_deleter): New.
7515 (gdb_argv): New class.
7516 * utils.c (gdb_argv::reset): New method.
7517 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
7518 * tracefile.c (tsave_command): Use gdb_argv.
7519 * top.c (new_ui_command): Use gdb_argv.
7520 * symmisc.c (maintenance_print_symbols)
7521 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
7522 * symfile.c (symbol_file_command, generic_load)
7523 (remove_symbol_file_command): Use gdb_argv.
7524 * stack.c (backtrace_command): Use gdb_argv.
7525 * source.c (add_path, show_substitute_path_command)
7526 (unset_substitute_path_command, set_substitute_path_command):
7527 Use gdb_argv.
7528 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
7529 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
7530 * remote.c (extended_remote_run, remote_put_command)
7531 (remote_get_command, remote_delete_command): Use gdb_argv.
7532 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
7533 (gdbsim_open): Use gdb_argv.
7534 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
7535 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
7536 * procfs.c (procfs_info_proc): Use gdb_argv.
7537 * interps.c (interpreter_exec_cmd): Use gdb_argv.
7538 * infrun.c (handle_command): Use gdb_argv.
7539 * inferior.c (add_inferior_command, clone_inferior_command):
7540 Use gdb_argv.
7541 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
7542 * exec.c (exec_file_command): Use gdb_argv.
7543 * cli/cli-cmds.c (alias_command): Use gdb_argv.
7544 * compile/compile.c (build_argc_argv): Use gdb_argv.
7545
0d50bde3
TT
75462017-08-03 Tom Tromey <tom@tromey.com>
7547
7548 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
7549
7f968c89
TT
75502017-08-03 Tom Tromey <tom@tromey.com>
7551
7552 * python/python.c (compute_python_string): Return std::string.
7553 (gdbpy_eval_from_control_command): Update.
7554 (do_start_initialization): Use std::string.
7555 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
7556 xstrprintf.
7557 * python/py-breakpoint.c (local_setattro): Use string_printf, not
7558 xstrprintf.
7559
3c9ebddd
TT
75602017-08-03 Tom Tromey <tom@tromey.com>
7561
7562 * top.h (do_restore_instream_cleanup): Remove.
7563 * top.c (do_restore_instream_cleanup): Remove.
7564 (read_command_file): Use scoped_restore.
7565 * cli/cli-script.c (execute_user_command): Use scoped_restore.
7566
b51b225e
TT
75672017-08-03 Tom Tromey <tom@tromey.com>
7568
7569 * cli/cli-script.c (execute_user_command)
7570 (execute_control_command): Use scoped_restore.
7571
ac991630
TT
75722017-08-03 Tom Tromey <tom@tromey.com>
7573
7574 * cli/cli-script.c (do_restore_user_call_depth): Remove.
7575 (execute_user_command): Remove user_call_depth; use
7576 user_args_stack's size instead.
7577
898e0c8e
TT
75782017-08-03 Tom Tromey <tom@tromey.com>
7579
7580 * top.h (in_user_command): Remove.
7581 * top.c (in_user_command): Remove.
7582 * cli/cli-script.c (do_restore_user_call_depth)
7583 (execute_user_command): Update.
7584
26fcd5d7
TT
75852017-08-03 Tom Tromey <tom@tromey.com>
7586
7587 * valops.c (search_struct_method): Use gdb::byte_vector.
7588 * valarith.c (value_concat): Use std::vector.
7589 * target.c (memory_xfer_partial): Use gdb::byte_vector.
7590 (simple_search_memory): Likewise.
7591 * printcmd.c (find_string_backward): Use gdb::byte_vector.
7592 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
7593 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
7594 * elfread.c (elf_rel_plt_read): Use std::string.
7595 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
7596 * cli/cli-dump.c (restore_section_callback): Use
7597 gdb::byte_vector.
7598
7c218e6c
TT
75992017-08-03 Tom Tromey <tom@tromey.com>
7600
7601 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
7602
31b68d4a
TT
76032017-08-03 Tom Tromey <tom@tromey.com>
7604
7605 * tui/tui-regs.c (tui_restore_gdbout): Remove.
7606 (tui_register_format): Use scoped_restore.
7607
2ec845e7
TT
76082017-08-03 Tom Tromey <tom@tromey.com>
7609
7610 * reverse.c (exec_direction_default): Remove.
7611 (exec_reverse_once): Use scoped_restore.
7612 * remote.c (restore_remote_timeout): Remove.
7613 (remote_flash_erase, remote_flash_write, remote_flash_done)
7614 (readchar, remote_serial_write): Use scoped_restore.
7615 * cli/cli-script.c (struct source_cleanup_lines_args)
7616 (source_cleanup_lines): Remove.
7617 (script_from_file): Use scoped_restore.
7618 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
7619 (source_command): Use scoped_restore.
7620
b3bc8453
TT
76212017-08-03 Tom Tromey <tom@tromey.com>
7622
7623 * utils.h (make_cleanup_free_so): Remove.
7624 * utils.c (do_free_so, make_cleanup_free_so): Remove.
7625 * solist.h (struct so_deleter): New.
7626 (so_list_up): New typedef.
7627 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
7628
e3ad2841
TT
76292017-08-03 Tom Tromey <tom@tromey.com>
7630
7631 * utils.h (make_cleanup_restore_current_language): Remove.
7632 * utils.c (do_restore_current_language)
7633 (make_cleanup_restore_current_language): Remove.
7634 * parse.c (parse_exp_in_context_1)
7635 (parse_expression_with_language): Use
7636 scoped_restore_current_language.
7637 * mi/mi-main.c (mi_cmd_execute): Use
7638 scoped_restore_current_language.
7639 * language.h (scoped_restore_current_language): New class.
7640
b80cf838
TT
76412017-08-03 Tom Tromey <tom@tromey.com>
7642
7643 * compile/compile.c (cleanup_unlink_file): Remove.
7644 (compile_to_object): Use gdb::unlinker.
7645 (eval_compile_command): Likewise.
7646
fad0444a
TT
76472017-08-03 Tom Tromey <tom@tromey.com>
7648
7649 * utils.h (make_cleanup_fclose): Remove.
7650 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
7651
6e7bc05c
TT
76522017-08-03 Tom Tromey <tom@tromey.com>
7653
7654 * top.c (open_terminal_stream): Return gdb_file_up.
7655 (new_ui_command): Update.
7656
4a45905b
TT
76572017-08-03 Tom Tromey <tom@tromey.com>
7658
7659 * source.c (print_source_lines_base, forward_search_command)
7660 (reverse_search_command): Use gdb_file_up.
7661
7cd06d6e
TT
76622017-08-03 Tom Tromey <tom@tromey.com>
7663
7664 * fbsd-nat.c (fbsd_find_memory_regions): Update.
7665
ed166945
TT
76662017-08-03 Tom Tromey <tom@tromey.com>
7667
7668 * cli/cli-cmds.c (find_and_open_script): Change return type.
7669 Remove "streamp" and "full_path" parameters.
7670 (source_script_with_search): Update.
7671 * auto-load.c (source_script_file): Update.
7672 * cli/cli-cmds.h (find_and_open_script): Change type.
7673 (open_script): New struct.
7674
d419f42d
TT
76752017-08-03 Tom Tromey <tom@tromey.com>
7676
7677 * xml-support.c (xml_fetch_content_from_file): Update.
7678 * ui-file.c (stdio_file::open): Update.
7679 * tracefile-tfile.c (tfile_start): Update.
7680 * remote.c (remote_file_put, remote_file_get): Update.
7681 * nat/linux-procfs.c (linux_proc_get_int)
7682 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
7683 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
7684 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
7685 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7686 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
7687 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
7688 * linux-nat.c (linux_proc_pending_signals): Update.
7689 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
7690 (file_closer): Remove.
7691 * compile/compile.c (compile_to_object): Update.
7692 * common/filestuff.h (struct gdb_file_deleter): New.
7693 (gdb_file_up): New typedef.
7694 (gdb_fopen_cloexec): Change return type.
7695 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
7696 * cli/cli-dump.c (fopen_with_cleanup): Remove.
7697 (dump_binary_file, restore_binary_file): Update.
7698 * auto-load.c (auto_load_objfile_script_1): Update.
7699
4a2b031d
TT
77002017-08-03 Tom Tromey <tom@tromey.com>
7701
7702 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
7703 (info_static_tracepoint_markers_command): Likewise.
7704 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
7705 * skip.c (skip_info): Use ui_out_emit_table.
7706 * progspace.c (print_program_space): Use ui_out_emit_table.
7707 * osdata.c (info_osdata): Use ui_out_emit_table.
7708 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
7709 ui_out_emit_table.
7710 * linux-thread-db.c (info_auto_load_libthread_db): Use
7711 ui_out_emit_table.
7712 * inferior.c (print_inferior): Use ui_out_emit_table.
7713 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
7714 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
7715 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
7716 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
7717 * ui-out.h (class ui_out_emit_table): New.
7718
a4f320fd
MR
77192017-08-02 Maciej W. Rozycki <macro@imgtec.com>
7720
7721 * mips-tdep.c (mips_fpu_type_str): New function.
7722 (mips_dump_tdep): Call it.
7723
a2f1f308
MR
77242017-08-01 Maciej W. Rozycki <macro@imgtec.com>
7725
7726 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
7727 `->mips_fpu_type'.
7728
7e5ed83b
XR
77292017-07-31 Xavier Roirand <roirand@adacore.com>
7730
7731 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7732
4c9dc811
XR
77332017-07-27 Xavier Roirand <roirand@adacore.com>
7734
7735 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
7736
27d41eac
YQ
77372017-07-26 Yao Qi <yao.qi@linaro.org>
7738
7739 * cli/cli-cmds.c (maintenancechecklist): New variable.
7740 * gdbcmd.h (maintenancechecklist): Declare it.
7741 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
7742 Call i386_linux_read_description with different masks.
7743 * maint.c (maintenance_check_command): New function.
7744 (_initialize_maint_cmds): Call add_prefix_cmd.
7745 * target-descriptions.c (tdesc_reg): override operator != and ==.
7746 (tdesc_type): Likewise.
7747 (tdesc_feature): Likewise.
7748 (target_desc): Likewise.
7749 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
7750 (maintenance_check_xml_descriptions): New function.
7751 (_initialize_target_descriptions) Add command "xml-descriptions".
7752 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
7753
ea03d0d3
YQ
77542017-07-26 Yao Qi <yao.qi@linaro.org>
7755
7756 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
7757 Include features/i386/32bit-*.c.
7758 (i386_linux_read_description): Generate target description if it
7759 doesn't exist.
7760 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
7761 functions.
7762 * features/i386/32bit-linux.c: Re-generated.
7763 * features/i386/32bit-sse.c: Likewise.
7764 * target-descriptions.c (print_c_feature::visit): Print code to
7765 set register number if needed.
7766 (print_c_feature) <m_next_regnum>: New field.
7767
25aa13e5
YQ
77682017-07-26 Yao Qi <yao.qi@linaro.org>
7769
7770 * features/Makefile (CFILES): Rename with TDESC_CFILES.
7771 (FEATURE_XMLFILES): New.
7772 (FEATURE_CFILES): New.
7773 New rules.
7774 (clean-cfiles): Remove generated c files.
7775 * features/i386/32bit-avx.c: Generated.
7776 * features/i386/32bit-avx512.c: Generated.
7777 * features/i386/32bit-core.c: Generated.
7778 * features/i386/32bit-linux.c: Generated.
7779 * features/i386/32bit-mpx.c: Generated.
7780 * features/i386/32bit-pkeys.c: Generated.
7781 * features/i386/32bit-sse.c: Generated.
7782 * target-descriptions.c: Include algorithm.
7783 (tdesc_element_visitor): Add method visit_end.
7784 (print_c_tdesc): Implement visit_end.
7785 (print_c_tdesc:: m_filename_after_features): Move it to
7786 protected.
7787 (print_c_feature): New class.
7788 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
7789 name starts with "i386/32bit-".
7790
6eb1e6a8
YQ
77912017-07-26 Yao Qi <yao.qi@linaro.org>
7792
7793 * target-descriptions.c (tdesc_element_visitor): New class.
7794 (tdesc_element): New class.
7795 (tdesc_reg): Inherit from tdesc_element.
7796 (tdesc_reg::accept): New function.
7797 (tdesc_type): Inherit from tdesc_element.
7798 (tdesc_type::accept): New function.
7799 (tdesc_feature): Inherit from tdesc_element.
7800 (tdesc_feature::accept): New function.
7801 (target_desc): Inherit from tdesc_element.
7802 (target_desc::target_desc): New.
7803 (target_desc::~target_desc): New.
7804 (target_desc::accept): New.
7805 (allocate_target_description): Use new.
7806 (free_target_description): Use delete.
7807 (print_c_tdesc): New class.
7808 (maint_print_c_tdesc_cmd): Adjust.
7809
7810 * features/aarch64.c: Re-generated.
7811 * features/arc-arcompact.c: Re-generated.
7812 * features/arc-v2.c: Re-generated.
7813 * features/arm/arm-with-iwmmxt.c: Re-generated.
7814 * features/arm/arm-with-m.c: Re-generated.
7815 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
7816 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
7817 * features/arm/arm-with-neon.c: Re-generated.
7818 * features/arm/arm-with-vfpv2.c: Re-generated.
7819 * features/arm/arm-with-vfpv3.c: Re-generated.
7820 * features/i386/amd64-avx-avx512.c: Re-generated.
7821 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7822 * features/i386/amd64-avx.c: Re-generated.
7823 * features/i386/amd64-avx-linux.c: Re-generated.
7824 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
7825 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7826 * features/i386/amd64-avx-mpx.c: Re-generated.
7827 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
7828 * features/i386/amd64.c: Re-generated.
7829 * features/i386/amd64-linux.c: Re-generated.
7830 * features/i386/amd64-mpx.c: Re-generated.
7831 * features/i386/amd64-mpx-linux.c: Re-generated.
7832 * features/i386/i386-avx-avx512.c: Re-generated.
7833 * features/i386/i386-avx-avx512-linux.c: Re-generated.
7834 * features/i386/i386-avx.c: Re-generated.
7835 * features/i386/i386-avx-linux.c: Re-generated.
7836 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
7837 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
7838 * features/i386/i386-avx-mpx.c: Re-generated.
7839 * features/i386/i386-avx-mpx-linux.c: Re-generated.
7840 * features/i386/i386.c: Re-generated.
7841 * features/i386/i386-linux.c: Re-generated.
7842 * features/i386/i386-mmx.c: Re-generated.
7843 * features/i386/i386-mmx-linux.c: Re-generated.
7844 * features/i386/i386-mpx.c: Re-generated.
7845 * features/i386/i386-mpx-linux.c: Re-generated.
7846 * features/i386/x32-avx-avx512.c: Re-generated.
7847 * features/i386/x32-avx-avx512-linux.c: Re-generated.
7848 * features/i386/x32-avx.c: Re-generated.
7849 * features/i386/x32-avx-linux.c: Re-generated.
7850 * features/i386/x32.c: Re-generated.
7851 * features/i386/x32-linux.c: Re-generated.
7852 * features/microblaze.c: Re-generated.
7853 * features/microblaze-with-stack-protect.c: Re-generated.
7854 * features/mips64-dsp-linux.c: Re-generated.
7855 * features/mips64-linux.c: Re-generated.
7856 * features/mips-dsp-linux.c: Re-generated.
7857 * features/mips-linux.c: Re-generated.
7858 * features/nds32.c: Re-generated.
7859 * features/nios2.c: Re-generated.
7860 * features/nios2-linux.c: Re-generated.
7861 * features/rs6000/powerpc-32.c: Re-generated.
7862 * features/rs6000/powerpc-32l.c: Re-generated.
7863 * features/rs6000/powerpc-403.c: Re-generated.
7864 * features/rs6000/powerpc-403gc.c : Re-generated.
7865 * features/rs6000/powerpc-405.c: Re-generated.
7866 * features/rs6000/powerpc-505.c: Re-generated.
7867 * features/rs6000/powerpc-601.c: Re-generated.
7868 * features/rs6000/powerpc-602.c: Re-generated.
7869 * features/rs6000/powerpc-603.c: Re-generated.
7870 * features/rs6000/powerpc-604.c: Re-generated.
7871 * features/rs6000/powerpc-64.c: Re-generated.
7872 * features/rs6000/powerpc-64l.c: Re-generated.
7873 * features/rs6000/powerpc-7400.c: Re-generated.
7874 * features/rs6000/powerpc-750.c: Re-generated.
7875 * features/rs6000/powerpc-860.c: Re-generated.
7876 * features/rs6000/powerpc-altivec32.c: Re-generated.
7877 * features/rs6000/powerpc-altivec32l.c: Re-generated.
7878 * features/rs6000/powerpc-altivec64.c: Re-generated.
7879 * features/rs6000/powerpc-altivec64l.c: Re-generated.
7880 * features/rs6000/powerpc-cell32l.c: Re-generated.
7881 * features/rs6000/powerpc-cell64l.c: Re-generated.
7882 * features/rs6000/powerpc-e500.c: Re-generated.
7883 * features/rs6000/powerpc-e500l.c: Re-generated.
7884 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
7885 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
7886 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
7887 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
7888 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
7889 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
7890 * features/rs6000/powerpc-vsx32.c: Re-generated.
7891 * features/rs6000/powerpc-vsx32l.c: Re-generated.
7892 * features/rs6000/powerpc-vsx64.c: Re-generated.
7893 * features/rs6000/powerpc-vsx64l.c: Re-generated.
7894 * features/rs6000/rs6000.c: Re-generated.
7895 * features/s390-linux32.c: Re-generated.
7896 * features/s390-linux32v1.c: Re-generated.
7897 * features/s390-linux32v2.c: Re-generated.
7898 * features/s390-linux64.c: Re-generated.
7899 * features/s390-linux64v1.c: Re-generated.
7900 * features/s390-linux64v2.c: Re-generated.
7901 * features/s390-te-linux64.c: Re-generated.
7902 * features/s390-tevx-linux64.c: Re-generated.
7903 * features/s390-vx-linux64.c: Re-generated.
7904 * features/s390x-linux64.c: Re-generated.
7905 * features/s390x-linux64v1.c: Re-generated.
7906 * features/s390x-linux64v2.c: Re-generated.
7907 * features/s390x-te-linux64.c: Re-generated.
7908 * features/s390x-tevx-linux64.c: Re-generated.
7909 * features/s390x-vx-linux64.c: Re-generated.
7910 * features/sparc/sparc32-solaris.c: Re-generated.
7911 * features/sparc/sparc64-solaris.c: Re-generated.
7912 * features/tic6x-c62x.c: Re-generated.
7913 * features/tic6x-c62x-linux.c: Re-generated.
7914 * features/tic6x-c64x.c: Re-generated.
7915 * features/tic6x-c64x-linux.c: Re-generated.
7916 * features/tic6x-c64xp.c: Re-generated.
7917 * features/tic6x-c64xp-linux.c: Re-generated.
7918
35b4818d
YQ
79192017-07-26 Yao Qi <yao.qi@linaro.org>
7920
7921 * i386-linux-tdep.c (i386_linux_read_description): New function.
7922 (i386_linux_core_read_description): Call
7923 i386_linux_read_description.
7924 * i386-linux-tdep.h (i386_linux_read_description): Declare.
7925 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
7926 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
7927 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
7928 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
7929 * x86-linux-nat.c (x86_linux_read_description): Call
7930 i386_linux_read_description.
7931
8e2141c6
YQ
79322017-07-26 Yao Qi <yao.qi@linaro.org>
7933
7934 * NEWS: Mention it.
7935 * features/Makefile (%.c: %.xml): Pass the xml file name to
7936 command "maint print c-tdesc".
7937 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
7938 name from 'arg'.
7939
b468ff4c
YQ
79402017-07-26 Yao Qi <yao.qi@linaro.org>
7941
7942 * target-descriptions.c (target_desc): Add ctor and dtor. Do
7943 in-class initialization.
7944 (tdesc_create_feature): Call new instead of XCNEW.
7945 (free_target_description): Ue delete.
7946
b9c0e1b4
JB
79472017-07-25 John Baldwin <jhb@FreeBSD.org>
7948
7949 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
7950
a04b5337
YQ
79512017-07-25 Yao Qi <yao.qi@linaro.org>
7952
7953 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
7954 constant.
7955 (amd64_x32_init_abi): Likewise.
7956 * amd64-tdep.h (amd64_init_abi): Update declaration.
7957 (amd64_x32_init_abi): Likewise.
7958
02ad7fc2
YQ
79592017-07-25 Yao Qi <yao.qi@linaro.org>
7960
7961 PR tdep/21717
7962 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
7963 condition for FPSCR.
7964 (arm_linux_store_inferior_registers): Likewise.
7965
b6f48cb0
TT
79662017-07-22 Tom Tromey <tom@tromey.com>
7967
7968 * break-catch-syscall.c (struct catch_syscall_inferior_data)
7969 <syscalls_counts>: Now a std::vector.
7970 (get_catch_syscall_inferior_data): Use "new".
7971 (catch_syscall_inferior_data_cleanup): Use "delete".
7972 (insert_catch_syscall, remove_catch_syscall)
7973 (clear_syscall_counts): Update.
7974
e12c9b7a
TT
79752017-07-22 Tom Tromey <tom@tromey.com>
7976
7977 * break-catch-syscall.c (syscall_catchpoint)
7978 <syscalls_to_be_caught>: Now a std::vector<int>
7979 (~syscall_catchpoint): Remove.
7980 (insert_catch_syscall, remove_catch_syscall)
7981 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
7982 (print_mention_catch_syscall, print_recreate_catch_syscall):
7983 Update.
7984 (create_syscall_event_catchpoint): Change type of "filter"
7985 parameter.
7986 (catch_syscall_split_args): Return a std::vector.
7987 (catch_syscall_command_1, catching_syscall_number_1): Update.
7988
4fa8aeac
TT
79892017-07-22 Tom Tromey <tom@tromey.com>
7990
7991 * break-catch-throw.c (struct exception_catchpoint)
7992 <exception_rx>: Now a std::string.
7993 (~exception_catchpoint): Remove.
7994 (print_one_detail_exception_catchpoint): Update.
7995 (handle_gnu_v3_exceptions): Change type of except_rx.
7996 (extract_exception_regexp): Return a std::string.
7997 (catch_exception_command_1): Update.
7998
f746a154
TT
79992017-07-22 Tom Tromey <tom@tromey.com>
8000
8001 * break-catch-sig.c (gdb_signal_type): Remove typedef.
8002 (struct signal_catchpoint) <signals_to_be_caught>: Now a
8003 std::vector.
8004 <catch_all>: Now a bool.
8005 (~signal_catchpoint): Remove.
8006 (signal_catchpoint_insert_location)
8007 (signal_catchpoint_remove_location)
8008 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
8009 (signal_catchpoint_print_mention)
8010 (signal_catchpoint_print_recreate)
8011 (signal_catchpoint_explains_signal): Update.
8012 (create_signal_catchpoint): Change type of "filter" and
8013 "catch_all".
8014 (catch_signal_split_args): Return a std::vector. Change type of
8015 "catch_all".
8016 (catch_signal_command): Update.
8017
47e77640
PA
80182017-07-20 Pedro Alves <palves@redhat.com>
8019
8020 * ada-lang.c (ada_language_defn): Make extern.
8021 (_initialize_ada_language): Remove add_language call.
8022 * c-lang.c (c_language_defn, cplus_language_defn)
8023 (asm_language_defn, minimal_language_defn): Make extern.
8024 (_initialize_c_language): Delete.
8025 * completer.c (compare_cstrings): Delete, moved to utils.h.
8026 * d-lang.c (d_language_defn): Make extern.
8027 (_initialize_d_language): Remove add_language calls.
8028 * defs.h (enum language): Add comment.
8029 * f-lang.c (f_language_defn): Make extern.
8030 (_initialize_f_language): Remove add_language call.
8031 * go-lang.c (go_language_defn): Make extern.
8032 (_initialize_go_language): Remove add_language call.
8033 * language.c: Include <algorithm>.
8034 (languages): Redefine as const array.
8035 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
8036 (set_language_command): Handle "local". Use for-range loop.
8037 (set_language): Remove loop.
8038 (language_enum): Rewrite.
8039 (language_def, language_str): Remove loops.
8040 (add_language): Delete.
8041 (add_set_language_command): New, based on add_languages.
8042 (skip_language_trampoline): Adjust.
8043 (local_language_defn): Delete.
8044 (language_gdbarch_post_init): Adjust.
8045 (_initialize_language): Remove add_language calls. Call
8046 add_set_language_command.
8047 * language.h (add_language): Delete.
8048 (auto_language_defn)
8049 (unknown_language_defn, minimal_language_defn, ada_language_defn)
8050 (asm_language_defn, c_language_defn, cplus_language_defn)
8051 (d_language_defn, f_language_defn, go_language_defn)
8052 (m2_language_defn, objc_language_defn, opencl_language_defn)
8053 (pascal_language_defn, rust_language_defn): Declare.
8054 * m2-lang.c (m2_language_defn): Make extern.
8055 (_initialize_m2_language): Remove add_language call.
8056 * objc-lang.c (objc_language_defn): Make extern.
8057 (_initialize_objc_language): Remove add_language call.
8058 * opencl-lang.c (opencl_language_defn): Make extern.
8059 (_initialize_opencl_language): Remove add_language call.
8060 * p-lang.c (pascal_language_defn): Make extern.
8061 (_initialize_pascal_language): Delete.
8062 * rust-lang.c (rust_language_defn): Make extern.
8063 (_initialize_rust_language): Delete.
8064 * utils.h (compare_cstrings): New static inline function.
8065
edb0c9cb
PA
80662017-07-20 Pedro Alves <palves@redhat.com>
8067
8068 * ada-lang.c (ada_to_fixed_type_1): Adjust.
8069 (get_var_value): Constify parameters.
8070 (get_int_var_value): Change prototype.
8071 (to_fixed_range_type): Adjust.
8072 * ada-lang.h (get_int_var_value): Change prototype.
8073
a778f165
PA
80742017-07-20 Pedro Alves <palves@redhat.com>
8075
8076 * dwarf2read.c (dw2_lookup_symbol): Use
8077 SYMBOL_MATCHES_SEARCH_NAME.
8078 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
8079
42edd901
PA
80802017-07-20 Pedro Alves <palves@redhat.com>
8081
8082 * block.c (block_iter_name_step, block_iter_name_first)
8083 (block_iter_name_next): Delete.
8084 (block_lookup_symbol_primary): Adjust to use
8085 dict_iter_match_first/dict_iter_match_next.
8086 * block.h (block_iter_name_first, block_iter_name_next): Delete
8087 declarations.
8088 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
8089 dict_iter_match_first/dict_iter_match_next.
8090
cf325299
PA
80912017-07-20 Pedro Alves <palves@redhat.com>
8092
8093 * cp-support.c (cp_find_first_component_aux): Add missing case for
8094 end of string.
8095
c5ed0576
DB
80962017-07-18 David Blaikie <dblaikie@gmail.com>
8097
8098 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
8099 of dwo_cu's dwo_file.
8100
27841e76
YQ
81012017-07-18 Yao Qi <yao.qi@linaro.org>
8102
8103 * remote.c (store_registers_using_G): Remove one line comment.
8104
cfb7e58b
YQ
81052017-07-18 Yao Qi <yao.qi@linaro.org>
8106
8107 * regcache.c (regcache_cpy): Simplify it.
8108 (regcache::cpy_no_passthrough): Remove it.
8109 * regcache.h (cpy_no_passthrough): Remove it.
8110 (regcache_dup, regcache_cpy): Update comments.
8111
386535dd
PA
81122017-07-18 Pedro Alves <palves@redhat.com>
8113
8114 * remote-sim.c (sim_command_completer): Adjust to work with a
8115 completion_tracker instead of a VEC.
8116
c45ec17c
PA
81172017-07-17 Pedro Alves <palves@redhat.com>
8118
8119 * completer.c (complete_source_filenames): New function.
8120 (complete_address_and_linespec_locations): New function.
8121 (location_completer): Use complete_address_and_linespec_locations.
8122 (completion_tracker::build_completion_result): Honor the tracker's
8123 request to suppress append.
8124 * completer.h (completion_tracker::suppress_append_ws)
8125 (completion_tracker::set_suppress_append_ws): New methods.
8126 (completion_tracker::m_suppress_append_ws): New field.
8127 (complete_source_filenames): New declaration.
8128 * linespec.c (linespec_complete_what): New.
8129 (struct ls_parser) <complete_what, completion_word,
8130 completion_quote_char, completion_quote_end, completion_tracker>:
8131 New fields.
8132 (string_find_incomplete_keyword_at_end): New.
8133 (linespec_lexer_lex_string): Record quote char. If in completion
8134 mode, don't throw.
8135 (linespec_lexer_consume_token): Advance the completion word point.
8136 (linespec_lexer_peek_token): Save/restore completion info.
8137 (save_stream_and_consume_token): New.
8138 (set_completion_after_number): New.
8139 (linespec_parse_basic): Set what to complete next depending on
8140 token. Handle function and label completions specially.
8141 (parse_linespec): Disable objc shortcut in completion mode. Set
8142 what to complete next depending on token type. Skip keyword if in
8143 completion mode.
8144 (complete_linespec_component, linespec_complete): New.
8145 * linespec.h (linespec_complete): Declare.
8146
be966d42
PA
81472017-07-17 Pedro Alves <palves@redhat.com>
8148
8149 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
8150 Handle 'operator<' / 'operator<<'.
8151
a2459270
PA
81522017-07-17 Pedro Alves <palves@redhat.com>
8153
8154 * completer.c (collect_explicit_location_matches): Handle
8155 MATCH_LABEL.
8156 (convert_explicit_location_to_linespec): New, factored out from
8157 ...
8158 (convert_explicit_location_to_sals): ... this.
8159 (complete_label): New.
8160 (linespec_complete_label, find_label_symbols_in_block): New.
8161 (find_label_symbols): Add completion_mode parameter and adjust to
8162 call find_label_symbols_in_block.
8163 * linespec.h (linespec_complete_label): Declare.
8164
c6756f62
PA
81652017-07-17 Pedro Alves <palves@redhat.com>
8166
8167 * ada-lang.c (ada_collect_symbol_completion_matches): Add
8168 complete_symbol_mode parameter.
8169 * cli/cli-cmds.c (complete_command): Get the completion result out
8170 of the handle_brkchars tracker if used a custom word point.
8171 * completer.c: Include "linespec.h".
8172 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
8173 (advance_to_expression_complete_word_point): New.
8174 (completion_tracker::completes_to_completion_word): New.
8175 (complete_files_symbols): Pass down
8176 complete_symbol_mode::EXPRESSION.
8177 (explicit_options, probe_options): New.
8178 (collect_explicit_location_matches): Complete on the
8179 explictit_loc->foo instead of word. Use
8180 linespec_complete_function. Handle MATCH_LINE. Handle offering
8181 keyword and options completions.
8182 (backup_text_ptr): Delete.
8183 (skip_keyword): New.
8184 (complete_explicit_location): Remove 'word' parameter. Add
8185 language, quoted_arg_start and quoted_arg_end parameters.
8186 Rewrite, parsing left to right.
8187 (location_completer): Rewrite.
8188 (location_completer_handle_brkchars): New function.
8189 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
8190 (enum complete_line_internal_reason): Adjust comments.
8191 (completion_tracker::discard_completions): New.
8192 (completer_handle_brkchars_func_for_completer): Handle
8193 location_completer.
8194 (gdb_custom_word_point_brkchars)
8195 (gdb_org_rl_basic_quote_characters): New.
8196 (gdb_completion_word_break_characters_throw)
8197 (completion_find_completion_word): Handle trackers that use a
8198 custom word point.
8199 (completion_tracker::advance_custom_word_point_by): New.
8200 (completion_tracker::build_completion_result): Don't rely on
8201 readline appending the quote char.
8202 (gdb_rl_attempted_completion_function_throw): Handle trackers that
8203 use a custom word point.
8204 (gdb_rl_attempted_completion_function): Restore
8205 rl_basic_quote_characters.
8206 * completer.h (class completion_tracker): Extend intro comment.
8207 (completion_tracker::set_quote_char)
8208 (completion_tracker::quote_char)
8209 (completion_tracker::set_use_custom_word_point)
8210 (completion_tracker::use_custom_word_point)
8211 (completion_tracker::custom_word_point)
8212 (completion_tracker::set_custom_word_point)
8213 (completion_tracker::advance_custom_word_point_by)
8214 (completion_tracker::completes_to_completion_word)
8215 (completion_tracker::discard_completions): New methods.
8216 (completion_tracker::m_quote_char)
8217 (completion_tracker::m_use_custom_word_point)
8218 (completion_tracker::m_custom_word_point): New fields.
8219 (advance_to_expression_complete_word_point): Declare.
8220 * f-lang.c (f_collect_symbol_completion_matches): Add
8221 complete_symbol_mode parameter.
8222 * language.h (struct language_defn)
8223 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
8224 parameter.
8225 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
8226 (linespec_complete_function): New function.
8227 (linespec_lexer_lex_keyword): Adjust.
8228 * linespec.h (linespec_keywords, linespec_complete_function): New
8229 declarations.
8230 * location.c (find_end_quote): New function.
8231 (explicit_location_lex_one): Add explicit_completion_info
8232 parameter. Save quoting info. Don't throw if being called for
8233 completion. Don't handle Ada operators here.
8234 (is_cp_operator, skip_op_false_positives, first_of)
8235 (explicit_location_lex_one_function): New function.
8236 (string_to_explicit_location): Replace 'dont_throw' parameter with
8237 an explicit_completion_info pointer parameter. Handle it. Don't
8238 use explicit_location_lex_one to lex function names. Use
8239 explicit_location_lex_one_function instead.
8240 * location.h (struct explicit_completion_info): New.
8241 (string_to_explicit_location): Replace 'dont_throw' parameter with
8242 an explicit_completion_info pointer parameter.
8243 * symtab.c (default_collect_symbol_completion_matches_break_on):
8244 Add complete_symbol_mode parameter. Handle LINESPEC mode.
8245 (default_collect_symbol_completion_matches)
8246 (collect_symbol_completion_matches): Add complete_symbol_mode
8247 parameter.
8248 (collect_symbol_completion_matches_type): Pass down
8249 complete_symbol_mode::EXPRESSION.
8250 (collect_file_symbol_completion_matches): Add complete_symbol_mode
8251 parameter. Handle LINESPEC mode.
8252 * symtab.h (complete_symbol_mode): New.
8253 (default_collect_symbol_completion_matches_break_on)
8254 (default_collect_symbol_completion_matches)
8255 (collect_symbol_completion_matches)
8256 (collect_file_symbol_completion_matches): Add complete_symbol_mode
8257 parameter.
8258
1d550c82
PA
82592017-07-17 Pedro Alves <palves@redhat.com>
8260
8261 * utils.c (enum class strncmp_iw_mode): New.
8262 (strcmp_iw): Rename to ...
8263 (strncmp_iw_with_mode): ... this. Add string2_len and mode
8264 parameters. Handle them.
8265 (strncmp_iw): New.
8266 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
8267 * utils.h (strncmp_iw): Declare.
8268 (strcmp_iw): Move describing comments here.
8269
8090b426
PA
82702017-07-17 Pedro Alves <palves@redhat.com>
8271
8272 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
8273 CP_OPERATOR_STR.
8274 * c-typeprint.c (is_type_conversion_operator): Use
8275 CP_OPERATOR_STR.
8276 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
8277 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
8278 CP_OPERATOR_LEN.
8279 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
8280 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
8281 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
8282 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
8283 CP_OPERATOR_STR.
8284 * location.c: Include "cp-support.h".
8285 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
8286 CP_OPERATOR_STR.
8287 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
8288 CP_OPERATOR_LEN.
8289
6a2c1b87
PA
82902017-07-17 Pedro Alves <palves@redhat.com>
8291
8292 * cli/cli-cmds.c (complete_command): Use a completion tracker
8293 along with completion_find_completion_word for handle_brkchars
8294 phase.
8295 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
8296 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
8297 (struct gdb_rl_completion_word_info): New.
8298 (gdb_rl_find_completion_word): New.
8299 (completion_find_completion_word): New.
8300 * completer.h (completion_find_completion_word): Declare.
8301
eb3ff9a5
PA
83022017-07-17 Pedro Alves <palves@redhat.com>
8303
8304 * ada-lang.c (symbol_completion_match): Adjust comments.
8305 (symbol_completion_add): Replace vector parameter with
8306 completion_tracker parameter. Use it.
8307 (ada_make_symbol_completion_list): Rename to...
8308 (ada_collect_symbol_completion_matches): ... this. Add
8309 completion_tracker parameter and use it.
8310 (ada_language_defn): Adjust.
8311 * break-catch-syscall.c (catch_syscall_completer): Adjust
8312 prototype and work with completion_tracker instead of VEC.
8313 * breakpoint.c (condition_completer): Adjust prototype and work
8314 with completion_tracker instead of VEC.
8315 * c-lang.c (c_language_defn, cplus_language_defn)
8316 (asm_language_defn, minimal_language_defn): Adjust to renames.
8317 * cli/cli-cmds.c (complete_command): Rework using
8318 completion_tracker. Catch exceptions when completing.
8319 * cli/cli-decode.c (integer_unlimited_completer)
8320 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
8321 with completion_tracker instead of VEC.
8322 * command.h (struct completion_tracker): Forward declare.
8323 (completer_ftype, completer_handle_brkchars_ftype): Change
8324 types.
8325 (complete_on_cmdlist, complete_on_enum): Adjust.
8326 * completer.c: Include <algorithm>.
8327 (struct gdb_completer_state): New.
8328 (current_completion): New global.
8329 (readline_line_completion_function): Delete.
8330 (noop_completer, filename_completer)
8331 (filename_completer_handle_brkchars, complete_files_symbols)
8332 (linespec_location_completer): Adjust to work with a
8333 completion_tracker instead of a VEC.
8334 (string_or_empty): New.
8335 (collect_explicit_location_matches): Adjust to work with a
8336 completion_tracker instead of a VEC.
8337 (explicit_location_completer): Rename to ...
8338 (complete_explicit_location): ... this and adjust to work with a
8339 completion_tracker instead of a VEC.
8340 (location_completer): Adjust to work with a completion_tracker
8341 instead of a VEC.
8342 (add_struct_fields): Adjust to work with a completion_list instead
8343 of VEC.
8344 (expression_completer): Rename to ...
8345 (complete_expression): ... this and adjust to work with a
8346 completion_tracker instead of a VEC. Use complete_files_symbols.
8347 (expression_completer): Reimplement on top of complete_expression.
8348 (symbol_completer): Adjust to work with a completion_tracker
8349 instead of a VEC.
8350 (enum complete_line_internal_reason): Add describing comments.
8351 (complete_line_internal_normal_command): Adjust to work with a
8352 completion_tracker instead of a VEC.
8353 (complete_line_internal): Rename to ...
8354 (complete_line_internal_1): ... this and adjust to work with a
8355 completion_tracker instead of a VEC. Assert TEXT is NULL in the
8356 handle_brkchars phase.
8357 (new_completion_tracker): Delete.
8358 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
8359 complete_line_internal_1.
8360 (free_completion_tracker): Delete.
8361 (INITIAL_COMPLETION_HTAB_SIZE): New.
8362 (completion_tracker::completion_tracker)
8363 (completion_tracker::~completion_tracker): New.
8364 (maybe_add_completion): Delete.
8365 (completion_tracker::maybe_add_completion)
8366 (completion_tracker::add_completion)
8367 (completion_tracker::add_completions): New.
8368 (throw_max_completions_reached_error): Delete.
8369 (complete_line): Adjust to work with a completion_tracker instead
8370 of a VEC. Don't create a completion_tracker_t or check for max
8371 completions here.
8372 (command_completer, command_completer_handle_brkchars)
8373 (signal_completer, reg_or_group_completer_1)
8374 (reg_or_group_completer, default_completer_handle_brkchars):
8375 Adjust to work with a completion_tracker.
8376 (gdb_completion_word_break_characters_throw): New.
8377 (gdb_completion_word_break_characters): Reimplement.
8378 (line_completion_function): Delete.
8379 (completion_tracker::recompute_lowest_common_denominator)
8380 (expand_preserving_ws)
8381 (completion_tracker::build_completion_result)
8382 (completion_result::completion_result)
8383 (completion_result::completion_result)
8384 (completion_result::~completion_result)
8385 (completion_result::completion_result)
8386 (completion_result::release_match_list, compare_cstrings)
8387 (completion_result::sort_match_list)
8388 (completion_result::reset_match_list)
8389 (gdb_rl_attempted_completion_function_throw)
8390 (gdb_rl_attempted_completion_function): New.
8391 * completer.h (completion_list, struct completion_result)
8392 (class completion_tracker): New.
8393 (complete_line): Add completion_tracker parameter.
8394 (readline_line_completion_function): Delete.
8395 (gdb_rl_attempted_completion_function): New.
8396 (noop_completer, filename_completer, expression_completer)
8397 (location_completer, symbol_completer, command_completer)
8398 (signal_completer, reg_or_group_completer): Update prototypes.
8399 (completion_tracker_t, new_completion_tracker)
8400 (make_cleanup_free_completion_tracker): Delete.
8401 (enum maybe_add_completion_enum): Delete.
8402 (maybe_add_completion): Delete.
8403 (throw_max_completions_reached_error): Delete.
8404 * corefile.c (complete_set_gnutarget): Adjust to work with a
8405 completion_tracker instead of a VEC.
8406 * cp-abi.c (cp_abi_completer): Adjust to work with a
8407 completion_tracker instead of a VEC.
8408 * d-lang.c (d_language_defn): Adjust.
8409 * disasm.c (disassembler_options_completer): Adjust to work with a
8410 completion_tracker instead of a VEC.
8411 * f-lang.c (f_make_symbol_completion_list): Rename to ...
8412 (f_collect_symbol_completion_matches): ... this. Adjust to work
8413 with a completion_tracker instead of a VEC.
8414 (f_language_defn): Adjust.
8415 * go-lang.c (go_language_defn): Adjust.
8416 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
8417 Adjust to work with a completion_tracker instead of a VEC.
8418 * infrun.c (handle_completer): Likewise.
8419 * interps.c (interpreter_completer): Likewise.
8420 * interps.h (interpreter_completer): Likewise.
8421 * language.c (unknown_language_defn, auto_language_defn)
8422 (local_language_defn): Adjust.
8423 * language.h (language_defn::la_make_symbol_completion_list):
8424 Rename to ...
8425 (language_defn::la_collect_symbol_completion_matches): ... this
8426 and adjust to work with a completion_tracker instead of a VEC.
8427 * m2-lang.c (m2_language_defn): Adjust.
8428 * objc-lang.c (objc_language_defn): Adjust.
8429 * opencl-lang.c (opencl_language_defn): Adjust.
8430 * p-lang.c (pascal_language_defn): Adjust.
8431 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
8432 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
8433 with a completion_tracker.
8434 * rust-lang.c (rust_language_defn): Adjust.
8435 * symtab.c (free_completion_list, do_free_completion_list)
8436 (return_val, completion_tracker): Delete.
8437 (completion_list_add_name, completion_list_add_symbol)
8438 (completion_list_add_msymbol, completion_list_objc_symbol)
8439 (completion_list_add_fields, add_symtab_completions): Add
8440 completion_tracker parameter and use it.
8441 (default_make_symbol_completion_list_break_on_1): Rename to...
8442 (default_collect_symbol_completion_matches_break_on): ... this.
8443 Add completion_tracker parameter and use it instead of allocating
8444 a completion tracker here.
8445 (default_make_symbol_completion_list_break_on): Delete old
8446 implementation.
8447 (default_make_symbol_completion_list): Delete.
8448 (default_collect_symbol_completion_matches): New.
8449 (make_symbol_completion_list): Delete.
8450 (collect_symbol_completion_matches): New.
8451 (make_symbol_completion_type): Rename to ...
8452 (collect_symbol_completion_matches_type): ... this. Add
8453 completion_tracker parameter and use it instead of VEC.
8454 (make_file_symbol_completion_list_1): Rename to...
8455 (collect_file_symbol_completion_matches): ... this. Add
8456 completion_tracker parameter and use it instead of VEC.
8457 (make_file_symbol_completion_list): Delete.
8458 (add_filename_to_list): Use completion_list instead of a VEC.
8459 (add_partial_filename_data::list): Now a completion_list.
8460 (make_source_files_completion_list): Work with a completion_list
8461 instead of a VEC.
8462 * symtab.h: Include "completer.h".
8463 (default_make_symbol_completion_list_break_on)
8464 (default_make_symbol_completion_list, make_symbol_completion_list)
8465 (make_symbol_completion_type, make_file_symbol_completion_list)
8466 (make_source_files_completion_list): Delete.
8467 (default_collect_symbol_completion_matches_break_on)
8468 (default_collect_symbol_completion_matches)
8469 (collect_symbol_completion_matches)
8470 (collect_symbol_completion_matches_type)
8471 (collect_file_symbol_completion_matches)
8472 (make_source_files_completion_list): New.
8473 * top.c (init_main): Don't install a rl_completion_entry_function
8474 hook. Install a rl_attempted_completion_function hook instead.
8475 * tui/tui-layout.c (layout_completer): Adjust to work with a
8476 completion_tracker.
8477 * tui/tui-regs.c (tui_reggroup_completer):
8478 * tui/tui-win.c (window_name_completer, focus_completer)
8479 (winheight_completer): Adjust to work with a completion_tracker.
8480 * value.c: Include "completer.h".
8481 (complete_internalvar): Adjust to work with a completion_tracker.
8482 * value.h (complete_internalvar): Likewise.
8483
6e1dbf8c
PA
84842017-07-17 Pedro Alves <palves@redhat.com>
8485
8486 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
8487 renames.
8488 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
8489 comments to completer_ftype's declaration.
8490 <completer_handle_brkchars>: Change type to
8491 completer_handle_brkchars_ftype.
8492 * command.h (completer_ftype): Add describing comment and give
8493 names to parameters.
8494 (completer_ftype_void): Rename to ...
8495 (completer_handle_brkchars_ftype) ... this. Add describing comment.
8496 (set_cmd_completer_handle_brkchars): Adjust.
8497 * completer.c (filename_completer_handle_brkchars): New function.
8498 (complete_line_internal_normal_command): New function, factored
8499 out from ...
8500 (complete_line_internal): ... here.
8501 (command_completer_handle_brkchars)
8502 (default_completer_handle_brkchars)
8503 (completer_handle_brkchars_func_for_completer): New functions.
8504 * completer.h (set_gdb_completion_word_break_characters): Delete
8505 declaration.
8506 (completer_handle_brkchars_func_for_completer): New declaration.
8507 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
8508 completer_handle_brkchars_func_for_completer.
8509
78b13106
PA
85102017-07-17 Pedro Alves <palves@redhat.com>
8511
8512 * completer.c (symbol_completer): New function, based on
8513 make_symbol_completion_list_fn.
8514 * completer.h (symbol_completer): New declaration.
8515 * guile/scm-cmd.c (cmdscm_completers): Adjust.
8516 * python/py-cmd.c (completers): Adjust.
8517 * symtab.c (make_symbol_completion_list_fn): Delete.
8518 * symtab.h (make_symbol_completion_list_fn): Delete.
8519 * cli/cli-decode.c (add_cmd): Adjust.
8520
bbf2f4df
PA
85212017-07-17 Pedro Alves <palves@redhat.com>
8522
8523 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
8524 * dwarf2read.c: Include "filename-seen-cache.h".
8525 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
8526 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
8527 * filename-seen-cache.c: New file.
8528 * filename-seen-cache.h: New file.
8529 * symtab.c: Include "filename-seen-cache.h".
8530 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
8531 (create_filename_seen_cache, clear_filename_seen_cache)
8532 (delete_filename_seen_cache, filename_seen): Delete, parts moved
8533 to filename-seen-cache.h/filename-seen-cache.c.
8534 (output_source_filename, sources_info)
8535 (maybe_add_partial_symtab_filename)
8536 (make_source_files_completion_list): Adjust to use
8537 filename_seen_cache.
8538
330cdd98
PA
85392017-07-17 Pedro Alves <palves@redhat.com>
8540
8541 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
8542 fields.
8543 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
8544 dwarf2_debug_sections*)): New.
8545 (dwarf2_per_objfile::dwarf2_per_objfile(const
8546 dwarf2_per_objfile&)): Declare as deleted.
8547 (dwarf2_per_objfile::operator=): Declare as deleted.
8548 (dwarf2_per_objfile::dwarf2_per_objfile)
8549 (dwarf2_per_objfile::~dwarf2_per_objfile)
8550 (dwarf2_per_objfile::free_cached_comp_units): New.
8551 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
8552 ctor. Call dwarf2_per_objfile's ctor manually.
8553 (dwarf2_locate_sections): Deleted/refactored as ...
8554 (dwarf2_per_objfile::locate_sections): ... this new method.
8555 (free_cached_comp_units): Defer to
8556 dwarf2_per_objfile::free_cached_comp_units.
8557 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
8558
8880f2a9
TT
85592017-07-14 Tom Tromey <tom@tromey.com>
8560
8561 PR rust/21764:
8562 * rust-exp.y (convert_ast_to_expression): Add "want_type"
8563 parameter.
8564 <UNOP_SIZEOF>: Split into separate case.
8565 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
8566
65547233
TT
85672017-07-14 Tom Tromey <tom@tromey.com>
8568
8569 PR rust/21763:
8570 * symtab.c (symbol_matches_domain): Add language_rust to special
8571 case.
8572 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
8573 treat LOC_TYPEDEF symbols as variables.
8574
8f14146e
PA
85752017-07-14 Pedro Alves <palves@redhat.com>
8576
8577 * symtab.c (make_file_symbol_completion_list_1): Iterate over
8578 symtabs matching all symtabs with SRCFILE as file name instead of
8579 only considering the first hit, with lookup_symtab.
8580
2347965c
SM
85812017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8582
8583 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
8584 operator_name parameters.
8585 (gen_expr): Update function call.
8586
40f4af28
SM
85872017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8588
8589 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
8590 parameter.
8591 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
8592 Likewise.
8593 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
8594 parameter, use agent_expr::gdbarch instead, update function
8595 calls.
8596 (locexpr_tracepoint_var_ref): Likewise.
8597 (loclist_tracepoint_var_ref): Likewise.
8598 * ax-gdb.c (gen_trace_static_fields): Likewise.
8599 (gen_traced_pop): Likewise.
8600 (gen_frame_args_address): Likewise.
8601 (gen_frame_locals_address): Likewise.
8602 (gen_var_ref): Likewise.
8603 (gen_struct_ref_recursive): Likewise.
8604 (gen_static_field): Likewise.
8605 (gen_maybe_namespace_elt): Likewise.
8606 (gen_expr): Likewise.
8607 (gen_trace_for_var): Likewise.
8608 (gen_trace_for_expr): Likewise.
8609 (gen_trace_for_return_address): Likewise.
8610
053f8057
SM
86112017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8612
8613 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
8614 parameter.
8615 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
8616
6661ad48
SM
86172017-07-14 Simon Marchi <simon.marchi@ericsson.com>
8618
8619 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
8620 from ax, update calls.
8621 (gen_usual_arithmetic): Likewise.
8622 (gen_integral_promotions): Likewise.
8623 (gen_bitfield_ref): Likewise.
8624 (gen_primitive_field): Likewise.
8625 (gen_struct_ref_recursive): Likewise.
8626 (gen_struct_ref): Likewise.
8627 (gen_maybe_namespace_elt): Likewise.
8628 (gen_struct_elt_for_reference): Likewise.
8629 (gen_namespace_elt): Likewise.
8630 (gen_aggregate_elt_ref): Likewise.
8631 (gen_expr): Get gdbarch from ax, update calls.
8632 (gen_expr_binop_rest): Likewise.
8633
c55a47e7
PA
86342017-07-13 Pedro Alves <palves@redhat.com>
8635
8636 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
8637 as default tdesc.
8638 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
8639 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
8640 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
8641 tdesc_amd64_linux as default tdesc. Get final tdesc from the
8642 tdep.
8643 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
8644 Get final tdesc from the tdep.
8645 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
8646 default tdesc.
8647 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
8648 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
8649 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
8650 Use it as default tdesc.
8651 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
8652 down to amd_init_abi. No longer handle fallback tdesc here.
8653 * amd64-tdep.h (tdesc_x32): Declare.
8654 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
8655 parameter.
8656 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
8657 as default tdesc.
8658
55efceab
AA
86592017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8660
8661 * s390-linux-tdep.c (s390_process_record): Add support for
8662 instructions new in arch12.
8663
0aa37b65
JB
86642017-07-11 John Baldwin <jhb@FreeBSD.org>
8665
8666 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8667 PT_GETFSBASE and PT_GETGSBASE.
8668 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
8669 PT_SETGSBASE.
8670
48aeef91
JB
86712017-07-11 John Baldwin <jhb@FreeBSD.org>
8672
8673 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
8674 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
8675 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
8676 those rules.
8677 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
8678 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
8679 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
8680 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
8681 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
8682 * features/i386/amd64.xml: Add 64bit-segments.xml.
8683 * features/i386/amd64-avx-avx512.c: Regenerated.
8684 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
8685 * features/i386/amd64-avx-mpx.c: Regenerated.
8686 * features/i386/amd64-avx.c: Regenerated.
8687 * features/i386/amd64-mpx.c: Regenerated.
8688 * features/i386/amd64.c: Regenerated.
8689 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
8690 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8691 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
8692 * regformats/i386/amd64-avx.dat: Regenerated.
8693 * regformats/i386/amd64-mpx.dat: Regenerated.
8694 * regformats/i386/amd64.dat: Regenerated.
8695
77c501bc
YQ
86962017-07-10 Yao Qi <yao.qi@linaro.org>
8697
8698 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
8699 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
8700
6dc8d757
AK
87012017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
8702
8703 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
8704 unsetenv.
8705 * gnulib/aclocal.m4: Regenerate.
8706 * gnulib/config.in: Regenerate.
8707 * gnulib/configure: Regenerate.
8708 * gnulib/import/Makefile.am: Regenerate.
8709 * gnulib/import/Makefile.in: Regenerate.
8710 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
8711 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
8712 * gnulib/import/m4/environ.m4: New file.
8713 * gnulib/import/m4/setenv.m4: New file.
8714 * gnulib/import/setenv.c: New file.
8715 * gnulib/import/unsetenv.c: New file.
8716
266934d1
SM
87172017-07-09 Simon Marchi <simon.marchi@ericsson.com>
8718
8719 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
8720 address when op is DW_OP_addr.
8721
03278692
TT
87222017-07-09 Tom Tromey <tom@tromey.com>
8723
8724 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
8725 check and apply to outer type.
8726
4b654465
JB
87272017-07-07 John Baldwin <jhb@FreeBSD.org>
8728
8729 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
8730 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
8731 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
8732 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
8733
2af9fc44
JB
87342017-07-07 John Baldwin <jhb@FreeBSD.org>
8735
8736 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
8737
382b69bb
JB
87382017-07-07 John Baldwin <jhb@FreeBSD.org>
8739
8740 * corelow.c (get_core_siginfo): Remove.
8741 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
8742 instead of get_core_siginfo.
8743 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
8744 * gdbarch.h: Re-generate.
8745 * gdbarch.c: Re-generate.
8746 * linux-tdep.c (linux_core_xfer_siginfo): New.
8747 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
8748
6e5eab33
JB
87492017-07-07 John Baldwin <jhb@FreeBSD.org>
8750
8751 * corelow.c (thread_section_name): Move to ...
8752 * gdbcore.h (thread_section_name): ... here.
8753
929edea9
JB
87542017-07-07 John Baldwin <jhb@FreeBSD.org>
8755
8756 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
8757 (struct siginfo32): New.
8758 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
8759 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
8760 via ptrace(PT_LWPINFO).
8761
762c974a
JB
87622017-07-07 John Baldwin <jhb@FreeBSD.org>
8763
8764 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
8765 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
8766 (fbsd_get_siginfo_type): New.
8767 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
8768 (_initialize_fbsd_tdep): New.
8769
33c5cd75
DB
87702017-07-06 David Blaikie <dblaikie@gmail.com>
8771
8772 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
8773 a singular dwo_unit*) to support multiple CUs in the same way that
8774 multiple TUs are supported.
8775 (create_cus_hash_table): Replace create_dwo_cu with a function for
8776 parsing multiple CUs from a DWO file.
8777 (open_and_init_dwo_file): Use create_cus_hash_table rather than
8778 create_dwo_cu.
8779 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
8780 htab_find, rather than comparing the signature to a singleton CU in
8781 the dwo_file.
8782
8455d262
PA
87832017-07-06 Pedro Alves <palves@redhat.com>
8784
8785 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
8786
4da3eb35
PA
87872017-07-04 Pedro Alves <palves@redhat.com>
8788
8789 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
8790 * gdbtypes.h (TYPE_STATIC): Delete.
8791 (struct fn_field) <is_public, is_abstract, is_static, is_final,
8792 is_synchronized, is_native>: Delete.
8793 <dummy>: Bump.
8794 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
8795 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
8796 (TYPE_FN_FIELD_ABSTRACT): Delete.
8797
5bfd255c
SM
87982017-07-03 Simon Marchi <simon.marchi@ericsson.com>
8799
8800 * buffer.h (buffer_finish): Fix spelling mistakes.
8801
25c54127
EZ
88022017-07-01 Eli Zaretskii <eliz@gnu.org>
8803
8804 * .dir-locals.el: Automatically switch to C-style comments in
8805 versions of Emacs that support the feature.
8806
dc4bde35
SDJ
88072017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8808 Pedro Alves <palves@redhat.com>
8809
8810 PR cli/21688
8811 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
8812 (process_next_line): New variable 'inline_cmd'.
8813 Adjust 'if' clauses for "python", "compile" and "guile" to use
8814 'command_name_equals' and check for '!inline_cmd'.
8815
51ed89aa
SDJ
88162017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8817
8818 PR cli/21688
8819 * cli/cli-script.c (command_name_equals_not_inline): New function.
8820 (process_next_line): Adjust 'if' clauses for "python", "compile"
8821 and "guile" to use command_name_equals_not_inline.
8822
eb17d413
PA
88232017-06-29 Pedro Alves <palves@redhat.com>
8824
8825 * completer.c (expression_completer): Call
8826 linespec_location_completer instead of location_completer.
8827
195bcdd5
PA
88282017-06-29 Pedro Alves <palves@redhat.com>
8829
8830 * completer.c (expression_completer): Remove code that recomputes
8831 'text' from 'word'.
8832
adc764e7
YQ
88332017-06-29 Yao Qi <yao.qi@linaro.org>
8834
8835 * regformats/regdat.sh: Generate code with
8836 "ifndef IN_PROCESS_AGENT".
8837
6e75794e
PA
88382017-06-28 Pedro Alves <palves@redhat.com>
8839
8840 * command.h: Include "common/scoped_restore.h".
8841
bc491f2e
YQ
88422017-06-28 Yao Qi <yao.qi@linaro.org>
8843
8844 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
8845 instead of obstack_grow.
8846
41664b45
DG
88472017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
8848
8849 PR gdb/21337
8850 * symfile.c (reread_symbols): Call objfiles_changed just before
8851 read_symbols.
8852
6da67eb1
PA
88532017-06-27 Pedro Alves <palves@redhat.com>
8854
8855 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
8856 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
8857 (completion_list_add_symbol, completion_list_add_msymbol):
8858 ... these new functions.
8859 (add_symtab_completions)
8860 (default_make_symbol_completion_list_break_on_1): Adjust.
8861
23732b1e
PA
88622017-06-27 Pedro Alves <palves@redhat.com>
8863
8864 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
8865 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
8866 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
8867 dtor.
8868 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
8869 'storage_obstack' field an auto_obstack. In-class initialize all
8870 non-bitfield fields. Make minsyms_read bool.
8871 * symfile.c (read_symbols): Adjust.
8872
a4d1e79a
AH
88732017-06-27 Alan Hayward <alan.hayward@arm.com>
8874
8875 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
8876 (gdbsim_store_register): Likewise.
8877
8268c778
PA
88782017-06-27 Pedro Alves <palves@redhat.com>
8879
8880 * c-exp.y (name_obstack): Now an auto_obstack.
8881 (yylex): Use auto_obstack::clear.
8882 (c_parse): Use auto_obstack::clear instead of reinitializing and
8883 freeing the obstack.
8884 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
8885 * d-exp.y (name_obstack): Now an auto_obstack.
8886 (yylex): Use auto_obstack::clear.
8887 (d_parse): Use auto_obstack::clear instead of reinitializing and
8888 freeing the obstack.
8889 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
8890 auto_obstack.
8891 * dwarf2read.c (create_addrmap_from_index)
8892 (dwarf2_build_psymtabs_hard)
8893 (update_enumeration_type_from_children): Likewise.
8894 * gdb_obstack.h (auto_obstack): New type.
8895 * go-exp.y (name_obstack): Now an auto_obstack.
8896 (build_packaged_name): Use auto_obstack::clear.
8897 (go_parse): Use auto_obstack::clear instead of reinitializing and
8898 freeing the obstack.
8899 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
8900 auto_obstack.
8901 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
8902 * rust-exp.y (work_obstack): Now an auto_obstack.
8903 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
8904 reinitializing and freeing the obstack.
8905 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
8906 (host_char_to_target): Use auto_obstack.
8907 * utils.h (make_cleanup_obstack_free): Delete declaration.
8908 * valprint.c (generic_emit_char, generic_printstr): Use
8909 auto_obstack.
8910
db665f42
SM
89112017-06-27 Simon Marchi <simon.marchi@ericsson.com>
8912
8913 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
8914 thread.
8915 (darwin_init_thread_list): Don't update dummy thread.
8916 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
8917
873c0814
SM
89182017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8919
8920 * record-full.c (netorder16): Remove.
8921
8b5a7a6e
SM
89222017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8923
8924 * common/diagnostics.h: Define macros for GCC.
8925 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
8926 * common/vec.h: Include diagnostics.h.
8927 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
8928 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
8929 warning.
8930
d1435379
SM
89312017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8932
8933 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
8934 New macro.
8935 * ada-lex.l: Ignore deprecated register warnings.
8936
cc75e0fd
SM
89372017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8938
8939 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
8940 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
8941
07809eaf
SM
89422017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8943
8944 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
8945 its own line.
8946
f076f034
SM
89472017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8948
8949 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
8950
0dd5cbc5
AH
89512017-06-23 Alan Hayward <alan.hayward@arm.com>
8952
8953 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
8954 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
8955 (xtensa_register_read_masked): Likewise.
8956
d4c6ce5b
SDJ
89572017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
8958
8959 * common/environ.c (gdb_environ::unset): Update comment.
8960
16892a03
AH
89612017-06-22 Alan Hayward <alan.hayward@arm.com>
8962
8963 * python/py-unwind.c (pyuw_sniffer): Allocate space for
8964 registers.
8965
d7dcbefc
AH
89662017-06-22 Alan Hayward <alan.hayward@arm.com>
8967
8968 * record-full.c (record_full_exec_insn): Use byte_vector.
8969
b30ff123
YQ
89702017-06-22 Yao Qi <yao.qi@linaro.org>
8971
8972 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
8973 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8974
4fa847d7
AH
89752017-06-22 Alan Hayward <alan.hayward@arm.com>
8976
8977 * remote.c (cached_reg): Move from here...
8978 * regcache.h (cached_reg): ...to here.
8979 * python/py-unwind.c (struct reg_info): Remove.
8980 (cached_frame_info): Use cached_reg_t.
8981 (pyuw_prev_register): Likewise.
8982 (pyuw_sniffer): Use cached_reg_t and allocate registers.
8983 (pyuw_dealloc_cache): Free all registers.
8984
f4906a9a
PA
89852017-06-22 Pedro Alves <palves@redhat.com>
8986 Simon Marchi <simon.marchi@ericsson.com>
8987
8988 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
8989 warning.
8990 * common/diagnostics.h: New file.
8991
b45a1208
PA
89922017-06-22 Pedro Alves <palves@redhat.com>
8993
8994 * common/agent.h: Add include guards.
8995
e4da2c61
SM
89962017-06-21 Simon Marchi <simon.marchi@ericsson.com>
8997
8998 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
8999 talk about addressable units instead of bytes.
9000
96160d60
SDJ
90012017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
9002
9003 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
9004 of '::const_iterator'.
9005
9a6c7d9c
SDJ
90062017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
9007
9008 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9009 'unittests/environ-selftests.c'.
9010 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
9011 * charset.c (find_charset_names): Declare object 'iconv_env'.
9012 Update code to use 'iconv_env' object. Remove call to
9013 'free_environ'.
9014 * common/environ.c: Include <utility>.
9015 (make_environ): Delete function.
9016 (free_environ): Delete function.
9017 (gdb_environ::clear): New function.
9018 (gdb_environ::operator=): New function.
9019 (gdb_environ::get): Likewise.
9020 (environ_vector): Delete function.
9021 (set_in_environ): Delete function.
9022 (gdb_environ::set): New function.
9023 (unset_in_environ): Delete function.
9024 (gdb_environ::unset): New function.
9025 (gdb_environ::envp): Likewise.
9026 * common/environ.h: Include <vector>.
9027 (struct gdb_environ): Delete; transform into...
9028 (class gdb_environ): ... this class.
9029 (free_environ): Delete prototype.
9030 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
9031 environ_vector): Likewise.
9032 * infcmd.c (run_command_1): Update code to call
9033 'envp' from 'gdb_environ' class.
9034 (environment_info): Update code to call methods from 'gdb_environ'
9035 class.
9036 (unset_environment_command): Likewise.
9037 (path_info): Likewise.
9038 (path_command): Likewise.
9039 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
9040 (inferior::inferior): Initialize 'environment' using the host's
9041 information.
9042 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
9043 Include "environ.h".
9044 (class inferior) <environment>: Change type from 'struct
9045 gdb_environ' to 'gdb_environ'.
9046 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
9047 methods from 'gdb_environ' class.
9048 * solib.c (solib_find_1): Likewise
9049 * unittests/environ-selftests.c: New file.
9050
75c554cf
YQ
90512017-06-20 Yao Qi <yao.qi@linaro.org>
9052
9053 * features/i386/i386-linux.xml: Exchange the order of including
9054 32bit-linux.xml and 32bit-sse.xml.
9055 * features/i386/i386-linux.c: Regenerated.
9056
72ddacb7
YQ
90572017-06-20 Yao Qi <yao.qi@linaro.org>
9058
9059 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
9060 Delete copy ctor and assignment operator.
9061 (tdesc_type): Likewise.
9062 (tdesc_feature): Likewise.
9063 (tdesc_free_reg): Remove.
9064 (tdesc_create_reg): Use new.
9065 (tdesc_free_type): Remove.
9066 (tdesc_create_vector): Use new.
9067 (tdesc_create_union): Likewise.
9068 (tdesc_create_flags): Likewise.
9069 (tdesc_create_enum): Likewise.
9070 (tdesc_free_feature): Delete.
9071 (free_target_description): Use delete.
9072
325c9fd4
JB
90732017-06-19 John Baldwin <jhb@FreeBSD.org>
9074
9075 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
9076 registers.
9077
16b7a719
PA
90782017-06-19 Pedro Alves <palves@redhat.com>
9079
9080 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
9081 after gdb::unlinker.
9082
1c8e01c9
SDJ
90832017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
9084
9085 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
9086 gdb_environ to access an environment variable.
9087
ffce45d2
TP
90882017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9089
9090 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
9091 gdb_byte*.
9092
1d4fbac9
SM
90932017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9094
9095 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
9096
8465943a
SM
90972017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9098
9099 * configure: Re-generate.
9100 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
9101
3e019bdc
SM
91022017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9103
9104 * configure: Re-generate.
9105 * warning.m4: Pass -Werror to compiler when checking for
9106 supported warning flags.
9107
cf0dd6f0
SM
91082017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9109
9110 * Makefile.in (COMPILE.pre): Add "-x c++".
9111
6f98355c
YQ
91122017-06-16 Alan Hayward <alan.hayward@arm.com>
9113 Pedro Alves <palves@redhat.com>
9114 Yao Qi <yao.qi@linaro.org>
9115
9116 * defs.h (RequireLongest): New.
9117 (extract_integer): Declare function template.
9118 (extract_signed_integer): Remove the declaration, but define it
9119 static inline.
9120 (extract_unsigned_integer): Likewise.
9121 (store_integer): Declare function template.
9122 (store_signed_integer): Remove the declaration, but define it
9123 static inline.
9124 (store_unsigned_integer): Likewise.
9125 * findvar.c (extract_integer): New function template.
9126 (extract_signed_integer): Remove.
9127 (extract_unsigned_integer): Remove.
9128 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
9129 instantiations.
9130 (store_integer): New function template.
9131 (store_signed_integer): Remove.
9132 (store_unsigned_integer): Remove.
9133 (store_integer): Explicit instantiations.
9134 * regcache.c (regcache_raw_read_signed): Update.
9135 (regcache::raw_read): New function.
9136 (regcache::raw_read_signed): Remove.
9137 (regcache::raw_read_unsigned): Remove.
9138 (regcache_raw_read_unsigned): Update.
9139 (regcache_raw_write_unsigned): Update.
9140 (regcache::raw_write_signed): Remove.
9141 (regcache::raw_write): New function.
9142 (regcache_cooked_read_signed): Update.
9143 (regcache::raw_write_unsigned): Remove.
9144 (regcache::cooked_read_signed): Remove.
9145 (regcache_cooked_read_unsigned): Update.
9146 (regcache::cooked_read_unsigned): Remove.
9147 (regcache_cooked_write_signed): Update.
9148 (regcache_cooked_write_unsigned): Update.
9149 * regcache.h (regcache) <raw_read_signed>: Remove.
9150 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
9151 <raw_read, raw_write>: New.
9152 <cooked_read_signed, cooked_write_signed>: Remove.
9153 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
9154 <cooked_read, cooked_write>: New.
9155 * sh64-tdep.c (sh64_pseudo_register_read): Update.
9156 (sh64_pseudo_register_write): Update.
9157
a87dc45a
AK
91582017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
9159
9160 * arc-tdep.c (arc_disassembler_options): New variable.
9161 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
9162 of default_print_insn.
9163 (arc_delayed_print_insn): Set info->section when needed,
9164 use default_print_insn to retrieve a disassembler.
9165
45159d6a
SDJ
91662017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
9167
9168 PR gdb/21574
9169 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
9170 to mention $SHELL and startup-with-shell.
9171
b46c4cf0
MF
91722017-06-14 Max Filippov <jcmvbkbc@gmail.com>
9173
9174 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
9175
6394c606
YQ
91762017-06-14 Yao Qi <yao.qi@linaro.org>
9177
9178 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
9179 default_print_insn instead of print_insn_aarch64.
9180 * arm-tdep.c (gdb_print_insn_arm): Call
9181 default_print_insn instead of print_insn_big_arm
9182 and print_insn_little_arm.
9183 * i386-tdep.c (i386_print_insn): Call default_print_insn
9184 instead of print_insn_i386.
9185 * ia64-tdep.c (ia64_print_insn): Call
9186 default_print_insn instead of print_insn_ia64.
9187 * mips-tdep.c (gdb_print_insn_mips): Call
9188 default_print_insn instead of print_insn_big_mips
9189 and print_insn_little_mips.
9190 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
9191 instead of print_insn_spu.
9192
d5722aa2
PA
91932017-06-14 Pedro Alves <palves@redhat.com>
9194
9195 * ada-lang.c: Include "common/byte-vector.h".
9196 (ada_value_primitive_packed_val): Use gdb::byte_vector.
9197 * charset.c (wchar_iterator::iterate): Resize the vector instead
9198 of reserving it.
9199 * common/byte-vector.h: Include "common/def-vector.h".
9200 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
9201 * cli/cli-dump.c: Include "common/byte-vector.h".
9202 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
9203 * common/byte-vector.h: New file.
9204 * common/def-vector.h: New file.
9205 * common/default-init-alloc.h: New file.
9206 * dwarf2loc.c: Include "common/byte-vector.h".
9207 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
9208 instead of reserving it.
9209 * dwarf2read.c: Include "common/byte-vector.h".
9210 (data_buf::m_vec): Now a gdb::byte_vector.
9211 * gdb_regex.c: Include "common/def-vector.h".
9212 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
9213 * mi/mi-main.c: Include "common/byte-vector.h".
9214 (mi_cmd_data_read_memory): Use gdb::byte_vector.
9215 * printcmd.c: Include "common/byte-vector.h".
9216 (print_scalar_formatted): Use gdb::byte_vector.
9217 * valprint.c: Include "common/byte-vector.h".
9218 (maybe_negate_by_bytes, print_decimal_chars): Use
9219 gdb::byte_vector.
9220
01ec7a27
SM
92212017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9222
9223 * darwin-nat.c: Include "nat/fork-inferior.h".
9224
848d9074
SM
92252017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9226
9227 * configure.nat: Factor out Darwin bits that are not
9228 architecture-specific. Add fork-inferior.o.
9229
3b912944
SM
92302017-06-13 Simon Marchi <simon.marchi@ericsson.com>
9231
9232 * configure.nat: Factor out AIX bits that are not
9233 architecture-specific. Add fork-inferior.o.
9234
55acdf22
AA
92352017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9236
9237 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
9238 (read_pieced_value, write_pieced_value): ...here. Reduce to
9239 wrappers that just call rw_pieced_value.
9240
f65e2044
AA
92412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9242
9243 * dwarf2loc.c (write_pieced_value): When writing the data for a
9244 memory piece, use write_memory_with_notification instead of
9245 write_memory.
9246
23f945bf
AA
92472017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9248
9249 * valops.c (read_value_memory): Change embedded_offset to
9250 represent a bit offset instead of a byte offset.
9251 * value.h (read_value_memory): Adjust comment.
9252
f236533e
AA
92532017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9254
9255 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
9256 dest_offset_bits and source_offset_bits.
9257 (write_pieced_value): Likewise.
9258
65d84b76
AA
92592017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9260
9261 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
9262 given by DW_OP_bit_piece.
9263 (write_pieced_value): Likewise.
9264
242d31ab
AA
92652017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9266
9267 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
9268 some other preparations to the places where sufficient information
9269 is available.
9270 (write_pieced_value): Likewise.
9271
03c8af18
AA
92722017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9273
9274 * dwarf2loc.c (bits_to_bytes): New function.
9275 (read_pieced_value): Fix offset calculations for register pieces
9276 on big-endian targets.
9277 (write_pieced_value): Likewise.
9278
840989c1
AA
92792017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9280
9281 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
9282 (write_pieced_value): Likewise.
9283
359b19bb
AA
92842017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9285
9286 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
9287 transfer the source value's least significant bits, instead of its
9288 lowest-addressed ones. Rename type_len to max_offset.
9289 (read_pieced_value): Mirror above changes to write_pieced_value as
9290 applicable.
9291
07c9ca3b
AA
92922017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9293
9294 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
9295 truncate full bytes from dest_offset_bits before using it as an
9296 offset into the buffer.
9297
f1cc9874
AA
92982017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9299
9300 * dwarf2loc.c (write_pieced_value): Include transfer size in
9301 byte-wise check.
9302
cdaac320
AA
93032017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9304
9305 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
9306 calculation of this_size.
9307
af547a96
AA
93082017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9309
9310 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
9311 when targeting a bit-field.
9312 (write_pieced_value): Likewise.
9313
ddd7882a
AA
93142017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9315
9316 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
9317 (allocate_piece_closure): Drop addr_size parameter.
9318 (dwarf2_evaluate_loc_desc_full): Adjust call to
9319 allocate_piece_closure.
9320
e9352324
AA
93212017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9322
9323 PR gdb/21226
9324 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
9325 the LSB end, independent of endianness.
9326
d5d1163e
AA
93272017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9328
9329 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
9330 size capping.
9331
032bb6ea
YQ
93322017-06-13 Yao Qi <yao.qi@linaro.org>
9333
9334 * mips-linux-nat.c: Move include features/mips*-linux.c to
9335 mips-linux-tdep.c.
9336 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
9337 to mips-linux-tdep.c.
9338 * mips-linux-tdep.c: Include features/mips*-linux.c
9339 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
9340 functions.
9341 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
9342 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
9343 (tdesc_mips64_dsp_linux): Declare.
9344
f12f6bad
TT
93452017-06-12 Tom Tromey <tom@tromey.com>
9346
9347 * valprint.h (val_print_type_code_int): Remove.
9348 * valprint.c (generic_val_print_int): Always call
9349 val_print_scalar_formatted.
9350 (val_print_type_code_int): Remove.
9351 * printcmd.c (print_scalar_formatted): Handle options->format==0.
9352 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
9353 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
9354 * ada-valprint.c (ada_val_print_num): Use
9355 val_print_scalar_formatted.
9356
d9109c80
TT
93572017-06-12 Tom Tromey <tom@tromey.com>
9358
9359 * printcmd.c (print_scalar_formatted): Unify the two switches.
9360 Don't convert scalars to LONGEST.
9361
4ac0cb1c
TT
93622017-06-12 Tom Tromey <tom@tromey.com>
9363
9364 PR exp/16225:
9365 * valprint.h (print_decimal_chars): Update.
9366 * valprint.c (maybe_negate_by_bytes): New function.
9367 (print_decimal_chars): Add "is_signed" argument.
9368 * printcmd.c (print_scalar_formatted): Update.
9369
30a25466
TT
93702017-06-12 Tom Tromey <tom@tromey.com>
9371
9372 PR exp/16225:
9373 * valprint.h (print_binary_chars, print_hex_chars): Update.
9374 * valprint.c (val_print_type_code_int): Update.
9375 (print_binary_chars): Add "zero_pad" argument.
9376 (emit_octal_digit): New function.
9377 (print_octal_chars): Don't zero-pad.
9378 (print_decimal_chars): Likewise.
9379 (print_hex_chars): Add "zero_pad" argument.
9380 * sh64-tdep.c (sh64_do_fp_register): Update.
9381 * regcache.c (regcache::dump): Update.
9382 * printcmd.c (print_scalar_formatted): Update.
9383 * infcmd.c (default_print_one_register_info): Update.
9384
b3464d03
PA
93852017-06-12 Pedro Alves <palves@redhat.com>
9386 Alan Hayward <alan.hayward@arm.com>
9387
9388 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
9389 (mips_eabi_push_dummy_call): Rename local 'regsize' to
9390 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
9391 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
9392 Assert that abi_regsize bytes fit in 'ref_valbuf'.
9393
4b76cda9
PA
93942017-06-12 Pedro Alves <palves@redhat.com>
9395
9396 * dwarf2read.c (mapped_symtab::data): Now a vector of
9397 symtab_index_entry instead of vector of
9398 std::unique_ptr<symtab_index_entry>. All users adjusted to check
9399 whether an element's name is NULL instead of checking whether the
9400 element itself is NULL.
9401 (find_slot): Change return type. Adjust.
9402 (hash_expand, , add_index_entry, uniquify_cu_indices)
9403 (write_hash_table): Adjust.
9404
e8f8bcb3
PA
94052017-06-12 Pedro Alves <palves@redhat.com>
9406
9407 * dwarf2read.c (recursively_count_psymbols): New function.
9408 (write_psymtabs_to_index): Call it to compute number of psyms and
9409 pass estimate size of psyms_seen to unordered_set's ctor.
9410
70a1152b
PA
94112017-06-12 Pedro Alves <palves@redhat.com>
9412
9413 * dwarf2read.c (write_hash_table): Check if key already exists
9414 before emplacing.
9415
c2f134ac
PA
94162017-06-12 Pedro Alves <palves@redhat.com>
9417
9418 * dwarf2read.c (data_buf::append_space): Rename to...
9419 (data_buf::grow): ... this, and make private. Adjust all callers.
9420 (data_buf::append_uint): New method.
9421 (add_address_entry, write_one_signatured_type)
9422 (write_psymtabs_to_index): Use it.
9423
a81e6d4d
PA
94242017-06-12 Pedro Alves <palves@redhat.com>
9425
9426 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
9427 (file_write (FILE *, const std::vector<Elem>&)): Delete.
9428 (data_buf::file_write): Call ::fwrite directly.
9429
6fd931f2
PA
94302017-06-12 Pedro Alves <palves@redhat.com>
9431
9432 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
9433 std::vector::erase.
9434
bc8f2430
JK
94352017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9436
9437 Code cleanup: C++ify .gdb_index producer.
9438 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
9439 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
9440 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
9441 (create_strtab, add_string): Remove.
9442 (file_write, data_buf): New.
9443 (struct symtab_index_entry): Use std::vector for cu_indices.
9444 (struct mapped_symtab): Use std::vector for data.
9445 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
9446 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
9447 Remove.
9448 (find_slot): Change return type. Update it to the new data structures.
9449 (hash_expand, add_index_entry): Update it to the new data structures.
9450 (offset_type_compare): Remove.
9451 (uniquify_cu_indices): Update it to the new data structures.
9452 (c_str_view, c_str_view_hasher, vector_hasher): New.
9453 (add_indices_to_cpool): Remove.
9454 (write_hash_table): Update it to the new data structures.
9455 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
9456 (eq_psymtab_cu_index): Remove.
9457 (psym_index_map): New typedef.
9458 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
9459 reference and std::unordered_map for cu_index_htab.
9460 (add_address_entry, add_address_entry_worker, write_address_map)
9461 (write_psymbols): Update it to the new data structures.
9462 (write_obstack): Remove.
9463 (struct signatured_type_index_data): Change types_list to a data_buf
9464 reference and psyms_seen to a std::unordered_set reference.
9465 (write_one_signatured_type, recursively_write_psymbols)
9466 (write_psymtabs_to_index): Update it to the new data structures.
9467
c4dcb155
SM
94682017-06-11 Simon Marchi <simon.marchi@ericsson.com>
9469
9470 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
9471 separate-debug-file commands.
9472 * symfile.h (separate_debug_file_debug): New global.
9473 * symfile.c (separate_debug_file_debug): New global.
9474 (separate_debug_file_exists, find_separate_debug_file): Add
9475 debug output.
9476 (_initialize_symfile): Add "set debug separate-debug-file"
9477 command.
9478 * build-id.c (build_id_to_debug_bfd,
9479 find_separate_debug_file_by_buildid): Add debug output.
9480
6d45d4b4
SM
94812017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
9482
9483 * gdbarch.sh (displaced_step_free_closure): Remove.
9484 * gdbarch.h, gdbarch.c: Re-generate.
9485 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
9486 displaced_step_free_closure.
9487 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
9488 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9489 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9490 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
9491 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9492 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9493 * arch-utils.h (simple_displaced_step_free_closure): Remove.
9494 * arch-utils.c (simple_displaced_step_free_closure): Remove.
9495 * infrun.c (displaced_step_clear): Call xfree instead of
9496 gdbarch_displaced_step_free_closure.
9497
2f91880f
SDJ
94982017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
9499
9500 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
9501 NULL".
9502
b8b6e72f
AH
95032017-06-08 Alan Hayward <alan.hayward@arm.com>
9504
9505 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
9506 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
9507 (mn10300_push_dummy_call): Likewise.
9508
5369082e
AH
95092017-06-08 Alan Hayward <alan.hayward@arm.com>
9510
9511 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
9512
ff4ca5ac
AH
95132017-06-08 Alan Hayward <alan.hayward@arm.com>
9514
9515 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
9516
aefd8b33
SDJ
95172017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9518
9519 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
9520 able to start inferiors using a shell.
9521 (New remote packets): Announce new packet "QStartupWithShell".
9522 * remote.c: Add PACKET_QStartupWithShell.
9523 (extended_remote_create_inferior): Handle new
9524 PACKET_QStartupWithShell.
9525 (remote_protocol_features) <QStartupWithShell>: New entry for
9526 PACKET_QStartupWithShell.
9527 (_initialize_remote): Call "add_packet_config_cmd" for
9528 QStartupShell.
9529
2090129c
SDJ
95302017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9531 Pedro Alves <palves@redhat.com>
9532
9533 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
9534 and "nat/fork-inferior.h".
9535 * common/common-inferior.h: New file, with contents from
9536 "gdb/inferior.h".
9537 * commom/common-utils.c: Include "common-utils.h".
9538 (stringify_argv): New function.
9539 * common/common-utils.h (stringify_argv): New prototype.
9540 * configure.nat: Add "fork-inferior.o" as a dependency for
9541 "*linux*", "fbsd*" and "nbsd*" hosts.
9542 * corefile.c (get_exec_file): Update comment.
9543 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
9544 instead of "startup_inferior".
9545 (darwin_create_inferior): Call "add_thread_silent" after
9546 "fork_inferior".
9547 * fork-child.c: Cleanup unnecessary includes.
9548 (SHELL_FILE): Move to "common/common-fork-child.c".
9549 (environ): Likewise.
9550 (exec_wrapper): Initialize.
9551 (get_exec_wrapper): New function.
9552 (breakup_args): Move to "common/common-fork-child.c"; rename to
9553 "breakup_args_for_exec".
9554 (escape_bang_in_quoted_argument): Move to
9555 "common/common-fork-child.c".
9556 (saved_ui): New variable.
9557 (prefork_hook): New function.
9558 (postfork_hook): Likewise.
9559 (postfork_child_hook): Likewise.
9560 (gdb_startup_inferior): Likewise.
9561 (fork_inferior): Move to "common/common-fork-child.c". Update
9562 function to support gdbserver.
9563 (startup_inferior): Likewise.
9564 * gdbcore.h (get_exec_file): Remove declaration.
9565 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
9566 instead of "startup_inferior". Call "add_thread_silent" after
9567 "fork_inferior".
9568 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
9569 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
9570 instead of "startup_inferior". Call "add_thread_silent" after
9571 "fork_inferior".
9572 * inferior.h: Include "common-inferior.h".
9573 (trace_start_error): Move to "common/common-utils.h".
9574 (trace_start_error_with_name): Likewise.
9575 (fork_inferior): Move prototype to "nat/fork-inferior.h".
9576 (startup_inferior): Likewise.
9577 (gdb_startup_inferior): New prototype.
9578 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
9579 * nat/fork-inferior.h: New file.
9580 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
9581 instead of "startup_inferior". Call "add_thread_silent" after
9582 "fork_inferior".
9583 * target.h (target_terminal_init): Move prototype to
9584 "target/target.h".
9585 (target_terminal_inferior): Likewise.
9586 (target_terminal_ours): Likewise.
9587 * target/target.h (target_terminal_init): New prototype, moved
9588 from "target.h".
9589 (target_terminal_inferior): Likewise.
9590 (target_terminal_ours): Likewise.
9591 * utils.c (gdb_flush_out_err): New function.
9592
043a4934
SDJ
95932017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9594
9595 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
9596 * common/common-gdbthread.h: New file, with parts from
9597 "gdb/gdbthread.h".
9598 * gdbthread.h: Include "common-gdbthread.h".
9599 (switch_to_thread): Moved to "common/common-gdbthread.h".
9600
15652511
SDJ
96012017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
9602
9603 * Makefile.in (SFILES): Add "common/job-control.c".
9604 (HFILES_NO_SRCDIR): Add "common/job-control.h".
9605 (COMMON_OBS): Add "job-control.o".
9606 * common/job-control.c: New file, with contents from
9607 "gdb/inflow.c".
9608 * common/job-control.h: New file, with contents from "terminal.h".
9609 * fork-child.c: Include "job-control.h".
9610 * inflow.c: Include "job-control.h".
9611 (gdb_setpgid): Move to "common/common-inflow.c".
9612 (_initialize_inflow): Move setting of "job_control" to
9613 "handle_job_control".
9614 * terminal.h (job_control): Moved to "common/common-terminal.h".
9615 (gdb_setpgid): Likewise.
9616 * top.c: Include "job_control.h".
9617 * utils.c: Likewise.
9618 (job_control): Moved to "job-control.c".
9619
2d7cc5c7
PA
96202017-06-07 Pedro Alves <palves@redhat.com>
9621
9622 * Makefile.in (SFILES): Add gdb_regex.c.
9623 (COMMON_OBS): Add gdb_regex.o.
9624 * ada-lang.c (ada_add_standard_exceptions)
9625 (ada_add_exceptions_from_frame, name_matches_regex)
9626 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
9627 parameter type to compiled_regex. Adjust.
9628 (ada_exceptions_list): Use compiled_regex.
9629 * break-catch-throw.c (exception_catchpoint::pattern): Now a
9630 std::unique_ptr<compiled_regex>.
9631 (exception_catchpoint::~exception_catchpoint): Remove regfree
9632 call.
9633 (check_status_exception_catchpoint): Adjust to use compiled_regex.
9634 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
9635 * breakpoint.c (solib_catchpoint::compiled): Now a
9636 std::unique_ptr<compiled_regex>.
9637 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
9638 (check_status_catch_solib): Adjust to use compiled_regex.
9639 (add_solib_catchpoint): Adjust to use compiled_regex.
9640 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
9641 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
9642 compiled_regex reference. Adjust to use it.
9643 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
9644 declaration. Include "gdb_regex.h".
9645 (apropos_cmd): Change regex parameter to compiled_regex reference.
9646 * gdb_regex.c: New file.
9647 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
9648 declarations.
9649 (class compiled_regex): New.
9650 * linux-tdep.c: Include "common/gdb_optional.h".
9651 (struct mapping_regexes): New, factored out from
9652 mapping_is_anonymous_p, and adjusted to use compiled_regex.
9653 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
9654 gdb::optional and remove cleanups. Adjust to compiled_regex.
9655 * probe.c: Include "common/gdb_optional.h".
9656 (collect_probes): Use compiled_regex and gdb::optional and remove
9657 cleanups.
9658 * skip.c: Include "common/gdb_optional.h".
9659 (skiplist_entry::compiled_function_regexp): Now a
9660 gdb::optional<compiled_regex>.
9661 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
9662 (free_skiplist_entry): Remove regfree call.
9663 (compile_skip_regexp, skip_rfunction_p): Adjust to use
9664 compiled_regex and gdb::optional.
9665 * symtab.c: Include "common/gdb_optional.h".
9666 (search_symbols): Use compiled_regex and gdb::optional.
9667 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
9668 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
9669 to gdb_regex.c.
9670
50d6adef
AH
96712017-06-07 Alan Hayward <alan.hayward@arm.com>
9672
9673 * regcache.c (regcache::save): Avoid buffer use.
9674 (regcache::dump): Likewise.
9675
4a8a33c8
AH
96762017-06-07 Alan Hayward <alan.hayward@arm.com>
9677
9678 * sh-tdep.c (sh_pseudo_register_read): Remove
9679 MAX_REGISTER_SIZE.
9680 (sh_pseudo_register_write): Likewise.
9681 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
9682 (sh64_pseudo_register_write): Likewise
9683
d1be909e
AH
96842017-06-07 Alan Hayward <alan.hayward@arm.com>
9685
9686 * aarch64-tdep.c (aarch64_store_return_value): Use
9687 V_REGISTER_SIZE.
9688 (aarch64_pseudo_read_value): Likewise.
9689 (aarch64_pseudo_write): Likewise.
9690
f4a65042
YQ
96912017-06-06 Yao Qi <yao.qi@linaro.org>
9692
9693 * regformats/regdef.h (set_register_cache): Remove the
9694 declaration.
9695
9f7fb0aa
AH
96962017-06-06 Alan Hayward <alan.hayward@arm.com>
9697
9698 * frame.c (frame_unwind_register_signed): Use
9699 frame_unwind_register_value.
9700
e1e01040
PA
97012017-06-06 Pedro Alves <palves@redhat.com>
9702
9703 PR breakpoints/21553
9704 * breakpoint.c (create_breakpoints_sal_default)
9705 (init_breakpoint_sal, create_breakpoint_sal): Use
9706 gdb::unique_xmalloc_ptr for string parameters.
9707 (create_breakpoint): Constify 'extra_string' and 'cond_string'
9708 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
9709 (base_breakpoint_create_breakpoints_sal)
9710 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
9711 (strace_marker_create_breakpoints_sal)
9712 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
9713 string parameters.
9714 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
9715 gdb::unique_xmalloc_ptr for string parameters.
9716 (create_breakpoint): Constify 'extra_string' and 'cond_string'
9717 parameters.
9718
fbe654c8
AH
97192017-06-06 Alan Hayward <alan.hayward@arm.com>
9720
9721 * alpha-tdep.c (alpha_register_to_value): Use
9722 get_frame_register_value.
9723 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
9724
ae0d01d6
AH
97252017-06-06 Alan Hayward <alan.hayward@arm.com>
9726
9727 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
9728 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
9729 (ia64_value_to_register): Likewise.
9730 (ia64_extract_return_value): Likewise.
9731 (ia64_store_return_value): Likewise.
9732 (ia64_push_dummy_call): Likewise.
9733
49cf576c
JB
97342017-06-04 Joel Brobecker <brobecker@adacore.com>
9735
9736 GDB 8.0 released.
9737
26b6a6ab
SM
97382017-06-03 Simon Marchi <simon.marchi@ericsson.com>
9739
9740 * x86-linux-nat.c (struct arch_lwp_info): Remove.
9741
22827c51
SM
97422017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
9743
9744 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
9745 parameter.
9746 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
9747
0e05cf3a
SM
97482017-06-02 Simon Marchi <simon.marchi@ericsson.com>
9749
9750 * event-loop.c (poll_timers): Unallocate timer using delete
9751 instead of xfree.
9752
c1fc2657
SM
97532017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9754
9755 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
9756 (struct breakpoint) <~breakpoint>: New.
9757 (struct watchpoint): Inherit from breakpoint.
9758 <~watchpoint>: New.
9759 <base>: Remove.
9760 (struct tracepoint): Inherit from breakpoint.
9761 <base>: Remove.
9762 * breakpoint.c (longjmp_breakpoint_ops): Remove.
9763 (struct longjmp_breakpoint): Inherit from breakpoint.
9764 <~longjmp_breakpoint>: New.
9765 <base>: Remove.
9766 (new_breakpoint_from_type): Remove casts.
9767 (watchpoint_in_thread_scope): Remove reference to base field.
9768 (watchpoint_del_at_next_stop): Likewise.
9769 (update_watchpoint): Likewise.
9770 (watchpoint_check): Likewise.
9771 (bpstat_check_watchpoint): Likewise.
9772 (set_longjmp_breakpoint): Likewise.
9773 (struct fork_catchpoint): Inherit from breakpoint.
9774 <base>: Remove.
9775 (struct solib_catchpoint): Inherit from breakpoint.
9776 <~solib_catchpoint>: New.
9777 <base>: Remove.
9778 (dtor_catch_solib): Change to ...
9779 (solib_catchpoint::~solib_catchpoint): ... this.
9780 (breakpoint_hit_catch_solib): Remove reference to base field.
9781 (add_solib_catchpoint): Likewise.
9782 (create_fork_vfork_event_catchpoint): Likewise.
9783 (struct exec_catchpoint): Inherit from breakpoint.
9784 <~exec_catchpoint>: New.
9785 <base>: Remove.
9786 (dtor_catch_exec): Change to ...
9787 (exec_catchpoint::~exec_catchpoint): ... this.
9788 (dtor_watchpoint): Change to ...
9789 (watchpoint::~watchpoint): ... this.
9790 (watch_command_1): Remove reference to base field.
9791 (catch_exec_command_1): Likewise.
9792 (base_breakpoint_dtor): Change to ...
9793 (breakpoint::~breakpoint): ... this.
9794 (base_breakpoint_ops): Remove dtor field value.
9795 (longjmp_bkpt_dtor): Change to ...
9796 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
9797 (strace_marker_create_breakpoints_sal): Remove reference to base
9798 field.
9799 (delete_breakpoint): Don't manually call breakpoint destructor.
9800 (create_tracepoint_from_upload): Remove reference to base field.
9801 (trace_pass_set_count): Likewise.
9802 (initialize_breakpoint_ops): Don't initialize
9803 momentary_breakpoint_ops, don't set dtors.
9804 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
9805 <~ada_catchpoint>: New.
9806 <base>: Remove.
9807 (create_excep_cond_exprs): Remove reference to base field.
9808 (dtor_exception): Change to ...
9809 (ada_catchpoint::~ada_catchpoint): ... this.
9810 (dtor_catch_exception): Remove.
9811 (dtor_catch_exception_unhandled): Remove.
9812 (dtor_catch_assert): Remove.
9813 (create_ada_exception_catchpoint): Remove reference to base
9814 field.
9815 (initialize_ada_catchpoint_ops): Don't set dtors.
9816 * break-catch-sig.c (struct signal_catchpoint): Inherit from
9817 breakpoint.
9818 <~signal_catchpoint>: New.
9819 <base>: Remove.
9820 (signal_catchpoint_dtor): Change to ...
9821 (signal_catchpoint::~signal_catchpoint): ... this.
9822 (create_signal_catchpoint): Remove reference to base field.
9823 (initialize_signal_catchpoint_ops): Don't set dtor.
9824 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
9825 from breakpoint.
9826 <~syscall_catchpoint>: New.
9827 <base>: Remove.
9828 (dtor_catch_syscall): Change to ...
9829 (syscall_catchpoint::~syscall_catchpoint): ... this.
9830 (create_syscall_event_catchpoint): Remove reference to base
9831 field.
9832 (initialize_syscall_catchpoint_ops): Don't set dtor.
9833 * break-catch-throw.c (struct exception_catchpoint): Inherit
9834 from breakpoint.
9835 <~exception_catchpoint>: New.
9836 <base>: Remove.
9837 (dtor_exception_catchpoint): Change to ...
9838 (exception_catchpoint::~exception_catchpoint): ... this.
9839 (handle_gnu_v3_exceptions): Remove reference to base field.
9840 (initialize_throw_catchpoint_ops): Don't set dtor.
9841 * ctf.c (ctf_get_traceframe_address): Remove reference to base
9842 field.
9843 * remote.c (remote_get_tracepoint_status): Likewise.
9844 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
9845 * tracefile.c (tracefile_fetch_registers): Likewise.
9846 * tracepoint.c (actions_command): Likewise.
9847 (validate_actionline): Likewise.
9848 (tfind_1): Likewise.
9849 (get_traceframe_location): Likewise.
9850 (find_matching_tracepoint_location): Likewise.
9851 (parse_tracepoint_status): Likewise.
9852 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
9853
3b0871f4
SM
98542017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9855
9856 * breakpoint.c (struct longjmp_breakpoint): New struct.
9857 (is_tracepoint_type): Change return type to bool.
9858 (is_longjmp_type): New function.
9859 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
9860 (set_raw_breakpoint_without_location): Use
9861 new_breakpoint_from_type.
9862 (set_raw_breakpoint): Likewise.
9863
a5e364af
SM
98642017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9865
9866 * breakpoint.c (new_breakpoint_from_type): New function.
9867 (create_breakpoint_sal): Use new_breakpoint_from_type and
9868 unique_ptr.
9869 (create_breakpoint): Likewise.
9870
ae3b3f34
SM
98712017-05-31 Simon Marchi <simon.marchi@ericsson.com>
9872
9873 * memattr.c (mem_info_command): Rename to ...
9874 (info_mem_command): ... this.
9875 (mem_enable_command): Rename to ...
9876 (enable_mem_command): ... this.
9877 (mem_disable_command): Rename to ...
9878 (disable_mem_command): ... this.
9879 (mem_delete_command): Rename to ...
9880 (delete_mem_command): ... this.
9881 (_initialize_mem): Adjust function names.
9882
13ace077
MM
98832017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9884
9885 * btrace.c (handle_pt_insn_events): New.
9886 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
9887 STATUS. Split into this and ...
9888 (handle_pt_insn_event_flags): ... this.
9889
c56ccc05
MM
98902017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9891
9892 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
9893 and struct pt_insn.resynced.
9894 * configure: Regenerated.
9895 * config.in: Regenerated.
9896
08c3f6d2
TW
98972017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9898
9899 * btrace.c (ftrace_find_call_by_number): New function.
9900 (ftrace_new_function): Store objects, not pointers.
9901 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
9902 ftrace_new_gap, ftrace_update_function,
9903 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
9904 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
9905 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
9906 btrace_ends_with_single_insn, btrace_call_get): Account for
9907 btrace_thread_info::functions now storing objects.
9908 * btrace.h (struct btrace_thread_info): Add constructor.
9909 (struct btrace_thread_info) <functions>: Make std::vector.
9910 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
9911 Initialize with default values.
9912 * record-btrace.c (record_btrace_frame_sniffer): Account for
9913 btrace_thread_info::functions now storing objects.
9914
8ffd39f2
TW
99152017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9916
9917 * btrace.c: Remove typedef bfun_s.
9918 (ftrace_new_gap): Directly add gaps to the list of gaps.
9919 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
9920 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
9921 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
9922 instead of gdb VEC.
9923
4aeb0dfc
TW
99242017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9925
9926 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
9927 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
9928 with btrace_thread_info::next_segment and
9929 btrace_thread_info::prev_segment.
9930 * btrace.h: Remove struct btrace_func_link.
9931 (struct btrace_function): Replace pair of function segment pointers
9932 with pair of indices.
9933 * python/py-record-btrace.c (btpy_call_prev_sibling,
9934 btpy_call_next_sibling): Replace references to
9935 btrace_thread_info::segment with btrace_thread_info::next_segment and
9936 btrace_thread_info::prev_segment.
9937 * record-btrace.c (record_btrace_frame_this_id): Use
9938 btrace_find_call_by_number.
9939
eb8f2b9c
TW
99402017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9941
9942 * btrace.c (ftrace_new_function, ftrace_fixup_level,
9943 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
9944 btrace_insn_next, btrace_insn_prev): Remove references to
9945 btrace_thread_info::flow.
9946 * btrace.h (struct btrace_function): Remove FLOW.
9947
42bfe59e
TW
99482017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9949
9950 * btrace.c (ftrace_find_call_by_number): New function.
9951 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
9952 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
9953 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
9954 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
9955 index.
9956 * btrace.h (struct btrace_function): Turn UP into an index.
9957 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
9958 as an index.
9959 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
9960 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
9961 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
9962
b54b03bd
TW
99632017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9964
9965 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9966 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9967 ftrace_update_function, ftrace_compute_global_level_offset,
9968 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
9969 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
9970 btrace_insn_end, btrace_is_empty): Remove references to
9971 btrace_thread_info::begin and btrace_thread_info::end.
9972 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
9973 (struct btrace_thread_info) <functions>: Adjust comment.
9974 * record-btrace.c (record_btrace_start_replaying): Remove reference to
9975 btrace_thread_info::begin.
9976
8286623c
TW
99772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9978
9979 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9980 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9981 ftrace_update_function): Remove arguments that implicitly were always
9982 BTINFO->END.
9983 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
9984 Don't pass BTINFO->END.
9985
a0f1b963
TW
99862017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9987
9988 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
9989 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
9990 btrace_find_insn_by_number): Replace function segment pointer with
9991 index.
9992 (btrace_insn_cmp): Simplify.
9993 * btrace.h: (struct btrace_insn_iterator) Rename index to
9994 insn_index. Replace function segment pointer with index into function
9995 segment vector.
9996 * record-btrace.c (record_btrace_call_history): Replace function
9997 segment pointer use with index.
9998 (record_btrace_frame_sniffer): Retrieve function call segment through
9999 vector.
10000 (record_btrace_set_replay): Remove defunc't safety check.
10001
f158f208
TW
100022017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10003
10004 * btrace.c (btrace_ends_with_single_insn): New function.
10005 (btrace_call_get, btrace_call_number, btrace_call_begin,
10006 btrace_call_end, btrace_call_next, btrace_call_prev,
10007 btrace_find_call_by_number): Use index into call segment vector
10008 instead of pointer.
10009 (btrace_call_cmp): Simplify.
10010 * btrace.h (struct btrace_call_iterator): Replace function call segment
10011 pointer with index into vector.
10012 * record-btrace.c (record_btrace_call_history): Use index instead of
10013 pointer.
10014
521103fd
TW
100152017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10016
10017 * btrace.c (btrace_insn_begin, btrace_insn_end,
10018 btrace_find_insn_by_number): Add btinfo to iterator.
10019 * btrace.h (struct btrace_insn_iterator): Add btinfo.
10020
17b89b34
TW
100212017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10022
10023 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
10024 and save pointers directly.
10025 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
10026 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
10027 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
10028 changed signature of functions.
10029 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
10030 (btrace_fetch): Remove code that adds btrace_function pointers to
10031 vector of btrace_functions.
10032 (btrace_clear): Simplify freeing vector of btrace_functions.
10033
2b51eddc
TW
100342017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10035
10036 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
10037 Replace VEC_* with std::vector functions.
10038 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
10039 (struct btrace_thread_info)<functions>: Change type to std::vector.
10040
db6be0d5
SM
100412017-05-30 Simon Marchi <simon.marchi@ericsson.com>
10042
10043 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
10044 "Removed targets and native configurations" up. Merge duplicate
10045 "New commands" sub-sections. Add "New options" sub-sections.
10046
b057297a
AH
100472017-05-26 Alan Hayward <alan.hayward@arm.com>
10048
10049 * defs.h (copy_integer_to_size): New declaration.
10050 * findvar.c (copy_integer_to_size): New function.
10051 (do_cint_test): New selftest function.
10052 (copy_integer_to_size_test): Likewise.
10053 (_initialize_findvar): Likewise.
10054 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
10055 (mips_fbsd_collect_reg): Use raw_collect_integer.
10056 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
10057 (mips64_fill_gregset): Use raw_collect_integer
10058 (mips64_fill_fpregset): Use raw_supply_integer.
10059 * regcache.c (regcache::raw_supply_integer): New function.
10060 (regcache::raw_collect_integer): Likewise.
10061 * regcache.h: (regcache::raw_supply_integer): New declaration.
10062 (regcache::raw_collect_integer): Likewise.
10063
b77b02a5
YQ
100642017-05-24 Yao Qi <yao.qi@linaro.org>
10065
10066 * Makefile.in (SFILES): Add gdbarch-selftests.c.
10067 (COMMON_OBS): Add gdbarch-selftests.o.
10068 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
10069 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
10070 * gdbarch-selftests.c: New file.
10071 * regcache.h (regcache) <~regcache>: Mark it virtual if
10072 GDB_SELF_TEST.
10073 <raw_write>: Likewise.
10074
e521e87e
YQ
100752017-05-24 Yao Qi <yao.qi@linaro.org>
10076
10077 * regcache.c (current_regcache): Change it to
10078 regcache::current_regcache.
10079 (regcache_observer_target_changed): Update.
10080 (regcache_thread_ptid_changed): Make it a regcache static
10081 method.
10082 (regcache_thread_ptid_changed): Update.
10083 (class regcache_access): New.
10084 (current_regcache_test): Update.
10085 (_initialize_regcache): Update.
10086 * regcache.h: Include forward_list.
10087 (regcache): Declare regcache_thread_ptid_changed and declare
10088 registers_changed_ptid as friend.
10089
d8e07dda
YQ
100902017-05-24 Yao Qi <yao.qi@linaro.org>
10091
10092 * i387-tdep.c (i387_register_to_value): Use register_size
10093 instead of TYPE_LENGTH.
10094 * m68k-tdep.c (m68k_register_to_value): Likewise.
10095
8c8f9122
YQ
100962017-05-24 Yao Qi <yao.qi@linaro.org>
10097
10098 * i387-tdep.c (i387_convert_register_p): Return false if type
10099 code isn't TYPE_CODE_FLT.
10100
68fce50f
YQ
101012017-05-24 Yao Qi <yao.qi@linaro.org>
10102
10103 * alpha-tdep.c (alpha_convert_register_p): Return true if type
10104 length is 4.
10105 (alpha_register_to_value): Remove type length check.
10106 (alpha_value_to_register): Likewise.
10107
88954b49
YQ
101082017-05-24 Yao Qi <yao.qi@linaro.org>
10109
10110 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
10111 TYPE_CODE_FLT.
10112
e3ec9b69
YQ
101132017-05-24 Yao Qi <yao.qi@linaro.org>
10114
10115 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
10116 TYPE_CODE_FLT or not.
10117
cdd238da
YQ
101182017-05-24 Yao Qi <yao.qi@linaro.org>
10119
10120 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
10121 * avr-tdep.c (avr_gdbarch_init): Likewise.
10122 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10123 * cris-tdep.c (cris_gdbarch_init): Likewise.
10124 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
10125 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10126 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10127 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10128 * mep-tdep.c (mep_gdbarch_init): Likewise.
10129 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10130 * mips-tdep.c (mips_gdbarch_init): Likewise.
10131 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10132 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10133 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
10134 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10135 * v850-tdep.c (v850_gdbarch_init): Likewise.
10136
7a3929c4
YQ
101372017-05-24 Yao Qi <yao.qi@linaro.org>
10138
10139 * selftest-arch.c (tests_with_arch): Call registers_changed
10140 and reinit_frame_cache.
10141 * selftest.c (run_self_tests): Likewise.
10142
f4985dba
YQ
101432017-05-24 Yao Qi <yao.qi@linaro.org>
10144
10145 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
10146 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
10147
ab20fa4a
YQ
101482017-05-24 Yao Qi <yao.qi@linaro.org>
10149
10150 * rl78-tdep.c (rl78_gdbarch_init): Don't call
10151 set_gdbarch_print_insn.
10152
f532ab94
YQ
101532017-05-24 Yao Qi <yao.qi@linaro.org>
10154
10155 * h8300-tdep.c (h8300_gdbarch_init): Don't call
10156 set_gdbarch_print_insn.
10157
39503f82
YQ
101582017-05-24 Yao Qi <yao.qi@linaro.org>
10159
10160 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10161 set_gdbarch_print_insn.
10162 * arc-tdep.c (arc_gdbarch_init): Likewise.
10163 * arch-utils.c: include dis-asm.h.
10164 (default_print_insn): New function.
10165 * arch-utils.h (default_print_insn): Declare.
10166 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
10167 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10168 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
10169 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
10170 * frv-tdep.c (frv_gdbarch_init): Likewise.
10171 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
10172 * gdbarch.sh (print_insn): Use default_print_insn.
10173 * gdbarch.c: Regenerated.
10174 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10175 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
10176 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10177 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
10178 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10179 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
10180 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
10181 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10182 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
10183 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10184 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10185 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10186 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
10187 * mt-tdep.c (mt_gdbarch_init): Likewise.
10188 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10189 * nios2-tdep.c (nios2_print_insn): Remove.
10190 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
10191 * rx-tdep.c (rx_gdbarch_init): Likewise.
10192 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10193 * score-tdep.c (score_print_insn): Remove.
10194 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
10195 * sh-tdep.c (sh_gdbarch_init): Likewise.
10196 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10197 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10198 * tic6x-tdep.c (tic6x_print_insn): Remove.
10199 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
10200 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
10201 * v850-tdep.c (v850_gdbarch_init): Likewise.
10202 * vax-tdep.c (vax_gdbarch_init): Likewise.
10203 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10204 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
10205
f7241d4f
JB
102062017-05-23 John Baldwin <jhb@FreeBSD.org>
10207
10208 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
10209 (MIPS_FP0_REGNUM): Remove.
10210 (MIPS_FSR_REGNUM): Remove.
10211 (mips_fbsd_supply_fpregs): Use mips_regnum.
10212 (mips_fbsd_supply_gregs): Likewise.
10213 (mips_fbsd_collect_fpregs): Likewise.
10214 (mips_fbsd_collect_gregs): Likewise.
10215
d489d81d
JB
102162017-05-23 John Baldwin <jhb@FreeBSD.org>
10217
10218 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
10219 (getpfpregs_supplies): New function.
10220 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
10221 getfpregs_supplies.
10222 (mips_fbsd_store_inferior_registers): Likewise.
10223
e11b3cdc
PA
102242017-05-22 Pedro Alves <palves@redhat.com>
10225
10226 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
10227 maintainer.
10228
0f068fb5
AH
102292017-05-22 Alan Hayward <alan.hayward@arm.com>
10230
10231 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
10232 (store_register): Likewise.
10233 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
10234 (get_decimal_float_return_value): Likewise.
10235 (do_ppc_sysv_return_value): Likewise.
10236 (ppc64_sysv_abi_push_integer): Likewise.
10237 (ppc64_sysv_abi_push_freg): Likewise.
10238 (ppc64_sysv_abi_return_value_base): Likewise.
10239 (ppc64_sysv_abi_return_value): Likewise.
10240 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
10241 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
10242 * rs6000-nat.c: Likewise.
10243 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
10244 (rs6000_value_to_register): Likewise.
10245 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
10246
e6cf65f2
TT
102472017-05-21 Tom Tromey <tom@tromey.com>
10248
10249 PR rust/21466:
10250 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
10251 arrays as "[T]", not "[T; ]".
10252
43cc5389
TT
102532017-05-19 Tom Tromey <tom@tromey.com>
10254
10255 PR rust/21484:
10256 * rust-lang.c (exp_descriptor_rust): New function.
10257 (rust_language_defn): Use it.
10258 * p-lang.c (pascal_language_defn): Update.
10259 * opencl-lang.c (opencl_language_defn): Update.
10260 * objc-lang.c (objc_language_defn): Update.
10261 * m2-lang.c (m2_language_defn): Update.
10262 * language.h (struct language_defn)
10263 <la_watch_location_expression>: New member.
10264 * language.c (unknown_language_defn, auto_language_defn)
10265 (local_language_defn): Update.
10266 * go-lang.c (go_language_defn): Update.
10267 * f-lang.c (f_language_defn): Update.
10268 * d-lang.c (d_language_defn): Update.
10269 * c-lang.h (c_watch_location_expression): Declare.
10270 * c-lang.c (c_watch_location_expression): New function.
10271 (c_language_defn, cplus_language_defn, asm_language_defn)
10272 (minimal_language_defn): Use it.
10273 * breakpoint.c (watch_command_1): Call
10274 la_watch_location_expression.
10275 * ada-lang.c (ada_language_defn): Update.
10276
7a6e7fcc
RO
102772017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10278
6e7e1744
RO
10279 PR tui/21482
10280 * gdb_curses.h (NOMACROS): Define.
10281 (NCURSES_NOMACROS): Define.
10282
102832017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10284
10285 PR tui/21482
7a6e7fcc
RO
10286 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
10287 arg to char *.
10288 * tui/tui-wingeneral.c (box_win): Likewise.
10289 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
10290 (tui_show_source_line): Likewise.
10291 (tui_show_exec_info_content): Likewise.
10292
1933fd8e
VM
102932017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
10294
10295 * sparc-tdep.c (sparc_structure_return_p)
10296 (sparc_arg_on_registers_p): New functions.
10297 (sparc32_store_arguments): Use them.
10298 * sparc64-tdep.c (sparc64_16_byte_align_p)
10299 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
10300 Handle TYPE_CODE_ARRAY.
10301
21873064
YQ
103022017-05-17 Yao Qi <yao.qi@linaro.org>
10303
10304 * cli/cli-decode.c (add_alias_cmd): New function.
10305 * command.h (add_alias_cmd): Declare.
10306 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
10307 instead call add_alias_cmd.
10308
2b351b19
PA
103092017-05-17 Pedro Alves <palves@redhat.com>
10310
10311 * Makefile.in (nat_extra_makefile_frag): Rename to ...
10312 (nat_makefile_frag): ... this. All references updated.
10313 * configure.ac: Likewise.
10314 * configure.nat: Likewise. Enhance comments.
10315 * configure: Regenerate.
10316
5f2ad7a3
RO
103172017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10318
10319 * procfs.c (procfs_create_inferior): Change prototype to match
10320 definition.
10321
adf3dde5
EZ
103222017-05-13 Eli Zaretskii <eliz@gnu.org>
10323
10324 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
10325 C++ compiler warning.
10326
6830f270
TT
103272017-05-12 Tom Tromey <tom@tromey.com>
10328
10329 PR rust/21483:
10330 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
10331 recurse, just call value_struct_elt directly.
10332
68f2f2e3
TT
103332017-05-12 Tom Tromey <tom@tromey.com>
10334
10335 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
10336 OP_RUST_ARRAY>: Fix.
10337
256afbc2
TT
103382017-05-12 Tom Tromey <tom@tromey.com>
10339
10340 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
10341
94bb8dfe
YQ
103422017-05-09 Yao Qi <yao.qi@linaro.org>
10343
10344 * regcache.c: Include <forward_list>.
10345 (struct regcache_list): Remove.
10346 (current_regcache): Update.
10347 (get_thread_arch_aspace_regcache): Update for std::forward_list.
10348 (regcache_thread_ptid_changed): Likewise.
10349 (registers_changed_ptid): Likewise.
10350 (current_regcache_size): Likewise.
10351
8248946c
YQ
103522017-05-09 Yao Qi <yao.qi@linaro.org>
10353
10354 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
10355 (current_regcache_size): New function.
10356 (current_regcache_test): New function.
10357 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
10358
313c5961
AH
103592017-05-08 Alan Hayward <alan.hayward@arm.com>
10360
10361 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
10362 (print_gp_register_row): Use get_frame_register_value.
10363
27bfc1d1
AH
103642017-05-08 Alan Hayward <alan.hayward@arm.com>
10365
10366 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
10367 (mips_supply_fpregset): Likewise.
10368 (mips64_supply_gregset): Likewise.
10369
146e6c5c
AH
103702017-05-08 Alan Hayward <alan.hayward@arm.com>
10371
10372 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
10373 regcache->raw_supply_zeroed.
10374
e50f25ec
SDJ
103752017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
10376
10377 * configure.nat: Rearrange 'case' statements to match
10378 host before cpu.
10379
21ea5acd
SDJ
103802017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
10381
10382 * Makefile.in: Remove "@host_makefile_frag@". Add variables
10383 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
10384 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
10385 "@nat_extra_makefile_frag@".
10386 (Makefile): Remove dependency on "@frags@".
10387 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
10388 (data-directory/Makefile): Likewise.
10389 * config/aarch64/linux.mh: Deleted; moved contents to
10390 "gdb/configure.nat".
10391 * config/alpha/alpha-linux.mh: Likewise.
10392 * config/alpha/nbsd.mh: Likewise.
10393 * config/arm/linux.mh: Likewise.
10394 * config/arm/nbsdelf.mh: Likewise.
10395 * config/i386/cygwin.mh: Likewise.
10396 * config/i386/cygwin64.mh: Likewise.
10397 * config/i386/darwin.mh: Likewise.
10398 * config/i386/fbsd.mh: Likewise.
10399 * config/i386/fbsd64.mh: Likewise.
10400 * config/i386/go32.mh: Likewise.
10401 * config/i386/i386gnu.mh: Likewise.
10402 * config/i386/i386sol2.mh: Likewise.
10403 * config/i386/linux.mh: Likewise.
10404 * config/i386/linux64.mh: Likewise.
10405 * config/i386/mingw.mh: Likewise.
10406 * config/i386/mingw64.mh: Likewise.
10407 * config/i386/nbsd64.mh: Likewise.
10408 * config/i386/nbsdelf.mh: Likewise.
10409 * config/i386/nto.mh: Likewise.
10410 * config/i386/obsd.mh: Likewise.
10411 * config/i386/obsd64.mh: Likewise.
10412 * config/i386/sol2-64.mh: Likewise.
10413 * config/ia64/linux.mh: Likewise.
10414 * config/m32r/linux.mh: Likewise.
10415 * config/m68k/linux.mh: Likewise.
10416 * config/m68k/nbsdelf.mh: Likewise.
10417 * config/m68k/obsd.mh: Likewise.
10418 * config/m88k/obsd.mh: Likewise.
10419 * config/mips/fbsd.mh: Likewise.
10420 * config/mips/linux.mh: Likewise.
10421 * config/mips/nbsd.mh: Likewise.
10422 * config/mips/obsd64.mh: Likewise.
10423 * config/pa/linux.mh: Likewise.
10424 * config/pa/nbsd.mh: Likewise.
10425 * config/pa/obsd.mh: Likewise.
10426 * config/powerpc/aix.mh: Likewise.
10427 * config/powerpc/fbsd.mh: Likewise.
10428 * config/powerpc/linux.mh: Likewise.
10429 * config/powerpc/nbsd.mh: Likewise.
10430 * config/powerpc/obsd.mh: Likewise.
10431 * config/powerpc/ppc64-linux.mh: Likewise.
10432 * config/powerpc/spu-linux.mh: Likewise.
10433 * config/s390/linux.mh: Likewise.
10434 * config/sh/nbsd.mh: Likewise.
10435 * config/sparc/fbsd.mh: Likewise.
10436 * config/sparc/linux.mh: Likewise.
10437 * config/sparc/linux64.mh: Likewise.
10438 * config/sparc/nbsd64.mh: Likewise.
10439 * config/sparc/nbsdelf.mh: Likewise.
10440 * config/sparc/obsd64.mh: Likewise.
10441 * config/sparc/sol2.mh: Likewise.
10442 * config/tilegx/linux.mh: Likewise.
10443 * config/vax/nbsdelf.mh: Likewise.
10444 * config/vax/obsd.mh: Likewise.
10445 * config/xtensa/linux.mh: Likewise.
10446 * config/i386/i386gnu.mn: New file, with excerpts from
10447 "config/i386/i386gnu.mh".
10448 * configure: Regenerate.
10449 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
10450 *.mh files under "gdb/config".
10451 * configure.nat: New file, with contents from the
10452 "gdb/config/*/*.mh" files.
10453
7ed1acaf
TW
104542017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
10455
10456 * btrace.c (btrace_clear): Free insn vector.
10457
e13cb306
PA
104582017-05-05 Pedro Alves <palves@redhat.com>
10459
10460 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
10461 * configure: Regenerate.
10462
5ed8105e
PA
104632017-05-04 Pedro Alves <palves@redhat.com>
10464
10465 * Makefile.in (SFILES): Add progspace-and-thread.c.
10466 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
10467 (COMMON_OBS): Add progspace-and-thread.o.
10468 * breakpoint.c: Include "progspace-and-thread.h".
10469 (update_inserted_breakpoint_locations)
10470 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
10471 Use scoped_restore_current_pspace_and_thread.
10472 (create_std_terminate_master_breakpoint): Use
10473 scoped_restore_current_program_space.
10474 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
10475 (print_breakpoint_location): Use
10476 scoped_restore_current_program_space.
10477 (bp_loc_is_permanent): Use
10478 scoped_restore_current_pspace_and_thread.
10479 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
10480 (download_tracepoint_locations): Use
10481 scoped_restore_current_pspace_and_thread.
10482 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
10483 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
10484 (enum step_over_calls_kind): Moved from inferior.h.
10485 (class scoped_restore_current_thread): New class.
10486 * gdbthread.h (make_cleanup_restore_current_thread): Delete
10487 declaration.
10488 (scoped_restore_current_thread): New class.
10489 * infcmd.c: Include "common/gdb_optional.h".
10490 (continue_1, proceed_after_attach): Use
10491 scoped_restore_current_thread.
10492 (notice_new_inferior): Use scoped_restore_current_thread.
10493 * inferior.c: Include "progspace-and-thread.h".
10494 (restore_inferior, save_current_inferior): Delete.
10495 (add_inferior_command, clone_inferior_command): Use
10496 scoped_restore_current_pspace_and_thread.
10497 * inferior.h (scoped_restore_current_inferior): New class.
10498 * infrun.c: Include "progspace-and-thread.h" and
10499 "common/gdb_optional.h".
10500 (follow_fork_inferior): Use
10501 scoped_restore_current_pspace_and_thread.
10502 (scoped_restore_exited_inferior): New class.
10503 (handle_vfork_child_exec_or_exit): Use
10504 scoped_restore_exited_inferior,
10505 scoped_restore_current_pspace_and_thread,
10506 scoped_restore_current_thread and scoped_restore.
10507 (fetch_inferior_event): Use scoped_restore_current_thread.
10508 * linespec.c (decode_line_full, decode_line_1): Use
10509 scoped_restore_current_program_space.
10510 * mi/mi-main.c: Include "progspace-and-thread.h".
10511 (exec_continue): Use scoped_restore_current_thread.
10512 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
10513 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
10514 * proc-service.c (ps_pglobal_lookup): Use
10515 scoped_restore_current_program_space.
10516 * progspace-and-thread.c: New file.
10517 * progspace-and-thread.h: New file.
10518 * progspace.c (release_program_space, clone_program_space): Use
10519 scoped_restore_current_program_space.
10520 (restore_program_space, save_current_program_space)
10521 (save_current_space_and_thread): Delete.
10522 (switch_to_program_space_and_thread): Moved to
10523 progspace-and-thread.c.
10524 * progspace.h (save_current_program_space)
10525 (save_current_space_and_thread): Delete declarations.
10526 (scoped_restore_current_program_space): New class.
10527 * remote.c (remote_btrace_maybe_reopen): Use
10528 scoped_restore_current_thread.
10529 * symtab.c: Include "progspace-and-thread.h".
10530 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
10531 * thread.c (print_thread_info_1): Use
10532 scoped_restore_current_thread.
10533 (struct current_thread_cleanup): Delete.
10534 (do_restore_current_thread_cleanup)
10535 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
10536 (scoped_restore_current_thread::~scoped_restore_current_thread):
10537 ... this new dtor.
10538 (make_cleanup_restore_current_thread): Rename/convert to ...
10539 (scoped_restore_current_thread::scoped_restore_current_thread):
10540 ... this new ctor.
10541 (thread_apply_all_command): Use scoped_restore_current_thread.
10542 (thread_apply_command): Use scoped_restore_current_thread.
10543 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
10544 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
10545
f6223dbb
PA
105462017-05-04 Pedro Alves <palves@redhat.com>
10547
10548 * thread.c (make_cleanup_restore_current_thread): Move
10549 find_thread_ptid call before the is_stopped call. Assert that the
10550 thread is found. Replace is_stopped call by checking the thread's
10551 state directly. Remove unnecessary NULL-thread check.
10552
3c3ae77e
PA
105532017-05-04 Pedro Alves <palves@redhat.com>
10554
10555 * corelow.c (thread_section_name): New class.
10556 (get_core_register_section, get_core_siginfo): Use it.
10557
45eba0ab
AA
105582017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10559
10560 * corelow.c (sniff_core_bfd): Remove extra semicolon.
10561 (get_core_register_section): Remove xfree of NULL pointer.
10562
f81fdd35
AH
105632017-05-03 Alan Hayward <alan.hayward@arm.com>
10564
10565 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
10566 * regcache.c (regcache::raw_supply_zeroed): New function.
10567 * regcache.h (regcache::raw_supply_zeroed): New declaration.
10568
35837774
SM
105692017-05-03 Simon Marchi <simon.marchi@ericsson.com>
10570
10571 * gdbarch.sh: Remove commented out definition of
10572 TARGET_CHAR_BIT.
10573 * gdbarch.h: Re-generate.
10574
c94fee56
SDJ
105752017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
10576
10577 * configure: Regenerate.
10578
d17f7b36
SM
105792017-05-02 Simon Marchi <simon.marchi@ericsson.com>
10580
10581 * solib-target.c (solib_target_relocate_section_addresses):
10582 Remove num_section_bases, num_bases, segment_bases variables.
10583
b560ebd6
SM
105842017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10585
10586 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
10587
f2f46dfc
SM
105882017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10589
10590 * solib-target.c: Include <vector>
10591 (struct lm_info_target) <~lm_info_target>: Remove.
10592 <segment_bases, section_bases>: Change type to
10593 std::vector<CORE_ADDR>.
10594 (library_list_start_segment, library_list_start_section,
10595 library_list_end_library,
10596 solib_target_relocate_section_addresses): Adjust.
10597
a0ff9e1a
SM
105982017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10599
10600 * gdbarch.sh (software_single_step): Change return type to
10601 std::vector<CORE_ADDR>.
10602 * gdbarch.c, gdbarch.h: Re-generate.
10603 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
10604 Adjust.
10605 (arm_deal_with_atomic_sequence_raw): Adjust.
10606 (thumb_get_next_pcs_raw): Adjust.
10607 (arm_get_next_pcs_raw): Adjust.
10608 (arm_get_next_pcs): Adjust.
10609 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
10610 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
10611 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
10612 (alpha_software_single_step): Adjust.
10613 * alpha-tdep.h (alpha_software_single_step): Adjust.
10614 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
10615 * arm-tdep.c (arm_software_single_step): Adjust.
10616 (arm_breakpoint_kind_from_current_state): Adjust.
10617 * arm-tdep.h (arm_software_single_step): Adjust.
10618 * breakpoint.c (insert_single_step_breakpoint): Adjust.
10619 * cris-tdep.c (cris_software_single_step): Adjust.
10620 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
10621 (micromips_deal_with_atomic_sequence): Adjust.
10622 (deal_with_atomic_sequence): Adjust.
10623 (mips_software_single_step): Adjust.
10624 * mips-tdep.h (mips_software_single_step): Adjust.
10625 * moxie-tdep.c (moxie_software_single_step): Adjust.
10626 * nios2-tdep.c (nios2_software_single_step): Adjust.
10627 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
10628 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
10629 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
10630 * s390-linux-tdep.c (s390_software_single_step): Adjust.
10631 * sparc-tdep.c (sparc_software_single_step): Adjust.
10632 * spu-tdep.c (spu_software_single_step): Adjust.
10633 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
10634
ea480a30
SM
106352017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
10636
10637 * gdbarch.sh: Use semi-colon as field separator instead of colon.
10638 * gdbarch.h: Re-generate.
10639
d050f7d7
TW
106402017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10641
10642 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
10643 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
10644 * python/py-instruction.c, python/py-instruction.h: New file.
10645 * python/py-record.c: Add py-instruction.h include.
10646 (gdbpy_initialize_record): Make gdb.Instruction a super class of
10647 gdb.RecordInstruction.
10648 * python/python-internal.h: Add gdbpy_initialize_instruction
10649 declaration.
10650 * python/python.c (do_start_initialization): Add
10651 gdbpy_initialize_instruction.
10652
14f819c8
TW
106532017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10654
10655 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
10656 Remove.
10657 (btrace_func_from_recpy_func): New function.
10658 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
10659 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
10660 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
10661 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
10662 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
10663 Also, use new helper functions.
10664 (btpy_list_item): Use new helper functions.
10665 (recpy_bt_function_call_history): Use new type name.
10666 (btpy_call_getset): Remove.
10667 (gdbpy_initialize_btrace): Remove code to initialize
10668 gdb.BtraceFunctionCall.
10669 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
10670 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
10671 recpy_bt_func_prev, recpy_bt_func_next): New export.
10672 * python/py-record.c (recpy_func_type): New static object.
10673 (recpy_func_new, recpy_func_level, recpy_func_symbol,
10674 recpy_func_instructions, recpy_func_up, recpy_func_prev,
10675 recpy_func_next): New function.
10676 (recpy_element_hash, recpy_element_richcompare): Updated comment.
10677 (recpy_func_getset): New static object.
10678 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
10679 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
10680
0ed5da75
TW
106812017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10682
10683 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
10684 (btpy_object, btpy_insn_type, btpy_new): Remove.
10685 (btpy_list_object): Use gdb.RecordInstruction type instead of
10686 gdb.BtraceInstruction type.
10687 (btrace_insn_from_recpy_insn): New function.
10688 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
10689 btpy_new.
10690 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
10691 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
10692 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
10693 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
10694 instead of btpy_object.
10695 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
10696 btpy_insn_data, btpy_insn_decode): Rename to ...
10697 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
10698 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
10699 recpy_bt_insn_decode): This. Also, use new helper functions.
10700 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
10701 recpy_insn_type.
10702 (btpy_insn_getset): Remove.
10703 (gdbpy_initialize_btrace): Remove code to initialize
10704 gdb.BtraceInstruction. Use recpy_element_object.
10705 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
10706 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
10707 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
10708 * python/py-record.c (recpy_insn_type): New static object.
10709 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
10710 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
10711 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
10712 New function.
10713 (recpy_insn_getset): New static object.
10714 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
10715 * python/py-record.h (recpy_element_object): New typedef.
10716 (recpy_insn_type, recpy_insn_new): New export.
10717
913aeadd
TW
107182017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10719
10720 * py-record-btrace.c (btpy_insn_new): Removed.
10721 (btpy_insn_or_gap_new): New function.
10722 (btpy_insn_error): Removed.
10723 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
10724 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
10725 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
10726 btpy_insn_or_gap_new instead of btpy_insn_new.
10727 (btpy_insn_getset): Remove btpy_insn_error.
10728 * py-record.c (recpy_gap_type): New static object.
10729 (recpy_gap_object): New typedef.
10730 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
10731 recpy_gap_reason_string): New function.
10732 (recpy_gap_getset): New static object.
10733 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
10734 * py-record.h (recpy_gap_new): New export.
10735
a3be24ad
TW
107362017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10737
10738 * python/py-record.c (recpy_ptid): Remove.
10739 (recpy_record_getset): Remove recpy_ptid.
10740
ae20e79a
TW
107412017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10742
10743 * btrace.c (btrace_fetch): Set inferior_ptid.
10744 * python/py-record-btrace.c: Add "py-record.h" include.
10745 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
10746 recpy_bt_end, recpy_bt_instruction_history,
10747 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
10748 in gdb.Record object instead of current ptid.
10749 * python/py-record.c: Include new "py-record.h" file.
10750 (recpy_record_object): Moved to py-record.h.
10751 * python/py-record.h: New file.
10752
8d0050ea
TW
107532017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10754
10755 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
10756 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
10757 indentation.
10758
3f380b50
JB
107592017-05-01 Joel Brobecker <brobecker@adacore.com>
10760
10761 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
10762 the past maintainers section.
10763
07495424
YQ
107642017-04-28 Yao Qi <yao.qi@linaro.org>
10765
10766 * infcmd.c (get_return_value): Use regcache ctor, and remove
10767 cleanup.
10768
deb1fa3e
YQ
107692017-04-28 Yao Qi <yao.qi@linaro.org>
10770 Pedro Alves <palves@redhat.com>
10771
10772 * regcache.c (regcache::regcache): New tag dispatch ctor.
10773 (do_cooked_read): Moved above.
10774 (regcache_dup): Use the tag dispatch ctor..
10775 * regcache.h (regcache): Declare ctor, delete copy ctor and
10776 assignment operator, remove friend regcache_dup.
10777
b421c83c
YQ
107782017-04-28 Yao Qi <yao.qi@linaro.org>
10779
10780 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
10781 call method save instead of regcache_cpy.
10782 * regcache.h (struct regcache): Make regcache_dup a friend.
10783
ef79d9a3
YQ
107842017-04-28 Yao Qi <yao.qi@linaro.org>
10785
10786 * regcache.c (struct regcache): Move to regcache.h
10787 (regcache::arch): New method.
10788 (regcache_get_ptid): Update.
10789 (get_regcache_arch): Call arch method.
10790 (get_regcache_aspace): Call method aspace.
10791 (register_buffer): Change it to method.
10792 (regcache_save): Change it to regcache::save.
10793 (regcache_restore): Likewise.
10794 (regcache_cpy_no_passthrough): Remove the declaration.
10795 (regcache_cpy): Call methods restore and cpy_no_passthrough.
10796 (regcache_cpy_no_passthrough): Change it to method
10797 cpy_no_passthrough.
10798 (regcache_register_status): Change it to method
10799 get_register_status.
10800 (regcache_invalidate): Change it to method invalidate.
10801 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
10802 (regcache_raw_update): Change it to method raw_update.
10803 (regcache_raw_read): Likewise.
10804 (regcache_raw_read_signed): Likewise.
10805 (regcache_raw_read_unsigned): Likewise.
10806 (regcache_raw_write_signed): Likewise.
10807 (regcache_raw_write_unsigned): Likewise.
10808 (regcache_cooked_read): Likewise.
10809 (regcache_cooked_read_value): Likewise.
10810 (regcache_cooked_read_signed): Likewise.
10811 (regcache_cooked_read_unsigned): Likewise.
10812 (regcache_cooked_write_signed): Likewise.
10813 (regcache_cooked_write_unsigned): Likewise.
10814 (regcache_raw_set_cached_value): Likewise.
10815 (regcache_raw_write): Likewise.
10816 (regcache_cooked_write): Likewise.
10817 (regcache_xfer_part): Likewise.
10818 (regcache_raw_read_part): Likewise.
10819 (regcache_raw_write_part): Likewise.
10820 (regcache_cooked_read_part): Likewise.
10821 (regcache_cooked_write_part): Likewise.
10822 (regcache_raw_supply): Likewise.
10823 (regcache_raw_collect): Likewise.
10824 (regcache_transfer_regset): Likewise.
10825 (regcache_supply_regset): Likewise.
10826 (regcache_collect_regset): Likewise.
10827 (regcache_debug_print_register): Likewise.
10828 (enum regcache_dump_what): Move it to regcache.h.
10829 (regcache_dump): Change it to method dump.
10830 * regcache.h (enum regcache_dump_what): New.
10831 (class regcache): New.
10832 * target.c (target_fetch_registers): Call method
10833 debug_print_register.
10834 (target_store_registers): Likewise.
10835
f8fdb78e
SM
108362017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10837
10838 * windows-nat.c (struct lm_info_windows): Initialize field.
10839 (windows_make_so): Allocate lm_info_windows with new.
10840 (windows_free_so): Free lm_info_windows with delete.
10841
9ccbfd7b
SM
108422017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10843
10844 * solib-darwin.c (struct lm_info_darwin): Initialize field.
10845 (darwin_current_sos): Allocate lm_info_darwin with new, remove
10846 cleanup.
10847 (darwin_free_so): Free lm_info_darwin with delete.
10848
76e75227
SM
108492017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10850
10851 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
10852 <l_addr_p>: Change type to bool.
10853 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
10854 (svr4_free_so): Free lm_info_svr4 with delete.
10855 (svr4_copy_library_list): Replace memcpy with call to copy
10856 constructor.
10857 (library_list_start_library, svr4_default_sos): Allocate
10858 lm_info_svr4 with new.
10859
51046d9e
SM
108602017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10861
10862 * solib-target.c (struct lm_info_target): Add destructor,
10863 initialize fields.
10864 <name>: Change type to std::string.
10865 (library_list_start_library): Allocate lm_info_target with new.
10866 (solib_target_free_library_list): Free lm_info_target with
10867 delete.
10868 (solib_target_current_sos): Adapt to std::string.
10869 (solib_target_free_so): Free lm_info_target with delete.
10870
4023ae76
SM
108712017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10872
10873 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
10874 fields.
10875 (frv_current_sos): Allocate lm_info_frv with new.
10876 (frv_relocate_main_executable): Free lm_info_frv with delete,
10877 allocate with new.
10878 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
10879
af43057b
SM
108802017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10881
10882 * solib-frv.c (struct lm_info_frv): Fix indentation.
10883
b0911207
SM
108842017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10885
10886 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
10887 map field.
10888 (dsbt_current_sos): Allocate lm_info_dsbt with new.
10889 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
10890 and allocate with new.
10891 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
10892
6c401f72
SM
108932017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10894
10895 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
10896 <filename, member_name>: Change type to std::string.
10897 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
10898 (library_list_start_library): Allocate lm_info_aix with new.
10899 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
10900 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
10901 with copy constructor.
10902
d0e449a1
SM
109032017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10904
10905 * solist.h (struct lm_info): Remove.
10906 (struct lm_info_base): New class.
10907 (struct so_list) <lm_info>: Change type to lm_info_base *.
10908 * nto-tdep.c (struct lm_info): Remove.
10909 (lm_addr): Adjust.
10910 * solib-aix.c (struct lm_info): Rename to ...
10911 (struct lm_info_aix): ... this. Extend lm_info_base.
10912 (lm_info_p): Rename to ...
10913 (lm_info_aix_p): ... this, and adjust.
10914 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
10915 solib_aix_parse_libraries, library_list_start_library,
10916 solib_aix_free_library_list, solib_aix_parse_libraries,
10917 solib_aix_get_library_list,
10918 solib_aix_relocate_section_addresses, solib_aix_free_so,
10919 solib_aix_get_section_offsets,
10920 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
10921 Adjust.
10922 (struct solib_aix_inferior_data) <library_list>: Adjust.
10923 * solib-darwin.c (struct lm_info): Rename to ...
10924 (struct lm_info_darwin): ... this. Extend lm_info_base.
10925 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
10926 * solib-dsbt.c (struct lm_info): Rename to ...
10927 (struct lm_info_dsbt): ... this. Extend lm_info_base.
10928 (struct dsbt_info) <main_executable_lm_info): Adjust.
10929 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
10930 dsbt_relocate_section_addresses): Adjust.
10931 * solib-frv.c (struct lm_info): Rename to ...
10932 (struct lm_info_frv): ... this. Extend lm_info_base.
10933 (main_executable_lm_info): Adjust.
10934 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
10935 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
10936 find_canonical_descriptor_in_load_object,
10937 frv_fdpic_find_canonical_descriptor): Adjust.
10938 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
10939 to lm_info_svr4.
10940 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
10941 svr4_clear_so, svr4_copy_library_list,
10942 library_list_start_library, svr4_default_sos, svr4_read_so_list,
10943 svr4_current_sos, svr4_fetch_objfile_link_map,
10944 solist_update_incremental): Adjust.
10945 * solib-svr4.h (struct lm_info_svr4): Move here from
10946 solib-svr4.c.
10947 * solib-target.c (struct lm_info): Rename to ...
10948 (struct lm_info_target): ... this. Extend lm_info_base.
10949 (lm_info_p): Rename to ...
10950 (lm_info_target_p): ... this.
10951 (solib_target_parse_libraries, library_list_start_segment,
10952 library_list_start_section, library_list_start_library,
10953 library_list_end_library, solib_target_free_library_list,
10954 solib_target_current_sos, solib_target_free_so,
10955 solib_target_relocate_section_addresses): Adjust.
10956 * windows-nat.c (struct lm_info): Rename to ...
10957 (struct lm_info_windows): ... this. Extend lm_info_base.
10958 (windows_make_so, handle_load_dll, handle_unload_dll,
10959 windows_xfer_shared_libraries): Adjust.
10960
434a4023
SM
109612017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10962
10963 * solib-darwin.c (struct darwin_so_list): Remove.
10964 (darwin_current_sos): Allocate an so_list object instead of a
10965 darwin_so_list, separately allocate an lm_info object.
10966 (darwin_free_so): Free lm_info.
10967
428544e8
JB
109682017-04-28 John Baldwin <jhb@FreeBSD.org>
10969
10970 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
10971 with fprintf_filtered.
10972
4621115f
YQ
109732017-04-28 Yao Qi <yao.qi@linaro.org>
10974
10975 * regcache.c (regcache::regcache): New function.
10976 (regcache::~regcache): New function.
10977 (regcache_xmalloc_1): Remove.
10978 (regcache_xmalloc): Call new regcache.
10979 (regcache_xfree): Call delete regcache.
10980 (get_thread_arch_aspace_regcache): Call new regcache.
10981
339053c2
YQ
109822017-04-28 Yao Qi <yao.qi@linaro.org>
10983
10984 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
10985 lwp instead of ptid_get_lwp.
10986
7974a605
YQ
109872017-04-28 Yao Qi <yao.qi@linaro.org>
10988
10989 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
10990 lwp_info instead of getting from inferior_ptid.
10991
e15c3eb4
KS
109922017-04-27 Keith Seitz <keiths@redhat.com>
10993
10994 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
10995 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
10996 (CV_CONVERSION_BADNESS): Define.
10997 (rank_one_type): Remove overly restrictive rvalue reference
10998 rank checks.
10999 Add cv-qualifier checks and subranks for type equality.
11000 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
11001 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
11002 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
11003
72bc1d24
SM
110042017-04-27 Simon Marchi <simon.marchi@ericsson.com>
11005
11006 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
11007 count when creating the object.
11008
55bcecda
UW
110092017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
11010 Ulrich Weigand <uweigand@de.ibm.com>
11011
11012 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
11013 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
11014 is used in AIX.
11015 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
11016 (process_xcoff_symbol): Likewise.
11017 (scan_xcoff_symtab): Likewise.
11018
5c99fcf8
AH
110192017-04-26 Alan Hayward <alan.hayward@arm.com>
11020
11021 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
11022 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
11023 (ia64_access_reg): Use get_frame_register_unsigned.
11024 (ia64_access_rse_reg): Likewise.
11025 (ia64_libunwind_frame_prev_register): Likewise.
11026
b41c5a85
JW
110272017-04-26 Jiong Wang <jiong.wang@arm.com>
11028
11029 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
11030 * gdbarch.c: Regenerated.
11031 * gdbarch.h: Regenerated.
11032 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
11033 visibility external.
11034 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
11035 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
11036 (enum cfa_how_kind): Move to ...
11037 (struct dwarf2_frame_state_reg_info): Likewise.
11038 (struct dwarf2_frame_state): Likewise.
11039 * dwarf2-frame.h: ... here.
11040 (dwarf2_frame_state_alloc_regs): New declaration.
11041 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
11042 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
11043
c185f580
AH
110442017-04-26 Alan Hayward <alan.hayward@arm.com>
11045
11046 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
11047 regcache_raw_read_unsigned.
11048 (xtensa_pseudo_register_write): Likewise.
11049
19c45594
AH
110502017-04-26 Alan Hayward <alan.hayward@arm.com>
11051
11052 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
11053 (nds32_pseudo_register_write): Likewise.
11054
4658f12e
YQ
110552017-04-25 Yao Qi <yao.qi@linaro.org>
11056
11057 * regcache.c (struct regcache) <readonly_p>: Change its type
11058 to bool.
11059 (regcache_xmalloc_1): Update parameter type and callers update.
11060
d581dda8
YQ
110612017-04-25 Yao Qi <yao.qi@linaro.org>
11062
11063 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
11064 set_gdbarch_wchar_bit.
11065 * arm-tdep.c (arm_gdbarch_init): Likewise.
11066
debed3db
PA
110672017-04-25 Pedro Alves <palves@redhat.com>
11068
11069 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
11070 (BothAreRelocatable, memcopy, memmove): Don't define.
11071 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
11072 macros.
11073
b0b92aeb
PA
110742017-04-25 Pedro Alves <palves@redhat.com>
11075
11076 * common/common-defs.h: Include "common/poison.h".
11077 * common/function-view.h: (Not, Or, Requires): Move to traits.h
11078 and adjust.
11079 * common/poison.h: New file.
11080 * common/traits.h: Include <type_traits>.
11081 (Not, Or, Requires): New, moved from common/function-view.h.
11082
16c4d54a
PA
110832017-04-25 Pedro Alves <palves@redhat.com>
11084
11085 * breakpoint.h (struct breakpoint): In-class initialize all
11086 fields. Make boolean fields "bool".
11087 * breakpoint.c (init_raw_breakpoint_without_location): Remove
11088 memset call and initializations no longer necessary.
11089
b5c36682
PA
110902017-04-25 Pedro Alves <palves@redhat.com>
11091
11092 * btrace.c (pt_btrace_insn_flags): Change parameter type to
11093 reference.
11094 (pt_btrace_insn): New function.
11095 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
11096
5625a286
PA
110972017-04-25 Pedro Alves <palves@redhat.com>
11098
11099 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
11100 "base" field and inherit from "bp_location" instead. Add
11101 non-default ctor.
11102 (allocate_location_exception): Use new non-default ctor.
11103 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
11104 (init_bp_location): Convert to ...
11105 (bp_location::bp_location): ... this new ctor, and remove memset
11106 call.
11107 (base_breakpoint_allocate_location): Use the new non-default ctor.
11108 * breakpoint.h (bp_location): Now a class. Declare default and
11109 non-default ctors. In-class initialize all members.
11110 (init_bp_location): Remove declaration.
11111
23bcc18f
PA
111122017-04-25 Pedro Alves <palves@redhat.com>
11113
11114 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
11115 assignment operator.
11116
e1ba3053
YQ
111172017-04-24 Yao Qi <yao.qi@linaro.org>
11118
11119 * doublest.c (convert_doublest_to_floatformat): Call
11120 floatformat_totalsize_bytes.
11121
10f489e5
TT
111222017-04-22 Tom Tromey <tom@tromey.com>
11123
11124 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
11125 ui_out_emit_list.
11126 * stack.c (print_frame): Use ui_out_emit_list.
11127 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
11128 ui_out_emit_list.
11129 * mi/mi-main.c (print_one_inferior)
11130 (mi_cmd_data_list_register_names)
11131 (mi_cmd_data_list_register_values, mi_cmd_list_features)
11132 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
11133 ui_out_emit_list.
11134 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
11135 (mi_output_solib_attribs): Use ui_out_emit_list,
11136 ui_out_emit_tuple.
11137 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
11138 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
11139 (mi_cmd_stack_list_args, list_args_or_locals): Use
11140 ui_out_emit_list.
11141 * disasm.c (do_assembly_only): Use ui_out_emit_list.
11142 * breakpoint.c (print_solib_event, output_thread_groups): Use
11143 ui_out_emit_list.
11144
0092b74d
TT
111452017-04-22 Tom Tromey <tom@tromey.com>
11146
11147 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
11148 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
11149 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
11150
a14a62dd
TT
111512017-04-22 Tom Tromey <tom@tromey.com>
11152
11153 * tracepoint.c (tvariables_info_1)
11154 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
11155
46b9c129
TT
111562017-04-22 Tom Tromey <tom@tromey.com>
11157
11158 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
11159 annotate_arg_emitter.
11160 * breakpoint.c (print_mention_watchpoint)
11161 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
11162 * annotate.h (struct annotate_arg_emitter): New.
11163
2e783024
TT
111642017-04-22 Tom Tromey <tom@tromey.com>
11165
11166 * record-btrace.c (record_btrace_insn_history)
11167 (record_btrace_insn_history_range, record_btrace_call_history)
11168 (record_btrace_call_history_range): Use ui_out_emit_tuple.
11169 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
11170 ui_out_emit_tuple.
11171 * stack.c (print_frame_info): Use ui_out_emit_tuple.
11172 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
11173 * skip.c (skip_info): Use ui_out_emit_tuple.
11174 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
11175 * progspace.c (print_program_space): Use ui_out_emit_tuple.
11176 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
11177 * osdata.c (info_osdata): Use ui_out_emit_tuple.
11178 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
11179 ui_out_emit_tuple.
11180 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
11181 (output_register, mi_cmd_data_read_memory)
11182 (mi_cmd_data_read_memory_bytes, mi_load_progress)
11183 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
11184 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
11185 Use ui_out_emit_tuple.
11186 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
11187 ui_out_emit_tuple.
11188 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11189 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
11190 * linux-thread-db.c (info_auto_load_libthread_db): Use
11191 ui_out_emit_tuple.
11192 * inferior.c (print_inferior): Use ui_out_emit_tuple.
11193 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
11194 * disasm.c (do_mixed_source_and_assembly_deprecated)
11195 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
11196 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
11197 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
11198 * breakpoint.c (print_one_breakpoint_location)
11199 (print_one_breakpoint): Use ui_out_emit_tuple.
11200 * auto-load.c (print_script, info_auto_load_cmd): Use
11201 ui_out_emit_tuple.
11202 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
11203
9be21bb4
SM
112042017-04-21 Simon Marchi <simon.marchi@ericsson.com>
11205
11206 * thread.c (print_thread_info_1): Remove dead code.
11207
0d4c07af
JK
112082017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11209
11210 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
11211 GDB_SELF_TEST.
11212 * arm-tdep.c (selftests::arm_record_test): Likewise.
11213
4daf993d
YQ
112142017-04-21 Yao Qi <yao.qi@linaro.org>
11215
11216 * regcache.c (regcache_restore): Remove argument 2. Replace
11217 argument 3 with regcache. Get register status from
11218 src->register_status and get register contents from
11219 register_buffer (src, regnum).
11220 (regcache_cpy): Update.
11221
a6c21d4a
PA
112222017-04-19 Pedro Alves <palves@redhat.com>
11223
11224 * gdbthread.h (thread): Add missing closing parenthesis in
11225 comment.
11226
3a3fd0fd
PA
112272017-04-19 Pedro Alves <palves@redhat.com>
11228
11229 * common/refcounted-object.h: New file.
11230 * gdbthread.h: Include "common/refcounted-object.h".
11231 (thread_info): Inherit from refcounted_object and add comments.
11232 (thread_info::incref, thread_info::decref)
11233 (thread_info::m_refcount): Delete.
11234 (thread_info::deletable): Use the refcounted_object::refcount()
11235 method.
11236 * inferior.c (current_inferior_): Add comment.
11237 (set_current_inferior): Increment/decrement refcounts.
11238 (prune_inferiors, remove_inferior_command): Skip inferiors marked
11239 not-deletable instead of comparing with the current inferior.
11240 (initialize_inferiors): Increment the initial inferior's refcount.
11241 * inferior.h (struct inferior): Forward declare.
11242 Include "common/refcounted-object.h".
11243 (current_inferior, set_current_inferior): Move declaration to
11244 before struct inferior's definition, and fix comment.
11245 (inferior): Inherit from refcounted_object. Add comments.
11246 * thread.c (switch_to_thread_no_regs): Reference the thread's
11247 inferior pointer directly instead of doing a ptid lookup.
11248 (switch_to_no_thread): New function.
11249 (switch_to_thread(thread_info *)): New function, factored out
11250 from ...
11251 (switch_to_thread(ptid_t)): ... this.
11252 (restore_current_thread): Delete.
11253 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
11254 fields, and add 'inf' field.
11255 (do_restore_current_thread_cleanup): Check whether old->inf is
11256 alive instead of looking up an inferior by ptid. Use
11257 switch_to_thread and switch_to_no_thread.
11258 (restore_current_thread_cleanup_dtor): Use old->inf directly
11259 instead of lookup up an inferior by id. Decref the inferior.
11260 Don't restore 'removable'.
11261 (make_cleanup_restore_current_thread): Same the inferior pointer
11262 in old, instead of the inferior number. Incref the inferior.
11263 Don't save/clear 'removable'.
11264
9bcb1f16
PA
112652017-04-19 Pedro Alves <palves@redhat.com>
11266
11267 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11268 unittests/scoped_restore-selftests.c.
11269 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
11270 * common/scoped_restore.h (scoped_restore_base): Make "class".
11271 (scoped_restore_base::release): New public method.
11272 (scoped_restore_base::scoped_restore_base): New protected ctor.
11273 (scoped_restore_base::m_saved_var): New protected field.
11274 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
11275 scoped_restore_base base class instead of m_saved_var directly.
11276 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
11277 (scoped_restore_tmpl::scoped_restore_tmpl(const
11278 scoped_restore_tmpl<T>&)): Likewise.
11279 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
11280 method.
11281 (scoped_restore_tmpl::saved_var): New method.
11282 (scoped_restore_tmpl::m_saved_var): Delete.
11283 * inferior.h (inferior::detaching): Now a bool.
11284 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
11285 cleanup.
11286 * unittests/scoped_restore-selftests.c: New file.
11287
26fcd539
PA
112882017-04-19 Pedro Alves <palves@redhat.com>
11289
11290 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
11291 Re-sort in alphabetic order.
11292
fdd243b0
PA
112932017-04-18 Pedro Alves <palves@redhat.com>
11294
11295 * xml-support.c (obstack_xml_printf): Delete.
11296 * xml-support.h (obstack_xml_printf): Delete.
11297
4895cde2
PA
112982017-04-18 Pedro Alves <palves@redhat.com>
11299
11300 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
11301 vdebug, verror, body_text, start_element, end_element, name,
11302 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
11303 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
11304 is_xinclude>: Make private and add m_ prefix.
11305 (gdb_xml_parser::body_text): New method, based on ...
11306 (gdb_xml_body_text): ... this. Adjust.
11307 (gdb_xml_parser::vdebug): New method, based on ...
11308 (gdb_xml_debug): ... this. Adjust.
11309 (gdb_xml_parser::verror): New method, based on ...
11310 (gdb_xml_error): ... this. Adjust.
11311 (gdb_xml_parser::start_element): New method, based on ...
11312 (gdb_xml_start_element): ... this. Adjust.
11313 (gdb_xml_start_element_wrapper): Defer to
11314 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
11315 (gdb_xml_parser::end_element): New method, based on ...
11316 (gdb_xml_end_element_wrapper): ... this. Adjust.
11317 (gdb_xml_parser::~gdb_xml_parser): Adjust.
11318 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
11319 (gdb_xml_parser::use_dtd): New method, based on ...
11320 (gdb_xml_use_dtd): ... this. Adjust.
11321 (gdb_xml_parser::parse): New method, based on ...
11322 (gdb_xml_parse): ... this. Adjust.
11323 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
11324 (xinclude_start_include): Adjust to call the parser's name method.
11325 (xml_xinclude_default, xml_xinclude_start_doctype)
11326 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
11327 method.
11328 (xml_process_xincludes): Adjust to call parser methods.
11329 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
11330 declarations.
11331
bd8a901f
PA
113322017-04-18 Pedro Alves <palves@redhat.com>
11333
11334 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
11335 gdb::optional<std::string>.
11336 * xml-support.c: Include <string>.
11337 (scope_level::scope_level(scope_level &&))
11338 (scope_level::~scope_level): Delete.
11339 (scope_level::body): Now a std::string.
11340 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
11341 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
11342 parameter.
11343 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
11344 (xinclude_parsing_data::output): Now a std::string reference.
11345 (xinclude_start_include): Adjust.
11346 (xml_xinclude_default): Adjust.
11347 (xml_process_xincludes): Add 'output' parameter, and return bool.
11348 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
11349 and return bool.
11350 * xml-tdesc.c: Include <unordered_map> and <string>.
11351 (tdesc_xml_cache): Delete.
11352 (tdesc_xml_cache_s): Delete.
11353 (xml_cache): Now an std::unordered_map.
11354 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
11355 (target_fetch_description_xml): Change return type to
11356 gdb::optional<std::string>, and adjust.
11357 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
11358 (target_fetch_description_xml): Change return type to
11359 gdb::optional<std::string>.
11360
d35d1958
PA
113612017-04-18 Pedro Alves <palves@redhat.com>
11362
11363 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11364 unittests/optional-selftests.c.
11365 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
11366 * unittests/optional-selftests.c: New file.
11367 * unittests/optional/assignment/1.cc: New file.
11368 * unittests/optional/assignment/2.cc: New file.
11369 * unittests/optional/assignment/3.cc: New file.
11370 * unittests/optional/assignment/4.cc: New file.
11371 * unittests/optional/assignment/5.cc: New file.
11372 * unittests/optional/assignment/6.cc: New file.
11373 * unittests/optional/assignment/7.cc: New file.
11374 * unittests/optional/cons/copy.cc: New file.
11375 * unittests/optional/cons/default.cc: New file.
11376 * unittests/optional/cons/move.cc: New file.
11377 * unittests/optional/cons/value.cc: New file.
11378 * unittests/optional/in_place.cc: New file.
11379 * unittests/optional/observers/1.cc: New file.
11380 * unittests/optional/observers/2.cc: New file.
11381
22796e97
PA
113822017-04-18 Pedro Alves <palves@redhat.com>
11383
11384 * common/gdb_optional.h: Include common/traits.h.
11385 (in_place_t): New type.
11386 (in_place): New constexpr variable.
11387 (optional::optional): Remove member initialization of
11388 m_instantiated.
11389 (optional::optional(in_place_t...)): New constructor.
11390 (optional::~optional): Use reset.
11391 (optional::optional(const optional&)): New.
11392 (optional::optional(const optional&&)): New.
11393 (optional::optional(T &)): New.
11394 (optional::optional(T &&)): New.
11395 (operator::operator=(const optional &)): New.
11396 (operator::operator=(optional &&)): New.
11397 (operator::operator= (const T &))
11398 (operator::operator= (T &&))
11399 (operator::emplace (Args &&... args)): Return a T&. Use reset.
11400 (operator::reset): New.
11401 (operator::m_instantiated):: Add in-class initializer.
11402 * common/traits.h: Include <type_traits>.
11403 (struct And): New types.
11404
a7fc9b61
PA
114052017-04-18 Pedro Alves <palves@redhat.com>
11406
11407 * xml-support.c: Include <vector>.
11408 (scope_level::scope_level(const gdb_xml_element *))
11409 (scope_level::scope_level(scope_level&&)): New.
11410 (scope_level::~scope_level): New.
11411 (scope_level_s): Delete.
11412 (gdb_xml_parser::scopes): Now a std::vector.
11413 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
11414 Use std::vector.
11415 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
11416 scope cleanup code.
11417 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
11418 of the scopes member. Use std::vector::emplace_back.
11419
010151c9
PA
114202017-04-18 Pedro Alves <palves@redhat.com>
11421
11422 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
11423 a bool.
11424 (gdb_xml_end_element): Change type of first parameter.
11425 (gdb_xml_cleanup): Rename to ...
11426 (gdb_xml_parser::~gdb_xml_parser): ... this.
11427 (gdb_xml_create_parser_and_cleanup): Delete with ...
11428 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
11429 to this new ctor.
11430 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
11431 using gdb_xml_create_parser_and_cleanup.
11432 (xinclude_parsing_data): Add ctor/dtor.
11433 (xml_xinclude_cleanup): Delete.
11434 (xml_process_xincludes): Create a local xinclude_parsing_data
11435 instead of heap-allocating one. Create a local gdb_xml_parser
11436 instead of heap-allocating one with
11437 gdb_xml_create_parser_and_cleanup.
11438
d56060f0
JB
114392017-04-18 John Baldwin <jhb@FreeBSD.org>
11440
11441 PR threads/20743
11442 * fbsd-nat.c (resume_one_thread_cb): Remove.
11443 (resume_all_threads_cb): Remove.
11444 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
11445 iterate_over_threads.
11446
305d16a9
JB
114472017-04-17 Joel Brobecker <brobecker@adacore.com>
11448
11449 * NEWS: Create a new section for the next release branch.
11450 Rename the section of the current branch, now that it has
11451 been cut.
11452
8bb57231
JB
114532017-04-17 Joel Brobecker <brobecker@adacore.com>
11454
11455 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
11456 * version.in: Bump version to 8.0.50.DATE-git.
11457
096c92dd
SDJ
114582017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
11459
11460 PR gdb/21385
11461 * windows-nat.c (windows_create_inferior): Declare 'allargs'
11462 independently of the host, and fix build breakage on Cygwin.
11463
0550c955
PA
114642017-04-13 Pedro Alves <palves@redhat.com>
11465
11466 * inferior.c (free_inferior): Convert to ...
11467 (inferior::~inferior): ... this dtor.
11468 (inferior::inferior): New ctor, factored out from ...
11469 (add_inferior_silent): ... here. Allocate the inferior with a new
11470 expression.
11471 (delete_inferior): Call delete instead of free_inferior.
11472 * inferior.h (gdb_environ, continuation): Forward declare.
11473 (inferior): Now a class. Add in-class initialization to all
11474 members. Make boolean fields bool, except 'detaching'.
11475 (inferior::inferior): New explicit ctor.
11476 (inferior::~inferior): New.
11477
e3d60dfc
PA
114782017-04-13 Pedro Alves <palves@redhat.com>
11479
11480 * inferior.c (init_inferior_list): Delete.
11481 * inferior.h (init_inferior_list): Delete.
11482
5fd69d0a
PA
114832017-04-13 Pedro Alves <palves@redhat.com>
11484
11485 PR threads/13217
11486 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
11487 (top level): Call it twice, with different thread sets.
11488
c6609450
PA
114892017-04-13 Pedro Alves <palves@redhat.com>
11490
11491 * thread.c: Include <algorithm>.
11492 (thread_array_cleanup): Delete.
11493 (scoped_inc_dec_ref): New class.
11494 (live_threads_count): New function.
11495 (set_thread_refcount): Delete.
11496 (tp_array_compar_ascending): Now a bool.
11497 (tp_array_compar): Convert to a std::sort comparison function.
11498 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
11499 and live_threads_count.
11500
2a00d7ce
PA
115012017-04-13 Pedro Alves <palves@redhat.com>
11502
11503 * infrun.c (follow_fork_inferior): Also switch the current
11504 inferior.
11505
441d7c93
PA
115062017-04-13 Pedro Alves <palves@redhat.com>
11507
11508 * breakpoint.c (watch_command_1): Save watchpoint-frame info
11509 before calling create_internal_breakpoint.
11510
808480f6
PA
115112017-04-13 Pedro Alves <palves@redhat.com>
11512
11513 * fork-child.c (execv_argv): New class.
11514 (breakup_args): Refactored as ...
11515 (execv_argv::init_for_no_shell): .. this method of execv_argv.
11516 Copy arguments to storage and replace separators with NULL
11517 terminators in place.
11518 (escape_bang_in_quoted_argument): Adjust to return bool.
11519 (execv_argv::execv_argv): New ctor.
11520 (execv_argv::init_for_shell): New method, factored out from
11521 fork_inferior. Don't strdup strings into the vector.
11522 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
11523 Remove free_vector_argv call.
11524
ad3d022a
YQ
115252017-04-13 Yao Qi <yao.qi@linaro.org>
11526
11527 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
11528 tdep->rx_psw_type.
11529
e6ddc3bf
YQ
115302017-04-13 Yao Qi <yao.qi@linaro.org>
11531
11532 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
11533 * rx-tdep.c (rx_gdbarch_init): Likewise.
11534
bfb8cf90
PA
115352017-04-13 Pedro Alves <palves@redhat.com>
11536
11537 * breakpoint.h (struct breakpoint): Reindent.
11538
f5336ca5
PA
115392017-04-13 Pedro Alves <palves@redhat.com>
11540
11541 * breakpoint.c (bp_location): Rename to ...
11542 (bp_locations): ... this. All references updated.
11543 (bp_location_count): Rename to ...
11544 (bp_locations_count): ... this. All references updated.
11545 (bp_location_placed_address_before_address_max): Rename to ...
11546 (bp_locations_placed_address_before_address_max): ... this. All
11547 references updated.
11548 (bp_location_shadow_len_after_address_max): Rename to ...
11549 (bp_locations_shadow_len_after_address_max): ... this. All
11550 references updated.
11551 (bp_location_compare_addrs): Rename to ...
11552 (bp_locations_compare_addrs): ... this. All references updated.
11553 (bp_location_compare):Rename to ...
11554 (bp_locations_compare): ... this. All references updated.
11555 (bp_location_target_extensions_update): Rename to ...
11556 (bp_locations_target_extensions_update): ... this. All references
11557 updated.
11558
be628ab8
SDJ
115592017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11560
11561 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
11562 * common/common.m4: Check headers 'termios.h', 'termio.h' and
11563 'sgtty.h'.
11564 * common/gdb_termios.h: New file, with parts of "terminal.h".
11565 * inflow.c: Include "gdb_termios.h".
11566 * ser-unix.c: Include "gdb_termios.h".
11567 * terminal.h: Move terminal-related defines to
11568 "common/gdb_termios.h".
11569
8e9e35b1
TT
115702017-04-12 Tom Tromey <tom@tromey.com>
11571
11572 * probe.c (parse_probes): Update.
11573 * location.h (delete_event_location): Don't declare.
11574 (event_location_deleter::operator()): Update.
11575 * location.c (event_location_deleter::operator()): Rename from
11576 delete_event_location.
11577 * linespec.h (linespec_result) <location>: Change type to
11578 event_location_up.
11579 * linespec.c (canonicalize_linespec, event_location_to_sals)
11580 (decode_objc): Update.
11581 (linespec_result): Don't call delete_event_location.
11582 * breakpoint.c (create_breakpoints_sal)
11583 (bkpt_probe_create_sals_from_location)
11584 (strace_marker_create_sals_from_location): Update.
11585
16e802b9
TT
115862017-04-12 Tom Tromey <tom@tromey.com>
11587
11588 * linespec.h (struct linespec_result): Add constructor and
11589 destructor.
11590 (init_linespec_result, destroy_linespec_result)
11591 (make_cleanup_destroy_linespec_result): Don't declare.
11592 * linespec.c (init_linespec_result): Remove.
11593 (linespec_result::~linespec_result): Rename from
11594 destroy_linespec_result. Update.
11595 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
11596 Remove.
11597 * breakpoint.c (create_breakpoint, break_range_command)
11598 (decode_location_default): Update.
11599 * ax-gdb.c (agent_command_1): Update.
11600
d28cd78a
TT
116012017-04-12 Tom Tromey <tom@tromey.com>
11602
11603 * remote.c (remote_download_tracepoint): Update.
11604 * python/py-breakpoint.c (bppy_get_location): Update.
11605 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
11606 (gdbscm_breakpoint_location): Update.
11607 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
11608 * breakpoint.h (struct breakpoint) <location, location_range_end>:
11609 Change type to event_location_up.
11610 * breakpoint.c (create_overlay_event_breakpoint)
11611 (create_longjmp_master_breakpoint)
11612 (create_std_terminate_master_breakpoint)
11613 (create_exception_master_breakpoint)
11614 (breakpoint_event_location_empty_p, print_breakpoint_location)
11615 (print_one_breakpoint_location, create_thread_event_breakpoint)
11616 (init_breakpoint_sal, create_breakpoint)
11617 (print_recreate_ranged_breakpoint, break_range_command)
11618 (init_ada_exception_breakpoint, say_where): Update.
11619 (base_breakpoint_dtor): Don't call delete_event_location.
11620 (bkpt_print_recreate, tracepoint_print_recreate)
11621 (dprintf_print_recreate, update_static_tracepoint)
11622 (breakpoint_re_set_default): Update.
11623
711799d5
TT
116242017-04-12 Tom Tromey <tom@tromey.com>
11625
11626 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
11627 type of "to_do". Update.
11628 (compute_stack_depth): Use std::vector.
11629
52d214d3
TT
116302017-04-12 Tom Tromey <tom@tromey.com>
11631
11632 * printcmd.c (find_instruction_backward): Use std::vector.
11633
4c404b8b
TT
116342017-04-12 Tom Tromey <tom@tromey.com>
11635
11636 * symfile.c (objfilep): Remove typedef.
11637 (reread_symbols): Use a std::vector.
11638
156d9eab
TT
116392017-04-12 Tom Tromey <tom@tromey.com>
11640
11641 * mi/mi-main.c (exec_direction_forward): Remove.
11642 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
11643 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
11644 scoped_restore.
11645 * guile/guile.c (guile_repl_command, guile_command)
11646 (gdbscm_execute_gdb_command): Use scoped_restore.
11647 * go-exp.y (go_parse): Use scoped_restore.
11648 * d-exp.y (d_parse): Use scoped_restore.
11649 * cli/cli-decode.c (cmd_func): Use scoped_restore.
11650 * c-exp.y (c_parse): Use scoped_restore.
11651
4d89769a
TT
116522017-04-12 Tom Tromey <tom@tromey.com>
11653
11654 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
11655 (mi_parse): Update return type.
11656 (mi_parse_free): Remove.
11657 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
11658 (mi_parse::~mi_parse): Rename from mi_parse_free.
11659 (mi_parse_cleanup): Remove.
11660 (mi_parse): Return a unique_ptr. Use new.
11661 * mi/mi-main.c (mi_execute_command): Update.
11662
4b217cc7
TT
116632017-04-12 Tom Tromey <tom@tromey.com>
11664
11665 * location.c (explicit_location_lex_one): Return a
11666 unique_xmalloc_ptr.
11667 (string_to_explicit_location): Update. Remove cleanups.
11668
59d3651b
TT
116692017-04-12 Tom Tromey <tom@tromey.com>
11670
11671 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
11672 (compare_value_and_voffset): Change type. Update.
11673 (compute_vtable_size): Change type of "offset_vec".
11674 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
11675 (gnuv3_get_typeid): Remove extraneous declaration.
11676
b24b0d6c
TT
116772017-04-12 Tom Tromey <tom@tromey.com>
11678
11679 * charset.h (wchar_iterator): Fix comment.
11680
80a3b8c5
TT
116812017-04-12 Tom Tromey <tom@tromey.com>
11682
11683 * charset.c (iconv_wrapper): New class.
11684 (cleanup_iconv): Remove.
11685 (convert_between_encodings): Use it.
11686
c83dd867
TT
116872017-04-12 Tom Tromey <tom@tromey.com>
11688
11689 * symfile.h (increment_reading_symtab): Update type.
11690 * symfile.c (decrement_reading_symtab): Remove.
11691 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
11692 * psymtab.c (psymtab_to_symtab): Update.
11693 * dwarf2read.c (dw2_instantiate_symtab): Update.
11694
0e8621a0
TT
116952017-04-12 Tom Tromey <tom@tromey.com>
11696
11697 * jit.c (struct jit_reader): Declare separately. Add constructor
11698 and destructor. Change type of "handle".
11699 (loaded_jit_reader): Define separately.
11700 (jit_reader_load): Update. New "new".
11701 (jit_reader_unload_command): Use "delete".
11702 * gdb-dlfcn.h (struct dlclose_deleter): New.
11703 (gdb_dlhandle_up): New typedef.
11704 (gdb_dlopen, gdb_dlsym): Update types.
11705 (gdb_dlclose): Remove.
11706 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
11707 (gdb_dlsym): Change type of "handle".
11708 (make_cleanup_dlclose): Remove.
11709 (dlclose_deleter::operator()): Rename from gdb_dlclose.
11710 * compile/compile-c-support.c (load_libcc): Update.
11711
67d89901
TT
117122017-04-12 Tom Tromey <tom@tromey.com>
11713
11714 * symtab.h (find_pcs_for_symtab_line): Change return type.
11715 * symtab.c (find_pcs_for_symtab_line): Change return type.
11716 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
11717 type of "vec". Update.
11718 (ltpy_get_pcs_for_line): Update.
11719 * linespec.c (decode_digits_ordinary): Update.
11720
93921405
TT
117212017-04-12 Tom Tromey <tom@tromey.com>
11722
11723 * tracepoint.c (actions_command): Update.
11724 * python/python.c (python_command, python_interactive_command):
11725 Update.
11726 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
11727 * guile/guile.c (guile_command): Update.
11728 * defs.h (read_command_lines, read_command_lines_1): Return
11729 command_line_up.
11730 (command_lines_deleter): New struct.
11731 (command_line_up): New typedef.
11732 * compile/compile.c (compile_code_command)
11733 (compile_print_command): Update.
11734 * cli/cli-script.h (get_command_line, copy_command_lines): Return
11735 command_line_up.
11736 (make_cleanup_free_command_lines): Remove.
11737 * cli/cli-script.c (get_command_line, read_command_lines_1)
11738 (copy_command_lines): Return command_line_up.
11739 (while_command, if_command, read_command_lines, define_command)
11740 (document_command): Update.
11741 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
11742 Remove.
11743 * breakpoint.h (breakpoint_set_commands): Change type of
11744 "commands".
11745 * breakpoint.c (breakpoint_set_commands): Change type of
11746 "commands". Update.
11747 (do_map_commands_command, update_dprintf_command_list)
11748 (create_tracepoint_from_upload): Update.
11749
ffc2605c
TT
117502017-04-12 Tom Tromey <tom@tromey.com>
11751
11752 * tracepoint.c (scope_info): Update.
11753 * spu-tdep.c (spu_catch_start): Update.
11754 * python/python.c (gdbpy_decode_line): Update.
11755 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
11756 * python/py-breakpoint.c (bppy_init): Update.
11757 * probe.c (parse_probes): Update.
11758 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
11759 * location.h (event_location_deleter): New struct.
11760 (event_location_up): New typedef.
11761 (new_linespec_location, new_address_location, new_probe_location)
11762 (new_explicit_location, copy_event_location)
11763 (string_to_event_location, string_to_event_location_basic)
11764 (string_to_explicit_location): Update return type.
11765 (make_cleanup_delete_event_location): Remove.
11766 * location.c (new_linespec_location, new_address_location)
11767 (new_probe_location, new_explicit_location, copy_event_location):
11768 Return event_location_up.
11769 (delete_event_location_cleanup)
11770 (make_cleanup_delete_event_location): Remove.
11771 (string_to_explicit_location, string_to_event_location_basic)
11772 (string_to_event_location): Return event_location_up.
11773 * linespec.c (canonicalize_linespec, event_location_to_sals)
11774 (decode_line_with_current_source)
11775 (decode_line_with_last_displayed, decode_objc): Update.
11776 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11777 * completer.c (location_completer): Update.
11778 * cli/cli-cmds.c (edit_command, list_command): Update.
11779 * breakpoint.c (create_overlay_event_breakpoint)
11780 (create_longjmp_master_breakpoint)
11781 (create_std_terminate_master_breakpoint)
11782 (create_exception_master_breakpoint)
11783 (create_thread_event_breakpoint): Update.
11784 (init_breakpoint_sal): Update. Remove some dead code.
11785 (create_breakpoint_sal): Change type of "location". Update.
11786 (create_breakpoints_sal, create_breakpoint, break_command_1)
11787 (dprintf_command, break_range_command, until_break_command)
11788 (init_ada_exception_breakpoint)
11789 (strace_marker_create_sals_from_location)
11790 (update_static_tracepoint, trace_command, ftrace_command)
11791 (strace_command, create_tracepoint_from_upload): Update.
11792 * break-catch-throw.c (re_set_exception_catchpoint): Update.
11793 * ax-gdb.c (agent_command_1): Update.
11794
8f10c932
PA
117952017-04-12 Pedro Alves <palves@redhat.com>
11796
11797 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
11798 * configure.tgt: Handle i[34567]86-*-go32* and
11799 i[34567]86-*-msdosdjgpp*.
11800 * i386-tdep.c (i386_svr4_reg_to_regnum):
11801 Make extern.
11802 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
11803 i386-go32-tdep.c.
11804 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
11805 * i386-go32-tdep.c: New file.
11806 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
11807 declarations.
11808
0a31ccfb
SM
118092017-04-12 Simon Marchi <simon.marchi@ericsson.com>
11810
11811 * aix-thread.c (pd_status2str): Change return type to const char *.
11812
e9bb3fbb
PA
118132017-04-12 Pedro Alves <palves@redhat.com>
11814
11815 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
11816 calls to set_gdbarch_gnu_triplet_regexp.
11817
53375380
PA
118182017-04-12 Pedro Alves <palves@redhat.com>
11819
11820 PR gdb/21323
11821 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
11822 New enum value.
11823 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
11824 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
11825 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
11826 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
11827 * gdbarch.h, gdbarch.c: Regenerate.
11828 * aarch64-tdep.c (aarch64_gdbarch_init): Override
11829 gdbarch_wchar_bit and gdbarch_wchar_signed.
11830 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
11831 * arm-tdep.c (arm_gdbarch_init): Likewise.
11832 * avr-tdep.c (avr_gdbarch_init): Likewise.
11833 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11834 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
11835 * i386-tdep.c (i386_go32_init_abi): Likewise.
11836 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11837 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11838 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11839 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11840 * sh-tdep.c (sh_gdbarch_init): Likewise.
11841 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11842 * sparc64-tdep.c (sparc64_init_abi): Likewise.
11843 * windows-tdep.c (windows_init_abi): Likewise.
11844 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11845
53e710ac
PA
118462017-04-12 Pedro Alves <palves@redhat.com>
11847
11848 PR c++/21323
11849 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
11850 cplus_primitive_type_char32_t>: New enum values.
11851 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
11852 and cplus_primitive_type_char32_t.
11853 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
11854 32, use the archtecture's built-in type for char16_t and char32_t,
11855 respectively. Otherwise, fallback to init_integer_type as before,
11856 but make the type unsigned, and issue a complaint.
11857 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
11858
ab0538b8
AH
118592017-04-12 Alan Hayward <alan.hayward@arm.com>
11860
5e0e0422 11861 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
11862 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
11863
5430098f
SDJ
118642017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11865
11866 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
11867 'const char *'.
11868
7c5ded6a
SDJ
118692017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11870
11871 * common/common-utils.c (free_vector_argv): New function.
11872 * common/common-utils.h: Include <vector>.
11873 (free_vector_argv): New prototype.
11874 * darwin-nat.c (darwin_create_inferior): Rewrite function
11875 prototype in order to constify "exec_file" and accept a
11876 "std::string" for "allargs".
11877 * fork-child.c: Include <vector>.
11878 (breakup_args): Rewrite function, using C++.
11879 (fork_inferior): Rewrite function header, constify "exec_file_arg"
11880 and accept "std::string" for "allargs". Update the code to
11881 calculate "argv" based on "allargs". Update calls to "exec_fun"
11882 and "execvp".
11883 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
11884 order to constify "exec_file" and accept a "std::string" for
11885 "allargs".
11886 * go32-nat.c (go32_create_inferior): Likewise.
11887 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
11888 * infcmd.c (run_command_1): Constify "exec_file". Use
11889 "std::string" for inferior arguments.
11890 * inferior.h (fork_inferior): Update prototype.
11891 * linux-nat.c (linux_nat_create_inferior): Rewrite function
11892 prototype in order to constify "exec_file" and accept a
11893 "std::string" for "allargs".
11894 * nto-procfs.c (procfs_create_inferior): Likewise.
11895 * procfs.c (procfs_create_inferior): Likewise.
11896 * remote-sim.c (gdbsim_create_inferior): Likewise.
11897 * remote.c (extended_remote_run): Update code to accept
11898 "std::string" as argument.
11899 (extended_remote_create_inferior): Rewrite function prototype in
11900 order to constify "exec_file" and accept a "std::string" for
11901 "allargs".
11902 * rs6000-nat.c (super_create_inferior): Likewise.
11903 (rs6000_create_inferior): Likewise.
11904 * target.h (struct target_ops) <to_create_inferior>: Likewise.
11905 * windows-nat.c (windows_create_inferior): Likewise.
11906
ae0eee42
PA
119072017-04-11 Pedro Alves <palves@redhat.com>
11908
11909 * thread.c: Fix whitespace throughout.
11910
a6acac06
PR
119112017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
11912
11913 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
11914
64403bd1
AH
119152017-04-11 Alan Hayward <alan.hayward@arm.com>
11916
11917 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
11918
a5bef50f
SDJ
119192017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
11920
11921 PR gdb/21364
11922 * osdata.c (info_osdata): Check if 'type' is an empty string
11923 instead of NULL.
11924
9295a5a9
PA
119252017-04-10 Pedro Alves <palves@redhat.com>
11926
11927 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
11928 (ptid_to_global_thread_id, in_thread_list)
11929 (do_captured_list_thread_ids, set_resumed, set_running)
11930 (set_executing, set_stop_requested, finish_thread_state)
11931 (validate_registers_access, can_access_registers_ptid)
11932 (print_thread_info_1, switch_to_thread)
11933 (do_restore_current_thread_cleanup)
11934 (make_cleanup_restore_current_thread, thread_command)
11935 (thread_name_command): Use operator== instead of ptid_equal.
11936
996812e3
PA
119372017-04-10 Pedro Alves <palves@redhat.com>
11938
11939 * thread.c (struct current_thread_cleanup) <next>: Delete field.
11940 (current_thread_cleanup_chain): Delete.
11941 (restore_current_thread_cleanup_dtor)
11942 (make_cleanup_restore_current_thread): Remove references to
11943 current_thread_cleanup_chain.
11944
845b344f
AH
119452017-04-10 Alan Hayward <alan.hayward@arm.com>
11946
11947 * msp430-tdep.c (msp430_pseudo_register_read): Never return
11948 REG_UNKNOWN.
11949
803bdfe4
YQ
119502017-04-10 Yao Qi <yao.qi@linaro.org>
11951
11952 PR gdb/19942
11953 * gdbthread.h (thread_info::deletable): New method.
11954 (thread_info::incref): New method.
11955 (thread_info::decref): New method.
11956 (thread_info::refcount): Move it to private.
11957 * infrun.c (save_stop_context): Call inc_refcount.
11958 (release_stop_context_cleanup): Likewise.
11959 * thread.c (set_thread_exited): New function.
11960 (init_thread_list): Delete "tp" only it is deletable, otherwise
11961 call set_thread_exited.
11962 (delete_thread_1): Call set_thread_exited.
11963 (current_thread_cleanup) <inferior_pid>: Remove.
11964 <thread>: New field.
11965 (restore_current_thread_ptid_changed): Removed.
11966 (do_restore_current_thread_cleanup): Adjust.
11967 (restore_current_thread_cleanup_dtor): Don't call
11968 find_thread_ptid.
11969 (set_thread_refcount): Use dec_refcount.
11970 (make_cleanup_restore_current_thread): Adjust.
11971 (thread_apply_all_command): Call inc_refcount.
11972 (_initialize_thread): Don't call
11973 observer_attach_thread_ptid_changed.
11974
8c25b497
YQ
119752017-04-10 Yao Qi <yao.qi@linaro.org>
11976
11977 * thread.c (delete_thread_1): Hoist code on marking thread as
11978 exited.
11979
8473b447
SM
119802017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11981
11982 * windows-nat.c (windows_detach): Initialize ptid with
11983 minus_one_ptid.
11984
6670ec13
SM
119852017-04-07 Simon Marchi <simon.marchi@ericsson.com>
11986
11987 * unittests/ptid-selftests.c: Fix erroneous assert messages.
11988
ba2f91bb
AH
119892017-04-07 Alan Hayward <alan.hayward@arm.com>
11990
11991 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
11992 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
11993 (bfin_pseudo_register_write): Likewise
11994
436252de
SM
119952017-04-06 Simon Marchi <simon.marchi@ericsson.com>
11996
11997 * common/ptid.h (struct ptid): Change to...
11998 (class ptid_t): ... this.
11999 <ptid_t>: New constructors.
12000 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
12001 matches>: New methods.
12002 <make_null, make_minus_one>: New static methods.
12003 <pid>: Rename to...
12004 <m_pid>: ...this.
12005 <lwp>: Rename to...
12006 <m_lwp>: ...this.
12007 <tid>: Rename to...
12008 <m_tid>: ...this.
12009 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
12010 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
12011 as references, move comment to class ptid_t.
12012 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
12013 ptid_t static methods.
12014 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
12015 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
12016 Take ptid arguments as references, implement using ptid_t methods.
12017 * unittests/ptid-selftests.c: New file.
12018 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12019 unittests/ptid-selftests.c.
12020 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
12021
0dedf377
TP
120222017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12023
12024 * python/python.c (python_run_simple_file): Cast mode literal to
12025 non-const char pointer as expected by PyFile_FromString.
12026
4e9868d4
SM
120272017-04-05 Simon Marchi <simon.marchi@ericsson.com>
12028
12029 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
12030 minus_one_ptid and null_ptid.
12031
9bf2a700
PA
120322017-04-05 Pedro Alves <palves@redhat.com>
12033
12034 * warning.m4 (build_warnings): Remove -Wno-write-strings.
12035 * configure: Regenerate.
12036
a121b7c1
PA
120372017-04-05 Pedro Alves <palves@redhat.com>
12038
12039 * ada-exp.y (yyerror): Constify.
12040 * ada-lang.c (bound_name, get_selections)
12041 (ada_variant_discrim_type)
12042 (ada_variant_discrim_name, ada_value_struct_elt)
12043 (ada_lookup_struct_elt_type, is_unchecked_variant)
12044 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
12045 (catch_ada_exception_command_split)
12046 (catch_ada_assert_command_split, catch_assert_command)
12047 (ada_op_name): Constify.
12048 * ada-lang.h (ada_yyerror, get_selections)
12049 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
12050 * arc-tdep.c (arc_print_frame_cache): Constify.
12051 * arm-tdep.c (arm_skip_stub): Constify.
12052 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
12053 (gen_aggregate_elt_ref): Constify.
12054 * bcache.c (print_bcache_statistics): Constify.
12055 * bcache.h (print_bcache_statistics): Constify.
12056 * break-catch-throw.c (catch_exception_command_1):
12057 * breakpoint.c (struct ep_type_description::description):
12058 Constify.
12059 (add_solib_catchpoint): Constify.
12060 (catch_fork_command_1): Add cast.
12061 (add_catch_command): Constify.
12062 * breakpoint.h (add_catch_command, add_solib_catchpoint):
12063 Constify.
12064 * bsd-uthread.c (bsd_uthread_state): Constify.
12065 * buildsym.c (patch_subfile_names): Constify.
12066 * buildsym.h (next_symbol_text_func, patch_subfile_names):
12067 Constify.
12068 * c-exp.y (yyerror): Constify.
12069 (token::oper): Constify.
12070 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
12071 * c-varobj.c (cplus_describe_child): Constify.
12072 * charset.c (find_charset_names): Add cast.
12073 (find_charset_names): Constify array and add const_cast.
12074 * cli/cli-cmds.c (complete_command, cd_command): Constify.
12075 (edit_command): Constify.
12076 * cli/cli-decode.c (lookup_cmd): Constify.
12077 * cli/cli-dump.c (dump_memory_command, dump_value_command):
12078 Constify.
12079 (struct dump_context): Constify.
12080 (add_dump_command, restore_command): Constify.
12081 * cli/cli-script.c (get_command_line): Constify.
12082 * cli/cli-script.h (get_command_line): Constify.
12083 * cli/cli-utils.c (check_for_argument): Constify.
12084 * cli/cli-utils.h (check_for_argument): Constify.
12085 * coff-pe-read.c (struct read_pe_section_data): Constify.
12086 * command.h (lookup_cmd): Constify.
12087 * common/print-utils.c (decimal2str): Constify.
12088 * completer.c (gdb_print_filename): Constify.
12089 * corefile.c (set_gnutarget): Constify.
12090 * cp-name-parser.y (yyerror): Constify.
12091 * cp-valprint.c (cp_print_class_member): Constify.
12092 * cris-tdep.c (cris_register_name, crisv32_register_name):
12093 Constify.
12094 * d-exp.y (yyerror): Constify.
12095 (struct token::oper): Constify.
12096 * d-lang.h (d_yyerror): Constify.
12097 * dbxread.c (struct header_file_location::name): Constify.
12098 (add_old_header_file, add_new_header_file, last_function_name)
12099 (dbx_next_symbol_text, add_bincl_to_list)
12100 (find_corresponding_bincl_psymtab, set_namestring)
12101 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
12102 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
12103 * defs.h (command_line_input, print_address_symbolic)
12104 (deprecated_readline_begin_hook): Constify.
12105 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
12106 Constify.
12107 * event-top.c (handle_line_of_input): Constify and add cast.
12108 * exceptions.c (catch_errors): Constify.
12109 * exceptions.h (catch_errors): Constify.
12110 * expprint.c (print_subexp_standard, op_string, op_name)
12111 (op_name_standard, dump_raw_expression, dump_raw_expression):
12112 * expression.h (op_name, op_string, dump_raw_expression):
12113 Constify.
12114 * f-exp.y (yyerror): Constify.
12115 (struct token::oper): Constify.
12116 (struct f77_boolean_val::name): Constify.
12117 * f-lang.c (f_word_break_characters): Constify.
12118 * f-lang.h (f_yyerror): Constify.
12119 * fork-child.c (fork_inferior): Add cast.
12120 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
12121 (new_variant): Constify.
12122 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
12123 * gdbarch.c: Regenerate.
12124 * gdbcore.h (set_gnutarget): Constify.
12125 * go-exp.y (yyerror): Constify.
12126 (token::oper): Constify.
12127 * go-lang.h (go_yyerror): Constify.
12128 * go32-nat.c (go32_sysinfo): Constify.
12129 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
12130 * guile/scm-cmd.c (cmdscm_function): Constify.
12131 * guile/scm-param.c (pascm_param_value): Constify.
12132 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
12133 (h8300sx_register_name): Constify.
12134 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
12135 Constify.
12136 * ia64-tdep.c (ia64_register_names): Constify.
12137 * infcmd.c (construct_inferior_arguments): Constify.
12138 (path_command, attach_post_wait): Constify.
12139 * language.c (show_range_command, show_case_command)
12140 (unk_lang_error): Constify.
12141 * language.h (language_defn::la_error)
12142 (language_defn::la_name_of_this): Constify.
12143 * linespec.c (decode_line_2): Constify.
12144 * linux-thread-db.c (thread_db_err_str): Constify.
12145 * lm32-tdep.c (lm32_register_name): Constify.
12146 * m2-exp.y (yyerror): Constify.
12147 * m2-lang.h (m2_yyerror): Constify.
12148 * m32r-tdep.c (m32r_register_names): Constify and make static.
12149 * m68hc11-tdep.c (m68hc11_register_names): Constify.
12150 * m88k-tdep.c (m88k_register_name): Constify.
12151 * macroexp.c (appendmem): Constify.
12152 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
12153 (upgrade_type, parse_external, parse_partial_symbols)
12154 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
12155 (new_symbol): Constify.
12156 * memattr.c (mem_info_command): Constify.
12157 * mep-tdep.c (register_name_from_keyword): Constify.
12158 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
12159 Constify.
12160 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
12161 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
12162 * mi/mi-main.c (captured_mi_execute_command): Constify and add
12163 cast.
12164 (mi_execute_async_cli_command): Constify.
12165 * mips-tdep.c (mips_register_name): Constify.
12166 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
12167 (am33_register_name, am33_2_register_name)
12168 * moxie-tdep.c (moxie_register_names): Constify.
12169 * nat/linux-osdata.c (osdata_type): Constify fields.
12170 * nto-tdep.c (nto_parse_redirection): Constify.
12171 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
12172 (lookup_child_selector): Constify.
12173 (objc_methcall::name): Constify.
12174 * objc-lang.h (lookup_objc_class, lookup_child_selector)
12175 (lookup_struct_typedef): Constify.
12176 * objfiles.c (pc_in_section): Constify.
12177 * objfiles.h (pc_in_section): Constify.
12178 * p-exp.y (struct token::oper): Constify.
12179 (yyerror): Constify.
12180 * p-lang.h (pascal_yyerror): Constify.
12181 * parser-defs.h (op_name_standard): Constify.
12182 (op_print::string): Constify.
12183 (exp_descriptor::op_name): Constify.
12184 * printcmd.c (print_address_symbolic): Constify.
12185 * psymtab.c (print_partial_symbols): Constify.
12186 * python/py-breakpoint.c (stop_func): Constify.
12187 (bppy_get_expression): Constify.
12188 * python/py-cmd.c (cmdpy_completer::name): Constify.
12189 (cmdpy_function): Constify.
12190 * python/py-event.c (evpy_add_attribute)
12191 (gdbpy_initialize_event_generic): Constify.
12192 * python/py-event.h (evpy_add_attribute)
12193 (gdbpy_initialize_event_generic): Constify.
12194 * python/py-evts.c (add_new_registry): Constify.
12195 * python/py-finishbreakpoint.c (outofscope_func): Constify.
12196 * python/py-framefilter.c (get_py_iter_from_func): Constify.
12197 * python/py-inferior.c (get_buffer): Add cast.
12198 * python/py-param.c (parm_constant::name): Constify.
12199 * python/py-unwind.c (fprint_frame_id): Constify.
12200 * python/python.c (gdbpy_parameter_value): Constify.
12201 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
12202 * remote.c (memory_packet_config::name): Constify.
12203 (show_packet_config_cmd, remote_write_bytes)
12204 (remote_buffer_add_string):
12205 * reverse.c (exec_reverse_once): Constify.
12206 * rs6000-tdep.c (variant::name, variant::description): Constify.
12207 * rust-exp.y (rustyyerror): Constify.
12208 * rust-lang.c (rust_op_name): Constify.
12209 * rust-lang.h (rustyyerror): Constify.
12210 * serial.h (serial_ops::name): Constify.
12211 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
12212 (sh_sh3e_register_name, sh_sh2e_register_name)
12213 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
12214 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
12215 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
12216 (sh_sh4al_dsp_register_name): Constify.
12217 * sh64-tdep.c (sh64_register_name): Constify.
12218 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
12219 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
12220 * stabsread.c (patch_block_stabs, read_type_number)
12221 (ref_map::stabs, ref_add, process_reference)
12222 (symbol_reference_defined, define_symbol, define_symbol)
12223 (error_type, read_type, read_member_functions, read_cpp_abbrev)
12224 (read_one_struct_field, read_struct_fields, read_baseclasses)
12225 (read_tilde_fields, read_struct_type, read_array_type)
12226 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
12227 (read_huge_number, read_range_type, read_args, common_block_start)
12228 (find_name_end): Constify.
12229 * stabsread.h (common_block_start, define_symbol)
12230 (process_one_symbol, symbol_reference_defined, ref_add):
12231 * symfile.c (get_section_index, add_symbol_file_command):
12232 * symfile.h (get_section_index): Constify.
12233 * target-descriptions.c (tdesc_type::name): Constify.
12234 (tdesc_free_type): Add cast.
12235 * target.c (find_default_run_target):
12236 (add_deprecated_target_alias, find_default_run_target)
12237 (target_announce_detach): Constify.
12238 (do_option): Constify.
12239 * target.h (add_deprecated_target_alias): Constify.
12240 * thread.c (print_thread_info_1): Constify.
12241 * top.c (deprecated_readline_begin_hook, command_line_input):
12242 Constify.
12243 (init_main): Add casts.
12244 * top.h (handle_line_of_input): Constify.
12245 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
12246 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
12247 (tfind_command): Rename to ...
12248 (tfind_command_1): ... this and constify.
12249 (tfind_command): New function.
12250 (tfind_end_command, tfind_start_command): Adjust.
12251 (encode_source_string): Constify.
12252 * tracepoint.h (encode_source_string): Constify.
12253 * tui/tui-data.c (tui_partial_win_by_name): Constify.
12254 * tui/tui-data.h (tui_partial_win_by_name): Constify.
12255 * tui/tui-source.c (tui_set_source_content_nil): Constify.
12256 * tui/tui-source.h (tui_set_source_content_nil): Constify.
12257 * tui/tui-win.c (parse_scrolling_args): Constify.
12258 * tui/tui-windata.c (tui_erase_data_content): Constify.
12259 * tui/tui-windata.h (tui_erase_data_content): Constify.
12260 * tui/tui-winsource.c (tui_erase_source_content): Constify.
12261 * tui/tui.c (tui_enable): Add cast.
12262 * utils.c (defaulted_query): Constify.
12263 (init_page_info): Add cast.
12264 (puts_debug, subset_compare): Constify.
12265 * utils.h (subset_compare): Constify.
12266 * varobj.c (varobj_format_string): Constify.
12267 * varobj.h (varobj_format_string): Constify.
12268 * vax-tdep.c (vax_register_name): Constify.
12269 * windows-nat.c (windows_detach): Constify.
12270 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
12271 * xml-support.c (gdb_xml_end_element): Constify.
12272 * xml-tdesc.c (tdesc_start_reg): Constify.
12273 * xstormy16-tdep.c (xstormy16_register_name): Constify.
12274 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
12275 * xtensa-tdep.h (xtensa_register_t::name): Constify.
12276
995816ba
PA
122772017-04-05 Pedro Alves <palves@redhat.com>
12278
12279 * proc-api.c (struct trans): Constify.
12280 (procfs_note): Constify.
12281 * proc-events.c (struct trans, syscall_table):
12282 * proc-flags.c (struct trans): Constify.
12283 * proc-utils.h (procfs_note): Constify.
12284 * proc-why.c (struct trans): Constify.
12285 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
12286 (procfs_detach): Constify.
12287 * sol-thread.c (struct string_map): Constify.
12288 (td_err_string, td_state_string): Constify.
12289
3e83a920
PA
122902017-04-05 Pedro Alves <palves@redhat.com>
12291
12292 * proc-api.c (procfs_filename): Don't initialize
12293 procfs_filename.
12294 (prepare_to_trace): Assume procfs_filename is non-NULL.
12295 (_initialize_proc_api): Give procfs_filename a default value here.
12296
63160a43
PA
122972017-04-05 Pedro Alves <palves@redhat.com>
12298
12299 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
12300 'cond_string' parameter.
12301 (extract_exception_regexp): Constify 'string' parameter.
12302 (catch_exception_command_1): Constify.
12303 * breakpoint.c (init_catchpoint)
12304 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
12305 parameter.
12306 (ep_parse_optional_if_clause, catch_fork_command_1)
12307 (catch_exec_command_1): Constify.
12308 * breakpoint.h (init_catchpoint): Constify 'cond_string'
12309 parameter.
12310 (ep_parse_optional_if_clause): Constify.
12311 * cli/cli-utils.c (remove_trailing_whitespace)
12312 (check_for_argument): Constify.
12313 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
12314 non-const overload.
12315 (check_for_argument): Likewise.
12316
9b2eba3d
PA
123172017-04-05 Pedro Alves <palves@redhat.com>
12318
12319 * event-top.c (command_line_handler): Add cast to execute_command
12320 call.
12321 * record-btrace.c (cmd_record_btrace_bts_start)
12322 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
12323 (cmd_record_btrace_start): Add cast to execute_command call.
12324 * record-full.c (record_full_goto_insn):
12325 * record.c (record_start, record_stop): Add cast to
12326 execute_command_to_string calls.
12327 (cmd_record_start): Add cast to execute_command calls.
12328
2adadf51
PA
123292017-04-05 Pedro Alves <palves@redhat.com>
12330
12331 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
12332 static inline function.
12333 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
12334 array and use gdb_PyArg_ParseTupleAndKeywords.
12335 * python/py-cmd.c (cmdpy_init): Likewise.
12336 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
12337 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
12338 (infpy_search_memory): Likewise.
12339 * python/py-objfile.c (objfpy_add_separate_debug_file)
12340 (gdbpy_lookup_objfile): Likewise.
12341 * python/py-symbol.c (gdbpy_lookup_symbol)
12342 (gdbpy_lookup_global_symbol): Likewise.
12343 * python/py-type.c (gdbpy_lookup_type): Likewise.
12344 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
12345 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
12346 Likewise.
12347
0d1f4ceb
PA
123482017-04-05 Pedro Alves <palves@redhat.com>
12349
12350 * python/python-internal.h (gdb_PyGetSetDef): New type.
12351 * python/py-block.c (block_object_getset)
12352 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
12353 * python/py-event.c (event_object_getset)
12354 (finish_breakpoint_object_getset): Likewise.
12355 * python/py-inferior.c (inferior_object_getset): Likewise.
12356 * python/py-infthread.c (thread_object_getset): Likewise.
12357 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
12358 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
12359 * python/py-objfile.c (objfile_getset): Likewise.
12360 * python/py-progspace.c (pspace_getset): Likewise.
12361 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
12362 Likewise.
12363 * python/py-record.c (recpy_record_getset): Likewise.
12364 * python/py-symbol.c (symbol_object_getset): Likewise.
12365 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
12366 Likewise.
12367 * python/py-type.c (type_object_getset, field_object_getset):
12368 Likewise.
12369 * python/py-value.c (value_object_getset): Likewise.
12370
4d759979
PA
123712017-04-05 Pedro Alves <palves@redhat.com>
12372
12373 * python/python-internal.h (gdb_PyObject_CallMethod)
12374 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
12375 New functions.
12376 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
12377 (PySys_GetObject, PySys_SetPath): New macros.
12378
fdf9e36f
PA
123792017-04-05 Pedro Alves <palves@redhat.com>
12380
12381 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
12382 info_osdata_command.
12383 * osdata.c (info_osdata_command): Rename to ...
12384 (info_osdata): ... this. Constify 'type' parameter, and remove
12385 the 'from_tty' parameter. Accept NULL TYPE.
12386 (info_osdata_command): New function.
12387 * osdata.h (info_osdata_command): Remove declaration.
12388 (info_osdata): New declaration.
12389
9f33b8b7
PA
123902017-04-05 Pedro Alves <palves@redhat.com>
12391
12392 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
12393 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
12394 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
12395 parameter.
12396 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
12397 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
12398 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
12399 parameter.
12400 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
12401 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
12402 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12403 (mi_cmd_file_list_exec_source_files)
12404 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
12405 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12406 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
12407 parameter.
12408 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
12409 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
12410 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
12411 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
12412 (mi_cmd_stack_info_frame): Constify 'command' parameter.
12413 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
12414 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
12415 'command' parameter.
12416 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
12417 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
12418 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
12419 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
12420 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
12421 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
12422 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
12423 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
12424 (mi_cmd_var_set_update_range): Constify 'command' parameter.
12425 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
12426 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
12427 parameter.
12428 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
12429 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
12430 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
12431 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
12432 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
12433 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
12434 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
12435 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
12436 (mi_cmd_data_list_changed_registers)
12437 (mi_cmd_data_write_register_values)
12438 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
12439 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
12440 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
12441 (mi_cmd_list_features, mi_cmd_list_target_features)
12442 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
12443 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
12444 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
12445 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
12446 (mi_cmd_trace_frame_collected): Constify 'command'
12447 parameter.
12448 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
12449 'command' parameter.
12450
67cb5b2d
PA
124512017-04-05 Pedro Alves <palves@redhat.com>
12452
12453 * ada-lang.c (ada_completer_word_break_characters): Now a const
12454 array.
12455 (ada_get_gdb_completer_word_break_characters): Constify.
12456 * completer.c (gdb_completer_command_word_break_characters)
12457 (gdb_completer_file_name_break_characters)
12458 (gdb_completer_quote_characters): Now const arrays.
12459 (get_gdb_completer_quote_characters): Constify.
12460 (set_rl_completer_word_break_characters): New function.
12461 (set_gdb_completion_word_break_characters)
12462 (complete_line_internal): Use it.
12463 * completer.h (get_gdb_completer_quote_characters): Constify.
12464 (set_rl_completer_word_break_characters): Declare.
12465 * f-lang.c (f_word_break_characters): Constify.
12466 * language.c (default_word_break_characters): Constify.
12467 * language.h (language_defn::la_word_break_characters): Constify.
12468 (default_word_break_characters): Constify.
12469 * top.c (init_main): Use set_rl_completer_word_break_characters.
12470
7a114964
PA
124712017-04-05 Pedro Alves <palves@redhat.com>
12472
12473 * aix-thread.c (aix_thread_pid_to_str)
12474 (aix_thread_extra_thread_info): Constify.
12475 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
12476 * bsd-uthread.c (bsd_uthread_extra_thread_info)
12477 (bsd_uthread_pid_to_str): Constify.
12478 * corelow.c (core_pid_to_str): Constify.
12479 * darwin-nat.c (darwin_pid_to_str): Constify.
12480 * fbsd-nat.c (fbsd_pid_to_str): Constify.
12481 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
12482 Constify.
12483 * gnu-nat.c (gnu_pid_to_str): Constify.
12484 * go32-nat.c (go32_pid_to_str): Constify.
12485 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
12486 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
12487 * inferior.c (inferior_pid_to_str): Constify.
12488 * linux-nat.c (linux_nat_pid_to_str): Constify.
12489 * linux-tdep.c (linux_core_pid_to_str): Constify.
12490 * linux-thread-db.c (thread_db_pid_to_str)
12491 (thread_db_extra_thread_info): Constify.
12492 * nto-tdep.c (nto_extra_thread_info): Constify.
12493 * nto-tdep.h (nto_extra_thread_info): Constify.
12494 * obsd-nat.c (obsd_pid_to_str): Constify.
12495 * procfs.c (procfs_pid_to_str): Constify.
12496 * ravenscar-thread.c (ravenscar_extra_thread_info)
12497 (ravenscar_pid_to_str): Constify.
12498 * remote-sim.c (gdbsim_pid_to_str): Constify.
12499 * remote.c (remote_threads_extra_info, remote_pid_to_str):
12500 Constify.
12501 * sol-thread.c (solaris_pid_to_str): Constify.
12502 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
12503 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
12504 * target.c (default_pid_to_str, target_pid_to_str)
12505 (normal_pid_to_str, default_pid_to_str): Constify.
12506 * target.h (target_ops::to_pid_to_str)
12507 (target_ops::to_extra_thread_info): Constify.
12508 (target_pid_to_str, normal_pid_to_str): Constify.
12509 * windows-nat.c (windows_pid_to_str): Constify.
12510 * gdbarch.sh (core_pid_to_str): Constify.
12511 * target-delegates.c: Regenerate.
12512 * gdbarch.h, gdbarch.c: Regenerate.
12513
69bbf465
PA
125142017-04-05 Pedro Alves <palves@redhat.com>
12515
12516 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
12517 the memory of the temporary warning_pre_print override.
12518 * utils.c (warning_pre_print): Constify.
12519 * utils.h (warning_pre_print): Constify.
12520
be47f9e8
PA
125212017-04-05 Pedro Alves <palves@redhat.com>
12522
12523 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
12524 (shell_command): New function.
12525 (make_command): Use std::string.
12526 (init_cli_cmds): Register shell_command instead of shell_escape.
12527
bde6261a
PA
125282017-04-05 Pedro Alves <palves@redhat.com>
12529
12530 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
12531 * tracepoint.c (default_collect): Don't initialize.
12532
b38ef47f
PA
125332017-04-05 Pedro Alves <palves@redhat.com>
12534
12535 * macroexp.c (macro_buffer::shared): Now a bool.
12536 (init_buffer): Update.
12537 (init_shared_buffer): Constify 'addr' parameter.
12538 (substitute_args, expand, macro_expand, macro_expand_next): Remove
12539 casts.
12540
f995bbe8
PA
125412017-04-05 Pedro Alves <palves@redhat.com>
12542
12543 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
12544 * disasm.c (set_disassembler_options): Constify local.
12545 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
12546
4a596fe2
SDJ
125472017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
12548
12549 PR gdb/21352
12550 * tracefile.c (tsave_command): Fix argument parsing for '-r'
12551 option.
12552
2cad08ea
YQ
125532017-04-05 Yao Qi <yao.qi@linaro.org>
12554
12555 * frame.c (frame_unwind_register_unsigned): Call
12556 frame_unwind_register_value.
12557
55a98976
YQ
125582017-04-05 Yao Qi <yao.qi@linaro.org>
12559
12560 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
12561 Use gdb_test_multiple, and don't match anchor.
12562
4ac40124
PA
125632017-04-05 Pedro Alves <palves@redhat.com>
12564
12565 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
12566 (Write After Approval): Remove Simon Marchi.
12567
c053b654
PA
125682017-04-05 Pedro Alves <palves@redhat.com>
12569
12570 * common/gdb_optional.h (optional::optional): Make constexpr and
12571 initialize m_dummy.
12572
4c7bf4f9
JB
125732017-04-04 John Baldwin <jhb@FreeBSD.org>
12574
12575 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
12576 (amd64fbsd_jmp_buf_reg_offset): Remove.
12577 (amd64fbsd_supply_uthread): Remove function.
12578 (amd64fbsd_collect_uthread): Remove function.
12579 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
12580 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
12581 (x86_64-*-freebsd*): Remove bsd-uthread.o.
12582 (fbsd-nat.c): Update comment.
12583 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
12584 (i386fbsd_jmp_buf_reg_offset): Remove.
12585 (i386fbsd_supply_uthread): Remove function.
12586 (i386fbsd_collect_uthread): Remove function.
12587 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
12588
1e1a8bef
JB
125892017-04-04 John Baldwin <jhb@FreeBSD.org>
12590
12591 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
12592 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
12593 * NEWS: Mention that support for FreeBSD/alpha was removed.
12594 * alpha-fbsd-tdep.c: Delete file.
12595 * config/alpha/fbsd.mh: Delete file.
12596 * configure.host: Delete alpha*-*-freebsd* and
12597 alpha*-*-kfreebsd*-gnu.
12598 * configure.tgt: Delete alpha*-*-freebsd* and
12599 alpha*-*-kfreebsd*-gnu.
12600
49907934
JB
126012017-04-04 John Baldwin <jhb@FreeBSD.org>
12602
12603 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
12604 amd64bsd_store_inferior_registers): Use ptid from regcache.
12605
6f77053d
PA
126062017-04-04 Pedro Alves <palves@redhat.com>
12607
12608 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
12609 data fields, make them private and add "m_" prefixes.
12610 (lnp_state_machine::lnp_state_machine): New ctor.
12611 (record_line, check_line_address, handle_set_discriminator)
12612 (handle_set_address, handle_advance_pc, handle_special_opcode)
12613 (handle_advance_line, handle_set_file, handle_negate_stmt)
12614 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
12615 (end_sequence, advance_line): New methods.
12616 (m_gdbarch, m_record_lines_p): New fields.
12617 (lnp_reader_state): Delete.
12618 (dwarf_record_line): Rename to ...
12619 (lnp_state_machine::record_line): ... adjust.
12620 (init_lnp_state_machine): Delete.
12621 (lnp_state_machine::lnp_state_machine): New.
12622 (check_line_address): Rename to ...
12623 (lnp_state_machine::check_line_address): This.
12624 (dwarf_decode_lines_1): Remove reference to "reader_state".
12625 Adjust lnp_state_machine having a non-default ctor. Use bool.
12626 State machine internal state manipulation moved to
12627 lnp_state_machine methods.
12628
9c541725
PA
126292017-04-04 Pedro Alves <palves@redhat.com>
12630
12631 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12632 unittests/offset-type-selftests.c.
12633 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
12634 * common/offset-type.h: New file.
12635 * common/preprocessor.h: New file.
12636 * common/traits.h: New file.
12637 * common/valid-expr.h: New file.
12638 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
12639 sect_offset and cu_offset strong typedefs throughout.
12640 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
12641 typedefs throughout.
12642 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
12643 sect_offset and cu_offset strong typedefs throughout.
12644 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
12645 typedefs throughout.
12646 * gdbtypes.h: Include "common/offset-type.h".
12647 (cu_offset): Now an offset type (strong typedef) instead of a
12648 struct.
12649 (sect_offset): Likewise.
12650 (union call_site_parameter_u): Rename "param_offset" field to
12651 "param_cu_off".
12652 * unittests/offset-type-selftests.c: New file.
12653
ecfb656c
PA
126542017-04-04 Pedro Alves <palves@redhat.com>
12655
12656 * common/underlying.h: New file.
12657 * dwarf2read.c: Include "common/gdb_optional.h" and
12658 "common/underlying.h".
12659 (dir_index, file_name_index): New types.
12660 (file_entry): Use them.
12661 (file_entry::include): Use to_underlying.
12662 (line_header::add_file_name): Use dir_index.
12663 (read_formatted_entries): Use gdb::optional. Read form before
12664 writting to file_entry.
12665 (dwarf_decode_line_header): Use dir_index.
12666 (lnp_state_machine::current_file): Use to_underlying.
12667 (lnp_state_machine::file): Change type to file_name_index.
12668 (dwarf_record_line): Use to_underlying.
12669 (init_lnp_state_machine): Use file_name_index.
12670 (dwarf_decode_lines_1): Use dir_index and file_name_index.
12671
d194f1fe
PA
126722017-04-04 Pedro Alves <palves@redhat.com>
12673
12674 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
12675 operator bool, has_value and get methods.
12676
fff8551c
PA
126772017-04-04 Pedro Alves <palves@redhat.com>
12678
12679 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
12680 fields.
12681 (line_header): Initialize all data fields. Change type of
12682 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
12683 Change type of include_dirs to std::vector<const char *>. Remove
12684 num_include_dirs, include_dirs_size. Change type of file_names to
12685 std::vector<file_entry>. Remove num_file_names, file_names_size.
12686 (line_header::line_header): New.
12687 (line_header::add_include_dir, line_header::add_file_name): New
12688 methods.
12689 (line_header::include_dir_at): Remove NULL check.
12690 (line_header::file_name_at): Add const overload.
12691 (line_header_up): New unique_ptr typedef.
12692 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
12693 std::vector. Remove free_line_header call.
12694 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
12695 free_line_header call.
12696 (free_cu_line_header): Delete.
12697 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
12698 (setup_type_unit_groups): Use line_header_up instead of cleanups.
12699 Adjust to use std::vector.
12700 (free_line_header): Delete.
12701 (free_line_header_voidp): Use delete.
12702 (add_include_dir): Replace with ...
12703 (line_header::add_include_dir): ... this method. Use std::vector.
12704 (add_file_name): Replace with ...
12705 (line_header::add_file_name): ... this method. Use std::vector.
12706 (add_include_dir_stub): Delete.
12707 (read_formatted_entries): Remove memset.
12708 (dwarf_decode_line_header): Return a line_header_up instead of a
12709 raw pointer. Remove cleanup handling. Pass lambdas to
12710 read_formatted_entries. Adjust to use line_header methods.
12711 (dwarf_decode_lines_1): Adjust to use line_header methods.
12712 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
12713 use std::vector.
12714
d62a8ae2
SM
127152017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
12716
12717 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
12718 instead of struct ptid.
12719
db3a1dc7
AH
127202017-05-04 Alan Hayward <alan.hayward@arm.com>
12721
12722 * frame.c (get_frame_register_bytes): Unwind using value.
12723 (put_frame_register_bytes): Likewise.
12724
b1b45502
IB
127252017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
12726
12727 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
12728 aggregate-like.
12729
ec13808e
JK
127302017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
12731
12732 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
12733
12316564
YQ
127342017-03-29 Yao Qi <yao.qi@linaro.org>
12735
12736 * gdbthread.h (struct thread_info): Declare constructor and
12737 destructor. Add some in-class member initializers.
12738 * thread.c (free_thread): Remove.
12739 (init_thread_list): Call delete instead of free_thread.
12740 (new_thread): Call thread_info constructor.
12741 (thread_info::thread_info): New function.
12742 (thread_info::~thread_info): New function.
12743 (delete_thread_1): Call delete instead of free_thread.
12744 (make_cleanup_restore_current_thread): Move tp and frame to
12745 inner block.
12746
fe5f7374
AK
127472017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12748
12749 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
12750 (arc_skip_prologue): Likewise.
12751 (arc_make_frame_cache): Likewise.
12752 (arc_pv_get_operand): New function.
12753 (arc_is_in_prologue): Likewise.
12754 (arc_analyze_prologue): Likewise.
12755 (arc_print_frame_cache): Likewise.
12756 (MAX_PROLOGUE_LENGTH): New constant.
12757
eea78757
AK
127582017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12759
12760 * configure.tgt: Add arc-insn.o.
12761 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
12762 (dump_arc_instruction_command): New function.
12763 (arc_fprintf_disasm): Likewise.
12764 (arc_disassemble_info): Likewise.
12765 (arc_insn_get_operand_value): Likewise.
12766 (arc_insn_get_operand_value_signed): Likewise.
12767 (arc_insn_get_memory_base_reg): Likewise.
12768 (arc_insn_get_memory_offset): Likewise.
12769 (arc_insn_get_branch_target): Likewise.
12770 (arc_insn_dump): Likewise.
12771 (arc_insn_get_linear_next_pc): Likewise.
12772 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
12773 (arc_disassemble_info): Likewise.
12774 (arc_insn_get_branch_target): Likewise.
12775 (arc_insn_get_linear_next_pc): Likewise.
12776 * NEWS: Mention new "maint print arc arc-instruction".
12777
3be78afd
AK
127782017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12779
12780 * arc-tdep (maintenance_print_arc_list): New variable.
12781 (maintenance_print_arc_command): New function.
12782
296ec4fa
AK
127832017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12784
12785 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
12786 Add "limm" and "reserved".
12787 (arc_cannot_fetch_register, arc_cannot_store_register): Add
12788 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
12789 * arc-tdep.h (arc_regnum): Likewise.
12790
f74f865e
MF
127912017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12792
12793 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12794 for THREADPTR register.
12795 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
12796 register.
12797 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
12798 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
12799 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
12800
0d0bf81a
MF
128012017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12802
12803 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
12804 registers above gdbarch_num_regs (gdbarch) as privileged in
12805 call0 ABI.
12806
0ce4291e
MF
128072017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12808
12809 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12810 for a single specified register or for all registers in
12811 a0_base..a0_base + C0_NREGS range.
12812 (supply_gregset_reg): Call regcache_raw_supply for a single
12813 specified register or for all registers in a0_base..a0_base +
12814 C0_NREGS range.
12815
c56054f9
MF
128162017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12817
12818 * arch/xtensa.h (C0_NREGS): Add definition.
12819 * xtensa-tdep.c (C0_NREGS): Remove definition.
12820
a4398628
MF
128212017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12822
12823 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
12824 Drop xtensa_default_isa initialization.
12825 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
12826
8c43009f
PA
128272017-03-27 Pedro Alves <palves@redhat.com>
12828
12829 * dwarf2read.c (file_entry) <dir_index>: Add comment.
12830 (file_entry::include_dir): New method.
12831 (line_header::include_dir_at, line_header::file_name_at): New
12832 methods.
12833 (setup_type_unit_groups, setup_type_unit_groups)
12834 (psymtab_include_file_name): Simplify using the new methods.
12835 (lnp_state_machine) <the_line_header>: New field.
12836 <file>: Add comment.
12837 (lnp_state_machine::current_file): New method.
12838 (dwarf_record_line): Simplify using the new methods.
12839 (init_lnp_state_machine): Initialize the "the_line_header" field.
12840 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
12841 Simplify using the new methods.
12842
a7e80b9e
PA
128432017-03-27 Pedro Alves <palves@redhat.com>
12844
12845 * cp-name-parser.y (make_empty): Delete.
12846 (demangler_special, nested_name, ptr_operator, array_indicator)
12847 (direct_declarator, declarator_1): Use fill_comp instead of
12848 make_empty.
12849
21047726
PA
128502017-03-27 Pedro Alves <palves@redhat.com>
12851
12852 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
12853 to ATTRIBUTE_PRINTF.
12854 * solib-target.c (library_list_start_list): Print "string" not
12855 "version".
12856 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
12857 gdb_xml_error call.
12858
d721ba37
PA
128592017-03-27 Pedro Alves <palves@redhat.com>
12860
12861 * dwarf2read.c (struct file_and_directory): New.
12862 (dwarf2_get_dwz_file): Adjust to use std::string.
12863 (dw2_get_file_names_reader): Adjust to use file_and_directory.
12864 (find_file_and_directory): Adjust to return a file_and_directory
12865 object.
12866 (read_file_scope): Adjust to use file_and_directory. Remove
12867 make_cleanup/do_cleanups calls.
12868 (open_and_init_dwp_file): Adjust to use std::string. Remove
12869 make_cleanup/do_cleanups calls.
12870 * python/python.c (do_start_initialization): Adjust to ldirname
12871 returning a std::string.
12872 * utils.c (ldirname): Now returns a std::string.
12873 * utils.h (ldirname): Change return type to std::string.
12874 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
12875 returning a std::string.
12876 * xml-tdesc.c (file_read_description_xml): Likewise.
12877
ed771251
AH
128782017-03-24 Alan Hayward <alan.hayward@arm.com>
12879
12880 * regcache.c (regcache_debug_print_register): New function.
12881 * regcache.h (regcache_debug_print_register): New declaration.
12882 * target.c (debug_print_register): Remove.
12883 (target_fetch_registers): Call regcache_debug_print_register.
12884 (target_store_registers): Likewise.
12885
568c1b9f
PB
128862017-03-24 Pádraig Brady <pbrady@fb.com>
12887
12888 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
12889 reference beyond the 'lh->include_dirs' array before accessing to
12890 it.
12891 (psymtab_include_file_name): Likewise.
12892 (dwarf_decode_lines_1): Likewise.
12893 (dwarf_decode_lines): Likewise.
12894 (file_file_name): Likewise.
12895
3e00d44f
SM
128962017-03-23 Simon Marchi <simon.marchi@ericsson.com>
12897
12898 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
12899 inferior_ptid.
12900 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12901 ps_lsetfpregs): Likewise.
12902 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
12903 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12904 ps_lsetfpregs): Likewise.
12905 * target.c (target_fetch_registers, target_store_registers):
12906 Remove asserts.
12907
077ae656
AH
129082017-03-23 Alan Hayward <alan.hayward@arm.com>
12909
12910 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
12911
1e2b521d
YQ
129122017-03-23 Yao Qi <yao.qi@linaro.org>
12913
12914 * aarch64-tdep.c (aarch64_process_record_test): Declare.
12915 (_initialize_aarch64_tdep): Register it.
12916 (aarch64_record_load_store): Handle PRFM instruction.
12917 (aarch64_process_record_test): New function.
12918
33877125
YQ
129192017-03-23 Yao Qi <yao.qi@linaro.org>
12920
12921 * aarch64-tdep.c (aarch64_record_load_store): Fix code
12922 indentation.
12923
a0eef940
YQ
129242017-03-23 Yao Qi <yao.qi@linaro.org>
12925
12926 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
12927
3f2a3564
PR
129282017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12929
12930 python/python.c (do_start_initialization): Fix memory leak.
12931
b67aeab0
SM
129322017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12933
12934 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
12935 using get_ptrace_pid.
12936 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
12937 inferior_ptid.
12938 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
12939 inferior_ptid instead of pid.
12940
ffdbe864
YQ
129412017-03-22 Yao Qi <yao.qi@linaro.org>
12942
12943 * aarch64-tdep.c: Wrap locally used classes in anonymous
12944 namespace.
12945 * arm-tdep.c: Likewise.
12946 * linespec.c: Likewise.
12947 * ui-out.c: Likewise.
12948
9d736fbf
JG
129492017-03-22 Jonah Graham <jonah@kichwacoders.com>
12950
12951 PR gdb/19637
12952 * python/lib/gdb/printer/bound_registers.py: Import sys.
12953
3de88e9a
SM
129542017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12955
12956 * windows-nat.c (do_windows_fetch_inferior_registers): Add
12957 windows_thread_info parameter and use it instead of
12958 current_thread.
12959 (windows_fetch_inferior_registers): Don't set current_thread,
12960 pass the thread to do_windows_fetch_inferior_registers. Use
12961 ptid from regcache instead of inferior_ptid.
12962 (do_windows_store_inferior_registers): Add windows_thread_info
12963 parameter and use it instead of current_thread.
12964 (windows_store_inferior_registers): Don't set current_thread,
12965 pass the thread to do_windows_store_inferior_registers. Use
12966 ptid from regcache instead of inferior_ptid.
12967
0e7b8f61
SM
129682017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12969
12970 * ser-mingw.c (ser_windows_raw): Remove reference to
12971 struct serial::current_timeout.
12972
5badf10a
IR
129732017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
12974
12975 PR tdep/20928
12976 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
12977 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
12978 (sparc64_fsr_type): Fix %fsr decoding.
12979
cee59b3f
TW
129802017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
12981
12982 * python/py-record-btrace.c (btpy_insn_data): Change return type
12983 for Python 2.
12984
639a9038
SM
129852017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12986
12987 * spu-linux-nat.c (spu_fetch_inferior_registers,
12988 spu_store_inferior_registers): Use ptid from regcache, set and
12989 restore inferior_ptid.
12990 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
12991 Likewise.
12992
bcc0c096
SM
129932017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12994
12995 * i386-linux-nat.c (fetch_register, store_register,
12996 i386_linux_fetch_inferior_registers,
12997 i386_linux_store_inferior_registers): Use ptid from regcache.
12998 * ia64-linux-nat.c (ia64_linux_fetch_register,
12999 ia64_linux_store_register): Likewise.
13000 * inf-ptrace.c (inf_ptrace_fetch_register,
13001 inf_ptrace_store_register): Likewise.
13002 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
13003 m32r_linux_store_inferior_registers): Likewise.
13004 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
13005 m68kbsd_store_inferior_registers): Likewise.
13006 * m68k-linux-nat.c (fetch_register, store_register,
13007 m68k_linux_fetch_inferior_registers,
13008 m68k_linux_store_inferior_registers): Likewise.
13009 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
13010 m88kbsd_store_inferior_registers): Likewise.
13011 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
13012 mips_fbsd_store_inferior_registers): Likewise.
13013 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
13014 mips64_linux_regsets_store_registers): Likewise.
13015 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
13016 mipsnbsd_store_inferior_registers): Likewise.
13017 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
13018 mips64obsd_store_inferior_registers): Likewise.
13019 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
13020 Likewise.
13021 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
13022 ppcfbsd_store_inferior_registers): Likewise.
13023 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
13024 ppc_linux_store_inferior_registers): Likewise.
13025 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
13026 ppcnbsd_store_inferior_registers): Likewise.
13027 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
13028 ppcobsd_store_registers): Likewise.
13029 * procfs.c (procfs_fetch_registers, procfs_store_registers):
13030 Likewise.
13031 * ravenscar-thread.c (ravenscar_fetch_registers,
13032 ravenscar_store_registers, ravenscar_prepare_to_store):
13033 Likewise.
13034 * record-btrace.c (record_btrace_fetch_registers,
13035 record_btrace_store_registers, record_btrace_prepare_to_store):
13036 Likewise.
13037 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
13038 Lookup inferior using ptid from regcache, instead of
13039 current_inferior.
13040 * remote.c (remote_fetch_registers, remote_store_registers): Use
13041 ptid from regcache.
13042 * rs6000-nat.c (fetch_register, store_register): Likewise.
13043 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
13044 s390_linux_store_inferior_registers): Likewise.
13045 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
13046 shnbsd_store_inferior_registers): Likewise.
13047 * sol-thread.c (sol_thread_fetch_registers,
13048 sol_thread_store_registers): Likewise.
13049 * sparc-nat.c (sparc_fetch_inferior_registers,
13050 sparc_store_inferior_registers): Likewise.
13051 * tilegx-linux-nat.c (fetch_inferior_registers,
13052 store_inferior_registers): Likewise.
13053 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
13054 vaxbsd_store_inferior_registers): Likewise.
13055 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
13056 store_xtregs): Likewise.
13057
c0f55cc6
AV
130582017-03-20 Artemiy Volkov <artemiyv@acm.org>
13059
13060 PR gdb/14441
13061 * NEWS: Mention support for rvalue references in GDB and python.
13062 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
13063 supports both lvalue and rvalue references.
13064
15c0a2a9
AV
130652017-03-20 Artemiy Volkov <artemiyv@acm.org>
13066
13067 PR gdb/14441
13068 * gdbtypes.c (rank_one_type): Implement overloading
13069 resolution rules regarding rvalue references.
13070
aa006118
AV
130712017-03-20 Artemiy Volkov <artemiyv@acm.org>
13072
13073 PR gdb/14441
13074 * aarch64-tdep.c (aarch64_type_align)
13075 (aarch64_extract_return_value, aarch64_store_return_value): Change
13076 lvalue reference type checks to general reference type checks.
13077 * amd64-tdep.c (amd64_classify): Likewise.
13078 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
13079 Likewise.
13080 * arm-tdep.c (arm_type_align, arm_extract_return_value)
13081 (arm_store_return_value): Likewise.
13082 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
13083 * c-typeprint.c (c_print_type): Likewise.
13084 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
13085 (cplus_number_of_children, cplus_describe_child): Likewise.
13086 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
13087 * completer.c (expression_completer): Likewise.
13088 * cp-support.c (make_symbol_overload_list_adl_namespace):
13089 Likewise.
13090 * darwin-nat-info.c (info_mach_region_command): Likewise.
13091 * dwarf2loc.c (entry_data_value_coerce_ref)
13092 (value_of_dwarf_reg_entry): Likewise.
13093 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
13094 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
13095 Likewise.
13096 * findvar.c (extract_typed_address, store_typed_address):
13097 Likewise.
13098 * gdbtypes.c (rank_one_type): Likewise.
13099 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
13100 * infcall.c (value_arg_coerce): Likewise.
13101 * language.c (pointer_type): Likewise.
13102 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
13103 Likewise.
13104 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
13105 * mn10300-tdep.c (mn10300_type_align): Likewise.
13106 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
13107 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
13108 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
13109 Likewise.
13110 * printcmd.c (print_formatted, x_command): Likewise.
13111 * python/py-type.c (typy_get_composite, typy_template_argument):
13112 Likewise.
13113 * python/py-value.c (valpy_referenced_value)
13114 (valpy_get_dynamic_type, value_has_field): Likewise.
13115 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
13116 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
13117 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
13118 * spu-tdep.c (spu_scalar_value_p): Likewise.
13119 * symtab.c (lookup_symbol_aux): Likewise.
13120 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
13121 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
13122 Likewise.
13123 * valops.c (value_cast_pointers, value_cast)
13124 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
13125 (value_struct_elt, value_struct_elt_bitpos)
13126 (value_find_oload_method_list, find_overload_match)
13127 (value_rtti_indirect_type): Likewise.
13128 * valprint.c (val_print_scalar_type_p, generic_val_print):
13129 Likewise.
13130 * value.c (value_actual_type, value_as_address, unpack_long)
13131 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
13132 (coerce_ref): Likewise.
13133 * varobj.c (varobj_get_value_type): Likewise.
13134
3fcf899d
AV
131352017-03-20 Artemiy Volkov <artemiyv@acm.org>
13136
13137 PR gdb/14441
13138 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
13139 table of constants.
13140 * python/lib/gdb/command/explore.py: Support exploring values
13141 of rvalue reference types.
13142 * python/lib/gdb/types.py: Implement get_basic_type() for
13143 rvalue reference types.
13144 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
13145 constant.
13146 * python/py-value.c (valpy_getitem): Add an rvalue reference
13147 check.
13148 (valpy_reference_value): Add new parameter "refcode".
13149 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
13150 New wrappers for valpy_reference_value().
13151 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
13152 (gdbpy_invoke_xmethod): Likewise.
13153
4297a3f0
AV
131542017-03-20 Artemiy Volkov <artemiyv@acm.org>
13155
13156 PR gdb/14441
13157 * dwarf2read.c (process_die, read_type_die_1): Handle the
13158 DW_TAG_rvalue_reference_type DIE.
13159 (read_tag_reference_type): Add new parameter "refcode".
13160
e1cb3213
AV
131612017-03-20 Artemiy Volkov <artemiyv@acm.org>
13162
13163 PR gdb/14441
13164 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
13165 (c_type_print_modifier, c_type_print_varspec_suffix)
13166 (c_type_print_base): Support printing rvalue reference types.
13167 * c-valprint.c (c_val_print, c_value_print): Support printing
13168 rvalue reference values.
13169
e4347c89
AV
131702017-03-20 Artemiy Volkov <artemiyv@acm.org>
13171
13172 PR gdb/14441
13173 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
13174 typename.
13175 * cp-support.c (replace_typedefs): Handle
13176 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
13177 * python/py-type.c (typy_lookup_type): Likewise.
13178
53cc15f5
AV
131792017-03-20 Artemiy Volkov <artemiyv@acm.org>
13180
13181 PR gdb/14441
13182 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
13183 * parse.c (insert_type): Change assert statement.
13184 (follow_types): Handle rvalue reference types.
13185 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
13186 constant.
13187
a65cfae5
AV
131882017-03-20 Artemiy Volkov <artemiyv@acm.org>
13189
13190 PR gdb/14441
13191 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
13192 value_ref() interface.
13193 * c-valprint.c (c_value_print): Likewise.
13194 * infcall.c (value_arg_coerce): Likewise.
13195 * python/py-value.c (valpy_reference_value): Likewise.
13196 * valops.c (value_cast, value_reinterpret_cast)
13197 (value_dynamic_cast, typecmp): Likewise.
13198 (value_ref): Parameterize by kind of return value reference type.
13199 * value.h (value_ref): Add new parameter "refcode".
13200
3b224330
AV
132012017-03-20 Artemiy Volkov <artemiyv@acm.org>
13202
13203 PR gdb/14441
13204 * dwarf2read.c (read_tag_reference_type): Use
13205 lookup_lvalue_reference_type() instead of lookup_reference_type().
13206 * eval.c (evaluate_subexp_standard): Likewise.
13207 * f-exp.y: Likewise.
13208 * gdbtypes.c (make_reference_type, lookup_reference_type):
13209 Generalize with rvalue reference types.
13210 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
13211 convenience wrappers for lookup_reference_type().
13212 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
13213 reference kind parameter.
13214 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
13215 wrappers for lookup_reference_type().
13216 * guile/scm-type.c (gdbscm_type_reference): Use
13217 lookup_lvalue_reference_type() instead of lookup_reference_type().
13218 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
13219 * parse.c (follow_types): Likewise.
13220 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
13221 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
13222 Likewise.
13223 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
13224 (gdbpy_invoke_xmethod): Likewise.
13225 * stabsread.c: Provide extra argument to make_reference_type()
13226 call.
13227 * valops.c (value_ref, value_rtti_indirect_type): Use
13228 lookup_lvalue_reference_type() instead of lookup_reference_type().
13229
f9aeb8d4
AV
132302017-03-20 Artemiy Volkov <artemiyv@acm.org>
13231
13232 PR gdb/14441
13233 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
13234 (TYPE_IS_REFERENCE): New macro.
13235 (struct type): Add rvalue_reference_type field.
13236 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
13237
51457a05
MAL
132382017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
13239
13240 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
13241 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
13242 New function definition.
13243 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
13244 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
13245 New function declaration.
13246 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
13247 * mi/mi-interp.h: New file.
13248 * solib.c (info_sharedlibrary_command): Replace for loop with
13249 ALL_SO_LIBS macro
13250 * solib.h (update_solib_list): New function declaration.
13251 (so_list_head): Move macro.
13252 * solist.h (ALL_SO_LIBS): New macro.
13253
e696b3ad
MAL
132542017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
13255
13256 * infcmd.c (post_create_inferior): Remove unused argument in
13257 call to solib_add.
13258 * remote.c (remote_start_remote): Likewise.
13259 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
13260 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
13261 (enable_break): Likewise.
13262 * solib.c (update_solib_list): Remove unused target argument
13263 and its documentation.
13264 (solib_add): Remove unused target argument. Remove unused
13265 argument in call to update_solib_list.
13266 (info_sharedlibrary_command): Remove unused argument in call
13267 to update_solib_list.
13268 (sharedlibrary_command): Remove unused argument in call to
13269 solib_add.
13270 (handle_solib_event): Likewise.
13271 (reload_shared_libraries): Likewise.
13272 * solib.h (solib_add): Remove unused target argument.
13273
dcb84eda
AA
132742017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
13275
13276 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
13277 (s390_displaced_step_fixup): Cover relative branches with the
13278 default fixup handling. This fixes lack of support for some
13279 relative branch instructions.
13280
d9cb6cdc
SM
132812017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13282
13283 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
13284 ptid from regcache.
13285
1afaf9f4
SM
132862017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13287
13288 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
13289 i386_darwin_store_inferior_registers): Use ptid from regcache.
13290
aac12e24
SM
132912017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13292
13293 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
13294 i386bsd_store_inferior_registers): Use ptid from regcache.
13295
bbe1eef1
SM
132962017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13297
13298 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
13299 hppaobsd_store_registers): Use ptid from regcache.
13300
10799020
SM
133012017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13302
13303 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
13304 hppanbsd_store_registers): Use ptid from regcache.
13305
00204cf7
SM
133062017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13307
13308 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
13309 from regcache. Use get_ptrace_pid.
13310
11a33714
SM
133112017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13312
13313 * corelow.c (get_core_register_section): Use ptid from regcache,
13314 update doc.
13315
317cd492
SM
133162017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13317
13318 * bsd-uthread.c (bsd_uthread_fetch_registers,
13319 bsd_uthread_store_registers): Use ptid from regcache, set and
13320 restore inferior_ptid.
13321
9ac8a7c2
SM
133222017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13323
13324 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
13325 fetch_fp_regs, store_register, store_regs, store_fp_register,
13326 store_fp_regs): Use ptid from regcache.
13327
4ac4bb6a
SM
133282017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
13329
13330 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
13331 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
13332 store_vfp_regs): Use ptid from regcache.
13333
9bcbdca8
PA
133342017-03-17 Pedro Alves <palves@redhat.com>
13335
13336 PR remote/21188
13337 * ser-base.c (ser_base_wait_for): Add comment.
13338 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
13339 version.
13340 * ser-unix.c (hardwire_raw): Remove reference to
13341 scb->current_timeout.
13342 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
13343 (hardwire_ops): Install ser_base_readchar instead of
13344 hardwire_readchar.
13345 * serial.h (struct serial) <current_timeout, timeout_remaining>:
13346 Remove fields.
13347
7503099f
JG
133482017-03-17 Jonah Graham <jonah@kichwacoders.com>
13349
13350 PR gdb/19637
13351 * python/lib/gdb/printer/bound_registers.py: Add support for
13352 Python 3.
13353
7942e96e
AA
133542017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
13355
13356 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
13357 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
13358 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
13359 byte_offset to subobj_byte_offset. Fix the handling of
13360 DWARF_VALUE_STACK on big-endian targets when coming via an
13361 implicit pointer.
13362 (dwarf2_evaluate_loc_desc): Adjust call to
13363 dwarf2_evaluate_loc_desc_full.
13364 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
13365 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
13366
ba14f379
YQ
133672017-03-16 Yao Qi <yao.qi@linaro.org>
13368
13369 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
13370 and REVSH instructions.
13371
b121eeb9
YQ
133722017-03-16 Yao Qi <yao.qi@linaro.org>
13373
13374 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
13375 (arm_record_test): Declare.
13376 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
13377 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
13378 align with the manual.
13379 (thumb_record_misc): Adjust the code order to align with the
13380 manual.
13381 (thumb2_record_decode_insn_handler): Fix instruction matching.
13382 (instruction_reader_thumb): New class.
13383 (arm_record_test): New function.
13384
728a7913
YQ
133852017-03-16 Yao Qi <yao.qi@linaro.org>
13386
13387 * arm-tdep.c (abstract_memory_reader): New class.
13388 (instruction_reader): New class.
13389 (extract_arm_insn): Add argument 'reader'. Callers updated.
13390 (decode_insn): Likewise.
13391
34b43320
DE
133922017-03-16 Doug Evans <dje@google.com>
13393
a7c0469f
DE
13394 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
13395 member. Change type of TYPE member to SCM. All uses updated.
13396 (lsscm_make_lazy_string_smob): Add assert.
13397 (lsscm_make_lazy_string): Flag bad length values.
13398 (lsscm_elt_type): New function.
13399 (gdbscm_lazy_string_to_value): Rewrite to use
13400 lsscm_safe_lazy_string_to_value.
13401 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
13402 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
13403 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
13404 in incoming type.
13405 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
13406 * guile/scm-type.c (tyscm_scm_to_type): New function.
13407
134082017-03-15 Doug Evans <dje@google.com>
13409
34b43320
DE
13410 PR python/17728, python/18439, python/18779
13411 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
13412 member. Change type of TYPE member to PyObject *. All uses updated.
13413 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
13414 (gdbpy_create_lazy_string_object): Flag bad length values.
13415 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
13416 Handle typedefs in incoming type.
13417 (stpy_lazy_string_elt_type): New function.
13418 (gdbpy_extract_lazy_string): Call it.
13419 * python/py-value.c (valpy_lazy_string): Flag bad length values.
13420 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
13421 typedefs in incoming type.
13422
a3a5fecc
DE
134232017-03-16 Doug Evans <dje@google.com>
13424
13425 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
13426 * guile/scm-type.c (tyscm_scm_to_type): New function.
13427
28f1c605
JW
134282017-03-16 Jiong Wang <jiong.wang@arm.com>
13429
13430 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
13431 "ULONGEST" for "skip".
13432
87c336f6
AA
134332017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
13434
13435 PR gdb/21220
13436 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
13437 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
13438 (inf_ptrace_peek_poke): ...here. New function. Now also loop
13439 over ptrace peek/poke until end of buffer or error.
13440
cf81cf60
SM
134412017-03-14 Simon Marchi <simon.marchi@ericsson.com>
13442
13443 * parse.c (length_of_subexp): Make static.
13444 * parser-defs.h (length_of_subexp): Remove.
13445
a379284a
AA
134462017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
13447
13448 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
13449 as well.
13450
8a6200ba
PA
134512017-03-14 Pedro Alves <palves@redhat.com>
13452
13453 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
13454 (main): Use std::unique_ptr. Remove calls to
13455 cp_demangled_name_parse_free.
13456
f79ec206
SM
134572017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13458
13459 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
13460 alphabsd_store_inferior_registers): Use regcache->ptid instead
13461 of inferior_ptid.
13462
edb5fb00
SM
134632017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13464
13465 * aix-thread.c (aix_thread_fetch_registers,
13466 aix_thread_store_registers): Use regcache->ptid instead of
13467 inferior_ptid.
13468
55119686
SM
134692017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13470
13471 * aarch64-linux-nat.c (fetch_gregs_from_thread,
13472 store_gregs_to_thread, fetch_fpregs_from_thread,
13473 store_fpregs_to_thread): Use regcache->ptid instead of
13474 inferior_ptid.
13475
6a06fbb7
SM
134762017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13477
13478 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
13479 amd64_linux_fetch_inferior_registers): Use regcache->ptid
13480 instead of inferior_ptid.
13481
c6386875
SM
134822017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13483
13484 * target.c (target_fetch_registers, target_store_registers): Add
13485 assert.
13486
ddaaf0fb
SM
134872017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13488
13489 * regcache.h (regcache_get_ptid): New function.
13490 * regcache.c (regcache_get_ptid): New function.
13491
b9da89d1 134922017-03-13 Mark Wielaard <mark@klomp.org>
13493
13494 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
13495
5f4d1085
KS
134962017-03-10 Keith Seitz <keiths@redhat.com>
13497
13498 PR c++/8218
13499 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
13500
c65d6b55
PA
135012017-03-08 Pedro Alves <palves@redhat.com>
13502
13503 PR gdb/18360
13504 * infrun.c (start_step_over, do_target_resume, resume)
13505 (restart_threads): Assert we're not resuming a thread that is
13506 meant to be stopped.
13507 (infrun_thread_stop_requested_callback): Delete.
13508 (infrun_thread_stop_requested): If the thread is internally
13509 stopped, queue a pending stop event and clear the thread's
13510 inline-frame state.
13511 (handle_stop_requested): New function.
13512 (handle_syscall_event, handle_inferior_event_1): Use
13513 handle_stop_requested.
13514 (handle_stop_requested): New function.
13515 (handle_signal_stop): Set the thread's stop_signal here instead of
13516 at caller.
13517 (finish_step_over): Clear step over info unconditionally.
13518 (handle_signal_stop): If the user had interrupted the event
13519 thread, consider the stop a random signal.
13520 (handle_signal_stop) <signal arrived while stepping over
13521 breakpoint>: Don't restart threads here.
13522 (stop_waiting): Don't clear step-over info here.
13523
15c22686
PA
135242017-03-08 Pedro Alves <palves@redhat.com>
13525
13526 PR 21206
13527 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
13528 goes to argument 2, not 1.
13529
6e5d74e7
PA
135302017-03-08 Pedro Alves <palves@redhat.com>
13531
13532 PR cli/21218
13533 * top.c (gdb_readline_wrapper): Avoid passing NULL to
13534 display_gdb_prompt.
13535 (command_line_input): Add comment.
13536
9753a2f6
PA
135372017-03-08 Pedro Alves <palves@redhat.com>
13538
13539 PR tui/21216
13540 * tui/tui-file.c (tui_file::write): New.
13541 * tui/tui-file.h (tui_file): Override "write".
13542 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
13543 factored out from ...
13544 (tui_puts): ... here.
13545 (tui_putc): Use them.
13546 (tui_write): New function.
13547 * tui/tui-io.h (tui_write): Declare.
13548
1672e0d9
SDJ
135492017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
13550
13551 * Makefile.in (SFILES): Replace "environ.c" with
13552 "common/environ.c".
13553 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
13554 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
13555 to...
13556 * common/environ.c: ... here.
13557 * environ.h: Moved to...
13558 * common/environ.h: ... here.
13559
f7bb4e3a
PB
135602017-03-07 Peter Bergner <bergner@vnet.ibm.com>
13561
13562 * gdbarch.sh (pstring_ptr): New static function.
13563 (gdbarch_disassembler_options): Use it.
13564 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
13565 not valid_disassembler_option->name.
13566 * gdbarch.c: Regenerate.
13567
e45ced6c
PB
135682017-03-07 Peter Bergner <bergner@vnet.ibm.com>
13569
13570 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
13571
5f6fd321
PA
135722017-03-07 Pedro Alves <palves@redhat.com>
13573
13574 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
13575
6dbb839a 135762017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
13577
13578 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
13579 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
13580 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 13581 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 13582
d274ecf4
SM
135832017-03-06 Simon Marchi <simon.marchi@ericsson.com>
13584
13585 * xtensa-linux-nat.c (fetch_gregs): Remove const.
13586
df97be55
SM
135872017-03-03 Simon Marchi <simon.marchi@ericsson.com>
13588
13589 * remote.c (remote_add_target_side_commands): Use range-based
13590 for loop.
13591
7d45f3df
YQ
135922017-03-03 Yao Qi <yao.qi@linaro.org>
13593
13594 PR gdb/21165
13595 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
13596 value is lazy.
13597 * valprint.c (common_val_print): Likewise.
13598
65b48a81
PB
135992017-02-28 Peter Bergner <bergner@vnet.ibm.com>
13600
13601 * NEWS: Mention new set/show disassembler-options commands.
13602 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
13603 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
13604 (prospective_options): New static variable.
13605 (gdb_disassembler::gdb_disassembler): Initialize
13606 m_di.disassembler_options.
13607 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
13608 (get_disassembler_options): New function.
13609 (set_disassembler_options): Likewise.
13610 (set_disassembler_options_sfunc): Likewise.
13611 (show_disassembler_options_sfunc): Likewise.
13612 (disassembler_options_completer): Likewise.
13613 (_initialize_disasm): Likewise.
13614 * disasm.h (get_disassembler_options): New prototype.
13615 (set_disassembler_options): Likewise.
13616 * gdbarch.sh (gdbarch_disassembler_options): New variable.
13617 (gdbarch_verify_disassembler_options): Likewise.
13618 * gdbarch.c: Regenerate.
13619 * gdbarch.h: Likewise.
13620 * arm-tdep.c (num_disassembly_options): Delete.
13621 (set_disassembly_style): Likewise.
13622 (arm_disassembler_options): New static variable.
13623 (set_disassembly_style_sfunc): Convert short style name into long
13624 option name. Call set_disassembler_options.
13625 (show_disassembly_style_sfunc): New function.
13626 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
13627 set_gdbarch_verify_disassembler_options.
13628 (_initialize_arm_tdep): Delete regnames variable and update callers.
13629 (arm_disassembler_options): Initialize.
13630 (disasm_options): New variable.
13631 (num_disassembly_options): Rename from this...
13632 (num_disassembly_styles): ...to this. Compute by scanning through
13633 disasm_options.
13634 (valid_disassembly_styles): Initialize using disasm_options.
13635 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
13636 set_arm_regname_option.
13637 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
13638 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
13639 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
13640 set_gdbarch_verify_disassembler_options.
13641 * s390-tdep.c (s390_disassembler_options): New static variable.
13642 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
13643 set_gdbarch_verify_disassembler_options.
13644
d538e36d
SM
136452017-02-27 Simon Marchi <simon.marchi@ericsson.com>
13646
13647 * remote.c (remote_add_target_side_condition): Remove "struct"
13648 keyword from range-based for loop.
13649
83621223
SM
136502017-02-27 Simon Marchi <simon.marchi@ericsson.com>
13651
13652 * remote.c (remote_add_target_side_condition): Use range-based
13653 for loop. Update comment.
13654
2123df0e
YQ
136552017-02-27 Yao Qi <yao.qi@linaro.org>
13656
13657 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
13658
8e368124
AH
136592017-02-26 Alan Hayward <alan.hayward@arm.com>
13660
13661 * regcache.c (regcache_raw_update): New function.
13662 (regcache_raw_read): Move code to regcache_raw_update.
13663 * regcache.h (regcache_raw_update): New declaration.
13664 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
13665
a49dd8dd
JK
136662017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
13667
13668 * dwarf2read.c (create_debug_type_hash_table): Initialize
13669 header.signature and header.type_offset_in_tu.
13670
34e4bae9
PA
136712017-02-24 Pedro Alves <palves@redhat.com>
13672
13673 * symtab.c (make_file_symbol_completion_list_1): Use
13674 add_symtab_completions.
13675
b0e4b369
AH
136762017-02-24 Alan Hayward <alan.hayward@arm.com>
13677
13678 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
13679
975c21ab
AH
136802017-02-24 Alan Hayward <alan.hayward@arm.com>
13681
13682 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
13683 I386_MAX_REGISTER_SIZE.
13684 (i386_pseudo_register_write): Likewise.
13685 (i386_process_record): Likewise.
13686 * i387-tdep.c (i387_supply_xsave): Likewise.
13687 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
13688 (store_register): Likewise.
13689
14bc53a8
PA
136902017-02-23 Pedro Alves <palves@redhat.com>
13691
13692 * ada-lang.c: Include "common/function-view.h".
13693 (ada_iterate_over_symbols): Adjust to use function_view as
13694 callback type.
13695 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
13696 (ada_make_symbol_completion_list): Use a lambda.
13697 (ada_exc_search_name_matches): Delete.
13698 (name_matches_regex): New.
13699 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
13700 * compile/compile-c-support.c: Include "common/function-view.h".
13701 (print_one_macro): Change prototype to accept a ui_file pointer.
13702 (write_macro_definitions): Use a lambda.
13703 * dwarf2read.c: Include "common/function-view.h".
13704 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
13705 (dw2_expand_symtabs_matching): Adjust to use function_view as
13706 callback type.
13707 * language.h: Include "common/function-view.h".
13708 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
13709 function_view as callback type.
13710 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
13711 * linespec.c: Include "common/function-view.h".
13712 (collect_info::add_symbol): New method.
13713 (struct symbol_and_data_callback, iterate_inline_only, struct
13714 symbol_matcher_data, iterate_name_matcher): Delete.
13715 (iterate_over_all_matching_symtabs): Adjust to use function_view
13716 as callback type and lambdas.
13717 (iterate_over_file_blocks): Adjust to use function_view as
13718 callback type.
13719 (decode_compound_collector): Now a class with private fields.
13720 (decode_compound_collector::release_symbols): New method.
13721 (collect_one_symbol): Rename to...
13722 (decode_compound_collector::operator()): ... this and adjust.
13723 (lookup_prefix_sym): decode_compound_collector construction bits
13724 move to decode_compound_collector ctor. Pass the
13725 decode_compound_collector object directly as callback. Remove
13726 cleanups and use decode_compound_collector::release_symbols
13727 instead.
13728 (symtab_collector): Now a class with private fields.
13729 (symtab_collector::release_symtabs): New method.
13730 (add_symtabs_to_list): Rename to...
13731 (symtab_collector::operator()): ... this and adjust.
13732 (collect_symtabs_from_filename): symtab_collector construction
13733 bits move to symtab_collector ctor. Pass the symtab_collector
13734 object directly as callback. Remove cleanups and use
13735 symtab_collector::release_symtabs instead.
13736 (collect_symbols): Delete.
13737 (add_matching_symbols_to_info): Use lambdas.
13738 * macrocmd.c (print_macro_callback): Delete.
13739 (info_macro_command): Use a lambda.
13740 (info_macros_command): Pass print_macro_definition as callable
13741 directly.
13742 (print_one_macro): Remove 'ignore' parameter.
13743 (macro_list_command): Adjust.
13744 * macrotab.c (macro_for_each_data::fn): Now a function_view.
13745 (macro_for_each_data::user_data): Delete field.
13746 (foreach_macro): Adjust to call the function_view.
13747 (macro_for_each): Adjust to use function_view as callback type.
13748 (foreach_macro_in_scope): Adjust to call the function_view.
13749 (macro_for_each_in_scope): Adjust to use function_view as callback
13750 type.
13751 * macrotab.h: Include "common/function-view.h".
13752 (macro_callback_fn): Declare a prototype instead of a pointer.
13753 Remove "user_data" parameter.
13754 (macro_for_each, macro_for_each_in_scope): Adjust to use
13755 function_view as callback type.
13756 * psymtab.c (partial_map_expand_apply)
13757 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
13758 Adjust to use function_view as callback type and to return bool.
13759 (psym_expand_symtabs_matching): Adjust to use function_view as
13760 callback types.
13761 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
13762 to use function_view as callback type and to return bool.
13763 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
13764 callback types.
13765 * symfile.c (expand_symtabs_matching): Adjust to use function_view
13766 as callback types.
13767 * symfile.h: Include "common/function-view.h".
13768 (expand_symtabs_file_matcher_ftype)
13769 (expand_symtabs_symbol_matcher_ftype)
13770 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
13771 return bool.
13772 (quick_symbol_functions::map_symtabs_matching_filename)
13773 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
13774 function_view as callback type and return bool.
13775 (expand_symtabs_matching): Adjust to use function_view as callback
13776 type.
13777 (maintenance_expand_name_matcher)
13778 (maintenance_expand_file_matcher): Delete.
13779 (maintenance_expand_symtabs): Use lambdas.
13780 * symtab.c (iterate_over_some_symtabs): Adjust to use
13781 function_view as callback types and return bool.
13782 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
13783 of a cleanup.
13784 (lookup_symtab_callback): Delete.
13785 (lookup_symtab): Use a lambda.
13786 (iterate_over_symbols): Adjust to use function_view as callback
13787 type.
13788 (struct search_symbols_data, search_symbols_file_matches)
13789 (search_symbols_name_matches): Delete.
13790 (search_symbols): Use a pair of lambdas.
13791 (struct add_name_data, add_macro_name, symbol_completion_matcher)
13792 (symtab_expansion_callback): Delete.
13793 (default_make_symbol_completion_list_break_on_1): Use lambdas.
13794 * symtab.h: Include "common/function-view.h".
13795 (iterate_over_some_symtabs): Adjust to use function_view as
13796 callback type and return bool.
13797 (iterate_over_symtabs): Adjust to use function_view as callback
13798 type.
13799 (symbol_found_callback_ftype): Remove 'data' parameter and return
13800 bool.
13801 (iterate_over_symbols): Adjust to use function_view as callback
13802 type.
13803
07e253aa
PA
138042017-02-23 Pedro Alves <palves@redhat.com>
13805
13806 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
13807 (%.o) <unittests/%.c>: New pattern.
13808 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
13809 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
13810 * common/function-view.h: New file.
13811 * unittests/function-view-selftests.c: New file.
13812 * configure: Regenerate.
13813
8eaf5320
SM
138142017-02-23 Simon Marchi <simon.marchi@ericsson.com>
13815
13816 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
13817 inferior_ptid.
13818 * go32-nat.c (go32_thread_alive): Likewise.
13819
38768751
YQ
138202017-02-23 Yao Qi <yao.qi@linaro.org>
13821
13822 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
13823 delete.
13824
0a8beaba
YQ
138252017-02-23 Yao Qi <yao.qi@linaro.org>
13826
13827 * varobj.c (varobj_clear_saved_item): Use delete instead of
13828 xfree.
13829 (update_dynamic_varobj_children): Likewise.
13830
58fdfd2c
JK
138312017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13832
13833 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
13834
1b90b139
SM
138352017-02-21 Simon Marchi <simon.marchi@ericsson.com>
13836
13837 * common/enum-flags.h (enum_flags::enum_flags): Initialize
13838 m_enum_value to 0 in default constructor.
13839
2039d74e
EBM
138402017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13841
13842 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
13843 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
13844 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
13845 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
13846 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
13847 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
13848 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
13849 IS_STORE_CONDITIONAL_INSN.
13850
7814882a
JK
138512017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13852
13853 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
13854
0ae60b63
JK
138552017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13856
13857 * NEWS (Changes since GDB 7.12): Add DWARF-5.
13858
0224619f
JK
138592017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13860
13861 * dwarf2read.c (skip_one_die, read_attribute_value)
13862 (dwarf2_const_value_attr, dump_die_shallow)
13863 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
13864 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
13865
0af92d60
JK
138662017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13867
13868 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
13869 (dwarf_parse_macro_header): Accept DWARF version 5.
13870 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
13871
216f72a1
JK
138722017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13873
13874 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
13875 DW_AT_GNU_*.
13876 * common/common-exceptions.h (enum errors): Likewise.
13877 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
13878 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
13879 (dwarf_expr_context::execute_stack_op): Likewise.
13880 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
13881 Likewise.
13882 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
13883 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13884 (show_entry_values_debug, call_site_to_target_addr)
13885 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
13886 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
13887 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
13888 (value_of_dwarf_block_entry, indirect_pieced_value)
13889 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
13890 (disassemble_dwarf_expression): Likewise.
13891 * dwarf2read.c (process_die, inherit_abstract_dies)
13892 (read_call_site_scope): Likewise.
13893 * gdbtypes.h (struct func_type, struct call_site_parameter)
13894 (struct call_site): Likewise.
13895 * stack.c (read_frame_arg): Likewise.
13896 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
13897
43988095
JK
138982017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13899
13900 * defs.h (read_unsigned_leb128): New declaration.
13901 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
13902 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
13903 (dwarf2_find_location_expression): Call also
13904 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
13905 * dwarf2loc.h (dwarf2_version): New declaration.
13906 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
13907 rnglists.
13908 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
13909 .debug_rnglists.
13910 (struct dwop_section_names): Add loclists_dwo.
13911 (dwop_section_names): Add .debug_loclists.dwo.
13912 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
13913 (struct dwarf2_per_cu_data): Add dwarf_version.
13914 (struct dwo_sections): Add loclists.
13915 (struct attr_abbrev): Add implicit_const.
13916 (read_indirect_line_string): New declaration.
13917 (read_unsigned_leb128): Delete declaration.
13918 (rcuh_kind): New definition.
13919 (read_and_check_comp_unit_head): Change parameter
13920 is_debug_types_section to section_kind.
13921 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
13922 (read_comp_unit_head): Change parameter abfd to section, add parameter
13923 section_kind. Handle DWARF-5.
13924 (error_check_comp_unit_head): Accept also DWARF version 5.
13925 (read_and_check_comp_unit_head): Change parameter
13926 is_debug_types_section to section_kind.
13927 (read_and_check_type_unit_head): Delete function.
13928 (read_abbrev_offset): Handle DWARF-5.
13929 (create_debug_type_hash_table): Add parameter section_kind. Process
13930 only DW_UT_type. Use signature and type_offset_in_tu from struct
13931 comp_unit_head.
13932 (create_debug_types_hash_table): Update create_debug_type_hash_table
13933 caller.
13934 (create_all_type_units): Call create_debug_type_hash_table.
13935 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
13936 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
13937 caller.
13938 (skip_one_die): Handle DW_FORM_implicit_const.
13939 (dwarf2_rnglists_process): New function.
13940 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
13941 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
13942 (read_attribute_value): Handle DW_FORM_implicit_const,
13943 DW_FORM_line_strp.
13944 (read_attribute): Handle DW_FORM_implicit_const.
13945 (read_indirect_string_at_offset_from): New function from
13946 read_indirect_string_at_offset.
13947 (read_indirect_string_at_offset): Call
13948 read_indirect_string_at_offset_from.
13949 (read_indirect_line_string_at_offset): New function.
13950 (read_indirect_string): New function comment.
13951 (read_indirect_line_string): New function.
13952 (read_unsigned_leb128): Make it global.
13953 (dwarf2_string_attr): Handle DWARF-5.
13954 (add_include_dir_stub, read_formatted_entries): New functions.
13955 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
13956 Handle DWARF-5.
13957 (per_cu_header_read_in): Update read_comp_unit_head caller.
13958 (dwarf2_version): New function.
13959 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
13960 rnglists.
13961 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
13962 fields.
13963
22d2f3ab
JK
139642017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13965
13966 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
13967
5f46c5a5
JK
139682017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13969
13970 * dwarf2read.c (dwarf2_ranges_process): New function from
13971 dwarf2_ranges_read.
13972 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
13973 dwarf2_ranges_process.
13974
78d4d2c5
JK
139752017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13976
13977 * dwarf2read.c (create_debug_type_hash_table): New function from
13978 create_debug_types_hash_table.
13979 (create_debug_types_hash_table): Call create_debug_type_hash_table.
13980 (create_all_type_units, open_and_init_dwo_file): Update
13981 create_debug_types_hash_table callers.
13982
1b076f25
SDJ
139832017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13984
13985 PR gdb/16188
13986 * fork-child.c (trace_start_error): Fix thinko. va_end should
13987 refer to 'ap', not 'args'.
13988
0db8980c
SDJ
139892017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13990 Pedro Alves <palves@redhat.com>
13991
13992 PR gdb/16188
13993 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
13994 calls succeeded.
13995 * fork-child.c (trace_start_error): New function.
13996 (trace_start_error_with_name): Likewise.
13997 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
13998 * inf-ptrace.c (inf_ptrace_me): Likewise.
13999 * inferior.h (trace_start_error): New prototype.
14000 (trace_start_error_with_name): Likewise.
14001
99e8a4f9
SDJ
140022017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
14003
14004 PR gdb/21164
14005 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
14006 NULL before using it.
14007 * symmisc.c (maintenance_print_symbols): Likewise.
14008 (maintenance_print_msymbols): Likewise.
14009
4e746bb6
TW
140102017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14011
14012 * NEWS: Add record Python bindings entry.
14013
140142017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14015
14016 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
14017 py-record-full.o.
14018 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
14019 * python/py-record-btrace.c, python/py-record-btrace.h,
14020 python/py-record-full.c, python/py-record-full.h: New file.
14021 * python/py-record.c: Add include for py-record-btrace.h and
14022 py-record-full.h.
14023 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
14024 recpy_instruction_history, recpy_function_call_history, recpy_begin,
14025 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
14026 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
14027 New definition.
14028 (gdbpy_initialize_btrace): New export.
14029 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
14030
140312017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14032
14033 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
14034 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
14035 * python/py-record.c: New file.
14036 * python/python-internal.h (gdbpy_start_recording,
14037 gdbpy_current_recording, gdpy_stop_recording,
14038 gdbpy_initialize_record): New export.
14039 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
14040 (python_GdbMethods): Add gdbpy_start_recording,
14041 gdbpy_current_recording and gdbpy_stop_recording.
14042
140432017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14044
14045 * record-btrace.c (record_btrace_record_method): New function.
14046 (init_record_btrace_ops): Initialize to_record_method.
14047 * record-full.c (record_full_record_method): New function.
14048 (init_record_full_ops, init_record_full_core_ops): Add
14049 record_full_record_method.
14050 * record.h (enum record_method): New enum.
14051 * target-debug.h (target_debug_print_enum_record_method: New define.
14052 * target-delegates.c: Regenerate.
14053 * target.c (target_record_method): New function.
14054 * target.h: Include record.h.
14055 (struct target_ops) <to_record_method>: New field.
14056 (target_record_method): New export.
14057
140582017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14059
14060 * record.h (record_start, record_stop): New export.
14061 * record.c (record_start, record_stop): New function.
14062
140632017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14064
14065 * btrace.c (btrace_fetch): Copy function call segments pointer
14066 into a vector.
14067 (btrace_clear): Clear the vector.
14068 (btrace_find_insn_by_number): Use binary search to find the correct
14069 function call segment.
14070 * btrace.h (brace_fun_p): New typedef.
14071 (struct btrace_thread_info) <functions>: New field.
14072
140732017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14074
14075 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
14076 * btrace.c (btrace_decode_error): ... here. New function.
14077 * btrace.h (btrace_decode_error): New export.
14078
140792017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14080
14081 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
14082 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
14083 btrace_find_insn_by_number): Remove special case for gaps.
14084 * btrace.h (btrace_insn_get_error): New export.
14085 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
14086 * record-btrace.c (btrace_insn_history): Print number for gaps.
14087 (record_btrace_info, record_btrace_goto): Handle gaps.
14088
3f77c769
TT
140892017-02-14 Tom Tromey <tom@tromey.com>
14090
14091 PR python/13598:
14092 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
14093 event.
14094 * python/py-evts.c (gdbpy_initialize_py_events): Add
14095 before_prompt registry.
14096 * python/py-events.h (events_object) <before_prompt>: New field.
14097
4c2c7ac6
MM
140982017-02-14 Markus Metzger <markus.t.metzger@intel.com>
14099
14100 * btrace.c (ftrace_new_switch): Preserve up link and flags.
14101
5cf30ebf
LM
141022017-02-13 Luis Machado <lgustavo@codesourcery.com>
14103
14104 * symfile (_initialize_symfile): Add usage text to the load command's
14105 help text.
14106
26a06916
SM
141072017-02-10 Simon Marchi <simon.marchi@ericsson.com>
14108
14109 * utils.c (defaulted_query): Don't query on secondary UIs.
14110
0b145e37
TT
141112017-02-10 Tom Tromey <tom@tromey.com>
14112
14113 * rust-lang.c (rust_get_disr_info): Remove unused variable.
14114
2d8365c4
TT
141152017-02-10 Tom Tromey <tom@tromey.com>
14116
14117 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
14118 "cleanup" local.
14119 * python/py-type.c (typy_legacy_template_argument): Remove
14120 unnecessary "cleanup" local.
14121
2bb8f231
TT
141222017-02-10 Tom Tromey <tom@tromey.com>
14123
14124 * python/python.c (do_start_initialization): New function, from
14125 _initialize_python.
14126 (_initialize_python): Call do_start_initialization.
14127 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
14128 goto.
14129
1bdfaf42
TT
141302017-02-10 Tom Tromey <tom@tromey.com>
14131
14132 * python/py-prettyprint.c (pretty_print_one_value): Use
14133 gdbpy_ref.
14134
88b6faea
TT
141352017-02-10 Tom Tromey <tom@tromey.com>
14136
14137 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
14138 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
14139 gdbpy_ref.
14140 * python/py-type.c (field_new): Use gdbpy_ref.
14141 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
14142 gdbpy_ref.
14143 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
14144 (py_free_pspace): Likewise.
14145 (pspace_to_pspace_object): Likewise.
14146 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
14147 (py_free_objfile): Likewise.
14148 (objfile_to_objfile_object): Likewise.
14149 * python/py-inferior.c (delete_thread_object): Use
14150 gdbpy_ref.
14151 (infpy_read_memory): Likewise.
14152 (py_free_inferior): Likewise.
14153 * python/py-evtregistry.c (create_eventregistry_object): Use
14154 gdbpy_ref.
14155 * python/py-event.c (create_event_object): Use gdbpy_ref.
14156
7780f186
TT
141572017-02-10 Tom Tromey <tom@tromey.com>
14158
14159 * python/py-ref.h (gdbpy_ref_policy): Now a template.
14160 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
14161 used.
14162 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
14163 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
14164 python/py-exitedevent.c, python/py-finishbreakpoint.c,
14165 python/py-framefilter.c, python/py-function.c,
14166 python/py-inferior.c, python/py-infevents.c,
14167 python/py-linetable.c, python/py-newobjfileevent.c,
14168 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
14169 python/py-signalevent.c, python/py-stopevent.c,
14170 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
14171 python/py-unwind.c, python/py-utils.c, python/py-value.c,
14172 python/py-varobj.c, python/py-xmethods.c, python/python.c,
14173 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
14174
d4b0bb18
TT
141752017-02-10 Tom Tromey <tom@tromey.com>
14176
14177 * ui-out.h (ui_out_emit_type): New class.
14178 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
14179 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
14180 and ui_out_emit_tuple.
14181 (enumerate_locals): Likewise.
14182 (py_mi_print_variables, py_print_locals, py_print_args): Use
14183 ui_out_emit_list.
14184 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
14185 ui_out_emit_list.
14186 * common/gdb_optional.h: New file.
14187
f67f945c
MG
141882017-02-10 Martin Galvan <martingalvan@sourceware.org>
14189
14190 * MAINTAINERS (Write After Approval): Update my e-mail address.
14191
18da0c51
MG
141922017-02-10 Martin Galvan <martingalvan@sourceware.org>
14193
14194 PR gdb/21122
14195 * breakpoint.c (_initialize_breakpoint): Update the help description
14196 of the 'commands' command to indicate that it takes a list argument.
14197
62c14536
SM
141982017-02-09 Simon Marchi <simon.marchi@ericsson.com>
14199
14200 * interps.c (current_interp_set_logging): Remove "return".
14201
ff6fa247
GB
142022017-02-09 Gary Benson <gbenson@redhat.com>
14203
14204 * symtab.c (add_symtab_completions): Prevent NULL pointer
14205 dereference.
14206
a474bd8e
PA
142072017-02-08 Pedro Alves <palves@redhat.com>
14208
14209 * interps.c (interp::interp): Remove reference to quiet_p.
14210 (interp_set): Make static. Remove dead "Switching to" output
14211 code.
14212 (interp_quiet_p, interp_set_quiet): Delete.
14213 (interpreter_exec_cmd): Don't set the interpreter quiet.
14214 * interps.h (interp_quiet_p): Make static.
14215 (class interp) <quiet_p>: Remove field
14216
3d7b173c
JG
142172017-02-08 Jerome Guitton <guitton@adacore.com>
14218
604c4576
JG
14219 * cli/cli-decode.c (find_command_name_length): Make it extern.
14220 * cli/cli-decode.h (find_command_name_length): Declare.
14221 * cli/cli-script.c (command_name_equals, line_first_arg):
14222 New functions.
14223 (process_next_line): Use cli-decode to parse command names.
14224 (build_command_line): Make args a constant pointer.
14225
142262017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 14227
3d7b173c
JG
14228 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
14229 Remove case-insensitive search.
14230
1291063d
JM
142312017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
14232
14233 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
14234 at the end of the line. Avoids an ARI warning.
14235
20b477a7
LM
142362017-02-06 Luis Machado <lgustavo@codesourcery.com>
14237
14238 * NEWS: Mention support for record/replay of Intel 64 rdrand and
14239 rdseed instructions.
14240 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
14241
3f7b46f2
IR
142422017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
14243
14244 PR tdep/20936
14245 Provide and use sparc32 and sparc64 target description XML files.
14246 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
14247 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
14248 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
14249 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
14250 * features/sparc/sparc32-solaris.xml: New file.
14251 * features/sparc/sparc64-solaris.xml: New file.
14252 * features/sparc/sparc32-solaris.c: Generated.
14253 * features/sparc/sparc64-solaris.c: Generated.
14254 * sparc-tdep.h: Account for differences in target descriptions.
14255 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
14256 (sparc32_register_type): Use target provided registers.
14257 (validate_tdesc_registers): New function.
14258 (sparc32_gdbarch_init): Use tdesc_has_registers.
14259 Set pseudoregister functions.
14260 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
14261 (sparc64_register_type): Use target provided registers.
14262 (sparc64_init_abi): Set pseudoregister functions.
14263
f0fd41c1
TT
142642017-02-03 Tom Tromey <tom@tromey.com>
14265
14266 PR rust/21097:
14267 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
14268 with a single member.
14269
d6f9b0fb
PA
142702017-02-03 Pedro Alves <palves@redhat.com>
14271
14272 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
14273 (cli_interp_base::~cli_interp_base): New.
14274 (cli_interp): New struct.
14275 (as_cli_interp): Cast the interp itself to cli_interp.
14276 (cli_interpreter_pre_command_loop): Rename to ...
14277 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
14278 parameter.
14279 (cli_interpreter_init): Rename to ...
14280 (cli_interp::init): ... this. Remove 'self' parameter. Use
14281 boolean. Make extern.
14282 (cli_interpreter_resume): Rename to ...
14283 (cli_interp::resume): ... this. Remove 'data' parameter. Make
14284 extern.
14285 (cli_interpreter_suspend): Rename to ...
14286 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
14287 extern.
14288 (cli_interpreter_exec): Rename to ...
14289 (cli_interp::exec): ... this. Remove 'data' parameter. Make
14290 extern.
14291 (cli_interpreter_supports_command_editing): Rename to ...
14292 (cli_interp_base::supports_command_editing): ... this. Remove
14293 'interp' parameter. Make extern.
14294 (cli_ui_out): Rename to ...
14295 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
14296 Make extern.
14297 (cli_set_logging): Rename to ...
14298 (cli_interp_base::set_logging): ... this. Remove 'interp'
14299 parameter. Make extern.
14300 (cli_interp_procs): Delete.
14301 (cli_interp_factory): Adjust to use "new".
14302 * cli/cli-interp.h: Include "interps.h".
14303 (struct cli_interp_base): New struct.
14304 * interps.c (struct interp): Delete. Fields moved to interps.h.
14305 (interp_new): Delete.
14306 (interp::interp, interp::~interp): New.
14307 (interp_set): Use bool, and return void. Assume the interpreter
14308 has suspend, init and resume methods, and that the all return
14309 void.
14310 (set_top_level_interpreter): interp_set returns void.
14311 (interp_ui_out): Adapt.
14312 (current_interp_set_logging): Adapt.
14313 (interp_data): Delete.
14314 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
14315 (interp_exec): Adapt.
14316 (top_level_interpreter_data): Delete.
14317 * interps.h (interp_init_ftype, interp_resume_ftype)
14318 (interp_suspend_ftype, interp_exec_ftype)
14319 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
14320 (class interp): New.
14321 (interp_new): Delete.
14322 (interp_set): Now returns void. Use bool.
14323 (interp_data, top_level_interpreter_data): Delete.
14324 * mi/mi-common.h: Include interps.h.
14325 (class mi_interp): Inherit from interp. Define a ctor. Declare
14326 init, resume, suspect, exec, interp_ui_out, set_logging and
14327 pre_command_loop methods.
14328 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
14329 (mi_interpreter_init): Rename to ...
14330 (mi_interp::init): ... this. Remove the 'interp' parameter, use
14331 bool, return void and make extern. Adjust.
14332 (mi_interpreter_resume): ... Rename to ...
14333 (mi_interp::resume): ... this. Remove the 'data' parameter,
14334 return void and make extern. Adjust.
14335 (mi_interpreter_suspend): ... Rename to ...
14336 (mi_interp::suspend): ... this. Remove the 'data' parameter,
14337 return void and make extern. Adjust.
14338 (mi_interpreter_exec): ... Rename to ...
14339 (mi_interp::exec): ... this. Remove the 'data' parameter and make
14340 extern. Adjust.
14341 (mi_interpreter_pre_command_loop): ... Rename to ...
14342 (mi_interp::pre_command_loop): ... this. Remove the 'self'
14343 parameter and make extern.
14344 (mi_on_normal_stop_1): Adjust.
14345 (mi_ui_out): Rename to ...
14346 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
14347 parameter and make extern. Adjust.
14348 (mi_set_logging): Rename to ...
14349 (mi_interp::set_logging): ... this. Remove the 'interp'
14350 parameter and make extern. Adjust.
14351 (mi_interp_procs): Delete.
14352 (mi_interp_factory): Adjust to use 'new'.
14353 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
14354 (mi_print_exception, mi_execute_command, mi_load_progress):
14355 Adjust.
14356 * tui/tui-interp.c (tui_interp): New class.
14357 (as_tui_interp): Return a tui_interp pointer.
14358 (tui_on_normal_stop, tui_on_signal_received)
14359 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
14360 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
14361 to use interp::interp_ui_out.
14362 (tui_init): Rename to ...
14363 (tui_interp::init): ... this. Remove the 'self' parameter, use
14364 bool, return void and make extern. Adjust.
14365 (tui_resume): Rename to ...
14366 (tui_interp::resume): ... this. Remove the 'data' parameter,
14367 return void and make extern. Adjust.
14368 (tui_suspend): Rename to ...
14369 (tui_interp::suspend): ... this. Remove the 'data' parameter,
14370 return void and make extern. Adjust.
14371 (tui_ui_out): Rename to ...
14372 (tui_interp::interp_ui_out): ... this. Remove the 'self'
14373 parameter, and make extern. Adjust.
14374 (tui_exec): Rename to ...
14375 (tui_interp::exec): ... this. Remove the 'data' parameter and
14376 make extern.
14377 (tui_interp_procs): Delete.
14378 (tui_interp_factory): Use "new".
14379
65c40c95
TT
143802017-02-02 Tom Tromey <tom@tromey.com>
14381
14382 * rust-exp.y (ends_raw_string, space_then_number)
14383 (rust_identifier_start_p): Return bool.
14384 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
14385 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
14386 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
14387 (rust_chartype_p): Return bool.
14388 (val_print_struct, rust_print_struct_def, rust_print_type):
14389 Update.
14390 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
14391 Return bool.
14392
b50f188d
TT
143932017-02-02 Tom Tromey <tom@tromey.com>
14394
14395 * rust-lang.c: Reindent.
14396
03c85b11
TT
143972017-02-02 Tom Tromey <tom@tromey.com>
14398
14399 * rust-lang.h (rust_crate_for_block): Update.
14400 * rust-lang.c (rust_crate_for_block): Return std::string.
14401 (rust_get_disr_info): Use std:;string, not
14402 gdb::unique_xmalloc_ptr.
14403 * rust-exp.y (crate_name): Update.
14404
9b6da501
PA
144052017-02-02 Pedro Alves <palves@redhat.com>
14406
14407 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
14408 field out of gdb_disassembler_test and make it static.
14409
ec4cb20b
PA
144102017-02-02 Pedro Alves <palves@redhat.com>
14411
14412 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
14413 mi1_interp and mi_interp fields.
14414
5be5dbf0
PA
144152017-02-02 Pedro Alves <palves@redhat.com>
14416
616268b6
PA
14417 * cli/cli-interp.c (struct saved_output_files, saved_output):
14418 Moved from cli/cli-logging.c.
14419 (cli_set_logging): New function.
14420 (cli_interp_procs): Install cli_set_logging.
14421 * cli/cli-interp.h (make_logging_output, cli_set_logging):
14422 Declare.
14423 * cli/cli-logging.c (struct saved_output_files, saved_output):
14424 Moved to cli/cli-interp.c.
14425 (pop_output_files): Don't save outputs here.
14426 (make_logging_output): New function.
14427 (handle_redirections): Don't build tee nor save previous outputs
14428 here.
14429 * interps.c (current_interp_set_logging): Change prototype.
14430 Assume there's always a set_logging_proc method installed.
14431 * interps.h (interp_set_logging_ftype): Change prototype.
14432 (current_interp_set_logging): Change prototype and adjust comment.
14433 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
14434 use make_logging_output.
14435 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
144362017-02-02 Pedro Alves <palves@redhat.com>
14437
5be5dbf0
PA
14438 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
14439 from ...
14440 (set_logging_overwrite): ... here.
14441 (logging_no_redirect_file): Delete.
14442 (set_logging_redirect): Don't handle redirection on the fly.
14443 Instead warn that "logging off" / "logging on" is necessary.
14444 (pop_output_files): Delete references to logging_no_redirect_file.
14445 (show_logging_command): Always speak in terms of what will happen
14446 once logging is reenabled.
14447
c99cc448
PA
144482017-02-02 Pedro Alves <palves@redhat.com>
14449
14450 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
14451
8b172ce7
PA
144522017-02-02 Pedro Alves <palves@redhat.com>
14453
14454 * disasm.c (gdb_pretty_print_insn): Rename to ...
14455 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
14456 Remove gdbarch parameter. Adapt to clear the object's buffers
14457 instead of allocating new buffers, and to print using the object's
14458 gdb_disassembler instead of calling gdb_print_insn.
14459 (dump_insns): Use gdb_pretty_print_disassembler.
14460 * disasm.h (gdb_pretty_print_insn): Delete declaration.
14461 (gdb_pretty_print_disassembler): New class.
14462 * record-btrace.c (btrace_insn_history): Use
14463 gdb_pretty_print_disassembler.
14464
d7e74731
PA
144652017-02-02 Pedro Alves <palves@redhat.com>
14466
14467 * ada-lang.c (type_as_string): Use string_file.
14468 * ada-valprint.c (ada_print_floating): Use string_file.
14469 * ada-varobj.c (ada_varobj_scalar_image)
14470 (ada_varobj_get_value_image): Use string_file.
14471 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
14472 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
14473 * breakpoint.c (update_inserted_breakpoint_locations)
14474 (insert_breakpoint_locations, reattach_breakpoints)
14475 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
14476 (print_it_watchpoint): Use string_file.
14477 (save_breakpoints): Use stdio_file.
14478 * c-exp.y (oper): Use string_file.
14479 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
14480 tee_file.
14481 (pop_output_files): Use delete.
14482 (handle_redirections): Use stdio_file and tee_file.
14483 * cli/cli-setshow.c (do_show_command): Use string_file.
14484 * compile/compile-c-support.c (c_compute_program): Use
14485 string_file.
14486 * compile/compile-c-symbols.c (generate_vla_size): Take a
14487 'string_file &' instead of a 'ui_file *'.
14488 (generate_c_for_for_one_variable): Take a 'string_file &' instead
14489 of a 'ui_file *'. Use string_file.
14490 (generate_c_for_variable_locations): Take a 'string_file &'
14491 instead of a 'ui_file *'.
14492 * compile/compile-internal.h (generate_c_for_for_one_variable):
14493 Take a 'string_file &' instead of a 'ui_file *'.
14494 * compile/compile-loc2c.c (push, pushf, unary, binary)
14495 (print_label, pushf_register_address, pushf_register)
14496 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
14497 'ui_file *'. Adjust.
14498 * compile/compile.c (compile_to_object): Use string_file.
14499 * compile/compile.h (compile_dwarf_expr_to_c)
14500 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
14501 'ui_file *'.
14502 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
14503 (replace_typedefs_qualified_name): Use string_file and
14504 obstack_copy0.
14505 * disasm.c (gdb_pretty_print_insn): Use string_file.
14506 (gdb_disassembly): Adjust reference the null_stream global.
14507 (do_ui_file_delete): Delete.
14508 (gdb_insn_length): Use null_stream.
14509 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
14510 * dwarf2loc.c (dwarf2_compile_property_to_c)
14511 (locexpr_generate_c_location, loclist_generate_c_location): Take a
14512 'string_file &' instead of a 'ui_file *'.
14513 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
14514 * dwarf2read.c (do_ui_file_peek_last): Delete.
14515 (dwarf2_compute_name): Use string_file.
14516 * event-top.c (gdb_setup_readline): Use stdio_file.
14517 * gdbarch.sh (verify_gdbarch): Use string_file.
14518 * gdbtypes.c (safe_parse_type): Use null_stream.
14519 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
14520 string_file.
14521 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
14522 'string_file *' instead of a 'ui_file *'.
14523 (gdbscm_arch_disassemble): Use string_file.
14524 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
14525 * guile/scm-ports.c (class ioscm_file_port): Now a class that
14526 inherits from ui_file.
14527 (ioscm_file_port_delete, ioscm_file_port_rewind)
14528 (ioscm_file_port_put): Delete.
14529 (ioscm_file_port_write): Rename to ...
14530 (ioscm_file_port::write): ... this. Remove file_port_magic
14531 checks.
14532 (ioscm_file_port_new): Delete.
14533 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
14534 ui_file_up.
14535 * guile/scm-type.c (tyscm_type_name): Use string_file.
14536 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
14537 Use string_file.
14538 * infcmd.c (print_return_value_1): Use string_file.
14539 * infrun.c (print_target_wait_results): Use string_file.
14540 * language.c (add_language): Use string_file.
14541 * location.c (explicit_to_string_internal): Use string_file.
14542 * main.c (captured_main_1): Use null_file.
14543 * maint.c (maintenance_print_architecture): Use stdio_file.
14544 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
14545 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
14546 event_channel>: Change type to mi_console_file pointer.
14547 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
14548 (mi_console_file_delete): Delete.
14549 (struct mi_console_file): Delete.
14550 (mi_console_file_magic): Delete.
14551 (mi_console_file_new): Delete.
14552 (mi_console_file::mi_console_file): New.
14553 (mi_console_file_delete): Delete.
14554 (mi_console_file_fputs): Delete.
14555 (mi_console_file::write): New.
14556 (mi_console_raw_packet): Delete.
14557 (mi_console_file::flush): New.
14558 (mi_console_file_flush): Delete.
14559 (mi_console_set_raw): Rename to ...
14560 (mi_console_file::set_raw): ... this.
14561 * mi/mi-console.h (class mi_console_file): New class.
14562 (mi_console_file_new, mi_console_set_raw): Delete.
14563 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
14564 (mi_set_logging): Use delete and tee_file. Adjust.
14565 * mi/mi-main.c (output_register): Use string_file.
14566 (mi_cmd_data_evaluate_expression): Use string_file.
14567 (mi_cmd_data_read_memory): Use string_file.
14568 (mi_cmd_execute, print_variable_or_computed): Use string_file.
14569 * mi/mi-out.c (mi_ui_out::main_stream): New.
14570 (mi_ui_out::rewind): Use main_stream and
14571 string_file.
14572 (mi_ui_out::put): Use main_stream and string_file.
14573 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
14574 Allocate a 'string_file' instead.
14575 (mi_out_new): Don't allocate a mem_fileopen stream here.
14576 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
14577 (mi_ui_out::main_stream): Declare method.
14578 * printcmd.c (eval_command): Use string_file.
14579 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
14580 * python/py-arch.c (archpy_disassemble): Use string_file.
14581 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
14582 * python/py-frame.c (frapy_str): Use string_file.
14583 * python/py-framefilter.c (py_print_type, py_print_single_arg):
14584 Use string_file.
14585 * python/py-type.c (typy_str): Use string_file.
14586 * python/py-unwind.c (unwind_infopy_str): Use string_file.
14587 * python/py-value.c (valpy_str): Use string_file.
14588 * record-btrace.c (btrace_insn_history): Use string_file.
14589 * regcache.c (regcache_print): Use stdio_file.
14590 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
14591 * remote.c (escape_buffer): Use string_file.
14592 * rust-lang.c (rust_get_disr_info): Use string_file.
14593 * serial.c (serial_open_ops_1): Use stdio_file.
14594 (do_serial_close): Use delete.
14595 * stack.c (print_frame_arg): Use string_file.
14596 (print_frame_args): Remove local mem_fileopen stream, not used.
14597 (print_frame): Use string_file.
14598 * symmisc.c (maintenance_print_symbols): Use stdio_file.
14599 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
14600 Take a 'string_file *' instead of a 'ui_file *'.
14601 * top.c (new_ui): Use stdio_file and stderr_file.
14602 (free_ui): Use delete.
14603 (execute_command_to_string): Use string_file.
14604 (quit_confirm): Use string_file.
14605 * tracepoint.c (collection_list::append_exp): Use string_file.
14606 * tui/tui-disasm.c (tui_disassemble): Use string_file.
14607 * tui/tui-file.c: Don't include "ui-file.h".
14608 (enum streamtype, struct tui_stream): Delete.
14609 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
14610 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
14611 (tui_file::tui_file): New method.
14612 (tui_file_fputs): Delete.
14613 (tui_file_get_strbuf): Delete.
14614 (tui_file::puts): New method.
14615 (tui_file_adjust_strbuf): Delete.
14616 (tui_file_flush): Delete.
14617 (tui_file::flush): New method.
14618 * tui/tui-file.h: Tweak intro comment.
14619 Include ui-file.h.
14620 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
14621 (tui_file_adjust_strbuf): Delete declarations.
14622 (class tui_file): New class.
14623 * tui/tui-io.c (tui_initialize_io): Use tui_file.
14624 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
14625 (tui_register_format): Use string_stream.
14626 * tui/tui-stack.c (tui_make_status_line): Use string_file.
14627 (tui_get_function_from_frame): Use string_file.
14628 * typeprint.c (type_to_string): Use string_file.
14629 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
14630 (null_stream): New global.
14631 (ui_file_delete): Delete.
14632 (ui_file::ui_file): New.
14633 (null_file_isatty): Delete.
14634 (ui_file::~ui_file): New.
14635 (null_file_rewind): Delete.
14636 (ui_file::printf): New.
14637 (null_file_put): Delete.
14638 (null_file_flush): Delete.
14639 (ui_file::putstr): New.
14640 (null_file_write): Delete.
14641 (ui_file::putstrn): New.
14642 (null_file_read): Delete.
14643 (ui_file::putc): New.
14644 (null_file_fputs): Delete.
14645 (null_file_write_async_safe): Delete.
14646 (ui_file::vprintf): New.
14647 (null_file_delete): Delete.
14648 (null_file::write): New.
14649 (null_file_fseek): Delete.
14650 (null_file::puts): New.
14651 (ui_file_data): Delete.
14652 (null_file::write_async_safe): New.
14653 (gdb_flush, ui_file_isatty): Adjust.
14654 (ui_file_put, ui_file_rewind): Delete.
14655 (ui_file_write): Adjust.
14656 (ui_file_write_for_put): Delete.
14657 (ui_file_write_async_safe, ui_file_read): Adjust.
14658 (ui_file_fseek): Delete.
14659 (fputs_unfiltered): Adjust.
14660 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
14661 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
14662 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
14663 (set_ui_file_data): Delete.
14664 (string_file::~string_file, string_file::write)
14665 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
14666 (do_ui_file_as_string, ui_file_as_string): Delete.
14667 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
14668 (struct mem_file): Delete.
14669 (mem_file_new): Delete.
14670 (stdio_file::stdio_file): New.
14671 (mem_file_delete): Delete.
14672 (stdio_file::stdio_file): New.
14673 (mem_fileopen): Delete.
14674 (stdio_file::~stdio_file): New.
14675 (mem_file_rewind): Delete.
14676 (stdio_file::set_stream): New.
14677 (mem_file_put): Delete.
14678 (stdio_file::open): New.
14679 (mem_file_write): Delete.
14680 (stdio_file_magic, struct stdio_file): Delete.
14681 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
14682 (stdio_file::flush): New.
14683 (stdio_file_read): Rename to ...
14684 (stdio_file::read): ... this. Adjust.
14685 (stdio_file_write): Rename to ...
14686 (stdio_file::write): ... this. Adjust.
14687 (stdio_file_write_async_safe): Rename to ...
14688 (stdio_file::write_async_safe) ... this. Adjust.
14689 (stdio_file_fputs): Rename to ...
14690 (stdio_file::puts) ... this. Adjust.
14691 (stdio_file_isatty): Delete.
14692 (stdio_file_fseek): Delete.
14693 (stdio_file::isatty): New.
14694 (stderr_file_write): Rename to ...
14695 (stderr_file::write) ... this. Adjust.
14696 (stderr_file_fputs): Rename to ...
14697 (stderr_file::puts) ... this. Adjust.
14698 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
14699 (stderr_file::stderr_file): New.
14700 (tee_file_magic): Delete.
14701 (struct tee_file): Delete.
14702 (tee_file::tee_file): New.
14703 (tee_file_new): Delete.
14704 (tee_file::~tee_file): New.
14705 (tee_file_delete): Delete.
14706 (tee_file_flush): Rename to ...
14707 (tee_file::flush): ... this. Adjust.
14708 (tee_file_write): Rename to ...
14709 (tee_file::write): ... this. Adjust.
14710 (tee_file::write_async_safe): New.
14711 (tee_file_fputs): Rename to ...
14712 (tee_file::puts): ... this. Adjust.
14713 (tee_file_isatty): Rename to ...
14714 (tee_file::isatty): ... this. Adjust.
14715 * ui-file.h (struct obstack, struct ui_file): Don't
14716 forward-declare.
14717 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
14718 (ui_file_write_ftype)
14719 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
14720 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
14721 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
14722 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
14723 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
14724 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
14725 (set_ui_file_fseek): Delete.
14726 (ui_file_data, ui_file_delete, ui_file_rewind)
14727 (struct ui_file): New.
14728 (ui_file_up): New.
14729 (class null_file): New.
14730 (null_stream): Declare.
14731 (ui_file_write_for_put, ui_file_put): Delete.
14732 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
14733 Delete.
14734 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
14735 (gdb_fopen, tee_file_new): Delete.
14736 (struct string_file): New.
14737 (struct stdio_file): New.
14738 (stdio_file_up): New.
14739 (struct stderr_file): New.
14740 (class tee_file): New.
14741 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
14742 of a 'ui_file *'. Adjust.
14743 * ui-out.h (class ui_out) <field_stream>: Likewise.
14744 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
14745 (null_stream): Delete.
14746 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
14747 Adjust.
14748 * utils.h (struct ui_file): Delete forward declaration..
14749 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
14750 (error_stream): Take a 'string_file &' instead of a
14751 'ui_file *'.
14752 * varobj.c (varobj_value_get_print_value): Use string_file.
14753 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
14754 * gdbarch.c: Regenerate.
14755
187808b0
PA
147562017-02-02 Pedro Alves <palves@redhat.com>
14757
14758 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
14759 (gdb_pretty_print_insn): ... this. Now a free function. Add back
14760 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
14761 Adjust to call gdb_print_insn instead of
14762 gdb_disassembler::print_insn.
14763 (dump_insns, do_mixed_source_and_assembly_deprecated)
14764 (do_mixed_source_and_assembly, do_assembly_only): Add back a
14765 'gdbarch' parameter. Remove gdb_disassembler parameter.
14766 (gdb_disassembly): Don't allocate a gdb_disassembler here.
14767 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
14768 declaration.
14769 (gdb_pretty_print_insn): Re-add declaration.
14770 * record-btrace.c (btrace_insn_history): Don't allocate a
14771 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
14772
7a8eb317
SM
147732017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
14774
14775 * disasm.h (gdb_disassembly): Remove file_string parameter.
14776 * disasm.c (gdb_disassembly): Likewise.
14777 * cli/cli-cmds.c (print_disassembly): Adapt.
14778 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
14779 * stack.c (do_gdb_disassembly): Likewise.
14780
7346ef59
AA
147812017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
14782
14783 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
14784 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
14785 targets. And if the implicit value is longer than needed, extract
14786 the first bytes instead of the "least significant" ones.
14787
cd4007e4
MM
147882017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14789
14790 * btrace.c (btrace_enable): Do not call btrace_add_pc for
14791 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
14792 (btrace_fetch): Assert can_access_registers_ptid.
14793 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
14794 validate_registers_access.
14795
cf77c34e
MM
147962017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14797
14798 * gdbthread.h (can_access_registers_ptid): New.
14799 * thread.c (can_access_registers_ptid): New.
14800
be85ce7d
PA
148012017-02-01 Pedro Alves <palves@redhat.com>
14802
14803 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
14804
29b0b251
PA
148052017-01-31 Pedro Alves <palves@redhat.com>
14806
14807 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
14808 Fix typos.
14809
289b5b24
PA
148102017-01-31 Pedro Alves <palves@redhat.com>
14811
14812 * stack.c (print_frame_args): Remove local mem_fileopen stream,
14813 not used.
14814
b47413b4
PA
148152017-01-31 Pedro Alves <palves@redhat.com>
14816
14817 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
14818
60adb36c
PA
148192017-01-31 Pedro Alves <palves@redhat.com>
14820
14821 * common/scoped_restore.h
14822 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
14823 change the value's parameter type to T2.
14824 (make_scoped_restore): Likewise.
14825
2735833d
WT
148262017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14827 Richard Henderson <rth@redhat.com>
14828
14829 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
14830 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
14831 GS_BASE for older kernels.
14832 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
14833 GS_BASE for older kernels.
14834 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
14835 and GS_BASE to the offset table.
14836 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
14837 system register group.
14838 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
14839 for older kernels.
14840 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
14841 amd64 ABI.
14842 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
14843 AMD64_GSBASE_REGNUM.
14844 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
14845 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
14846 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
14847 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
14848 i386/64bit-segments.xml in those rules.
14849 * features/i386/64bit-segments.xml: New file.
14850 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
14851 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
14852 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
14853 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
14854 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
14855 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
14856 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
14857 * features/i386/amd64-avx-linux.c: Regenerated.
14858 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
14859 * features/i386/amd64-avx-mpx.c: Regenerated.
14860 * features/i386/amd64-avx512-linux.c: Regenerated.
14861 * features/i386/amd64-linux.c: Regenerated.
14862 * features/i386/amd64-mpx-linux.c: Regenerated.
14863 * features/i386/i386-avx-mpx-linux.c: Regenerated.
14864 * features/i386/i386-avx-mpx.c: Regenerated.
14865 * features/i386/x32-avx-linux.c: Regenerated.
14866 * features/i386/x32-avx512-linux.c: Regenerated.
14867 * regformats/i386/amd64-avx-linux.dat: Regenerated.
14868 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
14869 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
14870 * regformats/i386/amd64-linux.dat: Regenerated.
14871 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
14872 * regformats/i386/x32-avx-linux.dat: Regenerated.
14873 * regformats/i386/x32-avx512-linux.dat: Regenerated.
14874 * regformats/i386/x32-linux.dat: Regenerated.
14875
8884e97e
WT
148762017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14877
14878 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
14879 Set to AMD64_NUM_REGS.
14880
7005d26a
WT
148812017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14882
14883 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
14884 that checks validity of a register number.
14885
4bd2e1b2
KC
148862017-01-27 Kees Cook <keescook@google.com>
14887
14888 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
14889 fetch_fpregs if target has fpa registers.
14890 (arm_linux_store_inferior_registers): Call store_fpregs if target
14891 has fpa registers.
14892
7cf1de6c
AA
148932017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
14894
14895 * cris-tdep.c (cris_gdbarch_init): Remove check for
14896 info.byte_order and force it to BFD_ENDIAN_LITTLE.
14897
874a1c8c
AT
148982017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
14899
14900 * corelow.c (get_core_register_section): Check for regset
14901 existence before checking for REGSET_VARIABLE_SIZE.
14902
d8b49cf0
YQ
149032017-01-26 Yao Qi <yao.qi@linaro.org>
14904 Pedro Alves <palves@redhat.com>
14905
14906 PR gdb/20939
14907 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
14908 call memory_error, save memaddr instead.
14909 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
14910 negative, cal memory_error.
14911 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
14912
658ca58c
YQ
149132017-01-26 Yao Qi <yao.qi@linaro.org>
14914
14915 * disasm-selftests.c (memory_error_test): New function.
14916 (_initialize_disasm_selftests): Register memory_error_test.
14917
79843d45
YQ
149182017-01-26 Yao Qi <yao.qi@linaro.org>
14919
14920 * Makefile.in (SFILES): Add disasm-selftests.c and
14921 selftest-arch.c.
14922 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
14923 * disasm-selftests.c: New file.
14924 * selftest-arch.c: New file.
14925 * selftest-arch.h: New file.
14926
8cafda32
YQ
149272017-01-26 Yao Qi <yao.qi@linaro.org>
14928
14929 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
14930 to bfd_arch_mep. Don't return 0 if section is not
14931 found. Call print_insn_mep.
14932
e47ad6c0
YQ
149332017-01-26 Pedro Alves <palves@redhat.com>
14934 Yao Qi <yao.qi@linaro.org>
14935
14936 * arm-tdep.c: Include "disasm.h".
14937 (gdb_print_insn_arm): Update code to get gdbarch.
14938 * disasm.c (dis_asm_read_memory): Change it to
14939 gdb_disassembler::dis_asm_read_memory.
14940 (dis_asm_memory_error): Likewise.
14941 (dis_asm_print_address): Likewise.
14942 (gdb_pretty_print_insn): Change it to
14943 gdb_disassembler::pretty_print_insn.
14944 (dump_insns): Add one argument gdb_disassemlber. All
14945 callers updated.
14946 (do_mixed_source_and_assembly_deprecated): Likewise.
14947 (do_mixed_source_and_assembly): Likewise.
14948 (do_assembly_only): Likewise.
14949 (gdb_disassembler::gdb_disassembler): New.
14950 (gdb_disassembler::print_insn): New.
14951 * disasm.h (class gdb_disassembler): New.
14952 (gdb_pretty_print_insn): Remove declaration.
14953 (gdb_disassemble_info): Likewise.
14954 * guile/scm-disasm.c (class gdbscm_disassembler): New.
14955 (gdbscm_disasm_read_memory_worker): Update.
14956 (gdbscm_disasm_read_memory): Update.
14957 (gdbscm_disasm_memory_error): Remove.
14958 (gdbscm_disasm_print_address): Remove.
14959 (gdbscm_disassembler::gdbscm_disassembler): New.
14960 (gdbscm_print_insn_from_port): Update.
14961 * mips-tdep.c: Include disasm.h.
14962 (gdb_print_insn_mips): Update code to get gdbarch.
14963 * record-btrace.c (btrace_insn_history): Update.
14964 * spu-tdep.c: Include disasm.h.
14965 (struct spu_dis_asm_data): Remove.
14966 (struct spu_dis_asm_info): New.
14967 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
14968 SPU id.
14969 (gdb_print_insn_spu): Cast disassemble_info to
14970 spu_dis_asm_info.
14971
80d75874
YQ
149722017-01-26 Yao Qi <yao.qi@linaro.org>
14973
14974 * disasm.c (do_ui_file_delete): Delete.
14975 (gdb_insn_length): Move code creating stream to ...
14976 * utils.c (null_stream): ... here. New function.
14977 * utils.h (null_stream): Declare.
14978
60685cd0
SM
149792017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14980
14981 * python/py-inferior.c (find_thread_object): Return directly
14982 from the loop. Remove "found" variable.
14983
eb1cdb62
JB
149842017-01-21 Joel Brobecker <brobecker@adacore.com>
14985
14986 GDB 7.12.1 released.
14987
b1ce6568
SM
149882017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14989
14990 * python/py-function.c (fnpy_call): Reorder declarations to have
14991 the gdbpy_enter object declared first.
14992 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
14993
6f8b0407
SM
149942017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14995
fec93fb1 14996 PR python/21068
6f8b0407
SM
14997 * python/python-internal.h (PyMem_RawMalloc): Define for
14998 Python < 3.4.
14999 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
15000 PyMem_RawMalloc instead of PyMem_Malloc.
15001
78cbbba8
LM
150022017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
15003 Luis Machado <lgustavo@codesourcery.com>
15004
15005 * NEWS (New commands): Mention flash-erase.
15006 (New MI commands): Mention target-flash-erase.
15007 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
15008 command.
15009 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
15010 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
15011 * target.c (flash_erase_command): New function.
15012 (initialize_targets): Add new flash-erase command.
15013 * target.h (flash_erase_command): New declaration.
15014
2132fe85
JB
150152017-01-20 Joel Brobecker <brobecker@adacore.com>
15016
15017 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
15018 HAVE_SYS_PROCFS_H is defined.
15019
d1dff226
AH
150202017-01-18 Alan Hayward <alan.hayward@arm.com>
15021
15022 * remote.c (struct cached_reg): Change data into a pointer.
15023 * (stop_reply_dtr): Free data pointers before deleting vector.
15024 (process_stop_reply): Likewise.
15025 (remote_parse_stop_reply): Allocate space for data
15026
9890e433
AH
150272017-01-18 Alan Hayward <alan.hayward@arm.com>
15028
15029 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
15030 MAX_REGISTER_SIZE.
15031 (amd64_pseudo_register_read_value): Likewise.
15032 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
15033 (store_register_using_P): Likewise.
15034 * regcache.c (regcache_xfer_part): Likewise.
15035
7a36499a
IR
150362017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
15037
15038 Split real and pseudo registers.
15039 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
15040 (sparc32_pseudo_regnum): New enum.
15041 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
15042 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
15043 (SPARC32_CP0_REGISTERS): New macro.
15044 (sparc32_pseudo_register_name): New function.
15045 (sparc32_register_name): Use sparc32_pseudo_register_name.
15046 (sparc32_pseudo_register_type): New function.
15047 (sparc32_register_type): Use sparc32_pseudo_register_type.
15048 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
15049 pseudo register numbers.
15050 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
15051 (SPARC64_CP0_REGISTERS): New macro.
15052 (sparc64_pseudo_register_name): New function.
15053 (sparc64_register_name): Use sparc64_pseudo_register_name.
15054 (sparc64_pseudo_register_type): New function.
15055 (sparc64_register_type): Use sparc64_pseudo_register_type.
15056 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
15057 pseudo register numbers.
15058 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
15059 sparc64_store_arguments): Handle pseudo register numbers.
15060
6f8976bf
YQ
150612017-01-13 Yao Qi <yao.qi@linaro.org>
15062
15063 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
15064 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
15065 output.
15066 (getpkt_or_notif_sane_1): Likewise.
15067
e4241ace
YQ
150682017-01-13 Yao Qi <yao.qi@linaro.org>
15069
15070 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
15071 of CC. Pass "-x c++-header" instead of "-x c".
15072
3015c064
SM
150732017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15074
15075 * remote.c (remote_can_async_p): Update comment.
15076
fde1b17d
SM
150772017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15078
15079 * linux-nat.c (linux_nat_can_async_p): Update comment.
15080
ca1ca08b
SM
150812017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15082
15083 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
15084
4ad2da73
SM
150852017-01-11 Simon Marchi <simon.marchi@ericsson.com>
15086
15087 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
15088
c8b23b3f
TT
150892017-01-10 Tom Tromey <tom@tromey.com>
15090
15091 * python/py-type.c (typy_legacy_template_argument): Update.
15092 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
15093 ~demangle_parse_info): Declare new members.
15094 (cp_demangled_name_to_comp): Return unique_ptr.
15095 (cp_demangled_name_parse_free)
15096 (make_cleanup_cp_demangled_name_parse_free)
15097 (cp_new_demangle_parse_info): Remove.
15098 * cp-support.c (do_demangled_name_parse_free_cleanup)
15099 (make_cleanup_cp_demangled_name_parse_free): Remove.
15100 (inspect_type, cp_canonicalize_string_full)
15101 (cp_canonicalize_string): Update.
15102 (mangled_name_to_comp): Change return type.
15103 (cp_class_name_from_physname, method_name_from_physname)
15104 (cp_func_name, cp_remove_params): Update.
15105 * cp-name-parser.y (demangle_parse_info): New constructor, from
15106 cp_new_demangle_parse_info.
15107 (~demangle_parse_info): New destructor, from
15108 cp_demangled_name_parse_free.
15109 (cp_merge_demangle_parse_infos): Update.
15110 (cp_demangled_name_to_comp): Change return type.
15111
1ac32117
TT
151122017-01-10 Tom Tromey <tom@tromey.com>
15113
15114 * top.c (prevent_dont_repeat): Change return type.
15115 * python/python.c (execute_gdb_command): Use std::string.
15116 Update.
15117 * guile/guile.c (gdbscm_execute_gdb_command): Update.
15118 * command.h (prevent_dont_repeat): Change return type.
15119 * breakpoint.c (bpstat_do_actions_1): Update.
15120
0cf08227
TT
151212017-01-10 Tom Tromey <tom@tromey.com>
15122
15123 * value.h (scoped_value_mark::~scoped_value_mark): Call
15124 free_to_mark.
15125 (scoped_value_mark::free_to_mark): New method.
15126 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
15127 scoped_value_mark.
15128
eb115069
TT
151292017-01-10 Tom Tromey <tom@tromey.com>
15130
15131 * python/py-value.c (valpy_dereference, valpy_referenced_value)
15132 (valpy_reference_value, valpy_const_value, valpy_get_address)
15133 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
15134 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
15135 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
15136 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
15137 scoped_value_mark.
15138 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
15139 * value.h (scoped_value_mark): New class.
15140
906768f9
TT
151412017-01-10 Tom Tromey <tom@tromey.com>
15142
15143 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
15144 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
15145 * psymtab.c (discard_psymtabs_upto): Remove.
15146 (make_cleanup_discard_psymtabs): Remove.
15147 (struct psymtab_state): Remove.
15148
bef155c3
TT
151492017-01-10 Tom Tromey <tom@tromey.com>
15150
15151 * record-full.c (record_full_save_cleanups): Remove.
15152 (record_full_save): Use gdb::unlinker.
15153 * gcore.c (do_bfd_delete_cleanup): Remove.
15154 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
15155 cleanups.
15156 * dwarf2read.c (unlink_if_set): Remove.
15157 (write_psymtabs_to_index): Use gdb::unlinker.
15158 * common/gdb_unlinker.h: New file.
15159
192b62ce
TT
151602017-01-10 Tom Tromey <tom@tromey.com>
15161
15162 * windows-tdep.c (windows_xfer_shared_library): Update.
15163 * windows-nat.c (windows_make_so): Update.
15164 * utils.h (make_cleanup_bfd_unref): Remove.
15165 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
15166 * symfile.h (symfile_bfd_open)
15167 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
15168 * symfile.c (read_symbols, symbol_file_add)
15169 (separate_debug_file_exists): Update.
15170 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
15171 (generic_load, reread_symbols): Update.
15172 * symfile-mem.c (symbol_file_add_from_memory): Update.
15173 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
15174 (spu_symbol_file_add_from_memory): Update.
15175 * solist.h (struct target_so_ops) <bfd_open>: Return
15176 gdb_bfd_ref_ptr.
15177 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
15178 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
15179 gdb_bfd_ref_ptr.
15180 (solib_map_sections, reload_shared_libraries_1): Update.
15181 * solib-svr4.c (enable_break): Update.
15182 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
15183 * solib-frv.c (enable_break2): Update.
15184 * solib-dsbt.c (enable_break): Update.
15185 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
15186 gdb_bfd_ref_ptr.
15187 (darwin_solib_get_all_image_info_addr_at_init): Update.
15188 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
15189 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
15190 * record-full.c (record_full_save): Update.
15191 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
15192 * procfs.c (insert_dbx_link_bpt_in_file): Update.
15193 * minidebug.c (find_separate_debug_file_in_section): Return
15194 gdb_bfd_ref_ptr.
15195 * machoread.c (macho_add_oso_symfile): Change abfd to
15196 gdb_bfd_ref_ptr.
15197 (macho_symfile_read_all_oso): Update.
15198 (macho_check_dsym): Return gdb_bfd_ref_ptr.
15199 (macho_symfile_read): Update.
15200 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
15201 (jit_bfd_try_read_symtab): Update.
15202 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
15203 (gdb_bfd_openw, gdb_bfd_openr_iovec)
15204 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
15205 gdb_bfd_ref_ptr.
15206 (gdb_bfd_ref_policy): New struct.
15207 (gdb_bfd_ref_ptr): New typedef.
15208 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
15209 (gdb_bfd_openw, gdb_bfd_openr_iovec)
15210 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
15211 gdb_bfd_ref_ptr.
15212 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
15213 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
15214 (gcore_command): Update.
15215 * exec.c (exec_file_attach): Update.
15216 * elfread.c (elf_symfile_read): Update.
15217 * dwarf2read.c (dwarf2_get_dwz_file): Update.
15218 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
15219 (open_and_init_dwo_file): Update.
15220 (open_dwp_file): Return gdb_bfd_ref_ptr.
15221 (open_and_init_dwp_file): Update.
15222 * corelow.c (core_open): Update.
15223 * compile/compile-object-load.c (compile_object_load): Update.
15224 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
15225 * coffread.c (coff_symfile_read): Update.
15226 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
15227 gdb_bfd_ref_ptr. Rename.
15228 (dump_bfd_file, restore_command): Update.
15229 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
15230 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
15231 (find_separate_debug_file_by_buildid): Update.
15232
50315b21
TT
152332017-01-10 Tom Tromey <tom@tromey.com>
15234
15235 * common/gdb_ref_ptr.h: New file.
15236 * python/py-ref.h (struct gdbpy_ref_policy): New.
15237 (gdbpy_ref): Now a typedef.
15238
fc4007c9
TT
152392017-01-10 Tom Tromey <tom@tromey.com>
15240
15241 * utils.h (make_cleanup_htab_delete): Don't declare.
15242 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
15243 Remove.
15244 * linespec.c (decode_compound_collector): Add constructor,
15245 destructor.
15246 (lookup_prefix_sym): Remove cleanup.
15247 (symtab_collector): Add constructor, destructor.
15248 (collect_symtabs_from_filename): Remove cleanup.
15249 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
15250 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
15251 Use htab_up.
15252 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
15253 * dwarf2read.c (dw2_expand_symtabs_matching)
15254 (dw2_map_symbol_filenames, dwarf_decode_macros)
15255 (write_psymtabs_to_index): Use htab_up.
15256 * dwarf2loc.c (func_verify_no_selftailcall)
15257 (call_site_find_chain_1, func_verify_no_selftailcall)
15258 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
15259 std::vector, gdb::unique_xmalloc_ptr.
15260 (call_sitep): Remove typedef.
15261 (dwarf2_locexpr_baton_eval): Remove unused variable.
15262
8dbcee67
TT
152632017-01-10 Tom Tromey <tom@tromey.com>
15264
15265 * python/python-internal.h (make_cleanup_py_decref)
15266 (make_cleanup_py_xdecref): Don't declare.
15267 * python/py-utils.c (py_decref, make_cleanup_py_decref)
15268 (py_xdecref, make_cleanup_py_xdecref): Remove.
15269
13df46cc
TT
152702017-01-10 Tom Tromey <tom@tromey.com>
15271
15272 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
15273 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
15274
06fc9bf7
TT
152752017-01-10 Tom Tromey <tom@tromey.com>
15276
15277 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
15278
830a4934
TT
152792017-01-10 Tom Tromey <tom@tromey.com>
15280
15281 * python/py-utils.c (unicode_to_encoded_string)
15282 (python_string_to_target_string)
15283 (python_string_to_target_python_string)
15284 (python_string_to_host_string, gdbpy_obj_to_string)
15285 (get_addr_from_python): Use gdbpy_ref.
15286
4586d543
TT
152872017-01-10 Tom Tromey <tom@tromey.com>
15288
15289 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
15290 gdbpy_ref.
15291
59876f8f
TT
152922017-01-10 Tom Tromey <tom@tromey.com>
15293
15294 * python/python.c (eval_python_command, gdbpy_decode_line)
15295 (gdbpy_run_events, gdbpy_start_type_printers)
15296 (gdbpy_apply_type_printers): Use gdbpy_ref.
15297
97d83487
TT
152982017-01-10 Tom Tromey <tom@tromey.com>
15299
15300 * python/py-param.c (get_doc_string, compute_enum_values): Use
15301 gdbpy_ref.
15302
9205649a
TT
153032017-01-10 Tom Tromey <tom@tromey.com>
15304
15305 * python/py-inferior.c (find_thread_object, build_inferior_list):
15306 Use gdbpy_ref.
15307
74c49d45
TT
153082017-01-10 Tom Tromey <tom@tromey.com>
15309
15310 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
15311
16361ffb
TT
153122017-01-10 Tom Tromey <tom@tromey.com>
15313
15314 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
15315 gdbpy_ref.
15316
905f2cca
TT
153172017-01-10 Tom Tromey <tom@tromey.com>
15318
15319 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
15320 extra incref.
15321 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
15322 Use gdbpy_ref.
15323
64081434
TT
153242017-01-10 Tom Tromey <tom@tromey.com>
15325
15326 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
15327 gdbpy_ref.
15328
59e9e831
TT
153292017-01-10 Tom Tromey <tom@tromey.com>
15330
15331 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
15332 decref results of PyArg_ParseTupleAndKeywords.
15333
9de10f6d
TT
153342017-01-10 Tom Tromey <tom@tromey.com>
15335
15336 * python/python.c (python_run_simple_file): Use
15337 unique_xmalloc_ptr, gdbpy_ref.
15338
2bd5759d
TT
153392017-01-10 Tom Tromey <tom@tromey.com>
15340
15341 * python/py-prettyprint.c (print_stack_unless_memory_error)
15342 (print_string_repr, print_children): Use gdbpy_ref.
15343 (dummy_python_frame): New class.
15344 (dummy_python_frame::dummy_python_frame): Rename from
15345 push_dummy_python_frame.
15346 (py_restore_tstate): Remove.
15347
3b4e0e01
TT
153482017-01-10 Tom Tromey <tom@tromey.com>
15349
15350 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
15351
17a22718
TT
153522017-01-10 Tom Tromey <tom@tromey.com>
15353
15354 * python/python.c (ensure_python_env, restore_python_env):
15355 Remove.
15356 * python/python-internal.h (ensure_python_env): Don't declare.
15357 * varobj.h (varobj_ensure_python_env): Don't declare.
15358 * varobj.c (varobj_ensure_python_env): Remove.
15359
68cdc557
TT
153602017-01-10 Tom Tromey <tom@tromey.com>
15361
15362 * varobj.c (varobj_value_get_print_value): Use
15363 gdbpy_enter_varobj.
15364
1eba6383
TT
153652017-01-10 Tom Tromey <tom@tromey.com>
15366
15367 * python/py-prettyprint.c (print_string_repr, print_children):
15368 Update.
15369 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
15370 of "encoding".
15371 * varobj.c (varobj_value_get_print_value): Update.
15372 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
15373
bde7b3e3
TT
153742017-01-10 Tom Tromey <tom@tromey.com>
15375
15376 * varobj.c (varobj_get_display_hint)
15377 (dynamic_varobj_has_child_method, install_new_value_visualizer)
15378 (varobj_set_visualizer, free_variable): Use
15379 gdbpy_enter_varobj.
15380
a7785f8c
TT
153812017-01-10 Tom Tromey <tom@tromey.com>
15382
15383 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
15384 (do_finish_initialization): New function. Use gdbpy_ref.
15385 (gdbpy_finish_initialization): Use gdbpy_enter. Call
15386 do_finish_initialization.
15387
2865bfce
TT
153882017-01-10 Tom Tromey <tom@tromey.com>
15389
15390 * python/py-param.c (get_set_value, get_show_value): Use
15391 gdbpy_enter, gdbpy_ref.
15392
0e9dcc75
TT
153932017-01-10 Tom Tromey <tom@tromey.com>
15394
15395 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
15396
12a5cedd
TT
153972017-01-10 Tom Tromey <tom@tromey.com>
15398
15399 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
15400
788f2586
TT
154012017-01-10 Tom Tromey <tom@tromey.com>
15402
15403 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
15404 Use gdbpy_enter_varobj.
15405
6cd67bea
TT
154062017-01-10 Tom Tromey <tom@tromey.com>
15407
15408 * varobj.c (gdbpy_enter_varobj): New constructor.
15409 * python/python-internal.h (gdbpy_enter_varobj): New class.
15410 * python/py-varobj.c (py_varobj_get_iterator): Use
15411 gdbpy_enter_varobj.
15412
14b122bf
TT
154132017-01-10 Tom Tromey <tom@tromey.com>
15414
15415 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
15416 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
15417 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
15418 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
15419 unique_xmalloc_ptr.
15420 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
15421
bf1ca3b9
TT
154222017-01-10 Tom Tromey <tom@tromey.com>
15423
15424 * python/py-xmethods.c (invoke_match_method): Use
15425 gdbpy_ref.
15426
572a5524
TT
154272017-01-10 Tom Tromey <tom@tromey.com>
15428
15429 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
15430 gdbpy_enter, gdbpy_ref.
15431
396a78b6
TT
154322017-01-10 Tom Tromey <tom@tromey.com>
15433
15434 * python/python.c (python_interactive_command): Use gdbpy_enter.
15435
a88b13c7
TT
154362017-01-10 Tom Tromey <tom@tromey.com>
15437
15438 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
15439 gdbpy_ref.
15440
e9f0c363
TT
154412017-01-10 Tom Tromey <tom@tromey.com>
15442
15443 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
15444 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
15445
6349f452
TT
154462017-01-10 Tom Tromey <tom@tromey.com>
15447
15448 * utils.h (htab_deleter): New struct.
15449 (htab_up): New typedef.
15450 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
15451 gdbpy_enter, gdbpy_ref, htab_up.
15452
c0171de6
TT
154532017-01-10 Tom Tromey <tom@tromey.com>
15454
15455 * python/py-unwind.c (pending_frame_invalidate): Remove.
15456 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
15457
f18e226f
TT
154582017-01-10 Tom Tromey <tom@tromey.com>
15459
15460 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
15461 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
15462
c57af3f1
TT
154632017-01-10 Tom Tromey <tom@tromey.com>
15464
15465 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
15466
60e600ec
TT
154672017-01-10 Tom Tromey <tom@tromey.com>
15468
15469 * python/python.c (gdbpy_eval_from_control_command)
15470 (gdbpy_source_script, gdbpy_run_events)
15471 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
15472 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
15473 gdbpy_enter.
15474
bf7da5b0
TT
154752017-01-10 Tom Tromey <tom@tromey.com>
15476
15477 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
15478
2d38bced
TT
154792017-01-10 Tom Tromey <tom@tromey.com>
15480
15481 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
15482
07bc7329
TT
154832017-01-10 Tom Tromey <tom@tromey.com>
15484
15485 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
15486 (python_on_inferior_call_pre, python_on_inferior_call_post)
15487 (python_on_memory_change, python_on_register_change)
15488 (python_inferior_exit, python_new_objfile, add_thread_object)
15489 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
15490
6e7c365e
TT
154912017-01-10 Tom Tromey <tom@tromey.com>
15492
15493 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
15494 (bpfinishpy_handle_exit): Use gdbpy_enter.
15495
6ba0cd40
TT
154962017-01-10 Tom Tromey <tom@tromey.com>
15497
15498 * python/py-cmd.c (cmdpy_destroyer)
15499 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
15500 gdbpy_enter.
15501
de2dc875
TT
155022017-01-10 Tom Tromey <tom@tromey.com>
15503
15504 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
15505 gdbpy_enter.
15506 (gdbpy_breakpoint_has_cond): Likewise.
15507
4ecee2c4
TT
155082017-01-10 Tom Tromey <tom@tromey.com>
15509
15510 * python/python.c (gdbpy_enter): New constructor.
15511 (~gdbpy_enter): New destructor.
15512 (restore_python_env, ensure_python_env): Rewrite.
15513 * python/python-internal.h (gdbpy_enter): New class.
15514
37fce74f
TT
155152017-01-10 Tom Tromey <tom@tromey.com>
15516
15517 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
15518
53a0cca3
TT
155192017-01-10 Tom Tromey <tom@tromey.com>
15520
15521 * python/py-value.c (value_has_field, get_field_flag)
15522 (get_field_type, valpy_getitem, convert_value_from_python): Use
15523 gdbpy_ref.
15524
ff3724f5
TT
155252017-01-10 Tom Tromey <tom@tromey.com>
15526
15527 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
15528 gdbpy_ref.
15529
0700aea5
TT
155302017-01-10 Tom Tromey <tom@tromey.com>
15531
15532 * python/py-prettyprint.c (search_pp_list)
15533 (find_pretty_printer_from_objfiles)
15534 (find_pretty_printer_from_progspace)
15535 (find_pretty_printer_from_gdb, find_pretty_printer)
15536 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
15537 gdbpy_ref.
15538
1bb44c9f
TT
155392017-01-10 Tom Tromey <tom@tromey.com>
15540
15541 * python/py-param.c (call_doc_function): Use gdbpy_ref.
15542
87ce03fd
TT
155432017-01-10 Tom Tromey <tom@tromey.com>
15544
15545 * python/py-linetable.c (build_line_table_tuple_from_pcs)
15546 (ltpy_get_all_source_lines): Use gdbpy_ref.
15547
ee0a3fb8
TT
155482017-01-10 Tom Tromey <tom@tromey.com>
15549
15550 * python/py-framefilter.c (extract_sym, extract_value)
15551 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
15552 gdbpy_ref.
15553
bf2a52fa
TT
155542017-01-10 Tom Tromey <tom@tromey.com>
15555
15556 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
15557
f59fe7f8
TT
155582017-01-10 Tom Tromey <tom@tromey.com>
15559
15560 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
15561
80bd970a
TT
155622017-01-10 Tom Tromey <tom@tromey.com>
15563
15564 * python/py-function.c (convert_values_to_python, fnpy_init): Use
15565 gdbpy_ref.
15566
d1b3de2e
TT
155672017-01-10 Tom Tromey <tom@tromey.com>
15568
15569 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
15570
3bb43384
TT
155712017-01-10 Tom Tromey <tom@tromey.com>
15572
15573 * python/py-type.c (convert_field, make_fielditem, typy_fields)
15574 (typy_range): Use gdbpy_ref.
15575
abf5651e
TT
155762017-01-10 Tom Tromey <tom@tromey.com>
15577
15578 * python/py-threadevent.c (create_thread_event_object): Use
15579 gdbpy_ref.
15580 * python/py-stopevent.c (create_stop_event_object): Simplify.
15581 (emit_stop_event): Use gdbpy_ref.
15582 * python/py-signalevent.c (create_signal_event_object): Use
15583 gdbpy_ref.
15584 * python/py-newobjfileevent.c (create_new_objfile_event_object)
15585 (emit_new_objfile_event, create_clear_objfiles_event_object)
15586 (emit_clear_objfiles_event): Use gdbpy_ref.
15587 * python/py-infevents.c (create_inferior_call_event_object)
15588 (create_register_changed_event_object)
15589 (create_memory_changed_event_object, emit_inferior_call_event)
15590 (emit_memory_changed_event, emit_register_changed_event): Use
15591 gdbpy_ref.
15592 * python/py-exitedevent.c (create_exited_event_object)
15593 (emit_exited_event): Use gdbpy_ref.
15594 * python/py-event.h (evpy_emit_event): Remove
15595 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
15596 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
15597 * python/py-continueevent.c (emit_continue_event): Use
15598 gdbpy_ref.
15599 * python/py-breakpoint.c (gdbpy_breakpoint_created)
15600 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
15601 gdbpy_ref.
15602 * python/py-bpevent.c (create_breakpoint_event_object): Use
15603 gdbpy_ref.
15604
a68ff33e
TT
156052017-01-10 Tom Tromey <tom@tromey.com>
15606
15607 * python/py-ref.h: New file.
15608
7becfd03
SM
156092017-01-10 Simon Marchi <simon.marchi@ericsson.com>
15610
15611 * cli-out.c (cli_ui_out::do_redirect): Change return type to
15612 void.
15613 * cli-out.h (cli_ui_out::do_redirect): Likewise.
15614 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
15615 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
15616 * ui-out.c (ui_out::redirect): Likewise.
15617 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
15618 * cli/cli-logging.c (set_logging_redirect): Update call site of
15619 ui_out::redirect.
15620 (handle_redirections): Likewise.
15621 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
15622 * top.c (execute_command_to_string): Likewise.
15623 * utils.c (do_ui_out_redirect_pop): Likewise.
15624
df294654
SM
156252017-01-10 Simon Marchi <simon.marchi@ericsson.com>
15626
15627 * stack.c (_initialize_stack): Update "frame" command help message.
15628
f5e6296e
IB
156292017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
15630
15631 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
15632
0e2d6fa6
YQ
156332017-01-06 Yao Qi <yao.qi@linaro.org>
15634
15635 * x86-linux-nat.h: Include gdb_proc_service.h.
15636
44d6d3f9
YQ
156372017-01-06 Yao Qi <yao.qi@linaro.org>
15638
15639 * ser-base.h: Include serial.h.
15640
656731fe
YQ
156412017-01-06 Yao Qi <yao.qi@linaro.org>
15642
15643 * ppc-linux-tdep.h: Include ppc-tdep.h.
15644
1ca8f924
YQ
156452017-01-06 Yao Qi <yao.qi@linaro.org>
15646
15647 * nat/amd64-linux-siginfo.h: Include signal.h.
15648
bc3008c4
YQ
156492017-01-06 Yao Qi <yao.qi@linaro.org>
15650
15651 * nat/aarch64-linux-hw-point.h: Include break-common.h.
15652
66c80d03
YQ
156532017-01-06 Yao Qi <yao.qi@linaro.org>
15654
15655 * mi/mi-parse.h: Include mi-cmds.h.
15656
051d2dda
YQ
156572017-01-06 Yao Qi <yao.qi@linaro.org>
15658
15659 * inf-loop.c: Don't include "target.h".
15660 * inf-loop.h: Include it here.
15661
8018d34f
YQ
156622017-01-06 Yao Qi <yao.qi@linaro.org>
15663
15664 * dfp.h: Include "dboulest.h" and "expression.h".
15665
c0b8369c
YQ
156662017-01-06 Yao Qi <yao.qi@linaro.org>
15667
15668 * ax-gdb.h: Include "ax.h".
15669
ad5cba2a
YQ
156702017-01-06 Yao Qi <yao.qi@linaro.org>
15671
15672 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
15673 with nat/gdb_ptrace.h.
15674
1c33cd7f
YQ
156752017-01-05 Yao Qi <yao.qi@linaro.org>
15676
15677 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
15678 new line.
15679 (mips64_fbsd_sigframe_init): Likewise.
15680
c988ac1d
JB
156812017-01-04 John Baldwin <jhb@FreeBSD.org>
15682
15683 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
15684 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
15685
b268007c
JB
156862017-01-04 John Baldwin <jhb@FreeBSD.org>
15687
15688 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
15689 * NEWS: Mention new FreeBSD/mips native configuration.
15690 * config/mips/fbsd.mh: New file.
15691 * configure.host: Add mips*-*-freebsd*.
15692 * mips-fbsd-nat.c: New file.
15693
387360da
JB
156942017-01-04 John Baldwin <jhb@FreeBSD.org>
15695
15696 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
15697 (ALLDEPFILES): Add mips-fbsd-tdep.c.
15698 * NEWS: Mention new FreeBSD/mips target.
15699 * configure.tgt: Add mips*-*-freebsd*.
15700 * mips-fbsd-tdep.c: New file.
15701 * mips-fbsd-tdep.h: New file.
15702
2aaaf250
YQ
157032017-01-04 Yao Qi <yao.qi@linaro.org>
15704
15705 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
15706 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
15707
61baf725
JB
157082017-01-01 Joel Brobecker <brobecker@adacore.com>
15709
6dbb839a 15710 Update copyright year range in all GDB files.
61baf725 15711
c113e7ff 157122017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 15713
c113e7ff 15714 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 15715
c113e7ff 15716For older changes see ChangeLog-2016.
c906108c
SS
15717\f
15718Local Variables:
15719mode: change-log
15720left-margin: 8
15721fill-column: 74
15722version-control: never
57da7796 15723coding: utf-8
c906108c 15724End: