Breakpoints in symbols with ABI tags (PR c++/19436)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bd69330d
PA
12017-11-29 Pedro Alves <palves@redhat.com>
2
3 PR c++/19436
4 * NEWS: Mention setting breakpoints on functions with C++ ABI
5 tags.
6 * completer.h (completion_match_for_lcd) <match,
7 mark_ignored_range>: New methods.
8 <finish>: Consider ignored ranges.
9 <clear>: Clear ignored ranges.
10 <m_ignored_ranges, m_finished_storage>: New fields.
11 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
12 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
13 completion_match_for_lcd pointer to strncmp_iw_with_mode.
14 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
15 * language.c (default_symbol_name_matcher): Pass the
16 completion_match_for_lcd pointer to strncmp_iw_with_mode.
17 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
18 * utils.c (skip_abi_tag): New function.
19 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
20 Handle ABI tags.
21 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
22 parameter.
23
242017-11-29 Pedro Alves <palves@redhat.com>
25
26 PR c++/19436
27 * NEWS: Mention setting breakpoints on functions with C++ ABI
28 tags.
29 * completer.h (completion_match_for_lcd) <match,
30 mark_ignored_range>: New methods.
31 <finish>: Consider ignored ranges.
32 <clear>: Clear ignored ranges.
33 <m_ignored_ranges, m_finished_storage>: New fields.
34 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
35 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
36 completion_match_for_lcd pointer to strncmp_iw_with_mode.
37 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
38 * language.c (default_symbol_name_matcher): Pass the
39 completion_match_for_lcd pointer to strncmp_iw_with_mode.
40 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
41 * utils.c (skip_abi_tag): New function.
42 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
43 Handle ABI tags.
44 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
45 parameter.
46
a20714ff
PA
472017-11-29 Pedro Alves <palves@redhat.com>
48
49 * NEWS: Mention that breakpoints on C++ functions are now set on
50 on all namespaces/classes by default, and mention "break
51 -qualified".
52 * ax-gdb.c (agent_command_1): Adjust to pass a
53 symbol_name_match_type to new_linespec_location.
54 * breakpoint.c (parse_breakpoint_sals): Adjust to
55 get_linespec_location's return type change.
56 (strace_marker_create_sals_from_location): Adjust to pass a
57 symbol_name_match_type to new_linespec_location.
58 (strace_marker_decode_location): Adjust to get_linespec_location's
59 return type change.
60 (strace_command): Adjust to pass a symbol_name_match_type to
61 new_linespec_location.
62 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
63 mention "-qualified".
64 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
65 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
66 enumerator.
67 (complete_address_and_linespec_locations): New parameter
68 'match_type'. Pass it down.
69 (explicit_options): Add "-qualified".
70 (collect_explicit_location_matches): Pass the requested match type
71 to the linespec completers. Handle MATCH_QUALIFIED.
72 (location_completer): Handle "-qualified" combined with linespecs.
73 * cp-support.c (cp_search_name_hash): New.
74 (cp_symbol_name_matches_1): Implement wild matching for C++.
75 (cp_fq_symbol_name_matches): Reimplement.
76 (cp_get_symbol_name_matcher): Return different matchers depending
77 on the lookup name's match type.
78 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
79 * cp-support.h (cp_search_name_hash): New declaration.
80 * dwarf2read.c
81 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
82 symbols.
83 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
84 tests.
85 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
86 pass a symbol_name_match_type to new_linespec_location.
87 * linespec.c (linespec_parse_basic): Lookup function symbols using
88 the parser's symbol name match type.
89 (convert_explicit_location_to_linespec): New
90 symbol_name_match_type parameter. Pass it down to
91 find_linespec_symbols.
92 (convert_explicit_location_to_sals): Pass the location's name
93 match type to convert_explicit_location_to_linespec.
94 (parse_linespec): New match_type parameter. Save it in the
95 parser.
96 (linespec_parser_new): Default to symbol_name_match_type::WILD.
97 (linespec_complete_function): New symbol_name_match_type
98 parameter. Use it.
99 (complete_linespec_component): Pass down the parser's recorded
100 name match type.
101 (linespec_complete_label): New symbol_name_match_type parameter.
102 Use it.
103 (linespec_complete): New symbol_name_match_type parameter. Save
104 it in the parser and pass it down. Adjust to
105 get_linespec_location's prototype change.
106 (find_function_symbols, find_linespec_symbols): New
107 symbol_name_match_type parameter. Pass it down instead of
108 assuming symbol_name_match_type::WILD.
109 * linespec.h (linespec_complete, linespec_complete_function)
110 (linespec_complete_label): New symbol_name_match_type parameter.
111 * location.c (event_location::linespec_location): Now a struct
112 linespec_location.
113 (EL_LINESPEC): Adjust.
114 (initialize_explicit_location): Default to
115 symbol_name_match_type::WILD.
116 (new_linespec_location): New symbol_name_match_type parameter.
117 Record it in the location.
118 (get_linespec_location): Now returns a struct linespec_location.
119 (new_explicit_location): Also copy func_name_match_type.
120 (explicit_to_string_internal)
121 (string_to_explicit_location): Handle "-qualified".
122 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
123 Copy symbol_name_match_type fields.
124 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
125 type change.
126 (event_location_to_string): Adjust to LINESPEC_LOCATION type
127 change. Handle "-qualfied".
128 (string_to_explicit_location): Handle "-qualified".
129 (string_to_event_location_basic): New symbol_name_match_type
130 parameter. Pass it down.
131 (string_to_event_location): Handle "-qualified".
132 * location.h (struct linespec_location): New.
133 (explicit_location::func_name_match_type): New field.
134 (new_linespec_location): Now returns a const linespec_location *.
135 (string_to_event_location_basic): New symbol_name_match_type
136 parameter.
137 (explicit_completion_info::saw_explicit_location_option): New
138 field.
139 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
140 symbol_name_match_type to new_linespec_location.
141 * python/py-breakpoint.c (bppy_init): Likewise.
142 * python/python.c (gdbpy_decode_line): Likewise.
143
a207cff2
PA
1442017-11-29 Pedro Alves <palves@redhat.com>
145
146 * ada-lang.c (ada_lookup_name_info::matches): Change type of
147 parameter from completion_match to completion_match_result.
148 Adjust.
149 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
150 * completer.c (completion_tracker::maybe_add_completion): Add
151 match_for_lcd parameter and use it.
152 (completion_tracker::add_completion): Likewise.
153 * completer.h (class completion_match_for_lcd): New class.
154 (completion_match_result::match_for_lcd): New field.
155 (completion_match_result::set_match): New method.
156 (completion_tracker): Add comments.
157 (completion_tracker::add_completion): Add match_for_lcd parameter.
158 (completion_tracker::reset_completion_match_result): Reset
159 match_for_lcd too.
160 (completion_tracker::maybe_add_completion): Add match_for_lcd
161 parameter.
162 (completion_tracker::m_lowest_common_denominator_unique): Extend
163 comments.
164 * cp-support.c (cp_symbol_name_matches_1)
165 (cp_fq_symbol_name_matches): Change type of parameter from
166 completion_match to completion_match_result. Adjust.
167 * language.c (default_symbol_name_matcher): Change type of
168 parameter from completion_match to completion_match_result.
169 Adjust.
170 * language.h (completion_match_for_lcd): Forward declare.
171 (default_symbol_name_matcher): Change type of parameter from
172 completion_match to completion_match_result.
173 * symtab.c (compare_symbol_name): Adjust.
174 (completion_list_add_name): Pass the match_for_lcd to the tracker.
175 * symtab.h (ada_lookup_name_info::matches): Change type of
176 parameter from completion_match to completion_match_result.
177 (symbol_name_matcher_ftype): Likewise, and update comments.
178
4024cf2b
PA
1792017-11-29 Pedro Alves <palves@redhat.com>
180
181 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
182 * minsyms.c (msymbol_is_text): Delete.
183 (msymbol_is_function): New function.
184 * minsyms.h (msymbol_is_text): Delete.
185 (msymbol_is_function): New declaration.
186 * symtab.c (find_function_alias_target): Use msymbol_is_function.
187
5dcf52c1
TT
1882017-11-29 Tom Tromey <tom@tromey.com>
189
190 * Makefile.in (distclean): Handle the case where rmdir fails.
191
8ca2f0b9
TT
1922017-11-29 Tom Tromey <tom@tromey.com>
193
194 * symfile.c (_initialize_symfile): Update usage text for
195 add-symbol-file, symbol-file, load.
196
02ca603a
TT
1972017-11-29 Tom Tromey <tom@tromey.com>
198
199 * symfile.c (add_symbol_file_command): Error if some arguments to
200 -s are missing. Change unrecognized-argument error message.
201 (_initialize_symfile): Fix usage text for add-symbol-file.
202
18ca7347
TT
2032017-11-27 Tom Tromey <tom@tromey.com>
204
205 * Makefile.in (REMOTE_OBS): Remove.
206 (SFILES): Remove remote sources.
207 (COMMON_SFILES): Add remote sources.
208 (ALLDEPFILES): Remove dcache.c.
209
66599a7d
TT
2102017-11-27 Tom Tromey <tom@tromey.com>
211
212 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
213 variables.
214 (SFILES): Use SUBDIR_TARGET_SRCS.
215 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
216 (CONFIG_SRC_SUBDIR): Add target.
217 (%.o): Remove target rule.
218
4f04fba8
TT
2192017-11-27 Tom Tromey <tom@tromey.com>
220
221 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
222 registry.o, thread-fsm.o, debug.o.
223 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
224 thread-fsm.c, debug.c.
225
b5adff3b
TT
2262017-11-27 Tom Tromey <tom@tromey.com>
227
228 * Makefile.in (COMMON_SFILES): New.
229 (SFILES): Move some entries to COMMON_SFILES.
230 (COMMON_OBS): Use COMMON_SFILES.
231
afa0a411
TT
2322017-11-27 Tom Tromey <tom@tromey.com>
233
234 * Makefile.in (YYFILES): Update comment.
235 (YYOBJ): Redefine.
236
8fd8d003
TT
2372017-11-27 Tom Tromey <tom@tromey.com>
238
239 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
240 (CONFIG_SRC_SUBDIR): Add python.
241 (%.o): Remove python rule.
242 (python/%.o): New rule.
243 * configure: Rebuild.
244 * configure.ac (CONFIG_OBS): Refer to python/python.o
245
bd810fff
TT
2462017-11-27 Tom Tromey <tom@tromey.com>
247
248 * configure: Rebuild.
249 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
250 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
251 (CONFIG_SRC_SUBDIR): Add guile.
252 (%.o): Remove guile rule.
253
75787ac1
TT
2542017-11-27 Tom Tromey <tom@tromey.com>
255
256 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
257 (%.o): Remove unittests rule.
258 (CONFIG_SRC_SUBDIR): Add unittests.
259
5c8a9431
TT
2602017-11-27 Tom Tromey <tom@tromey.com>
261
262 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
263 (CONFIG_SRC_SUBDIR): Add tui.
264 (%.o): Remove tui rule.
265
a26aa30c
TT
2662017-11-27 Tom Tromey <tom@tromey.com>
267
268 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
269 (%.o): Remove compile rule.
270 (CONFIG_SRC_SUBDIR): Add compile.
271
6f3cdf9a
TT
2722017-11-27 Tom Tromey <tom@tromey.com>
273
274 * Makefile.in (SUBDIR_MI_OBS): Redefine.
275 (%.o): Remove mi rule.
276 (CONFIG_SRC_SUBDIR): Add mi.
277 (COMMON_OBS): Use mi/mi-common.o
278
f06afa53
TT
2792017-11-27 Tom Tromey <tom@tromey.com>
280
281 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
282 (%.o): Remove cli rule.
283 (CONFIG_SRC_SUBDIR): Add cli.
284
b22c88c2
TT
2852017-11-27 Tom Tromey <tom@tromey.com>
286
287 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
288 * configure: Rebuild.
289 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
290 (CONFIG_DEP_SUBDIR): New variable.
291 (%.o): Add order-only dependency.
292 ($(CONFIG_DEP_SUBDIR)): New target.
293
ee9a09e9
DC
2942017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
295
296 PR gdb/21945
297 * findcmd.c (_initialize_mem_search): Update find command help
298 text.
299
e8e7d10c
SM
3002017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
301
302 * python/python.c (do_start_initialization): Change progname
303 type to gdb::unique_xmalloc_ptr. Release the pointer when using
304 Python 2.
305
6a997029
TT
3062017-11-26 Tom Tromey <tom@tromey.com>
307
308 * common/format.h: Add include guards.
309
41272101
TT
3102017-11-26 Tom Tromey <tom@tromey.com>
311
312 * nat/linux-personality.h (class
313 maybe_disable_address_space_randomization): New class.
314 (maybe_disable_address_space_randomization): Don't declare
315 function.
316 * nat/linux-personality.c (restore_personality)
317 (make_disable_asr_cleanup): Remove.
318 (maybe_disable_address_space_randomization): Now a constructor.
319 (~maybe_disable_address_space_randomization): New destructor.
320 * linux-nat.c (linux_nat_create_inferior): Update.
321
44287fd8
TT
3222017-11-26 Tom Tromey <tom@tromey.com>
323
324 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
325
5ffd2cb7
UW
3262017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
327
328 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
329 "cooked" register. Access only first four bytes of branch target
330 registers.
331
0e5457dc
SDJ
3322017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
333
334 PR gdb/22491
335 * stap-probe.c (relocate_address): New function.
336 (stap_probe::get_relocated_address): Use 'relocate_address'.
337 (stap_probe::set_semaphore): Use 'relocate_address' and pass
338 'm_sem_addr'.
339 (stap_probe::clear_semaphore): Likewise.
340
deeeba55
PA
3412017-11-25 Pedro Alves <palves@redhat.com>
342
343 * dictionary.c: Include "safe-ctype.h".
344 * minsyms.c: Include "safe-ctype.h".
345 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
346
a81aaca0
PA
3472017-11-25 Pedro Alves <palves@redhat.com>
348
349 * completer.c (complete_line_internal_1): Skip spaces until the
350 start of the command.
351
0662b6a7
PA
3522017-11-24 Pedro Alves <palves@redhat.com>
353
354 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
355 cp_fq_symbol_name_matches. Pass language_cplus to
356 strncmp_with_mode.
357 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
358 (selftests::test_cp_symbol_name_cmp): New.
359 (_initialize_cp_support): Register "cp_symbol_name_matches"
360 selftests.
361 * language.c (default_symbol_name_matcher): Pass language_minimal
362 to strncmp_iw_with_mode.
363 * utils.c: Include "cp-support.h" and <algorithm>.
364 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
365 (cp_is_operator): New functions.
366 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
367 skip whitespace in the symbol name when the lookup name doesn't
368 have spaces, and vice versa.
369 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
370 * utils.h (strncmp_iw_with_mode): Add language parameter.
371
e547c119
JB
3722017-11-24 Joel Brobecker <brobecker@adacore.com>
373
374 * ada-lang.c (ada_exception_message_1, ada_exception_message):
375 New functions.
376 (print_it_exception): If available, display the exception
377 message as well.
378 * NEWS: Document new feature.
379
d7fcdff9
UW
3802017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
381
382 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
383
30649c14
PR
3842017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
385
386 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
387 (dtrace_probe::is_enabled, dtrace_probe::enable)
388 (dtrace_probe::disable): Remove keyword 'struct' at for-range
389 variable
390 * probe.c (gen_ui_out_table_header_info)
391 (print_ui_out_not_applicables): Remove keyword 'struct' at
392 for-range variable
393
7696f5c9
AH
3942017-11-24 Alan Hayward <alan.hayward@arm.com>
395
396 * configure.tgt: Add arch/aarch64.o
397
8172f16b
SM
3982017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
399
400 * common/common-utils.h: Include poison.h.
401 (xfree): Remove declaration, add definition with static_assert.
402 * common/common-utils.c (xfree): Remove.
403 * common/poison.h (IsMallocatable): Define.
404 (IsFreeable): Define.
405 (free): Delete for non-freeable types.
406 (xnew): New.
407 (XNEW): Undef and redefine.
408 (xcnew): New.
409 (XCNEW): Undef and redefine.
410 (xdelete): New.
411 (XDELETE): Undef and redefine.
412 (xnewvec): New.
413 (XNEWVEC): Undef and redefine.
414 (xcnewvec): New.
415 (XCNEWVEC): Undef and redefine.
416 (xresizevec): New.
417 (XRESIZEVEC): Undef and redefine.
418 (xdeletevec): New.
419 (XDELETEVEC): Undef and redefine.
420 (xnewvar): New.
421 (XNEWVAR): Undef and redefine.
422 (xcnewvar): New.
423 (XCNEWVAR): Undef and redefine.
424 (xresizevar): New.
425 (XRESIZEVAR): Undef and redefine.
426
7aabaf9d
SM
4272017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
428
429 * gdbthread.h (private_thread_info): Define structure type, add
430 virtual pure destructor.
431 (thread_info) <priv>: Change type to unique_ptr.
432 <private_dtor>: Remove.
433 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
434 (private_thread_info::~private_thread_info): Provide default
435 implementation.
436 (thread_info::~thread_info): Don't call private_dtor nor
437 manually free priv.
438 * aix-thread.c (private_thread_info): Rename to ...
439 (aix_thread_info): ... this.
440 (get_aix_thread_info): New.
441 (sync_threadlists): Adjust.
442 (iter_tid): Adjust.
443 (aix_thread_resume): Adjust.
444 (aix_thread_fetch_registers): Adjust.
445 (aix_thread_store_registers): Adjust.
446 (aix_thread_extra_thread_info): Adjust.
447 * darwin-nat.h (private_thread_info): Rename to ...
448 (darwin_thread_info): ... this.
449 (get_darwin_thread_info): New.
450 * darwin-nat.c (darwin_init_thread_list): Adjust.
451 (darwin_check_new_threads): Adjust.
452 (thread_info_from_private_thread_info): Adjust.
453 * linux-thread-db.c (private_thread_info): Rename to ...
454 (thread_db_thread_info): ... this, initialize fields.
455 (get_thread_db_thread_info): New.
456 <dying>: Change type to bool.
457 (update_thread_state): Adjust to type rename.
458 (record_thread): Adjust to type rename an use of unique_ptr.
459 (thread_db_pid_to_str): Likewise.
460 (thread_db_extra_thread_info): Likewise.
461 (thread_db_thread_handle_to_thread_info): Likewise.
462 (thread_db_get_thread_local_address): Likewise.
463 * nto-tdep.h (private_thread_info): Rename to ...
464 (nto_thread_info): ... this, initialize fields.
465 (get_nto_thread_info): New.
466 <name>: Change type to std::string.
467 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
468 use of unique_ptr.
469 * nto-procfs.c (update_thread_private_data_name): Adjust to
470 std::string change, allocate nto_private_thread_info with new.
471 (update_thread_private_data): Adjust to unique_ptr.
472 * remote.c (private_thread_info): Rename to ...
473 (remote_thread_info): ... this, initialize data members with
474 default values.
475 <extra, name>: Change type to std::string.
476 <thread_handle>: Change type to non-pointer.
477 (free_private_thread_info): Remove.
478 (get_private_info_thread): Rename to...
479 (get_remote_thread_info): ... this, change return type, adjust to
480 use of unique_ptr, use remote_thread_info constructor.
481 (remote_add_thread): Adjust.
482 (get_private_info_ptid): Rename to...
483 (get_remote_thread_info): ...this, change return type.
484 (remote_thread_name): Use get_remote_thread_info, adjust to
485 change to std::string.
486 (struct thread_item) <~thread_item>: Remove.
487 <thread_handle>: Make non pointer.
488 (start_thread): Adjust to thread_item::thread_handle type
489 change.
490 (remote_update_thread_list): Adjust to type name change, move
491 strings from temporary to long-lived object instead of
492 duplicating.
493 (remote_threads_extra_info): Use get_remote_thread_info.
494 (process_initial_stop_replies): Likewise.
495 (resume_clear_thread_private_info): Likewise.
496 (remote_resume): Adjust to type name change.
497 (remote_commit_resume): Use get_remote_thread_info.
498 (process_stop_reply): Adjust to type name change.
499 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
500 (remote_stopped_by_hw_breakpoint): Likewise.
501 (remote_stopped_by_watchpoint): Likewise.
502 (remote_stopped_data_address): Likewise.
503 (remote_core_of_thread): Likewise.
504 (remote_thread_handle_to_thread_info): Use
505 get_private_info_thread, adjust to thread_handle field type
506 change.
507
21fe1c75
SM
5082017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
509
510 * remote.c (struct thread_item): Add constructor, disable copy
511 construction and copy assignment, define default move
512 construction and move assignment.
513 <extra, name>: Change type to std::string.
514 <core>: Initialize.
515 <thread_handle>: Make non-pointer.
516 (thread_item_t): Remove typedef.
517 (DEF_VEC_O(thread_item_t)): Remove.
518 (threads_listing_context) <contains_thread>: New method.
519 <remove_thread>: New method.
520 <items>: Change type to std::vector.
521 (clear_threads_listing_context): Remove.
522 (threads_listing_context_remove): Remove.
523 (remote_newthread_step): Use thread_item constructor, adjust to
524 change to std::vector.
525 (start_thread): Use thread_item constructor, adjust to change to
526 std::vector.
527 (end_thread): Adjust to change to std::vector and std::string.
528 (remote_get_threads_with_qthreadinfo): Use thread_item
529 constructor, adjust to std::vector.
530 (remote_update_thread_list): Adjust to change to std::vector and
531 std::string, use threads_listing_context methods.
532 (remove_child_of_pending_fork): Adjust.
533 (remove_new_fork_children): Adjust.
534 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
535 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
536 * unittests/rsp-low-selftests.c: New file.
537 * common/rsp-low.h: Include common/byte-vector.h.
538 (hex2bin): New overload.
539 * common/rsp-low.c (hex2bin): New overload.
540
089354bb
SM
5412017-11-24 Simon Marchi <simon.marchi@ericsson.com>
542
543 * inferior.h (private_inferior): Define structure type, add
544 virtual pure destructor.
545 (inferior) <priv>: Change type to unique_ptr.
546 * inferior.c (private_inferior::~private_inferior): Provide
547 default implementation.
548 (inferior::~inferior): Don't free priv field.
549 (exit_inferior_1): Likewise.
550 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
551 (darwin_exception_info): Remove typedef.
552 (DEF_VEC_O (darwin_thread_t)); Remove.
553 (private_inferior): Rename to ...
554 (darwin_private_inferior): ... this, extend private_inferior.
555 (get_darwin_inferior): New.
556 <threads>: Change type to std::vector of darwin_thread_t pointers.
557 * darwin-nat.c (darwin_check_new_threads): Adjust.
558 (find_inferior_task_it): Adjust.
559 (darwin_find_thread); Adjust.
560 (darwin_suspend_inferior): Adjust.
561 (darwin_resume_inferior): Adjust.
562 (darwin_find_new_inferior): Adjust.
563 (darwin_decode_notify_message): Adjust.
564 (darwin_send_reply): Adjust.
565 (darwin_resume_inferior_threads): Adjust.
566 (darwin_suspend_inferior_threads): Adjust.
567 (darwin_decode_message): Adjust.
568 (darwin_wait): Adjust.
569 (darwin_interrupt): Adjust.
570 (darwin_deallocate_threads): Adjust.
571 (darwin_mourn_inferior): Adjust, don't free private data.
572 (darwin_reply_to_all_pending_messages): Adjust.
573 (darwin_stop_inferior): Adjust.
574 (darwin_setup_exceptions): Adjust.
575 (darwin_kill_inferior): Adjust.
576 (darwin_setup_request_notification): Adjust.
577 (darwin_attach_pid): Adjust.
578 (darwin_init_thread_list): Adjust.
579 (darwin_setup_fake_stop_event): Adjust.
580 (darwin_attach): Adjust.
581 (darwin_detach): Adjust.
582 (darwin_xfer_partial): Adjust.
583 (set_enable_mach_exceptions): Adjust.
584 (darwin_pid_to_exec_file): Adjust.
585 (darwin_get_ada_task_ptid): Adjust.
586 * darwin-nat-info.c (get_task_from_args): Adjust.
587 (info_mach_ports_command): Adjust.
588 (info_mach_region_command): Adjust.
589 (info_mach_exceptions_command): Adjust.
590 * remote.c (private_inferior): Rename to ...
591 (remote_private_inferior): ... this, initialize fields.
592 (get_remote_inferior); New.
593 (remote_commit_resume): Use get_remote_inferior.
594 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
595
d044bac8
PA
5962017-11-24 Pedro Alves <palves@redhat.com>
597
598 * NEWS: Mention linespecs and explicit locations, and completion
599 improvements.
600
e8d58cba
YQ
6012017-11-24 Yao Qi <yao.qi@linaro.org>
602
603 * regcache.c (regcache::dump): Remove footnote_register_size.
604
a63f2d2f
YQ
6052017-11-24 Yao Qi <yao.qi@linaro.org>
606
607 * regcache.c (cooked_read_test): Add more test for readonly
608 regcache.
609
1b30aaa5
YQ
6102017-11-24 Yao Qi <yao.qi@linaro.org>
611
612 * gdbarch-selftests.c (test_target_has_registers): Move it to
613 target.c.
614 (test_target_has_stack): Likewise.
615 (test_target_has_memory): Likewise.
616 (test_target_prepare_to_store): Likewise.
617 (test_target_store_registers): Likewise.
618 (test_target_ops): Likewise.
619 * regcache.c: Include selftest-arch.h and gdbthread.h.
620 (target_ops_no_register): New class.
621 (test_target_fetch_registers): New.
622 (test_target_store_registers): New.
623 (test_target_xfer_partial): New.
624 (readwrite_regcache): New.
625 (cooked_read_test): New.
626 (_initialize_regcache): Register the test.
627 * target.c: (test_target_has_registers): Moved from
628 gdbarch-selftests.c.
629 (test_target_has_stack): Likewise.
630 (test_target_has_memory): Likewise.
631 (test_target_prepare_to_store): Likewise.
632 (test_target_store_registers): Likewise.
633 * target.h (test_target_ops): New class.
634
6654d750
AH
6352017-11-24 Alan Hayward <alan.hayward@arm.com>
636
637 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
638 selftest.
639
49bdb7ee
AH
6402017-11-24 Alan Hayward <alan.hayward@arm.com>
641
642 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
643 * arch/aarch64.c (aarch64_create_target_description): Create
644 new target description.
645 * features/Makefile: Add new files.
646 * features/aarch64.c: Remove file.
647 * features/aarch64-core.c: New autogenerated file.
648 * features/aarch64-fpu.c: New autogenerated file.
649 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
da434ccb
AH
650
6512017-11-24 Alan Hayward <alan.hayward@arm.com>
652
653 * Makefile.in: Add new files.
654 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
655 aarch64_read_description.
656 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
657 Call aarch64_read_description.
658 * aarch64-tdep.c (aarch64_read_description): New function.
659 (aarch64_gdbarch_init): Call aarch64_read_description.
660 * aarch64-tdep.h (aarch64_read_description): New function.
661 * arch/aarch64.c: New file.
662 * configure.tgt: Add new files.
663
98ead37e
YQ
6642017-11-24 Yao Qi <yao.qi@linaro.org>
665
666 * mi/mi-main.c (register_changed_p): Update.
667 * value.c (value_contents_bits_eq): Change return type.
668 (value_contents_eq): Likewise.
669 * value.h: Update comments.
670
62ad7ce7
YQ
6712017-11-24 Yao Qi <yao.qi@linaro.org>
672
673 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
674 local 'changed'. Remove error.
675 (register_changed_p): Change return type to bool.
676
506fe5f4
YQ
6772017-11-24 Yao Qi <yao.qi@linaro.org>
678
679 * arch/tic6x.c: New file.
680 * arch/tic6x.h: New file.
681 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
682 tic6x-core.xml and tic6x-gp.xml.
683 * features/tic6x-c6xp.c: Generated.
684 * features/tic6x-core.c: Generated.
685 * features/tic6x-gp.c: Generated.
686 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
687 "tic6x-".
688
00ea2e2a
SM
6892017-11-23 Simon Marchi <simon.marchi@ericsson.com>
690
691 * mi/mi-main.c (list_available_thread_groups): Change map value
692 type to std::vector.
693
f45e2a77
SM
6942017-11-23 Simon Marchi <simon.marchi@ericsson.com>
695
696 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
697
bd046f64
SM
6982017-11-23 Simon Marchi <simon.marchi@ericsson.com>
699
700 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
701 back to...
702 <children_requested>: ... this.
703 (varobj_get_num_children, varobj_update): Adjust.
704
4c37490d
SM
7052017-11-23 Simon Marchi <simon.marchi@ericsson.com>
706
707 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
708 (ada_value_has_mutated): Likewise.
709 * c-varobj.c (varobj_is_anonymous_child): Likewise.
710 (c_is_path_expr_parent): Likewise.
711 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
712 (mi_cmd_var_set_frozen): Likewise.
713 (mi_cmd_var_update_iter): Likewise.
714 (mi_cmd_var_update): Likewise.
715 * varobj.c (pretty_printing): Likewise.
716 (varobj_enable_pretty_printing): Likewise.
717 (struct varobj_root) <floating, is_valid>: Likewise.
718 (struct varobj_dynamic) <children_requested>: Likewise.
719 (delete_variable): Likewise.
720 (delete_variable_1): Likewise.
721 (install_variable): Likewise.
722 (update_type_if_necessary): Likewise.
723 (install_new_value): Likewise.
724 (value_of_root): Likewise.
725 (is_root_p): Likewise.
726 (varobj_create): Likewise.
727 (varobj_delete): Likewise.
728 (varobj_has_more): Likewise.
729 (varobj_set_frozen): Likewise.
730 (varobj_get_frozen): Likewise.
731 (install_dynamic_child): Likewise.
732 (dynamic_varobj_has_child_method): Likewise.
733 (update_dynamic_varobj_children): Likewise.
734 (varobj_get_num_children): Likewise.
735 (varobj_list_children): Likewise.
736 (is_path_expr_parent): Likewise.
737 (varobj_default_is_path_expr_parent): Likewise.
738 (varobj_is_dynamic_p): Likewise.
739 (varobj_set_value): Likewise.
740 (varobj_value_has_mutated): Likewise.
741 (varobj_update): Likewise.
742 (check_scope): Likewise.
743 (value_of_root_1): Likewise.
744 (varobj_value_get_print_value): Likewise.
745 (varobj_editable_p): Likewise.
746 (varobj_value_is_changeable_p): Likewise.
747 (varobj_floating_p): Likewise.
748 (varobj_default_value_is_changeable_p): Likewise.
749 (varobj_invalidate_iter): Likewise.
750 * varobj.h (struct varobj_update_result) <type_changed,
751 children_changed, changed, value_installed>: Likewise.
752 (struct varobj) <updated, frozen, not_fetched>: Likewise.
753 (struct lang_varobj_ops) <value_is_changeable_p,
754 value_has_mutated, is_path_expr_parent>: Likewise.
755 (varobj_delete): Likewise.
756 (varobj_set_frozen): Likewise.
757 (varobj_get_frozen): Likewise.
758 (varobj_set_value): Likewise.
759 (varobj_update): Likewise.
760 (varobj_editable_p): Likewise.
761 (varobj_floating_p): Likewise.
762 (varobj_has_more): Likewise.
763 (varobj_is_dynamic_p): Likewise.
764 (varobj_default_value_is_changeable_p): Likewise.
765 (varobj_value_is_changeable_p): Likewise.
766 (varobj_is_anonymous_child): Likewise.
767 (varobj_default_is_path_expr_parent): Likewise.
768
9c23b42f
SDJ
7692017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
770
771 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
772 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
773 <type_str>: Convert to 'std::string'.
774 <expr>: Convert to 'expression_up'.
775 (dtrace_probe_arg_s): Delete type and VEC.
776 (dtrace_probe_enabler_s): Likewise.
777 (struct dtrace_probe): Replace by...
778 (class dtrace_static_probe_ops): ...this and...
779 (class dtrace_probe): ...this.
780 (dtrace_probe_is_linespec): Rename to...
781 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
782 to reflect change.
783 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
784 Adjust code. Create new instance of 'dtrace_probe'.
785 (dtrace_build_arg_exprs): Rename to...
786 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
787 reflect change.
788 (dtrace_get_probes): Rename to...
789 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
790 to reflect change.
791 (dtrace_get_arg): Rename to...
792 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
793 reflect change.
794 (dtrace_probe_is_enabled): Rename to...
795 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
796 change.
797 (dtrace_get_probe_address): Rename to...
798 (dtrace_probe::get_relocated_address): ...this. Adjust code
799 to reflect change.
800 (dtrace_get_probe_argument_count): Rename to...
801 (dtrace_probe::get_argument_count): ...this. Adjust code to
802 reflect change.
803 (dtrace_can_evaluate_probe_arguments): Rename to...
804 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
805 to reflect change.
806 (dtrace_evaluate_probe_argument): Rename to...
807 (dtrace_probe::evaluate_argument): ...this. Adjust code to
808 reflect change.
809 (dtrace_compile_to_ax): Rename to...
810 (dtrace_probe::compile_to_ax): ...this. Adjust code to
811 reflect change.
812 (dtrace_probe_destroy): Delete.
813 (dtrace_type_name): Rename to...
814 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
815 reflect change.
816 (dtrace_probe::get_static_ops): New method.
817 (dtrace_gen_info_probes_table_header): Rename to...
818 (dtrace_static_probe_ops::gen_info_probes_table_header):
819 ...this. Adjust code to reflect change.
820 (dtrace_gen_info_probes_table_values): Rename to...
821 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
822 code to reflect change.
823 (dtrace_enable_probe): Rename to...
824 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
825 change.
826 (dtrace_disable_probe): Rename to...
827 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
828 change.
829 (struct probe_ops dtrace_probe_ops): Delete.
830 (info_probes_dtrace_command): Call 'info_probes_for_spops'
831 instead of 'info_probes_for_ops'.
832 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
833 of 'all_probe_ops'.
834
0e9ae10f
SDJ
8352017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
836 Simon Marchi <simark@simark.ca>
837
838 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
839 variable.
840 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
841 <aexpr>: Change type to 'expression_up'.
842 (stap_probe_arg_s): Delete type and VEC.
843 (struct stap_probe): Delete. Replace by...
844 (class stap_static_probe_ops): ...this and...
845 (class stap_probe): ...this. Rename variables to add 'm_'
846 prefix. Do not use 'union' for arguments anymore.
847 (stap_get_expected_argument_type): Receive probe name instead
848 of 'struct stap_probe'. Adjust code.
849 (stap_parse_probe_arguments): Rename to...
850 (stap_probe::parse_arguments): ...this. Adjust code to
851 reflect change.
852 (stap_get_probe_address): Rename to...
853 (stap_probe::get_relocated_address): ...this. Adjust code
854 to reflect change.
855 (stap_get_probe_argument_count): Rename to...
856 (stap_probe::get_argument_count): ...this. Adjust code
857 to reflect change.
858 (stap_get_arg): Rename to...
859 (stap_probe::get_arg_by_number'): ...this. Adjust code to
860 reflect change.
861 (can_evaluate_probe_arguments): Rename to...
862 (stap_probe::can_evaluate_arguments): ...this. Adjust code
863 to reflect change.
864 (stap_evaluate_probe_argument): Rename to...
865 (stap_probe::evaluate_argument): ...this. Adjust code
866 to reflect change.
867 (stap_compile_to_ax): Rename to...
868 (stap_probe::compile_to_ax): ...this. Adjust code to
869 reflect change.
870 (stap_probe_destroy): Delete.
871 (stap_modify_semaphore): Adjust comment.
872 (stap_set_semaphore): Rename to...
873 (stap_probe::set_semaphore): ...this. Adjust code to reflect
874 change.
875 (stap_clear_semaphore): Rename to...
876 (stap_probe::clear_semaphore): ...this. Adjust code to
877 reflect change.
878 (stap_probe::get_static_ops): New method.
879 (handle_stap_probe): Adjust code to create instance of
880 'stap_probe'.
881 (stap_get_probes): Rename to...
882 (stap_static_probe_ops::get_probes): ...this. Adjust code to
883 reflect change.
884 (stap_probe_is_linespec): Rename to...
885 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
886 reflect change.
887 (stap_type_name): Rename to...
888 (stap_static_probe_ops::type_name): ...this. Adjust code to
889 reflect change.
890 (stap_gen_info_probes_table_header): Rename to...
891 (stap_static_probe_ops::gen_info_probes_table_header):
892 ...this. Adjust code to reflect change.
893 (stap_gen_info_probes_table_values): Rename to...
894 (stap_probe::gen_info_probes_table_values): ...this. Adjust
895 code to reflect change.
896 (struct probe_ops stap_probe_ops): Delete.
897 (info_probes_stap_command): Use 'info_probes_for_spops'
898 instead of 'info_probes_for_ops'.
899 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
900 of 'all_probe_ops'.
901
935676c9
SDJ
9022017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
903
904 * break-catch-throw.c (fetch_probe_arguments): Use
905 'probe.prob' instead of 'probe.probe'.
906 * breakpoint.c (create_longjmp_master_breakpoint): Call
907 'can_evaluate_arguments' and 'get_relocated_address' methods
908 from probe.
909 (create_exception_master_breakpoint): Likewise.
910 (add_location_to_breakpoint): Use 'sal->prob' instead of
911 'sal->probe'.
912 (bkpt_probe_insert_location): Call 'set_semaphore' method from
913 probe.
914 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
915 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
916 of 'probe_ops'.
917 (probe_key_free): Call 'delete' on probe.
918 (check_exception_resume): Use 'probe.prob' instead of
919 'probe.probe'.
920 * location.c (string_to_event_location_basic): Call
921 'probe_linespec_to_static_ops'.
922 * probe.c (class any_static_probe_ops): New class.
923 (any_static_probe_ops any_static_probe_ops): New variable.
924 (parse_probes_in_pspace): Receive 'static_probe_ops' as
925 argument. Adjust code to reflect change.
926 (parse_probes): Use 'static_probe_ops' instead of
927 'probe_ops'. Adjust code to reflect change.
928 (find_probes_in_objfile): Call methods to get name and
929 provider from probe.
930 (find_probe_by_pc): Use 'result.prob' instead of
931 'result.probe'. Call 'get_relocated_address' method from
932 probe.
933 (collect_probes): Adjust comment and argument list to receive
934 'static_probe_ops' instead of 'probe_ops'. Adjust code to
935 reflect change. Call necessary methods from probe.
936 (compare_probes): Call methods to get name and provider from
937 probes.
938 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
939 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
940 adjust code accordingly.
941 (print_ui_out_not_applicables): Likewise.
942 (info_probes_for_ops): Rename to...
943 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
944 as argument instead of 'probe_ops'. Adjust code. Call
945 necessary methods from probe.
946 (info_probes_command): Use 'info_probes_for_spops'.
947 (enable_probes_command): Pass correct argument to
948 'collect_probes'. Call methods from probe.
949 (disable_probes_command): Likewise.
950 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
951 (get_probe_argument_count): Move to
952 'any_static_probe_ops::get_argument_count'.
953 (can_evaluate_probe_arguments): Move to
954 'any_static_probe_ops::can_evaluate_arguments'.
955 (evaluate_probe_argument): Move to
956 'any_static_probe_ops::evaluate_argument'.
957 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
958 'probe.probe'.
959 (probe_linespec_to_ops): Rename to...
960 (probe_linespec_to_static_ops): ...this. Adjust code.
961 (probe_any_is_linespec): Rename to...
962 (any_static_probe_ops::is_linespec): ...this.
963 (probe_any_get_probes): Rename to...
964 (any_static_probe_ops::get_probes): ...this.
965 (any_static_probe_ops::type_name): New method.
966 (any_static_probe_ops::gen_info_probes_table_header): New
967 method.
968 (compute_probe_arg): Use 'pc_probe.prob' instead of
969 'pc_probe.probe'. Call methods from probe.
970 (compile_probe_arg): Likewise.
971 (std::vector<const probe_ops *> all_probe_ops): Delete.
972 (std::vector<const static_probe_ops *> all_static_probe_ops):
973 New variable.
974 (_initialize_probe): Use 'all_static_probe_ops' instead of
975 'all_probe_ops'.
976 * probe.h (struct info_probe_column) <field_name>: Delete
977 extraneous newline
978 (info_probe_column_s): Delete type and VEC.
979 (struct probe_ops): Delete. Replace with...
980 (class static_probe_ops): ...this and...
981 (clas probe): ...this.
982 (struct bound_probe) <bound_probe>: Delete extraneous
983 newline. Adjust constructor to receive 'probe' instead of
984 'struct probe'.
985 <probe>: Rename to...
986 <prob>: ...this. Delete extraneous newline.
987 <objfile>: Delete extraneous newline.
988 (register_probe_ops): Delete unused prototype.
989 (info_probes_for_ops): Rename to...
990 (info_probes_for_spops): ...this. Adjust comment.
991 (get_probe_address): Move to 'probe::get_address'.
992 (get_probe_argument_count): Move to
993 'probe::get_argument_count'.
994 (can_evaluate_probe_arguments): Move to
995 'probe::can_evaluate_arguments'.
996 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
997 * solib-svr4.c (struct svr4_info): Adjust comment.
998 (struct probe_and_action) <probe>: Rename to...
999 <prob>: ...this.
1000 (register_solib_event_probe): Receive 'probe' instead of
1001 'struct probe' as argument. Use 'prob' instead of 'probe'
1002 when applicable.
1003 (solib_event_probe_action): Call 'get_argument_count' method
1004 from probe. Adjust comment.
1005 (svr4_handle_solib_event): Adjust comment. Call
1006 'evaluate_argument' method from probe.
1007 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1008 from probe.
1009 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1010 'struct probe'. Call 'can_evaluate_arguments' from probe.
1011 * symfile.h: Forward declare 'class probe' instead of 'struct
1012 probe'.
1013 * symtab.h: Likewise.
1014 (struct symtab_and_line) <probe>: Rename to...
1015 <prob>: ...this.
1016 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1017 Call probe methods.
1018 (stop_tracing): Likewise.
1019
8f6cb6c3
JB
10202017-11-22 Joel Brobecker <brobecker@adacore.com>
1021
1022 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1023 trailing newline at end of string in call to warning.
1024
479f8de1
SM
10252017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1026
1027 * osdata.h: Include vector isntead of vec.h.
1028 (osdata_column_s): Remove typedef.
1029 (struct osdata_column): Add constructor.
1030 <name, value>: Change type to std::string.
1031 (DEF_VEC_O (osdata_column_s)): Remove.
1032 (osdata_item_s): Remove typedef.
1033 (struct osdata_item) <columns>: Change type to std::vector.
1034 (DEF_VEC_O (osdata_item_s)): Remove.
1035 (struct osdata): Add constructor.
1036 <type>: Change type to std::string.
1037 <items>: Change type to std::vector.
1038 (osdata_p): Remove typedef.
1039 (DEF_VEC_P (osdata_p)): Remove.
1040 (osdata_parse): Return a unique_ptr.
1041 (osdata_free): Remove.
1042 (make_cleanup_osdata_free): Remove.
1043 (get_osdata): Return a unique_ptr.
1044 (get_osdata_column): Return pointer to std::string, take a
1045 reference to osdata_item as parameter.
1046 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1047 unique_ptr.
1048 <property_name>: Change type to std::string.
1049 (osdata_start_osdata): Allocate osdata with new and adjust.
1050 (osdata_start_item): Adjust.
1051 (osdata_start_column): Adjust.
1052 (osdata_end_column): Adjust.
1053 (clear_parsing_data): Remove.
1054 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1055 (osdata_item_clear): Remove.
1056 (get_osdata): return a unique_ptr and adjust.
1057 (get_osdata_column): Return a pointer to std::string and adjust.
1058 (info_osdata): Adjust.
1059 * mi/mi-main.c: Include <map>.
1060 (free_vector_of_osdata_items): Remove.
1061 (list_available_thread_groups): Adjust, use std::map instead of
1062 splay tree.
1063
41bd68f5
SM
10642017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1065
1066 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1067 case in switch.
1068
7e2fd2f4
SM
10692017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1070
1071 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1072
0604393c
SM
10732017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1074
1075 * varobj.h (struct varobj_update_result): Add constructor, add
1076 move constructor, disable copy and assign, initialize fields.
1077 <newobj>: Change type to std::vector.
1078 (varobj_update): Return std::vector.
1079 * varobj.c (install_dynamic_child): Change VEC parameters to
1080 std::vector and adjust.
1081 (update_dynamic_varobj_children): Likewise.
1082 (varobj_update): Return std::vector and adjust.
1083 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1084
ddf0ea08
SM
10852017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1086
1087 * varobj.h (struct varobj) <parent>: Remove const.
1088 <children>: Change type to std::vector.
1089 (varobj_list_children): Return std::vector const reference.
1090 (varobj_restrict_range): Change parameter type to std::vector
1091 const reference.
1092 * varobj.c (varobj_has_more): Adjust.
1093 (varobj_restrict_range): Change parameter type to std::vector
1094 const reference and adjust.
1095 (install_dynamic_child): Adjust.
1096 (update_dynamic_varobj_children): Adjust.
1097 (varobj_list_children): Return std::vector const reference and
1098 adjust.
1099 (varobj_add_child): Adjust.
1100 (update_type_if_necessary): Adjust.
1101 (varobj_update): Adjust.
1102 (delete_variable_1): Adjust.
1103 * ada-varobj.c (ada_value_has_mutated): Adjust.
1104 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1105
9e5b9d2b
SM
11062017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1107
1108 * varobj.h (struct varobj): Add constructor and destructor,
1109 initialize fields.
1110 * varobj.c (struct varobj_root): Initialize fields.
1111 (struct varobj_dynamic): Initialize fields.
1112 (varobj_create): Use unique_ptr instead of cleanup. Create
1113 varobj with new instead of new_root_variable.
1114 (delete_variable_1): Free variable with delete instead of
1115 free_variable.
1116 (create_child_with_value): Create variable with new instead of
1117 new_variable.
1118 (varobj::varobj): New.
1119 (varobj::~varobj): New (body mostly coming from free_variable).
1120 (new_variable): Remove.
1121 (free_variable): Remove.
1122 (do_free_variable_cleanup): Remove.
1123 (make_cleanup_free_variable): Remove.
1124
fc35dab1
UW
11252017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1126
1127 * core-regset.c: Remove file.
1128 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1129
2400729e
UW
11302017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1131
1132 * NEWS: Document use of GNU MPFR.
1133 * README: Likewise.
1134
1135 * Makefile.in (LIBMPFR): Add define.
1136 (CLIBS): Add $(LIBMPFR).
1137 * configure.ac: Add --with-mpfr configure option.
1138 * configure: Regenerate.
1139 * config.in: Regenerate.
1140
1141 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1142 (class mpfr_float_ops): New type.
1143 (mpfr_float_ops::from_target): Two new overloaded functions.
1144 (mpfr_float_ops::to_target): Likewise.
1145 (mpfr_float_ops::to_string): New function.
1146 (mpfr_float_ops::from_string): Likewise.
1147 (mpfr_float_ops::to_longest): Likewise.
1148 (mpfr_float_ops::from_longest): Likewise.
1149 (mpfr_float_ops::from_ulongest): Likewise.
1150 (mpfr_float_ops::to_host_double): Likewise.
1151 (mpfr_float_ops::from_host_double): Likewise.
1152 (mpfr_float_ops::convert): Likewise.
1153 (mpfr_float_ops::binop): Likewise.
1154 (mpfr_float_ops::compare): Likewise.
1155 (get_target_float_ops): Use mpfr_float_ops if available.
1156
7a26362d
UW
11572017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1158
1159 * target-float.c: Do not include <math.h>.
1160 Include <cmath> and <limits>.
1161 (DOUBLEST): Do not define.
1162 (class target_float_ops): New type.
1163 (class host_float_ops): New templated type.
1164 (class decimal_float_ops): New type.
1165
1166 (floatformat_to_doublest): Rename to ...
1167 (host_float_ops<T>::from_target): ... this. Use template type T
1168 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1169 (host_float_ops<T>::from_target): New overload using a type argument.
1170 (floatformat_from_doublest): Rename to ...
1171 (host_float_ops<T>::to_target): ... this. Use template type T
1172 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1173 (host_float_ops<T>::to_target): New overload using a type argument.
1174 (floatformat_printf_format): New function.
1175 (struct printf_length_modifier): New templated type.
1176 (floatformat_to_string): Rename to ...
1177 (host_float_ops<T>::to_string): ... this. Use type instead of
1178 floatformat argument. Use floatformat_printf_format and
1179 printf_length_modifier. Remove special handling of invalid numbers,
1180 infinities and NaN (moved to target_float_to_string).
1181 (struct scanf_length_modifier): New templated type.
1182 (floatformat_from_string): Rename to ...
1183 (host_float_ops<T>::from_string): ... this. Use type instead of
1184 floatformat argument. Use scanf_length_modifier.
1185 (floatformat_to_longest): Rename to ...
1186 (host_float_ops<T>::to_longest): ... this. Use type instead of
1187 floatformat argument. Handle out-of-range values deterministically.
1188 (floatformat_from_longest): Rename to ...
1189 (host_float_ops<T>::from_longest): ... this. Use type instead of
1190 floatformat argument.
1191 (floatformat_from_ulongest): Rename to ...
1192 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
1193 floatformat argument.
1194 (floatformat_to_host_double): Rename to ...
1195 (host_float_ops<T>::to_host_double): ... this. Use type instead of
1196 floatformat argument.
1197 (floatformat_from_host_double): Rename to ...
1198 (host_float_ops<T>::from_host_double): ... this. Use type instead of
1199 floatformat argument.
1200 (floatformat_convert): Rename to ...
1201 (host_float_ops<T>::convert): ... this. Use type instead of
1202 floatformat arguments. Remove handling of no-op conversions.
1203 (floatformat_binop): Rename to ...
1204 (host_float_ops<T>::binop): ... this. Use type instead of
1205 floatformat arguments.
1206 (floatformat_compare): Rename to ...
1207 (host_float_ops<T>::compare): ... this. Use type instead of
1208 floatformat arguments.
1209
1210 (match_endianness): Use type instead of length/byte_order arguments.
1211 (set_decnumber_context): Likewise.
1212 (decimal_from_number): Likewise. Update calls.
1213 (decimal_to_number): Likewise.
1214 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
1215 (decimal_float_ops::to_host_double): New dummy function.
1216 (decimal_float_ops::from_host_double): Likewise.
1217 (decimal_to_string): Rename to ...
1218 (decimal_float_ops::to_string): ... this. Use type instead of
1219 length/byte_order arguments. Update calls.
1220 (decimal_from_string): Rename to ...
1221 (decimal_float_ops::from_string): ... this. Use type instead of
1222 length/byte_order arguments. Update calls.
1223 (decimal_from_longest): Rename to ...
1224 (decimal_float_ops::from_longest): ... this. Use type instead of
1225 length/byte_order arguments. Update calls.
1226 (decimal_from_ulongest): Rename to ...
1227 (decimal_float_ops::from_ulongest): ... this. Use type instead of
1228 length/byte_order arguments. Update calls.
1229 (decimal_to_longest): Rename to ...
1230 (decimal_float_ops::to_longest): ... this. Use type instead of
1231 length/byte_order arguments. Update calls.
1232 (decimal_binop): Rename to ...
1233 (decimal_float_ops::binop): ... this. Use type instead of
1234 length/byte_order arguments. Update calls.
1235 (decimal_compare): Rename to ...
1236 (decimal_float_ops::compare): ... this. Use type instead of
1237 length/byte_order arguments. Update calls.
1238 (decimal_convert): Rename to ...
1239 (decimal_float_ops::convert): ... this. Use type instead of
1240 length/byte_order arguments. Update calls.
1241
1242 (target_float_same_category_p): New function.
1243 (target_float_same_format_p): Likewise.
1244 (target_float_format_length): Likewise.
1245 (enum target_float_ops_kind): New type.
1246 (get_target_float_ops_kind): New function.
1247 (get_target_float_ops): Three new overloaded functions.
1248
1249 (target_float_is_zero): Update call.
1250 (target_float_to_string): Add special handling of invalid numbers,
1251 infinities and NaN (moved from floatformat_to_string). Use
1252 target_float_ops callback.
1253 (target_float_from_string): Use target_float_ops callback.
1254 (target_float_to_longest): Likewise.
1255 (target_float_from_longest): Likewise.
1256 (target_float_from_ulongest): Likewise.
1257 (target_float_to_host_double): Likewise.
1258 (target_float_from_host_double): Likewise.
1259 (target_float_convert): Add special case for no-op conversions.
1260 Use target_float_ops callback.
1261 (target_float_binop): Use target_float_ops callback.
1262 (target_float_compare): Likewise.
1263
a9f26f60
YQ
12642017-11-22 Yao Qi <yao.qi@linaro.org>
1265
1266 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
1267
29f9a567
YQ
12682017-11-22 Yao Qi <yao.qi@linaro.org>
1269
1270 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
1271 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
1272
3b1b69bf
JG
12732017-11-21 Jerome Guitton <guitton@adacore.com>
1274
1275 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
1276 with event ptid from the lower layer before doing the
1277 ravenscar-specific update.
1278
54aa6c67
JB
12792017-11-21 Joel Brobecker <brobecker@adacore.com>
1280
1281 * ravenscar-thread.c (is_ravenscar_task): Also verify that
1282 the ptid's TID is nonzero.
1283
cf3fbed4
JB
12842017-11-21 Joel Brobecker <brobecker@adacore.com>
1285
1286 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
1287 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
1288 Make non-static. Change return type to char *. Adjust code
1289 accordingly. Rewrite the function's documentation.
1290 (read_atcb): Adjust call to get_tcb_types_info accordingly.
1291 * ravenscar-thread.c (ravenscar_inferior_created): Check that
1292 we have enough debugging information in the runtime to support
1293 Ada task debugging before we enable the ravenscar-thread layer.
1294
9edcc12f
JB
12952017-11-21 Joel Brobecker <brobecker@adacore.com>
1296
1297 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
1298 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
1299 * ravenscar-thread.c: Add into comment.
1300 (base_magic_null_ptid): Delete.
1301 (base_ptid): Change documentation.
1302 (ravenscar_active_task): Renames ravenscar_running_thread.
1303 All callers updated throughout.
1304 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
1305 (ravenscar_task_is_currently_active): Likewise.
1306 (get_base_thread_from_ravenscar_task): Ditto.
1307 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
1308 (ravenscar_runtime_initialized): Likewise.
1309 (get_running_thread_id): Add new parameter "cpu". Adjust
1310 implementation to handle this new parameter.
1311 (ravenscar_fetch_registers): Small adjustment to use
1312 is_ravenscar_task and ravenscar_task_is_currently_active in
1313 order to decide whether to use the target beneath or this
1314 module's arch_ops.
1315 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
1316 (ravenscar_stopped_by_sw_breakpoint): Use
1317 get_base_thread_from_ravenscar_task to get the underlying
1318 thread, rather than using base_ptid.
1319 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1320 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1321 Likewise.
1322 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
1323
65d40437
JB
13242017-11-21 Joel Brobecker <brobecker@adacore.com>
1325
1326 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
1327 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
1328 (get_tcb_types_info): Set fieldnos.base_cpu.
1329 (read_atcb): Set task_info->base_cpu.
1330 (info_task): Print "Base CPU" info if set by runtime.
1331
e02544b2
JB
13322017-11-21 Joel Brobecker <brobecker@adacore.com>
1333
1334 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
1335 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1336 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1337 New functions.
1338 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
1339 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
1340 to_stopped_data_address and to_core_of_thread fields of
1341 ravenscar_ops.
1342
ed0f4273
UW
13432017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
1344
1345 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
1346 (struct gdbarch_tdep): New member long_double_abi.
1347 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
1348 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
1349 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
1350 format depending on long_double_abi tdep member.
1351 (ppc_floatformat_for_type): Handle __ibm128 type.
1352
0fc76421
SM
13532017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1354
1355 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
1356
e6b2f5ef
PA
13572017-11-21 Pedro Alves <palves@redhat.com>
1358
1359 * dwarf2read.c (mapped_index::find_name_components_bounds)
1360 <completion mode, upper bound>: Use std::lower_bound instead of
1361 std::upper_bound.
1362 (test_mapped_index_find_name_component_bounds): Remove incorrect
1363 "t1_fund" from expected symbols.
1364
5c58de74
PA
13652017-11-21 Pedro Alves <palves@redhat.com>
1366
1367 * dwarf2read.c (mapped_index::name_components_casing): New field.
1368 (mapped_index) <build_name_components,
1369 find_name_components_bounds): Declare new methods.
1370 (mapped_index::find_name_components_bounds)
1371 (mapped_index::build_name_components): New methods, factored out
1372 from dw2_expand_symtabs_matching_symbol.
1373 (check_find_bounds_finds)
1374 (test_mapped_index_find_name_component_bounds): New.
1375 (run_test): Rename to ...
1376 (test_dw2_expand_symtabs_matching_symbol): ... this.
1377 (run_test): Reimplement.
1378
e1ef7d7a
PA
13792017-11-21 Pedro Alves <palves@redhat.com>
1380
1381 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
1382 (symbol_end): Use cp_ident_is_alnum.
1383 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
1384 * dwarf2read.c (make_sort_after_prefix_name): New function.
1385 (dw2_expand_symtabs_matching_symbol): Use it.
1386 (test_symbols): Add more symbols.
1387 (run_test): Add tests.
1388
cf724bc9
TT
13892017-11-17 Tom Tromey <tom@tromey.com>
1390
1391 * symtab.h (enum symbol_subclass_kind): New.
1392 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
1393 Remove.
1394 <subclass>: New member.
1395 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
1396 * rust-lang.c (rust_get_trait_object_pointer): Update.
1397 * dwarf2read.c (read_func_scope): Update.
1398 (read_variable): Update.
1399
68e745e3
TT
14002017-11-17 Tom Tromey <tom@tromey.com>
1401
1402 * dwarf2read.c (read_func_scope): Update.
1403 * symtab.h (struct template_symbol): Derive from symbol.
1404 <base>: Remove.
1405
71a3c369
TT
14062017-11-17 Tom Tromey <tom@tromey.com>
1407
1408 * symtab.h (struct symbol) <is_rust_vtable>: New member.
1409 (struct rust_vtable_symbol): New.
1410 (find_symbol_at_address): Declare.
1411 * symtab.c (find_symbol_at_address): New function.
1412 * symfile.h (struct quick_symbol_functions)
1413 <find_compunit_symtab_by_address>: New member.
1414 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
1415 function.
1416 (debug_sym_quick_functions): Link to
1417 debug_qf_find_compunit_symtab_by_address.
1418 * rust-lang.c (rust_get_trait_object_pointer): New function.
1419 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
1420 rust_get_trait_object_pointer.
1421 * psymtab.c (psym_relocate): Clear psymbol_map.
1422 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
1423 functions.
1424 (psym_functions): Link to psym_find_compunit_symtab_by_address.
1425 * objfiles.h (struct objfile) <psymbol_map>: New member.
1426 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
1427 (process_die) <DW_TAG_variable>: New case. Call read_variable.
1428 (rust_containing_type, read_variable): New functions.
1429
7468702d
SM
14302017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1431
1432 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
1433
37269bc9
SM
14342017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1435
1436 * common/filestuff.c: Include <algorithm>.
1437 (open_fds): Change type to std::vector<int>.
1438 (do_mark_open_fd): Adjust.
1439 (unmark_fd_no_cloexec): Adjust.
1440 (do_close): Adjust.
1441
5c632425
SM
14422017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1443
1444 * breakpoint.c (output_thread_groups): Take an std::vector.
1445 (print_one_breakpoint_location): Adjust.
1446
ced9779b
JB
14472017-11-17 Joel Brobecker <brobecker@adacore.com>
1448
1449 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
1450 (ada_evaluate_subexp_for_cast): New function.
1451 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
1452 ada_evaluate_subexp_for_cast.
1453 (ada_evaluate_subexp) <nosideret>: Replace code by call to
1454 eval_skip_value.
1455 * eval.c (evaluate_var_value): Make non-static.
1456 (evaluate_var_msym_value, eval_skip_value): Likewise.
1457 * value.h (evaluate_var_value, evaluate_var_msym_value)
1458 (eval_skip_value): Declare.
1459
b7e22850
JB
14602017-11-16 Joel Brobecker <brobecker@adacore.com>
1461
1462 * ada-lang.c (ada_value_cast): Remove parameter "noside".
1463 Update all callers.
1464
9ccabccd
PA
14652017-11-16 Pedro Alves <palves@redhat.com>
1466
1467 * python/py-unwind.c (pyuw_sniffer): Translate
1468 PyExc_KeyboardInterrupt to a GDB Quit exception.
1469
d930703d
PA
14702017-11-16 Pedro Alves <palves@redhat.com>
1471
1472 * infrun.c (resume_cleanups): Delete.
1473 (resume): No longer install a resume_cleanups cleanup nor call
1474 QUIT.
1475 (proceed): Pass the terminal to the inferior.
1476 (keep_going_pass_signal): No longer install a resume_cleanups
1477 cleanup.
1478
38dc2859
PA
14792017-11-16 Pedro Alves <palves@redhat.com>
1480
1481 * inf-loop.c (inferior_event_handler): Don't swallow the exception
1482 if the prompt is blocked.
1483
688fca4f
PA
14842017-11-16 Pedro Alves <palves@redhat.com>
1485
1486 * breakpoint.c (insert_bp_location): Replace bp_err and
1487 bp_err_message locals by a gdb_exception local.
1488
e2c33ac7
PA
14892017-11-16 Pedro Alves <palves@redhat.com>
1490
1491 * inflow.c (scoped_ignore_sigttou): New class.
1492 (child_terminal_ours_1, new_tty): Use it.
1493
d7236961
UW
14942017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1495
1496 * target-float.c (decimal_from_number): Add byte_order argument and
1497 call match_endianness. Error if unknown floating-point type.
1498 (decimal_to_number): Add byte_order argument and call match_endianness.
1499 (decimal_from_longest): Update call. Do not call match_endianness.
1500 (decimal_from_ulongest): Likewise.
1501 (decimal_binop): Likewise.
1502 (decimal_is_zero): Likewise.
1503 (decimal_compare): Likewise.
1504 (decimal_convert): Likewise.
1505
d8ae99a7
PM
15062017-11-16 Phil Muldoon <pmuldoon@redhat.com>
1507
1508 * python/python.c (gdbpy_rbreak): New function.
1509 * NEWS: Document Python rbreak feature.
1510
c632b645
YQ
15112017-11-16 Yao Qi <yao.qi@linaro.org>
1512
1513 * features/tic6x-c62x.xml: Remove.
1514 * features/tic6x-c64x.xml: Remove.
1515 * features/tic6x-c64xp.xml: Remove.
1516
a014b87a
JB
15172017-11-15 John Baldwin <jhb@FreeBSD.org>
1518
1519 * symtab.h: Include <array>.
1520
94765011
JB
15212017-11-15 John Baldwin <jhb@FreeBSD.org>
1522
1523 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
1524 (bsd_kvm_proc_cmd): Likewise.
1525
625ad440
SM
15262017-11-15 Simon Marchi <simon.marchi@ericsson.com>
1527
1528 * tui/tui-win.c (window_name_completer): Replace VEC with
1529 std::vector.
1530
c0c11fa9
AC
15312017-11-15 Andrew Cagney <cagney@gnu.org>
1532
1533 * MAINTAINERS: Remove no-longer applicable entries.
1534
34a7ebaf
AC
15352017-11-15 Andrew Cagney <cagney@gnu.org>
1536
1537 * MAINTAINERS: Move self to Past Maintainers.
1538
5334ef39
YQ
15392017-11-15 Yao Qi <yao.qi@linaro.org>
1540
1541 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
1542 * features/nios2-linux.c: Remove.
1543 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
1544 initialize_tdesc_nios2_linux.
1545
a714b0d6
YQ
15462017-11-15 Yao Qi <yao.qi@linaro.org>
1547
1548 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
1549 M68HC11_LAST_HARD_REG + 1.
1550
92ffd475
PC
15512017-11-14 Paul Carroll <pcarroll@codesourcery.com>
1552
1553 PR gdb/22388
1554 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
1555 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
1556 Return TARGET_XFER_EOF if size of returned data is 0.
1557
07431908
SM
15582017-11-14 Simon Marchi <simon.marchi@ericsson.com>
1559
1560 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1561 memory-map-selftests.c.
1562 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
1563 * memory-map.c (memory_map_start_memory): Fix computation of hi
1564 address.
1565 * unittests/memory-map-selftests.c: New file.
1566
31432a67
JB
15672017-11-09 Joel Brobecker <brobecker@adacore.com>
1568
1569 * ada-lang.c: Fix some typos in the general command documenting
1570 how Ada expressions are being evaluated and how their result
1571 is printed.
1572
e793c052
TT
15732017-11-09 Tom Tromey <tom@tromey.com>
1574
1575 * psymtab.c (psymbol_hash): Do not hash string contents.
1576 (psymbol_compare): Add comment.
1577
7e8835c5
TT
15782017-11-09 Tom Tromey <tom@tromey.com>
1579
1580 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
1581
286acbb5
JB
15822017-11-08 Joel Brobecker <brobecker@adacore.com>
1583
1584 * ada-exp.y (write_var_from_sym): Remove parameter
1585 "orig_left_context". Update all callers.
1586
b44ec619
SM
15872017-11-08 Simon Marchi <simon.marchi@ericsson.com>
1588
1589 * tracepoint.h (class collection_list) <stringify>: Return
1590 std::vector<std::string>.
1591 (encode_actions_rsp): Change parameters to
1592 std::vector<std::string> *.
1593 * tracepoint.c (collection_list::stringify): Return
1594 std::vector<std::string> and adjust accordingly.
1595 (encode_actions_rsp): Changee parameters to
1596 std::vector<std::string> and adjust accordingly.
1597 * remote.c (free_actions_list),
1598 free_actions_list_cleanup_wrapper): Remove.
1599 (remote_download_tracepoint): Adjust to std::vector.
1600
2f4732b0
TT
16012017-11-08 Tom Tromey <tom@tromey.com>
1602
1603 * dwarf2read.c (symbolp): Remove typedef.
1604 (read_func_scope): Use std::vector.
1605 (process_structure_scope): Use std::vector.
1606
f9d67a22
PA
16072017-11-08 Pedro Alves <palves@redhat.com>
1608
1609 * ada-lang.c (ada_make_symbol_completion_list): Use
1610 completion_skip_symbol.
1611 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
1612 (symbol_is_function_or_method(symbol*)): New.
1613 (add_symtab_completions): Add complete_symbol_mode parameter. Use
1614 completion_skip_symbol.
1615 (default_collect_symbol_completion_matches_break_on): Use
1616 completion_skip_symbol. Pass down mode.
1617 (collect_file_symbol_completion_matches): Pass down mode.
1618 * symtab.h (symbol_is_function_or_method): New declarations.
1619 (completion_skip_symbol): New template function.
1620
56d87ef7
PA
16212017-11-08 Pedro Alves <palves@redhat.com>
1622
1623 * linespec.c (iterate_over_all_matching_symtabs): Add
1624 search_domain parameter. Pass it down to expand_symtabs_matching.
1625 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
1626 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
1627 search_domain.
1628 (add_all_symbol_names_from_pspace): Add search_domain parameter.
1629 Pass it down.
1630 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
1631 symbols.
1632 (add_matching_symbols_to_info): Add search_domain parameter. Pass
1633 it down.
1634
1b026119
PA
16352017-11-08 Pedro Alves <palves@redhat.com>
1636
1637 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
1638 text_len locals and don't pass them down.
1639 * symtab.c (completion_list_add_name): Remove
1640 sym_text/sym_text_len parameters and adjust.
1641 (completion_list_add_symbol, completion_list_add_msymbol)
1642 (completion_list_objc_symbol, completion_list_add_fields)
1643 (add_symtab_completions): Likewise.
1644 (default_collect_symbol_completion_matches_break_on)
1645 (collect_file_symbol_completion_matches): Remove sym_text_len
1646 local and don't pass it down.
1647 * symtab.h (completion_list_add_name): Remove
1648 sym_text/sym_text_len parameters.
1649
c62446b1
PA
16502017-11-08 Pedro Alves <palves@redhat.com>
1651
1652 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1653 unittests/lookup_name_info-selftests.c.
1654 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
1655 * cp-support.c: Include "selftest.h".
1656 (cp_remove_params_1): Rename from cp_remove_params. Add
1657 'require_param' parameter, and handle it.
1658 (cp_remove_params): Reimplement.
1659 (cp_remove_params_if_any): New.
1660 (selftests::quote): New.
1661 (selftests::check_remove_params): New.
1662 (selftests::test_cp_remove_params): New.
1663 (_initialize_cp_support): Install
1664 selftests::test_cp_remove_params.
1665 * cp-support.h (cp_remove_params_if_any): Declare.
1666 * dwarf2read.c :Include "selftest.h".
1667 (dw2_expand_symtabs_matching_symbol): Use
1668 lookup_name_info::make_ignore_params.
1669 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
1670 (selftests::dw2_expand_symtabs_matching::string_or_null)
1671 (selftests::dw2_expand_symtabs_matching::check_match)
1672 (selftests::dw2_expand_symtabs_matching::test_symbols)
1673 (selftests::dw2_expand_symtabs_matching::run_test): New.
1674 (_initialize_dwarf2_read): Register
1675 selftests::dw2_expand_symtabs_matching::run_test.
1676 * psymtab.c (psym_expand_symtabs_matching): Use
1677 lookup_name_info::make_ignore_params.
1678 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
1679 If the lookup name wants to ignore parameters, strip them.
1680 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
1681 code handling '('.
1682 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
1683 (default_collect_symbol_completion_matches_break_on): Don't try to
1684 strip parameters.
1685 * symtab.h (lookup_name_info::lookup_name_info): Add
1686 'ignore_parameters' parameter.
1687 (lookup_name_info::ignore_parameters)
1688 (lookup_name_info::make_ignore_params): New methods.
1689 (lookup_name_info::m_ignore_parameters): New field.
1690 * unittests/lookup_name_info-selftests.c: New file.
1691
61920122
PA
16922017-11-08 Pedro Alves <palves@redhat.com>
1693
1694 * dwarf2read.c (dw2_expand_marked_cus)
1695 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
1696 (dw2_expand_symtabs_matching): Move further below.
1697 (dw2_expand_marked_cus): Reindent.
1698
3f563c84
PA
16992017-11-08 Pedro Alves <palves@redhat.com>
1700
1701 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
1702 (struct name_component): New.
1703 (mapped_index::name_components): New field.
1704 (mapped_index::symbol_name_at): New method.
1705 (dwarf2_read_index): Call mapped_index ctor.
1706 (dw2_map_matching_symbols): Add comment about name_components
1707 table.
1708 (dw2_expand_symtabs_matching): Factor part to...
1709 (dw2_expand_symtabs_matching_symbol): ... this new function.
1710 Build name components table, and lookup symbols in it before
1711 calling the name matcher.
1712 (dw2_expand_marked_cus): New, factored out from
1713 dw2_expand_symtabs_matching.
1714 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
1715
b5ec771e
PA
17162017-11-08 Pedro Alves <palves@redhat.com>
1717
1718 * ada-lang.c (ada_encode): Rename to ..
1719 (ada_encode_1): ... this. Add throw_errors parameter and handle
1720 it.
1721 (ada_encode): Reimplement.
1722 (match_name): Delete, folded into full_name.
1723 (resolve_subexp): No longer pass the encoded name to
1724 ada_lookup_symbol_list.
1725 (should_use_wild_match): Delete.
1726 (name_match_type_from_name): New.
1727 (ada_lookup_simple_minsym): Use lookup_name_info and the
1728 language's symbol_name_matcher_ftype.
1729 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
1730 (ada_add_block_renamings): Adjust to use lookup_name_info.
1731 (ada_lookup_name): New.
1732 (add_nonlocal_symbols, ada_add_all_symbols)
1733 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
1734 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
1735 (ada_name_for_lookup): Delete.
1736 (ada_lookup_encoded_symbol): Construct a verbatim name.
1737 (wild_match): Reverse sense of return type. Use bool.
1738 (full_match): Reverse sense of return type. Inline bits of old
1739 match_name here.
1740 (ada_add_block_symbols): Adjust to use lookup_name_info.
1741 (symbol_completion_match): Delete, folded into...
1742 (ada_lookup_name_info::matches): ... .this new method.
1743 (symbol_completion_add): Delete.
1744 (ada_collect_symbol_completion_matches): Add name_match_type
1745 parameter. Adjust to use lookup_name_info and
1746 completion_list_add_name.
1747 (get_var_value, ada_add_global_exceptions): Adjust to use
1748 lookup_name_info.
1749 (ada_get_symbol_name_cmp): Delete.
1750 (do_wild_match, do_full_match): New functions.
1751 (ada_lookup_name_info::ada_lookup_name_info): New method.
1752 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
1753 functions.
1754 (ada_language_defn): Install ada_get_symbol_name_matcher.
1755 * ada-lex.l (processId): If name starts with '<', copy it
1756 verbatim.
1757 * block.c (block_iter_match_step, block_iter_match_first)
1758 (block_iter_match_next, block_lookup_symbol)
1759 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
1760 lookup_name_info.
1761 * block.h (block_iter_match_first, block_iter_match_next)
1762 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
1763 * c-lang.c (c_language_defn, cplus_language_defn)
1764 (asm_language_defn, minimal_language_defn): Adjust comments to
1765 refer to la_get_symbol_name_matcher.
1766 * completer.c (complete_files_symbols)
1767 (collect_explicit_location_matches, symbol_completer): Pass a
1768 symbol_name_match_type down.
1769 * completer.h (class completion_match, completion_match_result):
1770 New classes.
1771 (completion_tracker::reset_completion_match_result): New method.
1772 (completion_tracker::m_completion_match_result): New field.
1773 * cp-support.c (make_symbol_overload_list_block): Adjust to use
1774 lookup_name_info.
1775 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
1776 functions.
1777 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
1778 * d-lang.c: Adjust comments to refer to
1779 la_get_symbol_name_matcher.
1780 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
1781 Adjust to use lookup_name_info.
1782 (dict_iter_match_first, dict_iter_match_next)
1783 (iter_match_first_hashed, iter_match_next_hashed)
1784 (iter_match_first_linear, iter_match_next_linear): Adjust to work
1785 with a lookup_name_info.
1786 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
1787 Likewise.
1788 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
1789 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
1790 (gdb_index_symbol_name_matcher): New class.
1791 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
1792 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
1793 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
1794 with a symbol_name_match_type.
1795 (f_language_defn): Adjust comments to refer to
1796 la_get_symbol_name_matcher.
1797 * go-lang.c (go_language_defn): Adjust comments to refer to
1798 la_get_symbol_name_matcher.
1799 * language.c (default_symbol_name_matcher)
1800 (language_get_symbol_name_matcher): New functions.
1801 (unknown_language_defn, auto_language_defn): Adjust comments to
1802 refer to la_get_symbol_name_matcher.
1803 * language.h (symbol_name_cmp_ftype): Delete.
1804 (language_defn) <la_collect_symbol_completion_matches>: Add match
1805 type parameter.
1806 <la_get_symbol_name_cmp>: Delete field.
1807 <la_get_symbol_name_matcher>: New field.
1808 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
1809 (default_symbol_name_matcher, language_get_symbol_name_matcher):
1810 Declare.
1811 * linespec.c (iterate_over_all_matching_symtabs)
1812 (iterate_over_file_blocks): Adjust to use lookup_name_info.
1813 (find_methods): Add language parameter, and use lookup_name_info
1814 and the language's symbol_name_matcher_ftype.
1815 (linespec_complete_function): Adjust.
1816 (lookup_prefix_sym): Use lookup_name_info.
1817 (add_all_symbol_names_from_pspace): Adjust.
1818 (find_superclass_methods): Add language parameter and pass it
1819 down.
1820 (find_method): Pass symbol language down.
1821 (find_linespec_symbols): Don't demangle or Ada encode here.
1822 (search_minsyms_for_name): Add lookup_name_info parameter.
1823 (add_matching_symbols_to_info): Add name_match_type parameter.
1824 Use lookup_name_info.
1825 * m2-lang.c (m2_language_defn): Adjust comments to refer to
1826 la_get_symbol_name_matcher.
1827 * minsyms.c: Include <algorithm>.
1828 (add_minsym_to_demangled_hash_table): Remove table parameter and
1829 add objfile parameter. Use search_name_hash, and add language to
1830 demangled languages vector.
1831 (struct found_minimal_symbols): New struct.
1832 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
1833 New functions.
1834 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
1835 input names here. Use lookup_name_info instead. Lookup up
1836 demangled names once for each language in the demangled names
1837 vector.
1838 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
1839 demangled names once for each language in the demangled names
1840 vector.
1841 (build_minimal_symbol_hash_tables): Adjust.
1842 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
1843 lookup_name_info.
1844 * objc-lang.c (objc_language_defn): Adjust comment to refer to
1845 la_get_symbol_name_matcher.
1846 * objfiles.h: Include <vector>.
1847 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
1848 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
1849 la_get_symbol_name_matcher.
1850 * p-lang.c (pascal_language_defn): Adjust comment to refer to
1851 la_get_symbol_name_matcher.
1852 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
1853 (match_partial_symbol): Use symbol_name_match_type,
1854 lookup_name_info and psymbol_name_matches.
1855 (lookup_partial_symbol): Use lookup_name_info.
1856 (map_block): Use symbol_name_match_type and lookup_name_info.
1857 (psym_map_matching_symbols): Use symbol_name_match_type.
1858 (psymbol_name_matches): New.
1859 (recursively_search_psymtabs): Use lookup_name_info and
1860 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
1861 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
1862 'kind' parameter to 'domain'.
1863 * rust-lang.c (rust_language_defn): Adjust comment to refer to
1864 la_get_symbol_name_matcher.
1865 * symfile-debug.c (debug_qf_map_matching_symbols)
1866 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
1867 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
1868 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
1869 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
1870 Adjust to use symbol_name_match_type.
1871 <expand_symtabs_matching>: Adjust to use lookup_name_info.
1872 (expand_symtabs_matching): Adjust to use lookup_name_info.
1873 * symmisc.c (maintenance_expand_symtabs): Use
1874 lookup_name_info::match_any ().
1875 * symtab.c (symbol_matches_search_name): New.
1876 (eq_symbol_entry): Adjust to use lookup_name_info and the
1877 language's matcher.
1878 (demangle_for_lookup_info::demangle_for_lookup_info): New.
1879 (lookup_name_info::match_any): New.
1880 (iterate_over_symbols, search_symbols): Use lookup_name_info.
1881 (compare_symbol_name): Add language, lookup_name_info and
1882 completion_match_result parameters, and use them.
1883 (completion_list_add_name): Make extern. Add language and
1884 lookup_name_info parameters. Use them.
1885 (completion_list_add_symbol, completion_list_add_msymbol)
1886 (completion_list_objc_symbol): Add lookup_name_info parameters and
1887 adjust. Pass down language.
1888 (completion_list_add_fields): Add lookup_name_info parameters and
1889 adjust. Pass down language.
1890 (add_symtab_completions): Add lookup_name_info parameters and
1891 adjust.
1892 (default_collect_symbol_completion_matches_break_on): Add
1893 name_match_type parameter, and use it. Use lookup_name_info.
1894 (default_collect_symbol_completion_matches)
1895 (collect_symbol_completion_matches): Add name_match_type
1896 parameter, and pass it down.
1897 (collect_symbol_completion_matches_type): Adjust.
1898 (collect_file_symbol_completion_matches): Add name_match_type
1899 parameter, and use lookup_name_info.
1900 * symtab.h: Include <string> and "common/gdb_optional.h".
1901 (enum class symbol_name_match_type): New.
1902 (class ada_lookup_name_info): New.
1903 (struct demangle_for_lookup_info): New.
1904 (class lookup_name_info): New.
1905 (symbol_name_matcher_ftype): New.
1906 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
1907 (symbol_matches_search_name): Declare.
1908 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
1909 (default_collect_symbol_completion_matches)
1910 (collect_symbol_completion_matches)
1911 (collect_file_symbol_completion_matches): Add name_match_type
1912 parameter.
1913 (iterate_over_symbols): Use lookup_name_info.
1914 (completion_list_add_name): Declare.
1915 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
1916 (strncmp_iw_with_mode): Now extern.
1917 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
1918 (strncmp_iw_with_mode): Declare.
1919
5ffa0793
PA
19202017-11-08 Keith Seitz <keiths@redhat.com>
1921 Pedro Alves <palves@redhat.com>
1922
1923 * ada-lang.c (ada_language_defn): Install
1924 default_search_name_hash.
1925 * buildsym.c (struct buildsym_compunit): <language>: New field.
1926 (finish_block_internal): Pass language when creating dictionaries.
1927 (start_buildsym_compunit, start_symtab): New language parameters.
1928 Use them.
1929 (restart_symtab): Pass down compilation unit's language.
1930 * buildsym.h (enum language): Forward declare.
1931 (start_symtab): New 'language' parameter.
1932 * c-lang.c (c_language_defn, cplus_language_defn)
1933 (asm_language_defn, minimal_language_defn): Install
1934 default_search_name_hash.
1935 * coffread.c (coff_start_symtab): Adjust.
1936 * d-lang.c (d_language_defn): Install default_search_name_hash.
1937 * dbxread.c (struct symloc): Add 'pst_language' field.
1938 (PST_LANGUAGE): Define.
1939 (start_psymtab, read_ofile_symtab): Use it.
1940 (process_one_symbol): New 'language' parameter. Pass it down.
1941 * dictionary.c (struct dictionary) <language>: New field.
1942 (DICT_LANGUAGE): Define.
1943 (dict_create_hashed, dict_create_hashed_expandable)
1944 (dict_create_linear, dict_create_linear_expandable): New parameter
1945 'language'. Set the dictionary's language.
1946 (iter_match_first_hashed): Adjust to rename.
1947 (insert_symbol_hashed): Assert we don't see mismatching
1948 languages. Adjust to rename.
1949 (dict_hash): Rename to ...
1950 (default_search_name_hash): ... this and make extern.
1951 * dictionary.h (struct language_defn): Forward declare.
1952 (dict_create_hashed): New parameter 'language'.
1953 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
1954 * f-lang.c (f_language_defn): Install default_search_name_hash.
1955 * go-lang.c (go_language_defn): Install default_search_name_hash.
1956 * jit.c (finalize_symtab): Pass compunit's language to dictionary
1957 creation.
1958 * language.c (unknown_language_defn, auto_language_defn):
1959 * language.h (language_defn::la_search_name_hash): New field.
1960 (default_search_name_hash): Declare.
1961 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
1962 * mdebugread.c (new_block): New parameter 'language'.
1963 * mdebugread.c (parse_symbol): Pass symbol language to block
1964 allocation.
1965 (psymtab_to_symtab_1): Pass down language.
1966 (new_symtab): Pass compunit's language to block allocation.
1967 * objc-lang.c (objc_language_defn): Install
1968 default_search_name_hash.
1969 * opencl-lang.c (opencl_language_defn):
1970 * p-lang.c (pascal_language_defn): Install
1971 default_search_name_hash.
1972 * rust-lang.c (rust_language_defn): Install
1973 default_search_name_hash.
1974 * stabsread.h (enum language): Forward declare.
1975 (process_one_symbol): Add 'language' parameter.
1976 * symtab.c (search_name_hash): New function.
1977 * symtab.h (search_name_hash): Declare.
1978 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
1979
2a1dde5d
PA
19802017-11-08 Pedro Alves <palves@redhat.com>
1981
1982 * cp-name-parser.y (main): Don't initialize extra_chars.
1983
95a6b0a1
TT
19842017-11-07 Tom Tromey <tom@tromey.com>
1985
1986 * event-top.h (command_handler): Constify.
1987 * record-full.c (cmd_record_full_start): Update.
1988 * thread.c (thread_apply_all_command): Update.
1989 * printcmd.c (eval_command): Update.
1990 * mi/mi-main.c (mi_execute_cli_command): Update.
1991 (mi_execute_async_cli_command): Update.
1992 * tui/tui-stack.c (tui_update_command): Update.
1993 * cli/cli-interp.c (safe_execute_command): Constify.
1994 * record.c (record_start): Update.
1995 (record_start, record_stop, cmd_record_start): Update.
1996 * record-btrace.c (cmd_record_btrace_bts_start): Update.
1997 (cmd_record_btrace_pt_start): Update.
1998 (cmd_record_btrace_start): Update.
1999 (cmd_record_btrace_start): Update.
2000 * reverse.c (exec_reverse_once): Update.
2001 * python/python.c (execute_gdb_command): Don't copy the command.
2002 * event-top.c (command_line_handler): Update.
2003 (command_handler): Constify.
2004 * defs.h (deprecated_call_command_hook): Constify.
2005 * cli/cli-script.h (execute_user_command): Constify.
2006 * cli/cli-script.c (execute_user_command): Constify.
2007 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2008 (enum command_control_type): Update.
2009 * main.c (catch_command_errors): Remove non-const overload.
2010 (catch_command_errors_ftype): Remove.
2011 * python/py-cmd.c (cmdpy_function): Constify.
2012 * guile/scm-cmd.c (cmdscm_function): Constify.
2013 * cli/cli-dump.c (call_dump_func): Constify.
2014 * cli/cli-decode.c (do_const_cfunc): Constify.
2015 (do_sfunc): Constify.
2016 (cmd_func): Constify.
2017 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2018 * top.h (execute_command): Constify.
2019 * top.c (execute_command): Constify.
2020 (execute_command_to_string): Constify.
2021 (deprecated_call_command_hook): Constify.
2022 * command.h (cmd_func): Constify.
2023 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2024
eb4c3f4a
TT
20252017-11-07 Tom Tromey <tom@tromey.com>
2026
2027 * ada-lang.c (catch_ada_exception_command): Constify.
2028 (catch_assert_command): Constify.
2029 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2030 (catch_rethrow_command): Constify.
2031 (catch_exception_command_1): Constify.
2032 * breakpoint.h (add_catch_command): Constify.
2033 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2034 (catch_syscall_split_args): Constify.
2035 * break-catch-sig.c (catch_signal_command): Constify.
2036 (catch_signal_split_args): Constify.
2037 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2038 cmd_const_sfunc_ftype.
2039 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2040 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2041 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2042 (add_setshow_string_cmd, struct cmd_list_element)
2043 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2044 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2045 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2046 Constify.
2047 (set_cmd_sfunc): Constify.
2048 (empty_sfunc): Constify.
2049 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2050 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2051 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2052 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2053 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2054 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2055 Constify.
2056 (set_cmd_sfunc): Constify.
2057 (cmd_sfunc_ftype): Remove.
2058 * compile/compile.c (set_compile_args): Constify.
2059 * infrun.c (set_disable_randomization): Constify.
2060 * infcmd.c (set_args_command, set_cwd_command): Constify.
2061 * breakpoint.c (set_condition_evaluation_mode): Constify.
2062 (add_catch_command): Constify.
2063 (catch_fork_command_1, catch_exec_command_1)
2064 (catch_load_command_1, catch_unload_command_1): Constify.
2065 (catch_load_or_unload): Constify.
2066 * guile/scm-param.c (pascm_set_func): Constify.
2067 (add_setshow_generic): Constify.
2068 * python/py-param.c (get_set_value): Constify.
2069 * top.h (set_verbose): Constify.
2070 * tui/tui-win.c (tui_set_var_cmd): Constify.
2071 * mi/mi-main.c (set_mi_async_command): Constify.
2072 * cli/cli-logging.c (set_logging_overwrite)
2073 (set_logging_redirect): Constify.
2074 * value.c (set_max_value_size): Constify.
2075 * valprint.c (set_input_radix, set_output_radix): Constify.
2076 * utils.c (set_width_command, set_height_command): Constify.
2077 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2078 * tracepoint.c (set_disconnected_tracing)
2079 (set_circular_trace_buffer, set_trace_buffer_size)
2080 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2081 * top.c (set_history_size_command, set_verbose, set_editing)
2082 (set_gdb_datadir, set_history_filename): Constify.
2083 * target.c (set_targetdebug, maint_set_target_async_command)
2084 (maint_set_target_non_stop_command, set_target_permissions)
2085 (set_write_memory_permission): Constify.
2086 (open_target): Constify.
2087 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2088 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2089 * symtab.c (set_symbol_cache_size_handler): Constify.
2090 * symfile.c (set_ext_lang_command): Constify.
2091 * symfile-debug.c (set_debug_symfile): Constify.
2092 * source.c (set_directories_command): Constify.
2093 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2094 * serial.c (set_parity): Constify.
2095 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2096 * remote.c (set_remote_exec_file, set_remotebreak)
2097 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2098 * record.c (set_record_insn_history_size)
2099 (set_record_call_history_size): Constify.
2100 * record-full.c (set_record_full_insn_max_num): Constify.
2101 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2102 * osabi.c (set_osabi): Constify.
2103 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2104 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2105 * maint.c (maintenance_set_profile_cmd): Constify.
2106 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2107 * language.c (set_language_command, set_range_command)
2108 (set_case_command): Constify.
2109 * infrun.c (set_non_stop, set_observer_mode)
2110 (set_stop_on_solib_events, set_schedlock_func)
2111 (set_exec_direction_func): Constify.
2112 * infcmd.c (set_inferior_tty_command): Constify.
2113 * disasm.c (set_disassembler_options_sfunc): Constify.
2114 * demangle.c (set_demangling_command): Constify.
2115 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2116 * cris-tdep.c (set_cris_version, set_cris_mode)
2117 (set_cris_dwarf2_cfi): Constify.
2118 * corefile.c (set_gnutarget_command): Constify.
2119 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2120 (set_target_wide_charset_sfunc): Constify.
2121 * breakpoint.c (update_dprintf_commands): Constify.
2122 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2123 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2124 (set_disassembly_style_sfunc): Constify.
2125 * arch-utils.c (set_endian, set_architecture): Constify.
2126 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2127 * agent.c (set_can_use_agent): Constify.
2128
5fed81ff
TT
21292017-11-07 Tom Tromey <tom@tromey.com>
2130
2131 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2132 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2133 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2134 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2135 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2136 (parse_int_arg, show_thread_default_detach_sc_cmd)
2137 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2138 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2139 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2140 (show_task_pause_cmd, set_task_detach_sc_cmd)
2141 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2142 (set_noninvasive_cmd, set_thread_pause_cmd)
2143 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2144 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2145 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2146 * windows-nat.c (display_selectors): Constify.
2147 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2148 non-const "cfunc".
2149 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2150 (cmd_cfunc_eq): Likewise.
2151 (struct cmd_list_element): Likewise.
2152 (do_cfunc): Remove.
2153 (cli_user_command_p): Update.
2154 * command.h (add_cmd): Remove non-const overload.
2155 (cmd_cfunc_ftype): Remove typedef.
2156 (cmd_cfunc_eq): Remove non-const overload.
2157 * value.c (show_values): Constify.
2158 * thread.c (thread_apply_all_command): Constify.
2159 * symfile.c (load_command): Constify.
2160 * source.c (directory_command): Constify.
2161 * maint.c (maintenance_internal_error)
2162 (maintenance_demangler_warning, maintenance_space_display)
2163 (maintenance_print_architecture, maintenance_translate_address)
2164 (maintenance_info_selftests, maintenance_internal_warning):
2165 Constify.
2166 * breakpoint.c (disable_trace_command, enable_trace_command):
2167 Constify.
2168 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
2169 Constify.
2170 (add_auto_load_safe_path): Constify.
2171 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
2172 * top.h (show_commands): Constify.
2173 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
2174 * sparc64-tdep.c (adi_examine_command): Constify.
2175 (adi_assign_command): Constify.
2176
1d12d88f
TT
21772017-11-07 Tom Tromey <tom@tromey.com>
2178
2179 * frame.h (info_locals_command, info_args_command): Constify.
2180 * auto-load.h (auto_load_info_scripts): Constify.
2181 * inferior.h (registers_info): Constify.
2182 * copying.c: Rebuild.
2183 * copying.awk: Constify generated commands.
2184 * auto-load.c (auto_load_info_scripts)
2185 (info_auto_load_gdb_scripts): Constify.
2186 * cli/cli-decode.c (struct cmd_list_element): Take a
2187 cmd_const_cfunc_ftype.
2188 * command.h (add_info): Take a cmd_const_cfunc_ftype.
2189 * tui/tui-win.c (tui_all_windows_info): Constify.
2190 * python/py-auto-load.c (info_auto_load_python_scripts):
2191 Constify.
2192 * cli/cli-cmds.c (show_command): Remove non-const overload.
2193 * tracepoint.c (info_tvariables_command, info_scope_command):
2194 Constify.
2195 (info_static_tracepoint_markers_command): Constify.
2196 * thread.c (info_threads_command): Constify.
2197 (print_thread_info_1): Constify.
2198 * target.c (info_target_command): Constify.
2199 * symtab.c (info_sources_command, info_functions_command)
2200 (info_types_command): Constify.
2201 (info_variables_command): Remove non-const overload.
2202 * symfile.c (info_ext_lang_command): Constify.
2203 * stack.c (info_frame_command, info_locals_command)
2204 (info_args_command): Constify.
2205 (backtrace_command): Remove non-const overload.
2206 * source.c (info_source_command, info_line_command): Constify.
2207 * solib.c (info_sharedlibrary_command): Constify.
2208 * skip.c (info_skip_command): Constify.
2209 * ser-go32.c (info_serial_command): Constify.
2210 * reverse.c (info_bookmarks_command): Constify.
2211 * printcmd.c (info_symbol_command, info_address_command)
2212 (info_display_command): Constify.
2213 * osdata.c (info_osdata_command): Constify.
2214 * objc-lang.c (info_selectors_command, info_classes_command):
2215 Constify.
2216 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
2217 * memattr.c (info_mem_command): Constify.
2218 * macrocmd.c (info_macro_command, info_macros_command): Constify.
2219 * linux-fork.c (info_checkpoints_command): Constify.
2220 * infrun.c (info_signals_command): Constify.
2221 * inflow.c (info_terminal_command): Constify.
2222 * inferior.c (info_inferiors_command): Constify.
2223 (print_inferior): Constify.
2224 * infcmd.c (info_program_command, info_all_registers_command)
2225 (info_registers_command, info_vector_command)
2226 (info_float_command): Constify.
2227 (registers_info): Constify.
2228 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
2229 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
2230 Constify.
2231 * f-valprint.c (info_common_command): Constify.
2232 * dcache.c (info_dcache_command): Constify.
2233 (dcache_info_1): Constify.
2234 * darwin-nat-info.c (info_mach_tasks_command)
2235 (info_mach_task_command, info_mach_ports_command)
2236 (info_mach_port_command, info_mach_threads_command)
2237 (info_mach_thread_command, info_mach_regions_command)
2238 (info_mach_regions_recurse_command, info_mach_region_command)
2239 (info_mach_exceptions_command): Constify.
2240 (get_task_from_args): Constify.
2241 * cp-support.c (info_vtbl_command): Constify.
2242 * breakpoint.c (info_watchpoints_command)
2243 (info_tracepoints_command): Constify.
2244 (info_breakpoints_command): Remove non-const overload.
2245 * avr-tdep.c (avr_io_reg_read_command): Constify.
2246 * auxv.c (info_auxv_command): Constify.
2247 * ada-tasks.c (info_tasks_command): Constify.
2248 (info_task): Constify.
2249 * ada-lang.c (info_exceptions_command): Constify.
2250
0b39b52e
TT
22512017-11-07 Tom Tromey <tom@tromey.com>
2252
2253 * solib.h (no_shared_libraries): Constify.
2254 * frame.h (return_command): Constify.
2255 * cli/cli-cmds.h (quit_command): Constify.
2256 * top.h (quit_command, execute_command): Constify.
2257 * target.h (flash_erase_command): Constify.
2258 * inferior.h (set_inferior_args, attach_command): Constify.
2259 * tracepoint.h (start_tracing, stop_tracing): Constify.
2260 * breakpoint.h (break_command, tbreak_command)
2261 (hbreak_command_wrapper, thbreak_command_wrapper)
2262 (rbreak_command_wrapper, watch_command_wrapper)
2263 (awatch_command_wrapper, rwatch_command_wrapper)
2264 (get_tracepoint_by_number): Constify.
2265 * symtab.c (info_variables_command, rbreak_command)
2266 (symtab_symbol_info): Constify.
2267 (info_variables_command): Add non-const overload.
2268 * top.c (dont_repeat_command): Constify.
2269 * breakpoint.c (ignore_command, commands_command)
2270 (condition_command, tbreak_command, hbreak_command)
2271 (thbreak_command, clear_command, break_command)
2272 (info_breakpoints_command, watch_command, rwatch_command)
2273 (awatch_command, trace_command, ftrace_command, strace_command)
2274 (trace_pass_command, break_range_command, dprintf_command)
2275 (agent_printf_command, get_tracepoint_by_number)
2276 (watch_maybe_just_location, trace_pass_command): Constify.
2277 (info_breakpoints_command): Add non-const overload.
2278 * tracefile.c (tsave_command): Constify.
2279 * infcmd.c (attach_command, disconnect_command, signal_command)
2280 (queue_signal_command, stepi_command, nexti_command)
2281 (finish_command, next_command, step_command, until_command)
2282 (advance_command, jump_command, continue_command, run_command)
2283 (start_command, starti_command, interrupt_command)
2284 (run_command_1, set_inferior_args, step_1): Constify.
2285 * inferior.c (add_inferior_command, remove_inferior_command)
2286 (clone_inferior_command): Constify.
2287 * linux-fork.c (checkpoint_command, restart_command): Constify.
2288 * windows-nat.c (signal_event_command): Constify.
2289 * guile/guile.c (guile_repl_command, guile_command): Constify.
2290 * printcmd.c (x_command, display_command, printf_command)
2291 (output_command, set_command, call_command, print_command)
2292 (eval_command): Constify.
2293 (non_const_set_command): Remove.
2294 (_initialize_printcmd): Update.
2295 * source.c (forward_search_command, reverse_search_command):
2296 Constify.
2297 * jit.c (jit_reader_load_command, jit_reader_unload_command):
2298 Constify.
2299 * infrun.c (handle_command): Constify.
2300 * memattr.c (mem_command): Constify.
2301 * stack.c (return_command, up_command, up_silently_command)
2302 (down_command, down_silently_command, frame_command)
2303 (backtrace_command, func_command, backtrace_command_1): Constify.
2304 (backtrace_command): Add non-const overload.
2305 * remote-sim.c (simulator_command): Constify.
2306 * exec.c (set_section_command): Constify.
2307 * tracepoint.c (tdump_command, trace_variable_command)
2308 (tstatus_command, tstop_command, tstart_command)
2309 (end_actions_pseudocommand, while_stepping_pseudocommand)
2310 (collect_pseudocommand, teval_pseudocommand, actions_command)
2311 (start_tracing, stop_tracing): Constify.
2312 * value.c (init_if_undefined_command): Constify.
2313 * tui/tui-stack.c (tui_update_command): Constify.
2314 * tui/tui-win.c (tui_refresh_all_command)
2315 (tui_set_tab_width_command, tui_set_win_height_command)
2316 (tui_set_focus_command, tui_scroll_forward_command)
2317 (tui_scroll_backward_command, tui_scroll_left_command)
2318 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
2319 (tui_set_win_height): Constify.
2320 * tui/tui-layout.c (tui_layout_command): Constify.
2321 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
2322 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
2323 (proc_untrace_sysexit_cmd): Constify.
2324 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
2325 (threadset_test_cmd, threadlist_update_test_cmd)
2326 (threadalive_test): Constify.
2327 * objc-lang.c (print_object_command): Constify.
2328 * command.h (add_com): Constify.
2329 * cli/cli-dump.c (restore_command): Constify.
2330 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
2331 (help_command, complete_command, shell_command, edit_command)
2332 (list_command, disassemble_command, make_command)
2333 (apropos_command, alias_command): Constify.
2334 * cli/cli-script.c (document_command, define_command)
2335 (while_command, if_command, validate_comname): Constify.
2336 * cli/cli-decode.c (struct cmd_list_element): Change type of
2337 "fun".
2338 * target.c (do_monitor_command, flash_erase_command): Constify.
2339 * regcache.c (reg_flush_command): Constify.
2340 * reverse.c (reverse_step, reverse_next, reverse_stepi)
2341 (reverse_nexti, reverse_continue, reverse_finish)
2342 (save_bookmark_command, goto_bookmark_command)
2343 (exec_reverse_once): Constify.
2344 * python/python.c (python_interactive_command, python_command):
2345 Constify.
2346 * typeprint.c (ptype_command, whatis_command, whatis_exp):
2347 Constify.
2348 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
2349 * gcore.c (gcore_command): Constify.
2350
85c4be7c
TT
23512017-11-07 Tom Tromey <tom@tromey.com>
2352
2353 * printcmd.c (x_command): Call set_repeat_arguments.
2354 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
2355 * top.c (repeat_arguments): New global.
2356 (set_repeat_arguments): New function.
2357 (execute_command): Handle repeat_arguments.
2358 (show_commands): Calls set_repeat_arguments.
2359 * command.h (set_repeat_arguments): Declare.
2360
022643b4
TT
23612017-11-07 Tom Tromey <tom@tromey.com>
2362
2363 * stack.c (backtrace_command): Use std::string.
2364 (backtrace_command_1): Make "count_exp" const.
2365
5614fb77
TT
23662017-11-07 Tom Tromey <tom@tromey.com>
2367
2368 * source.c (directory_switch, mod_path, add_path): Constify.
2369 * defs.h (add_path, mod_path, directory_switch): Constify.
2370 * mi/mi-cmd-env.c (env_mod_path): Constify.
2371
6be9a197
TT
23722017-11-07 Tom Tromey <tom@tromey.com>
2373
2374 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
2375 (run_command_1, continue_command, step_1, jump_command)
2376 (signal_command, until_command, advance_command, finish_command)
2377 (attach_command): Update.
2378
c2252c0d
TT
23792017-11-07 Tom Tromey <tom@tromey.com>
2380
2381 * command.h (set_cmd_cfunc): Don't declare.
2382 * cli/cli-decode.c (set_cmd_cfunc): Now static.
2383
1ee870c5
TT
23842017-11-07 Tom Tromey <tom@tromey.com>
2385
2386 * stack.c (select_frame_command): Constify.
2387 * cli/cli-decode.c (add_com_suppress_notification): Constify.
2388 * command.h (add_com_suppress_notification): Constify.
2389
ee7ddd71
TT
23902017-11-07 Tom Tromey <tom@tromey.com>
2391
2392 * breakpoint.c (stop_command): Constify.
2393 * cli/cli-decode.c (struct cmd_list_element): Constify.
2394 * command.h (add_abbrev_prefix_cmd): Constify.
2395
95e95a6d
PA
23962017-11-07 Pedro Alves <palves@redhat.com>
2397
2398 * breakpoint.c (extract_bp_kind): New enum.
2399 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
2400 factored out from ...
2401 (extract_bp_number_and_location): ... here.
2402 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
2403
cc638e86
PA
24042017-11-07 Pedro Alves <palves@redhat.com>
2405
2406 * breakpoint.c (extract_bp_number_and_location): Change return
2407 type to void. Throw error instead of warning.
2408 (enable_disable_command): Adjust.
2409
d0fe4701
XR
24102017-11-07 Xavier Roirand <roirand@adacore.com>
2411 Pedro Alves <palves@redhat.com>
2412
2413 * breakpoint.c (map_breakpoint_number_range): New, factored out
2414 from ...
2415 (map_breakpoint_numbers): ... here.
2416 (find_location_by_number): Change parameters from string to
2417 breakpoint number and location.
2418 (extract_bp_number_and_location): New function.
2419 (enable_disable_bp_num_loc)
2420 (enable_disable_breakpoint_location_range)
2421 (enable_disable_command): New functions, factored out ...
2422 (enable_command, disable_command): ... these functions, and
2423 adjusted to support ranges.
2424 * NEWS: Document enable/disable breakpoint location range feature.
2425
635dc5b2
LM
24262017-11-06 Luis Machado <luis.machado@linaro.org>
2427
2428 * MAINTAINERS (Write After Approval): Update my e-mail address.
2429
556e5da5
PA
24302017-11-06 Pedro Alves <palves@redhat.com>
2431
2432 * gnu-nat.c (gnu_terminal_init): Delete.
2433 (gnu_target): Don't install gnu_terminal_init.
2434 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
2435 (child_terminal_init): ... this function.
2436
d1928160
PA
24372017-11-06 Pedro Alves <palves@redhat.com>
2438
2439 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
2440 sgtty.h.
2441 * config.in, configure: Regenerate.
2442
6aa899ce
PA
24432017-11-06 Pedro Alves <palves@redhat.com>
2444
2445 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
2446 (async_init_signals): Adjust.
2447 (handle_stop_sig): Rename to ...
2448 (handle_sigtstp): ... this.
2449 (async_stop_sig): Rename to ...
2450 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
2451 SIGTSTP path.
2452 * event-top.h: Move signal.h include to the top. Check SIGTSTP
2453 instead of STOP_SIGNAL thoughout.
2454 (handle_stop_sig): Rename to ...
2455 (handle_sigtstp): ... this.
2456 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
2457
a94799ac
PA
24582017-11-06 Pedro Alves <palves@redhat.com>
2459
2460 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
2461 longer set flags twice in row.
2462
726e1356
PA
24632017-11-06 Pedro Alves <palves@redhat.com>
2464
2465 * Makefile.in (SER_HARDWIRE): Update comment.
2466 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
2467 * common/gdb_termios.h: Delete file.
2468 * common/job-control.c: Include termios.h and unistd.h instead of
2469 gdb_termios.h.
2470 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
2471 check.
2472 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
2473 Remove sgtty code.
2474 * configure.ac: No longer check for termio.h and sgtty.h.
2475 * configure: Regenerate.
2476 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
2477 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
2478 Replace PROCESS_GROUP_TYPE references with pid_t references
2479 throughout.
2480 (gdb_getpgrp): Delete.
2481 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
2482 (child_terminal_inferior): Remove comment. Remove sgtty code.
2483 (child_terminal_ours_1): Use tcgetpgrp directly instead of
2484 gdb_getpgrp. Use serial_set_tty_state instead aof
2485 serial_noflush_set_tty_state. Remove sgtty code.
2486 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
2487 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
2488 (inferior_process_group): Now returns pid_t.
2489 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
2490 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
2491 * ser-event.c (serial_event_ops): Update.
2492 * ser-go32.c (dos_noflush_set_tty_state): Delete.
2493 (dos_ops): Update.
2494 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
2495 * ser-pipe.c (pipe_ops): Update.
2496 * ser-tcp.c (tcp_ops): Update.
2497 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
2498 HAVE_TERMIOS checks.
2499 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
2500 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
2501 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
2502 assume termios.
2503 (hardwire_noflush_set_tty_state): Delete.
2504 (hardwire_print_tty_state, hardwire_drain_output)
2505 (hardwire_flush_output, hardwire_flush_input)
2506 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
2507 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
2508 code, and assume termios.
2509 (hardwire_ops): Update.
2510 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
2511 * serial.c (serial_noflush_set_tty_state): Delete.
2512 * serial.h (serial_noflush_set_tty_state): Delete.
2513 (serial_ops::noflush_set_tty_state): Delete.
2514
1cfb73db
UW
25152017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2516
2517 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
2518 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
2519 (COMMON_OBS): Remove doublest.o and dfp.o.
2520 Do not build target-float.c (instead of doublest.c)
2521 with -Wformat-nonliteral.
2522
2523 * doublest.c: Remove file.
2524 * doublest.h: Remove file.
2525 * dfp.c: Remove file.
2526 * dfp.h: Remove file.
2527
2528 * target-float.c: Do not include "doublest.h" and "dfp.h".
2529 (DOUBLEST): Move here from doublest.h.
2530 (enum float_kind): Likewise.
2531 (FLOATFORMAT_CHAR_BIT): Likewise.
2532 (FLOATFORMAT_LARGEST_BYTES): Likewise.
2533 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
2534 (floatformat_precision): Likewise.
2535 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
2536 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
2537 Likewise.
2538 (host_float_format, host_double_format, host_long_double_format):
2539 Likewise.
2540 (floatformat_to_string, floatformat_from_string): Likewise.
2541 (floatformat_to_doublest): Likewise. Also, inline the original
2542 convert_floatformat_to_doublest.
2543 (floatformat_from_doublest): Likewise. Also, inline the original
2544 convert_floatformat_from_doublest.
2545
2546 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
2547 (MAX_DECIMAL_STRING): Move here from dfp.c.
2548 (match_endianness): Likewise.
2549 (set_decnumber_context, decimal_check_errors): Likewise.
2550 (decimal_from_number, decimal_to_number): Likewise.
2551 (decimal_to_string, decimal_from_string): Likewise. Make static.
2552 (decimal_from_longest, decimal_from_ulongest): Likewise.
2553 (decimal_to_longest): Likewise.
2554 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
2555 (decimal_convert): Likewise.
2556
b07e9c46
UW
25572017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2558
2559 * doublest.c: Do not include "gdbtypes.h".
2560 (extract_typed_floating): Remove.
2561 (store_typed_floating): Remove.
2562 (convert_typed_floating): Remove.
2563 * doublest.h (struct type): Remove.
2564 (DOUBLEST_PRINT_FORMAT): Remove.
2565 (DOUBLEST_SCAN_FORMAT): Remove.
2566 (extract_typed_floating): Remove.
2567 (store_typed_floating): Remove.
2568 (convert_typed_floating): Remove.
2569
2570 * dfp.c (decimal_from_doublest): Remove.
2571 (decimal_to_doublest): Remove.
2572 * dfp.h: Do not include "doublest.h".
2573 (decimal_from_doublest): Remove.
2574 (decimal_to_doublest): Remove.
2575
2576 * value.c: Do not include "doublest.h" and "dfp.h".
2577 (value_as_double): Remove.
2578 (unpack_double): Remove.
2579 (value_from_double): Remove.
2580 (value_from_decfloat): Remove.
2581 * value.h: Do not include "doublest.h".
2582 (value_as_double): Remove.
2583 (unpack_double): Remove.
2584 (value_from_double): Remove.
2585 (value_from_decfloat): Remove.
2586
3b2ca824
UW
25872017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2588
2589 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
2590 (i386_extract_return_value): Use target_float_convert.
2591 (i386_store_return_value): Likewise.
2592 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
2593 (i387_value_to_register): Likewise.
2594 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
2595 (ia64_register_to_value): Use target_float_convert.
2596 (ia64_value_to_register): Likewise.
2597 (ia64_extract_return_value): Likewise.
2598 (ia64_store_return_value): Likewise.
2599 (ia64_push_dummy_call): Likewise.
2600 * m68k-tdep.c: Include "target-float.h".
2601 (m68k_register_to_value): Use target_float_convert.
2602 (m68k_value_to_register): Likewise.
2603 (m68k_svr4_extract_return_value): Likewise.
2604 (m68k_svr4_store_return_value): Likewise.
2605 * ppc-sysv-tdep.c: Include "target-float.h".
2606 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
2607 (do_ppc_sysv_return_value): Likewise.
2608 (ppc64_sysv_abi_push_freg): Likewise.
2609 (ppc64_sysv_abi_return_value_base): Likewise.
2610 * rs6000-aix-tdep.c: Include "target-float.h".
2611 (rs6000_push_dummy_call): Use target_float_convert.
2612 (rs6000_return_value): Likewise.
2613 * rs6000-lynx178-tdep.c: Include "target-float.h".
2614 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
2615 (rs6000_lynx178_return_value): Likewise.
2616 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
2617 (rs6000_register_to_value): Use target_float_convert.
2618 (rs6000_value_to_register): Likewise.
2619 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
2620 (arm_extract_return_value): Use target_float_convert.
2621 (arm_store_return_value): Likewise.
2622 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
2623 (sh_register_convert_to_virtual): Use target_float_convert.
2624 (sh_register_convert_to_raw): Likewise.
2625 * sh64-tdep.c: Include "target-float.h".
2626 (sh64_extract_return_value): Use target_float_convert.
2627 (sh64_register_convert_to_virtual): Likewise.
2628 (sh64_register_convert_to_raw): Likewise. Fix argument types.
2629
14ad9311
UW
26302017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2631
2632 * target-float.c (floatformat_to_host_double): New function.
2633 (floatformat_from_host_double): Likewise.
2634 (target_float_to_host_double): Likewise.
2635 (target_float_from_host_double): Likewise.
2636 * target-float.h (target_float_to_host_double): Add prototype.
2637 (target_float_from_host_double): Likewise.
2638
2639 * guile/scm-value.c: Include "target-float.h".
2640 (gdbscm_value_to_real): Use target_float_to_host_double.
2641 Handle integer source values via value_as_long.
2642 * guile/scm-math.c: Include "target-float.h". Do not include
2643 "doublest.h", "dfp.h", and "expression.h".
2644 (vlscm_convert_typed_number): Use target_float_from_host_double.
2645 (vlscm_convert_number): Likewise.
2646
2647 * python/py-value.c (valpy_float): Use target_float_to_host_double.
2648 (convert_value_from_python): Use target_float_from_host_double.
2649
50eff16b
UW
26502017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2651
2652 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
2653 (cast_from_fixed): Likewise.
2654 (ada_scaling_type): New function.
2655 (ada_delta): Return value instead of DOUBLEST. Perform target
2656 arithmetic instead of host arithmetic.
2657 (scaling_factor): Rename to ...
2658 (ada_scaling_factor) ... this. Make non-static. Return value instead
2659 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
2660 (ada_fixed_to_float): Remove.
2661 (ada_float_to_fixed): Remove.
2662 * ada-lang.h (ada_fixed_to_float): Remove.
2663 (ada_float_to_fixed): Remove.
2664 (ada_delta): Return value instead of DOUBLEST.
2665 (ada_scaling_factor): Add prototype.
2666
2667 * ada-typeprint.c: Include "target-float.h".
2668 (print_fixed_point_type): Perform target arithmetic instead of
2669 host arithmetic.
2670 * ada-valprint.c: Include "target-float.h".
2671 (ada_val_print_num): Perform target arithmetic instead of
2672 host arithmetic for fixed-point types.
2673
66c02b9e
UW
26742017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2675
2676 * target-float.c: Include <math.h>.
2677 (floatformat_binop): New function.
2678 (floatformat_compare): Likewise.
2679 (target_float_binop): Likewise.
2680 (target_float_compare): Likewise.
2681 * target-float.h: Include "expression.h".
2682 (target_float_binop): Add prototype.
2683 (target_float_compare): Likewise.
2684
2685 * valarith.c: Do not include "doublest.h" and "dfp.h".
2686 Include "common/byte-vector.h".
2687 (value_args_as_decimal): Remove, replace by ...
2688 (value_args_as_target_float): ... this function. Handle both
2689 binary and decimal target floating-point formats.
2690 (scalar_binop): Handle both binary and decimal FP using
2691 value_args_as_target_float and target_float_binop.
2692 (value_equal): Handle both binary and decimal FP using
2693 value_args_as_target_float and target_float_compare.
2694 (value_less): Likewise.
2695 (value_pos): Handle all scalar types as simple copy.
2696 (value_neg): Handle all scalar types via BINOP_SUB from 0.
2697 * dfp.c (decimal_binop): Throw error instead of internal_error
2698 when called with an unsupported operation code.
2699
f69fdf9b
UW
27002017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2701
2702 * target-float.c (target_float_to_string): New function.
2703 (target_float_from_string): New function.
2704 * target-float.h (target_float_to_string): Add prototype.
2705 (target_float_from_string): Add prototype.
2706
2707 * valprint.c: Include "target-float.h". Do not include
2708 "doublest.h" and "dfp.h".
2709 (print_floating): Use target_float_to_string.
2710 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
2711 (printf_floating): Use target_float_to_string.
2712 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
2713 (print_i387_value): Use target_float_to_string.
2714 * mips-tdep.c: Include "target-float.h".
2715 (mips_print_fp_register): Use target_float_to_string.
2716 * sh64-tdep.c: Include "target-float.h".
2717 (sh64_do_fp_register): Use target_float_to_string.
2718
2719 * parse.c: Include "target-float.h". Do not include
2720 "doublest.h" and "dfp.h".
2721 (parse_float): Use target_float_from_string.
2722 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
2723 (define_symbol): Use target_float_from_string.
2724 * gdbarch-selftests.c: Include "target-float.h".
2725 (register_to_value_test): Use target_float_from_string.
2726
70100014
UW
27272017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2728
2729 * Makefile.c (SFILES): Add target-float.c.
2730 (HFILES_NO_SRCDIR): Add target-float.h.
2731 (COMMON_OBS): Add target-float.o.
2732 * target-float.h: New file.
2733 * target-float.c: New file.
2734
2735 * doublest.c (floatformat_classify): Fix detection of float_zero.
2736
2737 * gdbtypes.c (is_floating_type): New function.
2738 * gdbtypes.h (is_floating_type): Add prototype.
2739
2740 * value.c: Do not include "floatformat.h".
2741 (unpack_double): Use target_float_is_valid.
2742 (is_floating_value): New function.
2743 * value.h (is_floating_value): Add prototype-
2744
2745 * valarith.c: Include "target-float.h".
2746 (value_logical_not): Use target_float_is_zero.
2747
2748 * python/py-value.c: Include "target-float.h".
2749 (valpy_nonzero): Use target_float_is_zero.
2750
ab4b1c46
TT
27512017-11-04 Tom Tromey <tom@tromey.com>
2752
2753 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
2754
454dafbd
TT
27552017-11-04 Tom Tromey <tom@tromey.com>
2756
2757 * breakpoint.c (set_momentary_breakpoint): Return
2758 breakpoint_up.
2759 (until_break_command): Update.
2760 (new_until_break_fsm): Change argument types to
2761 breakpoint_up.
2762 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2763 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
2764 Remove.
2765 * infcmd.c (finish_forward): Update.
2766 * breakpoint.h (set_momentary_breakpoint)
2767 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2768 (make_cleanup_delete_breakpoint): Remove.
2769 (struct breakpoint_deleter): New.
2770 (breakpoint_up): New typedef.
2771 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
2772 (insert_exception_resume_breakpoint): Update.
2773 (insert_exception_resume_from_probe): Update.
2774 (insert_longjmp_resume_breakpoint): Update.
2775 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
2776 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
2777 * infcall.c (call_function_by_hand_dummy): Update
2778
331b71e5
TT
27792017-11-04 Tom Tromey <tom@tromey.com>
2780
2781 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
2782
9f584b37
TT
27832017-11-04 Tom Tromey <tom@tromey.com>
2784
2785 * linux-tdep.c (linux_core_info_proc_mappings): Use
2786 gdb::def_vector.
2787 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
2788 "size" argument.
2789 (linux_corefile_thread): Update.
2790 (linux_make_corefile_notes): Remove unused variable.
2791
779bc38e
TT
27922017-11-04 Tom Tromey <tom@tromey.com>
2793
2794 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
2795 gdb::byte_vector.
2796
ed2b3126
TT
27972017-11-04 Tom Tromey <tom@tromey.com>
2798
2799 * objfiles.c (do_free_objfile_cleanup): Remove.
2800 * compile/compile-object-load.c (compile_object_load): Update.
2801 * objfiles.h (make_cleanup_free_objfile): Remove.
2802
7f6743fd
TT
28032017-11-04 Tom Tromey <tom@tromey.com>
2804
2805 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
2806 (adi_read_versions): Change "tags" to "gdb_byte *".
2807 (adi_print_versions): Likewise.
2808
c80049d3
TT
28092017-11-04 Tom Tromey <tom@tromey.com>
2810
2811 * breakpoint.c
2812 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
2813 from start_rbreak_breakpoints.
2814 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
2815 * breakpoint.h (class scoped_rbreak_breakpoints): New.
2816 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
2817 * symtab.c (do_end_rbreak_breakpoints): Remove.
2818 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
2819
167b0be1
TT
28202017-11-04 Tom Tromey <tom@tromey.com>
2821
2822 * cp-namespace.c (reset_directive_searched): Remove.
2823 (cp_lookup_symbol_via_imports): Use scoped_restore.
2824 * cp-support.c (reset_directive_searched): Remove.
2825 (make_symbol_overload_list_using): Use scoped_restore.
2826 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
2827 (reset_directive_searched): Remove.
2828
5eae7aea
TT
28292017-11-04 Tom Tromey <tom@tromey.com>
2830
2831 * symfile.c (find_separate_debug_file_by_debuglink): Use
2832 unique_xmalloc_ptr.
2833
c6bcad5f
TT
28342017-11-04 Tom Tromey <tom@tromey.com>
2835
2836 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
2837 type of "info".
2838 (compute_stack_depth): Likewise.
2839 (do_compile_dwarf_expr_to_c): Use std::vector.
2840
20dcd8ca
TT
28412017-11-04 Tom Tromey <tom@tromey.com>
2842
2843 * compile/compile-object-load.c (link_callbacks_einfo): Use
2844 std::string.
2845
33c7c59d
TT
28462017-11-04 Tom Tromey <tom@tromey.com>
2847
2848 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2849 Use scoped_free_pendings.
2850 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
2851 scoped_free_pendings.
2852 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
2853 (xcoff_initial_scan): Likewise.
2854 * buildsym.c (reset_symtab_globals): Update comment.
2855 (scoped_free_pendings): Rename from really_free_pendings.
2856 (prepare_for_building): Update comment.
2857 (buildsym_init): Likewise.
2858 * buildsym.h (class scoped_free_pendings): New class.
2859 (really_free_pendings): Don't declare.
2860
67fa57cf
UW
28612017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
2862
2863 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
2864 output when converting a zero value to a special byteorder format.
2865
f26ae15b
YQ
28662017-11-02 Yao Qi <yao.qi@linaro.org>
2867
2868 * frame.c (do_frame_register_read): Remove aspace.
2869 * jit.c (jit_frame_sniffer): Likwise.
2870 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2871 * regcache.c (regcache::regcache): Pass nullptr.
2872 (regcache_print): Caller updated.
2873 * regcache.h (regcache::regcache): Remove one constructor
2874 parameter aspace.
2875
6c6e9412
YQ
28762017-11-02 Yao Qi <yao.qi@linaro.org>
2877
2878 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
2879
8b86c959
YQ
28802017-11-02 Yao Qi <yao.qi@linaro.org>
2881
2882 * breakpoint.c (insert_single_step_breakpoints): Update.
2883 * frame.c (struct frame_info) <aspace>: Add const.
2884 (frame_save_as_regcache): Add const.
2885 (get_frame_address_space): Return const address_space *.
2886 * frame.h (get_frame_address_space): Update declaration.
2887 * infrun.c (struct step_over_info) <aspace>: Add const.
2888 (set_step_over_info): Make aspace const.
2889 (displaced_step_prepare_throw): Change variable const.
2890 (resume): Likewise.
2891 (proceed): Likewise.
2892 (adjust_pc_after_break): Likewise.
2893 (save_waitstatus): Likewise.
2894 (handle_signal_stop): Likewise.
2895 (keep_going_pass_signal): Likewise.
2896 * jit.c (jit_frame_sniffer): Add const.
2897 * mips-tdep.c (mips_single_step_through_delay): Likewise.
2898 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2899 * record-full.c (record_full_wait_1): Likewise.
2900 * regcache.c (regcache::regcache): Change parameter to const.
2901 * regcache.h (regcache::regcache): Likewise.
2902 (regcache::aspace): Return const address_space *.
2903 (regcache) <m_aspace>: Add const.
2904
a01bda52
YQ
29052017-11-02 Yao Qi <yao.qi@linaro.org>
2906
2907 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
2908 * frame.c (create_sentinel_frame): Likewise.
2909 * infrun.c (displaced_step_prepare_throw): Likewise.
2910 (resume): Likewise.
2911 (thread_still_needs_step_over_bp): Likewise.
2912 (proceed): Likewise.
2913 (do_target_wait): Likewise.
2914 (adjust_pc_after_break): Likewise.
2915 (handle_syscall_event): Likewise.
2916 (save_waitstatus): Likewise.
2917 (handle_inferior_event_1): Likewise.
2918 (handle_signal_stop): Likewise.
2919 (keep_going_pass_signal): Likewise.
2920 * linux-nat.c (status_callback): Likewise.
2921 (save_stop_reason): Likewise.
2922 (resume_stopped_resumed_lwps): Likewise.
2923 * record-full.c (record_full_exec_insn): Likewise.
2924 (record_full_wait_1): Likewise.
2925 * regcache.c (get_regcache_aspace): Remove.
2926 * regcache.h (get_regcache_aspace): Remove.
2927
d999647b
YQ
29282017-11-02 Yao Qi <yao.qi@linaro.org>
2929
2930 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
2931 (init_regcache_descr): Use gdbarch_num_regs.
2932 (regcache::regcache): Likewise.
2933 (regcache::get_register_status): Likewise.
2934 (regcache::assert_raw_regnum): Likewise.
2935 (regcache::cooked_read): Likewise.
2936 (regcache::cooked_read_value): Likewise.
2937 (regcache::cooked_write): Likewise.
2938 (regcache::dump): Likewise.
2939 (regcache::num_raw_registers): New method.
2940 * regcache.h (class regcache) <num_raw_registers>: New.
2941
4e888c28
YQ
29422017-11-02 Yao Qi <yao.qi@linaro.org>
2943
2944 * regcache.c (regcache::assert_regnum): New method.
2945 (regcache::invalidate): Call assert_regnum.
2946 (regcache::raw_update): Likewise.
2947 (regcache::raw_write): Likewise.
2948 (regcache::raw_read_part): Likewise.
2949 (regcache::raw_write_part): Likewise.
2950 (regcache::raw_supply): Likewise.
2951 (regcache::raw_supply_integer): Likewise.
2952 (regcache::raw_supply_zeroed): Likewise.
2953 (regcache::raw_collect): Likewise.
2954 (regcache::raw_collect_integer): Likewise.
2955 * regcache.h (regcache::assert_regnum): Declare.
2956
2e1b49b3
YQ
29572017-11-02 Yao Qi <yao.qi@linaro.org>
2958
2959 * regcache.c (regcache::dump): Remove code.
2960
6c5218df
YQ
29612017-11-02 Yao Qi <yao.qi@linaro.org>
2962
2963 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
2964 Remove.
2965 <sizeof_cooked_register_status>: Remove.
2966 (init_regcache_descr): Update.
2967 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
2968 (regcache::save): Likewise.
2969 (regcache::dump): Likewise.
2970
dcc31d28
JB
29712017-11-01 James Bowman <james.bowman@ftdichip.com>
2972
2973 * ft32-tdep.c (ft32_fetch_instruction): New function.
2974 (ft32_analyze_prologue): Use ft32_fetch_instruction().
2975
3a87ae65
SM
29762017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2977
2978 * cli/cli-script.c (execute_control_command): Rename to ...
2979 (execute_control_command_1): ... this.
2980 (execute_control_command): New function.
2981
09b847f3
SM
29822017-10-31 Simon Marchi <simon.marchi@ericsson.com>
2983
2984 * tracepoint.c (tfind_command): Remove const_cast.
2985
f871c485
MG
29862017-10-30 Mike Gulick <mgulick@mathworks.com>
2987
2988 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
2989
b020ff80
SM
29902017-10-30 Simon Marchi <simon.marchi@ericsson.com>
2991
2992 * common/common-utils.h (in_inclusive_range): New function.
2993 * arm-tdep.c (arm_record_extension_space): Use
2994 in_inclusive_range.
2995 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
2996 * cris-tdep.c (cris_spec_reg_applicable): Use
2997 in_inclusive_range.
2998
1b81856f
PA
29992017-10-30 Pedro Alves <palves@redhat.com>
3000 Simon Marchi <simon.marchi@ericsson.com>
3001
3002 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3003 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3004
31b833b3
PA
30052017-10-30 Pedro Alves <palves@redhat.com>
3006
3007 * common/common-utils.c (string_appendf, string_vappendf): New
3008 functions.
3009 * common/common-utils.h (string_appendf, string_vappendf): New
3010 declarations.
3011 * unittests/common-utils-selftests.c (string_appendf_func)
3012 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3013 (string_vappendf_tests): New functions.
3014 (_initialize_common_utils_selftests): Register "string_appendf" and
3015 "string_vappendf tests".
3016
4a250334
PA
30172017-10-30 Pedro Alves <palves@redhat.com>
3018
3019 * unittests/common-utils-selftests.c (format_func): New typedef.
3020 (string_printf_tests, string_vprintf_tests): Tests factored out
3021 and merged to ...
3022 (test_format_func): ... this new function.
3023 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3024 test_format_func.
3025
16c5c17e
SM
30262017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3027
3028 * darwin-nat.c: Remove include of gdb.h.
3029
7ca51576
SM
30302017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3031
3032 * xtensa-xtregs.c: Fix formatting issues.
3033
c1342859
SM
30342017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3035
3036 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3037
484d8d36
MD
30382017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3039
3040 PR python/21213
3041 * python/py-infthread.c (thpy_get_inferior): Increment reference
3042 of inferior before returning it.
3043
b5540b5f
SM
30442017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3045
3046 * unittests/common-utils-selftests.c (format): Add
3047 ATTRIBUTE_PRINTF.
3048
5a9dcda1
SM
30492017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3050
3051 * xml-syscall.c (struct syscall_desc): Add constructor.
3052 <name>: Change type to std::string.
3053 (syscall_desc_up): New typedef.
3054 (syscall_desc_p): Remove typeder.
3055 (DEF_VEC_P(syscall_desc_p)): Remove.
3056 (struct syscall_group_desc): Add constructor.
3057 <name>: Change type to std::string.
3058 <syscalls>: Change type to std::vector.
3059 (syscall_group_desc_up): New typedef.
3060 (syscall_group_desc_p): Remove typedef.
3061 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3062 (struct syscalls_info) <syscalls>: Change type to std::vector of
3063 unique_ptr.
3064 <groups>: Likewise.
3065 <my_gdb_datadir>: Change type to std::string.
3066 (syscalls_info_up): New typedef.
3067 (allocate_syscalls_info): Remove.
3068 (syscalls_info_free_syscalls_desc): Remove.
3069 (syscalls_info_free_syscall_group_desc): Remove.
3070 (free_syscalls_info): Remove.
3071 (make_cleanup_free_syscalls_info): Remove.
3072 (syscall_group_create_syscall_group_desc): Adjust.
3073 (syscall_group_add_syscall): Adjust.
3074 (syscall_create_syscall_desc): Adjust.
3075 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3076 (init_syscalls_info): Adjust.
3077 (syscall_group_get_group_by_name): Adjust.
3078 (xml_get_syscall_number): Adjust.
3079 (xml_get_syscall_name): Adjust.
3080 (xml_list_of_syscalls): Adjust.
3081 (xml_list_syscalls_by_group): Adjust.
3082 (xml_list_of_groups): Adjust.
3083
45461e0d
SM
30842017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3085
3086 * probe.h: Don't include gdb_vecs.h.
3087 (DEF_VEC_P (probe_p)): Remove.
3088 (find_probes_in_objfile): Return an std::vector.
3089 * probe.c (find_probes_in_objfile): Likewise.
3090 * breakpoint.c (breakpoint_objfile_data)
3091 <longjmp_probes>: Change type to std::vector.
3092 <exception_probes>: Likewise.
3093 (free_breakpoint_probes): Don't manually free vectors.
3094 (create_longjmp_master_breakpoint): Adjust.
3095 (create_exception_master_breakpoint): Adjust.
3096 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3097 parameter type, adjust.
3098 (svr4_create_solib_event_breakpoints): Adjust.
3099
43dce439
SM
31002017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3101
3102 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3103 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3104 with new.
3105 (free_breakpoint_probes): Rename to ...
3106 (free_breakpoint_objfile_data): ... this, and call delete on
3107 bp_objfile_data..
3108
6a1b9516
SM
31092017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3110
3111 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3112 (loaded_script_ptr): Remove typedef.
3113 (DEF_VEC_P (loaded_script_ptr)): Remove.
3114 (struct collect_matching_scripts_data): Add constructor.
3115 <scripts_p>: Change type to (pointer to) std::vector.
3116 (collect_matching_scripts_data): Adjust.
3117 (sort_scripts_by_name): Make suitable for std::sort.
3118 (print_scripts): Don't sort vector, adjust to std::vector.
3119 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3120
593e3209
SM
31212017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3122
3123 * symfile.c (filename_language): Make struct, not typedef. Add
3124 constructor.
3125 <ext>: Change type to std::string.
3126 (DEF_VEC_O (filename_language)): Remove.
3127 (filename_language_table): Change type to std::vector.
3128 (add_filename_language): Adjust.
3129 (set_ext_lang_command): Adjust.
3130 (info_ext_lang_command): Adjust.
3131 (deduce_language_from_filename): Adjust.
3132 (class scoped_restore_filename_language_table): Remove.
3133 (test_filename_language): Use scoped_restore.
3134 (test_set_ext_lang_command): Use scoped_restore, adjust to
3135 std::vector change.
3136
32fa66eb
SM
31372017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3138
3139 * symfile.c: Include selftest.h.
3140 (class scoped_restore_filename_language_table): New.
3141 (test_filename_language): New test.
3142 (test_set_ext_lang_command): New test.
3143 (_initialize_symfile): Register tests.
3144
4a27f119
KS
31452017-10-27 Keith Seitz <keiths@redhat.com>
3146
3147 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3148 in the bp_location, falling back to find_pc_sect_function when
3149 needed.
3150 (add_location_to_breakpoint): Save sal->symbol.
3151 * breakpoint.h (struct bp_location) <symbol>: New field.
3152 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3153 * symtab.h (struct symtab_and_line) <symbol>: New field.
3154
a43f3893
PF
31552017-10-26 Patrick Frants <osscontribute@gmail.com>
3156
7453e6b2 3157 PR gdb/13669
a43f3893
PF
3158 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3159 to rewind obstack.
3160
23cc4e1b
PA
31612017-10-26 Pedro Alves <palves@redhat.com>
3162
3163 * remote.c (remote_async_terminal_ours_p): Delete.
3164 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
3165 Remove references to 'remote_async_terminal_ours_p'.
3166
6abc18bb
YQ
31672017-10-26 Yao Qi <yao.qi@linaro.org>
3168
3169 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
3170
bd522513
YQ
31712017-10-26 Yao Qi <yao.qi@linaro.org>
3172
3173 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
3174 aspace const.
3175 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
3176 Likewise.
3177 * breakpoint.c (bpstat_check_location): Remove cast.
3178 (breakpoint_hit_catch_fork): Make aspce const.
3179 (breakpoint_hit_catch_solib): Likewise.
3180 (breakpoint_hit_catch_exec): Likewise.
3181 (breakpoint_hit_ranged_breakpoint): Likewise.
3182 (breakpoint_hit_watchpoint): Likewise.
3183 (base_breakpoint_breakpoint_hit): Likewise.
3184 (bkpt_breakpoint_hit): Likewise.
3185 (dprintf_breakpoint_hit): Likewise.
3186 (tracepoint_breakpoint_hit): Likewise.
3187 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
3188
accd0bcd
YQ
31892017-10-26 Yao Qi <yao.qi@linaro.org>
3190
3191 * breakpoint.c (breakpoint_location_address_match): Change
3192 "struct address_space *" to "const address_space".
3193 (breakpoint_location_address_range_overlap): Likewise.
3194 (breakpoint_here_p): Likewise.
3195 (breakpoint_in_range_p): Likewise.
3196 (moribund_breakpoint_here_p): Likewise.
3197 (bp_location_inserted_here_p): Likewise.
3198 (software_breakpoint_inserted_here_p): Likewise.
3199 (hardware_breakpoint_inserted_here_p): Likewise.
3200 (hardware_watchpoint_inserted_in_range): Likewise.
3201 (bpstat_check_location): Likewise.
3202 (bpstat_stop_status): Likewise.
3203 (breakpoint_address_match): Likewise.
3204 (breakpoint_address_match_range): Likewise.
3205 (breakpoint_location_address_match): Likewise.
3206 (breakpoint_location_address_range_overlap): Likewise.
3207 (insert_single_step_breakpoint): Likewise.
3208 (breakpoint_has_location_inserted_here): Likewise.
3209 (single_step_breakpoint_inserted_here_p): Likewise.
3210 (pc_at_non_inline_function): Likewise.
3211 * breakpoint.h (bpstat_stop_status): Update declaration.
3212 (breakpoint_here_p): Likewise.
3213 (breakpoint_in_range_p): Likewise.
3214 (moribund_breakpoint_here_p): Likewise.
3215 (breakpoint_inserted_here_p): Likewise.
3216 (software_breakpoint_inserted_here_p): Likewise.
3217 (hardware_breakpoint_inserted_here_p): Likewise.
3218 (breakpoint_has_location_inserted_here): Likewise.
3219 (single_step_breakpoint_inserted_here_p): Likewise.
3220 (hardware_watchpoint_inserted_in_range): Likewise.
3221 (breakpoint_address_match): Likewise.
3222 (insert_single_step_breakpoint): Likewise.
3223 (pc_at_non_inline_function): Likewise.
3224 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
3225 * record.c (record_check_stopped_by_breakpoint): Likewise.
3226 * record.h (record_check_stopped_by_breakpoint): Likewise.
3227 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
3228
ac7936df
YQ
32292017-10-25 Yao Qi <yao.qi@linaro.org>
3230
3231 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
3232 regcache->arch () instead get_regcache_arch.
3233 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
3234 Likewise.
3235 (aarch64_fbsd_store_inferior_registers): Likewise.
3236 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
3237 (store_gregs_to_thread): Likewise.
3238 (fetch_fpregs_from_thread): Likewise.
3239 (store_fpregs_to_thread): Likewise.
3240 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
3241 (aarch64_store_return_value): Likewise.
3242 (aarch64_software_single_step): Likewise.
3243 * aix-thread.c (aix_thread_wait): Likewise.
3244 (supply_reg32): Likewise.
3245 (supply_sprs64): Likewise.
3246 (supply_sprs32): Likewise.
3247 (fill_gprs64): Likewise.
3248 (fill_gprs32): Likewise.
3249 (fill_sprs64): Likewise.
3250 (fill_sprs32): Likewise.
3251 (store_regs_user_thread): Likewise.
3252 (store_regs_kernel_thread): Likewise.
3253 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3254 (alphabsd_store_inferior_registers): Likewise.
3255 * alpha-tdep.c (alpha_extract_return_value): Likewise.
3256 (alpha_store_return_value): Likewise.
3257 (alpha_deal_with_atomic_sequence): Likewise.
3258 (alpha_next_pc): Likewise.
3259 (alpha_software_single_step): Likewise.
3260 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3261 (amd64bsd_store_inferior_registers): Likewise.
3262 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3263 Likewise.
3264 (amd64_linux_store_inferior_registers): Likewise.
3265 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
3266 (amd64_collect_native_gregset): Likewise.
3267 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
3268 (amd64obsd_collect_uthread): Likewise.
3269 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
3270 (amd64_collect_fpregset): Likewise.
3271 (amd64_supply_fxsave): Likewise.
3272 (amd64_supply_xsave): Likewise.
3273 (amd64_collect_fxsave): Likewise.
3274 (amd64_collect_xsave): Likewise.
3275 * arc-tdep.c (arc_write_pc): Likewise.
3276 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
3277 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
3278 (arm_fbsd_store_inferior_registers): Likewise.
3279 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
3280 (store_vfp_regs): Likewise.
3281 (arm_linux_fetch_inferior_registers): Likewise.
3282 (arm_linux_store_inferior_registers): Likewise.
3283 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3284 (arm_linux_sigreturn_next_pc): Likewise.
3285 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3286 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
3287 (fetch_register): Likewise.
3288 (store_register): Likewise.
3289 * arm-tdep.c (arm_is_thumb): Likewise.
3290 (displaced_in_arm_mode): Likewise.
3291 (bx_write_pc): Likewise.
3292 (arm_get_next_pcs_addr_bits_remove): Likewise.
3293 (arm_software_single_step): Likewise.
3294 (arm_extract_return_value): Likewise.
3295 (arm_store_return_value): Likewise.
3296 (arm_write_pc): Likewise.
3297 * bfin-tdep.c (bfin_extract_return_value): Likewise.
3298 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3299 (bsd_uthread_store_registers): Likewise.
3300 * core-regset.c (fetch_core_registers): Likewise.
3301 * corelow.c (get_core_registers): Likewise.
3302 * cris-tdep.c (cris_store_return_value): Likewise.
3303 (cris_extract_return_value): Likewise.
3304 (find_step_target): Likewise.
3305 (find_step_target): Likewise.
3306 (cris_software_single_step): Likewise.
3307 * ctf.c (ctf_fetch_registers): Likewise.
3308 * darwin-nat.c (cancel_breakpoint): Likewise.
3309 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
3310 * frv-tdep.c (frv_extract_return_value): Likewise.
3311 * ft32-tdep.c (ft32_store_return_value): Likewise.
3312 (ft32_extract_return_value): Likewise.
3313 * go32-nat.c (fetch_register): Likewise.
3314 (go32_fetch_registers): Likewise.
3315 (go32_store_registers): Likewise.
3316 (store_register): Likewise.
3317 * h8300-tdep.c (h8300_extract_return_value): Likewise.
3318 (h8300_store_return_value): Likewise.
3319 * hppa-linux-nat.c (fetch_register): Likewise.
3320 (store_register): Likewise.
3321 (hppa_linux_fetch_inferior_registers): Likewise.
3322 (hppa_linux_store_inferior_registers): Likewise.
3323 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
3324 (i386_darwin_store_inferior_registers): Likewise.
3325 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
3326 (gnu_store_registers): Likewise.
3327 * i386-linux-nat.c (fetch_register): Likewise.
3328 (store_register): Likewise.
3329 (supply_gregset): Likewise.
3330 (fill_gregset): Likewise.
3331 (i386_linux_fetch_inferior_registers): Likewise.
3332 (i386_linux_store_inferior_registers): Likewise.
3333 (i386_linux_resume): Likewise.
3334 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
3335 Likewise.
3336 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
3337 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
3338 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
3339 (i386obsd_collect_uthread): Likewise.
3340 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3341 (i386_supply_gregset): Likewise.
3342 (i386_collect_gregset): Likewise.
3343 (i386_supply_fpregset): Likewise.
3344 (i386_collect_fpregset): Likewise.
3345 (i386_mpx_bd_base): Likewise.
3346 * i386-v4-nat.c (supply_fpregset): Likewise.
3347 (fill_fpregset): Likewise.
3348 * i387-tdep.c (i387_supply_fsave): Likewise.
3349 (i387_collect_fsave): Likewise.
3350 (i387_supply_fxsave): Likewise.
3351 (i387_collect_fxsave): Likewise.
3352 (i387_supply_xsave): Likewise.
3353 (i387_collect_xsave): Likewise.
3354 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
3355 (ia64_linux_store_registers): Likewise.
3356 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
3357 (ia64_extract_return_value): Likewise.
3358 (ia64_store_return_value): Likewise.
3359 (find_func_descr): Likewise.
3360 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3361 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
3362 (inf_ptrace_store_registers): Likewise.
3363 * infrun.c (use_displaced_stepping): Likewise.
3364 (displaced_step_prepare_throw): Likewise.
3365 (resume): Likewise.
3366 (proceed): Likewise.
3367 (do_target_wait): Likewise.
3368 (adjust_pc_after_break): Likewise.
3369 (handle_inferior_event_1): Likewise.
3370 (handle_signal_stop): Likewise.
3371 (save_infcall_suspend_state): Likewise.
3372 (restore_infcall_suspend_state): Likewise.
3373 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
3374 * jit.c (jit_frame_prev_register): Likewise.
3375 * linux-nat.c (save_stop_reason): Likewise.
3376 (linux_nat_wait_1): Likewise.
3377 (resume_stopped_resumed_lwps): Likewise.
3378 * linux-record.c (record_linux_sockaddr): Likewise.
3379 (record_linux_msghdr): Likewise.
3380 (record_linux_system_call): Likewise.
3381 * linux-tdep.c (linux_collect_thread_registers): Likewise.
3382 * lm32-tdep.c (lm32_extract_return_value): Likewise.
3383 (lm32_store_return_value): Likewise.
3384 * m32c-tdep.c (m32c_read_flg): Likewise.
3385 (m32c_pseudo_register_read): Likewise.
3386 (m32c_pseudo_register_write): Likewise.
3387 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
3388 (m32r_linux_collect_gregset): Likewise.
3389 * m32r-tdep.c (m32r_store_return_value): Likewise.
3390 (m32r_extract_return_value): Likewise.
3391 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3392 (m68kbsd_collect_fpregset): Likewise.
3393 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3394 * m68k-linux-nat.c (fetch_register): Likewise.
3395 (old_fetch_inferior_registers): Likewise.
3396 (old_store_inferior_registers): Likewise.
3397 (store_regs): Likewise.
3398 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
3399 (m68k_svr4_store_return_value): Likewise.
3400 * m88k-tdep.c (m88k_store_arguments): Likewise.
3401 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
3402 (mi_cmd_data_write_register_values): Likewise.
3403 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
3404 (mips_fbsd_store_inferior_registers): Likewise.
3405 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
3406 (mips_fbsd_supply_gregs): Likewise.
3407 (mips_fbsd_collect_fpregs): Likewise.
3408 (mips_fbsd_collect_gregs): Likewise.
3409 (mips_fbsd_supply_fpregset): Likewise.
3410 (mips_fbsd_collect_fpregset): Likewise.
3411 (mips_fbsd_supply_gregset): Likewise.
3412 (mips_fbsd_collect_gregset): Likewise.
3413 * mips-linux-nat.c (supply_gregset): Likewise.
3414 (fill_gregset): Likewise.
3415 (supply_fpregset): Likewise.
3416 (fill_fpregset): Likewise.
3417 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
3418 (mips_fill_gregset): Likewise.
3419 (mips_supply_fpregset): Likewise.
3420 (mips_fill_fpregset): Likewise.
3421 (mips64_supply_gregset): Likewise.
3422 (micromips_linux_sigframe_validate): Likewise.
3423 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3424 (mipsnbsd_fetch_inferior_registers): Likewise.
3425 (mipsnbsd_store_inferior_registers): Likewise.
3426 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
3427 (mipsnbsd_supply_gregset): Likewise.
3428 (mipsnbsd_iterate_over_regset_sections): Likewise.
3429 (mipsnbsd_supply_reg): Likewise.
3430 (mipsnbsd_supply_fpreg): Likewise.
3431 * mips-tdep.c (mips_in_frame_stub): Likewise.
3432 (mips_dummy_id): Likewise.
3433 (is_octeon_bbit_op): Likewise.
3434 (micromips_bc1_pc): Likewise.
3435 (extended_mips16_next_pc): Likewise.
3436 (mips16_next_pc): Likewise.
3437 (deal_with_atomic_sequence): Likewise.
3438 * moxie-tdep.c (moxie_process_readu): Likewise.
3439 * nios2-tdep.c (nios2_get_next_pc): Likewise.
3440 * nto-procfs.c (procfs_store_registers): Likewise.
3441 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
3442 (ppcfbsd_store_inferior_registers): Likewise.
3443 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
3444 (fetch_altivec_register): Likewise.
3445 (get_spe_registers): Likewise.
3446 (fetch_spe_register): Likewise.
3447 (fetch_altivec_registers): Likewise.
3448 (fetch_all_gp_regs): Likewise.
3449 (fetch_all_fp_regs): Likewise.
3450 (store_vsx_register): Likewise.
3451 (store_altivec_register): Likewise.
3452 (set_spe_registers): Likewise.
3453 (store_spe_register): Likewise.
3454 (store_altivec_registers): Likewise.
3455 (store_all_gp_regs): Likewise.
3456 (store_all_fp_regs): Likewise.
3457 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
3458 (ppc_linux_collect_gregset): Likewise.
3459 (ppc_canonicalize_syscall): Likewise.
3460 (ppc_linux_record_signal): Likewise.
3461 (ppu2spu_prev_register): Likewise.
3462 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
3463 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
3464 (ppcobsd_store_registers): Likewise.
3465 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
3466 Likewise.
3467 (ppc_ravenscar_generic_store_registers): Likewise.
3468 * procfs.c (procfs_fetch_registers): Likewise.
3469 (procfs_store_registers): Likewise.
3470 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
3471 (ravenscar_store_registers): Likewise.
3472 (ravenscar_prepare_to_store): Likewise.
3473 * record-btrace.c (record_btrace_fetch_registers): Likewise.
3474 * record-full.c (record_full_wait_1): Likewise.
3475 (record_full_registers_change): Likewise.
3476 (record_full_store_registers): Likewise.
3477 (record_full_core_fetch_registers): Likewise.
3478 (record_full_save): Likewise.
3479 (record_full_goto_insn): Likewise.
3480 * regcache.c (regcache_register_size): Likewise.
3481 (get_regcache_arch): Remove.
3482 (regcache_read_pc): Likewise.
3483 * regcache.h (get_regcache_arch): Remove.
3484 * remote-sim.c (gdbsim_fetch_register): Likewise.
3485 (gdbsim_store_register): Likewise.
3486 * remote.c (fetch_register_using_p): Likewise.
3487 (send_g_packet): Likewise.
3488 (remote_prepare_to_store): Likewise.
3489 (store_registers_using_G): Likewise.
3490 * reverse.c (save_bookmark_command): Likewise.
3491 (goto_bookmark_command): Likewise.
3492 * rs6000-aix-tdep.c (branch_dest): Likewise.
3493 * rs6000-nat.c (rs6000_ptrace64): Likewise.
3494 (fetch_register): Likewise.
3495 * rs6000-tdep.c (ppc_supply_reg): Likewise.
3496 (ppc_collect_reg): Likewise.
3497 (ppc_collect_gregset): Likewise.
3498 (ppc_collect_fpregset): Likewise.
3499 (ppc_collect_vsxregset): Likewise.
3500 (ppc_collect_vrregset): Likewise.
3501 (ppc_displaced_step_hw_singlestep): Likewise.
3502 (rs6000_pseudo_register_read): Likewise.
3503 (rs6000_pseudo_register_write): Likewise.
3504 * s390-linux-nat.c (supply_gregset): Likewise.
3505 (fill_gregset): Likewise.
3506 (s390_linux_fetch_inferior_registers): Likewise.
3507 * s390-linux-tdep.c (s390_write_pc): Likewise.
3508 (s390_software_single_step): Likewise.
3509 (s390_all_but_pc_registers_record): Likewise.
3510 (s390_linux_syscall_record): Likewise.
3511 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
3512 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3513 (shnbsd_store_inferior_registers): Likewise.
3514 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3515 (sh_extract_return_value_fpu): Likewise.
3516 (sh_store_return_value_nofpu): Likewise.
3517 (sh_corefile_supply_regset): Likewise.
3518 (sh_corefile_collect_regset): Likewise.
3519 * sh64-tdep.c (sh64_extract_return_value): Likewise.
3520 (sh64_store_return_value): Likewise.
3521 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
3522 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
3523 (sparc_store_inferior_registers): Likewise.
3524 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
3525 (sparc_ravenscar_prepare_to_store): Likewise.
3526 * sparc-tdep.c (sparc32_store_arguments): Likewise.
3527 (sparc_analyze_control_transfer): Likewise.
3528 (sparc_step_trap): Likewise.
3529 (sparc_software_single_step): Likewise.
3530 (sparc32_gdbarch_init): Likewise.
3531 (sparc_supply_rwindow): Likewise.
3532 (sparc_collect_rwindow): Likewise.
3533 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
3534 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
3535 (sparc64nbsd_collect_gregset): Likewise.
3536 (sparc64nbsd_supply_fpregset): Likewise.
3537 (sparc64nbsd_collect_fpregset): Likewise.
3538 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
3539 (sparc64_supply_gregset): Likewise.
3540 (sparc64_collect_gregset): Likewise.
3541 (sparc64_supply_fpregset): Likewise.
3542 (sparc64_collect_fpregset): Likewise.
3543 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3544 * spu-tdep.c (spu_unwind_sp): Likewise.
3545 (spu2ppu_prev_register): Likewise.
3546 (spu_memory_remove_breakpoint): Likewise.
3547 * stack.c (return_command): Likewise.
3548 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
3549 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3550 * tracefile.c (trace_save_ctf): Likewise.
3551 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
3552 (do_windows_store_inferior_registers): Likewise.
3553 (windows_resume): Likewise.
3554 * xtensa-linux-nat.c (fill_gregset): Likewise.
3555 (supply_gregset_reg): Likewise.
3556 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
3557 (xtensa_register_read_masked): Likewise.
3558 (xtensa_supply_gregset): Likewise.
3559 (xtensa_extract_return_value): Likewise.
3560 (xtensa_store_return_value): Likewise.
3561
edd079d9
UW
35622017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
3563
3564 * doublest.c (floatformat_from_string): New function.
3565 * doublest.h (floatformat_from_string): Add prototype.
3566
3567 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
3568 (OP_FLOAT): ... this.
3569 * expression.h: Do not include "doublest.h".
3570 (union exp_element): Replace doubleconst and decfloatconst by
3571 new element floatconst.
3572 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
3573 (ada_evaluate_subexp): Likewise.
3574 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
3575 OP_DOUBLE and OP_DECFLOAT.
3576 * expprint.c (print_subexp_standard): Likewise.
3577 (dump_subexp_body_standard): Likewise.
3578 * breakpoint.c (watchpoint_exp_is_const): Likewise.
3579
3580 * parse.c: Include "dfp.h".
3581 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3582 (write_exp_elt_floatcst): New function.
3583 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
3584 and OP_DECFLOAT.
3585 (operator_check_standard): Likewise.
3586 (parse_float): Do not accept suffix. Take type as input. Return bool.
3587 Return target format buffer instead of host DOUBLEST.
3588 Use floatformat_from_string and decimal_from_string to parse
3589 either binary or decimal floating-point types.
3590 (parse_c_float): Remove.
3591 * parser-defs.h: Do not include "doublest.h".
3592 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3593 (write_exp_elt_floatcst): Add prototype.
3594 (parse_float): Update prototype.
3595 (parse_c_float): Remove.
3596
3597 * c-exp.y: Do not include "dfp.h".
3598 (typed_val_float): Use byte buffer instead of DOUBLEST.
3599 (typed_val_decfloat): Remove.
3600 (DECFLOAT): Remove.
3601 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3602 (parse_number): Update to new parse_float interface.
3603 Parse suffixes and determine type before calling parse_float.
3604 Handle decimal and binary FP types the same way.
3605
3606 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3607 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
3608 (parse_number): Update to new parse_float interface.
3609 Parse suffixes and determine type before calling parse_float.
3610
3611 * f-exp.y: Replace dval by typed_val_float.
3612 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3613 (parse_number): Use parse_float instead of atof.
3614
3615 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3616 (parse_go_float): Remove.
3617 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3618 (parse_number): Call parse_float instead of parse_go_float.
3619 Parse suffixes and determine type before calling parse_float.
3620
3621 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3622 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3623 (parse_number): Update to new parse_float interface.
3624 Parse suffixes and determine type before calling parse_float.
3625
3626 * m2-exp.y: Replace dval by byte buffer val.
3627 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3628 (parse_number): Call parse_float instead of atof.
3629
3630 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3631 (lex_number): Call parse_float instead of strtod.
3632 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
3633 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
3634 Use write_exp_elt_floatcst.
3635 (unit_testing): Remove static variable.
3636 (rust_type): Do not check unit_testing.
3637 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
3638
3639 * ada-exp.y (type_float, type_double): Remove.
3640 (typed_val_float): Use byte buffer instead of DOUBLEST.
3641 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3642 * ada-lex.l (processReal): Use parse_float instead of sscanf.
3643
cc628f3d
AH
36442017-10-25 Alan Hayward <alan.hayward@arm.com>
3645
3646 * aarch64-tdep.h (enum aarch64_regnum): Remove.
3647 * arch/aarch64.h: New file.
3648
09a7c6aa
UW
36492017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3650
3651 * dfp.h (decimal_from_string): Use const reference for argument.
3652 * dfp.c (decimal_from_string): Likewise.
3653
8ba0dd51
UW
36542017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3655
3656 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
3657 * sh64-tdep.c (sh64_do_fp_register): Likewise.
3658 * mips-tdep.c (mips_print_fp_register): Likewise.
3659
16e812b2
UW
36602017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3661
3662 * common/format.h (enum argclass): Replace decfloat_arg by
3663 dec32float_arg, dec64float_arg, and dec128float_arg.
3664 * common/format.c (parse_format_string): Update to return
3665 new decimal float argument classes.
3666
3667 * printcmd.c (printf_decfloat): Rename to ...
3668 (printf_floating): ... this. Add argclass argument, and use it
3669 instead of parsing the format string again. Add support for
3670 binary floating-point values, using floatformat_to_string.
3671 Convert value to the target format if it doesn't already match.
3672 (ui_printf): Call printf_floating instead of printf_decfloat,
3673 also for double_arg / long_double_arg. Pass argclass.
3674
3675 * dfp.c (decimal_to_string): Add format string argument.
3676 * dfp.h (decimal_to_string): Likewise.
3677
3678 * doublest.c (floatformat_to_string): Add format string argument.
3679 * doublest.h (floatformat_to_string): Likewise.
3680
fdf0cbc2
UW
36812017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3682
3683 * doublest.c (floatformat_precision): New routine.
3684 (floatformat_to_string): Likewise.
3685 * doublest.c (floatformat_to_string): Add prototype.
3686
3687 * printcmd.c (print_scalar_formatted): Only call print_floating
3688 on floating-point types.
3689 * valprint.c: Do not include "floatformat.h".
3690 (generic_val_print_decfloat): Remove.
3691 (generic_val_print): Call generic_val_print_float for both
3692 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
3693 (print_floating): Use floatformat_to_string. Handle decimal float.
3694 (print_decimal_floating): Remove, merge into floatformat_to_string.
3695 * value.h (print_decimal_floating): Remove.
3696
3697 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
3698
5033013f
UW
36992017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3700
3701 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
3702
a664f67e
SM
37032017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3704
3705 * memattr.h: Don't include vec.h.
3706 (struct mem_attrib): Initialize fields.
3707 <unknown>: New static method.
3708 (struct mem_region): Add constructors, operator<, initialize
3709 fields.
3710 * memattr.c: Include algorithm.
3711 (default_mem_attrib, unknown_mem_attrib): Remove.
3712 (user_mem_region_list): New global.
3713 (target_mem_region_list, mem_region_list): Change type to
3714 std::vector<mem_region>.
3715 (mem_use_target): Now a function.
3716 (target_mem_regions_valid): Change type to bool.
3717 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
3718 (require_user_regions): Adjust.
3719 (require_target_regions): Adjust.
3720 (create_mem_region): Adjust.
3721 (lookup_mem_region): Adjust.
3722 (invalidate_target_mem_regions): Adjust.
3723 (mem_clear): Rename to...
3724 (user_mem_clear): ... this, and adjust.
3725 (mem_command): Adjust.
3726 (info_mem_command): Adjust.
3727 (mem_enable, enable_mem_command, mem_disable,
3728 disable_mem_command): Adjust.
3729 (mem_delete): Adjust.
3730 (delete_mem_command): Adjust.
3731 * memory-map.h (parse_memory_map): Return an std::vector.
3732 * memory-map.c (parse_memory_map): Likewise.
3733 (struct memory_map_parsing_data): Add constructor.
3734 <memory_map>: Point to std::vector.
3735 (memory_map_start_memory): Adjust.
3736 (memory_map_end_memory): Adjust.
3737 (memory_map_end_property): Adjust.
3738 (clear_result): Remove.
3739 * remote.c (remote_memory_map): Return an std::vector.
3740 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
3741 Remove.
3742 (target_debug_print_mem_region_vector): New.
3743 * target-delegates.c: Regenerate.
3744 * target.h (mem_region_vector): New typedef.
3745 (to_memory_map): Return mem_region_vector.
3746 (target_memory_map): Return an std::vector.
3747 * target.c (target_memory_map): Return an std::vector.
3748 (flash_erase_command): Adjust.
3749
6e17c565
SM
37502017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3751
3752 * memory-map.c (struct memory_map_parsing_data) <property_name>:
3753 Change type to std::string.
3754 (memory_map_start_property): Adjust.
3755 (memory_map_end_property): Adjust.
3756
cfba9872
SM
37572017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3758
3759 * infrun.h: Include common/byte-vector.h.
3760 (struct displaced_step_closure): New struct.
3761 (struct buf_displaced_step_closure): New struct.
3762 * infrun.c (displaced_step_closure::~displaced_step_closure):
3763 Provide default implementation.
3764 (displaced_step_clear): Deallocate step closure with delete.
3765 * aarch64-tdep.c (displaced_step_closure): Rename to ...
3766 (aarch64_displaced_step_closure): ... this, extend
3767 displaced_step_closure.
3768 (aarch64_displaced_step_data) <dsc>: Change type to
3769 aarch64_displaced_step_closure.
3770 (aarch64_displaced_step_copy_insn): Adjust to type change, use
3771 unique_ptr.
3772 (aarch64_displaced_step_fixup): Add cast for displaced step
3773 closure.
3774 * amd64-tdep.c (displaced_step_closure): Rename to ...
3775 (amd64_displaced_step_closure): ... this, extend
3776 displaced_step_closure.
3777 <insn_buf>: Change type to std::vector<gdb_byte>.
3778 <max_len>: Remove.
3779 (fixup_riprel): Change type of DSC parameter, adjust to type
3780 change of insn_buf.
3781 (fixup_displaced_copy): Change type of DSC parameter.
3782 (amd64_displaced_step_copy_insn): Instantiate
3783 amd64_displaced_step_closure.
3784 (amd64_displaced_step_fixup): Add cast for closure type, adjust
3785 to type change of insn_buf.
3786 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
3787 parameter DSC.
3788 (arm_linux_copy_svc): Likewise.
3789 (cleanup_kernel_helper_return): Likewise.
3790 (arm_catch_kernel_helper_return): Likewise.
3791 (arm_linux_displaced_step_copy_insn): Instantiate
3792 arm_displaced_step_closure.
3793 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
3794 (displaced_read_reg): Change type of parameter DSC.
3795 (branch_write_pc): Likewise.
3796 (load_write_pc): Likewise.
3797 (alu_write_pc): Likewise.
3798 (displaced_write_reg): Likewise.
3799 (arm_copy_unmodified): Likewise.
3800 (thumb_copy_unmodified_32bit): Likewise.
3801 (thumb_copy_unmodified_16bit): Likewise.
3802 (cleanup_preload): Likewise.
3803 (install_preload): Likewise.
3804 (arm_copy_preload): Likewise.
3805 (thumb2_copy_preload): Likewise.
3806 (install_preload_reg): Likewise.
3807 (arm_copy_preload_reg): Likewise.
3808 (cleanup_copro_load_store): Likewise.
3809 (install_copro_load_store): Likewise.
3810 (arm_copy_copro_load_store) Likewise.
3811 (thumb2_copy_copro_load_store): Likewise.
3812 (cleanup_branch): Likewise.
3813 (install_b_bl_blx): Likewise.
3814 (arm_copy_b_bl_blx): Likewise.
3815 (thumb2_copy_b_bl_blx): Likewise.
3816 (thumb_copy_b): Likewise.
3817 (install_bx_blx_reg): Likewise.
3818 (arm_copy_bx_blx_reg): Likewise.
3819 (thumb_copy_bx_blx_reg): Likewise.
3820 (cleanup_alu_imm): Likewise.
3821 (arm_copy_alu_imm): Likewise.
3822 (thumb2_copy_alu_imm): Likewise.
3823 (cleanup_alu_reg): Likewise.
3824 (install_alu_reg): Likewise.
3825 (arm_copy_alu_reg): Likewise.
3826 (thumb_copy_alu_reg): Likewise.
3827 (cleanup_alu_shifted_reg): Likewise.
3828 (install_alu_shifted_reg): Likewise.
3829 (arm_copy_alu_shifted_reg): Likewise.
3830 (cleanup_load): Likewise.
3831 (cleanup_store): Likewise.
3832 (arm_copy_extra_ld_st): Likewise.
3833 (install_load_store): Likewise.
3834 (thumb2_copy_load_literal): Likewise.
3835 (thumb2_copy_load_reg_imm): Likewise.
3836 (arm_copy_ldr_str_ldrb_strb): Likewise.
3837 (cleanup_block_load_all): Likewise.
3838 (cleanup_block_store_pc): Likewise.
3839 (cleanup_block_load_pc): Likewise.
3840 (arm_copy_block_xfer): Likewise.
3841 (thumb2_copy_block_xfer): Likewise.
3842 (cleanup_svc): Likewise.
3843 (install_svc): Likewise.
3844 (arm_copy_svc): Likewise.
3845 (thumb_copy_svc): Likewise.
3846 (arm_copy_undef): Likewise.
3847 (thumb_32bit_copy_undef): Likewise.
3848 (arm_copy_unpred): Likewise.
3849 (arm_decode_misc_memhint_neon): Likewise.
3850 (arm_decode_unconditional): Likewise.
3851 (arm_decode_miscellaneous): Likewise.
3852 (arm_decode_dp_misc): Likewise.
3853 (arm_decode_ld_st_word_ubyte): Likewise.
3854 (arm_decode_media): Likewise.
3855 (arm_decode_b_bl_ldmstm): Likewise.
3856 (arm_decode_ext_reg_ld_st): Likewise.
3857 (thumb2_decode_dp_shift_reg): Likewise.
3858 (thumb2_decode_ext_reg_ld_st): Likewise.
3859 (arm_decode_svc_copro): Likewise.
3860 (thumb2_decode_svc_copro): Likewise.
3861 (install_pc_relative): Likewise.
3862 (thumb_copy_pc_relative_16bit): Likewise.
3863 (thumb_decode_pc_relative_16bit): Likewise.
3864 (thumb_copy_pc_relative_32bit): Likewise.
3865 (thumb_copy_16bit_ldr_literal): Likewise.
3866 (thumb_copy_cbnz_cbz): Likewise.
3867 (thumb2_copy_table_branch): Likewise.
3868 (cleanup_pop_pc_16bit_all): Likewise.
3869 (thumb_copy_pop_pc_16bit): Likewise.
3870 (thumb_process_displaced_16bit_insn): Likewise.
3871 (decode_thumb_32bit_ld_mem_hints): Likewise.
3872 (thumb_process_displaced_32bit_insn): Likewise.
3873 (thumb_process_displaced_insn): Likewise.
3874 (arm_process_displaced_insn): Likewise.
3875 (arm_displaced_init_closure): Likewise.
3876 (arm_displaced_step_fixup): Add cast for closure.
3877 * arm-tdep.h: Include infrun.h.
3878 (displaced_step_closure): Rename to ...
3879 (arm_displaced_step_closure): ... this, extend
3880 displaced_step_closure.
3881 <u::svc::copy_svc_os>: Change type of parameter DSC.
3882 <cleanup>: Likewise.
3883 (arm_process_displaced_insn): Likewise.
3884 (arm_displaced_init_closure): Likewise.
3885 (displaced_read_reg): Likewise.
3886 (displaced_write_reg): Likewise.
3887 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
3888 Adjust.
3889 * i386-tdep.h: Include infrun.h.
3890 (i386_displaced_step_closure): New typedef.
3891 * i386-tdep.c (i386_displaced_step_copy_insn): Use
3892 i386_displaced_step_closure.
3893 (i386_displaced_step_fixup): Adjust.
3894 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
3895 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
3896 and unique_ptr.
3897 (ppc_displaced_step_fixup): Adjust.
3898 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
3899 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
3900 and unique_ptr.
3901 (s390_displaced_step_fixup): Adjust.
3902
b392b304
SM
39032017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3904
3905 * interps.h (interp_resume, interp_suspend, interp_set_temp):
3906 Remove declarations.
3907
d5833c62
TT
39082017-10-20 Tom Tromey <tom@tromey.com>
3909
3910 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
3911 std::vector.
3912 (gdb_bfd_record_inclusion): Update.
3913 (bfdp): Remove typedef.
3914
06d5bbc8
TT
39152017-10-20 Tom Tromey <tom@tromey.com>
3916
3917 * gdb_bfd.c (gdb_bfd_ref): Use new.
3918 (struct gdb_bfd_data): Add constructor, destructor, and member
3919 initializers.
3920 (gdb_bfd_unref): Use delete.
3921
2712ce2e
TT
39222017-10-20 Tom Tromey <tom@tromey.com>
3923
3924 * exec.c (exec_file_attach): Use new_bfd_ref.
3925 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
3926 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
3927 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
3928 new_bfd_ref.
3929 * gdb_bfd.h (new_bfd_ref): New function.
3930
fcc8fb2f
PA
39312017-10-20 Pedro Alves <palves@redhat.com>
3932
3933 * main.c (captured_command_loop): Add attribute noinline.
3934
4c2287b0
SM
39352017-10-19 Simon Marchi <simon.marchi@ericsson.com>
3936
3937 * interps.c (struct interp_factory): Add constructor.
3938 (interp_factory_p): Remove typedef.
3939 (DEF_VEC_P(interp_factory_p)): Remove.
3940 (interpreter_factories): Change type to std::vector.
3941 (interp_factory_register): Adjust.
3942 (interp_lookup): Adjust.
3943 (interpreter_completer): Adjust.
3944
3d415c26
TT
39452017-10-19 Tom Tromey <tom@tromey.com>
3946
3947 * break-catch-syscall.c (catch_syscall_completer): Use
3948 std::string, gdb::unique_xmalloc_ptr.
3949
395423c4
TT
39502017-10-19 Tom Tromey <tom@tromey.com>
3951
3952 * infcall.c (call_function_by_hand_dummy): Use std::string.
3953
54f70bc1
TT
39542017-10-19 Tom Tromey <tom@tromey.com>
3955
3956 * mi/mi-main.c (mi_cmd_execute): Update.
3957 * top.h (prepare_execute_command): Return scoped_value_mark.
3958 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
3959 Add move constructor.
3960 * top.c (prepare_execute_command): Return scoped_value_mark.
3961 (execute_command): Update.
3962
63929e84
PA
39632017-10-19 Pedro Alves <palves@redhat.com>
3964
3965 * xml-support.c (xml_fetch_content_from_file): Check fread's
3966 return.
3967
a75868f5
PA
39682017-10-19 Pedro Alves <palves@redhat.com>
3969
3970 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
3971 async.
3972 (handle_error_fd): New function.
3973 (ser_base_async): Add/delete an event loop file handler for
3974 error_fd.
3975
2edf834e
PA
39762017-10-19 Pedro Alves <palves@redhat.com>
3977
3978 * xml-support.c (xml_fetch_content_from_file): Don't read in
3979 chunks. Instead use fseek to determine the file's size, and read
3980 it in one go.
3981
c8ba13ad
KS
39822017-11-18 Keith Seitz <keiths@redhat.com>
3983
3984 * c-exp.y (oper): Canonicalize conversion operators of user-defined
3985 types.
3986 Add whitespace to front of type name.
3987
37534686
KS
39882017-10-18 Keith Seitz <keiths@redhat.com>
3989
3990 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
3991 DW_AT_accessibility.
3992
28c7c158
YQ
39932017-10-18 Yao Qi <yao.qi@linaro.org>
3994
3995 * features/tic6x-c62x-linux.c: Remove.
3996
30f0b101
TT
39972017-10-17 Tom Tromey <tom@tromey.com>
3998
3999 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4000 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4001 (do_mixed_source_and_assembly): Likewise.
4002
57e12da9
TT
40032017-10-17 Tom Tromey <tom@tromey.com>
4004
4005 * regcache.c (regcache::xfer_part): Remove assertion.
4006
7b700999
PA
40072017-10-17 Pedro Alves <palves@redhat.com>
4008
4009 * xml-support.c (xml_fetch_content_from_file): Call
4010 unique_ptr::release() instead unique_ptr::get() when passing
4011 through xrealloc.
4012
d3037ba6
YQ
40132017-10-17 Yao Qi <yao.qi@linaro.org>
4014
4015 * regcache.c (regcache::xfer_part): Remove parameters read and
4016 write, add parameter is_raw. All callers are updated.
4017
83d5a34d
KS
40182017-10-16 Keith Seitz <keiths@redhat.com>
4019
4020 * c-typeprint.c (enum access_specifier): Moved here from
4021 c_type_print_base.
4022 (output_access_specifier): New function.
4023 (c_type_print_base): Consider typedefs when assessing
4024 whether access labels are needed.
4025 Use output_access_specifier as needed.
4026 Output access specifier for typedefs, if needed.
4027 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4028 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4029 fields.
4030 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4031 accessor macros.
4032
87028b87
TT
40332017-10-16 Tom Tromey <tom@tromey.com>
4034
4035 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4036 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4037 * target.c (target_fileio_read_stralloc): Update.
4038 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4039 * target.h (target_fileio_read_stralloc): Return
4040 unique_xmalloc_ptr.
4041
b7b030ad
TT
40422017-10-16 Tom Tromey <tom@tromey.com>
4043
4044 * xml-syscall.c (xml_init_syscalls_info): Update.
4045 * xml-support.c (xinclude_start_include): Update.
4046 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4047 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4048 (xml_fetch_content_from_file): Likewise.
4049 * osdata.c (get_osdata): Update.
4050 * target.h (target_read_stralloc, target_get_osdata): Return
4051 unique_xmalloc_ptr.
4052 * solib-aix.c (solib_aix_get_library_list): Update.
4053 * solib-target.c (solib_target_current_sos): Update.
4054 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4055 * xml-tdesc.c (fetch_available_features_from_target): Update.
4056 (target_fetch_description_xml): Update.
4057 (file_read_description_xml): Update.
4058 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4059 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4060 (remote_pid_to_exec_file): Update.
4061 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4062 (target_get_osdata): Likewise.
4063
b80406ac
TT
40642017-10-16 Tom Tromey <tom@tromey.com>
4065
4066 * remote.c (remote_register_number_and_offset): Use std::vector.
4067 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4068 (putpkt_binary): Use gdb::def_vector.
4069 (compare_sections_command): Use gdb::byte_vector.
4070
a90ecff8
TT
40712017-10-16 Tom Tromey <tom@tromey.com>
4072
4073 * ppc-linux-nat.c (hwdebug_insert_point): Use
4074 gdb::unique_xmalloc_ptr, XDUP.
4075
2dc0e219
TT
40762017-10-16 Tom Tromey <tom@tromey.com>
4077
4078 * probe.c (parse_probes): Use std::string.
4079 (info_probes_for_ops, enable_probes_command)
4080 (disable_probes_command): Remove cleanups.
4081
b05628f0
TT
40822017-10-16 Tom Tromey <tom@tromey.com>
4083
4084 * buildsym.c (block_compar): Remove.
4085 (end_symtab_get_static_block): Use std::vector.
4086
a79b1bc6
SM
40872017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4088
4089 * memrange.h (struct mem_range): Define operator< and operator==.
4090 (mem_range_s): Remove.
4091 (DEF_VEC_O (mem_range_s)): Remove.
4092 (normalize_mem_ranges): Change parameter type to std::vector.
4093 * memrange.c (compare_mem_ranges): Remove.
4094 (normalize_mem_ranges): Change parameter type to std::vector,
4095 adjust to vector change.
4096 * exec.c (section_table_available_memory): Return vector, remove
4097 parameter.
4098 (section_table_read_available_memory): Adjust to std::vector
4099 change.
4100 * remote.c (remote_read_bytes): Adjust to std::vector
4101 change.
4102 * tracepoint.h (traceframe_available_memory): Change parameter
4103 type to std::vector.
4104 * tracepoint.c (traceframe_available_memory): Change parameter
4105 type to std::vector, adjust.
4106 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4107 std::vector change.
4108 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4109 unittests/memrange-selftests.c.
4110 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4111 * gdb/unittests/memrange-selftests.c: New file.
4112
63f0e930
PA
41132017-10-16 Pedro Alves <palves@redhat.com>
4114
4115 * elfread.c (probe_key_free): Rename range-for variable.
4116 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4117 (find_probe_by_pc, collect_probes): Rename range-for variable.
4118
c40c7bfc
YQ
41192017-10-16 Yao Qi <yao.qi@linaro.org>
4120
4121 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4122 * features/tic6x-c62x.c: Remove.
4123 * features/tic6x-c64x-linux.c: Remove.
4124 * features/tic6x-c64x.c: Remove.
4125 * features/tic6x-c64xp-linux.c: Remove.
4126 * features/tic6x-c64xp.c: Remove.
4127 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4128 initialize_tdesc_tic6x_*_linux functions.
4129 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4130 initialize_tdesc_tic6x_* functions.
4131
df27ae6a
YQ
41322017-10-16 Yao Qi <yao.qi@linaro.org>
4133
4134 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4135 tic6x-c62x.
4136 * regformats/tic6x-c62x.dat: Remove.
4137 * regformats/tic6x-c64x.dat: Remove.
4138 * regformats/tic6x-c64xp.dat: Remove.
4139
86766165
SM
41402017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4141
4142 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4143 (the !HAVE_LIBEXPAT version).
4144
824dfcc3
SM
41452017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4146
4147 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4148 const.
4149
2098b393
SM
41502017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4151
4152 * target.h: Include tracepoint.h.
4153 (enum trace_find_type): Move to tracepoint.h.
4154 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4155 * tracepoint.h: Don't include target.h
4156 (enum trace_find_type): Move from target.h.
4157 (parse_traceframe_info): Return a unique ptr.
4158 * tracepoint.c (current_traceframe_info): Change type to unique
4159 ptr.
4160 (free_traceframe_info): Remove.
4161 (clear_traceframe_info): Don't manually free
4162 current_traceframe_info.
4163 (free_result): Remove.
4164 (parse_traceframe_info): Return a unique ptr.
4165 (get_traceframe_info): Adjust to unique ptr.
4166 * ctf.c (ctf_traceframe_info): Return a unique ptr.
4167 * remote.c (remote_traceframe_info): Return a unique ptr.
4168 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
4169 ptr.
4170 * target-debug.h (target_debug_print_traceframe_info_up): New
4171 macro.
4172 * target-delegates.c: Regenerate.
4173
4cdd21a8
SM
41742017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4175
4176 * memrange.h (struct mem_range): Add constructors.
4177 * tracepoint.h (struct traceframe_info) <memory>: Change type to
4178 std::vector<mem_range>.
4179 * tracepoint.c (free_traceframe_info): Don't manually free
4180 vector.
4181 (traceframe_info_start_memory): Adjust to vector change.
4182 (traceframe_available_memory): Likewise.
4183 * tracefile-tfile.c (build_traceframe_info): Likewise.
4184 * ctf.c (ctf_traceframe_info): Likewise.
4185
d0d292a2
SM
41862017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4187
4188 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
4189 std::vector<int>.
4190 * tracepoint.c (free_traceframe_info): Deallocate with delete.
4191 (traceframe_info_start_tvar): Adjust to vector change.
4192 (parse_traceframe_info): Allocate with new.
4193 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
4194 vector change.
4195 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
4196 change.
4197 tfile_traceframe_info): Allocate with new.
4198 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
4199 change.
4200
8d3c73ef
SM
42012017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4202
4203 * tracepoint.c (traceframe_info): Rename to...
4204 (current_traceframe_info): ...this.
4205 (clear_traceframe_info): Adjust.
4206 (get_traceframe_info): Adjust.
4207
b129dcac
SM
42082017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4209
4210 * nat/linux-osdata.c: Include algorithm.
4211 (compare_processes): Remove.
4212 (struct pid_pgid_entry): New struct.
4213 (linux_xfer_osdata_processgroups): Use std::vector instead of
4214 XNEWVEC.
4215
af5bf4ad
SM
42162017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4217
4218 * objfiles.h: Don't include symfile.h.
4219 (struct partial_symbol): Remove forward-declaration.
4220 (struct objfile) <global_psymbols, static_psymbols>: Change type
4221 to std::vector<partial_symbol *>.
4222 * objfiles.c (objfile::objfile): Don't memset those fields.
4223 (objfile::~objfile): Don't free those fields.
4224 * psympriv.h (struct psymbol_allocation_list): Remove
4225 forward-declaration.
4226 (add_psymbol_to_list): Change psymbol_allocation_list parameter
4227 to std::vector.
4228 (start_psymtab_common): Change parameters to std::vector.
4229 * psymtab.c: Include algorithm.
4230 (require_partial_symbols): Call shrink_to_fit.
4231 (find_pc_sect_psymbol): Adjust to vector change.
4232 (match_partial_symbol): Likewise.
4233 (lookup_partial_symbol): Likewise.
4234 (psym_relocate): Likewise.
4235 (dump_psymtab): Likewise.
4236 (recursively_search_psymtabs): Likewise.
4237 (compare_psymbols): Remove.
4238 (sort_pst_symbols): Adjust to vector change.
4239 (start_psymtab_common): Likewise.
4240 (end_psymtab_common): Likewise.
4241 (psymbol_bcache_full): De-constify return value.
4242 (add_psymbol_to_bcache): Likewise.
4243 (extend_psymbol_list): Remove.
4244 (append_psymbol_to_list): Adjust to vector change.
4245 (add_psymbol_to_list): Likewise.
4246 (init_psymbol_list): Likewise.
4247 (maintenance_info_psymtabs): Likewise.
4248 (maintenance_check_psymtabs): Likewise.
4249 * symfile.h (struct psymbol_allocation_list): Remove.
4250 * symfile.c (reread_symbols): Adjust to vector change.
4251 * dbxread.c (start_psymtab): Change type of parameters.
4252 (dbx_symfile_read): Adjust to vector change.
4253 (read_dbx_symtab): Likewise.
4254 (start_psymtab): Change type of parameters.
4255 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
4256 (create_partial_symtab): Likewise.
4257 (add_partial_symbol): Likewise.
4258 (write_one_signatured_type): Likewise.
4259 (recursively_write_psymbols): Likewise.
4260 * mdebugread.c (parse_partial_symbols): Likewise.
4261 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
4262 (scan_xcoff_symtab): Adjust to vector change.
4263 (xcoff_initial_scan): Likewise.
4264
3ec5942f
SM
42652017-10-13 Simon Marchi <simon.marchi@ericsson.com>
4266
4267 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
4268
2399fe6a
YQ
42692017-10-13 Yao Qi <yao.qi@linaro.org>
4270
4271 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
4272 Remove s390x-*-expedite, add s390x-expedite.
4273
4bf3f4a8
YQ
42742017-10-13 Yao Qi <yao.qi@linaro.org>
4275
4276 * features/s390-gs-linux64.c: Regenerated.
4277 * features/s390x-gs-linux64.c: Regenerated.
4278
9e86da07
TT
42792017-10-13 Tom Tromey <tom@tromey.com>
4280
4281 * compile/compile-object-run.c (do_module_cleanup): Use delete.
4282 * solib.c (update_solib_list, reload_shared_libraries_1): Use
4283 delete.
4284 * symfile.c (symbol_file_add_with_addrs): Use new.
4285 (symbol_file_add_separate): Update comment.
4286 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
4287 * jit.c (jit_object_close_impl): Use new.
4288 (jit_unregister_code): Use delete.
4289 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
4290 (~objfile): Rename from free_objfile.
4291 (free_objfile_separate_debug, do_free_objfile_cleanup)
4292 (free_all_objfiles, objfile_purge_solibs): Use delete.
4293 * objfiles.h (struct objfile): Add constructor and destructor.
4294 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
4295 (allocate_objfile, free_objfile): Don't declare.
4296 (struct objstats): Add initializers.
4297
c2508e90
SM
42982017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4299
4300 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
4301 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
4302 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
4303 * gdbarch.h: Regenerate.
4304 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4305 Adjust comment.
4306 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
4307 (i386_displaced_step_fixup): Adjust comment.
4308 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
4309
a900ff72
TT
43102017-10-12 Tom Tromey <tom@tromey.com>
4311
4312 * prologue-value.h (pv_area::store_would_trash): Return bool.
4313 (pv_area::find_reg): Likewise.
4314 * prologue-value.c (pv_area::store_would_trash): Return bool.
4315 (pv_area::find_reg): Likewise.
4316
f7b7ed97
TT
43172017-10-12 Tom Tromey <tom@tromey.com>
4318
4319 * s390-linux-tdep.c (s390_store, s390_load)
4320 (s390_check_for_saved, s390_analyze_prologue): Update.
4321 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
4322 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
4323 * prologue-value.h (class pv_area): Move from prologue-value.c.
4324 Change names of members. Add constructor, destructor, member
4325 functions.
4326 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
4327 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
4328 (pv_area_fetch, pv_area_scan): Don't declare.
4329 * prologue-value.c (struct pv_area::area_entry): Now member of
4330 pv_area.
4331 (struct pv_area): Move to prologue-value.h.
4332 (pv_area::pv_area): Rename from make_pv_area.
4333 (pv_area::~pv_area): Rename from free_pv_area.
4334 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
4335 (clear_entries, find_entry, overlaps, store_would_trash, store)
4336 (fetch, find_reg, scan): Now member of pv_area.
4337 Remove "area" argument. Update.
4338 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
4339 Update.
4340 * mn10300-tdep.c (push_reg, check_for_saved)
4341 (mn10300_analyze_prologue): Update.
4342 * mep-tdep.c (is_arg_spill, check_for_saved)
4343 (mep_analyze_prologue): Update.
4344 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
4345 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
4346 (m32c_is_struct_return, m32c_analyze_prologue): Update.
4347 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
4348 Update.
4349 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
4350 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
4351
466eecee
SM
43522017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4353
4354 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
4355 * linux-nat.c (linux_nat_delete_thread): New variable.
4356 (lwp_free): Invoke linux_nat_delete_thread if set.
4357 (linux_nat_set_delete_thread): New function.
4358 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
4359 thread delete callback.
4360 * arm-linux-nat.c (arm_linux_delete_thread): New function.
4361 (_initialize_arm_linux_nat): Assign thread delete callback.
4362 * s390-linux-nat.c (s390_delete_thread): New function.
4363 (_initialize_s390_nat): Assign thread delete callback.
4364 * x86-linux-nat.c (x86_linux_add_target): Likewise.
4365 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
4366 function.
4367 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
4368 declaration.
4369 * nat/x86-linux.c (x86_linux_delete_thread): New function.
4370 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
4371
f71c8822
TT
43722017-10-09 Tom Tromey <tom@tromey.com>
4373
4374 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
4375 std::string.
4376 * tui/tui-layout.c (enum tui_status): Use std::string.
4377
981a3fb3
TT
43782017-10-11 Tom Tromey <tom@tromey.com>
4379
4380 * gdbthread.h (thread_command): Constify.
4381 * inferior.h (detach_command): Constify.
4382 * top.h (set_history, show_history): Constify.
4383 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
4384 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
4385 * bsd-kvm.c (bsd_kvm_cmd): Constify.
4386 * printcmd.c (set_command): Constify.
4387 (non_const_set_command): New function.
4388 * dcache.c (set_dcache_command, show_dcache_command): Constify.
4389 * breakpoint.c (enable_command, disable_command, delete_command)
4390 (catch_command, tcatch_command, set_breakpoint_cmd)
4391 (show_breakpoint_cmd): Constify.
4392 * macrocmd.c (macro_command): Constify.
4393 * infcmd.c (unset_command, kill_command, detach_command)
4394 (info_proc_cmd): Constify.
4395 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
4396 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
4397 (info_auto_load_cmd): Constify.
4398 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4399 (unset_tdesc_cmd): Constify.
4400 * ada-lang.c (set_ada_command, show_ada_command)
4401 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
4402 * guile/guile.c (set_guile_command, show_guile_command)
4403 (info_guile_command): Constify.
4404 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
4405 Constify.
4406 * skip.c (skip_command): Constify.
4407 * compile/compile.c (_initialize_compile): Constify.
4408 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
4409 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4410 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4411 (maint_btrace_pt_show_cmd): Constify.
4412 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
4413 Constify.
4414 * python/python.c (user_show_python, user_set_python): Constify.
4415 * mips-tdep.c (set_mips_command, show_mips_command)
4416 (set_mipsfpu_command): Constify.
4417 * record-btrace.c (cmd_record_btrace_start)
4418 (cmd_set_record_btrace, cmd_show_record_btrace)
4419 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
4420 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
4421 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
4422 Constify.
4423 * symfile.c (overlay_command): Constify.
4424 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
4425 * cli/cli-logging.c (set_logging_command, show_logging_command):
4426 Constify.
4427 * cli/cli-dump.c (dump_command, append_command)
4428 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4429 (tekhex_dump_command, binary_dump_command)
4430 (binary_append_command): Constify.
4431 * cli/cli-decode.c (struct cmd_list_element): Change type of
4432 "fun".
4433 * cli/cli-cmds.c (info_command, show_command, set_debug)
4434 (show_debug): Constify.
4435 (show_command): Add non-const overload.
4436 * top.c (set_history, show_history): Constify.
4437 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
4438 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
4439 * target.c (target_command): Constify.
4440 * sparc64-tdep.c (info_adi_command): Constify.
4441 * record-full.c (cmd_record_full_start): Constify.
4442 (set_record_full_command): Constify. Fix typo.
4443 (show_record_full_command): Constify.
4444 * thread.c (thread_command, thread_apply_command): Constify.
4445 * memattr.c (dummy_cmd): Constify.
4446 * value.c (function_command): Constify.
4447 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
4448 * probe.c (info_probes_command): Constify.
4449 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
4450 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
4451 (show_thread_cmd, set_thread_default_cmd)
4452 (show_thread_default_cmd): Constify.
4453 (check_empty): Constify.
4454 * tracepoint.c (tfind_command): Constify.
4455 * cp-support.c (maint_cplus_command): Constify.
4456 * windows-tdep.c (info_w32_command): Constify.
4457 * record.c (cmd_record_start, set_record_command)
4458 (show_record_command, info_record_command, cmd_record_goto):
4459 Constify.
4460 * ravenscar-thread.c (set_ravenscar_command)
4461 (show_ravenscar_command): Constify.
4462 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4463 Constify.
4464 (add_internal_problem_command): Remove casts.
4465 * arc-tdep.c (maintenance_print_arc_command): Constify.
4466 * valprint.c (set_print, show_print, set_print_raw)
4467 (show_print_raw): Constify.
4468 * maint.c (maintenance_command, maintenance_info_command)
4469 (maintenance_print_command, maintenance_set_cmd)
4470 (maintenance_show_cmd, set_per_command_cmd)
4471 (show_per_command_cmd, maintenance_check_command): Constify.
4472 * language.c (set_check, show_check): Constify.
4473 * typeprint.c (show_print_type, set_print_type): Constify.
4474 * go32-nat.c (go32_info_dos_command): Constify.
4475
fdf44873
TT
44762017-10-11 Tom Tromey <tom@tromey.com>
4477
4478 * breakpoint.c (prepare_re_set_context): Remove.
4479 (breakpoint_re_set_one): Update. Don't use cleanups.
4480 (breakpoint_re_set): Use scoped_restore, std::string, and
4481 scoped_restore_current_language.
4482
81b1e71c
TT
44832017-10-11 Tom Tromey <tom@tromey.com>
4484
4485 * breakpoint.c (commands_command_1): Use std::string.
4486 (cleanup_executing_breakpoints): Remove.
4487 (bpstat_do_actions_1): Use scoped_restore.
4488 (bpstat_check_watchpoint): Use std::string.
4489 (decode_static_tracepoint_spec): Likewise.
4490 (break_range_command): Likewise.
4491 (watch_command_1): Likewise.
4492 (compare_breakpoints): Change argument types.
4493 (clear_command): Use std::vector.
4494 (cleanup_executing_breakpoints): Remove.
4495 (update_global_location_list): Use unique_xmalloc_ptr.
4496 (strace_command): Remove unused declaration.
4497
4f9d9906
JB
44982017-10-11 John Baldwin <jhb@FreeBSD.org>
4499
4500 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
4501 * NEWS: Mention new FreeBSD/arm native configuration.
4502 * configure.host: Add arm*-*-freebsd*.
4503 * configure.nat: Likewise.
4504 * arm-fbsd-nat.c: New file.
4505
7176dfd2
JB
45062017-10-11 John Baldwin <jhb@FreeBSD.org>
4507
4508 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
4509 (ALLDEPFILES): Add arm-fbsd-tdep.c.
4510 * NEWS: Mention new FreeBSD/arm target.
4511 * configure.tgt: Add arm*-*-freebsd*.
4512 * arm-fbsd-tdep.c: New file.
4513 * arm-fbsd-tdep.h: New file.
4514
fe220226
MR
45152017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4516
4517 * linux-tdep.c (linux_make_corefile_notes): Remove call to
4518 `gdbarch_elfcore_write_linux_prpsinfo'.
4519 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
4520 method.
4521 (elf_internal_linux_prpsinfo): Remove declaration.
4522 * gdbarch.h: Regenerate.
4523 * gdbarch.c: Regenerate.
4524
a2f63b2e
MR
45252017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4526
4527 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
4528 `set_gdbarch_elfcore_write_linux_prpsinfo'.
4529
458ca1d0
PA
45302017-10-11 Pedro Alves <palves@redhat.com>
4531
4532 * breakpoint.c (reattach_breakpoints): Delete.
4533 * breakpoint.h (reattach_breakpoints): Delete.
4534
905014d7
SM
45352017-10-11 Simon Marchi <simon.marchi@ericsson.com>
4536
4537 * symfile.c (registered_sym_fns): Make struct, not typedef.
4538 (DEF_VEC_O (registered_sym_fns)): Remove.
4539 (symtab_fns): Change type to std::vector.
4540 (add_symtab_fns): Adjust.
4541 (find_sym_fns): Adjust.
4542
56d704da
AK
45432017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
4544
4545 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
4546 * arc-tdep.h (arc_arch_is_em): New function.
4547 (arc_arch_is_hs): Likewise.
4548
7fa29be9
EB
45492017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
4550
4551 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
4552 parentheses in the declaration.
4553 (macro_lookup_inclusion): Likewise.
4554 (macro_lookup_definition): Likewise.
4555 * p-lang.h (pascal_builtin_types): Likewise.
4556 * tui/tui-data.c (tui_win_list): Likewise.
4557 * tui/tui-data.h (tui_win_list): Likewise.
4558 * utils.h (make_cleanup_free_section_addr_info): Likewise.
4559
d9b477e3
KB
45602017-10-11 Mark Rages <markrages@gmail.com>
4561
4562 * target-memory.c (block_boundaries): Fix for block address not
4563 aligned on block size.
4564
65630365
PA
45652017-10-10 Pedro Alves <palves@redhat.com>
4566 Tom Tromey <tom@tromey.com>
4567
4568 * breakpoint.c (struct captured_breakpoint_query_args)
4569 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
4570 (print_breakpoint): New.
4571 * breakpoint.h (print_breakpoint): Declare.
4572 * common/common-exceptions.h (enum return_reason): Remove
4573 references to catch_exceptions.
4574 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
4575 Delete.
4576 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
4577 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
4578 * gdb.h: Delete.
4579 * gdbthread.h (thread_select): Declare.
4580 * mi/mi-cmd-break.c: Don't include gdb.h.
4581 (breakpoint_notify): Use print_breakpoint.
4582 * mi/mi-cmd-catch.c: Don't include gdb.h.
4583 * mi/mi-interp.c: Don't include gdb.h.
4584 (mi_print_breakpoint_for_event): New.
4585 (mi_breakpoint_created, mi_breakpoint_modified): Use
4586 mi_print_breakpoint_for_event.
4587 * mi/mi-main.c: Don't include gdb.h.
4588 (mi_cmd_thread_select): Parse the global thread ID here. Use
4589 thread_select instead of gdb_thread_select.
4590 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
4591 of using gdb_list_thread_ids.
4592 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
4593 FILEIO_ENOSYS here.
4594 (remote_fileio_request): Use TRY/CATCH instead of
4595 catch_exceptions.
4596 * symfile-mem.c (struct symbol_file_add_from_memory_args)
4597 (symbol_file_add_from_memory_wrapper): Delete.
4598 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
4599 * thread.c: Don't include gdb.h.
4600 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
4601 (thread_alive): Use thread_select.
4602 (do_captured_thread_select): Delete, parts salvaged as ...
4603 (thread_select): ... this new function.
4604 (gdb_thread_select): Delete.
4605
bf469271
PA
46062017-10-10 Pedro Alves <palves@redhat.com>
4607 Tom Tromey <tom@tromey.com>
4608
4609 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
4610 and reverse logic.
4611 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
4612 No longer macros. Instead ...
4613 (enum wp_check_result): They're now values of this new
4614 enumeration.
4615 (watchpoint_check): Change return type to wp_check_result and
4616 parameter type to bpstat.
4617 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
4618 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
4619 catch_errors. Reverse logic of watchpoint_check call.
4620 (breakpoint_re_set_one): Now returns void and takes a breakpoint
4621 pointer as parameter.
4622 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
4623 * common/common-exceptions.c (throw_exception_sjlj): Update
4624 comments to avoid mentioning catch_errors.
4625 * exceptions.c (catch_errors): Delete.
4626 * exceptions.h: Update comments to avoid mentioning catch_errors.
4627 (catch_errors_ftype, catch_errors): Delete.
4628 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
4629 (hook_stop_stub): Delete.
4630 (restore_selected_frame): Change return type to void, and
4631 parameter type to const frame_id &.
4632 (restore_infcall_control_state): Use TRY/CATCH instead of
4633 catch_errors.
4634 * main.c (captured_command_loop): Return void and remove
4635 parameter. Remove references to catch_errors.
4636 (captured_main): Use TRY/CATCH instead of catch_errors.
4637 * objc-lang.c (objc_submethod_helper_data)
4638 (find_objc_msgcall_submethod_helper): Delete.
4639 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
4640 catch_errors.
4641 * record-full.c (record_full_message): Return void.
4642 (record_full_message_args, record_full_message_wrapper): Delete.
4643 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
4644 instead of catch_errors.
4645 * solib-aix.c (solib_aix_open_symbol_file_object): Change
4646 parameter type to int.
4647 * solib-darwin.c (open_symbol_file_object): Ditto.
4648 * solib-dsbt.c (open_symbol_file_object): Ditto.
4649 * solib-frv.c (open_symbol_file_object): Ditto.
4650 * solib-svr4.c (open_symbol_file_object): Ditto.
4651 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
4652 * solib.c (update_solib_list): Use TRY/CATCH instead of
4653 catch_errors.
4654 * solist.h (struct target_so_ops) <open_symbol_file_object>:
4655 Change type.
4656 * symmisc.c (struct print_symbol_args): Remove.
4657 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
4658 (print_symbol): Change type.
4659 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
4660 and remove parameters.
4661 (catch_errors): New.
4662 (get_windows_debug_event): Adjust.
4663
1a56bfa5
TT
46642017-10-09 Tom Tromey <tom@tromey.com>
4665
4666 * mi/mi-main.c (free_splay_tree): Remove.
4667 (list_available_thread_groups): Use splay_tree_up.
4668 * common/gdb_splay_tree.h: New file.
4669
0c478e2d
TT
46702017-10-09 Tom Tromey <tom@tromey.com>
4671
4672 * mi/mi-main.c (do_nothing): Remove.
4673 (list_available_thread_groups): Update.
4674
cbd2b4e3
PA
46752017-10-09 Pedro Alves <palves@redhat.com>
4676
4677 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
4678 reading registers when switching context.
4679
a181c0bf
JB
46802017-10-09 John Baldwin <jhb@FreeBSD.org>
4681
4682 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
4683 (fbsd_convert_siginfo): Likewise.
4684 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
4685
6e66f753
SM
46862017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
4687
4688 * configure.ac (try_guile_versions): Remove guile-2.2.
4689 * configure: Regenerate.
4690
890e9790
TT
46912017-10-09 Tom Tromey <tom@tromey.com>
4692
4693 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
4694 (COMPILE.pre): Use $(CXX).
4695
109483d9
PA
46962017-10-09 Pedro Alves <palves@redhat.com>
4697
4698 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
4699 Use bool.
4700 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4701 * cp-support.h (cp_remove_params): Now returns a
4702 gdb::unique_xmalloc_ptr.
4703 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
4704 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
4705 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
4706 returning a gdb::unique_xmalloc_ptr.
4707 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4708 * stack.c (find_frame_funname): Adjust to cp_remove_params
4709 returning a gdb::unique_xmalloc_ptr.
4710
791afaa2
TT
47112017-10-08 Tom Tromey <tom@tromey.com>
4712
4713 * dwarf2read.c (dwarf2_get_dwz_file): Use
4714 gdb::unique_xmalloc_ptr.
4715 (find_slot_in_mapped_hash): Likewise.
4716 (dwarf2_physname): Likewise.
4717 (create_dwo_unit_in_dwp_v1): Use std::string.
4718 (create_dwo_unit_in_dwp_v2): Likewise.
4719 (lookup_dwo_cutu): Likewise.
4720 (inherit_abstract_dies): Use std::vector.
4721 (read_array_type): Likewise.
4722 (dwarf_decode_macros): Remove unused declaration.
4723 (unsigned_int_compar): Remove.
4724 (dwarf2_build_psymtabs_hard): Use scoped_restore.
4725 (psymtabs_addrmap_cleanup): Remove.
4726
30a9c02f
TT
47272017-10-08 Tom Tromey <tom@tromey.com>
4728
4729 * frame-unwind.c (frame_unwind_try_unwinder): Update.
4730 * frame.h (frame_cleanup_after_sniffer): Declare.
4731 (frame_prepare_for_sniffer): Return void.
4732 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
4733 type of argument.
4734 (frame_prepare_for_sniffer): Return void.
4735
757325a3
TT
47362017-10-08 Tom Tromey <tom@tromey.com>
4737
4738 * utils.h (make_cleanup_value_free): Remove.
4739 * utils.c (do_value_free, struct cleanup): Remove.
4740 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
4741 Use gdb_value_up.
4742 * value.h (struct value_deleter): New.
4743 (gdb_value_up): New typedef.
4744
b9c04fb2
TT
47452017-10-08 Tom Tromey <tom@tromey.com>
4746
4747 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
4748 (make_cleanup_free_search_symbols): Remove.
4749 (search_symbols): Return std::vector.
4750 (symbol_search::compare_search_syms): Now member of
4751 symbol_search. Change arguments.
4752 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
4753 (symtab_symbol_info, rbreak_command): Update.
4754 * symtab.h (struct symbol_search) <next>: Remove.
4755 Add constructors.
4756 (symbol_search::operator<): New function.
4757 (symbol_search::operator==): New function.
4758 (search_symbols): Remove std::vector.
4759 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
4760 (symbol_search::compare_search_syms): Declare.
4761
0d28b0a5
YQ
47622017-10-06 Yao Qi <yao.qi@linaro.org>
4763
4764 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
4765 arch/aarch64-insn.o.
4766 Remove one rule.
4767 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
4768
71917808
YQ
47692017-10-06 Yao Qi <yao.qi@linaro.org>
4770
4771 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
4772 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
4773 arch/arm-linux.o respectively.
4774 * configure.tgt: Likewise.
4775
2081b2b2
YQ
47762017-10-06 Yao Qi <yao.qi@linaro.org>
4777
4778 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
4779 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
4780
a1b85d28
PA
47812017-10-06 Pedro Alves <palves@redhat.com>
4782
4783 * windows-nat.c: Include <algorithm>.
4784
d97987e2
YQ
47852017-10-06 Yao Qi <yao.qi@linaro.org>
4786
4787 * configure.tgt (i386_tobjs): New variable.
4788 (amd64_tobjs): New variable.
4789 Set $cpu_obs and $os_obs.
4790
f38307f5
YQ
47912017-10-06 Yao Qi <yao.qi@linaro.org>
4792
4793 * Makefile.in (CONFIG_SRC_SUBDIR): New.
4794 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
4795 (clean): Remove object files and dependency files.
4796 (distclean): Remove the directory.
4797 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4798 * configure: Re-generated.
4799 * configure.tgt: Replace amd64.o with arch/amd64.o.
4800
2f924de6
JM
48012017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
4802
4803 PR build/22188
4804 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
4805 and SETEND.
4806
2fd9d7ca
PA
48072017-10-05 Pedro Alves <palves@redhat.com>
4808
4809 * linux-nat.c (linux_child_follow_fork): When following the parent
4810 and detaching the child, consult the parent thread's architecture
4811 instead of the child's.
4812
d13b8493
UW
48132017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4814
4815 * ax.h: Do not include "doublest.h".
4816 (union agent_val): Remove.
4817
3b4b2f16
UW
48182017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4819
4820 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
4821 (decimal_to_string): Return std::string object.
4822 (decimal_from_string): Accept std::string object. Return bool.
4823 (decimal_from_integral, decimal_from_doublest): Remove.
4824 (decimal_from_longest): Add prototype.
4825 (decimal_from_ulongest): Likewise.
4826 (decimal_to_longest): Likewise.
4827 (decimal_from_doublest): Likewise.
4828 * dfp.c: Do not include "gdbtypes.h" or "value.h".
4829 (MAX_DECIMAL_STRING): Move here.
4830 (decimal_to_string): Return std::string object.
4831 (decimal_from_string): Accept std::string object. Return bool.
4832 (decimal_from_integral): Remove, replace by ...
4833 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
4834 (decimal_to_longest): New function.
4835 (decimal_from_floating): Remove, replace by ...
4836 (decimal_from_doublest): ... this new function.
4837 (decimal_to_doublest): Update to new decimal_to_string interface.
4838
4839 * value.c (unpack_long): Use decimal_to_longest.
4840 * valops.c (value_cast): Use decimal_from_doublest instead of
4841 decimal_from_floating. Use decimal_from_[u]longest isntead of
4842 decimal_from_integral.
4843 * valarith.c (value_args_as_decimal): Likewise.
4844 * valprint.c (print_decimal_floating): Update to new
4845 decimal_to_string interface.
4846 * printcmd.c (printf_decfloat): Likewise.
4847 * c-exp.y (parse_number): Update to new decimal_from_string interface.
4848
1841ee5d
UW
48492017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4850
4851 * doublest.h: Do not include "floatformat.h". Remove stale comments.
4852 * gdbtypes.c: Include "floatformat.h".
4853 * value.c: Likewise.
4854 * m68k-tdep.c: Likewise.
4855
4856 * findvar.c: Do not include "floatformat.h".
4857 * amd64-darwin-tdep.c: Likewise.
4858 * arm-linux-tdep.c: Likewise.
4859 * i386-darwin-tdep.c: Likewise.
4860 * i387-tdep.c: Likewise.
4861 * m68k-linux-tdep.c: Likewise.
4862 * mep-tdep.c: Likewise.
4863 * mips-tdep.c: Likewise.
4864 * nios2-tdep.c: Likewise.
4865 * s390-linux-tdep.c: Likewise.
4866 * sparc-obsd-tdep.c: Likewise.
4867 * sparc-tdep.c: Likewise.
4868 * sparc64-tdep.c: Likewise.
4869 * spu-tdep.c: Likewise.
4870 * tic6x-tdep.c: Likewise.
4871 * tilegx-tdep.c: Likewise.
4872 * vax-tdep.c: Likewise.
4873 * xstormy16-tdep.c: Likewise.
4874 * xtensa-tdep.c: Likewise.
4875
4876 * top.c: Do not include "doublest.h".
4877 * aarch64-tdep.c: Likewise.
4878 * alpha-tdep.c: Likewise.
4879 * arm-linux-tdep.c: Likewise.
4880 * m68k-linux-tdep.c: Likewise.
4881 * tilegx-tdep.c: Likewise.
4882 * xstormy16-tdep.c: Likewise.
4883
a80a6471
JB
48842017-10-05 John Baldwin <jhb@FreeBSD.org>
4885
4886 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
4887 (mipsn32_fbsd_sigframe): Define.
4888 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
4889 for FreeBSD/mipsn32.
4890
12c4bd7f
JB
48912017-10-05 John Baldwin <jhb@FreeBSD.org>
4892
4893 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
4894 AT_HWCAP.
4895
c91933e9
TG
48962017-10-05 Tristan Gingold <tgingold@free.fr>
4897
4898 * MAINTAINERS (Misc): Update my email address.
4899
5cd63fda
PA
49002017-10-04 Pedro Alves <palves@redhat.com>
4901
4902 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
4903 it instead of target_gdbarch.
4904 (get_remote_state, get_remote_packet_size): Adjust
4905 get_remote_arch_state calls, passing down target_gdbarch
4906 explicitly.
4907 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
4908 'gdbarch' and use it instead of target_gdbarch.
4909 (get_memory_packet_size): Adjust get_remote_arch_state calls,
4910 passing down target_gdbarch explicitly.
4911 (struct stop_reply) <arch>: New field.
4912 (remote_parse_stop_reply): Use the stopped thread's architecture,
4913 not the current inferior's. Save the architecture in the
4914 stop_reply.
4915 (process_stop_reply): Use the stop reply's architecture.
4916 (process_g_packet, remote_fetch_registers)
4917 (remote_prepare_to_store, store_registers_using_G)
4918 (remote_store_registers): Adjust get_remote_arch_state calls,
4919 using the regcache's architecture.
4920 (remote_get_trace_status): Adjust get_remote_arch_state calls,
4921 passing down target_gdbarch explicitly.
4922 * spu-multiarch.c (spu_thread_architecture): Defer to the target
4923 beneath instead of calling target_gdbarch.
4924 * target.c (default_thread_architecture): Use the specified
4925 inferior's architecture, instead of the current inferior's
4926 architecture (via target_gdbarch).
4927
ed4227b7
PA
49282017-10-04 Pedro Alves <palves@redhat.com>
4929
4930 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
4931 case.
4932 (regcache_print): Handle !target_has_registers here instead.
4933
55b11ddf
PA
49342017-10-04 Pedro Alves <palves@redhat.com>
4935
4936 * frame.c (create_test_frame): Delete.
4937 * frame.h (create_test_frame): Delete.
4938 * gdbarch-selftests.c: Include gdbthread.h and target.h.
4939 (class regcache_test): Delete.
4940 (test_target_has_registers, test_target_has_stack)
4941 (test_target_has_memory, test_target_prepare_to_store)
4942 (test_target_store_registers): New functions.
4943 (test_target_ops): New class.
4944 (register_to_value_test): Error out if there's already a
4945 process_stratum (or higher) target pushed. Create a fuller mock
4946 environment, with mock target_ops, inferior, address space, thread
4947 and inferior_ptid.
4948 * progspace.c (struct address_space): Move to ...
4949 * progspace.h (struct address_space): ... here.
4950 * regcache.h (regcache::~regcache, regcache::raw_write)
4951 [GDB_SELF_TEST]: No longer virtual.
4952
4c71c105
SM
49532017-10-04 Simon Marchi <simon.marchi@ericsson.com>
4954
4955 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
4956
73dcd72d
PA
49572017-10-04 Pedro Alves <palves@redhat.com>
4958
4959 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
4960 out of 'between TRY and CATCH'.
4961
44704526
PA
49622017-10-04 Pedro Alves <palves@redhat.com>
4963
4964 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
4965 * common/common-exceptions.h (TRY): Open an outermost scope.
4966 Expand intro comment.
4967 (CATCH): Reindent.
4968 (END_CATCH): Close the outermost scope.
4969 * completer.c (complete_line_internal): Add missing END_CATCH.
4970
bc3b087d
SDJ
49712017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4972
4973 * NEWS (Changes since GDB 8.0): Add entry about new
4974 'set-cwd-on-gdbserver' feature.
4975 (New remote packets): Add entry for QSetWorkingDir.
4976 * common/common-inferior.h (set_inferior_cwd): New prototype.
4977 * infcmd.c (set_inferior_cwd): Remove "static".
4978 (show_cwd_command): Expand text to include remote debugging.
4979 * remote.c: Add PACKET_QSetWorkingDir.
4980 (remote_protocol_features) <QSetWorkingDir>: New entry for
4981 PACKET_QSetWorkingDir.
4982 (extended_remote_set_inferior_cwd): New function.
4983 (extended_remote_create_inferior): Call
4984 "extended_remote_set_inferior_cwd".
4985 (_initialize_remote): Call "add_packet_config_cmd" for
4986 QSetWorkingDir.
4987
d092c5a2
SDJ
49882017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4989
4990 * NEWS (New commands): Mention "set/show cwd".
4991 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
4992 "cd" command's help text.
4993 * common/common-inferior.h (get_inferior_cwd): New prototype.
4994 * infcmd.c (inferior_cwd_scratch): New global variable.
4995 (set_inferior_cwd): New function.
4996 (get_inferior_cwd): Likewise.
4997 (set_cwd_command): Likewise.
4998 (show_cwd_command): Likewise.
4999 (_initialize_infcmd): Add "set/show cwd" commands.
5000 * inferior.h (class inferior) <cwd>: New field.
5001 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5002 (fork_inferior): Change inferior's cwd before its execution.
5003 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5004 to CreateProcess.
5005
7da0a886
SDJ
50062017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5007
5008 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5009 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5010 (COMMON_OBS): Add gdb_tilde_expand.o.
5011 * common/gdb_tilde_expand.c: New file.
5012 * common/gdb_tilde_expand.h: Likewise.
5013
db8dd160
MR
50142017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5015
5016 * gdbarch.sh (objfile): Remove duplicate declaration.
5017 * gdbarch.h: Regenerate.
5018
f8bfbf22
TT
50192017-10-03 Tom Tromey <tom@tromey.com>
5020
5021 * utils.c (internal_vproblem): Use string_vprintf.
5022
5178ed48
TT
50232017-10-03 Tom Tromey <tom@tromey.com>
5024
5025 * printcmd.c (info_symbol_command): Use std::string.
5026
8cff8730
TT
50272017-10-03 Tom Tromey <tom@tromey.com>
5028
5029 * top.c (gdb_safe_append_history): Use std::string.
5030
895b8f30
TT
50312017-10-03 Tom Tromey <tom@tromey.com>
5032
5033 * event-top.c (stdin_event_handler): Update.
5034 * main.c (captured_main_1): Update.
5035 * top.h (make_delete_ui_cleanup): Remove.
5036 (struct ui): Add constructor and destructor.
5037 (new_ui, delete_ui): Remove.
5038 * top.c (make_delete_ui_cleanup): Remove.
5039 (new_ui_command): Use std::unique_ptr.
5040 (delete_ui_cleanup): Remove.
5041 (ui::ui): Rename from new_ui. Update.
5042 (free_ui): Remove.
5043 (ui::~ui): Rename from delete_ui. Update.
5044
0efef640
TT
50452017-10-03 Tom Tromey <tom@tromey.com>
5046
5047 * symfile.c (load_progress): Use gdb::byte_vector.
5048
245ad7d3
TT
50492017-10-03 Tom Tromey <tom@tromey.com>
5050
5051 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5052 declaration.
5053 * printcmd.c (x_command): Remove unused declaration.
5054 * symfile.c (symbol_file_command): Remove unused declaration.
5055
e05550d7
TT
50562017-10-03 Tom Tromey <tom@tromey.com>
5057
5058 * utils.c (internal_vproblem): Use std::string.
5059 (defaulted_query): Likewise.
5060
b95de2b7
TT
50612017-10-03 Tom Tromey <tom@tromey.com>
5062
5063 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5064 * top.c (execute_command_to_string): Update.
5065 * utils.c (make_cleanup_restore_page_info): Remove.
5066 (do_restore_page_info_cleanup): Remove.
5067 (set_batch_flag_and_restore_page_info):
5068 New.
5069 (make_cleanup_restore_page_info): Remove.
5070 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5071 (~set_batch_flag_and_restore_page_info): New
5072 (make_cleanup_restore_uinteger): Remove.
5073 (make_cleanup_restore_integer): Remove.
5074 (struct restore_integer_closure): Remove.
5075 (restore_integer): Remove.
5076 * utils.h (struct set_batch_flag_and_restore_page_info): New
5077 class.
5078 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5079 (make_cleanup_restore_page_info): Remove.
5080 (make_cleanup_restore_uinteger) Remove.
5081 (make_cleanup_restore_integer) Remove.
5082
07036511
TT
50832017-10-03 Tom Tromey <tom@tromey.com>
5084
5085 * record-full.h (record_full_gdb_operation_disable_set): Return
5086 scoped_restore_tmpl<int>.
5087 * infrun.c (adjust_pc_after_break): Update.
5088 (handle_signal_stop): Update.
5089 * record-full.c (record_full_gdb_operation_disable_set): Return
5090 scoped_restore_tmpl<int>.
5091 (record_full_wait_1, record_full_insert_breakpoint)
5092 (record_full_remove_breakpoint, record_full_save)
5093 (record_full_goto_insn): Update.
5094
45320ffa
TT
50952017-10-02 Tom Tromey <tom@tromey.com>
5096
5097 PR rust/22236:
5098 * rust-lang.c (rust_val_print_str): New function.
5099 (val_print_struct): Call it.
5100 (rust_subscript): Preserve name of slice type.
5101
b3e3859b
TT
51022017-10-02 Tom Tromey <tom@tromey.com>
5103
5104 * rust-lang.c (rust_subscript): Handle slices in
5105 EVAL_AVOID_SIDE_EFFECTS case.
5106
01af5e0d
TT
51072017-10-02 Tom Tromey <tom@tromey.com>
5108
5109 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5110
888e3ddb
TT
51112017-10-02 Tom Tromey <tom@tromey.com>
5112
5113 * rust-lang.h (rust_slice_type): Add "extern".
5114
cc536b21
PA
51152017-10-02 Tom Tromey <tom@tromey.com>
5116 Pedro Alves <palves@redhat.com>
5117
5118 * ada-lang.h (ada_exc_info::operator<): Make const.
5119 (ada_exc_info::operator==): Make const.
5120 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5121 Make const.
5122
386c8614
TT
51232017-09-29 Tom Tromey <tom@tromey.com>
5124
5125 * target.c (read_whatever_is_readable): Change type of "result".
5126 Update.
5127 (free_memory_read_result_vector): Remove.
5128 (read_memory_robust): Change return type. Update.
5129 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5130 bin2hex, std::string.
5131 * target.h (memory_read_result_s): Remove typedef.
5132 (free_memory_read_result_vector): Remove.
5133 (read_memory_robust): Return std::vector.
5134
789c4b5e
TT
51352017-09-29 Tom Tromey <tom@tromey.com>
5136
5137 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5138
ab816a27
TT
51392017-09-29 Tom Tromey <tom@tromey.com>
5140
5141 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5142 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5143 operator< and operator==.
5144 (ada_exceptions_list): Return a std::vector.
5145 * ada-lang.c (ada_exc_info::operator<): Rename from
5146 compare_ada_exception_info.
5147 (ada_exc_info::operator==): New.
5148 (sort_remove_dups_ada_exceptions_list): Change type of
5149 "exceptions".
5150 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5151 (ada_add_global_exceptions): Likewise.
5152 (ada_exceptions_list_1): Return a std::vector.
5153 (ada_exceptions_list): Likewise.
5154
52f9abe4
TT
51552017-09-29 Tom Tromey <tom@tromey.com>
5156
5157 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5158 'std::set *'.
5159 (print_one_inferior): Update.
5160 (free_vector_of_ints): Remove.
5161 (list_available_thread_groups): Change "ids" to std::set.
5162 (mi_cmd_list_thread_groups): Update.
5163 (struct collect_cores_data) <core>: Now a std::set.
5164 (collect_cores): Update.
5165 (unique): Remove.
5166 (print_one_inferior): Update.
5167
dcd5ddcc
TT
51682017-09-29 Tom Tromey <tom@tromey.com>
5169
5170 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
5171 (mi_execute_async_cli_command): Likewise.
5172 (mi_cmd_trace_frame_collected): Use field_fmt.
5173
45d288cc
TT
51742017-09-29 Tom Tromey <tom@tromey.com>
5175
5176 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
5177 gdb::byte_vector.
5178
6afe2f4a
TT
51792017-09-29 Tom Tromey <tom@tromey.com>
5180
5181 * mi/mi-parse.c (mi_parse): Remove unused declaration.
5182
9813429a
TT
51832017-09-29 Tom Tromey <tom@tromey.com>
5184
5185 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
5186
2d6960b4
TT
51872017-09-29 Tom Tromey <tom@tromey.com>
5188
5189 * varobj.h (varobj_gen_name): Return std::string.
5190 * varobj.c (varobj_gen_name): Return std::string.
5191 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
5192 (mi_cmd_var_delete): Don't copy "name".
5193
784c453a
TT
51942017-09-29 Tom Tromey <tom@tromey.com>
5195
5196 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
5197 (mi_cmd_break_insert_1): Update.
5198
a9bc57b9
TT
51992017-09-29 Tom Tromey <tom@tromey.com>
5200
5201 * target.h (make_scoped_defer_target_commit_resume): Update.
5202 * target.c (make_scoped_defer_target_commit_resume): Rename from
5203 make_cleanup_defer_target_commit_resume. Return a
5204 scoped_restore.
5205 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
5206
9754d8c4
TT
52072017-09-29 Tom Tromey <tom@tromey.com>
5208
5209 * main.c (captured_main_1): Remove unused declaration.
5210 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
5211
99ef965c
TT
52122017-09-29 Tom Tromey <tom@tromey.com>
5213
5214 * symtab.c (search_symbols): Remove unused outer cleanup.
5215 (make_source_files_completion_list): Remove unused declaration.
5216
42518ba7
TT
52172017-09-29 Tom Tromey <tom@tromey.com>
5218
5219 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
5220
726b2169
TT
52212017-09-29 Tom Tromey <tom@tromey.com>
5222
5223 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
5224 gdb::byte_vector.
5225
55b06432
TT
52262017-09-29 Tom Tromey <tom@tromey.com>
5227
5228 * complaints.c (vcomplaint): Use std::string.
5229
8abcee91
TT
52302017-09-29 Tom Tromey <tom@tromey.com>
5231
5232 * tracepoint.c (trace_variable_command): Use std::string.
5233 (encode_actions_1): Remove unused declarations.
5234 (create_tsv_from_upload): Use std::string.
5235
6ad94bc7
TT
52362017-09-29 Tom Tromey <tom@tromey.com>
5237
5238 * cp-support.c (gdb_demangle): Use std::string.
5239
2003f3d8
TT
52402017-09-29 Tom Tromey <tom@tromey.com>
5241
5242 * stack.c (parse_frame_specification): Use std::string
5243 (info_frame_command): Use gdb::unique_xmalloc_ptr.
5244
8f8accb5
TT
52452017-09-29 Tom Tromey <tom@tromey.com>
5246
5247 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
5248
200aa7b1
TT
52492017-09-29 Tom Tromey <tom@tromey.com>
5250
5251 * utils.c (vfprintf_maybe_filtered): Use std::string.
5252 (vfprintf_unfiltered): Likewise.
5253
606aae8a
TT
52542017-09-29 Tom Tromey <tom@tromey.com>
5255
5256 * event-top.c (top_level_prompt): Return std::string.
5257 (display_gdb_prompt): Update.
5258
bd413795
TT
52592017-09-29 Tom Tromey <tom@tromey.com>
5260
5261 * unittests/common-utils-selftests.c (format): New function.
5262 (string_vprintf_tests): New function.
5263 (_initialize_common_utils_selftests): Register new tests.
5264 * common/common-utils.c (string_vprintf): New function.
5265 * common/common-utils.h (string_vprintf): Declare.
5266
256642e8
PA
52672017-09-29 Pedro Alves <palves@redhat.com>
5268
5269 * common/rsp-low.c (unpack_varlen_hex): Constify.
5270 * common/rsp-low.h (unpack_varlen_hex): Constify.
5271 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5272 Constify.
5273 * remote.c (remote_set_permissions, read_ptid)
5274 (remote_current_thread, remote_get_threads_with_qthreadinfo)
5275 (remote_static_tracepoint_marker_at)
5276 (remote_static_tracepoint_markers_by_strid)
5277 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
5278 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
5279 (parse_tracepoint_definition, parse_tsv_definition)
5280 (parse_static_tracepoint_marker_definition): Constify.
5281 * tracepoint.h (parse_static_tracepoint_marker_definition)
5282 (parse_trace_status, parse_tracepoint_status)
5283 (parse_tracepoint_definition, parse_tsv_definition): Constify.
5284
b6bb3468
PA
52852017-09-29 Pedro Alves <palves@redhat.com>
5286
5287 * remote.c (target_buf, target_buf_size): Delete.
5288 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
5289 Use the connection's packet buffer instead.
5290 All callers adjusted.
5291 (_initialize_remote): Remove references to target_buf and
5292 target_buf_size.
5293
b2f8eb7a
PA
52942017-09-28 Pedro Alves <palves@redhat.com>
5295
5296 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5297 unittests/common-utils-selftests.c.
5298 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
5299 (COMMON_OBS): Remove utils-selftests.o.
5300 * utils-selftests.c: Move to ...
5301 * unittests/common-utils-selftests.c: ... here and rename self
5302 test to "string_printf".
5303
08302ed2
DE
53042017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
5305
5306 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
5307 having NULL cus or tus.
5308
96a5a1d3
UW
53092017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5310
5311 * arm-tdep.c: (convert_from_extended): Remove.
5312 (convert_to_extended): Likewise.
5313 (arm_extract_return_value): Use convert_typed_floating.
5314 (arm_store_return_value): Likewise.
5315
5316 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5317 * sh-tdep.c: Do not include "floatformat.h".
5318 (sh_littlebyte_bigword_type): New function.
5319 (sh_register_convert_to_virtual): Use convert_typed_floating.
5320 (sh_register_convert_to_raw): Likewise.
5321 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5322 (sh64_littlebyte_bigword_type): New function.
5323 (sh64_extract_return_value): Use convert_typed_floating.
5324 (sh64_register_convert_to_virtual): Likewise.
5325 (sh64_register_convert_to_raw): Likewise.
5326
0db7851f
UW
53272017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5328
5329 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
5330 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
5331
5332 * gdbtypes.h (union type_specific): Make field floatformat hold
5333 just a single struct floatformat, not an array.
5334 (floatformat_from_type): Move here.
5335 * gdbtypes.c (floatformat_from_type): Move here. Update to
5336 changed TYPE_FLOATFORMAT definition.
5337 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
5338 (recursive_dump_type): Likewise.
5339 (init_float_type): Install correct floatformat for byte order.
5340 (arch_float_type): Likewise.
5341
77b7c781
UW
53422017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5343
5344 * gdbtypes.c (init_type): Change incoming argument from
5345 length-in-bytes to length-in-bits. Assert length is a
5346 multiple of TARGET_CHAR_BITS.
5347 (arch_type, arch_flags_type): Likewise.
5348 (init_integer_type): Update call to init_type.
5349 (init_character_type): Likewise.
5350 (init_boolean_type): Likewise.
5351 (init_float_type): Likewise.
5352 (init_decfloat_type): Likewise.
5353 (init_complex_type): Likewise.
5354 (init_pointer_type): Likewise.
5355 (objfile_type): Likewise.
5356 (arch_integer_type): Update call to arch_type.
5357 (arch_character_type): Likewise.
5358 (arch_boolean_type): Likewise.
5359 (arch_float_type): Likewise.
5360 (arch_decfloat_type): Likewise.
5361 (arch_complex_type): Likewise.
5362 (arch_pointer_type): Likewise.
5363 (gdbtypes_post_init): Likewise.
5364
5365 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
5366 (read_base_type): Likewise.
5367 * mdebugread.c (basic_type): Likewise.
5368 * stabsread.c (dbx_init_float_type): Likewise.
5369 (rs6000_builtin_type): Likewise.
5370 (read_range_type): Likewise. Also, fix call to init_integer_type
5371 with erroneous length argument.
5372
5373 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
5374 * d-lang.c (build_d_types): Likewise.
5375 * f-lang.c (build_fortran_types): Likewise.
5376 * go-lang.c (build_go_types): Likewise.
5377 * opencl-lang.c (build_opencl_types): Likewise.
5378 * jit.c (finalize_symtab): Likewise.
5379 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5380 (build_std_type_info_type): Likewise.
5381 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
5382 update call to arch_flags_type.
5383
5384 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
5385 arch_type.
5386 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
5387 * windows-tdep.c (windows_get_tlb_type): Likewise.
5388
5389 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
5390 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5391 * m32c-tdep.c (make_types): Likewise.
5392 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5393 (rl78_psw_type): Update call to arch_flags_type.
5394 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
5395 * rx-tdep.c (rx_psw_type): Likewise.
5396 (rx_fpsw_type): Likewise.
5397 * sparc-tdep.c (sparc_psr_type): Likewise.
5398 (sparc_fsr_type): Likewise.
5399 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
5400 (sparc64_ccr_type): Likewise.
5401 (sparc64_fsr_type): Likewise.
5402 (sparc64_fprs_type): Likewise.
5403
f21b4d5c
TT
54042017-09-27 Tom Tromey <tom@tromey.com>
5405
5406 * findcmd.c (find_command): Constify.
5407
643c2ffa
TT
54082017-09-27 Tom Tromey <tom@tromey.com>
5409
5410 * ada-tasks.c (task_command_1, task_command): Constify.
5411
510e5e56
TT
54122017-09-27 Tom Tromey <tom@tromey.com>
5413
5414 * symtab.c (maintenance_print_symbol_cache)
5415 (maintenance_flush_symbol_cache)
5416 (maintenance_print_symbol_cache_statistics): Constify.
5417
e503b191
TT
54182017-09-27 Tom Tromey <tom@tromey.com>
5419
5420 * inferior.c (detach_inferior_command, kill_inferior_command)
5421 (inferior_command): Constify.
5422
4e001312
TT
54232017-09-27 Tom Tromey <tom@tromey.com>
5424
5425 * regcache.c (regcache_print, maintenance_print_registers)
5426 (maintenance_print_raw_registers)
5427 (maintenance_print_cooked_registers)
5428 (maintenance_print_register_groups)
5429 (maintenance_print_remote_registers): Constify.
5430
77763700
TT
54312017-09-27 Tom Tromey <tom@tromey.com>
5432
5433 * printcmd.c (map_display_numbers, undisplay_command)
5434 (enable_disable_display_command, enable_display_command)
5435 (disable_display_command): Constify.
5436
4495129a
TT
54372017-09-27 Tom Tromey <tom@tromey.com>
5438
5439 * breakpoint.h (delete_command): Don't declare.
5440 * breakpoint.c (delete_command, enable_once_command)
5441 (enable_count_command, enable_delete_command, breakpoint_1)
5442 (maintenance_info_breakpoints, stopin_command, stopat_command)
5443 (delete_command, delete_trace_command, save_breakpoints)
5444 (save_breakpoints_command, save_tracepoints_command): Constify.
5445
3088cf40
TT
54462017-09-27 Tom Tromey <tom@tromey.com>
5447
5448 * macrocmd.c (macro_expand_command, macro_expand_once_command)
5449 (skip_ws, extract_identifier, macro_define_command)
5450 (macro_undef_command, macro_list_command): Constify.
5451
69f476a3
TT
54522017-09-27 Tom Tromey <tom@tromey.com>
5453
5454 * infcmd.c (environment_info, set_environment_command)
5455 (unset_environment_command, path_info, info_proc_cmd_1)
5456 (info_proc_cmd_mappings, info_proc_cmd_stat)
5457 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
5458 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
5459
c4a3e68e
TT
54602017-09-27 Tom Tromey <tom@tromey.com>
5461
5462 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
5463 Constify.
5464
c9d31bd6
TT
54652017-09-27 Tom Tromey <tom@tromey.com>
5466
5467 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
5468
1f3f85eb
TT
54692017-09-27 Tom Tromey <tom@tromey.com>
5470
5471 * demangle.c (demangle_command): Constify.
5472
9c504b5d
TT
54732017-09-27 Tom Tromey <tom@tromey.com>
5474
5475 * progspace.c (maintenance_info_program_spaces_command):
5476 Constify.
5477
6663cf91
TT
54782017-09-27 Tom Tromey <tom@tromey.com>
5479
5480 * compile/compile.c (check_raw_argument, compile_file_command)
5481 (compile_code_command, compile_print_command): Constify.
5482
34e5fa26
TT
54832017-09-27 Tom Tromey <tom@tromey.com>
5484
5485 * reggroups.c (maintenance_print_reggroups): Constify.
5486
8384c356
TT
54872017-09-27 Tom Tromey <tom@tromey.com>
5488
5489 * dwarf2read.c (save_gdb_index_command): Constify.
5490
884beb0c
TT
54912017-09-27 Tom Tromey <tom@tromey.com>
5492
5493 * stap-probe.c (info_probes_stap_command): Constify.
5494
e0b2930c
TT
54952017-09-27 Tom Tromey <tom@tromey.com>
5496
5497 * fork-child.c (unset_exec_wrapper_command): Constify.
5498
f938677d
TT
54992017-09-27 Tom Tromey <tom@tromey.com>
5500
5501 * btrace.c (get_uint, get_context_size, no_chunk)
5502 (maint_btrace_packet_history_cmd)
5503 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
5504 (maint_info_btrace_cmd): Constify.
5505
8949cb87
TT
55062017-09-27 Tom Tromey <tom@tromey.com>
5507
5508 * reverse.c (delete_bookmark_command): Constify.
5509
ac88e2de
TT
55102017-09-27 Tom Tromey <tom@tromey.com>
5511
5512 * remote.c (set_memory_packet_size)
5513 (set_memory_write_packet_size, show_memory_write_packet_size)
5514 (set_memory_read_packet_size, show_memory_read_packet_size)
5515 (compare_sections_command, packet_command, remote_put_command)
5516 (remote_get_command, remote_delete_command): Constify.
5517
bd4c9dfe
TT
55182017-09-27 Tom Tromey <tom@tromey.com>
5519
5520 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
5521 (set_mipsfpu_double_command, set_mipsfpu_none_command)
5522 (set_mipsfpu_auto_command): Constify.
5523
5e93d4c6
TT
55242017-09-27 Tom Tromey <tom@tromey.com>
5525
5526 * cli/cli-cmds.h (cd_command): Constify.
5527 * cli/cli-cmds.c (cd_command): Constify.
5528
fc41a75b
TT
55292017-09-27 Tom Tromey <tom@tromey.com>
5530
5531 * thread.c (thread_name_command, thread_find_command): Constify.
5532
67810076
TT
55332017-09-27 Tom Tromey <tom@tromey.com>
5534
5535 * probe.c (enable_probes_command, disable_probes_command):
5536 Constify.
5537
1d8b34a7
TT
55382017-09-27 Tom Tromey <tom@tromey.com>
5539
5540 * symfile.c (symbol_file_command): Constify.
5541 * gdbcore.h (deprecated_file_changed_hook): Constify.
5542 * exec.c (deprecated_file_changed_hook, exec_file_command)
5543 (file_command): Constify.
5544 * defs.h (symbol_file_command): Constify.
5545
442019e1
TT
55462017-09-27 Tom Tromey <tom@tromey.com>
5547
5548 * remote-fileio.c (set_system_call_allowed)
5549 (show_system_call_allowed): Constify.
5550
2983f7cb
TT
55512017-09-27 Tom Tromey <tom@tromey.com>
5552
5553 * tracepoint.c (delete_trace_variable_command)
5554 (tfind_end_command, tfind_start_command, tfind_pc_command)
5555 (tfind_tracepoint_command, tfind_line_command)
5556 (tfind_range_command, tfind_outside_command): Constify.
5557
4fd41b24
TT
55582017-09-27 Tom Tromey <tom@tromey.com>
5559
5560 * ax-gdb.c (maint_agent_printf_command, agent_command)
5561 (agent_eval_command): Constify.
5562
f2fc3015
TT
55632017-09-27 Tom Tromey <tom@tromey.com>
5564
5565 * tracepoint.c (info_scope_command): Constify.
5566 * python/python.c (gdbpy_decode_line): Constify.
5567 * python/py-breakpoint.c (bppy_init): Constify.
5568 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
5569 * location.h: (new_linespec_location)
5570 (string_to_event_location_basic, string_to_event_location):
5571 Constify.
5572 * location.c (new_linespec_location)
5573 (string_to_event_location_basic, string_to_event_location):
5574 Constify.
5575 * linespec.h (decode_line_with_current_source)
5576 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
5577 * linespec.c (linespec_lex_to_end)
5578 (decode_line_with_current_source)
5579 (decode_line_with_last_displayed): Constify.
5580 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
5581 Constify.
5582 * cli/cli-cmds.c (edit_command, list_command): Constify.
5583 * breakpoint.h (until_break_command, watch_command_wrapper)
5584 (awatch_command_wrapper, rwatch_command_wrapper)
5585 (init_ada_exception_breakpoint): Constify.
5586 * breakpoint.c (break_command_1, dprintf_command)
5587 (break_range_command, watch_command_wrapper)
5588 (rwatch_command_wrapper, awatch_command_wrapper)
5589 (until_break_command, init_ada_exception_breakpoint)
5590 (strace_marker_create_sals_from_location, trace_command)
5591 (ftrace_command, strace_command, struct tracepoint): Constify.
5592 * ax-gdb.c (agent_command_1): Constify.
5593 * ada-lang.c (ada_exception_sal): Constify.
5594
8c2f95f4
TT
55952017-09-27 Tom Tromey <tom@tromey.com>
5596
5597 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
5598 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
5599 (get_context_size, no_chunk, get_insn_history_modifiers)
5600 (cmd_record_insn_history, get_call_history_modifiers)
5601 (cmd_record_call_history): Constify.
5602
a0d65762
TT
56032017-09-27 Tom Tromey <tom@tromey.com>
5604
5605 * source.c (show_substitute_path_command)
5606 (unset_substitute_path_command, set_substitute_path_command):
5607 Constify.
5608
58971144
TT
56092017-09-27 Tom Tromey <tom@tromey.com>
5610
5611 * typeprint.c (maintenance_print_type): Constify.
5612 * maint.c (maintenance_dump_me, maintenance_demangle)
5613 (maintenance_time_display, maintenance_info_sections)
5614 (maintenance_print_statistics, maintenance_deprecate)
5615 (maintenance_undeprecate): Constify.
5616 (maintenance_do_deprecate): Constify. Use std::string.
5617 (maintenance_selftest): Constify.
5618 * gdbtypes.h (maintenance_print_type): Constify.
5619
c482f52c
TT
56202017-09-27 Tom Tromey <tom@tromey.com>
5621
5622 * hppa-tdep.c (unwind_command): Constify.
5623
e100df1a
TT
56242017-09-27 Tom Tromey <tom@tromey.com>
5625
5626 * target-descriptions.c (unset_tdesc_filename_cmd)
5627 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
5628 Constify.
5629
31d56ade
TT
56302017-09-27 Tom Tromey <tom@tromey.com>
5631
5632 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
5633
b961da0b
TT
56342017-09-27 Tom Tromey <tom@tromey.com>
5635
5636 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
5637
e2d8ae16
TT
56382017-09-27 Tom Tromey <tom@tromey.com>
5639
5640 * tui/tui-regs.c (tui_reg_command): Constify.
5641
863779b0
TT
56422017-09-27 Tom Tromey <tom@tromey.com>
5643
5644 * skip.c (skip_file_command, skip_function_command)
5645 (skip_enable_command, skip_disable_command, skip_delete_command):
5646 Constify.
5647
cdb34d4a
TT
56482017-09-27 Tom Tromey <tom@tromey.com>
5649
5650 * record-btrace.c (cmd_record_btrace_bts_start)
5651 (cmd_record_btrace_pt_start): Constify.
5652
e99c83e7
TT
56532017-09-27 Tom Tromey <tom@tromey.com>
5654
5655 * symmisc.c (maintenance_print_symbols)
5656 (maintenance_print_msymbols, maintenance_print_objfiles)
5657 (maintenance_info_symtabs, maintenance_check_symtabs)
5658 (maintenance_expand_symtabs, maintenance_info_line_tables):
5659 Constify.
5660
32faf971
TT
56612017-09-27 Tom Tromey <tom@tromey.com>
5662
5663 * top.c (new_ui_command): Constify.
5664
2cf311eb
TT
56652017-09-27 Tom Tromey <tom@tromey.com>
5666
5667 * symfile.c (add_symbol_file_command)
5668 (remove_symbol_file_command, list_overlays_command)
5669 (map_overlay_command, unmap_overlay_command)
5670 (overlay_auto_command, overlay_manual_command)
5671 (overlay_off_command, overlay_load_command): Constify.
5672
e6738699
TT
56732017-09-27 Tom Tromey <tom@tromey.com>
5674
5675 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
5676 (info_spu_mailbox_command, info_spu_dma_command)
5677 (info_spu_proxydma_command): Constify.
5678
aa360cd5
TT
56792017-09-27 Tom Tromey <tom@tromey.com>
5680
5681 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
5682
898241a5
TT
56832017-09-27 Tom Tromey <tom@tromey.com>
5684
5685 * cli/cli-script.c (user_defined_command): Constify.
5686
2d0ac106
TT
56872017-09-27 Tom Tromey <tom@tromey.com>
5688
5689 * cli/cli-dump.c (dump_memory_command, dump_value_command)
5690 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
5691 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
5692 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
5693 (dump_binary_value, append_binary_memory, append_binary_value):
5694 Constify.
5695 (struct dump_context) <func>: Constify.
5696 (add_dump_command): Update.
5697
dede02ce
TT
56982017-09-27 Tom Tromey <tom@tromey.com>
5699
5700 * cli/cli-cmds.c (show_version, show_configuration)
5701 (source_command, show_user): Constify.
5702
d3cb6b99
TT
57032017-09-27 Tom Tromey <tom@tromey.com>
5704
5705 * target.c (maintenance_print_target_stack): Constify.
5706
1970a12f
TT
57072017-09-27 Tom Tromey <tom@tromey.com>
5708
5709 * interps.c (interpreter_exec_cmd): Constify.
5710
41243651
TT
57112017-09-27 Tom Tromey <tom@tromey.com>
5712
5713 * record-full.c (cmd_record_full_restore): Constify.
5714
4465d9db
TT
57152017-09-27 Tom Tromey <tom@tromey.com>
5716
5717 * memattr.c (enable_mem_command, disable_mem_command)
5718 (delete_mem_command): Constify.
5719
ad25e423
TT
57202017-09-27 Tom Tromey <tom@tromey.com>
5721
5722 * value.c (show_convenience): Constify.
5723
d64097b1
TT
57242017-09-27 Tom Tromey <tom@tromey.com>
5725
5726 * gdbcore.h (core_file_command): Update.
5727 * corefile.c (core_file_command): Constify.
5728
4d4589ef
TT
57292017-09-27 Tom Tromey <tom@tromey.com>
5730
5731 * user-regs.c (maintenance_print_user_registers): Constify.
5732
32a7bf17
TT
57332017-09-27 Tom Tromey <tom@tromey.com>
5734
5735 * cp-namespace.c (maintenance_cplus_namespace): Constify.
5736
4a475551
TT
57372017-09-27 Tom Tromey <tom@tromey.com>
5738
5739 * cp-support.c (first_component_command): Constify.
5740
990b9f9f
TT
57412017-09-27 Tom Tromey <tom@tromey.com>
5742
5743 * psymtab.c (maintenance_print_psymbols)
5744 (maintenance_info_psymtabs, maintenance_check_psymtabs):
5745 Constify.
5746
c281872e
TT
57472017-09-27 Tom Tromey <tom@tromey.com>
5748
5749 * windows-tdep.c (display_tib): Constify.
5750
5b64bf74
TT
57512017-09-27 Tom Tromey <tom@tromey.com>
5752
5753 * linux-fork.c (delete_checkpoint_command)
5754 (detach_checkpoint_command): Constify.
5755
4ada038f
TT
57562017-09-27 Tom Tromey <tom@tromey.com>
5757
5758 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
5759
57f5a81b
TT
57602017-09-27 Tom Tromey <tom@tromey.com>
5761
5762 * arc-tdep.c (dump_arc_instruction_command): Constify.
5763
b0a8e6c4
TT
57642017-09-27 Tom Tromey <tom@tromey.com>
5765
5766 * valprint.c (set_radix, show_radix): Constify.
5767
8d97dc1c
TT
57682017-09-27 Tom Tromey <tom@tromey.com>
5769
5770 * dtrace-probe.c (info_probes_dtrace_command): Constify.
5771
eb7c454d
TT
57722017-09-27 Tom Tromey <tom@tromey.com>
5773
5774 * command.h (not_just_help_class_command): Update.
5775 * cli/cli-decode.h (not_just_help_class_command): Update.
5776 * cli/cli-decode.c (not_just_help_class_command): Constify.
5777
e4e33335
TT
57782017-09-27 Tom Tromey <tom@tromey.com>
5779
5780 * gdb_bfd.c (maintenance_info_bfds): Constify.
5781
0450cc4c
TT
57822017-09-27 Tom Tromey <tom@tromey.com>
5783
5784 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
5785 overloads.
5786 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
5787 (do_const_cfunc): New function.
5788 (cmd_cfunc_eq): New overload.
5789 (cli_user_command_p): Check do_const_cfunc.
5790 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
5791 const_cfunc.
5792 * command.h (add_cmd): Add const overload and no-function
5793 overload.
5794 (set_cmd_cfunc): Add const overload.
5795 (cmd_const_cfunc_ftype): Declare.
5796 (cmd_cfunc_eq): Add const overload.
5797 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
5798 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
5799 overload.
5800
a9bbfbd8
TT
58012017-09-27 Tom Tromey <tom@tromey.com>
5802
5803 * macroexp.c (get_next_token_for_substitution): New function.
5804 (substitute_args): Call it. Check for __VA_OPT__.
5805
5230b05a
WT
58062017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5807 Pedro Alves <palves@redhat.com>
5808
5809 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
5810 producer_is_icc_lt_14.
5811 (producer_is_icc_lt_14): New function.
5812 (check_producer): Add code for checking version of ICC.
5813 (producer_is_icc): Move to producer.c.
5814 (read_structure_type): Restrict ICC workaround to ICC<14.
5815 * producer.c: Include selftest.h.
5816 (producer_is_icc, producer_parsing_tests, _initialize_producer):
5817 New functions.
5818 * producer.h (producer_is_icc): New declaration.
5819
b32b108a
WT
58202017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5821
5822 * Makefile.in (SFILES): Add producer.c.
5823 (COMMON_OBS): Add producer.o
5824 * amd64-tdep.c (producer.h): Add new include.
5825 * dwarf2read.c (producer.h): Add new include.
5826 * producer.c: New file.
5827 * producer.h: New file.
5828 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
5829 producer.c.
5830 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
5831 producer.h.
5832
5007d765
MK
58332017-09-26 Matthias Klose <doko@ubuntu.com>
5834
5835 * configure.ac: Search ncursesw before ncurses.
5836 Check ncursesw/ncurses.h before ncurses/ncurses.h.
5837 * gdb_curses.h: Include <ncursesw/ncurses.h>
5838 * config.in, configure: Regenerate.
5839
281c4447
RO
58402017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5841
5842 PR gdb/22185
5843 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
5844 obsolete.
5845 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
5846 Remove i386sol2 support.
5847 * configure.nat <i386sol2>: Remove.
5848 <sol2-64>: Fold into ...
5849 <sol2>: ... this.
5850 Move common settings to default section.
5851 Add sol-thread.o.
5852 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
5853 x86_64-*-solaris2.1[0-9]*>: Rename to ...
5854 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
5855 <i[34567]86-*-solaris*>: Remove.
5856 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
5857
5858 * configure.ac: Remove wctype in libw check.
5859 (_MSE_INT_H): Don't define on Solaris 7-9.
5860 <solaris*>: Remove libthread_db.so.1 check.
5861 * configure: Regenerate.
5862 * config.in: Regenerate.
5863
5864 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
5865 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
5866 (gdb_ps_size_t): Remove.
5867 Use base types in users.
5868 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
5869
5870 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
5871
39b06c20
RO
58722017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5873
5874 PR build/22206
5875 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
5876 (adi_is_addr_mapped): Likewise.
5877 (PSR_ICC): Don't redefine.
5878 (PSR_IMPL): Likewise.
5879
6c3e20f1
TT
58802017-09-25 Tom Tromey <tom@tromey.com>
5881
5882 * regcache.c (regcache::dump): Use string_printf.
5883
b292235f
TT
58842017-09-25 Tom Tromey <tom@tromey.com>
5885
5886 * regcache.c (class regcache_invalidator): New.
5887 (struct register_to_invalidate): Remove.
5888 (make_cleanup_regcache_invalidate): Remove.
5889 (regcache::raw_write): Use regcache_invalidator.
5890
9ac86b52
TT
58912017-09-25 Tom Tromey <tom@tromey.com>
5892
5893 * spu-tdep.c (spu2ppu_sniffer): Update.
5894 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
5895 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
5896 Remove.
5897 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
5898 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
5899 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
5900 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
5901 (frame_pop): Update.
5902
c0e383c6
TT
59032017-09-25 Tom Tromey <tom@tromey.com>
5904
5905 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
5906 * regcache.h (regcache_xfree): Don't declare.
5907 * regcache.c (regcache_xfree): Remove.
5908 (do_regcache_xfree): Use delete.
5909 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
5910 * linux-fork.c (free_fork): Use delete.
5911 (fork_save_infrun_state): Likewise.
5912 * jit.c (jit_dealloc_cache): Use delete.
5913 * infrun.c (discard_infcall_suspend_state): Use delete.
5914
791199cc
TT
59152017-09-25 Tom Tromey <tom@tromey.com>
5916
5917 * regcache.h (regcache_xmalloc): Don't declare.
5918 (regcache_raw_set_cached_value): Update comment.
5919 * regcache.c (regcache_xmalloc): Remove.
5920 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
5921 * jit.c (jit_frame_sniffer): Use new.
5922 * frame.c (frame_save_as_regcache): Use new.
5923
289e23aa
AA
59242017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5925
5926 * NEWS: Advertise support for guarded-storage registers on IBM z.
5927
1b63490c
AA
59282017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5929
5930 * s390-linux-nat.c (have_regset_gs): New static variable.
5931 (s390_linux_fetch_inferior_registers): Handle guarded-storage
5932 control block and guarded-storage broadcast control regsets.
5933 (s390_read_description): Detect whether the target has
5934 guarded-storage support, return appropriate tdesc.
5935 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
5936 (features/s390x-gs-linux64.c): Likewise.
5937 (struct gdbarch_tdep) <have_gs>: New field.
5938 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
5939 (s390_gsbc_regset): New variables.
5940 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
5941 and s390_gsbc_regset, if applicable.
5942 (s390_core_read_description): Check whether core file was from a
5943 target with guarded-storage support; include appropriate regsets.
5944 (s390_gdbarch_init): Add registers for guarded-storage support.
5945 (_initialize_s390_tdep): Initialize new target descriptions that
5946 include registers for guarded-storage support.
5947 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
5948 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
5949 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
5950 (S390_NUM_REGS): Adjust macro definition.
5951 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
5952 (tdesc_s390x_gs_linux64): New declarations.
5953
96235dc1
AA
59542017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5955
5956 * features/s390-gs-linux64.xml: New file.
5957 * features/s390-gs.xml: New file.
5958 * features/s390-gsbc.xml: New file.
5959 * features/s390x-gs-linux64.xml: New file.
5960 * features/Makefile (WHICH): Add s390-gs-linux64 and
5961 s390x-gs-linux64.
5962 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
5963 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
5964 * features/s390-gs-linux64.c: New generated file.
5965 * features/s390x-gs-linux64.c: New file.
5966 * regformats/s390-gs-linux64.dat: New file.
5967 * regformats/s390x-gs-linux64.dat: New file.
5968
b4a7c699
TT
59692017-09-23 Tom Tromey <tom@tromey.com>
5970
5971 * defs.h (make_cleanup_override_quit_handler): Don't declare.
5972
c2f97536
TT
59732017-09-22 Tom Tromey <tom@tromey.com>
5974
5975 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
5976 type to scoped_restore_tmpl.
5977 <scoped_input_handler>: Initialize m_quit_handler directly.
5978
43573013
SDJ
59792017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5980
5981 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
5982 (cd_command): Likewise. Free "current_directory" before
5983 assigning to it.
5984 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
5985 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
5986 * top.c (gdb_dirbuf): Remove global declaration.
5987 * top.h (gdb_dirbuf): Likewise.
5988
6ec2e0f5
SDJ
59892017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5990
5991 * gnulib/aclocal.m4: Regenerate.
5992 * gnulib/config.in: Regenerate.
5993 * gnulib/configure: Regenerate.
5994 * gnulib/import/Makefile.am: Regenerate.
5995 * gnulib/import/Makefile.in: Regenerate.
5996 * gnulib/import/assure.h: New file.
5997 * gnulib/import/at-func.c: Likewise
5998 * gnulib/import/chdir-long.c: New file.
5999 * gnulib/import/chdir-long.h: New file.
6000 * gnulib/import/cloexec.c: New file.
6001 * gnulib/import/cloexec.h: New file.
6002 * gnulib/import/close.c: New file.
6003 * gnulib/import/closedir.c: New file.
6004 * gnulib/import/dirent-private.h: New file.
6005 * gnulib/import/dup-safer.c: New file.
6006 * gnulib/import/dup.c: New file.
6007 * gnulib/import/dup2.c: New file.
6008 * gnulib/import/error.c: New file.
6009 * gnulib/import/error.h: New file.
6010 * gnulib/import/exitfail.c: New file.
6011 * gnulib/import/exitfail.h: New file.
6012 * gnulib/import/fchdir.c: New file.
6013 * gnulib/import/fcntl.c: New file.
6014 * gnulib/import/fcntl.in.h: New file.
6015 * gnulib/import/fd-hook.c: New file.
6016 * gnulib/import/fd-hook.h: New file.
6017 * gnulib/import/fd-safer.c: New file.
6018 * gnulib/import/fdopendir.c: New file.
6019 * gnulib/import/filename.h: New file.
6020 * gnulib/import/filenamecat-lgpl.c: New file.
6021 * gnulib/import/filenamecat.h: New file.
6022 * gnulib/import/fstat.c: New file.
6023 * gnulib/import/fstatat.c: New file.
6024 * gnulib/import/getcwd-lgpl.c: New file.
6025 * gnulib/import/getcwd.c: New file.
6026 * gnulib/import/getdtablesize.c: New file.
6027 * gnulib/import/getlogin_r.c: New file.
6028 * gnulib/import/getprogname.c: New file.
6029 * gnulib/import/getprogname.h: New file.
6030 * gnulib/import/gettext.h: New file.
6031 * gnulib/import/glob-libc.h: New file.
6032 * gnulib/import/glob.c: New file.
6033 * gnulib/import/glob.in.h: New file.
6034 * gnulib/import/intprops.h: New file.
6035 * gnulib/import/m4/chdir-long.m4: New file.
6036 * gnulib/import/m4/close.m4: New file.
6037 * gnulib/import/m4/closedir.m4: New file.
6038 * gnulib/import/m4/d-ino.m4: New file.
6039 * gnulib/import/m4/d-type.m4: New file.
6040 * gnulib/import/m4/dup.m4: New file.
6041 * gnulib/import/m4/dup2.m4: New file.
6042 * gnulib/import/m4/error.m4: New file.
6043 * gnulib/import/m4/fchdir.m4: New file.
6044 * gnulib/import/m4/fcntl.m4: New file.
6045 * gnulib/import/m4/fcntl_h.m4: New file.
6046 * gnulib/import/m4/fdopendir.m4: New file.
6047 * gnulib/import/m4/filenamecat.m4: New file.
6048 * gnulib/import/m4/fstat.m4: New file.
6049 * gnulib/import/m4/fstatat.m4: New file.
6050 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6051 * gnulib/import/m4/getcwd-path-max.m4: New file.
6052 * gnulib/import/m4/getcwd.m4: New file.
6053 * gnulib/import/m4/getdtablesize.m4: New file.
6054 * gnulib/import/m4/getlogin_r.m4: New file.
6055 * gnulib/import/m4/getprogname.m4: New file.
6056 * gnulib/import/m4/glob.m4: New file.
6057 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6058 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6059 * gnulib/import/m4/mempcpy.m4: New file.
6060 * gnulib/import/m4/memrchr.m4: New file.
6061 * gnulib/import/m4/mode_t.m4: New file.
6062 * gnulib/import/m4/msvc-inval.m4: New file.
6063 * gnulib/import/m4/msvc-nothrow.m4: New file.
6064 * gnulib/import/m4/open.m4: New file.
6065 * gnulib/import/m4/openat.m4: New file.
6066 * gnulib/import/m4/opendir.m4: New file.
6067 * gnulib/import/m4/readdir.m4: New file.
6068 * gnulib/import/m4/realloc.m4: New file.
6069 * gnulib/import/m4/rewinddir.m4: New file.
6070 * gnulib/import/m4/save-cwd.m4: New file.
6071 * gnulib/import/m4/strdup.m4: New file.
6072 * gnulib/import/m4/strerror.m4: New file.
6073 * gnulib/import/m4/unistd-safer.m4: New file.
6074 * gnulib/import/mempcpy.c: New file.
6075 * gnulib/import/memrchr.c: New file.
6076 * gnulib/import/msvc-inval.c: New file.
6077 * gnulib/import/msvc-inval.h: New file.
6078 * gnulib/import/msvc-nothrow.c: New file.
6079 * gnulib/import/msvc-nothrow.h: New file.
6080 * gnulib/import/open.c: New file.
6081 * gnulib/import/openat-die.c: New file.
6082 * gnulib/import/openat-priv.h: New file.
6083 * gnulib/import/openat-proc.c: New file.
6084 * gnulib/import/openat.c: New file.
6085 * gnulib/import/openat.h: New file.
6086 * gnulib/import/opendir.c: New file.
6087 * gnulib/import/pipe-safer.c: New file.
6088 * gnulib/import/readdir.c: New file.
6089 * gnulib/import/realloc.c: New file.
6090 * gnulib/import/rewinddir.c: New file.
6091 * gnulib/import/save-cwd.c: New file.
6092 * gnulib/import/save-cwd.h: New file.
6093 * gnulib/import/strdup.c: New file.
6094 * gnulib/import/strerror-override.c: New file.
6095 * gnulib/import/strerror-override.h: New file.
6096 * gnulib/import/strerror.c: New file.
6097 * gnulib/import/unistd--.h: New file.
6098 * gnulib/import/unistd-safer.h: New file.
6099 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6100 "getcwd" and "glob".
6101 * ser-tcp.c: Undefine "close" before redefining it.
6102
432ae719
SM
61032017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6104
6105 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6106 get rid of res_val.
6107
4fa7574e
RO
61082017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6109
6110 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6111 <sol2,sparc>: Likewise.
6112 <sol2-64,i386>: Likewise.
6113
6114 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6115 -Wdeprecated-declarations on *-*-solaris*.
6116 * configure: Regenerate.
6117
6118 * procfs.c: Include "nat/inferior.h".
6119 (procfs_info_proc): Fix typo.
6120
f6327dcb
KB
61212017-09-21 Kevin Buettner <kevinb@redhat.com>
6122
6123 * remote.c (vector): Include.
6124 (struct private_thread_info): Add field, thread_handle.
6125 (free_private_thread_info): Deallocate storage associated with
6126 thread handle.
6127 (get_private_info_thread): Initialize `thread_handle' field.
6128 (struct thread_item): Add field, thread_handle.
6129 (clear_threads_listing_context): Deallocate storage associated
6130 with thread handle.
6131 (start_thread): Add support for "handle" attribute.
6132 (thread_attributes): Add "handle".
6133 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6134 field.
6135 (remote_update_thread_list): Update thread_handle.
6136 (remote_thread_handle_to_thread_info): New function.
6137 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6138
fbbe5337
KB
61392017-09-21 Kevin Buettner <kevinb@redhat.com>
6140
6141 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6142 function.
6143 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6144 * python/python-internal.h (thread_object_type): Declare.
6145
e04ee09e
KB
61462017-09-21 Kevin Buettner <kevinb@redhat.com>
6147
6148 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6149 (target_thread_handle_to_thread_info): Declare.
6150 * target.c (target_thread_handle_to_thread_info): New function.
6151 * target-delegates.c: Regenerate.
6152 * gdbthread.h (find_thread_by_handle): Declare.
6153 * thread.c (find_thread_by_handle): New function.
6154 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6155 function.
6156 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6157
1e5b66ed
SM
61582017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6159
6160 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
6161
ebe48ba0
SM
61622017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6163
6164 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
6165
0a0bf5dc
YQ
61662017-09-21 Yao Qi <yao.qi@linaro.org>
6167
6168 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
6169 to gdb_target_obs.
6170
d1b0a7bf
TT
61712017-09-20 Tom Tromey <tom@tromey.com>
6172
6173 * breakpoint.c (struct counted_command_line): Remove.
6174 (breakpoint_commands): Update.
6175 (alloc_counted_command_line, incref_counted_command_line)
6176 (decref_counted_command_line, do_cleanup_counted_command_line)
6177 (make_cleanup_decref_counted_command_line): Remove.
6178 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
6179 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
6180 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
6181 (save_breakpoints): Update.
6182 * breakpoint.h (counted_command_line): Now a typedef to
6183 shared_ptr.
6184 (struct breakpoint) <commands>: Now a counted_command_line.
6185 (struct bpstats) <command>: Likewise.
6186
48649e1b
TT
61872017-09-20 Tom Tromey <tom@tromey.com>
6188
6189 * breakpoint.c (struct commands_info, do_map_commands_command):
6190 Remove.
6191 (commands_command_1): Update.
6192 (iterate_over_related_breakpoints): Take a function_view.
6193 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
6194 (delete_command): Update.
6195 (map_breakpoint_numbers): Take a function_view.
6196 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
6197 (disable_command): Update.
6198 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
6199 (enable_command): Update.
6200 (struct disp_data, do_enable_breakpoint_disp)
6201 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
6202 (do_map_enable_delete_breakpoint): Remove.
6203 (enable_once_command, enable_count_command, enable_delete_command)
6204 (delete_trace_variable_command): Update.
6205
04afa70c
TT
62062017-09-20 Tom Tromey <tom@tromey.com>
6207
6208 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
6209 (bpstat_clear): Use delete.
6210 (bpstats): New constructors.
6211 (bpstat_copy, bpstat_stop_status): Use new.
6212 (dprintf_after_condition_true): Update.
6213 * breakpoint.h (bpstats::bpstats): Add constructors.
6214 (bpstats::~bpstats): Add destructor.
6215
c83833f4
PA
62162017-09-20 Pedro Alves <palves@redhat.com>
6217
6218 * eval.c (make_params): Delete, refactored as ...
6219 (class fake_method): ... this new type's ctor.
6220 (fake_method::~fake_method): New.
6221 (evaluate_subexp_standard): Use 'fake_method'.
6222
223ffa71
TT
62232017-09-20 Tom Tromey <tom@tromey.com>
6224
6225 * windows-nat.c (get_windows_debug_event, windows_wait)
6226 (do_initial_windows_stuff, windows_attach): Update.
6227 * utils.c (vwarning, internal_vproblem): Update.
6228 (ui_unregister_input_event_handler_cleanup)
6229 (prepare_to_handle_input): Remove.
6230 (class scoped_input_handler): New.
6231 (defaulted_query, prompt_for_continue): Update.
6232 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6233 Update.
6234 * top.c (undo_terminal_modifications_before_exit): Update.
6235 * target/target.h (target_terminal_init, target_terminal_inferior)
6236 (target_terminal_ours): Don't declare.
6237 (class target_terminal): New.
6238 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
6239 (target_terminal_ours_for_output)
6240 (make_cleanup_restore_target_terminal): Don't declare.
6241 (target_terminal_info): Remove.
6242 * target.c (enum terminal_state, terminal_state): Remove.
6243 (target_terminal::terminal_state): Define.
6244 (target_terminal::init): Rename from target_terminal_init.
6245 (target_terminal::inferior): Rename from
6246 target_terminal_inferior.
6247 (target_terminal::ours): Rename from target_terminal_ours.
6248 (target_terminal::ours_for_output): Rename from
6249 target_terminal_ours_for_output.
6250 (target_terminal::info): New method.
6251 (cleanup_restore_target_terminal)
6252 (make_cleanup_restore_target_terminal): Remove.
6253 * solib.c (handle_solib_event): Update.
6254 * remote.c (remote_serial_quit_handler): Update.
6255 (remote_terminal_inferior, remote_wait_as): Update.
6256 * record-full.c (record_full_wait_1): Update.
6257 * nto-procfs.c (procfs_create_inferior): Update.
6258 * nat/fork-inferior.c (startup_inferior): Update.
6259 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6260 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6261 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6262 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6263 (mi_breakpoint_created, mi_breakpoint_deleted)
6264 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
6265 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6266 (mi_user_selected_context_changed, report_initial_inferior):
6267 Update.
6268 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
6269 (linux_nat_terminal_inferior): Update.
6270 * infrun.c (follow_fork_inferior)
6271 (handle_vfork_child_exec_or_exit, do_target_resume)
6272 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
6273 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
6274 Update.
6275 * inflow.c (child_terminal_init, info_terminal_command): Update.
6276 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
6277 (attach_command): Update.
6278 * infcall.c (call_thread_fsm_should_stop): Update.
6279 * gnu-nat.c (gnu_attach): Update.
6280 * extension.c (struct active_ext_lang_state)
6281 (restore_active_ext_lang): Update.
6282 * exceptions.c (print_flush): Update.
6283 * event-top.c (async_enable_stdin, default_quit_handler): Update.
6284 (struct quit_handler_cleanup_data, restore_quit_handler)
6285 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
6286 Remove.
6287 * cp-support.c (gdb_demangle): Update.
6288 * breakpoint.c (update_inserted_breakpoint_locations)
6289 (insert_breakpoint_locations, handle_jit_event)
6290 (disable_breakpoints_in_unloaded_shlib): Update.
6291 * annotate.c (annotate_breakpoints_invalid)
6292 (annotate_frames_invalid): Update.
6293
013af3fc
TT
62942017-09-20 Tom Tromey <tom@tromey.com>
6295
6296 * main.c (catch_command_errors): Rename from
6297 catch_command_errors_const.
6298 (captured_main_1): Update.
6299
06871ae8
PA
63002017-09-20 Pedro Alves <palves@redhat.com>
6301
6302 * cli/cli-cmds.c (list_command): Use print_sal_location.
6303 (print_sal_location): New function.
6304 (ambiguous_line_spec): Use print_sal_location.
6305 * linespec.c (symbol_to_sal): Record the symbol in the sal.
6306 * symtab.c (find_function_start_sal): Likewise.
6307 * symtab.h (symtab_and_line::symbol): New field.
6308
e5f25bc5
PA
63092017-09-20 Pedro Alves <palves@redhat.com>
6310
6311 * linespec.c (minsym_found): Handle non-text minsyms.
6312 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
6313
1b7fa39e
WT
63142017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6315
6316 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
6317 backslash.
6318
37dd0825
WT
63192017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6320
6321 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
6322 vmovups instead vmovaps.
6323 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
6324
4e5a4f58
JB
63252017-09-19 John Baldwin <jhb@FreeBSD.org>
6326
6327 * NEWS (Changes since GDB 8.0): Add starti.
6328 * infcmd.c (enum run_break): New.
6329 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
6330 case.
6331 (run_command): Use enum run_how.
6332 (start_command): Likewise.
6333 (starti_command): New function.
6334 (RUN_ARGS_HELP): New macro.
6335 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
6336 commands. Add starti command.
6337
aa70c9f1
YQ
63382017-09-19 Yao Qi <yao.qi@linaro.org>
6339
6340 * Makefile.in (monitor.o): Remove the rule.
6341
d6541620
YQ
63422017-09-19 Yao Qi <yao.qi@linaro.org>
6343
6344 * annotate.h (struct annotate_arg_emitter): Use
6345 DISABLE_COPY_AND_ASSIGN.
6346 * common/refcounted-object.h (refcounted_object): Likewise.
6347 * completer.h (struct completion_result): Likewise.
6348 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
6349 * filename-seen-cache.h (filename_seen_cache): Likewise.
6350 * gdbcore.h (thread_section_name): Likewise.
6351 * gdb_regex.h (compiled_regex): Likewise.
6352 * gdbthread.h (scoped_restore_current_thread): Likewise.
6353 * inferior.h (scoped_restore_current_inferior): Likewise.
6354 * jit.c (jit_reader): Likewise.
6355 * linespec.h (struct linespec_result): Likewise.
6356 * mi/mi-parse.h (struct mi_parse): Likewise.
6357 * nat/fork-inferior.c (execv_argv): Likewise.
6358 * progspace.h (scoped_restore_current_program_space): Likewise.
6359 * python/python-internal.h (class gdbpy_enter): Likewise.
6360 * regcache.h (regcache): Likewise.
6361 * target-descriptions.c (struct tdesc_reg): Likewise.
6362 (struct tdesc_type): Likewise.
6363 (struct tdesc_feature): Likewise.
6364 * ui-out.h (ui_out_emit_type): Likewise.
6365
0615127c
SM
63662017-09-18 Simon Marchi <simon.marchi@ericsson.com>
6367
6368 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
6369 label abort_expression.
6370
5e187554
SM
63712017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6372
6373 * common/buffer.c (buffer_xml_printf): Adjust.
6374 * common/xml-utils.c (xml_escape_text): Change return type to
6375 std::string, update code accordingly.
6376 * common/xml-utils.h (xml_escape_text): Change return type to
6377 std::string.
6378 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
6379 * windows-tdep.c (windows_xfer_shared_library): Adjust.
6380 * unittests/xml-utils-selftests.c (test_xml_escape_text):
6381 Adjust.
6382
c3d7b541
SM
63832017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6384
6385 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
6386 (SUBDIR_UNITTESTS_OBS): Add new object file.
6387 * unittests/xml-utils-selftests.c: New file.
6388
1526853e
SM
63892017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6390
6391 * common/selftest.h (selftest): New struct/interface.
6392 (register_test): Add name parameter, add new overload.
6393 (run_tests): Add filter parameter.
6394 (for_each_selftest_ftype): New typedef.
6395 (for_each_selftest): New declaration.
6396 * common/selftest.c (tests): Change type to
6397 map<string, unique_ptr<selftest>>.
6398 (simple_selftest): New struct.
6399 (register_test): New function.
6400 (register_test): Add name parameter and use it.
6401 (run_tests): Add filter parameter and use it. Add prints.
6402 Adjust to vector -> map change.
6403 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
6404 registering selftests.
6405 * arm-tdep.c (_initialize_arm_tdep): Likewise.
6406 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
6407 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
6408 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
6409 * findvar.c (_initialize_findvar): Likewise.
6410 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
6411 * maint.c (maintenance_selftest): Update call to run_tests.
6412 (maintenance_info_selftests): New function.
6413 (_initialize_maint_cmds): Register "maintenance info selftests"
6414 command. Update "maintenance selftest" doc.
6415 * regcache.c (_initialize_regcache): Add names when registering
6416 selftests.
6417 * rust-exp.y (_initialize_rust_exp): Likewise.
6418 * selftest-arch.c (gdbarch_selftest): New struct.
6419 (gdbarch_tests): Remove.
6420 (register_test_foreach_arch): Add name parameter. Call
6421 register_test.
6422 (tests_with_arch): Remove, move most content to
6423 gdbarch_selftest::operator().
6424 (_initialize_selftests_foreach_arch): Remove.
6425 * selftest-arch.h (register_test_foreach_arch): Add name
6426 parameter.
6427 (run_tests_with_arch): New declaration.
6428 * utils-selftests.c (_initialize_utils_selftests): Add names
6429 when registering selftests.
6430 * utils.c (_initialize_utils): Likewise.
6431 * unittests/array-view-selftests.c
6432 (_initialize_array_view_selftests): Likewise.
6433 * unittests/environ-selftests.c (_initialize_environ_selftests):
6434 Likewise.
6435 * unittests/function-view-selftests.c
6436 (_initialize_function_view_selftests): Likewise.
6437 * unittests/offset-type-selftests.c
6438 (_initialize_offset_type_selftests): Likewise.
6439 * unittests/optional-selftests.c
6440 (_initialize_optional_selftests): Likewise.
6441 * unittests/scoped_restore-selftests.c
6442 (_initialize_scoped_restore_selftests): Likewise.
6443 * NEWS: Document "maintenance selftest" and "maint info
6444 selftests".
6445
5846367a
SM
64462017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6447
6448 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
6449 scoped_restore.
6450
bd77e8ff
SM
64512017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6452
6453 * mi/mi-main.c (mi_load_progress): Make uiout variable
6454 a unique_ptr.
6455
26a67918
PA
64562017-09-15 Pedro Alves <palves@redhat.com>
6457
6458 * compile/compile-c-types.c (convert_enum, convert_int)
6459 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
6460
3f8a7804
SM
64612017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6462
6463 * dwarf2read.c (copy_string): Remove.
6464 (parse_macro_definition): Replace copy_string with savestring.
6465
8d200706
YQ
64662017-09-15 Yao Qi <yao.qi@linaro.org>
6467
6468 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
6469 gdb_target_obs.
6470 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
6471 Likewise.
6472 (i[34567]86-*-linux*): Likewise.
6473
d185219d
SM
64742017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6475
6476 * dwarf2expr.h (dwarf_stack_value): Add constructor.
6477 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
6478 <stack>: Change type to std::vector.
6479 <stack_len, stack_allocated>: Remove.
6480 <grow_stack>: Remove.
6481 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6482 (dwarf_expr_context::~dwarf_expr_context): Remove.
6483 (dwarf_expr_context::grow_stack): Remove.
6484 (dwarf_expr_context::push): Adjust.
6485 (dwarf_expr_context::pop): Adjust.
6486 (dwarf_expr_context::fetch): Adjust.
6487 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
6488 (dwarf_expr_context::stack_empty_p): Adjust.
6489 (dwarf_expr_context::execute_stack_op): Adjust.
6490
eccd80d6
SM
64912017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6492
6493 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
6494 return type to bool.
6495 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
6496
69009882
SM
64972017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6498
6499 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
6500 Change type to bool.
6501 (dwarf_stack_value) <in_stack_memory>: Likewise.
6502 (dwarf_expr_context) <push_address>: Change parameter type to
6503 bool.
6504 <fetch_in_stack_memory>: Change return type to bool.
6505 <push>: Change parameter type to bool.
6506 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
6507 to bool.
6508 (dwarf_expr_context::push_address): Likewise.
6509 (dwarf_expr_context::fetch_in_stack_memory): Change return type
6510 to bool.
6511 (dwarf_expr_context::execute_stack_op): Adjust.
6512 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
6513
1e467161
SM
65142017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6515
6516 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
6517 (struct dwarf_expr_context) <n_pieces>: Remove.
6518 <pieces>: Change type to std::vector.
6519 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6520 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
6521 pieces.
6522 (dwarf_expr_context::add_piece): Adjust.
6523 * dwarf2loc.c (struct piece_closure): Initialize fields.
6524 <n_pieces>: Remove.
6525 <pieces>: Change type to std::vector.
6526 (allocate_piece_closure): Adjust, change parameter to
6527 std::vector rvalue and std::move it to piece_closure.
6528 (rw_pieced_value): Adjust.
6529 (check_pieced_synthetic_pointer): Adjust.
6530 (indirect_synthetic_pointer): Adjust.
6531 (coerce_pieced_ref): Adjust.
6532 (free_pieced_value_closure): Adjust. Use delete to free
6533 piece_closure.
6534 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
6535 to allocate_piece_closure.
6536 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
6537
0782db84
SM
65382017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6539
6540 * probe.h (probe_ops_cp): Remove typedef.
6541 (DEF_VEC_P (probe_ops_cp)): Remove.
6542 (all_probe_ops): Change type to std::vector.
6543 * probe.c (info_probes_for_ops): Adjust to vector change.
6544 (probe_linespec_to_ops): Likewise.
6545 (all_probe_ops): Change type to std::vector.
6546 (_initialize_probe): Adjust to vector change.
6547 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
6548 * elfread.c (elf_get_probes): Likewise.
6549 * stap-probe.c (_initialize_stap_probe): Likewise.
6550
1eac6bea
SM
65512017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6552
6553 * probe.h (struct bound_probe): Define constructors.
6554 * probe.c (bound_probe_s): Remove typedef.
6555 (DEF_VEC_O (bound_probe_s)): Remove VEC.
6556 (collect_probes): Change return type to std::vector, remove
6557 cleanup.
6558 (compare_probes): Return bool, change parameter type. Change
6559 semantic to "less than".
6560 (gen_ui_out_table_header_info): Change parameter to std::vector
6561 and update.
6562 (exists_probe_with_pops): Likewise.
6563 (info_probes_for_ops): Update to std::vector change.
6564 (enable_probes_command): Likewise.
6565 (disable_probes_command): Likewise.
6566
aaa63a31
SM
65672017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6568
6569 * probe.h (struct probe_ops) <get_probes>: Change parameter from
6570 vec to std::vector.
6571 * probe.c (parse_probes_in_pspace): Update.
6572 (find_probes_in_objfile): Update.
6573 (find_probe_by_pc): Update.
6574 (collect_probes): Update.
6575 (probe_any_get_probes): Update.
6576 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
6577 return type to reference to std::vector.
6578 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
6579 std::vector and update.
6580 (dtrace_process_dof): Likewise.
6581 (dtrace_get_probes): Likewise.
6582 * elfread.c (elf_get_probes): Change return type to std::vector,
6583 store an std::vector in bfd_data.
6584 (probe_key_free): Update to std::vector.
6585 * stap-probe.c (handle_stap_probe): Change parameter to
6586 std::vector and update.
6587 (stap_get_probes): Likewise.
6588 * symfile-debug.c (debug_sym_get_probes): Change return type to
6589 std::vector and update.
6590
cb85b21b
TT
65912017-09-11 Tom Tromey <tom@tromey.com>
6592
6593 * breakpoint.c (program_breakpoint_here_p): Update.
6594 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
6595 from make_show_memory_breakpoints_cleanup. Return a
6596 scoped_restore_tmpl<int>.
6597 (restore_show_memory_breakpoints): Remove.
6598 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
6599 * mem-break.c (memory_validate_breakpoint): Update.
6600 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
6601 (ia64_memory_remove_breakpoint): Update.
6602 (ia64_breakpoint_from_pc): Update.
6603 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
6604 from make_show_memory_breakpoints_cleanup.
6605
8fbc99ef
TT
66062017-09-11 Tom Tromey <tom@tromey.com>
6607
6608 * d-namespace.c (d_lookup_symbol): Use std::string.
6609 (find_symbol_in_baseclass): Likewise.
6610
50feb4bd
TT
66112017-09-11 Tom Tromey <tom@tromey.com>
6612
6613 * ctf.c (ctf_start): Use std::string.
6614
c6dc63a1
TT
66152017-09-11 Tom Tromey <tom@tromey.com>
6616
6617 * ada-lang.c (is_known_support_routine): Update.
6618 (ada_unhandled_exception_name_addr_from_raise): Update.
6619 * guile/scm-frame.c (gdbscm_frame_name): Update.
6620 * python/py-frame.c (frapy_name): Update.
6621 (frapy_function): Update.
6622 * stack.h (find_frame_funname): Update.
6623 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
6624 (print_frame): Update.
6625
d6b9b80f
TT
66262017-09-11 Tom Tromey <tom@tromey.com>
6627
6628 * findcmd.c (put_bits): Take a gdb::byte_vector.
6629 (parse_find_args): Return gdb::byte_vector. "args" now const.
6630 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
6631 cleanups.
6632 (find_command): Update.
6633
a9921622
TT
66342017-09-11 Tom Tromey <tom@tromey.com>
6635
6636 * cli/cli-script.c (class scoped_restore_hook_in): New.
6637 (clear_hook_in_cleanup): Remove.
6638 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
6639 scoped_restore_hook_in.
6640
be0d7abb
TT
66412017-09-11 Tom Tromey <tom@tromey.com>
6642
6643 * cli/cli-script.c (restore_interp): Remove.
6644 (read_command_lines): Use scoped_restore_interp.
6645 * interps.c (scoped_restore_interp::set_temp): Rename from
6646 interp_set_temp.
6647 * interps.h (class scoped_restore_interp): New.
6648 (interp_set_temp): Remove.
6649
00f675ff
TT
66502017-09-11 Tom Tromey <tom@tromey.com>
6651
6652 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6653 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
6654 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
6655 scoped_restore.
6656 (mi_cmd_break_insert_1): Update.
6657 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
6658 scoped_restore.
6659
cb791d59
TT
66602017-09-11 Tom Tromey <tom@tromey.com>
6661
6662 * demangle.c (demangle_command): Update.
6663 * breakpoint.c (disable_command): Update.
6664 (enable_command): Update.
6665 (find_location_by_number): Make "number" const. Use
6666 get_number_trailer.
6667 * cli/cli-utils.c (extract_arg): Return std::string.
6668 * probe.c (parse_probe_linespec): Update. Change types.
6669 (collect_probes): Take string arguments.
6670 (parse_probe_linespec): Likewise.
6671 (info_probes_for_ops): Update.
6672 (enable_probes_command): Update.
6673 (disable_probes_command): Update.
6674 * break-catch-sig.c (catch_signal_split_args): Update.
6675 * mi/mi-parse.c (mi_parse): Update.
6676
2039bd9f
TT
66772017-09-11 Tom Tromey <tom@tromey.com>
6678
6679 * language.h (language_enum): Make argument const.
6680 * language.c (language_enum): Make argument const.
6681
f1735a53
TT
66822017-09-11 Tom Tromey <tom@tromey.com>
6683
6684 * common/common-utils.h (skip_to_space): Remove macro, redeclare
6685 as function.
6686 (skip_to_space): Rename from skip_to_space_const.
6687 * common/common-utils.c (skip_to_space): New function.
6688 (skip_to_space): Rename from skip_to_space_const.
6689 * cli/cli-utils.h (get_number): Rename from get_number_const.
6690 (extract_arg): Rename from extract_arg_const.
6691 * cli/cli-utils.c (get_number): Rename from get_number_const.
6692 (extract_arg): Rename from extract_arg_const.
6693 (number_or_range_parser::get_number): Use ::get_number.
6694 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
6695 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
6696 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
6697 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
6698 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
6699 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
6700 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
6701 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
6702
7d221d74
TT
67032017-09-11 Tom Tromey <tom@tromey.com>
6704
6705 * python/python.c (do_start_initialization): Use
6706 py-event-types.def to initialize types.
6707 Define all object type structures.
6708 * python/python-internal.h: Don't declare event initialization
6709 functions.
6710 * python/py-threadevent.c (thread_event_object_type): Don't
6711 define.
6712 * python/py-stopevent.c (stop_event_object_type): Don't define.
6713 * python/py-signalevent.c (signal_event_object_type): Don't
6714 declare or define.
6715 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6716 (clear_objfiles_event_object_type): Don't declare or define.
6717 * python/py-infevents.c (inferior_call_pre_event_object_type)
6718 (inferior_call_post_event_object_type)
6719 (register_changed_event_object_type)
6720 (memory_changed_event_object_type): Don't declare or define.
6721 * python/py-inferior.c (new_thread_event_object_type)
6722 (new_inferior_event_object_type)
6723 (inferior_deleted_event_object_type): Don't declare or define.
6724 * python/py-exitedevent.c (exited_event_object_type): Don't
6725 declare or define.
6726 * python/py-evts.c (gdbpy_initialize_py_events): Use
6727 py-all-events.def.
6728 * python/py-events.h (thread_event_object_type): Don't declare.
6729 (events_object): Use py-all-events.def.
6730 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
6731 py-event-types.def.
6732 * python/py-event-types.def: New file.
6733 * python/py-continueevent.c (create_continue_event_object): Don't
6734 declare or define.
6735 * python/py-bpevent.c (breakpoint_event_object_type): Don't
6736 declare or define.
6737 * python/py-all-events.def: New file.
6738
35c61a1d
TT
67392017-09-11 Tom Tromey <tom@tromey.com>
6740
6741 * python/py-threadevent.c (create_thread_event_object): Return
6742 gdbpy_ref.
6743 * python/py-stopevent.h (create_stop_event_object)
6744 (create_breakpoint_event_object, create_signal_event_object):
6745 Update.
6746 * python/py-stopevent.c (create_stop_event_object): Return
6747 gdbpy_ref.
6748 (emit_stop_event): Update.
6749 * python/py-signalevent.c (create_signal_event_object): Return
6750 gdbpy_ref.
6751 * python/py-infevents.c (create_inferior_call_event_object):
6752 Update.
6753 * python/py-event.h (create_event_object)
6754 (create_thread_event_object): Update.
6755 * python/py-event.c (create_event_object): Return gdbpy_ref.
6756 * python/py-continueevent.c: Return gdbpy_ref.
6757 * python/py-bpevent.c (create_breakpoint_event_object): Return
6758 gdbpy_ref.
6759
7c96f8c1
TT
67602017-09-11 Tom Tromey <tom@tromey.com>
6761
6762 PR python/15622:
6763 * NEWS: Add entry.
6764 * python/python.c (do_start_initialization): Initialize new event
6765 types.
6766 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
6767 (gdbpy_initialize_inferior_deleted_event)
6768 (gdbpy_initialize_new_thread_event): Declare.
6769 * python/py-threadevent.c (create_thread_event_object): Add option
6770 "thread" parameter.
6771 * python/py-inferior.c (new_thread_event_object_type)
6772 (new_inferior_event_object_type)
6773 (inferior_deleted_event_object_type): Declare.
6774 (python_new_inferior, python_inferior_deleted): New functions.
6775 (add_thread_object): Emit new_thread event.
6776 (gdbpy_initialize_inferior): Attach new functions to corresponding
6777 observers.
6778 (new_thread, new_inferior, inferior_deleted): Define new event
6779 types.
6780 * python/py-evts.c (gdbpy_initialize_py_events): Add new
6781 registries.
6782 * python/py-events.h (events_object) <new_inferior,
6783 inferior_deleted, new_thread>: New fields.
6784 * python/py-event.h (create_thread_event_breakpoint): Add optional
6785 "thread" parameter.
6786
72542b8e
AB
67872017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
6788
6789 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
6790 check current_ui instead.
6791 (internal_vproblem): Likewise.
6792
0d64823e
SM
67932017-09-09 Simon Marchi <simon.marchi@ericsson.com>
6794
6795 * thread.c (print_thread_info_1): Remove unnecessary calls to
6796 uiout->is_mi_like_p.
6797
eb1e02fd
TT
67982017-09-09 Tom Tromey <tom@tromey.com>
6799
6800 * namespace.h (add_using_directive): Update.
6801 * namespace.c (add_using_directive): Change type of excludes to
6802 std::vector.
6803 * dwarf2read.c (read_import_statement): Use std::vector.
6804 (read_namespace): Update.
6805 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6806
0fc21fd8
TT
68072017-09-09 Tom Tromey <tom@tromey.com>
6808
6809 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
6810
49663d05
TT
68112017-09-09 Tom Tromey <tom@tromey.com>
6812
6813 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
6814
0b868b60
TT
68152017-09-09 Tom Tromey <tom@tromey.com>
6816
6817 * stack.c (func_command): Use gdb::def_vector.
6818
c0470d48
TT
68192017-09-09 Tom Tromey <tom@tromey.com>
6820
6821 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
6822 ui_out_emit_list, ui_out_emit_tuple.
6823 (mi_cmd_var_update): Likewise.
6824
ca5909c7
TT
68252017-09-09 Tom Tromey <tom@tromey.com>
6826
6827 * mi/mi-interp.c (mi_user_selected_context_changed): Use
6828 ui_out_redirect_pop.
6829 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
6830 ui_out_redirect_pop.
6831 * utils.c (do_ui_out_redirect_pop)
6832 (make_cleanup_ui_out_redirect_pop): Remove.
6833 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
6834 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
6835 * ui-out.h (ui_out_redirect_pop): New class.
6836
e6a2252a
TT
68372017-09-09 Tom Tromey <tom@tromey.com>
6838
6839 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
6840 (list_available_thread_groups, mi_cmd_list_thread_groups)
6841 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
6842 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
6843 Likewise.
6844
393702cd
TT
68452017-09-09 Tom Tromey <tom@tromey.com>
6846
6847 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6848 ui_out_emit_tuple.
6849
76f9c9cf
TT
68502017-09-09 Tom Tromey <tom@tromey.com>
6851
6852 * target.c (flash_erase_command): Use ui_out_emit_tuple.
6853 * stack.c (print_frame): Use ui_out_emit_tuple.
6854 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
6855 (info_spu_mailbox_command, info_spu_dma_command)
6856 (info_spu_proxydma_command): Likewise.
6857 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
6858 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
6859 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6860 ui_out_emit_tuple.
6861 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
6862
dc9fe180
TT
68632017-09-09 Tom Tromey <tom@tromey.com>
6864
6865 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
6866 (class ui_out_emit_table): Update comment.
6867 * ui-out.c (do_cleanup_table_end)
6868 (make_cleanup_ui_out_table_begin_end): Remove.
6869 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
6870 (info_spu_dma_cmdlist): Likewise.
6871 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
6872 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
6873 ui_out_emit_table.
6874
f8cc3da6
TT
68752017-09-09 Tom Tromey <tom@tromey.com>
6876
6877 * thread.c (print_thread_info_1): Use ui_out_emit_table,
6878 ui_out_emit_list, gdb::optional.
6879
481695ed
JB
68802017-09-09 John Baldwin <jhb@FreeBSD.org>
6881
6882 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
6883 prototype.
6884 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
6885 prototype.
6886 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
6887 prototype.
6888 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
6889 * ada-exp.y: Remove _initialize_ada_exp prototype.
6890 * ada-lang.c: Remove _initialize_ada_language prototype.
6891 * ada-tasks.c: Remove _initialize_tasks prototype.
6892 * addrmap.c: Remove _initialize_addrmap prototype.
6893 * agent.c: Remove _initialize_agent prototype.
6894 * aix-thread.c: Remove _initialize_aix_thread prototype.
6895 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
6896 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
6897 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
6898 prototype.
6899 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
6900 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
6901 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
6902 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
6903 prototype.
6904 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
6905 prototype.
6906 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
6907 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
6908 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
6909 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
6910 prototype.
6911 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
6912 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
6913 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
6914 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
6915 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
6916 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
6917 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
6918 prototype.
6919 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
6920 prototype.
6921 * annotate.c: Remove _initialize_annotate prototype.
6922 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
6923 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
6924 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
6925 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
6926 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
6927 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
6928 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
6929 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
6930 prototype.
6931 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
6932 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
6933 * auto-load.c: Remove _initialize_auto_load prototype.
6934 * auxv.c: Remove _initialize_auxv prototype.
6935 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
6936 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
6937 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
6938 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
6939 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
6940 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
6941 prototype.
6942 * break-catch-throw.c: Remove _initialize_break_catch_throw
6943 prototype.
6944 * breakpoint.c: Remove _initialize_breakpoint prototype.
6945 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
6946 * btrace.c: Remove _initialize_btrace prototype.
6947 * charset.c: Remove _initialize_charset prototype.
6948 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
6949 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
6950 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
6951 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
6952 * cli/cli-script.c: Remove _initialize_cli_script prototype.
6953 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
6954 * coffread.c: Remove _initialize_coffread prototype.
6955 * compile/compile.c: Remove _initialize_compile prototype.
6956 * complaints.c: Remove _initialize_complaints prototype.
6957 * completer.c: Remove _initialize_completer prototype.
6958 * copying.awk: Remove _initialize_copying prototype.
6959 * copying.c: Regenerate.
6960 * core-regset.c: Remove _initialize_core_regset prototype.
6961 * corefile.c: Remove _initialize_core prototype.
6962 * corelow.c: Remove _initialize_corelow prototype.
6963 * cp-abi.c: Remove _initialize_cp_abi prototype.
6964 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
6965 * cp-support.c: Remove _initialize_cp_support prototype.
6966 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
6967 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
6968 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
6969 * ctf.c: Remove _initialize_ctf prototype.
6970 * d-lang.c: Remove _initialize_d_language prototype.
6971 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
6972 prototype.
6973 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
6974 * dbxread.c: Remove _initialize_dbxread prototype.
6975 * dcache.c: Remove _initialize_dcache prototype.
6976 * demangle.c: Remove _initialize_demangler prototype.
6977 * disasm-selftests.c: Remove _initialize_disasm_selftests
6978 prototype.
6979 * disasm.c: Remove _initialize_disasm prototype.
6980 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
6981 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
6982 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
6983 prototype.
6984 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
6985 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
6986 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
6987 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
6988 * elfread.c: Remove _initialize_elfread prototype.
6989 * exec.c: Remove _initialize_exec prototype.
6990 * extension.c: Remove _initialize_extension prototype.
6991 * f-lang.c: Remove _initialize_f_language prototype.
6992 * f-valprint.c: Remove _initialize_f_valprint prototype.
6993 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
6994 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
6995 * filesystem.c: Remove _initialize_filesystem prototype.
6996 * findcmd.c: Remove _initialize_mem_search prototype.
6997 * fork-child.c: Remove _initialize_fork_child prototype.
6998 * frame-base.c: Remove _initialize_frame_base prototype.
6999 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7000 * frame.c: Remove _initialize_frame prototype.
7001 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7002 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7003 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7004 * gcore.c: Remove _initialize_gcore prototype.
7005 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7006 * gdbarch.c: Regenerate.
7007 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7008 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7009 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7010 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7011 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7012 * go-lang.c: Remove _initialize_go_language prototype.
7013 * go32-nat.c: Remove _initialize_go32_nat prototype.
7014 * guile/guile.c: Remove _initialize_guile prototype.
7015 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7016 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7017 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7018 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7019 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7020 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7021 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7022 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7023 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7024 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7025 prototype.
7026 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7027 prototype.
7028 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7029 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7030 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7031 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7032 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7033 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7034 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7035 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7036 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7037 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7038 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7039 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7040 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7041 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7042 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7043 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7044 prototype.
7045 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7046 prototype.
7047 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7048 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7049 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7050 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7051 * infcall.c: Remove _initialize_infcall prototype.
7052 * infcmd.c: Remove _initialize_infcmd prototype.
7053 * inferior.c: Remove _initialize_inferiors prototype.
7054 * inflow.c: Remove _initialize_inflow prototype.
7055 * infrun.c: Remove _initialize_infrun prototype.
7056 * interps.c: Remove _initialize_interpreter prototype.
7057 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7058 * jit.c: Remove _initialize_jit prototype.
7059 * language.c: Remove _initialize_language prototype.
7060 * linux-fork.c: Remove _initialize_linux_fork prototype.
7061 * linux-nat.c: Remove _initialize_linux_nat prototype.
7062 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7063 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7064 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7065 * m2-lang.c: Remove _initialize_m2_language prototype.
7066 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7067 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7068 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7069 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7070 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7071 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7072 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7073 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7074 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7075 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7076 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7077 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7078 * machoread.c: Remove _initialize_machoread prototype.
7079 * macrocmd.c: Remove _initialize_macrocmd prototype.
7080 * macroscope.c: Remove _initialize_macroscope prototype.
7081 * maint.c: Remove _initialize_maint_cmds prototype.
7082 * mdebugread.c: Remove _initialize_mdebugread prototype.
7083 * memattr.c: Remove _initialize_mem prototype.
7084 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7085 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7086 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7087 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7088 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7089 * microblaze-linux-tdep.c: Remove
7090 _initialize_microblaze_linux_tdep prototype.
7091 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7092 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7093 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7094 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7095 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7096 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7097 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7098 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7099 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7100 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7101 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7102 prototype.
7103 * mipsread.c: Remove _initialize_mipsread prototype.
7104 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7105 prototype.
7106 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7107 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7108 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7109 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7110 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7111 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7112 prototype.
7113 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7114 * nto-procfs.c: Remove _initialize_procfs prototype.
7115 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7116 * objc-lang.c: Remove _initialize_objc_language prototype.
7117 * objfiles.c: Remove _initialize_objfiles prototype.
7118 * observer.c: Remove observer_test_first_notification_function,
7119 observer_test_second_notification_function,
7120 observer_test_third_notification_function, and
7121 _initialize_observer prototypes.
7122 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7123 * osabi.c: Remove _initialize_gdb_osabi prototype.
7124 * osdata.c: Remove _initialize_osdata prototype.
7125 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7126 * parse.c: Remove _initialize_parse prototype.
7127 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7128 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7129 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7130 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7131 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7132 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7133 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7134 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7135 * printcmd.c: Remove _initialize_printcmd prototype.
7136 * probe.c: Remove _initialize_probe prototype.
7137 * proc-api.c: Remove _initialize_proc_api prototype.
7138 * proc-events.c: Remove _initialize_proc_events prototype.
7139 * proc-service.c: Remove _initialize_proc_service prototype.
7140 * procfs.c: Remove _initialize_procfs prototype.
7141 * psymtab.c: Remove _initialize_psymtab prototype.
7142 * python/python.c: Remove _initialize_python prototype.
7143 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7144 * record-btrace.c: Remove _initialize_record_btrace prototype.
7145 * record-full.c: Remove _initialize_record_full prototype.
7146 * record.c: Remove _initialize_record prototype.
7147 * regcache.c: Remove _initialize_regcache prototype.
7148 * reggroups.c: Remove _initialize_reggroup prototype.
7149 * remote-notif.c: Remove _initialize_notif prototype.
7150 * remote-sim.c: Remove _initialize_remote_sim prototype.
7151 * remote.c: Remove _initialize_remote prototype.
7152 * reverse.c: Remove _initialize_reverse prototype.
7153 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7154 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7155 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7156 prototype.
7157 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7158 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7159 * rust-exp.y: Remove _initialize_rust_exp prototype.
7160 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
7161 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
7162 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
7163 * score-tdep.c: Remove _initialize_score_tdep prototype.
7164 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
7165 prototype.
7166 * ser-go32.c: Remove _initialize_ser_dos prototype.
7167 * ser-mingw.c: Remove _initialize_ser_windows prototype.
7168 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
7169 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
7170 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
7171 * serial.c: Remove _initialize_serial prototype.
7172 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
7173 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
7174 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
7175 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
7176 * skip.c: Remove _initialize_step_skip prototype.
7177 * sol-thread.c: Remove _initialize_sol_thread prototype.
7178 * solib-aix.c: Remove _initialize_solib_aix prototype.
7179 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
7180 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
7181 * solib-frv.c: Remove _initialize_frv_solib prototype.
7182 * solib-spu.c: Remove _initialize_spu_solib prototype.
7183 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
7184 * solib-target.c: Remove _initialize_solib_target prototype.
7185 * solib.c: Remove _initialize_solib prototype.
7186 * source.c: Remove _initialize_source prototype.
7187 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
7188 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
7189 prototype.
7190 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
7191 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
7192 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
7193 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
7194 prototype.
7195 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
7196 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
7197 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
7198 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
7199 prototype.
7200 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
7201 prototype.
7202 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
7203 prototype.
7204 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
7205 prototype.
7206 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
7207 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
7208 prototype.
7209 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
7210 prototype.
7211 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
7212 prototype.
7213 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
7214 prototype.
7215 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
7216 prototype.
7217 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
7218 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
7219 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
7220 * stabsread.c: Remove _initialize_stabsread prototype.
7221 * stack.c: Remove _initialize_stack prototype.
7222 * stap-probe.c: Remove _initialize_stap_probe prototype.
7223 * std-regs.c: Remove _initialize_frame_reg prototype.
7224 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
7225 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
7226 * symfile.c: Remove _initialize_symfile prototype.
7227 * symmisc.c: Remove _initialize_symmisc prototype.
7228 * symtab.c: Remove _initialize_symtab prototype.
7229 * target-dcache.c: Remove _initialize_target_dcache prototype.
7230 * target-descriptions.c: Remove _initialize_target_descriptions
7231 prototype.
7232 * thread.c: Remove _initialize_thread prototype.
7233 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
7234 prototype.
7235 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
7236 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
7237 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
7238 prototype.
7239 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
7240 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
7241 * tracefile.c: Remove _initialize_tracefile prototype.
7242 * tracepoint.c: Remove _initialize_tracepoint prototype.
7243 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
7244 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
7245 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
7246 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
7247 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
7248 * tui/tui-win.c: Remove _initialize_tui_win prototype.
7249 * tui/tui.c: Remove _initialize_tui prototype.
7250 * typeprint.c: Remove _initialize_typeprint prototype.
7251 * user-regs.c: Remove _initialize_user_regs prototype.
7252 * utils.c: Remove _initialize_utils prototype.
7253 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
7254 * valarith.c: Remove _initialize_valarith prototype.
7255 * valops.c: Remove _initialize_valops prototype.
7256 * valprint.c: Remove _initialize_valprint prototype.
7257 * value.c: Remove _initialize_values prototype.
7258 * varobj.c: Remove _initialize_varobj prototype.
7259 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
7260 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
7261 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
7262 * windows-nat.c: Remove _initialize_windows_nat,
7263 _initialize_check_for_gdb_ini, and _initialize_loadable
7264 prototypes.
7265 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
7266 * xcoffread.c: Remove _initialize_xcoffread prototype.
7267 * xml-support.c: Remove _initialize_xml_support prototype.
7268 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
7269 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
7270 prototype.
7271 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
7272 prototype.
7273 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
7274
a611b5cb
KS
72752017-09-08 Keith Seitz <keiths@redhat.com>
7276
7277 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
7278 field.
7279
469412dd
CW
72802017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
7281
7282 * f-valprint.c (f_val_print): Remove check for one byte
7283 sized integers. Remove printing of character type.
7284
a5ad232b
FP
72852017-09-08 Frank Penczek <frank.penczek@intel.com>
7286 Christoph Weinmann <christoph.t.weinmann@intel.com>
7287 Bernhard Heckel <bernhard.heckel@intel.com>
7288
7289 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
7290 to maintain proper indentation when printing pointers/refs.
7291
e5014227
JB
72922017-09-07 Joel Brobecker <brobecker@adacore.com>
7293
7294 GDB 8.0.1 released.
7295
63c99141
JB
72962017-09-07 Joel Brobecker <brobecker@adacore.com>
7297
7298 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
7299
69c1e056
TT
73002017-09-05 Tom Tromey <tom@tromey.com>
7301
7302 * parse.c (funcall_chain): Now a std::vector.
7303 (start_arglist, end_arglist): Simplify.
7304 (free_funcalls): Remove.
7305 (parse_exp_in_context_1): Remove cleanup.
7306
fef704bf
TT
73072017-09-05 Tom Tromey <tom@tromey.com>
7308
7309 * go-exp.y (go_parse): Don't create a cleanup.
7310
5613c585
TT
73112017-09-05 Tom Tromey <tom@tromey.com>
7312
7313 * d-exp.y (PrimaryExpression): Use std::string.
7314 (d_parse): Don't create a cleanup.
7315
eae49211
TT
73162017-09-05 Tom Tromey <tom@tromey.com>
7317
7318 * utils.c (do_clear_parser_state): Remove.
7319 (make_cleanup_clear_parser_state): Remove.
7320 * p-exp.y (pascal_parse): Use scoped_restore.
7321 * m2-exp.y (m2_parse): Use scoped_restore.
7322 * f-exp.y (f_parse): Use scoped_restore.
7323 * d-exp.y (d_parse): Use scoped_restore.
7324 * c-exp.y (c_parse): Use scoped_restore.
7325 * ada-exp.y (ada_parse): Use scoped_restore.
7326 * utils.h (make_cleanup_clear_parser_state): Remove.
7327
73b9be8b
KS
73282017-09-06 Keith Seitz <keiths@redhat.com>
7329
7330 * dwarf2read.c (dw2_linkage_name_attr): New function.
7331 (dw2_linkage_name): New function.
7332 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
7333 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
7334 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
7335
a102602b
KR
73362017-09-06 Kamil Rytarowski <n54@gmx.com>
7337
7338 * config/djgpp/djconfig.sh: Correct shell portability issue.
7339
28ad437d
KR
73402017-09-06 Kamil Rytarowski <n54@gmx.com>
7341
7342 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
7343
351787dd
JB
73442017-09-06 John Baldwin <jhb@FreeBSD.org>
7345
7346 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
7347 * NEWS: Mention new FreeBSD/mips native configuration.
7348 * configure.host: Add aarch64*-*-freebsd*.
7349 * configure.nat: Likewise.
7350 * aarch64-fbsd-nat.c: New file.
7351
c0f84956
JB
73522017-09-06 John Baldwin <jhb@FreeBSD.org>
7353
7354 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
7355 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
7356 * NEWS: Mention new FreeBSD/aarch64 target.
7357 * configure.tgt: Add aarch64*-*-freebsd*.
7358 * aarch64-fbsd-tdep.c: New file.
7359 * aarch64-fbsd-tdep.h: New file.
7360
7610297a
KR
73612017-09-06 Kamil Rytarowski <n54@gmx.com>
7362
7363 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
7364
fbd1b771
JK
73652017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7366
7367 * parse.c (find_minsym_type_and_address): Don't relocate addresses
7368 of TLS symbols.
7369
5ca79eae
PW
73702017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7371
7372 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
7373 call.
7374
bf93d7ba
SM
73752017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7376
7377 * infrun.c (follow_exec): Call add_thread after
7378 target_find_description.
7379
1bb7c059
SM
73802017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7381
7382 * infrun.c (handle_inferior_event_1): When exec'ing, read
7383 stop_pc after follow_exec.
7384
fc809827
SM
73852017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7386
7387 * remote.c (process_g_packet): Update error message.
7388
d2fcdd85
YQ
73892017-09-05 Yao Qi <yao.qi@linaro.org>
7390
7391 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
7392 targets.
7393
e69570ee
PA
73942017-09-05 Pedro Alves <palves@redhat.com>
7395
7396 * eval.c (eval_call, evaluate_funcall): New functions, factored
7397 out from ...
7398 (evaluate_subexp_standard): ... this.
7399
22916b07
YQ
74002017-09-05 Yao Qi <yao.qi@linaro.org>
7401
7402 * amd64-tdep.c (amd64_target_description): Create target
7403 descriptions.
7404 (_initialize_amd64_tdep): Don't call functions
7405 initialize_tdesc_amd64_*. Add self tests.
7406 * arch/amd64.c (amd64_create_target_description): Add parameter
7407 is_linux. Call set_tdesc_osabi if is_linux is true.
7408 * arch/amd64.h (amd64_create_target_description): Update the
7409 declaration.
7410 * arch/i386.c (i386_create_target_description): Add parameter
7411 is_linux. Call set_tdesc_osabi if is_linux is true.
7412 * arch/i386.h (i386_create_target_description): Update
7413 declaration.
7414 * configure.tgt: Add i386.o to gdb_target_obs.
7415 * features/Makefile (XMLTOC): Remove i386/*.xml.
7416 * features/i386/amd64-avx-avx512.c: Remove.
7417 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
7418 * features/i386/amd64-avx-mpx.c: Remove.
7419 * features/i386/amd64-avx.c: Remove.
7420 * features/i386/amd64-mpx.c: Remove.
7421 * features/i386/amd64.c: Remove.
7422 * features/i386/i386-avx-avx512.c: Remove.
7423 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
7424 * features/i386/i386-avx-mpx.c: Remove.
7425 * features/i386/i386-avx.c: Remove.
7426 * features/i386/i386-mmx.c: Remove.
7427 * features/i386/i386-mpx.c: Remove.
7428 * features/i386/i386.c: Remove.
7429 * i386-tdep.c: Don't include features/i386/i386*.c., include
7430 target-descriptions.h and arch/i386.h.
7431 (i386_target_description): Create target descriptions.
7432 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
7433 functions. Do self tests.
7434
0854b7b1
YQ
74352017-09-05 Yao Qi <yao.qi@linaro.org>
7436
7437 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
7438 * features/i386/amd64-avx-avx512-linux.c: Removed.
7439 * features/i386/amd64-avx-linux.c: Removed.
7440 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
7441 * features/i386/amd64-avx-mpx-linux.c: Removed.
7442 * features/i386/amd64-linux.c: Removed.
7443 * features/i386/amd64-mpx-linux.c: Removed.
7444 * features/i386/x32-avx-avx512-linux.c: Removed.
7445 * features/i386/x32-avx-linux.c: Removed.
7446 * features/i386/x32-linux.c: Removed.
7447
b4570e4b
YQ
74482017-09-05 Yao Qi <yao.qi@linaro.org>
7449
7450 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
7451 features/i386/*.c.
7452 (amd64_linux_read_description): Call
7453 amd64_create_target_description.
7454 * arch/amd64.c: New file.
7455 * arch/amd64.h: New file.
7456 * configure.tgt (x86_64-*-linux*): Append amd64.o.
7457 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
7458
6c73f67f
YQ
74592017-09-05 Yao Qi <yao.qi@linaro.org>
7460
7461 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
7462 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
7463 (amd64_linux_read_description): Create target descriptions.
7464 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
7465 functions. Add unit tests.
7466 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
7467 x32-core.xml.
7468 * features/i386/64bit-avx.c: Generated.
7469 * features/i386/64bit-avx512.c: Generated.
7470 * features/i386/64bit-core.c: Generated.
7471 * features/i386/64bit-linux.c: Generated.
7472 * features/i386/64bit-mpx.c: Generated.
7473 * features/i386/64bit-pkeys.c: Generated.
7474 * features/i386/64bit-segments.c: Generated.
7475 * features/i386/64bit-sse.c: Generated.
7476 * features/i386/x32-core.c: Generated.
7477 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
7478 c files for amd64-linux and x32-linux.
7479
9d3d478b
YQ
74802017-09-05 Yao Qi <yao.qi@linaro.org>
7481
7482 * amd64-linux-tdep.c (amd64_linux_read_description): New
7483 function.
7484 (amd64_linux_core_read_description): Call
7485 amd64_linux_read_description.
7486 (amd64_linux_init_abi): Likewise.
7487 (amd64_x32_linux_init_abi): Likewise.
7488 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
7489 * x86-linux-nat.c (x86_linux_read_description): Call
7490 amd64_linux_read_description.
7491
b9f1d50f
YQ
74922017-09-05 Yao Qi <yao.qi@linaro.org>
7493
7494 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
7495 comments.
7496
188c9e6d
YQ
74972017-09-05 Yao Qi <yao.qi@linaro.org>
7498
7499 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
7500 * features/i386/i386-avx-avx512-linux.c: Remove.
7501 * features/i386/i386-avx-linux.c: Remove.
7502 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
7503 * features/i386/i386-avx-mpx-linux.c: Remove.
7504 * features/i386/i386-linux.c: Remove.
7505 * features/i386/i386-mmx-linux.c: Remove.
7506 * features/i386/i386-mpx-linux.c: Remove.
7507
5f035c07
YQ
75082017-09-05 Yao Qi <yao.qi@linaro.org>
7509
7510 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
7511 (SFILES): Add arch/i386.c.
7512 (HFILES_NO_SRCDIR): Add arch/i386.h.
7513 * arch/i386.c: New file.
7514 * arch/i386.h: New file.
7515 * arch/tdesc.h (allocate_target_description): Declare.
7516 (set_tdesc_architecture): Declare.
7517 (set_tdesc_osabi): Declare.
7518 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
7519 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
7520 include arch/i386.h.
7521 (i386_linux_read_description): Remove code and call
7522 i386_create_target_description.
7523 (set_tdesc_architecture): New function.
7524 (set_tdesc_osabi): New function.
7525 * target-descriptions.h (allocate_target_description): Remove.
7526
0abe8a89
YQ
75272017-09-05 Yao Qi <yao.qi@linaro.org>
7528
7529 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
7530 * target-descriptions.c (tdesc_create_feature): Likewise, and
7531 adjust code.
7532 * features/i386/32bit-avx.c: Re-generated.
7533 * features/i386/32bit-avx512.c: Re-generated.
7534 * features/i386/32bit-core.c: Re-generated.
7535 * features/i386/32bit-linux.c: Re-generated.
7536 * features/i386/32bit-mpx.c: Re-generated.
7537 * features/i386/32bit-pkeys.c: Re-generated.
7538 * features/i386/32bit-sse.c: Re-generated.
7539
0a188386
YQ
75402017-09-05 Yao Qi <yao.qi@linaro.org>
7541
7542 * regformats/regdef.h (struct reg): Override operator == and !=.
7543
f49ff000
YQ
75442017-09-05 Yao Qi <yao.qi@linaro.org>
7545
7546 * arch/tdesc.h: New file.
7547 * regformats/regdat.sh: Generate code using tdesc_create_reg.
7548 * target-descriptions.c: Update comments.
7549 * target-descriptions.h: Include "arch/tdesc.h". Remove the
7550 declarations.
7551 * features/i386/32bit-avx.c: Re-generated.
7552 * features/i386/32bit-avx512.c: Re-generated.
7553 * features/i386/32bit-core.c: Re-generated.
7554 * features/i386/32bit-linux.c: Re-generated.
7555 * features/i386/32bit-mpx.c: Re-generated.
7556 * features/i386/32bit-pkeys.c: Re-generated.
7557 * features/i386/32bit-sse.c: Re-generated.
7558
f7000548
YQ
75592017-09-05 Yao Qi <yao.qi@linaro.org>
7560
7561 * regformats/regdat.sh: Update generated code.
7562
c9a5e2a5
YQ
75632017-09-05 Yao Qi <yao.qi@linaro.org>
7564
7565 * regformats/regdat.sh: Adjust code order.
7566
d6b687ac
SM
75672017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7568
7569 * expprint.c (dump_subexp_body_standard): Use constant format
7570 string in fprintf_filtered call.
7571
a379bfd0
JB
75722017-09-04 John Baldwin <jhb@FreeBSD.org>
7573
7574 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
7575 NetBSD/i386.
7576 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
7577
f7efc967
JB
75782017-09-04 John Baldwin <jhb@FreeBSD.org>
7579
7580 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
7581
c49fbc6c
JB
75822017-09-04 John Baldwin <jhb@FreeBSD.org>
7583
7584 * bsd-kvm.o: Define _KMEMUSER.
7585 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
7586 * configure: Regenerate.
7587
26562e73
JB
75882017-09-04 John Baldwin <jhb@FreeBSD.org>
7589
7590 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
7591 * i386-fbsd-nat.c: Likewise.
7592
31cf1487
JB
75932017-09-04 John Baldwin <jhb@FreeBSD.org>
7594
7595 * unittests/array-view-selftests.c: Add include of <array>.
7596
5b9f8a7c
JB
75972017-09-04 John Baldwin <jhb@FreeBSD.org>
7598
7599 * spu-tdep.c (flush_ea_cache): Add missing argument to
7600 call_function_by_hand.
7601
d69cf9b2
PA
76022017-09-04 Pedro Alves <palves@redhat.com>
7603
7604 * NEWS (Safer support for debugging with no debug info): New.
7605
3693fdb3
PA
76062017-09-04 Pedro Alves <palves@redhat.com>
7607
7608 * c-exp.y (function_method, function_method_void): Add current
7609 instance flags to TYPE_INSTANCE.
7610 * dwarf2read.c (check_modifier): New.
7611 (compute_delayed_physnames): Assert that only C++ adds delayed
7612 physnames. Mark fn_fields as const/volatile depending on
7613 physname.
7614 * eval.c (make_params): New type_instance_flags parameter. Use
7615 it as the new type's instance flags.
7616 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
7617 flags element and pass it to make_params.
7618 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
7619 instance flags element.
7620 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
7621 * gdbtypes.h: Include "enum-flags.h".
7622 (type_instance_flags): New enum-flags type.
7623 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
7624 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
7625 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
7626 (follow_type_instance_flags): New function.
7627 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
7628 * parser-defs.h (follow_type_instance_flags): Declare.
7629 * valops.c (value_struct_elt_for_reference): const/volatile must
7630 match too.
7631
e68cb8e0
PA
76322017-09-04 Pedro Alves <palves@redhat.com>
7633
7634 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
7635 function/method scopes; lookup the nested name as a function local
7636 static variable.
7637
858be34c
PA
76382017-09-04 Pedro Alves <palves@redhat.com>
7639
7640 (%type <voidval>): Add function_method.
7641 * c-exp.y (exp): New production for calls with no arguments.
7642 (function_method, function_method_void_or_typelist): New
7643 productions.
7644 (exp): New production for "method()::static_var".
7645 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
7646 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7647 Handle OP_FUNC_STATIC_VAR.
7648 * parse.c (operator_length_standard):
7649 Handle OP_FUNC_STATIC_VAR.
7650
dd5901a6
PA
76512017-09-04 Pedro Alves <palves@redhat.com>
7652
7653 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
7654 handling.
7655 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7656 Ditto.
7657 * parse.c (operator_length_standard, operator_check_standard):
7658 Ditto.
7659 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
7660
46a4882b
PA
76612017-09-04 Pedro Alves <palves@redhat.com>
7662
7663 * ax-gdb.c: Include "typeprint.h".
7664 (gen_expr_for_cast): New function.
7665 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
7666 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
7667 type is unknown.
7668 * dwarf2read.c (new_symbol_full): Fallback to int instead of
7669 nodebug_data_symbol.
7670 * eval.c: Include "typeprint.h".
7671 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
7672 Error out if symbol has unknown type.
7673 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
7674 evaluate_subexp_for_cast.
7675 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
7676 OP_VAR_MSYM_VALUE.
7677 (evaluate_subexp_for_cast): New function.
7678 * gdbtypes.c (init_nodebug_var_type): New function.
7679 (objfile_type): Use it to initialize types of variables with no
7680 debug info.
7681 * typeprint.c (error_unknown_type): New.
7682 * typeprint.h (error_unknown_type): New declaration.
7683 * compile/compile-c-types.c (convert_type_basic): Handle
7684 TYPE_CODE_ERROR; warn and fallback to int for variables with
7685 unknown type.
7686
fe13dfec
PA
76872017-09-04 Pedro Alves <palves@redhat.com>
7688
7689 * eval.c (evaluate_var_value): New function, factored out from ...
7690 (evaluate_subexp_standard): ... here.
7691
d008ee21
PA
76922017-09-04 Pedro Alves <palves@redhat.com>
7693
7694 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
7695 Remove useless assignments to 'op'.
7696
827d0c51
PA
76972017-09-04 Pedro Alves <palves@redhat.com>
7698
7699 * eval.c (eval_skip_value): New function.
7700 (evaluate_subexp_standard): Use it.
7701
2c5a2be1
PA
77022017-09-04 Pedro Alves <palves@redhat.com>
7703
7704 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
7705 function name from symbol/minsym and pass it to
7706 error_call_unknown_return_type.
7707
74ea4be4
PA
77082017-09-04 Pedro Alves <palves@redhat.com>
7709
7710 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
7711 * ax-gdb.c (gen_msym_var_ref): New function.
7712 (gen_expr): Handle OP_VAR_MSYM_VALUE.
7713 * eval.c (evaluate_var_msym_value): New function.
7714 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
7715 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
7716 to call_function_by_hand.
7717 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7718 Handle OP_VAR_MSYM_VALUE.
7719 (union exp_element) <msymbol>: New field.
7720 * minsyms.h (struct type): Forward declare.
7721 (find_minsym_type_and_address): Declare.
7722 * parse.c (write_exp_elt_msym): New function.
7723 (write_exp_msymbol): Delete, refactored as ...
7724 (find_minsym_type_and_address): ... this new function.
7725 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
7726 (operator_length_standard, operator_check_standard): Handle
7727 OP_VAR_MSYM_VALUE.
7728 * std-operator.def (OP_VAR_MSYM_VALUE): New.
7729
7022349d
PA
77302017-09-04 Pedro Alves <palves@redhat.com>
7731
7732 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
7733 TYPE_GNU_IFUNC specially here. Throw error if return type is
7734 unknown.
7735 * ada-typeprint.c (print_func_type): Handle functions with unknown
7736 return type.
7737 * c-typeprint.c (c_type_print_base): Handle functions and methods
7738 with unknown return type.
7739 * compile/compile-c-symbols.c (convert_symbol_bmsym)
7740 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
7741 * compile/compile-c-types.c: Include "objfiles.h".
7742 (convert_func): For functions with unknown return type, warn and
7743 default to int.
7744 * compile/compile-object-run.c (compile_object_run): Adjust call
7745 to call_function_by_hand_dummy.
7746 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
7747 call_function_by_hand.
7748 * eval.c (evaluate_subexp_standard): Adjust calls to
7749 call_function_by_hand. Handle functions and methods with unknown
7750 return type. Pass expect_type to call_function_by_hand.
7751 * f-typeprint.c (f_type_print_base): Handle functions with unknown
7752 return type.
7753 * gcore.c (call_target_sbrk): Adjust call to
7754 call_function_by_hand.
7755 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
7756 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
7757 an integer address type instead of nodebug.
7758 * guile/scm-value.c (gdbscm_value_call): Adjust call to
7759 call_function_by_hand.
7760 * infcall.c (error_call_unknown_return_type): New function.
7761 (call_function_by_hand): New "default_return_type" parameter.
7762 Pass it down.
7763 (call_function_by_hand_dummy): New "default_return_type"
7764 parameter. Use it instead of defaulting to int. If there's no
7765 default and the return type is unknown, throw an error. If
7766 there's a default return type, and the called function has no
7767 debug info, then assume the function is prototyped.
7768 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
7769 New "default_return_type" parameter.
7770 (error_call_unknown_return_type): New declaration.
7771 * linux-fork.c (call_lseek): Cast return type of lseek.
7772 (inferior_call_waitpid, checkpoint_command): Adjust calls to
7773 call_function_by_hand.
7774 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
7775 calls to call_function_by_hand.
7776 * m2-typeprint.c (m2_procedure): Handle functions with unknown
7777 return type.
7778 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7779 (value_nsstring, print_object_command): Adjust calls to
7780 call_function_by_hand.
7781 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
7782 functions with unknown return type.
7783 (pascal_type_print_func_varspec_suffix): New function.
7784 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
7785 TYPE_CODE_METHOD>: Use it.
7786 * python/py-value.c (valpy_call): Adjust call to
7787 call_function_by_hand.
7788 * rust-lang.c (rust_evaluate_funcall): Adjust call to
7789 call_function_by_hand.
7790 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
7791 call_function_by_hand.
7792 * valops.c (value_allocate_space_in_inferior): Adjust call to
7793 call_function_by_hand.
7794 * typeprint.c (type_print_unknown_return_type): New function.
7795 * typeprint.h (type_print_unknown_return_type): New declaration.
7796
54990598
PA
77972017-09-04 Pedro Alves <palves@redhat.com>
7798
7799 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
7800 types with more than one parameter as prototyped.
7801
9a24775b
PA
78022017-09-04 Pedro Alves <palves@redhat.com>
7803
7804 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
7805 (disassemble_command): Use gdb_disassembly_flags instead of bare
7806 int.
7807 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
7808 (dump_insns, do_mixed_source_and_assembly_deprecated)
7809 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
7810 Use gdb_disassembly_flags instead of bare int.
7811 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
7812 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
7813 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
7814 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
7815 (enum gdb_disassembly_flag): ... values of this new enumeration.
7816 (gdb_disassembly_flags): Define.
7817 (gdb_disassembly)
7818 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
7819 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
7820 gdb_disassembly_flags instead of bare int.
7821 * record-btrace.c (btrace_insn_history)
7822 (record_btrace_insn_history, record_btrace_insn_history_range)
7823 (record_btrace_insn_history_from): Use gdb_disassembly_flags
7824 instead of bare int.
7825 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
7826 Use gdb_disassembly_flags instead of bare int.
7827 * target-debug.h (target_debug_print_gdb_disassembly_flags):
7828 Define.
7829 * target-delegates.c: Regenerate.
7830 * target.c (target_insn_history, target_insn_history_from)
7831 (target_insn_history_range): Use gdb_disassembly_flags instead of
7832 bare int.
7833 * target.h: Include "disasm.h".
7834 (struct target_ops) <to_insn_history, to_insn_history_from,
7835 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
7836 int.
7837 (target_insn_history, target_insn_history_from)
7838 (target_insn_history_range): Use gdb_disassembly_flags instead of
7839 bare int.
7840
80a65e9b
SM
78412017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7842
7843 * cli/cli-script.c (build_command_line): For if/while commands,
7844 check whether args is empty.
7845
6b66338c
SM
78462017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7847
7848 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
7849 (enum command_control_type): Likewise.
7850 (struct command_line): Likewise.
7851 (free_command_lines): Likewise.
7852 (struct command_lines_deleter): Likewise.
7853 (command_line_up): Likewise.
7854 (read_command_lines): Likewise.
7855 (read_command_lines_1): Likewise.
7856 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
7857 (enum command_control_type): Likewise.
7858 (struct command_line): Likewise.
7859 (free_command_lines): Likewise.
7860 (struct command_lines_deleter): Likewise.
7861 (command_line_up): Likewise.
7862 (read_command_lines): Likewise.
7863 (read_command_lines_1): Likewise.
7864 * breakpoint.h: Include cli/cli-script.h.
7865 * extension-priv.h: Likewise.
7866 * gdbcmd.h: Likewise.
7867
51abb421
PA
78682017-09-04 Pedro Alves <palves@redhat.com>
7869
7870 * ada-lang.c (is_known_support_routine): Move sal declaration to
7871 where it is initialized.
7872 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
7873 (parse_breakpoint_sals, decode_static_tracepoint_spec)
7874 (clear_command, update_static_tracepoint): Remove init_sal
7875 references. Move declarations closer to initializations.
7876 * cli/cli-cmds.c (list_command): Move sal declarations closer to
7877 initializations.
7878 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
7879 references. Move sal declarations closer to initializations.
7880 * frame.c (find_frame_sal): Return a symtab_and_line via function
7881 return instead of output parameter. Remove init_sal references.
7882 * frame.h (find_frame_sal): Return a symtab_and_line via function
7883 return instead of output parameter.
7884 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
7885 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
7886 instead of memset.
7887 (gdbscm_find_pc_line): Remove init_sal reference.
7888 * infcall.c (call_function_by_hand_dummy): Remove init_sal
7889 references. Move declarations closer to initializations.
7890 * infcmd.c (set_step_frame): Update. Move declarations closer to
7891 initializations.
7892 (finish_backward): Remove init_sal references. Move declarations
7893 closer to initializations.
7894 * infrun.c (process_event_stop_test, handle_step_into_function)
7895 (insert_hp_step_resume_breakpoint_at_frame)
7896 (insert_step_resume_breakpoint_at_caller): Likewise.
7897 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
7898 (symbol_to_sal): Likewise.
7899 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
7900 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
7901 to its initialization.
7902 * reverse.c (save_bookmark_command): Use new/delete. Remove
7903 init_sal references. Move declarations closer to initializations.
7904 * source.c (get_current_source_symtab_and_line): Remove brace
7905 initialization.
7906 (set_current_source_symtab_and_line): Now takes the sal by const
7907 reference. Remove brace initialization.
7908 (line_info): Remove init_sal reference.
7909 * source.h (set_current_source_symtab_and_line): Now takes a
7910 symtab_and_line via const reference.
7911 * stack.c (set_current_sal_from_frame): Adjust.
7912 (print_frame_info): Adjust.
7913 (get_last_displayed_sal): Return the sal via function return
7914 instead of via output parameter. Simplify.
7915 (frame_info): Adjust.
7916 * stack.h (get_last_displayed_sal): Return the sal via function
7917 return instead of via output parameter.
7918 * symtab.c (init_sal): Delete.
7919 (find_pc_sect_line): Remove init_sal references. Move
7920 declarations closer to initializations.
7921 (find_function_start_sal): Remove init_sal references. Move
7922 declarations closer to initializations.
7923 * symtab.h (struct symtab_and_line): In-class initialize all
7924 fields.
7925 * tracepoint.c (set_traceframe_context)
7926 (print_one_static_tracepoint_marker): Remove init_sal references.
7927 Move declarations closer to initializations.
7928 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
7929 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
7930 declarations closer to initializations.
7931 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
7932 init_sal references. Adjust.
7933
6c5b2ebe
PA
79342017-09-04 Pedro Alves <palves@redhat.com>
7935
7936 * ax-gdb.c (agent_command_1): Use range-for.
7937 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7938 * breakpoint.c: Include "common/array-view.h".
7939 (init_breakpoint_sal, create_breakpoint_sal): Change sals
7940 parameter from struct symtabs_and_lines to
7941 array_view<symtab_and_line>. Adjust. Use range-for. Update.
7942 (breakpoint_sals_to_pc): Change sals parameter from struct
7943 symtabs_and_lines to std::vector reference.
7944 (check_fast_tracepoint_sals): Change sals parameter from struct
7945 symtabs_and_lines to std::array_view. Use range-for.
7946 (decode_static_tracepoint_spec): Return a std::vector instead of
7947 symtabs_and_lines. Update.
7948 (create_breakpoint): Update.
7949 (break_range_command, until_break_command, clear_command): Update.
7950 (base_breakpoint_decode_location, bkpt_decode_location)
7951 (bkpt_probe_create_sals_from_location)
7952 (bkpt_probe_decode_location, tracepoint_decode_location)
7953 (tracepoint_probe_decode_location)
7954 (strace_marker_create_sals_from_location): Return a std::vector
7955 instead of symtabs_and_lines.
7956 (strace_marker_create_breakpoints_sal): Update.
7957 (strace_marker_decode_location): Return a std::vector instead of
7958 symtabs_and_lines. Update.
7959 (update_breakpoint_locations): Change struct symtabs_and_lines
7960 parameters to gdb::array_view. Adjust.
7961 (location_to_sals): Return a std::vector instead of
7962 symtabs_and_lines. Update.
7963 (breakpoint_re_set_default): Use std::vector instead of struct
7964 symtabs_and_lines.
7965 (decode_location_default): Return a std::vector instead of
7966 symtabs_and_lines. Update.
7967 * breakpoint.h: Include "common/array-view.h".
7968 (struct breakpoint_ops) <decode_location>: Now returns a
7969 std::vector instead of returning a symtabs_and_lines via output
7970 parameter.
7971 (update_breakpoint_locations): Change sals parameters to use
7972 gdb::array_view.
7973 * cli/cli-cmds.c (edit_command, list_command): Update to use
7974 std::vector and gdb::array_view.
7975 (ambiguous_line_spec): Adjust to use gdb::array_view and
7976 range-for.
7977 (compare_symtabs): Rename to ...
7978 (cmp_symtabs): ... this. Change parameters to symtab_and_line
7979 const reference and adjust.
7980 (filter_sals): Rewrite using std::vector and standard algorithms.
7981 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
7982 (jump_command): Update to use std::vector.
7983 * linespec.c (struct linespec_state) <canonical_names>: Update
7984 comment.
7985 (add_sal_to_sals_basic): Delete.
7986 (add_sal_to_sals, filter_results, convert_results_to_lsals)
7987 (decode_line_2, create_sals_line_offset)
7988 (convert_address_location_to_sals, convert_linespec_to_sals)
7989 (convert_explicit_location_to_sals, parse_linespec)
7990 (event_location_to_sals, decode_line_full, decode_line_1)
7991 (decode_line_with_current_source)
7992 (decode_line_with_last_displayed, decode_objc)
7993 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
7994 (linespec_result::~linespec_result): Adjust to use std::vector
7995 instead of symtabs_and_lines.
7996 * linespec.h (linespec_sals::sals): Now a std::vector.
7997 (struct linespec_result): Use std::vector, bool, and in-class
7998 initialization.
7999 (decode_line_1, decode_line_with_current_source)
8000 (decode_line_with_last_displayed): Return std::vector.
8001 * macrocmd.c (info_macros_command): Use std::vector.
8002 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8003 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8004 std::vector.
8005 * probe.h (parse_probes): Return a std::vector.
8006 * python/python.c (gdbpy_decode_line): Use std::vector and
8007 gdb::array_view.
8008 * source.c (select_source_symtab, line_info): Use std::vector.
8009 * stack.c (func_command): Use std::vector.
8010 * symtab.h (struct symtabs_and_lines): Delete.
8011 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8012
7c44b49c
PA
80132017-09-04 Pedro Alves <palves@redhat.com>
8014
8015 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8016 unittests/array-view-selftests.c.
8017 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8018 * common/array-view.h: New file.
8019 * unittests/array-view-selftests.c: New file.
8020
e439fa14
PA
80212017-09-04 Pedro Alves <palves@redhat.com>
8022
8023 * cli/cli-cmds.c (edit_command): Pass message to
8024 ambiguous_line_spec.
8025 (list_command): Pass message to ambiguous_line_spec. Say
8026 "first"/"last" instead of "start" and "end" to be consistent with
8027 the manual.
8028 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8029 them to print formatted message.
8030
7525b645
PA
80312017-09-04 Pedro Alves <palves@redhat.com>
8032
8033 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8034 ftrace_update_insns by reference instead of pointer.
8035
badc0020
YQ
80362017-09-04 Yao Qi <yao.qi@linaro.org>
8037
8038 * i386-go32-tdep.c: Include x86-xstate.h.
8039 (i386_go32_init_abi): Call i386_target_description.
8040 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8041 if xcr0 is X86_XSTATE_X87_MASK.
8042 * i386-tdep.h (tdesc_i386): Remove the declaration.
8043 (tdesc_i386_mmx): Likewise.
8044
d78bdb54
YQ
80452017-09-04 Yao Qi <yao.qi@linaro.org>
8046
8047 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8048 X86_XSTATE_SSE_MASK instead of 0.
8049
ca1fa5ee
YQ
80502017-09-04 Yao Qi <yao.qi@linaro.org>
8051
8052 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8053 i386_target_description.
8054 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8055 i386_target_description.
8056 * i386-tdep.c (i386_gdbarch_init): Likewise.
8057
2434b019
YQ
80582017-09-04 Yao Qi <yao.qi@linaro.org>
8059
8060 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8061 (x86_darwin_init_abi_64): Call amd64_target_description.
8062 * amd64-dicos-tdep.c: Likewise.
8063 * amd64-fbsd-nat.c: Likewise.
8064 * amd64-fbsd-tdep.c: Likewise.
8065 * amd64-nbsd-tdep.c: Likewise.
8066 * amd64-obsd-tdep.c: Likewise.
8067 * amd64-sol2-tdep.c: Likewise.
8068 * amd64-windows-tdep.c: Likewise.
8069 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8070
0860c437
SM
80712017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8072
8073 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8074 (btrace_function) <insn>: Change type to use std::vector.
8075 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8076 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8077 ftrace_update_insns, ftrace_compute_global_level_offset,
8078 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8079 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8080 change to std::vector.
8081 (ftrace_update_insns): Adjust to change to std::vector, change
8082 type of INSN parameter.
8083 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8084 * record-btrace.c (btrace_call_history_insn_range,
8085 btrace_compute_src_line_range,
8086 record_btrace_frame_prev_register): Adjust to change to
8087 std::vector.
8088 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8089 to change to std::vector.
8090
0638b7f9
TT
80912017-09-03 Tom Tromey <tom@tromey.com>
8092
8093 * corefile.c (reopen_exec_file): Use std::string.
8094
8f84fb0e
TT
80952017-09-03 Tom Tromey <tom@tromey.com>
8096
8097 * compile/compile.c (compile_register_name_mangled): Return
8098 std::string.
8099 * compile/compile-loc2c.c (pushf_register_address): Update.
8100 (pushf_register): Update.
8101 * compile/compile-c-types.c (convert_array): Update.
8102 * compile/compile-c-symbols.c (generate_vla_size): Update.
8103 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8104 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8105 (convert_one_symbol): Update.
8106 (generate_c_for_for_one_variable): Update.
8107 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8108 std::string.
8109 (generate_register_struct): Update.
8110 * compile/compile-internal.h (c_get_range_decl_name): Return a
8111 std::string.
8112 (compile_register_name_mangled): Return std::string.
8113
18e9961f
TT
81142017-09-03 Tom Tromey <tom@tromey.com>
8115
8116 * utils.c (perror_string): Return a std::string.
8117 (throw_perror_with_name, perror_warning_with_name): Update.
8118
45343786
TT
81192017-09-03 Tom Tromey <tom@tromey.com>
8120
8121 * demangle.c (demangle_command): Use std::string,
8122 unique_xmalloc_ptr.
8123
b57af503
TT
81242017-09-03 Tom Tromey <tom@tromey.com>
8125
8126 * cli/cli-setshow.c (do_set_command): Use std::string.
8127
6eecf35f
TT
81282017-09-03 Tom Tromey <tom@tromey.com>
8129
8130 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8131
56496dd4
TT
81322017-09-03 Tom Tromey <tom@tromey.com>
8133
8134 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8135
e91a1fa7
TT
81362017-09-03 Tom Tromey <tom@tromey.com>
8137
8138 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8139 gdb::unique_xmalloc_ptr.
8140
7ffd83d7
TT
81412017-09-03 Tom Tromey <tom@tromey.com>
8142
8143 * thread.c (print_thread_info_1): Use string_printf.
8144 (thread_apply_command, thread_apply_all_command): Use
8145 std::string.
8146
1ccbe998
TT
81472017-09-03 Tom Tromey <tom@tromey.com>
8148
8149 * valprint.c (val_print_string): Update.
8150 * gdbcore.h (memory_error_message): Return std::string.
8151 * corefile.c (memory_error_message): Return std::string.
8152 (memory_error): Update.
8153 * breakpoint.c (insert_bp_location): Update.
8154
23fdd69e
SM
81552017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8156
8157 * target/waitstatus.h (target_waitstatus_to_string): Change
8158 return type to std::string.
8159 * target/waitstatus.c (target_waitstatus_to_string): Return
8160 std::string.
8161 * target.h (target_waitstatus_to_string): Remove declaration.
8162 * infrun.c (resume, clear_proceed_status_thread,
8163 print_target_wait_results, do_target_wait, save_waitstatus,
8164 stop_all_threads): Adjust.
8165 * record-btrace.c (record_btrace_wait): Adjust.
8166 * target-debug.h
8167 (target_debug_print_struct_target_waitstatus_p): Adjust.
8168
5c811d30
JK
81692017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8170
8171 PR gdb/22046
8172 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
8173 detection.
8174
0a2dde4a
SDJ
81752017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
8176
8177 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
8178 for setting/unsetting environment variables on the remote target.
8179 (New remote packets): Add entries for QEnvironmentHexEncoded,
8180 QEnvironmentUnset and QEnvironmentReset.
8181 * common/environ.c (gdb_environ::operator=): Extend method to
8182 handle m_user_set_env_list and m_user_unset_env_list.
8183 (gdb_environ::clear): Likewise.
8184 (match_var_in_string): Change type of first parameter from 'char
8185 *' to 'const char *'.
8186 (gdb_environ::set): Extend method to handle
8187 m_user_set_env_list and m_user_unset_env_list.
8188 (gdb_environ::unset): Likewise.
8189 (gdb_environ::clear_user_set_env): New method.
8190 (gdb_environ::user_set_envp): Likewise.
8191 (gdb_environ::user_unset_envp): Likewise.
8192 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
8193 m_user_unset_env_list on move constructor/assignment.
8194 (unset): Add new default parameter 'update_unset_list = true'.
8195 (clear_user_set_env): New method.
8196 (user_set_envp): Likewise.
8197 (user_unset_envp): Likewise.
8198 (m_user_set_env_list): New std::set.
8199 (m_user_unset_env_list): Likewise.
8200 * common/rsp-low.c (hex2str): New function.
8201 (bin2hex): New overload for bin2hex function.
8202 * common/rsp-low.c (hex2str): New prototype.
8203 (str2hex): New overload prototype.
8204 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
8205 QEnvironmentUnset and QEnvironmentReset.
8206 (remote_protocol_features): Add QEnvironmentHexEncoded,
8207 QEnvironmentUnset and QEnvironmentReset packets.
8208 (send_environment_packet): New function.
8209 (extended_remote_environment_support): Likewise.
8210 (extended_remote_create_inferior): Call
8211 extended_remote_environment_support.
8212 (_initialize_remote): Add QEnvironmentHexEncoded,
8213 QEnvironmentUnset and QEnvironmentReset packet configs.
8214 * unittests/environ-selftests.c (gdb_selftest_env_var):
8215 New variable.
8216 (test_vector_initialization): New function.
8217 (test_init_from_host_environ): Likewise.
8218 (test_reinit_from_host_environ): Likewise.
8219 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
8220 Likewise.
8221 (test_unset_set_empty_vector): Likewise.
8222 (test_vector_clear): Likewise.
8223 (test_std_move): Likewise.
8224 (test_move_constructor):
8225 (test_self_move): Likewise.
8226 (test_set_unset_reset): Likewise.
8227 (run_tests): Rewrite in terms of the functions above.
8228
654670a4
WP
82292017-08-31 Weimin Pan <weimin.pan@oracle.com>
8230
8231 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
8232 (adi_available): Use a temp variable of type CORE_ADDR as argument
8233 3 when calling target_auxv_search.
8234 (adi_normalize_address): Use masks and xor operators to calculate
8235 normalized address.
8236 (adi_read_versions, adi_write_versions, adi_print_versions)
8237 (do_examine, do_assign): Use paddress.
8238
7755ddb7
JB
82392017-08-29 John Baldwin <jhb@FreeBSD.org>
8240
8241 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
8242 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
8243 out of loop and add supply of FIR.
8244 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
8245 add collect of FIR.
8246
fd437cbc
SM
82472017-08-28 Simon Marchi <simon.marchi@ericsson.com>
8248
3804a343 8249 PR gdb/21827
fd437cbc
SM
8250 * cli/cli-script.c (define_command): Don't convert command name
8251 to lower case.
8252
988f6b3d
JB
82532017-08-25 Joel Brobecker <brobecker@adacore.com>
8254
8255 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
8256 Update all callers accordingly. Remove all code blocks handling
8257 the case where DISPP is not NULL.
8258
663c44ac
JK
82592017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8260
8261 PR symtab/22003
8262 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
8263 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8264 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
8265
f1902523
JK
82662017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8267
8268 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
8269 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
8270 (read_comp_units_from_section): New parameter abbrev_section, use
8271 read_and_check_comp_unit_head, allocate signatured_type if needed.
8272 (create_all_comp_units): Update read_comp_units_from_section caller.
8273
87215ad1
SDJ
82742017-08-23 Pedro Alves <palves@redhat.com>
8275
8276 PR remote/21852
8277 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
8278 to null_ptid and switch to thread without reading the registers
8279 after adding the inferior.
8280
6e41ddec
JK
82812017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8282
8283 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
8284 compile-gcc.
8285 * compile/compile.c (compile_gcc, show_compile_gcc): New.
8286 (compile_to_object): Implement compile_gcc.
8287 (_initialize_compile): Install "set compile-gcc". Initialize
8288 compile_gcc.
8289
e68c32d5
JK
82902017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8291
8292 * compile/compile.c (compile_to_object): Conditionally call
8293 set_verbose. Conditionally call compile or compile_v0.
8294
58afddc6
WP
82952017-08-07 Weimin Pan <weimin.pan@oracle.com>
8296
8297 * sparc64-tdep.h: (adi_normalize_address): New export.
8298 * sparc-nat.h: (open_adi_tag_fd): New export.
8299 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
8300 * sparc64-linux-tdep.c:
8301 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
8302 (sparc64_linux_handle_segmentation_fault): New function.
8303 (sparc64_linux_init_abi): Register
8304 sparc64_linux_handle_segmentation_fault
8305 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
8306 (sparc64_addr_bits_remove): New function.
8307 (sparc64_init_abi): Register sparc64_addr_bits_remove.
8308 (MAX_PROC_NAME_SIZE): New macro.
8309 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
8310 (sparc64adilist): New variable.
8311 (adi_proc_list): New variable.
8312 (find_adi_info): New function.
8313 (add_adi_info): New function.
8314 (get_adi_info_proc): New function.
8315 (get_adi_info): New function.
8316 (info_adi_command): New function.
8317 (read_maps_entry): New function.
8318 (adi_available): New function.
8319 (adi_normalize_address): New function.
8320 (adi_align_address): New function.
8321 (adi_convert_byte_count): New function.
8322 (adi_tag_fd): New function.
8323 (adi_is_addr_mapped): New function.
8324 (adi_read_versions): New function.
8325 (adi_write_versions): New function.
8326 (adi_print_versions): New function.
8327 (do_examine): New function.
8328 (do_assign): New function.
8329 (adi_examine_command): New function.
8330 (adi_assign_command): New function.
8331 (_initialize_sparc64_adi_tdep): New function.
8332
11db9430
SM
83332017-08-22 Simon Marchi <simon.marchi@ericsson.com>
8334
8335 * breakpoint.c (breakpoints_info): Rename to ...
8336 (info_breakpoints_command): ... this.
8337 (watchpoints_info): Rename to ...
8338 (info_watchpoints_command): ... this.
8339 (tracepoints_info): Rename to ...
8340 (info_tracepoints_command): ... this.
8341 (_initialize_breakpoint): Adjust.
8342 * dcache.c (dcache_info): Rename to ...
8343 (info_display_command): ... this.
8344 (_initialize_dcache): Adjust.
8345 * frame.h (args_info): Rename to ...
8346 (info_args_command): ... this.
8347 (locals_info): Rename to ...
8348 (info_locals_command): ... this.
8349 * infcmd.c (nofp_registers_info): Rename to ...
8350 (info_registers_command): ... this.
8351 (float_info): Rename to ...
8352 (info_float_command): ... this.
8353 (program_info): Rename to ...
8354 (info_program_command): ... this.
8355 (all_registers_info): Rename to ...
8356 (info_all_registers_command): ... this.
8357 (vector_info): Rename to ...
8358 (info_vector_command): ... this.
8359 (float_info): Rename to ...
8360 (info_float_command): ... this.
8361 (_initialize_infcmd): Adjust.
8362 * inferior.h (term_info): Rename to ...
8363 (info_terminal_command): ... this.
8364 * inflow.c (term_info): Rename to ...
8365 (info_terminal_command): ... this.
8366 (_initialize_inflow): Adjust.
8367 * infrun.c (signals_info): Rename to ...
8368 (info_signals_command): ... this.
8369 (_initialize_infrun): Adjust.
8370 * objc-lang.c (classes_info): Rename to ...
8371 (info_classes_command): ... this.
8372 (selectors_info): Rename to ...
8373 (info_selectors_command): ... this.
8374 (_initialize_objc_language): Adjust.
8375 * printcmd.c (sym_info): Rename to ...
8376 (info_symbol_command): ... this.
8377 (address_info): Rename to ...
8378 (info_address_command): ... this.
8379 (display_info): Rename to ...
8380 (info_display_command): ... this.
8381 (_initialize_printcmd): Adjust.
8382 * reverse.c (bookmarks_info): Rename to ...
8383 (info_breakpoints_command): ... this.
8384 (_initialize_reverse): Adjust.
8385 * ser-go32.c (dos_info): Rename to ...
8386 (info_serial_command): ... this.
8387 (_initialize_ser_dos): Adjust.
8388 * skip.c (skip_info): Rename to ...
8389 (info_skip_command): ... this.
8390 (_initialize_step_skip): Adjust.
8391 * source.c (line_info): Rename to ...
8392 (info_line_command): ... this.
8393 (source_info): Rename to ...
8394 (info_source_command)
8395 * stack.c (frame_info): Rename to ...
8396 (info_frame_command): ... this.
8397 (locals_info): Rename to ...
8398 (info_locals_command): ... this.
8399 (args_info): Rename to ...
8400 (info_args_command): ... this.
8401 (_initialize_stack): Adjust.
8402 * symtab.c (sources_info): Rename to ...
8403 (info_sources_command): ... this.
8404 (variables_info): Rename to ...
8405 (info_variables_command): ... this.
8406 (functions_info): Rename to ...
8407 (info_functions_command): ... this.
8408 (types_info): Rename to ...
8409 (info_types_command): ... this.
8410 (_initialize_symtab): Adjust.
8411 * target.c (target_info): Rename to ...
8412 (info_target_command): ... this.
8413 (initialize_targets): Adjust.
8414 * tracepoint.c (tvariables_info): Rename to ...
8415 (info_tvariables_command): ... this.
8416 (scope_info): Rename to ...
8417 (info_scope_command): ... this.
8418 (trace_dump_actions): Adjust.
8419 (_initialize_tracepoint): Adjust.
8420
b270e6f9
TT
84212017-08-22 Tom Tromey <tom@tromey.com>
8422
8423 * breakpoint.h (install_breakpoint): Update.
8424 * breakpoint.c (add_solib_catchpoint): Update.
8425 (install_breakpoint): Change argument to a std::unique_ptr.
8426 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
8427 (create_breakpoint_sal, create_breakpoint): Update.
8428 (watch_command_1, catch_exec_command_1)
8429 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
8430 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
8431 Return the breakpoint.
8432 (set_raw_breakpoint_without_location, set_raw_breakpoint)
8433 (new_single_step_breakpoint): Update.
8434 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
8435 std::unique_ptr.
8436 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8437 std::unique_ptr.
8438 * break-catch-sig.c (create_signal_catchpoint): Use
8439 std::unique_ptr.
8440 * ada-lang.c (create_ada_exception_catchpoint): Use
8441 std::unique_ptr.
8442
36bd8eaa
TT
84432017-08-22 Tom Tromey <tom@tromey.com>
8444
8445 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
8446
56f37645
TT
84472017-08-22 Tom Tromey <tom@tromey.com>
8448
8449 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
8450 (lookup_partial_symbol): Update.
8451
0b581c69
TT
84522017-08-22 Tom Tromey <tom@tromey.com>
8453
8454 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
8455 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
8456 (find_and_open_source, symtab_to_fullname): Update.
8457 * psymtab.c (psymtab_to_fullname): Update.
8458
14278e1f
TT
84592017-08-22 Tom Tromey <tom@tromey.com>
8460
8461 * exec.c (exec_file_attach): Update.
8462 * linux-thread-db.c (try_thread_db_load): Update.
8463 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
8464 * utils.c (gdb_realpath): Change return type.
8465 (gdb_realpath_keepfile): Update.
8466 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
8467 (_initialize_utils): Register the new self test.
8468 * source.c (openp): Update.
8469 (find_and_open_source): Update.
8470 * nto-tdep.c (nto_find_and_open_solib): Update.
8471 * main.c (set_gdb_data_directory): Update.
8472 (captured_main_1): Update.
8473 * dwarf2read.c (dwarf2_get_dwz_file): Update
8474 (dw2_map_symbol_filenames): Update.
8475 * auto-load.c (auto_load_safe_path_vec_update): Update.
8476 (filename_is_in_auto_load_safe_path_vec): Change type of
8477 "filename_realp".
8478 (auto_load_objfile_script): Update.
8479 (file_is_auto_load_safe): Update. Use std::string.
8480 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
8481
4971c9a7
TT
84822017-08-22 Tom Tromey <tom@tromey.com>
8483
8484 * utils.c (gdb_realpath_keepfile): Return a
8485 gdb::unique_xmalloc_ptr.
8486 * exec.c (exec_file_attach): Update.
8487 * utils.h (gdb_realpath_keepfile): Return a
8488 gdb::unique_xmalloc_ptr.
8489
e3e41d58
TT
84902017-08-22 Tom Tromey <tom@tromey.com>
8491
8492 * compile/compile.c (compile_file_command): Use
8493 gdb::unique_xmalloc_ptr, std::string.
8494 * utils.c (gdb_abspath): Change return type.
8495 * source.c (openp): Update.
8496 * objfiles.c (allocate_objfile): Update.
8497 * main.c (set_gdb_data_directory): Update.
8498 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
8499
0d999a6e
ZZ
85002017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
8501
8502 * cli-cmds.c (list_commands): List actual code around more than
8503 one location.
8504
329d5e7e
JB
85052017-08-21 John Baldwin <jhb@FreeBSD.org>
8506
8507 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
8508
bf223d3e
PA
85092017-08-21 Pedro Alves <palves@redhat.com>
8510
8511 PR gdb/19487
8512 * c-exp.y (variable production): Handle function aliases.
8513 * minsyms.c (msymbol_is_text): New function.
8514 * minsyms.h (msymbol_is_text): Declare.
8515 * symtab.c (find_function_alias_target): New function.
8516 * symtab.h (find_function_alias_target): Declare.
8517
c973d0aa
PA
85182017-08-21 Pedro Alves <palves@redhat.com>
8519
8520 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
8521 typedefs.
8522 * typeprint.c (whatis_exp): If handling "whatis", and expression
8523 is OP_TYPE, strip one typedef level. Otherwise don't strip
8524 typedefs here.
8525 * valops.c (value_cast): Save "to" type before resolving
8526 stubs/typedefs. Use that type as resulting value's type.
8527
2989a365
TT
85282017-08-18 Tom Tromey <tom@tromey.com>
8529 Pedro Alves <palves@redhat.com>
8530
8531 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
8532 * sol-thread.c (sol_thread_resume, sol_thread_wait)
8533 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
8534 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
8535 * proc-service.c (ps_xfer_memory): Use scoped_restore.
8536 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
8537 (linux_get_siginfo_data): Add "thread" argument. Use
8538 scoped_restore.
8539 * linux-nat.c (linux_child_follow_fork)
8540 (check_stopped_by_watchpoint): Use scoped_restore.
8541 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
8542 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
8543 (restore_inferior_ptid, save_inferior_ptid): Remove.
8544 * btrace.c (btrace_fetch): Use scoped_restore.
8545 * bsd-uthread.c (bsd_uthread_fetch_registers)
8546 (bsd_uthread_store_registers): Use scoped_restore.
8547 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
8548 scoped_restore.
8549 * aix-thread.c (aix_thread_resume, aix_thread_wait)
8550 (aix_thread_xfer_partial): Use scoped_restore.
8551 * inferior.h (save_inferior_ptid): Remove.
8552
e60eb288
YQ
85532017-08-18 Yao Qi <yao.qi@linaro.org>
8554
8555 PR tdep/21818
8556 * arm-tdep.c (gdb_print_insn_arm): Mark
8557 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
8558
6d580b63
YQ
85592017-08-18 Yao Qi <yao.qi@linaro.org>
8560
8561 * NEWS: Mention GDBserver's new option "--selftest".
8562 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
8563 * selftest.c: Move it to common/selftest.c.
8564 * selftest.h: Move it to common/selftest.h.
8565 * selftest-arch.c (reset): New function.
8566 (tests_with_arch): Call reset.
8567
86dcbf50
YQ
85682017-08-18 Yao Qi <yao.qi@linaro.org>
8569
8570 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
8571 instead of exception_fprintf and printf_filtered.
8572
7649770c
YQ
85732017-08-18 Yao Qi <yao.qi@linaro.org>
8574
8575 * selftest.c (register_self_test): Rename it to
8576 selftests::register_test.
8577 (run_self_tests): selftest::run_tests.
8578 * selftest.h: Update declarations.
8579 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
8580 selftests::register_test_foreach_arch.
8581 * selftest-arch.h: Update declaration.
8582 * aarch64-tdep.c: Update.
8583 * arm-tdep.c: Likewise.
8584 * disasm-selftests.c: Likewise.
8585 * dwarf2loc.c: Likewise.
8586 * dwarf2-frame.c: Likewise.
8587 * findvar.c: Likewise.
8588 * gdbarch-selftests.c: Likewise.
8589 * maint.c (maintenance_selftest): Likewise.
8590 * regcache.c: Likewise.
8591 * rust-exp.y: Likewise.
8592 * selftest-arch.c: Likewise.
8593 * unittests/environ-selftests.c: Likewise.
8594 * unittests/function-view-selftests.c: Likewise.
8595 * unittests/offset-type-selftests.c: Likewise.
8596 * unittests/optional-selftests.c: Likewise.
8597 * unittests/scoped_restore-selftests.c: Likewise.
8598 * utils-selftests.c: Likewise.
8599
b0cba12e
PA
86002017-08-17 Pedro Alves <palves@redhat.com>
8601
8602 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
8603 local.
8604
4c8aa72d
PA
86052017-08-17 Pedro Alves <palves@redhat.com>
8606
8607 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
8608 field.
8609 (reset_die_in_process): Delete, replaced by ...
8610 (process_die_scope): ... this new class. Make it responsible for
8611 freeing cu->line_header too.
8612 (process_die): Use process_die_scope.
8613 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
8614 cu->line_header_die_owner. Don't release the line header if it's
8615 owned by the CU.
8616 (setup_type_unit_groups): Make the CU/DIE own the line header.
8617 Don't release the line header here.
8618
ba713918
AL
86192017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
8620
8621 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
8622
44d0fb3a
RK
86232017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
8624
8625 * NEWS: Mention new shortcuts for nexti and stepi in TUI
8626 Single-Key mode
8627
a5afdb16
RK
86282017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
8629
8630 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
8631 mode command list.
8632
47613aeb
SH
86332017-08-15 Stafford Horne <shorne@gmail.com>
8634
8635 * MAINTAINERS (Write After Approval): Add Stafford Horne.
8636
9c3cc999
SH
86372017-08-15 Stafford Horne <shorne@gmail.com>
8638
8639 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
8640
206726fb
SDJ
86412017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
8642
8643 PR gdb/21954
8644 * infcmd.c (unset_environment_command): Use the 'clear' method on
8645 the environment instead of resetting it.
8646
0335ac6d
JB
86472017-08-15 John Baldwin <jhb@FreeBSD.org>
8648
8649 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
8650 platforms.
8651
d3abe1c8
TT
86522017-08-14 Tom Tromey <tom@tromey.com>
8653
8654 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
8655 (print_binary_chars): Likewise.
8656 (BITS_IN_BYTES): Remove.
8657
d6382fff
TT
86582017-08-14 Tom Tromey <tom@tromey.com>
8659
8660 PR gdb/21675
8661 * valprint.c (LOW_ZERO): Change value to 034.
8662 (print_octal_chars): Add static_asserts for octal constants.
8663 * printcmd.c (print_scalar_formatted): Add 'd' case.
8664
f978cb06
TT
86652017-08-11 Tom Tromey <tom@tromey.com>
8666
8667 * symfile.c (add_symbol_file_command): Use std::vector.
8668
2f5404b3
TT
86692017-08-14 Tom Tromey <tom@tromey.com>
8670
8671 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
8672 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8673 std::move.
8674 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
8675
de7985c3
PA
86762017-08-11 Pedro Alves <palves@redhat.com>
8677
8678 * infrun.c (process_event_stop_test): Adjust
8679 function_name_is_marked_for_skip call.
8680 * skip.c: Include <list>.
8681 (skiplist_entry): Make it a class with private fields, and
8682 getters/setters.
8683 (skiplist_entry_chain): Delete.
8684 (skiplist_entries): New.
8685 (skiplist_entry_count): Delete.
8686 (highest_skiplist_entry_num): New.
8687 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
8688 (add_skiplist_entry): Delete.
8689 (skiplist_entry::skiplist_entry): New.
8690 (skiplist_entry::add_entry): New.
8691 (skip_file_command, skip_function): Adjust.
8692 (compile_skip_regexp): Delete.
8693 (skip_command): Don't compile regexp here. Adjust to use
8694 skiplist_entry::add_entry.
8695 (skip_info): Adjust to use range-for and getters.
8696 (skip_enable_command, skip_disable_command): Adjust to use
8697 range-for and setters.
8698 (skip_delete_command): Adjust to use std::list.
8699 (add_skiplist_entry): Delete.
8700 (skip_file_p): Delete, refactored as ...
8701 (skiplist_entry::do_skip_file_p): ... this new method.
8702 (skip_gfile_p): Delete, refactored as ...
8703 (skiplist_entry::do_gskip_file_p): ... this new method.
8704 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
8705 (skiplist_entry::skip_function_p): ... this new method.
8706 (function_name_is_marked_for_skip): Now returns bool, and takes
8707 the function sal by const reference. Adjust to use range-for and
8708 skiplist_entry methods.
8709 (_initialize_step_skip): Remove references to
8710 skiplist_entry_chain, skiplist_entry_count.
8711 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
8712 takes the function sal by const reference.
8713
be7d3cd5
YQ
87142017-08-11 Yao Qi <yao.qi@linaro.org>
8715
8716 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
8717 (dwarf2_frame_cache): Remove reset_cache_cleanup.
8718 (dwarf2_frame_cache):
8719 * frame-unwind.c (frame_unwind_try_unwinder): Catch
8720 RETURN_MASK_ALL and set *this_case to NULL.
8721 * frame-unwind.h: Update comments.
8722
1c90d9f0
YQ
87232017-08-11 Yao Qi <yao.qi@linaro.org>
8724
8725 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
8726 (dwarf2_frame_state_copy_regs): Remove.
8727 (dwarf2_frame_state_free_regs): Remove.
8728 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
8729 (dwarf2_restore_rule): Call method .alloc_regs instead of
8730 dwarf2_frame_state_alloc_regs.
8731 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
8732 constructor. Call std::move.
8733 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
8734 (dwarf2_frame_cache): Likewise.
8735
8736 [GDB_SELF_TEST]: Include selftest.h and
8737 selftest-arch.h.
8738 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
8739 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
8740 execute_cfa_program_test.
8741
8742 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
8743 copy ctor, assignment operator, move assignment.
8744 <alloc_regs>: New method.
8745 <swap>: New method.
8746 (struct dwarf2_frame_state): Delete dtor.
8747 (dwarf2_frame_state_alloc_regs): Remove declaration.
8748 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
8749 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
8750
afe37d6b
YQ
87512017-08-11 Yao Qi <yao.qi@linaro.org>
8752
8753 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
8754 (dwarf2_frame_state::dwarf2_frame_state): New.
8755 (dwarf2_frame_state::~dwarf2_frame_state): New.
8756 (dwarf2_fetch_cfa_info): Update.
8757 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
8758 rather than a pointer. Update code.
8759 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
8760 dtor.
8761 <data_align, code_align, retaddr_column>: Change them to const.
8762 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
8763 to bool.
8764
b348037f
YQ
87652017-08-11 Yao Qi <yao.qi@linaro.org>
8766
8767 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
8768 <loc.exp>: New field.
8769 * dwarf2-frame.c (execute_cfa_program): Update.
8770 (dwarf2_frame_prev_register): Update.
8771
e7c9de26
PA
87722017-08-10 Pedro Alves <palves@redhat.com>
8773
8774 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
8775
e8c6b620
JB
87762017-08-09 John Baldwin <jhb@FreeBSD.org>
8777
8778 * fbsd-nat.c (struct fbsd_fork_info): Remove.
8779 (fbsd_pending_children): Use std::list.
8780 (fbsd_remember_child): Likewise.
8781 (fbsd_is_child_pending): Likewise.
8782 (fbsd_pending_vfork_done): Use std::forward_list.
8783 (fbsd_add_vfork_done): Likewise.
8784 (fbsd_is_vfork_done_pending): Likewise.
8785 (fbsd_next_vfork_done): Likewise.
8786
e4a26669
JB
87872017-08-09 John Baldwin <jhb@FreeBSD.org>
8788
8789 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
8790 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
8791 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
8792 for `mapfilename'.
8793 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 8794 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 8795
142311d3
JB
87962017-08-09 John Baldwin <jhb@FreeBSD.org>
8797
8798 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
8799 "filestuff.h".
8800 (fbsd_find_memory_regions): Fix `mapfile' initialization.
8801
42fa2e0e
TT
88022017-08-09 Tom Tromey <tom@tromey.com>
8803
8804 * skip.c (skiplist_entry): New constructor.
8805 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
8806 (skiplist_entry::file_is_glob): Now bool.
8807 (skiplist_entry::file, skiplist_entry::function): Now
8808 std::string.
8809 (make_skip_entry): Return a unique_ptr. Use new.
8810 (free_skiplist_entry, free_skiplist_entry_cleanup)
8811 (make_free_skiplist_entry_cleanup): Remove.
8812 (skip_command, skip_disable_command, add_skiplist_entry)
8813 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
8814 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
8815 (function_name_is_marked_for_skip): Update.
8816 (skip_delete_command): Update. Use delete.
8817
cd3af38d
JW
88182017-08-09 Jiong Wang <jiong.wang@arm.com>
8819
8820 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
8821 (aarch64_linux_core_read_description): New function.
8822 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
8823
29592bde
PA
88242017-08-09 Pedro Alves <palves@redhat.com>
8825
8826 * cp-name-parser.y (cp_comp_to_string): Return a
8827 gdb::unique_xmalloc_ptr<char>.
8828 * cp-support.c (replace_typedefs_qualified_name)
8829 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
8830 (cp_canonicalize_string_full): Use op= instead of explicit
8831 convertion.
8832 (cp_class_name_from_physname, method_name_from_physname)
8833 (cp_func_name, cp_remove_params): Adjust to use
8834 gdb::unique_xmalloc_ptr<char>.
8835 * cp-support.h (cp_comp_to_string): Return a
8836 gdb::unique_xmalloc_ptr<char>.
8837 * python/py-type.c (typy_lookup_type): Adjust to use
8838 gdb::unique_xmalloc_ptr<char>.
8839
b3340438
L
88402017-08-09 H.J. Lu <hongjiu.lu@intel.com>
8841
8842 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
8843
e88e8651
YQ
88442017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
8845 Yao Qi <yao.qi@linaro.org>
8846
8847 * cp-support.c (cp_canonicalize_string_full): Use
8848 gdb::unique_xmalloc_ptr<char>.
8849 (cp_canonicalize_string): Likewise.
8850
f5a29eb0
YQ
88512017-08-09 Yao Qi <yao.qi@linaro.org>
8852
8853 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
8854 * regformats/i386/amd64-avx-avx512.dat: Remove.
8855 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
8856 * regformats/i386/amd64-avx-mpx.dat:Remove.
8857 * regformats/i386/amd64-avx.dat: Remove.
8858 * regformats/i386/amd64-mpx.dat: Remove.
8859 * regformats/i386/i386-avx-avx512.dat: Remove.
8860 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
8861 * regformats/i386/i386-avx-mpx.dat: Remove.
8862 * regformats/i386/i386-mmx.dat: Remove.
8863 * regformats/i386/i386-mpx.dat: Remove.
8864
57757c2f
YQ
88652017-08-09 Yao Qi <yao.qi@linaro.org>
8866
8867 * amd64-tdep.h (tdesc_x32): Remove the declaration.
8868 * amd64-tdep.c: Don't include features/i386/x32*.c.
8869 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
8870 functions.
8871 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
8872 and i386/x32-avx-avx512.
8873 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
8874 and i386/x32.xml.
8875 * features/i386/x32-avx-avx512.c: Removed.
8876 * features/i386/x32-avx-avx512.xml: Removed.
8877 * features/i386/x32-avx.c: Removed.
8878 * features/i386/x32-avx.xml: Removed.
8879 * features/i386/x32.c: Removed.
8880 * features/i386/x32.xml: Removed.
8881 * regformats/i386/x32-avx-avx512.dat: Removed.
8882 * regformats/i386/x32-avx.dat: Removed.
8883 * regformats/i386/x32.dat: Removed.
8884
ba7b109b
MR
88852017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8886
8887 PR breakpoints/21886
8888 * mem-break.c (default_memory_insert_breakpoint): Use
8889 `->placed_address' rather than `->reqstd_address' for the
8890 breakpoint location.
8891
e347efc3
MR
88922017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8893
8894 * arch-utils.c (default_print_insn): Remove arch/mach/endian
8895 assertions.
8896
0dba2a6c
MR
88972017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8898
8899 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
8900 a union of `tdep_info', `tdesc_data' and `id'.
8901 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
8902 rather than `info.tdep_info'.
8903 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
8904 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8905 * i386-tdep.c (i386_gdbarch_init): Likewise.
8906 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
8907 * mips-tdep.c (mips_gdbarch_init): Likewise.
8908 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8909 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8910 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
8911 `info.tdep_info'.
8912 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
8913 `info.tdep_info'.
8914 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8915 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
8916 `info.tdep_info'.
8917 * spu-tdep.c (spu_gdbarch_init): Likewise.
8918 * gdbarch.h: Regenerate.
8919
16eb6b2d
LS
89202017-08-07 Leszek Swirski <leszeks@google.com>
8921
7b005726 8922 PR symtab/20899
16eb6b2d
LS
8923 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
8924
74cbb09e
SM
89252017-08-07 Simon Marchi <simon.marchi@ericsson.com>
8926
8927 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
8928 (gdbsim_open): Rename gdb_argv args object to argv.
8929
ee0c3293
TT
89302017-08-05 Tom Tromey <tom@tromey.com>
8931
8932 * compile/compile-object-load.c (compile_object_load): Use
8933 gdb::unique_xmalloc_ptr.
8934 * cli/cli-dump.c (scan_filename): Rename from
8935 scan_filename_with_cleanup. Change return type.
8936 (scan_expression): Rename from scan_expression_with_cleanup.
8937 Change return type.
8938 (dump_memory_to_file, dump_value_to_file, restore_command):
8939 Use gdb::unique_xmalloc_ptr. Update.
8940 * cli/cli-cmds.c (find_and_open_script): Use
8941 gdb::unique_xmalloc_ptr.
8942 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
8943 * symmisc.c (maintenance_print_symbols)
8944 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
8945 * symfile.c (symfile_bfd_open, generic_load)
8946 (add_symbol_file_command, remove_symbol_file_command): Use
8947 gdb::unique_xmalloc_ptr.
8948 * source.c (openp): Use gdb::unique_xmalloc_ptr.
8949 * psymtab.c (maintenance_print_psymbols): Use
8950 gdb::unique_xmalloc_ptr.
8951 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
8952 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
8953 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
8954 (reload_shared_libraries_1): Likewise.
8955
3232fabd
TT
89562017-08-05 Tom Tromey <tom@tromey.com>
8957
8958 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
8959 (rust_op_vector, rust_set_vector): New typedefs.
8960 (current_parser): New global.
8961 (work_obstack): Change to pointer type. Update all users.
8962 (rust_ast, pstate): Remove globals.
8963 (struct rust_parser): New.
8964 (%union) <params, field_inits>: Change type.
8965 (start, tuple_expr, unit_expr, struct_expr_list, literal)
8966 (field_expr, expr_list, maybe_expr_list, type_list): Update.
8967 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
8968 (convert_params_to_types, convert_params_to_expression): Change
8969 type of "params".
8970 (ast_string): Change type of "fields".
8971 (rust_parse): Make a rust_parser. Remove cleanups.
8972 (rust_lex_tests): Make and install an auto_obstack.
8973
f02fd774
YQ
89742017-08-04 Yao Qi <yao.qi@linaro.org>
8975
8976 * configure.srv (ipa_x32_linux_regobj): New.
8977 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
8978 instead of X86_TDESC_AVX512.
8979 (initialize_low_tracepoint): Call
8980 init_registers_x32_avx_avx512_linux.
8981
91975afd
YQ
89822017-08-04 Yao Qi <yao.qi@linaro.org>
8983
8984 * utils.h (gdb_argv): Add namespace std for nullptr_t.
8985
2331fa3a
RK
89862017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
8987
8988 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
8989
744e4fe1
TT
89902017-08-03 Tom Tromey <tom@tromey.com>
8991
8992 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
8993 Remove.
8994 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
8995
1c034b67
TT
89962017-08-03 Tom Tromey <tom@tromey.com>
8997
8998 * python/py-param.c (compute_enum_values): Use gdb_argv.
8999
773a1edc
TT
90002017-08-03 Tom Tromey <tom@tromey.com>
9001
9002 * utils.h (struct gdb_argv_deleter): New.
9003 (gdb_argv): New class.
9004 * utils.c (gdb_argv::reset): New method.
9005 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9006 * tracefile.c (tsave_command): Use gdb_argv.
9007 * top.c (new_ui_command): Use gdb_argv.
9008 * symmisc.c (maintenance_print_symbols)
9009 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9010 * symfile.c (symbol_file_command, generic_load)
9011 (remove_symbol_file_command): Use gdb_argv.
9012 * stack.c (backtrace_command): Use gdb_argv.
9013 * source.c (add_path, show_substitute_path_command)
9014 (unset_substitute_path_command, set_substitute_path_command):
9015 Use gdb_argv.
9016 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9017 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9018 * remote.c (extended_remote_run, remote_put_command)
9019 (remote_get_command, remote_delete_command): Use gdb_argv.
9020 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9021 (gdbsim_open): Use gdb_argv.
9022 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9023 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9024 * procfs.c (procfs_info_proc): Use gdb_argv.
9025 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9026 * infrun.c (handle_command): Use gdb_argv.
9027 * inferior.c (add_inferior_command, clone_inferior_command):
9028 Use gdb_argv.
9029 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9030 * exec.c (exec_file_command): Use gdb_argv.
9031 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9032 * compile/compile.c (build_argc_argv): Use gdb_argv.
9033
0d50bde3
TT
90342017-08-03 Tom Tromey <tom@tromey.com>
9035
9036 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9037
7f968c89
TT
90382017-08-03 Tom Tromey <tom@tromey.com>
9039
9040 * python/python.c (compute_python_string): Return std::string.
9041 (gdbpy_eval_from_control_command): Update.
9042 (do_start_initialization): Use std::string.
9043 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9044 xstrprintf.
9045 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9046 xstrprintf.
9047
3c9ebddd
TT
90482017-08-03 Tom Tromey <tom@tromey.com>
9049
9050 * top.h (do_restore_instream_cleanup): Remove.
9051 * top.c (do_restore_instream_cleanup): Remove.
9052 (read_command_file): Use scoped_restore.
9053 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9054
b51b225e
TT
90552017-08-03 Tom Tromey <tom@tromey.com>
9056
9057 * cli/cli-script.c (execute_user_command)
9058 (execute_control_command): Use scoped_restore.
9059
ac991630
TT
90602017-08-03 Tom Tromey <tom@tromey.com>
9061
9062 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9063 (execute_user_command): Remove user_call_depth; use
9064 user_args_stack's size instead.
9065
898e0c8e
TT
90662017-08-03 Tom Tromey <tom@tromey.com>
9067
9068 * top.h (in_user_command): Remove.
9069 * top.c (in_user_command): Remove.
9070 * cli/cli-script.c (do_restore_user_call_depth)
9071 (execute_user_command): Update.
9072
26fcd5d7
TT
90732017-08-03 Tom Tromey <tom@tromey.com>
9074
9075 * valops.c (search_struct_method): Use gdb::byte_vector.
9076 * valarith.c (value_concat): Use std::vector.
9077 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9078 (simple_search_memory): Likewise.
9079 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9080 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9081 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9082 * elfread.c (elf_rel_plt_read): Use std::string.
9083 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9084 * cli/cli-dump.c (restore_section_callback): Use
9085 gdb::byte_vector.
9086
7c218e6c
TT
90872017-08-03 Tom Tromey <tom@tromey.com>
9088
9089 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9090
31b68d4a
TT
90912017-08-03 Tom Tromey <tom@tromey.com>
9092
9093 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9094 (tui_register_format): Use scoped_restore.
9095
2ec845e7
TT
90962017-08-03 Tom Tromey <tom@tromey.com>
9097
9098 * reverse.c (exec_direction_default): Remove.
9099 (exec_reverse_once): Use scoped_restore.
9100 * remote.c (restore_remote_timeout): Remove.
9101 (remote_flash_erase, remote_flash_write, remote_flash_done)
9102 (readchar, remote_serial_write): Use scoped_restore.
9103 * cli/cli-script.c (struct source_cleanup_lines_args)
9104 (source_cleanup_lines): Remove.
9105 (script_from_file): Use scoped_restore.
9106 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9107 (source_command): Use scoped_restore.
9108
b3bc8453
TT
91092017-08-03 Tom Tromey <tom@tromey.com>
9110
9111 * utils.h (make_cleanup_free_so): Remove.
9112 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9113 * solist.h (struct so_deleter): New.
9114 (so_list_up): New typedef.
9115 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9116
e3ad2841
TT
91172017-08-03 Tom Tromey <tom@tromey.com>
9118
9119 * utils.h (make_cleanup_restore_current_language): Remove.
9120 * utils.c (do_restore_current_language)
9121 (make_cleanup_restore_current_language): Remove.
9122 * parse.c (parse_exp_in_context_1)
9123 (parse_expression_with_language): Use
9124 scoped_restore_current_language.
9125 * mi/mi-main.c (mi_cmd_execute): Use
9126 scoped_restore_current_language.
9127 * language.h (scoped_restore_current_language): New class.
9128
b80cf838
TT
91292017-08-03 Tom Tromey <tom@tromey.com>
9130
9131 * compile/compile.c (cleanup_unlink_file): Remove.
9132 (compile_to_object): Use gdb::unlinker.
9133 (eval_compile_command): Likewise.
9134
fad0444a
TT
91352017-08-03 Tom Tromey <tom@tromey.com>
9136
9137 * utils.h (make_cleanup_fclose): Remove.
9138 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9139
6e7bc05c
TT
91402017-08-03 Tom Tromey <tom@tromey.com>
9141
9142 * top.c (open_terminal_stream): Return gdb_file_up.
9143 (new_ui_command): Update.
9144
4a45905b
TT
91452017-08-03 Tom Tromey <tom@tromey.com>
9146
9147 * source.c (print_source_lines_base, forward_search_command)
9148 (reverse_search_command): Use gdb_file_up.
9149
7cd06d6e
TT
91502017-08-03 Tom Tromey <tom@tromey.com>
9151
9152 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9153
ed166945
TT
91542017-08-03 Tom Tromey <tom@tromey.com>
9155
9156 * cli/cli-cmds.c (find_and_open_script): Change return type.
9157 Remove "streamp" and "full_path" parameters.
9158 (source_script_with_search): Update.
9159 * auto-load.c (source_script_file): Update.
9160 * cli/cli-cmds.h (find_and_open_script): Change type.
9161 (open_script): New struct.
9162
d419f42d
TT
91632017-08-03 Tom Tromey <tom@tromey.com>
9164
9165 * xml-support.c (xml_fetch_content_from_file): Update.
9166 * ui-file.c (stdio_file::open): Update.
9167 * tracefile-tfile.c (tfile_start): Update.
9168 * remote.c (remote_file_put, remote_file_get): Update.
9169 * nat/linux-procfs.c (linux_proc_get_int)
9170 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
9171 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
9172 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
9173 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
9174 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
9175 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
9176 * linux-nat.c (linux_proc_pending_signals): Update.
9177 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
9178 (file_closer): Remove.
9179 * compile/compile.c (compile_to_object): Update.
9180 * common/filestuff.h (struct gdb_file_deleter): New.
9181 (gdb_file_up): New typedef.
9182 (gdb_fopen_cloexec): Change return type.
9183 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
9184 * cli/cli-dump.c (fopen_with_cleanup): Remove.
9185 (dump_binary_file, restore_binary_file): Update.
9186 * auto-load.c (auto_load_objfile_script_1): Update.
9187
4a2b031d
TT
91882017-08-03 Tom Tromey <tom@tromey.com>
9189
9190 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
9191 (info_static_tracepoint_markers_command): Likewise.
9192 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
9193 * skip.c (skip_info): Use ui_out_emit_table.
9194 * progspace.c (print_program_space): Use ui_out_emit_table.
9195 * osdata.c (info_osdata): Use ui_out_emit_table.
9196 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
9197 ui_out_emit_table.
9198 * linux-thread-db.c (info_auto_load_libthread_db): Use
9199 ui_out_emit_table.
9200 * inferior.c (print_inferior): Use ui_out_emit_table.
9201 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
9202 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
9203 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
9204 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
9205 * ui-out.h (class ui_out_emit_table): New.
9206
a4f320fd
MR
92072017-08-02 Maciej W. Rozycki <macro@imgtec.com>
9208
9209 * mips-tdep.c (mips_fpu_type_str): New function.
9210 (mips_dump_tdep): Call it.
9211
a2f1f308
MR
92122017-08-01 Maciej W. Rozycki <macro@imgtec.com>
9213
9214 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
9215 `->mips_fpu_type'.
9216
7e5ed83b
XR
92172017-07-31 Xavier Roirand <roirand@adacore.com>
9218
9219 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9220
4c9dc811
XR
92212017-07-27 Xavier Roirand <roirand@adacore.com>
9222
9223 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
9224
27d41eac
YQ
92252017-07-26 Yao Qi <yao.qi@linaro.org>
9226
9227 * cli/cli-cmds.c (maintenancechecklist): New variable.
9228 * gdbcmd.h (maintenancechecklist): Declare it.
9229 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
9230 Call i386_linux_read_description with different masks.
9231 * maint.c (maintenance_check_command): New function.
9232 (_initialize_maint_cmds): Call add_prefix_cmd.
9233 * target-descriptions.c (tdesc_reg): override operator != and ==.
9234 (tdesc_type): Likewise.
9235 (tdesc_feature): Likewise.
9236 (target_desc): Likewise.
9237 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
9238 (maintenance_check_xml_descriptions): New function.
9239 (_initialize_target_descriptions) Add command "xml-descriptions".
9240 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
9241
ea03d0d3
YQ
92422017-07-26 Yao Qi <yao.qi@linaro.org>
9243
9244 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
9245 Include features/i386/32bit-*.c.
9246 (i386_linux_read_description): Generate target description if it
9247 doesn't exist.
9248 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
9249 functions.
9250 * features/i386/32bit-linux.c: Re-generated.
9251 * features/i386/32bit-sse.c: Likewise.
9252 * target-descriptions.c (print_c_feature::visit): Print code to
9253 set register number if needed.
9254 (print_c_feature) <m_next_regnum>: New field.
9255
25aa13e5
YQ
92562017-07-26 Yao Qi <yao.qi@linaro.org>
9257
9258 * features/Makefile (CFILES): Rename with TDESC_CFILES.
9259 (FEATURE_XMLFILES): New.
9260 (FEATURE_CFILES): New.
9261 New rules.
9262 (clean-cfiles): Remove generated c files.
9263 * features/i386/32bit-avx.c: Generated.
9264 * features/i386/32bit-avx512.c: Generated.
9265 * features/i386/32bit-core.c: Generated.
9266 * features/i386/32bit-linux.c: Generated.
9267 * features/i386/32bit-mpx.c: Generated.
9268 * features/i386/32bit-pkeys.c: Generated.
9269 * features/i386/32bit-sse.c: Generated.
9270 * target-descriptions.c: Include algorithm.
9271 (tdesc_element_visitor): Add method visit_end.
9272 (print_c_tdesc): Implement visit_end.
9273 (print_c_tdesc:: m_filename_after_features): Move it to
9274 protected.
9275 (print_c_feature): New class.
9276 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
9277 name starts with "i386/32bit-".
9278
6eb1e6a8
YQ
92792017-07-26 Yao Qi <yao.qi@linaro.org>
9280
9281 * target-descriptions.c (tdesc_element_visitor): New class.
9282 (tdesc_element): New class.
9283 (tdesc_reg): Inherit from tdesc_element.
9284 (tdesc_reg::accept): New function.
9285 (tdesc_type): Inherit from tdesc_element.
9286 (tdesc_type::accept): New function.
9287 (tdesc_feature): Inherit from tdesc_element.
9288 (tdesc_feature::accept): New function.
9289 (target_desc): Inherit from tdesc_element.
9290 (target_desc::target_desc): New.
9291 (target_desc::~target_desc): New.
9292 (target_desc::accept): New.
9293 (allocate_target_description): Use new.
9294 (free_target_description): Use delete.
9295 (print_c_tdesc): New class.
9296 (maint_print_c_tdesc_cmd): Adjust.
9297
9298 * features/aarch64.c: Re-generated.
9299 * features/arc-arcompact.c: Re-generated.
9300 * features/arc-v2.c: Re-generated.
9301 * features/arm/arm-with-iwmmxt.c: Re-generated.
9302 * features/arm/arm-with-m.c: Re-generated.
9303 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
9304 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
9305 * features/arm/arm-with-neon.c: Re-generated.
9306 * features/arm/arm-with-vfpv2.c: Re-generated.
9307 * features/arm/arm-with-vfpv3.c: Re-generated.
9308 * features/i386/amd64-avx-avx512.c: Re-generated.
9309 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9310 * features/i386/amd64-avx.c: Re-generated.
9311 * features/i386/amd64-avx-linux.c: Re-generated.
9312 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
9313 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9314 * features/i386/amd64-avx-mpx.c: Re-generated.
9315 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
9316 * features/i386/amd64.c: Re-generated.
9317 * features/i386/amd64-linux.c: Re-generated.
9318 * features/i386/amd64-mpx.c: Re-generated.
9319 * features/i386/amd64-mpx-linux.c: Re-generated.
9320 * features/i386/i386-avx-avx512.c: Re-generated.
9321 * features/i386/i386-avx-avx512-linux.c: Re-generated.
9322 * features/i386/i386-avx.c: Re-generated.
9323 * features/i386/i386-avx-linux.c: Re-generated.
9324 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
9325 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
9326 * features/i386/i386-avx-mpx.c: Re-generated.
9327 * features/i386/i386-avx-mpx-linux.c: Re-generated.
9328 * features/i386/i386.c: Re-generated.
9329 * features/i386/i386-linux.c: Re-generated.
9330 * features/i386/i386-mmx.c: Re-generated.
9331 * features/i386/i386-mmx-linux.c: Re-generated.
9332 * features/i386/i386-mpx.c: Re-generated.
9333 * features/i386/i386-mpx-linux.c: Re-generated.
9334 * features/i386/x32-avx-avx512.c: Re-generated.
9335 * features/i386/x32-avx-avx512-linux.c: Re-generated.
9336 * features/i386/x32-avx.c: Re-generated.
9337 * features/i386/x32-avx-linux.c: Re-generated.
9338 * features/i386/x32.c: Re-generated.
9339 * features/i386/x32-linux.c: Re-generated.
9340 * features/microblaze.c: Re-generated.
9341 * features/microblaze-with-stack-protect.c: Re-generated.
9342 * features/mips64-dsp-linux.c: Re-generated.
9343 * features/mips64-linux.c: Re-generated.
9344 * features/mips-dsp-linux.c: Re-generated.
9345 * features/mips-linux.c: Re-generated.
9346 * features/nds32.c: Re-generated.
9347 * features/nios2.c: Re-generated.
9348 * features/nios2-linux.c: Re-generated.
9349 * features/rs6000/powerpc-32.c: Re-generated.
9350 * features/rs6000/powerpc-32l.c: Re-generated.
9351 * features/rs6000/powerpc-403.c: Re-generated.
9352 * features/rs6000/powerpc-403gc.c : Re-generated.
9353 * features/rs6000/powerpc-405.c: Re-generated.
9354 * features/rs6000/powerpc-505.c: Re-generated.
9355 * features/rs6000/powerpc-601.c: Re-generated.
9356 * features/rs6000/powerpc-602.c: Re-generated.
9357 * features/rs6000/powerpc-603.c: Re-generated.
9358 * features/rs6000/powerpc-604.c: Re-generated.
9359 * features/rs6000/powerpc-64.c: Re-generated.
9360 * features/rs6000/powerpc-64l.c: Re-generated.
9361 * features/rs6000/powerpc-7400.c: Re-generated.
9362 * features/rs6000/powerpc-750.c: Re-generated.
9363 * features/rs6000/powerpc-860.c: Re-generated.
9364 * features/rs6000/powerpc-altivec32.c: Re-generated.
9365 * features/rs6000/powerpc-altivec32l.c: Re-generated.
9366 * features/rs6000/powerpc-altivec64.c: Re-generated.
9367 * features/rs6000/powerpc-altivec64l.c: Re-generated.
9368 * features/rs6000/powerpc-cell32l.c: Re-generated.
9369 * features/rs6000/powerpc-cell64l.c: Re-generated.
9370 * features/rs6000/powerpc-e500.c: Re-generated.
9371 * features/rs6000/powerpc-e500l.c: Re-generated.
9372 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
9373 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
9374 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
9375 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
9376 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
9377 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
9378 * features/rs6000/powerpc-vsx32.c: Re-generated.
9379 * features/rs6000/powerpc-vsx32l.c: Re-generated.
9380 * features/rs6000/powerpc-vsx64.c: Re-generated.
9381 * features/rs6000/powerpc-vsx64l.c: Re-generated.
9382 * features/rs6000/rs6000.c: Re-generated.
9383 * features/s390-linux32.c: Re-generated.
9384 * features/s390-linux32v1.c: Re-generated.
9385 * features/s390-linux32v2.c: Re-generated.
9386 * features/s390-linux64.c: Re-generated.
9387 * features/s390-linux64v1.c: Re-generated.
9388 * features/s390-linux64v2.c: Re-generated.
9389 * features/s390-te-linux64.c: Re-generated.
9390 * features/s390-tevx-linux64.c: Re-generated.
9391 * features/s390-vx-linux64.c: Re-generated.
9392 * features/s390x-linux64.c: Re-generated.
9393 * features/s390x-linux64v1.c: Re-generated.
9394 * features/s390x-linux64v2.c: Re-generated.
9395 * features/s390x-te-linux64.c: Re-generated.
9396 * features/s390x-tevx-linux64.c: Re-generated.
9397 * features/s390x-vx-linux64.c: Re-generated.
9398 * features/sparc/sparc32-solaris.c: Re-generated.
9399 * features/sparc/sparc64-solaris.c: Re-generated.
9400 * features/tic6x-c62x.c: Re-generated.
9401 * features/tic6x-c62x-linux.c: Re-generated.
9402 * features/tic6x-c64x.c: Re-generated.
9403 * features/tic6x-c64x-linux.c: Re-generated.
9404 * features/tic6x-c64xp.c: Re-generated.
9405 * features/tic6x-c64xp-linux.c: Re-generated.
9406
35b4818d
YQ
94072017-07-26 Yao Qi <yao.qi@linaro.org>
9408
9409 * i386-linux-tdep.c (i386_linux_read_description): New function.
9410 (i386_linux_core_read_description): Call
9411 i386_linux_read_description.
9412 * i386-linux-tdep.h (i386_linux_read_description): Declare.
9413 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
9414 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
9415 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
9416 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
9417 * x86-linux-nat.c (x86_linux_read_description): Call
9418 i386_linux_read_description.
9419
8e2141c6
YQ
94202017-07-26 Yao Qi <yao.qi@linaro.org>
9421
9422 * NEWS: Mention it.
9423 * features/Makefile (%.c: %.xml): Pass the xml file name to
9424 command "maint print c-tdesc".
9425 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
9426 name from 'arg'.
9427
b468ff4c
YQ
94282017-07-26 Yao Qi <yao.qi@linaro.org>
9429
9430 * target-descriptions.c (target_desc): Add ctor and dtor. Do
9431 in-class initialization.
9432 (tdesc_create_feature): Call new instead of XCNEW.
9433 (free_target_description): Ue delete.
9434
b9c0e1b4
JB
94352017-07-25 John Baldwin <jhb@FreeBSD.org>
9436
9437 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
9438
a04b5337
YQ
94392017-07-25 Yao Qi <yao.qi@linaro.org>
9440
9441 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
9442 constant.
9443 (amd64_x32_init_abi): Likewise.
9444 * amd64-tdep.h (amd64_init_abi): Update declaration.
9445 (amd64_x32_init_abi): Likewise.
9446
02ad7fc2
YQ
94472017-07-25 Yao Qi <yao.qi@linaro.org>
9448
9449 PR tdep/21717
9450 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
9451 condition for FPSCR.
9452 (arm_linux_store_inferior_registers): Likewise.
9453
b6f48cb0
TT
94542017-07-22 Tom Tromey <tom@tromey.com>
9455
9456 * break-catch-syscall.c (struct catch_syscall_inferior_data)
9457 <syscalls_counts>: Now a std::vector.
9458 (get_catch_syscall_inferior_data): Use "new".
9459 (catch_syscall_inferior_data_cleanup): Use "delete".
9460 (insert_catch_syscall, remove_catch_syscall)
9461 (clear_syscall_counts): Update.
9462
e12c9b7a
TT
94632017-07-22 Tom Tromey <tom@tromey.com>
9464
9465 * break-catch-syscall.c (syscall_catchpoint)
9466 <syscalls_to_be_caught>: Now a std::vector<int>
9467 (~syscall_catchpoint): Remove.
9468 (insert_catch_syscall, remove_catch_syscall)
9469 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
9470 (print_mention_catch_syscall, print_recreate_catch_syscall):
9471 Update.
9472 (create_syscall_event_catchpoint): Change type of "filter"
9473 parameter.
9474 (catch_syscall_split_args): Return a std::vector.
9475 (catch_syscall_command_1, catching_syscall_number_1): Update.
9476
4fa8aeac
TT
94772017-07-22 Tom Tromey <tom@tromey.com>
9478
9479 * break-catch-throw.c (struct exception_catchpoint)
9480 <exception_rx>: Now a std::string.
9481 (~exception_catchpoint): Remove.
9482 (print_one_detail_exception_catchpoint): Update.
9483 (handle_gnu_v3_exceptions): Change type of except_rx.
9484 (extract_exception_regexp): Return a std::string.
9485 (catch_exception_command_1): Update.
9486
f746a154
TT
94872017-07-22 Tom Tromey <tom@tromey.com>
9488
9489 * break-catch-sig.c (gdb_signal_type): Remove typedef.
9490 (struct signal_catchpoint) <signals_to_be_caught>: Now a
9491 std::vector.
9492 <catch_all>: Now a bool.
9493 (~signal_catchpoint): Remove.
9494 (signal_catchpoint_insert_location)
9495 (signal_catchpoint_remove_location)
9496 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
9497 (signal_catchpoint_print_mention)
9498 (signal_catchpoint_print_recreate)
9499 (signal_catchpoint_explains_signal): Update.
9500 (create_signal_catchpoint): Change type of "filter" and
9501 "catch_all".
9502 (catch_signal_split_args): Return a std::vector. Change type of
9503 "catch_all".
9504 (catch_signal_command): Update.
9505
47e77640
PA
95062017-07-20 Pedro Alves <palves@redhat.com>
9507
9508 * ada-lang.c (ada_language_defn): Make extern.
9509 (_initialize_ada_language): Remove add_language call.
9510 * c-lang.c (c_language_defn, cplus_language_defn)
9511 (asm_language_defn, minimal_language_defn): Make extern.
9512 (_initialize_c_language): Delete.
9513 * completer.c (compare_cstrings): Delete, moved to utils.h.
9514 * d-lang.c (d_language_defn): Make extern.
9515 (_initialize_d_language): Remove add_language calls.
9516 * defs.h (enum language): Add comment.
9517 * f-lang.c (f_language_defn): Make extern.
9518 (_initialize_f_language): Remove add_language call.
9519 * go-lang.c (go_language_defn): Make extern.
9520 (_initialize_go_language): Remove add_language call.
9521 * language.c: Include <algorithm>.
9522 (languages): Redefine as const array.
9523 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
9524 (set_language_command): Handle "local". Use for-range loop.
9525 (set_language): Remove loop.
9526 (language_enum): Rewrite.
9527 (language_def, language_str): Remove loops.
9528 (add_language): Delete.
9529 (add_set_language_command): New, based on add_languages.
9530 (skip_language_trampoline): Adjust.
9531 (local_language_defn): Delete.
9532 (language_gdbarch_post_init): Adjust.
9533 (_initialize_language): Remove add_language calls. Call
9534 add_set_language_command.
9535 * language.h (add_language): Delete.
9536 (auto_language_defn)
9537 (unknown_language_defn, minimal_language_defn, ada_language_defn)
9538 (asm_language_defn, c_language_defn, cplus_language_defn)
9539 (d_language_defn, f_language_defn, go_language_defn)
9540 (m2_language_defn, objc_language_defn, opencl_language_defn)
9541 (pascal_language_defn, rust_language_defn): Declare.
9542 * m2-lang.c (m2_language_defn): Make extern.
9543 (_initialize_m2_language): Remove add_language call.
9544 * objc-lang.c (objc_language_defn): Make extern.
9545 (_initialize_objc_language): Remove add_language call.
9546 * opencl-lang.c (opencl_language_defn): Make extern.
9547 (_initialize_opencl_language): Remove add_language call.
9548 * p-lang.c (pascal_language_defn): Make extern.
9549 (_initialize_pascal_language): Delete.
9550 * rust-lang.c (rust_language_defn): Make extern.
9551 (_initialize_rust_language): Delete.
9552 * utils.h (compare_cstrings): New static inline function.
9553
edb0c9cb
PA
95542017-07-20 Pedro Alves <palves@redhat.com>
9555
9556 * ada-lang.c (ada_to_fixed_type_1): Adjust.
9557 (get_var_value): Constify parameters.
9558 (get_int_var_value): Change prototype.
9559 (to_fixed_range_type): Adjust.
9560 * ada-lang.h (get_int_var_value): Change prototype.
9561
a778f165
PA
95622017-07-20 Pedro Alves <palves@redhat.com>
9563
9564 * dwarf2read.c (dw2_lookup_symbol): Use
9565 SYMBOL_MATCHES_SEARCH_NAME.
9566 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
9567
42edd901
PA
95682017-07-20 Pedro Alves <palves@redhat.com>
9569
9570 * block.c (block_iter_name_step, block_iter_name_first)
9571 (block_iter_name_next): Delete.
9572 (block_lookup_symbol_primary): Adjust to use
9573 dict_iter_match_first/dict_iter_match_next.
9574 * block.h (block_iter_name_first, block_iter_name_next): Delete
9575 declarations.
9576 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
9577 dict_iter_match_first/dict_iter_match_next.
9578
cf325299
PA
95792017-07-20 Pedro Alves <palves@redhat.com>
9580
9581 * cp-support.c (cp_find_first_component_aux): Add missing case for
9582 end of string.
9583
c5ed0576
DB
95842017-07-18 David Blaikie <dblaikie@gmail.com>
9585
9586 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
9587 of dwo_cu's dwo_file.
9588
27841e76
YQ
95892017-07-18 Yao Qi <yao.qi@linaro.org>
9590
9591 * remote.c (store_registers_using_G): Remove one line comment.
9592
cfb7e58b
YQ
95932017-07-18 Yao Qi <yao.qi@linaro.org>
9594
9595 * regcache.c (regcache_cpy): Simplify it.
9596 (regcache::cpy_no_passthrough): Remove it.
9597 * regcache.h (cpy_no_passthrough): Remove it.
9598 (regcache_dup, regcache_cpy): Update comments.
9599
386535dd
PA
96002017-07-18 Pedro Alves <palves@redhat.com>
9601
9602 * remote-sim.c (sim_command_completer): Adjust to work with a
9603 completion_tracker instead of a VEC.
9604
c45ec17c
PA
96052017-07-17 Pedro Alves <palves@redhat.com>
9606
9607 * completer.c (complete_source_filenames): New function.
9608 (complete_address_and_linespec_locations): New function.
9609 (location_completer): Use complete_address_and_linespec_locations.
9610 (completion_tracker::build_completion_result): Honor the tracker's
9611 request to suppress append.
9612 * completer.h (completion_tracker::suppress_append_ws)
9613 (completion_tracker::set_suppress_append_ws): New methods.
9614 (completion_tracker::m_suppress_append_ws): New field.
9615 (complete_source_filenames): New declaration.
9616 * linespec.c (linespec_complete_what): New.
9617 (struct ls_parser) <complete_what, completion_word,
9618 completion_quote_char, completion_quote_end, completion_tracker>:
9619 New fields.
9620 (string_find_incomplete_keyword_at_end): New.
9621 (linespec_lexer_lex_string): Record quote char. If in completion
9622 mode, don't throw.
9623 (linespec_lexer_consume_token): Advance the completion word point.
9624 (linespec_lexer_peek_token): Save/restore completion info.
9625 (save_stream_and_consume_token): New.
9626 (set_completion_after_number): New.
9627 (linespec_parse_basic): Set what to complete next depending on
9628 token. Handle function and label completions specially.
9629 (parse_linespec): Disable objc shortcut in completion mode. Set
9630 what to complete next depending on token type. Skip keyword if in
9631 completion mode.
9632 (complete_linespec_component, linespec_complete): New.
9633 * linespec.h (linespec_complete): Declare.
9634
be966d42
PA
96352017-07-17 Pedro Alves <palves@redhat.com>
9636
9637 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
9638 Handle 'operator<' / 'operator<<'.
9639
a2459270
PA
96402017-07-17 Pedro Alves <palves@redhat.com>
9641
9642 * completer.c (collect_explicit_location_matches): Handle
9643 MATCH_LABEL.
9644 (convert_explicit_location_to_linespec): New, factored out from
9645 ...
9646 (convert_explicit_location_to_sals): ... this.
9647 (complete_label): New.
9648 (linespec_complete_label, find_label_symbols_in_block): New.
9649 (find_label_symbols): Add completion_mode parameter and adjust to
9650 call find_label_symbols_in_block.
9651 * linespec.h (linespec_complete_label): Declare.
9652
c6756f62
PA
96532017-07-17 Pedro Alves <palves@redhat.com>
9654
9655 * ada-lang.c (ada_collect_symbol_completion_matches): Add
9656 complete_symbol_mode parameter.
9657 * cli/cli-cmds.c (complete_command): Get the completion result out
9658 of the handle_brkchars tracker if used a custom word point.
9659 * completer.c: Include "linespec.h".
9660 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
9661 (advance_to_expression_complete_word_point): New.
9662 (completion_tracker::completes_to_completion_word): New.
9663 (complete_files_symbols): Pass down
9664 complete_symbol_mode::EXPRESSION.
9665 (explicit_options, probe_options): New.
9666 (collect_explicit_location_matches): Complete on the
9667 explictit_loc->foo instead of word. Use
9668 linespec_complete_function. Handle MATCH_LINE. Handle offering
9669 keyword and options completions.
9670 (backup_text_ptr): Delete.
9671 (skip_keyword): New.
9672 (complete_explicit_location): Remove 'word' parameter. Add
9673 language, quoted_arg_start and quoted_arg_end parameters.
9674 Rewrite, parsing left to right.
9675 (location_completer): Rewrite.
9676 (location_completer_handle_brkchars): New function.
9677 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
9678 (enum complete_line_internal_reason): Adjust comments.
9679 (completion_tracker::discard_completions): New.
9680 (completer_handle_brkchars_func_for_completer): Handle
9681 location_completer.
9682 (gdb_custom_word_point_brkchars)
9683 (gdb_org_rl_basic_quote_characters): New.
9684 (gdb_completion_word_break_characters_throw)
9685 (completion_find_completion_word): Handle trackers that use a
9686 custom word point.
9687 (completion_tracker::advance_custom_word_point_by): New.
9688 (completion_tracker::build_completion_result): Don't rely on
9689 readline appending the quote char.
9690 (gdb_rl_attempted_completion_function_throw): Handle trackers that
9691 use a custom word point.
9692 (gdb_rl_attempted_completion_function): Restore
9693 rl_basic_quote_characters.
9694 * completer.h (class completion_tracker): Extend intro comment.
9695 (completion_tracker::set_quote_char)
9696 (completion_tracker::quote_char)
9697 (completion_tracker::set_use_custom_word_point)
9698 (completion_tracker::use_custom_word_point)
9699 (completion_tracker::custom_word_point)
9700 (completion_tracker::set_custom_word_point)
9701 (completion_tracker::advance_custom_word_point_by)
9702 (completion_tracker::completes_to_completion_word)
9703 (completion_tracker::discard_completions): New methods.
9704 (completion_tracker::m_quote_char)
9705 (completion_tracker::m_use_custom_word_point)
9706 (completion_tracker::m_custom_word_point): New fields.
9707 (advance_to_expression_complete_word_point): Declare.
9708 * f-lang.c (f_collect_symbol_completion_matches): Add
9709 complete_symbol_mode parameter.
9710 * language.h (struct language_defn)
9711 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
9712 parameter.
9713 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
9714 (linespec_complete_function): New function.
9715 (linespec_lexer_lex_keyword): Adjust.
9716 * linespec.h (linespec_keywords, linespec_complete_function): New
9717 declarations.
9718 * location.c (find_end_quote): New function.
9719 (explicit_location_lex_one): Add explicit_completion_info
9720 parameter. Save quoting info. Don't throw if being called for
9721 completion. Don't handle Ada operators here.
9722 (is_cp_operator, skip_op_false_positives, first_of)
9723 (explicit_location_lex_one_function): New function.
9724 (string_to_explicit_location): Replace 'dont_throw' parameter with
9725 an explicit_completion_info pointer parameter. Handle it. Don't
9726 use explicit_location_lex_one to lex function names. Use
9727 explicit_location_lex_one_function instead.
9728 * location.h (struct explicit_completion_info): New.
9729 (string_to_explicit_location): Replace 'dont_throw' parameter with
9730 an explicit_completion_info pointer parameter.
9731 * symtab.c (default_collect_symbol_completion_matches_break_on):
9732 Add complete_symbol_mode parameter. Handle LINESPEC mode.
9733 (default_collect_symbol_completion_matches)
9734 (collect_symbol_completion_matches): Add complete_symbol_mode
9735 parameter.
9736 (collect_symbol_completion_matches_type): Pass down
9737 complete_symbol_mode::EXPRESSION.
9738 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9739 parameter. Handle LINESPEC mode.
9740 * symtab.h (complete_symbol_mode): New.
9741 (default_collect_symbol_completion_matches_break_on)
9742 (default_collect_symbol_completion_matches)
9743 (collect_symbol_completion_matches)
9744 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9745 parameter.
9746
1d550c82
PA
97472017-07-17 Pedro Alves <palves@redhat.com>
9748
9749 * utils.c (enum class strncmp_iw_mode): New.
9750 (strcmp_iw): Rename to ...
9751 (strncmp_iw_with_mode): ... this. Add string2_len and mode
9752 parameters. Handle them.
9753 (strncmp_iw): New.
9754 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
9755 * utils.h (strncmp_iw): Declare.
9756 (strcmp_iw): Move describing comments here.
9757
8090b426
PA
97582017-07-17 Pedro Alves <palves@redhat.com>
9759
9760 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
9761 CP_OPERATOR_STR.
9762 * c-typeprint.c (is_type_conversion_operator): Use
9763 CP_OPERATOR_STR.
9764 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
9765 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
9766 CP_OPERATOR_LEN.
9767 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
9768 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
9769 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
9770 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
9771 CP_OPERATOR_STR.
9772 * location.c: Include "cp-support.h".
9773 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
9774 CP_OPERATOR_STR.
9775 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
9776 CP_OPERATOR_LEN.
9777
6a2c1b87
PA
97782017-07-17 Pedro Alves <palves@redhat.com>
9779
9780 * cli/cli-cmds.c (complete_command): Use a completion tracker
9781 along with completion_find_completion_word for handle_brkchars
9782 phase.
9783 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
9784 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
9785 (struct gdb_rl_completion_word_info): New.
9786 (gdb_rl_find_completion_word): New.
9787 (completion_find_completion_word): New.
9788 * completer.h (completion_find_completion_word): Declare.
9789
eb3ff9a5
PA
97902017-07-17 Pedro Alves <palves@redhat.com>
9791
9792 * ada-lang.c (symbol_completion_match): Adjust comments.
9793 (symbol_completion_add): Replace vector parameter with
9794 completion_tracker parameter. Use it.
9795 (ada_make_symbol_completion_list): Rename to...
9796 (ada_collect_symbol_completion_matches): ... this. Add
9797 completion_tracker parameter and use it.
9798 (ada_language_defn): Adjust.
9799 * break-catch-syscall.c (catch_syscall_completer): Adjust
9800 prototype and work with completion_tracker instead of VEC.
9801 * breakpoint.c (condition_completer): Adjust prototype and work
9802 with completion_tracker instead of VEC.
9803 * c-lang.c (c_language_defn, cplus_language_defn)
9804 (asm_language_defn, minimal_language_defn): Adjust to renames.
9805 * cli/cli-cmds.c (complete_command): Rework using
9806 completion_tracker. Catch exceptions when completing.
9807 * cli/cli-decode.c (integer_unlimited_completer)
9808 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
9809 with completion_tracker instead of VEC.
9810 * command.h (struct completion_tracker): Forward declare.
9811 (completer_ftype, completer_handle_brkchars_ftype): Change
9812 types.
9813 (complete_on_cmdlist, complete_on_enum): Adjust.
9814 * completer.c: Include <algorithm>.
9815 (struct gdb_completer_state): New.
9816 (current_completion): New global.
9817 (readline_line_completion_function): Delete.
9818 (noop_completer, filename_completer)
9819 (filename_completer_handle_brkchars, complete_files_symbols)
9820 (linespec_location_completer): Adjust to work with a
9821 completion_tracker instead of a VEC.
9822 (string_or_empty): New.
9823 (collect_explicit_location_matches): Adjust to work with a
9824 completion_tracker instead of a VEC.
9825 (explicit_location_completer): Rename to ...
9826 (complete_explicit_location): ... this and adjust to work with a
9827 completion_tracker instead of a VEC.
9828 (location_completer): Adjust to work with a completion_tracker
9829 instead of a VEC.
9830 (add_struct_fields): Adjust to work with a completion_list instead
9831 of VEC.
9832 (expression_completer): Rename to ...
9833 (complete_expression): ... this and adjust to work with a
9834 completion_tracker instead of a VEC. Use complete_files_symbols.
9835 (expression_completer): Reimplement on top of complete_expression.
9836 (symbol_completer): Adjust to work with a completion_tracker
9837 instead of a VEC.
9838 (enum complete_line_internal_reason): Add describing comments.
9839 (complete_line_internal_normal_command): Adjust to work with a
9840 completion_tracker instead of a VEC.
9841 (complete_line_internal): Rename to ...
9842 (complete_line_internal_1): ... this and adjust to work with a
9843 completion_tracker instead of a VEC. Assert TEXT is NULL in the
9844 handle_brkchars phase.
9845 (new_completion_tracker): Delete.
9846 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
9847 complete_line_internal_1.
9848 (free_completion_tracker): Delete.
9849 (INITIAL_COMPLETION_HTAB_SIZE): New.
9850 (completion_tracker::completion_tracker)
9851 (completion_tracker::~completion_tracker): New.
9852 (maybe_add_completion): Delete.
9853 (completion_tracker::maybe_add_completion)
9854 (completion_tracker::add_completion)
9855 (completion_tracker::add_completions): New.
9856 (throw_max_completions_reached_error): Delete.
9857 (complete_line): Adjust to work with a completion_tracker instead
9858 of a VEC. Don't create a completion_tracker_t or check for max
9859 completions here.
9860 (command_completer, command_completer_handle_brkchars)
9861 (signal_completer, reg_or_group_completer_1)
9862 (reg_or_group_completer, default_completer_handle_brkchars):
9863 Adjust to work with a completion_tracker.
9864 (gdb_completion_word_break_characters_throw): New.
9865 (gdb_completion_word_break_characters): Reimplement.
9866 (line_completion_function): Delete.
9867 (completion_tracker::recompute_lowest_common_denominator)
9868 (expand_preserving_ws)
9869 (completion_tracker::build_completion_result)
9870 (completion_result::completion_result)
9871 (completion_result::completion_result)
9872 (completion_result::~completion_result)
9873 (completion_result::completion_result)
9874 (completion_result::release_match_list, compare_cstrings)
9875 (completion_result::sort_match_list)
9876 (completion_result::reset_match_list)
9877 (gdb_rl_attempted_completion_function_throw)
9878 (gdb_rl_attempted_completion_function): New.
9879 * completer.h (completion_list, struct completion_result)
9880 (class completion_tracker): New.
9881 (complete_line): Add completion_tracker parameter.
9882 (readline_line_completion_function): Delete.
9883 (gdb_rl_attempted_completion_function): New.
9884 (noop_completer, filename_completer, expression_completer)
9885 (location_completer, symbol_completer, command_completer)
9886 (signal_completer, reg_or_group_completer): Update prototypes.
9887 (completion_tracker_t, new_completion_tracker)
9888 (make_cleanup_free_completion_tracker): Delete.
9889 (enum maybe_add_completion_enum): Delete.
9890 (maybe_add_completion): Delete.
9891 (throw_max_completions_reached_error): Delete.
9892 * corefile.c (complete_set_gnutarget): Adjust to work with a
9893 completion_tracker instead of a VEC.
9894 * cp-abi.c (cp_abi_completer): Adjust to work with a
9895 completion_tracker instead of a VEC.
9896 * d-lang.c (d_language_defn): Adjust.
9897 * disasm.c (disassembler_options_completer): Adjust to work with a
9898 completion_tracker instead of a VEC.
9899 * f-lang.c (f_make_symbol_completion_list): Rename to ...
9900 (f_collect_symbol_completion_matches): ... this. Adjust to work
9901 with a completion_tracker instead of a VEC.
9902 (f_language_defn): Adjust.
9903 * go-lang.c (go_language_defn): Adjust.
9904 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
9905 Adjust to work with a completion_tracker instead of a VEC.
9906 * infrun.c (handle_completer): Likewise.
9907 * interps.c (interpreter_completer): Likewise.
9908 * interps.h (interpreter_completer): Likewise.
9909 * language.c (unknown_language_defn, auto_language_defn)
9910 (local_language_defn): Adjust.
9911 * language.h (language_defn::la_make_symbol_completion_list):
9912 Rename to ...
9913 (language_defn::la_collect_symbol_completion_matches): ... this
9914 and adjust to work with a completion_tracker instead of a VEC.
9915 * m2-lang.c (m2_language_defn): Adjust.
9916 * objc-lang.c (objc_language_defn): Adjust.
9917 * opencl-lang.c (opencl_language_defn): Adjust.
9918 * p-lang.c (pascal_language_defn): Adjust.
9919 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
9920 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
9921 with a completion_tracker.
9922 * rust-lang.c (rust_language_defn): Adjust.
9923 * symtab.c (free_completion_list, do_free_completion_list)
9924 (return_val, completion_tracker): Delete.
9925 (completion_list_add_name, completion_list_add_symbol)
9926 (completion_list_add_msymbol, completion_list_objc_symbol)
9927 (completion_list_add_fields, add_symtab_completions): Add
9928 completion_tracker parameter and use it.
9929 (default_make_symbol_completion_list_break_on_1): Rename to...
9930 (default_collect_symbol_completion_matches_break_on): ... this.
9931 Add completion_tracker parameter and use it instead of allocating
9932 a completion tracker here.
9933 (default_make_symbol_completion_list_break_on): Delete old
9934 implementation.
9935 (default_make_symbol_completion_list): Delete.
9936 (default_collect_symbol_completion_matches): New.
9937 (make_symbol_completion_list): Delete.
9938 (collect_symbol_completion_matches): New.
9939 (make_symbol_completion_type): Rename to ...
9940 (collect_symbol_completion_matches_type): ... this. Add
9941 completion_tracker parameter and use it instead of VEC.
9942 (make_file_symbol_completion_list_1): Rename to...
9943 (collect_file_symbol_completion_matches): ... this. Add
9944 completion_tracker parameter and use it instead of VEC.
9945 (make_file_symbol_completion_list): Delete.
9946 (add_filename_to_list): Use completion_list instead of a VEC.
9947 (add_partial_filename_data::list): Now a completion_list.
9948 (make_source_files_completion_list): Work with a completion_list
9949 instead of a VEC.
9950 * symtab.h: Include "completer.h".
9951 (default_make_symbol_completion_list_break_on)
9952 (default_make_symbol_completion_list, make_symbol_completion_list)
9953 (make_symbol_completion_type, make_file_symbol_completion_list)
9954 (make_source_files_completion_list): Delete.
9955 (default_collect_symbol_completion_matches_break_on)
9956 (default_collect_symbol_completion_matches)
9957 (collect_symbol_completion_matches)
9958 (collect_symbol_completion_matches_type)
9959 (collect_file_symbol_completion_matches)
9960 (make_source_files_completion_list): New.
9961 * top.c (init_main): Don't install a rl_completion_entry_function
9962 hook. Install a rl_attempted_completion_function hook instead.
9963 * tui/tui-layout.c (layout_completer): Adjust to work with a
9964 completion_tracker.
9965 * tui/tui-regs.c (tui_reggroup_completer):
9966 * tui/tui-win.c (window_name_completer, focus_completer)
9967 (winheight_completer): Adjust to work with a completion_tracker.
9968 * value.c: Include "completer.h".
9969 (complete_internalvar): Adjust to work with a completion_tracker.
9970 * value.h (complete_internalvar): Likewise.
9971
6e1dbf8c
PA
99722017-07-17 Pedro Alves <palves@redhat.com>
9973
9974 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
9975 renames.
9976 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
9977 comments to completer_ftype's declaration.
9978 <completer_handle_brkchars>: Change type to
9979 completer_handle_brkchars_ftype.
9980 * command.h (completer_ftype): Add describing comment and give
9981 names to parameters.
9982 (completer_ftype_void): Rename to ...
9983 (completer_handle_brkchars_ftype) ... this. Add describing comment.
9984 (set_cmd_completer_handle_brkchars): Adjust.
9985 * completer.c (filename_completer_handle_brkchars): New function.
9986 (complete_line_internal_normal_command): New function, factored
9987 out from ...
9988 (complete_line_internal): ... here.
9989 (command_completer_handle_brkchars)
9990 (default_completer_handle_brkchars)
9991 (completer_handle_brkchars_func_for_completer): New functions.
9992 * completer.h (set_gdb_completion_word_break_characters): Delete
9993 declaration.
9994 (completer_handle_brkchars_func_for_completer): New declaration.
9995 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
9996 completer_handle_brkchars_func_for_completer.
9997
78b13106
PA
99982017-07-17 Pedro Alves <palves@redhat.com>
9999
10000 * completer.c (symbol_completer): New function, based on
10001 make_symbol_completion_list_fn.
10002 * completer.h (symbol_completer): New declaration.
10003 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10004 * python/py-cmd.c (completers): Adjust.
10005 * symtab.c (make_symbol_completion_list_fn): Delete.
10006 * symtab.h (make_symbol_completion_list_fn): Delete.
10007 * cli/cli-decode.c (add_cmd): Adjust.
10008
bbf2f4df
PA
100092017-07-17 Pedro Alves <palves@redhat.com>
10010
10011 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10012 * dwarf2read.c: Include "filename-seen-cache.h".
10013 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10014 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10015 * filename-seen-cache.c: New file.
10016 * filename-seen-cache.h: New file.
10017 * symtab.c: Include "filename-seen-cache.h".
10018 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10019 (create_filename_seen_cache, clear_filename_seen_cache)
10020 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10021 to filename-seen-cache.h/filename-seen-cache.c.
10022 (output_source_filename, sources_info)
10023 (maybe_add_partial_symtab_filename)
10024 (make_source_files_completion_list): Adjust to use
10025 filename_seen_cache.
10026
330cdd98
PA
100272017-07-17 Pedro Alves <palves@redhat.com>
10028
10029 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10030 fields.
10031 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10032 dwarf2_debug_sections*)): New.
10033 (dwarf2_per_objfile::dwarf2_per_objfile(const
10034 dwarf2_per_objfile&)): Declare as deleted.
10035 (dwarf2_per_objfile::operator=): Declare as deleted.
10036 (dwarf2_per_objfile::dwarf2_per_objfile)
10037 (dwarf2_per_objfile::~dwarf2_per_objfile)
10038 (dwarf2_per_objfile::free_cached_comp_units): New.
10039 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10040 ctor. Call dwarf2_per_objfile's ctor manually.
10041 (dwarf2_locate_sections): Deleted/refactored as ...
10042 (dwarf2_per_objfile::locate_sections): ... this new method.
10043 (free_cached_comp_units): Defer to
10044 dwarf2_per_objfile::free_cached_comp_units.
10045 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10046
8880f2a9
TT
100472017-07-14 Tom Tromey <tom@tromey.com>
10048
10049 PR rust/21764:
10050 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10051 parameter.
10052 <UNOP_SIZEOF>: Split into separate case.
10053 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10054
65547233
TT
100552017-07-14 Tom Tromey <tom@tromey.com>
10056
10057 PR rust/21763:
10058 * symtab.c (symbol_matches_domain): Add language_rust to special
10059 case.
10060 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10061 treat LOC_TYPEDEF symbols as variables.
10062
8f14146e
PA
100632017-07-14 Pedro Alves <palves@redhat.com>
10064
10065 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10066 symtabs matching all symtabs with SRCFILE as file name instead of
10067 only considering the first hit, with lookup_symtab.
10068
2347965c
SM
100692017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10070
10071 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10072 operator_name parameters.
10073 (gen_expr): Update function call.
10074
40f4af28
SM
100752017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10076
10077 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10078 parameter.
10079 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10080 Likewise.
10081 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10082 parameter, use agent_expr::gdbarch instead, update function
10083 calls.
10084 (locexpr_tracepoint_var_ref): Likewise.
10085 (loclist_tracepoint_var_ref): Likewise.
10086 * ax-gdb.c (gen_trace_static_fields): Likewise.
10087 (gen_traced_pop): Likewise.
10088 (gen_frame_args_address): Likewise.
10089 (gen_frame_locals_address): Likewise.
10090 (gen_var_ref): Likewise.
10091 (gen_struct_ref_recursive): Likewise.
10092 (gen_static_field): Likewise.
10093 (gen_maybe_namespace_elt): Likewise.
10094 (gen_expr): Likewise.
10095 (gen_trace_for_var): Likewise.
10096 (gen_trace_for_expr): Likewise.
10097 (gen_trace_for_return_address): Likewise.
10098
053f8057
SM
100992017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10100
10101 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10102 parameter.
10103 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10104
6661ad48
SM
101052017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10106
10107 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10108 from ax, update calls.
10109 (gen_usual_arithmetic): Likewise.
10110 (gen_integral_promotions): Likewise.
10111 (gen_bitfield_ref): Likewise.
10112 (gen_primitive_field): Likewise.
10113 (gen_struct_ref_recursive): Likewise.
10114 (gen_struct_ref): Likewise.
10115 (gen_maybe_namespace_elt): Likewise.
10116 (gen_struct_elt_for_reference): Likewise.
10117 (gen_namespace_elt): Likewise.
10118 (gen_aggregate_elt_ref): Likewise.
10119 (gen_expr): Get gdbarch from ax, update calls.
10120 (gen_expr_binop_rest): Likewise.
10121
c55a47e7
PA
101222017-07-13 Pedro Alves <palves@redhat.com>
10123
10124 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10125 as default tdesc.
10126 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10127 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10128 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10129 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10130 tdep.
10131 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10132 Get final tdesc from the tdep.
10133 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10134 default tdesc.
10135 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10136 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10137 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10138 Use it as default tdesc.
10139 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10140 down to amd_init_abi. No longer handle fallback tdesc here.
10141 * amd64-tdep.h (tdesc_x32): Declare.
10142 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10143 parameter.
10144 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10145 as default tdesc.
10146
55efceab
AA
101472017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10148
10149 * s390-linux-tdep.c (s390_process_record): Add support for
10150 instructions new in arch12.
10151
0aa37b65
JB
101522017-07-11 John Baldwin <jhb@FreeBSD.org>
10153
10154 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10155 PT_GETFSBASE and PT_GETGSBASE.
10156 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10157 PT_SETGSBASE.
10158
48aeef91
JB
101592017-07-11 John Baldwin <jhb@FreeBSD.org>
10160
10161 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
10162 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
10163 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
10164 those rules.
10165 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
10166 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
10167 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
10168 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
10169 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
10170 * features/i386/amd64.xml: Add 64bit-segments.xml.
10171 * features/i386/amd64-avx-avx512.c: Regenerated.
10172 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
10173 * features/i386/amd64-avx-mpx.c: Regenerated.
10174 * features/i386/amd64-avx.c: Regenerated.
10175 * features/i386/amd64-mpx.c: Regenerated.
10176 * features/i386/amd64.c: Regenerated.
10177 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
10178 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10179 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
10180 * regformats/i386/amd64-avx.dat: Regenerated.
10181 * regformats/i386/amd64-mpx.dat: Regenerated.
10182 * regformats/i386/amd64.dat: Regenerated.
10183
77c501bc
YQ
101842017-07-10 Yao Qi <yao.qi@linaro.org>
10185
10186 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10187 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10188
6dc8d757
AK
101892017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
10190
10191 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
10192 unsetenv.
10193 * gnulib/aclocal.m4: Regenerate.
10194 * gnulib/config.in: Regenerate.
10195 * gnulib/configure: Regenerate.
10196 * gnulib/import/Makefile.am: Regenerate.
10197 * gnulib/import/Makefile.in: Regenerate.
10198 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
10199 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
10200 * gnulib/import/m4/environ.m4: New file.
10201 * gnulib/import/m4/setenv.m4: New file.
10202 * gnulib/import/setenv.c: New file.
10203 * gnulib/import/unsetenv.c: New file.
10204
266934d1
SM
102052017-07-09 Simon Marchi <simon.marchi@ericsson.com>
10206
10207 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
10208 address when op is DW_OP_addr.
10209
03278692
TT
102102017-07-09 Tom Tromey <tom@tromey.com>
10211
10212 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
10213 check and apply to outer type.
10214
4b654465
JB
102152017-07-07 John Baldwin <jhb@FreeBSD.org>
10216
10217 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
10218 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
10219 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
10220 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
10221
2af9fc44
JB
102222017-07-07 John Baldwin <jhb@FreeBSD.org>
10223
10224 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
10225
382b69bb
JB
102262017-07-07 John Baldwin <jhb@FreeBSD.org>
10227
10228 * corelow.c (get_core_siginfo): Remove.
10229 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
10230 instead of get_core_siginfo.
10231 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
10232 * gdbarch.h: Re-generate.
10233 * gdbarch.c: Re-generate.
10234 * linux-tdep.c (linux_core_xfer_siginfo): New.
10235 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
10236
6e5eab33
JB
102372017-07-07 John Baldwin <jhb@FreeBSD.org>
10238
10239 * corelow.c (thread_section_name): Move to ...
10240 * gdbcore.h (thread_section_name): ... here.
10241
929edea9
JB
102422017-07-07 John Baldwin <jhb@FreeBSD.org>
10243
10244 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
10245 (struct siginfo32): New.
10246 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
10247 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
10248 via ptrace(PT_LWPINFO).
10249
762c974a
JB
102502017-07-07 John Baldwin <jhb@FreeBSD.org>
10251
10252 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
10253 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
10254 (fbsd_get_siginfo_type): New.
10255 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
10256 (_initialize_fbsd_tdep): New.
10257
33c5cd75
DB
102582017-07-06 David Blaikie <dblaikie@gmail.com>
10259
10260 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
10261 a singular dwo_unit*) to support multiple CUs in the same way that
10262 multiple TUs are supported.
10263 (create_cus_hash_table): Replace create_dwo_cu with a function for
10264 parsing multiple CUs from a DWO file.
10265 (open_and_init_dwo_file): Use create_cus_hash_table rather than
10266 create_dwo_cu.
10267 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
10268 htab_find, rather than comparing the signature to a singleton CU in
10269 the dwo_file.
10270
8455d262
PA
102712017-07-06 Pedro Alves <palves@redhat.com>
10272
10273 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
10274
4da3eb35
PA
102752017-07-04 Pedro Alves <palves@redhat.com>
10276
10277 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
10278 * gdbtypes.h (TYPE_STATIC): Delete.
10279 (struct fn_field) <is_public, is_abstract, is_static, is_final,
10280 is_synchronized, is_native>: Delete.
10281 <dummy>: Bump.
10282 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
10283 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
10284 (TYPE_FN_FIELD_ABSTRACT): Delete.
10285
5bfd255c
SM
102862017-07-03 Simon Marchi <simon.marchi@ericsson.com>
10287
10288 * buffer.h (buffer_finish): Fix spelling mistakes.
10289
25c54127
EZ
102902017-07-01 Eli Zaretskii <eliz@gnu.org>
10291
10292 * .dir-locals.el: Automatically switch to C-style comments in
10293 versions of Emacs that support the feature.
10294
dc4bde35
SDJ
102952017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10296 Pedro Alves <palves@redhat.com>
10297
10298 PR cli/21688
10299 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
10300 (process_next_line): New variable 'inline_cmd'.
10301 Adjust 'if' clauses for "python", "compile" and "guile" to use
10302 'command_name_equals' and check for '!inline_cmd'.
10303
51ed89aa
SDJ
103042017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10305
10306 PR cli/21688
10307 * cli/cli-script.c (command_name_equals_not_inline): New function.
10308 (process_next_line): Adjust 'if' clauses for "python", "compile"
10309 and "guile" to use command_name_equals_not_inline.
10310
eb17d413
PA
103112017-06-29 Pedro Alves <palves@redhat.com>
10312
10313 * completer.c (expression_completer): Call
10314 linespec_location_completer instead of location_completer.
10315
195bcdd5
PA
103162017-06-29 Pedro Alves <palves@redhat.com>
10317
10318 * completer.c (expression_completer): Remove code that recomputes
10319 'text' from 'word'.
10320
adc764e7
YQ
103212017-06-29 Yao Qi <yao.qi@linaro.org>
10322
10323 * regformats/regdat.sh: Generate code with
10324 "ifndef IN_PROCESS_AGENT".
10325
6e75794e
PA
103262017-06-28 Pedro Alves <palves@redhat.com>
10327
10328 * command.h: Include "common/scoped_restore.h".
10329
bc491f2e
YQ
103302017-06-28 Yao Qi <yao.qi@linaro.org>
10331
10332 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
10333 instead of obstack_grow.
10334
41664b45
DG
103352017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
10336
10337 PR gdb/21337
10338 * symfile.c (reread_symbols): Call objfiles_changed just before
10339 read_symbols.
10340
6da67eb1
PA
103412017-06-27 Pedro Alves <palves@redhat.com>
10342
10343 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
10344 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
10345 (completion_list_add_symbol, completion_list_add_msymbol):
10346 ... these new functions.
10347 (add_symtab_completions)
10348 (default_make_symbol_completion_list_break_on_1): Adjust.
10349
23732b1e
PA
103502017-06-27 Pedro Alves <palves@redhat.com>
10351
10352 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
10353 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
10354 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
10355 dtor.
10356 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
10357 'storage_obstack' field an auto_obstack. In-class initialize all
10358 non-bitfield fields. Make minsyms_read bool.
10359 * symfile.c (read_symbols): Adjust.
10360
a4d1e79a
AH
103612017-06-27 Alan Hayward <alan.hayward@arm.com>
10362
10363 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
10364 (gdbsim_store_register): Likewise.
10365
8268c778
PA
103662017-06-27 Pedro Alves <palves@redhat.com>
10367
10368 * c-exp.y (name_obstack): Now an auto_obstack.
10369 (yylex): Use auto_obstack::clear.
10370 (c_parse): Use auto_obstack::clear instead of reinitializing and
10371 freeing the obstack.
10372 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
10373 * d-exp.y (name_obstack): Now an auto_obstack.
10374 (yylex): Use auto_obstack::clear.
10375 (d_parse): Use auto_obstack::clear instead of reinitializing and
10376 freeing the obstack.
10377 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
10378 auto_obstack.
10379 * dwarf2read.c (create_addrmap_from_index)
10380 (dwarf2_build_psymtabs_hard)
10381 (update_enumeration_type_from_children): Likewise.
10382 * gdb_obstack.h (auto_obstack): New type.
10383 * go-exp.y (name_obstack): Now an auto_obstack.
10384 (build_packaged_name): Use auto_obstack::clear.
10385 (go_parse): Use auto_obstack::clear instead of reinitializing and
10386 freeing the obstack.
10387 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
10388 auto_obstack.
10389 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
10390 * rust-exp.y (work_obstack): Now an auto_obstack.
10391 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
10392 reinitializing and freeing the obstack.
10393 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
10394 (host_char_to_target): Use auto_obstack.
10395 * utils.h (make_cleanup_obstack_free): Delete declaration.
10396 * valprint.c (generic_emit_char, generic_printstr): Use
10397 auto_obstack.
10398
db665f42
SM
103992017-06-27 Simon Marchi <simon.marchi@ericsson.com>
10400
10401 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
10402 thread.
10403 (darwin_init_thread_list): Don't update dummy thread.
10404 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
10405
873c0814
SM
104062017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10407
10408 * record-full.c (netorder16): Remove.
10409
8b5a7a6e
SM
104102017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10411
10412 * common/diagnostics.h: Define macros for GCC.
10413 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
10414 * common/vec.h: Include diagnostics.h.
10415 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
10416 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
10417 warning.
10418
d1435379
SM
104192017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10420
10421 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
10422 New macro.
10423 * ada-lex.l: Ignore deprecated register warnings.
10424
cc75e0fd
SM
104252017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10426
10427 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
10428 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
10429
07809eaf
SM
104302017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10431
10432 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
10433 its own line.
10434
f076f034
SM
104352017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10436
10437 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
10438
0dd5cbc5
AH
104392017-06-23 Alan Hayward <alan.hayward@arm.com>
10440
10441 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
10442 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
10443 (xtensa_register_read_masked): Likewise.
10444
d4c6ce5b
SDJ
104452017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
10446
10447 * common/environ.c (gdb_environ::unset): Update comment.
10448
16892a03
AH
104492017-06-22 Alan Hayward <alan.hayward@arm.com>
10450
10451 * python/py-unwind.c (pyuw_sniffer): Allocate space for
10452 registers.
10453
d7dcbefc
AH
104542017-06-22 Alan Hayward <alan.hayward@arm.com>
10455
10456 * record-full.c (record_full_exec_insn): Use byte_vector.
10457
b30ff123
YQ
104582017-06-22 Yao Qi <yao.qi@linaro.org>
10459
10460 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
10461 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10462
4fa847d7
AH
104632017-06-22 Alan Hayward <alan.hayward@arm.com>
10464
10465 * remote.c (cached_reg): Move from here...
10466 * regcache.h (cached_reg): ...to here.
10467 * python/py-unwind.c (struct reg_info): Remove.
10468 (cached_frame_info): Use cached_reg_t.
10469 (pyuw_prev_register): Likewise.
10470 (pyuw_sniffer): Use cached_reg_t and allocate registers.
10471 (pyuw_dealloc_cache): Free all registers.
10472
f4906a9a
PA
104732017-06-22 Pedro Alves <palves@redhat.com>
10474 Simon Marchi <simon.marchi@ericsson.com>
10475
10476 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
10477 warning.
10478 * common/diagnostics.h: New file.
10479
b45a1208
PA
104802017-06-22 Pedro Alves <palves@redhat.com>
10481
10482 * common/agent.h: Add include guards.
10483
e4da2c61
SM
104842017-06-21 Simon Marchi <simon.marchi@ericsson.com>
10485
10486 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
10487 talk about addressable units instead of bytes.
10488
96160d60
SDJ
104892017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10490
10491 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
10492 of '::const_iterator'.
10493
9a6c7d9c
SDJ
104942017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10495
10496 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10497 'unittests/environ-selftests.c'.
10498 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
10499 * charset.c (find_charset_names): Declare object 'iconv_env'.
10500 Update code to use 'iconv_env' object. Remove call to
10501 'free_environ'.
10502 * common/environ.c: Include <utility>.
10503 (make_environ): Delete function.
10504 (free_environ): Delete function.
10505 (gdb_environ::clear): New function.
10506 (gdb_environ::operator=): New function.
10507 (gdb_environ::get): Likewise.
10508 (environ_vector): Delete function.
10509 (set_in_environ): Delete function.
10510 (gdb_environ::set): New function.
10511 (unset_in_environ): Delete function.
10512 (gdb_environ::unset): New function.
10513 (gdb_environ::envp): Likewise.
10514 * common/environ.h: Include <vector>.
10515 (struct gdb_environ): Delete; transform into...
10516 (class gdb_environ): ... this class.
10517 (free_environ): Delete prototype.
10518 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
10519 environ_vector): Likewise.
10520 * infcmd.c (run_command_1): Update code to call
10521 'envp' from 'gdb_environ' class.
10522 (environment_info): Update code to call methods from 'gdb_environ'
10523 class.
10524 (unset_environment_command): Likewise.
10525 (path_info): Likewise.
10526 (path_command): Likewise.
10527 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
10528 (inferior::inferior): Initialize 'environment' using the host's
10529 information.
10530 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
10531 Include "environ.h".
10532 (class inferior) <environment>: Change type from 'struct
10533 gdb_environ' to 'gdb_environ'.
10534 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
10535 methods from 'gdb_environ' class.
10536 * solib.c (solib_find_1): Likewise
10537 * unittests/environ-selftests.c: New file.
10538
75c554cf
YQ
105392017-06-20 Yao Qi <yao.qi@linaro.org>
10540
10541 * features/i386/i386-linux.xml: Exchange the order of including
10542 32bit-linux.xml and 32bit-sse.xml.
10543 * features/i386/i386-linux.c: Regenerated.
10544
72ddacb7
YQ
105452017-06-20 Yao Qi <yao.qi@linaro.org>
10546
10547 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
10548 Delete copy ctor and assignment operator.
10549 (tdesc_type): Likewise.
10550 (tdesc_feature): Likewise.
10551 (tdesc_free_reg): Remove.
10552 (tdesc_create_reg): Use new.
10553 (tdesc_free_type): Remove.
10554 (tdesc_create_vector): Use new.
10555 (tdesc_create_union): Likewise.
10556 (tdesc_create_flags): Likewise.
10557 (tdesc_create_enum): Likewise.
10558 (tdesc_free_feature): Delete.
10559 (free_target_description): Use delete.
10560
325c9fd4
JB
105612017-06-19 John Baldwin <jhb@FreeBSD.org>
10562
10563 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
10564 registers.
10565
16b7a719
PA
105662017-06-19 Pedro Alves <palves@redhat.com>
10567
10568 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
10569 after gdb::unlinker.
10570
1c8e01c9
SDJ
105712017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
10572
10573 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
10574 gdb_environ to access an environment variable.
10575
ffce45d2
TP
105762017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10577
10578 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
10579 gdb_byte*.
10580
1d4fbac9
SM
105812017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10582
10583 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
10584
8465943a
SM
105852017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10586
10587 * configure: Re-generate.
10588 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
10589
3e019bdc
SM
105902017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10591
10592 * configure: Re-generate.
10593 * warning.m4: Pass -Werror to compiler when checking for
10594 supported warning flags.
10595
cf0dd6f0
SM
105962017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10597
10598 * Makefile.in (COMPILE.pre): Add "-x c++".
10599
6f98355c
YQ
106002017-06-16 Alan Hayward <alan.hayward@arm.com>
10601 Pedro Alves <palves@redhat.com>
10602 Yao Qi <yao.qi@linaro.org>
10603
10604 * defs.h (RequireLongest): New.
10605 (extract_integer): Declare function template.
10606 (extract_signed_integer): Remove the declaration, but define it
10607 static inline.
10608 (extract_unsigned_integer): Likewise.
10609 (store_integer): Declare function template.
10610 (store_signed_integer): Remove the declaration, but define it
10611 static inline.
10612 (store_unsigned_integer): Likewise.
10613 * findvar.c (extract_integer): New function template.
10614 (extract_signed_integer): Remove.
10615 (extract_unsigned_integer): Remove.
10616 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
10617 instantiations.
10618 (store_integer): New function template.
10619 (store_signed_integer): Remove.
10620 (store_unsigned_integer): Remove.
10621 (store_integer): Explicit instantiations.
10622 * regcache.c (regcache_raw_read_signed): Update.
10623 (regcache::raw_read): New function.
10624 (regcache::raw_read_signed): Remove.
10625 (regcache::raw_read_unsigned): Remove.
10626 (regcache_raw_read_unsigned): Update.
10627 (regcache_raw_write_unsigned): Update.
10628 (regcache::raw_write_signed): Remove.
10629 (regcache::raw_write): New function.
10630 (regcache_cooked_read_signed): Update.
10631 (regcache::raw_write_unsigned): Remove.
10632 (regcache::cooked_read_signed): Remove.
10633 (regcache_cooked_read_unsigned): Update.
10634 (regcache::cooked_read_unsigned): Remove.
10635 (regcache_cooked_write_signed): Update.
10636 (regcache_cooked_write_unsigned): Update.
10637 * regcache.h (regcache) <raw_read_signed>: Remove.
10638 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
10639 <raw_read, raw_write>: New.
10640 <cooked_read_signed, cooked_write_signed>: Remove.
10641 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
10642 <cooked_read, cooked_write>: New.
10643 * sh64-tdep.c (sh64_pseudo_register_read): Update.
10644 (sh64_pseudo_register_write): Update.
10645
a87dc45a
AK
106462017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
10647
10648 * arc-tdep.c (arc_disassembler_options): New variable.
10649 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
10650 of default_print_insn.
10651 (arc_delayed_print_insn): Set info->section when needed,
10652 use default_print_insn to retrieve a disassembler.
10653
45159d6a
SDJ
106542017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
10655
10656 PR gdb/21574
10657 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
10658 to mention $SHELL and startup-with-shell.
10659
b46c4cf0
MF
106602017-06-14 Max Filippov <jcmvbkbc@gmail.com>
10661
10662 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
10663
6394c606
YQ
106642017-06-14 Yao Qi <yao.qi@linaro.org>
10665
10666 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
10667 default_print_insn instead of print_insn_aarch64.
10668 * arm-tdep.c (gdb_print_insn_arm): Call
10669 default_print_insn instead of print_insn_big_arm
10670 and print_insn_little_arm.
10671 * i386-tdep.c (i386_print_insn): Call default_print_insn
10672 instead of print_insn_i386.
10673 * ia64-tdep.c (ia64_print_insn): Call
10674 default_print_insn instead of print_insn_ia64.
10675 * mips-tdep.c (gdb_print_insn_mips): Call
10676 default_print_insn instead of print_insn_big_mips
10677 and print_insn_little_mips.
10678 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
10679 instead of print_insn_spu.
10680
d5722aa2
PA
106812017-06-14 Pedro Alves <palves@redhat.com>
10682
10683 * ada-lang.c: Include "common/byte-vector.h".
10684 (ada_value_primitive_packed_val): Use gdb::byte_vector.
10685 * charset.c (wchar_iterator::iterate): Resize the vector instead
10686 of reserving it.
10687 * common/byte-vector.h: Include "common/def-vector.h".
10688 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
10689 * cli/cli-dump.c: Include "common/byte-vector.h".
10690 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
10691 * common/byte-vector.h: New file.
10692 * common/def-vector.h: New file.
10693 * common/default-init-alloc.h: New file.
10694 * dwarf2loc.c: Include "common/byte-vector.h".
10695 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
10696 instead of reserving it.
10697 * dwarf2read.c: Include "common/byte-vector.h".
10698 (data_buf::m_vec): Now a gdb::byte_vector.
10699 * gdb_regex.c: Include "common/def-vector.h".
10700 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
10701 * mi/mi-main.c: Include "common/byte-vector.h".
10702 (mi_cmd_data_read_memory): Use gdb::byte_vector.
10703 * printcmd.c: Include "common/byte-vector.h".
10704 (print_scalar_formatted): Use gdb::byte_vector.
10705 * valprint.c: Include "common/byte-vector.h".
10706 (maybe_negate_by_bytes, print_decimal_chars): Use
10707 gdb::byte_vector.
10708
01ec7a27
SM
107092017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10710
10711 * darwin-nat.c: Include "nat/fork-inferior.h".
10712
848d9074
SM
107132017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10714
10715 * configure.nat: Factor out Darwin bits that are not
10716 architecture-specific. Add fork-inferior.o.
10717
3b912944
SM
107182017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10719
10720 * configure.nat: Factor out AIX bits that are not
10721 architecture-specific. Add fork-inferior.o.
10722
55acdf22
AA
107232017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10724
10725 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
10726 (read_pieced_value, write_pieced_value): ...here. Reduce to
10727 wrappers that just call rw_pieced_value.
10728
f65e2044
AA
107292017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10730
10731 * dwarf2loc.c (write_pieced_value): When writing the data for a
10732 memory piece, use write_memory_with_notification instead of
10733 write_memory.
10734
23f945bf
AA
107352017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10736
10737 * valops.c (read_value_memory): Change embedded_offset to
10738 represent a bit offset instead of a byte offset.
10739 * value.h (read_value_memory): Adjust comment.
10740
f236533e
AA
107412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10742
10743 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
10744 dest_offset_bits and source_offset_bits.
10745 (write_pieced_value): Likewise.
10746
65d84b76
AA
107472017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10748
10749 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
10750 given by DW_OP_bit_piece.
10751 (write_pieced_value): Likewise.
10752
242d31ab
AA
107532017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10754
10755 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
10756 some other preparations to the places where sufficient information
10757 is available.
10758 (write_pieced_value): Likewise.
10759
03c8af18
AA
107602017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10761
10762 * dwarf2loc.c (bits_to_bytes): New function.
10763 (read_pieced_value): Fix offset calculations for register pieces
10764 on big-endian targets.
10765 (write_pieced_value): Likewise.
10766
840989c1
AA
107672017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10768
10769 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
10770 (write_pieced_value): Likewise.
10771
359b19bb
AA
107722017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10773
10774 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
10775 transfer the source value's least significant bits, instead of its
10776 lowest-addressed ones. Rename type_len to max_offset.
10777 (read_pieced_value): Mirror above changes to write_pieced_value as
10778 applicable.
10779
07c9ca3b
AA
107802017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10781
10782 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
10783 truncate full bytes from dest_offset_bits before using it as an
10784 offset into the buffer.
10785
f1cc9874
AA
107862017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10787
10788 * dwarf2loc.c (write_pieced_value): Include transfer size in
10789 byte-wise check.
10790
cdaac320
AA
107912017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10792
10793 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
10794 calculation of this_size.
10795
af547a96
AA
107962017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10797
10798 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
10799 when targeting a bit-field.
10800 (write_pieced_value): Likewise.
10801
ddd7882a
AA
108022017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10803
10804 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
10805 (allocate_piece_closure): Drop addr_size parameter.
10806 (dwarf2_evaluate_loc_desc_full): Adjust call to
10807 allocate_piece_closure.
10808
e9352324
AA
108092017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10810
10811 PR gdb/21226
10812 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
10813 the LSB end, independent of endianness.
10814
d5d1163e
AA
108152017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10816
10817 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
10818 size capping.
10819
032bb6ea
YQ
108202017-06-13 Yao Qi <yao.qi@linaro.org>
10821
10822 * mips-linux-nat.c: Move include features/mips*-linux.c to
10823 mips-linux-tdep.c.
10824 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
10825 to mips-linux-tdep.c.
10826 * mips-linux-tdep.c: Include features/mips*-linux.c
10827 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
10828 functions.
10829 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
10830 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
10831 (tdesc_mips64_dsp_linux): Declare.
10832
f12f6bad
TT
108332017-06-12 Tom Tromey <tom@tromey.com>
10834
10835 * valprint.h (val_print_type_code_int): Remove.
10836 * valprint.c (generic_val_print_int): Always call
10837 val_print_scalar_formatted.
10838 (val_print_type_code_int): Remove.
10839 * printcmd.c (print_scalar_formatted): Handle options->format==0.
10840 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
10841 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
10842 * ada-valprint.c (ada_val_print_num): Use
10843 val_print_scalar_formatted.
10844
d9109c80
TT
108452017-06-12 Tom Tromey <tom@tromey.com>
10846
10847 * printcmd.c (print_scalar_formatted): Unify the two switches.
10848 Don't convert scalars to LONGEST.
10849
4ac0cb1c
TT
108502017-06-12 Tom Tromey <tom@tromey.com>
10851
10852 PR exp/16225:
10853 * valprint.h (print_decimal_chars): Update.
10854 * valprint.c (maybe_negate_by_bytes): New function.
10855 (print_decimal_chars): Add "is_signed" argument.
10856 * printcmd.c (print_scalar_formatted): Update.
10857
30a25466
TT
108582017-06-12 Tom Tromey <tom@tromey.com>
10859
10860 PR exp/16225:
10861 * valprint.h (print_binary_chars, print_hex_chars): Update.
10862 * valprint.c (val_print_type_code_int): Update.
10863 (print_binary_chars): Add "zero_pad" argument.
10864 (emit_octal_digit): New function.
10865 (print_octal_chars): Don't zero-pad.
10866 (print_decimal_chars): Likewise.
10867 (print_hex_chars): Add "zero_pad" argument.
10868 * sh64-tdep.c (sh64_do_fp_register): Update.
10869 * regcache.c (regcache::dump): Update.
10870 * printcmd.c (print_scalar_formatted): Update.
10871 * infcmd.c (default_print_one_register_info): Update.
10872
b3464d03
PA
108732017-06-12 Pedro Alves <palves@redhat.com>
10874 Alan Hayward <alan.hayward@arm.com>
10875
10876 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
10877 (mips_eabi_push_dummy_call): Rename local 'regsize' to
10878 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
10879 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
10880 Assert that abi_regsize bytes fit in 'ref_valbuf'.
10881
4b76cda9
PA
108822017-06-12 Pedro Alves <palves@redhat.com>
10883
10884 * dwarf2read.c (mapped_symtab::data): Now a vector of
10885 symtab_index_entry instead of vector of
10886 std::unique_ptr<symtab_index_entry>. All users adjusted to check
10887 whether an element's name is NULL instead of checking whether the
10888 element itself is NULL.
10889 (find_slot): Change return type. Adjust.
10890 (hash_expand, , add_index_entry, uniquify_cu_indices)
10891 (write_hash_table): Adjust.
10892
e8f8bcb3
PA
108932017-06-12 Pedro Alves <palves@redhat.com>
10894
10895 * dwarf2read.c (recursively_count_psymbols): New function.
10896 (write_psymtabs_to_index): Call it to compute number of psyms and
10897 pass estimate size of psyms_seen to unordered_set's ctor.
10898
70a1152b
PA
108992017-06-12 Pedro Alves <palves@redhat.com>
10900
10901 * dwarf2read.c (write_hash_table): Check if key already exists
10902 before emplacing.
10903
c2f134ac
PA
109042017-06-12 Pedro Alves <palves@redhat.com>
10905
10906 * dwarf2read.c (data_buf::append_space): Rename to...
10907 (data_buf::grow): ... this, and make private. Adjust all callers.
10908 (data_buf::append_uint): New method.
10909 (add_address_entry, write_one_signatured_type)
10910 (write_psymtabs_to_index): Use it.
10911
a81e6d4d
PA
109122017-06-12 Pedro Alves <palves@redhat.com>
10913
10914 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
10915 (file_write (FILE *, const std::vector<Elem>&)): Delete.
10916 (data_buf::file_write): Call ::fwrite directly.
10917
6fd931f2
PA
109182017-06-12 Pedro Alves <palves@redhat.com>
10919
10920 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
10921 std::vector::erase.
10922
bc8f2430
JK
109232017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10924
10925 Code cleanup: C++ify .gdb_index producer.
10926 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
10927 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
10928 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
10929 (create_strtab, add_string): Remove.
10930 (file_write, data_buf): New.
10931 (struct symtab_index_entry): Use std::vector for cu_indices.
10932 (struct mapped_symtab): Use std::vector for data.
10933 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
10934 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
10935 Remove.
10936 (find_slot): Change return type. Update it to the new data structures.
10937 (hash_expand, add_index_entry): Update it to the new data structures.
10938 (offset_type_compare): Remove.
10939 (uniquify_cu_indices): Update it to the new data structures.
10940 (c_str_view, c_str_view_hasher, vector_hasher): New.
10941 (add_indices_to_cpool): Remove.
10942 (write_hash_table): Update it to the new data structures.
10943 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
10944 (eq_psymtab_cu_index): Remove.
10945 (psym_index_map): New typedef.
10946 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
10947 reference and std::unordered_map for cu_index_htab.
10948 (add_address_entry, add_address_entry_worker, write_address_map)
10949 (write_psymbols): Update it to the new data structures.
10950 (write_obstack): Remove.
10951 (struct signatured_type_index_data): Change types_list to a data_buf
10952 reference and psyms_seen to a std::unordered_set reference.
10953 (write_one_signatured_type, recursively_write_psymbols)
10954 (write_psymtabs_to_index): Update it to the new data structures.
10955
c4dcb155
SM
109562017-06-11 Simon Marchi <simon.marchi@ericsson.com>
10957
10958 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
10959 separate-debug-file commands.
10960 * symfile.h (separate_debug_file_debug): New global.
10961 * symfile.c (separate_debug_file_debug): New global.
10962 (separate_debug_file_exists, find_separate_debug_file): Add
10963 debug output.
10964 (_initialize_symfile): Add "set debug separate-debug-file"
10965 command.
10966 * build-id.c (build_id_to_debug_bfd,
10967 find_separate_debug_file_by_buildid): Add debug output.
10968
6d45d4b4
SM
109692017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
10970
10971 * gdbarch.sh (displaced_step_free_closure): Remove.
10972 * gdbarch.h, gdbarch.c: Re-generate.
10973 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
10974 displaced_step_free_closure.
10975 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
10976 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10977 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10978 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10979 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10980 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10981 * arch-utils.h (simple_displaced_step_free_closure): Remove.
10982 * arch-utils.c (simple_displaced_step_free_closure): Remove.
10983 * infrun.c (displaced_step_clear): Call xfree instead of
10984 gdbarch_displaced_step_free_closure.
10985
2f91880f
SDJ
109862017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
10987
10988 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
10989 NULL".
10990
b8b6e72f
AH
109912017-06-08 Alan Hayward <alan.hayward@arm.com>
10992
10993 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
10994 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
10995 (mn10300_push_dummy_call): Likewise.
10996
5369082e
AH
109972017-06-08 Alan Hayward <alan.hayward@arm.com>
10998
10999 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11000
ff4ca5ac
AH
110012017-06-08 Alan Hayward <alan.hayward@arm.com>
11002
11003 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11004
aefd8b33
SDJ
110052017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11006
11007 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11008 able to start inferiors using a shell.
11009 (New remote packets): Announce new packet "QStartupWithShell".
11010 * remote.c: Add PACKET_QStartupWithShell.
11011 (extended_remote_create_inferior): Handle new
11012 PACKET_QStartupWithShell.
11013 (remote_protocol_features) <QStartupWithShell>: New entry for
11014 PACKET_QStartupWithShell.
11015 (_initialize_remote): Call "add_packet_config_cmd" for
11016 QStartupShell.
11017
2090129c
SDJ
110182017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11019 Pedro Alves <palves@redhat.com>
11020
11021 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11022 and "nat/fork-inferior.h".
11023 * common/common-inferior.h: New file, with contents from
11024 "gdb/inferior.h".
11025 * commom/common-utils.c: Include "common-utils.h".
11026 (stringify_argv): New function.
11027 * common/common-utils.h (stringify_argv): New prototype.
11028 * configure.nat: Add "fork-inferior.o" as a dependency for
11029 "*linux*", "fbsd*" and "nbsd*" hosts.
11030 * corefile.c (get_exec_file): Update comment.
11031 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11032 instead of "startup_inferior".
11033 (darwin_create_inferior): Call "add_thread_silent" after
11034 "fork_inferior".
11035 * fork-child.c: Cleanup unnecessary includes.
11036 (SHELL_FILE): Move to "common/common-fork-child.c".
11037 (environ): Likewise.
11038 (exec_wrapper): Initialize.
11039 (get_exec_wrapper): New function.
11040 (breakup_args): Move to "common/common-fork-child.c"; rename to
11041 "breakup_args_for_exec".
11042 (escape_bang_in_quoted_argument): Move to
11043 "common/common-fork-child.c".
11044 (saved_ui): New variable.
11045 (prefork_hook): New function.
11046 (postfork_hook): Likewise.
11047 (postfork_child_hook): Likewise.
11048 (gdb_startup_inferior): Likewise.
11049 (fork_inferior): Move to "common/common-fork-child.c". Update
11050 function to support gdbserver.
11051 (startup_inferior): Likewise.
11052 * gdbcore.h (get_exec_file): Remove declaration.
11053 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11054 instead of "startup_inferior". Call "add_thread_silent" after
11055 "fork_inferior".
11056 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11057 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11058 instead of "startup_inferior". Call "add_thread_silent" after
11059 "fork_inferior".
11060 * inferior.h: Include "common-inferior.h".
11061 (trace_start_error): Move to "common/common-utils.h".
11062 (trace_start_error_with_name): Likewise.
11063 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11064 (startup_inferior): Likewise.
11065 (gdb_startup_inferior): New prototype.
11066 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11067 * nat/fork-inferior.h: New file.
11068 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11069 instead of "startup_inferior". Call "add_thread_silent" after
11070 "fork_inferior".
11071 * target.h (target_terminal_init): Move prototype to
11072 "target/target.h".
11073 (target_terminal_inferior): Likewise.
11074 (target_terminal_ours): Likewise.
11075 * target/target.h (target_terminal_init): New prototype, moved
11076 from "target.h".
11077 (target_terminal_inferior): Likewise.
11078 (target_terminal_ours): Likewise.
11079 * utils.c (gdb_flush_out_err): New function.
11080
043a4934
SDJ
110812017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11082
11083 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11084 * common/common-gdbthread.h: New file, with parts from
11085 "gdb/gdbthread.h".
11086 * gdbthread.h: Include "common-gdbthread.h".
11087 (switch_to_thread): Moved to "common/common-gdbthread.h".
11088
15652511
SDJ
110892017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11090
11091 * Makefile.in (SFILES): Add "common/job-control.c".
11092 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11093 (COMMON_OBS): Add "job-control.o".
11094 * common/job-control.c: New file, with contents from
11095 "gdb/inflow.c".
11096 * common/job-control.h: New file, with contents from "terminal.h".
11097 * fork-child.c: Include "job-control.h".
11098 * inflow.c: Include "job-control.h".
11099 (gdb_setpgid): Move to "common/common-inflow.c".
11100 (_initialize_inflow): Move setting of "job_control" to
11101 "handle_job_control".
11102 * terminal.h (job_control): Moved to "common/common-terminal.h".
11103 (gdb_setpgid): Likewise.
11104 * top.c: Include "job_control.h".
11105 * utils.c: Likewise.
11106 (job_control): Moved to "job-control.c".
11107
2d7cc5c7
PA
111082017-06-07 Pedro Alves <palves@redhat.com>
11109
11110 * Makefile.in (SFILES): Add gdb_regex.c.
11111 (COMMON_OBS): Add gdb_regex.o.
11112 * ada-lang.c (ada_add_standard_exceptions)
11113 (ada_add_exceptions_from_frame, name_matches_regex)
11114 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11115 parameter type to compiled_regex. Adjust.
11116 (ada_exceptions_list): Use compiled_regex.
11117 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11118 std::unique_ptr<compiled_regex>.
11119 (exception_catchpoint::~exception_catchpoint): Remove regfree
11120 call.
11121 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11122 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11123 * breakpoint.c (solib_catchpoint::compiled): Now a
11124 std::unique_ptr<compiled_regex>.
11125 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11126 (check_status_catch_solib): Adjust to use compiled_regex.
11127 (add_solib_catchpoint): Adjust to use compiled_regex.
11128 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11129 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11130 compiled_regex reference. Adjust to use it.
11131 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11132 declaration. Include "gdb_regex.h".
11133 (apropos_cmd): Change regex parameter to compiled_regex reference.
11134 * gdb_regex.c: New file.
11135 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11136 declarations.
11137 (class compiled_regex): New.
11138 * linux-tdep.c: Include "common/gdb_optional.h".
11139 (struct mapping_regexes): New, factored out from
11140 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11141 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11142 gdb::optional and remove cleanups. Adjust to compiled_regex.
11143 * probe.c: Include "common/gdb_optional.h".
11144 (collect_probes): Use compiled_regex and gdb::optional and remove
11145 cleanups.
11146 * skip.c: Include "common/gdb_optional.h".
11147 (skiplist_entry::compiled_function_regexp): Now a
11148 gdb::optional<compiled_regex>.
11149 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11150 (free_skiplist_entry): Remove regfree call.
11151 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11152 compiled_regex and gdb::optional.
11153 * symtab.c: Include "common/gdb_optional.h".
11154 (search_symbols): Use compiled_regex and gdb::optional.
11155 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11156 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11157 to gdb_regex.c.
11158
50d6adef
AH
111592017-06-07 Alan Hayward <alan.hayward@arm.com>
11160
11161 * regcache.c (regcache::save): Avoid buffer use.
11162 (regcache::dump): Likewise.
11163
4a8a33c8
AH
111642017-06-07 Alan Hayward <alan.hayward@arm.com>
11165
11166 * sh-tdep.c (sh_pseudo_register_read): Remove
11167 MAX_REGISTER_SIZE.
11168 (sh_pseudo_register_write): Likewise.
11169 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
11170 (sh64_pseudo_register_write): Likewise
11171
d1be909e
AH
111722017-06-07 Alan Hayward <alan.hayward@arm.com>
11173
11174 * aarch64-tdep.c (aarch64_store_return_value): Use
11175 V_REGISTER_SIZE.
11176 (aarch64_pseudo_read_value): Likewise.
11177 (aarch64_pseudo_write): Likewise.
11178
f4a65042
YQ
111792017-06-06 Yao Qi <yao.qi@linaro.org>
11180
11181 * regformats/regdef.h (set_register_cache): Remove the
11182 declaration.
11183
9f7fb0aa
AH
111842017-06-06 Alan Hayward <alan.hayward@arm.com>
11185
11186 * frame.c (frame_unwind_register_signed): Use
11187 frame_unwind_register_value.
11188
e1e01040
PA
111892017-06-06 Pedro Alves <palves@redhat.com>
11190
11191 PR breakpoints/21553
11192 * breakpoint.c (create_breakpoints_sal_default)
11193 (init_breakpoint_sal, create_breakpoint_sal): Use
11194 gdb::unique_xmalloc_ptr for string parameters.
11195 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11196 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
11197 (base_breakpoint_create_breakpoints_sal)
11198 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
11199 (strace_marker_create_breakpoints_sal)
11200 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
11201 string parameters.
11202 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
11203 gdb::unique_xmalloc_ptr for string parameters.
11204 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11205 parameters.
11206
fbe654c8
AH
112072017-06-06 Alan Hayward <alan.hayward@arm.com>
11208
11209 * alpha-tdep.c (alpha_register_to_value): Use
11210 get_frame_register_value.
11211 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
11212
ae0d01d6
AH
112132017-06-06 Alan Hayward <alan.hayward@arm.com>
11214
11215 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
11216 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
11217 (ia64_value_to_register): Likewise.
11218 (ia64_extract_return_value): Likewise.
11219 (ia64_store_return_value): Likewise.
11220 (ia64_push_dummy_call): Likewise.
11221
49cf576c
JB
112222017-06-04 Joel Brobecker <brobecker@adacore.com>
11223
11224 GDB 8.0 released.
11225
26b6a6ab
SM
112262017-06-03 Simon Marchi <simon.marchi@ericsson.com>
11227
11228 * x86-linux-nat.c (struct arch_lwp_info): Remove.
11229
22827c51
SM
112302017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
11231
11232 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
11233 parameter.
11234 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
11235
0e05cf3a
SM
112362017-06-02 Simon Marchi <simon.marchi@ericsson.com>
11237
11238 * event-loop.c (poll_timers): Unallocate timer using delete
11239 instead of xfree.
11240
c1fc2657
SM
112412017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11242
11243 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
11244 (struct breakpoint) <~breakpoint>: New.
11245 (struct watchpoint): Inherit from breakpoint.
11246 <~watchpoint>: New.
11247 <base>: Remove.
11248 (struct tracepoint): Inherit from breakpoint.
11249 <base>: Remove.
11250 * breakpoint.c (longjmp_breakpoint_ops): Remove.
11251 (struct longjmp_breakpoint): Inherit from breakpoint.
11252 <~longjmp_breakpoint>: New.
11253 <base>: Remove.
11254 (new_breakpoint_from_type): Remove casts.
11255 (watchpoint_in_thread_scope): Remove reference to base field.
11256 (watchpoint_del_at_next_stop): Likewise.
11257 (update_watchpoint): Likewise.
11258 (watchpoint_check): Likewise.
11259 (bpstat_check_watchpoint): Likewise.
11260 (set_longjmp_breakpoint): Likewise.
11261 (struct fork_catchpoint): Inherit from breakpoint.
11262 <base>: Remove.
11263 (struct solib_catchpoint): Inherit from breakpoint.
11264 <~solib_catchpoint>: New.
11265 <base>: Remove.
11266 (dtor_catch_solib): Change to ...
11267 (solib_catchpoint::~solib_catchpoint): ... this.
11268 (breakpoint_hit_catch_solib): Remove reference to base field.
11269 (add_solib_catchpoint): Likewise.
11270 (create_fork_vfork_event_catchpoint): Likewise.
11271 (struct exec_catchpoint): Inherit from breakpoint.
11272 <~exec_catchpoint>: New.
11273 <base>: Remove.
11274 (dtor_catch_exec): Change to ...
11275 (exec_catchpoint::~exec_catchpoint): ... this.
11276 (dtor_watchpoint): Change to ...
11277 (watchpoint::~watchpoint): ... this.
11278 (watch_command_1): Remove reference to base field.
11279 (catch_exec_command_1): Likewise.
11280 (base_breakpoint_dtor): Change to ...
11281 (breakpoint::~breakpoint): ... this.
11282 (base_breakpoint_ops): Remove dtor field value.
11283 (longjmp_bkpt_dtor): Change to ...
11284 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
11285 (strace_marker_create_breakpoints_sal): Remove reference to base
11286 field.
11287 (delete_breakpoint): Don't manually call breakpoint destructor.
11288 (create_tracepoint_from_upload): Remove reference to base field.
11289 (trace_pass_set_count): Likewise.
11290 (initialize_breakpoint_ops): Don't initialize
11291 momentary_breakpoint_ops, don't set dtors.
11292 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
11293 <~ada_catchpoint>: New.
11294 <base>: Remove.
11295 (create_excep_cond_exprs): Remove reference to base field.
11296 (dtor_exception): Change to ...
11297 (ada_catchpoint::~ada_catchpoint): ... this.
11298 (dtor_catch_exception): Remove.
11299 (dtor_catch_exception_unhandled): Remove.
11300 (dtor_catch_assert): Remove.
11301 (create_ada_exception_catchpoint): Remove reference to base
11302 field.
11303 (initialize_ada_catchpoint_ops): Don't set dtors.
11304 * break-catch-sig.c (struct signal_catchpoint): Inherit from
11305 breakpoint.
11306 <~signal_catchpoint>: New.
11307 <base>: Remove.
11308 (signal_catchpoint_dtor): Change to ...
11309 (signal_catchpoint::~signal_catchpoint): ... this.
11310 (create_signal_catchpoint): Remove reference to base field.
11311 (initialize_signal_catchpoint_ops): Don't set dtor.
11312 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
11313 from breakpoint.
11314 <~syscall_catchpoint>: New.
11315 <base>: Remove.
11316 (dtor_catch_syscall): Change to ...
11317 (syscall_catchpoint::~syscall_catchpoint): ... this.
11318 (create_syscall_event_catchpoint): Remove reference to base
11319 field.
11320 (initialize_syscall_catchpoint_ops): Don't set dtor.
11321 * break-catch-throw.c (struct exception_catchpoint): Inherit
11322 from breakpoint.
11323 <~exception_catchpoint>: New.
11324 <base>: Remove.
11325 (dtor_exception_catchpoint): Change to ...
11326 (exception_catchpoint::~exception_catchpoint): ... this.
11327 (handle_gnu_v3_exceptions): Remove reference to base field.
11328 (initialize_throw_catchpoint_ops): Don't set dtor.
11329 * ctf.c (ctf_get_traceframe_address): Remove reference to base
11330 field.
11331 * remote.c (remote_get_tracepoint_status): Likewise.
11332 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
11333 * tracefile.c (tracefile_fetch_registers): Likewise.
11334 * tracepoint.c (actions_command): Likewise.
11335 (validate_actionline): Likewise.
11336 (tfind_1): Likewise.
11337 (get_traceframe_location): Likewise.
11338 (find_matching_tracepoint_location): Likewise.
11339 (parse_tracepoint_status): Likewise.
11340 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
11341
3b0871f4
SM
113422017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11343
11344 * breakpoint.c (struct longjmp_breakpoint): New struct.
11345 (is_tracepoint_type): Change return type to bool.
11346 (is_longjmp_type): New function.
11347 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
11348 (set_raw_breakpoint_without_location): Use
11349 new_breakpoint_from_type.
11350 (set_raw_breakpoint): Likewise.
11351
a5e364af
SM
113522017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11353
11354 * breakpoint.c (new_breakpoint_from_type): New function.
11355 (create_breakpoint_sal): Use new_breakpoint_from_type and
11356 unique_ptr.
11357 (create_breakpoint): Likewise.
11358
ae3b3f34
SM
113592017-05-31 Simon Marchi <simon.marchi@ericsson.com>
11360
11361 * memattr.c (mem_info_command): Rename to ...
11362 (info_mem_command): ... this.
11363 (mem_enable_command): Rename to ...
11364 (enable_mem_command): ... this.
11365 (mem_disable_command): Rename to ...
11366 (disable_mem_command): ... this.
11367 (mem_delete_command): Rename to ...
11368 (delete_mem_command): ... this.
11369 (_initialize_mem): Adjust function names.
11370
13ace077
MM
113712017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11372
11373 * btrace.c (handle_pt_insn_events): New.
11374 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
11375 STATUS. Split into this and ...
11376 (handle_pt_insn_event_flags): ... this.
11377
c56ccc05
MM
113782017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11379
11380 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
11381 and struct pt_insn.resynced.
11382 * configure: Regenerated.
11383 * config.in: Regenerated.
11384
08c3f6d2
TW
113852017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11386
11387 * btrace.c (ftrace_find_call_by_number): New function.
11388 (ftrace_new_function): Store objects, not pointers.
11389 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
11390 ftrace_new_gap, ftrace_update_function,
11391 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
11392 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
11393 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
11394 btrace_ends_with_single_insn, btrace_call_get): Account for
11395 btrace_thread_info::functions now storing objects.
11396 * btrace.h (struct btrace_thread_info): Add constructor.
11397 (struct btrace_thread_info) <functions>: Make std::vector.
11398 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
11399 Initialize with default values.
11400 * record-btrace.c (record_btrace_frame_sniffer): Account for
11401 btrace_thread_info::functions now storing objects.
11402
8ffd39f2
TW
114032017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11404
11405 * btrace.c: Remove typedef bfun_s.
11406 (ftrace_new_gap): Directly add gaps to the list of gaps.
11407 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
11408 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
11409 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
11410 instead of gdb VEC.
11411
4aeb0dfc
TW
114122017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11413
11414 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
11415 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
11416 with btrace_thread_info::next_segment and
11417 btrace_thread_info::prev_segment.
11418 * btrace.h: Remove struct btrace_func_link.
11419 (struct btrace_function): Replace pair of function segment pointers
11420 with pair of indices.
11421 * python/py-record-btrace.c (btpy_call_prev_sibling,
11422 btpy_call_next_sibling): Replace references to
11423 btrace_thread_info::segment with btrace_thread_info::next_segment and
11424 btrace_thread_info::prev_segment.
11425 * record-btrace.c (record_btrace_frame_this_id): Use
11426 btrace_find_call_by_number.
11427
eb8f2b9c
TW
114282017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11429
11430 * btrace.c (ftrace_new_function, ftrace_fixup_level,
11431 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
11432 btrace_insn_next, btrace_insn_prev): Remove references to
11433 btrace_thread_info::flow.
11434 * btrace.h (struct btrace_function): Remove FLOW.
11435
42bfe59e
TW
114362017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11437
11438 * btrace.c (ftrace_find_call_by_number): New function.
11439 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
11440 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
11441 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
11442 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
11443 index.
11444 * btrace.h (struct btrace_function): Turn UP into an index.
11445 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
11446 as an index.
11447 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
11448 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
11449 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
11450
b54b03bd
TW
114512017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11452
11453 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11454 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11455 ftrace_update_function, ftrace_compute_global_level_offset,
11456 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
11457 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
11458 btrace_insn_end, btrace_is_empty): Remove references to
11459 btrace_thread_info::begin and btrace_thread_info::end.
11460 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
11461 (struct btrace_thread_info) <functions>: Adjust comment.
11462 * record-btrace.c (record_btrace_start_replaying): Remove reference to
11463 btrace_thread_info::begin.
11464
8286623c
TW
114652017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11466
11467 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11468 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11469 ftrace_update_function): Remove arguments that implicitly were always
11470 BTINFO->END.
11471 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
11472 Don't pass BTINFO->END.
11473
a0f1b963
TW
114742017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11475
11476 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
11477 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
11478 btrace_find_insn_by_number): Replace function segment pointer with
11479 index.
11480 (btrace_insn_cmp): Simplify.
11481 * btrace.h: (struct btrace_insn_iterator) Rename index to
11482 insn_index. Replace function segment pointer with index into function
11483 segment vector.
11484 * record-btrace.c (record_btrace_call_history): Replace function
11485 segment pointer use with index.
11486 (record_btrace_frame_sniffer): Retrieve function call segment through
11487 vector.
11488 (record_btrace_set_replay): Remove defunc't safety check.
11489
f158f208
TW
114902017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11491
11492 * btrace.c (btrace_ends_with_single_insn): New function.
11493 (btrace_call_get, btrace_call_number, btrace_call_begin,
11494 btrace_call_end, btrace_call_next, btrace_call_prev,
11495 btrace_find_call_by_number): Use index into call segment vector
11496 instead of pointer.
11497 (btrace_call_cmp): Simplify.
11498 * btrace.h (struct btrace_call_iterator): Replace function call segment
11499 pointer with index into vector.
11500 * record-btrace.c (record_btrace_call_history): Use index instead of
11501 pointer.
11502
521103fd
TW
115032017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11504
11505 * btrace.c (btrace_insn_begin, btrace_insn_end,
11506 btrace_find_insn_by_number): Add btinfo to iterator.
11507 * btrace.h (struct btrace_insn_iterator): Add btinfo.
11508
17b89b34
TW
115092017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11510
11511 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
11512 and save pointers directly.
11513 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
11514 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
11515 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
11516 changed signature of functions.
11517 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
11518 (btrace_fetch): Remove code that adds btrace_function pointers to
11519 vector of btrace_functions.
11520 (btrace_clear): Simplify freeing vector of btrace_functions.
11521
2b51eddc
TW
115222017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11523
11524 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
11525 Replace VEC_* with std::vector functions.
11526 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
11527 (struct btrace_thread_info)<functions>: Change type to std::vector.
11528
db6be0d5
SM
115292017-05-30 Simon Marchi <simon.marchi@ericsson.com>
11530
11531 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
11532 "Removed targets and native configurations" up. Merge duplicate
11533 "New commands" sub-sections. Add "New options" sub-sections.
11534
b057297a
AH
115352017-05-26 Alan Hayward <alan.hayward@arm.com>
11536
11537 * defs.h (copy_integer_to_size): New declaration.
11538 * findvar.c (copy_integer_to_size): New function.
11539 (do_cint_test): New selftest function.
11540 (copy_integer_to_size_test): Likewise.
11541 (_initialize_findvar): Likewise.
11542 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
11543 (mips_fbsd_collect_reg): Use raw_collect_integer.
11544 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
11545 (mips64_fill_gregset): Use raw_collect_integer
11546 (mips64_fill_fpregset): Use raw_supply_integer.
11547 * regcache.c (regcache::raw_supply_integer): New function.
11548 (regcache::raw_collect_integer): Likewise.
11549 * regcache.h: (regcache::raw_supply_integer): New declaration.
11550 (regcache::raw_collect_integer): Likewise.
11551
b77b02a5
YQ
115522017-05-24 Yao Qi <yao.qi@linaro.org>
11553
11554 * Makefile.in (SFILES): Add gdbarch-selftests.c.
11555 (COMMON_OBS): Add gdbarch-selftests.o.
11556 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
11557 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
11558 * gdbarch-selftests.c: New file.
11559 * regcache.h (regcache) <~regcache>: Mark it virtual if
11560 GDB_SELF_TEST.
11561 <raw_write>: Likewise.
11562
e521e87e
YQ
115632017-05-24 Yao Qi <yao.qi@linaro.org>
11564
11565 * regcache.c (current_regcache): Change it to
11566 regcache::current_regcache.
11567 (regcache_observer_target_changed): Update.
11568 (regcache_thread_ptid_changed): Make it a regcache static
11569 method.
11570 (regcache_thread_ptid_changed): Update.
11571 (class regcache_access): New.
11572 (current_regcache_test): Update.
11573 (_initialize_regcache): Update.
11574 * regcache.h: Include forward_list.
11575 (regcache): Declare regcache_thread_ptid_changed and declare
11576 registers_changed_ptid as friend.
11577
d8e07dda
YQ
115782017-05-24 Yao Qi <yao.qi@linaro.org>
11579
11580 * i387-tdep.c (i387_register_to_value): Use register_size
11581 instead of TYPE_LENGTH.
11582 * m68k-tdep.c (m68k_register_to_value): Likewise.
11583
8c8f9122
YQ
115842017-05-24 Yao Qi <yao.qi@linaro.org>
11585
11586 * i387-tdep.c (i387_convert_register_p): Return false if type
11587 code isn't TYPE_CODE_FLT.
11588
68fce50f
YQ
115892017-05-24 Yao Qi <yao.qi@linaro.org>
11590
11591 * alpha-tdep.c (alpha_convert_register_p): Return true if type
11592 length is 4.
11593 (alpha_register_to_value): Remove type length check.
11594 (alpha_value_to_register): Likewise.
11595
88954b49
YQ
115962017-05-24 Yao Qi <yao.qi@linaro.org>
11597
11598 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
11599 TYPE_CODE_FLT.
11600
e3ec9b69
YQ
116012017-05-24 Yao Qi <yao.qi@linaro.org>
11602
11603 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
11604 TYPE_CODE_FLT or not.
11605
cdd238da
YQ
116062017-05-24 Yao Qi <yao.qi@linaro.org>
11607
11608 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
11609 * avr-tdep.c (avr_gdbarch_init): Likewise.
11610 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11611 * cris-tdep.c (cris_gdbarch_init): Likewise.
11612 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11613 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11614 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11615 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11616 * mep-tdep.c (mep_gdbarch_init): Likewise.
11617 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11618 * mips-tdep.c (mips_gdbarch_init): Likewise.
11619 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11620 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11621 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11622 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11623 * v850-tdep.c (v850_gdbarch_init): Likewise.
11624
7a3929c4
YQ
116252017-05-24 Yao Qi <yao.qi@linaro.org>
11626
11627 * selftest-arch.c (tests_with_arch): Call registers_changed
11628 and reinit_frame_cache.
11629 * selftest.c (run_self_tests): Likewise.
11630
f4985dba
YQ
116312017-05-24 Yao Qi <yao.qi@linaro.org>
11632
11633 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
11634 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
11635
ab20fa4a
YQ
116362017-05-24 Yao Qi <yao.qi@linaro.org>
11637
11638 * rl78-tdep.c (rl78_gdbarch_init): Don't call
11639 set_gdbarch_print_insn.
11640
f532ab94
YQ
116412017-05-24 Yao Qi <yao.qi@linaro.org>
11642
11643 * h8300-tdep.c (h8300_gdbarch_init): Don't call
11644 set_gdbarch_print_insn.
11645
39503f82
YQ
116462017-05-24 Yao Qi <yao.qi@linaro.org>
11647
11648 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11649 set_gdbarch_print_insn.
11650 * arc-tdep.c (arc_gdbarch_init): Likewise.
11651 * arch-utils.c: include dis-asm.h.
11652 (default_print_insn): New function.
11653 * arch-utils.h (default_print_insn): Declare.
11654 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
11655 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11656 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
11657 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
11658 * frv-tdep.c (frv_gdbarch_init): Likewise.
11659 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11660 * gdbarch.sh (print_insn): Use default_print_insn.
11661 * gdbarch.c: Regenerated.
11662 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11663 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
11664 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11665 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
11666 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11667 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
11668 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
11669 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11670 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
11671 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11672 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11673 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11674 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11675 * mt-tdep.c (mt_gdbarch_init): Likewise.
11676 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11677 * nios2-tdep.c (nios2_print_insn): Remove.
11678 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
11679 * rx-tdep.c (rx_gdbarch_init): Likewise.
11680 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11681 * score-tdep.c (score_print_insn): Remove.
11682 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
11683 * sh-tdep.c (sh_gdbarch_init): Likewise.
11684 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11685 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11686 * tic6x-tdep.c (tic6x_print_insn): Remove.
11687 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
11688 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
11689 * v850-tdep.c (v850_gdbarch_init): Likewise.
11690 * vax-tdep.c (vax_gdbarch_init): Likewise.
11691 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11692 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
11693
f7241d4f
JB
116942017-05-23 John Baldwin <jhb@FreeBSD.org>
11695
11696 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
11697 (MIPS_FP0_REGNUM): Remove.
11698 (MIPS_FSR_REGNUM): Remove.
11699 (mips_fbsd_supply_fpregs): Use mips_regnum.
11700 (mips_fbsd_supply_gregs): Likewise.
11701 (mips_fbsd_collect_fpregs): Likewise.
11702 (mips_fbsd_collect_gregs): Likewise.
11703
d489d81d
JB
117042017-05-23 John Baldwin <jhb@FreeBSD.org>
11705
11706 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
11707 (getpfpregs_supplies): New function.
11708 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
11709 getfpregs_supplies.
11710 (mips_fbsd_store_inferior_registers): Likewise.
11711
e11b3cdc
PA
117122017-05-22 Pedro Alves <palves@redhat.com>
11713
11714 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
11715 maintainer.
11716
0f068fb5
AH
117172017-05-22 Alan Hayward <alan.hayward@arm.com>
11718
11719 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
11720 (store_register): Likewise.
11721 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
11722 (get_decimal_float_return_value): Likewise.
11723 (do_ppc_sysv_return_value): Likewise.
11724 (ppc64_sysv_abi_push_integer): Likewise.
11725 (ppc64_sysv_abi_push_freg): Likewise.
11726 (ppc64_sysv_abi_return_value_base): Likewise.
11727 (ppc64_sysv_abi_return_value): Likewise.
11728 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
11729 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
11730 * rs6000-nat.c: Likewise.
11731 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
11732 (rs6000_value_to_register): Likewise.
11733 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
11734
e6cf65f2
TT
117352017-05-21 Tom Tromey <tom@tromey.com>
11736
11737 PR rust/21466:
11738 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
11739 arrays as "[T]", not "[T; ]".
11740
43cc5389
TT
117412017-05-19 Tom Tromey <tom@tromey.com>
11742
11743 PR rust/21484:
11744 * rust-lang.c (exp_descriptor_rust): New function.
11745 (rust_language_defn): Use it.
11746 * p-lang.c (pascal_language_defn): Update.
11747 * opencl-lang.c (opencl_language_defn): Update.
11748 * objc-lang.c (objc_language_defn): Update.
11749 * m2-lang.c (m2_language_defn): Update.
11750 * language.h (struct language_defn)
11751 <la_watch_location_expression>: New member.
11752 * language.c (unknown_language_defn, auto_language_defn)
11753 (local_language_defn): Update.
11754 * go-lang.c (go_language_defn): Update.
11755 * f-lang.c (f_language_defn): Update.
11756 * d-lang.c (d_language_defn): Update.
11757 * c-lang.h (c_watch_location_expression): Declare.
11758 * c-lang.c (c_watch_location_expression): New function.
11759 (c_language_defn, cplus_language_defn, asm_language_defn)
11760 (minimal_language_defn): Use it.
11761 * breakpoint.c (watch_command_1): Call
11762 la_watch_location_expression.
11763 * ada-lang.c (ada_language_defn): Update.
11764
7a6e7fcc
RO
117652017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11766
6e7e1744
RO
11767 PR tui/21482
11768 * gdb_curses.h (NOMACROS): Define.
11769 (NCURSES_NOMACROS): Define.
11770
117712017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11772
11773 PR tui/21482
7a6e7fcc
RO
11774 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
11775 arg to char *.
11776 * tui/tui-wingeneral.c (box_win): Likewise.
11777 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
11778 (tui_show_source_line): Likewise.
11779 (tui_show_exec_info_content): Likewise.
11780
1933fd8e
VM
117812017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
11782
11783 * sparc-tdep.c (sparc_structure_return_p)
11784 (sparc_arg_on_registers_p): New functions.
11785 (sparc32_store_arguments): Use them.
11786 * sparc64-tdep.c (sparc64_16_byte_align_p)
11787 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
11788 Handle TYPE_CODE_ARRAY.
11789
21873064
YQ
117902017-05-17 Yao Qi <yao.qi@linaro.org>
11791
11792 * cli/cli-decode.c (add_alias_cmd): New function.
11793 * command.h (add_alias_cmd): Declare.
11794 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
11795 instead call add_alias_cmd.
11796
2b351b19
PA
117972017-05-17 Pedro Alves <palves@redhat.com>
11798
11799 * Makefile.in (nat_extra_makefile_frag): Rename to ...
11800 (nat_makefile_frag): ... this. All references updated.
11801 * configure.ac: Likewise.
11802 * configure.nat: Likewise. Enhance comments.
11803 * configure: Regenerate.
11804
5f2ad7a3
RO
118052017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11806
11807 * procfs.c (procfs_create_inferior): Change prototype to match
11808 definition.
11809
adf3dde5
EZ
118102017-05-13 Eli Zaretskii <eliz@gnu.org>
11811
11812 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
11813 C++ compiler warning.
11814
6830f270
TT
118152017-05-12 Tom Tromey <tom@tromey.com>
11816
11817 PR rust/21483:
11818 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
11819 recurse, just call value_struct_elt directly.
11820
68f2f2e3
TT
118212017-05-12 Tom Tromey <tom@tromey.com>
11822
11823 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
11824 OP_RUST_ARRAY>: Fix.
11825
256afbc2
TT
118262017-05-12 Tom Tromey <tom@tromey.com>
11827
11828 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
11829
94bb8dfe
YQ
118302017-05-09 Yao Qi <yao.qi@linaro.org>
11831
11832 * regcache.c: Include <forward_list>.
11833 (struct regcache_list): Remove.
11834 (current_regcache): Update.
11835 (get_thread_arch_aspace_regcache): Update for std::forward_list.
11836 (regcache_thread_ptid_changed): Likewise.
11837 (registers_changed_ptid): Likewise.
11838 (current_regcache_size): Likewise.
11839
8248946c
YQ
118402017-05-09 Yao Qi <yao.qi@linaro.org>
11841
11842 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
11843 (current_regcache_size): New function.
11844 (current_regcache_test): New function.
11845 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
11846
313c5961
AH
118472017-05-08 Alan Hayward <alan.hayward@arm.com>
11848
11849 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
11850 (print_gp_register_row): Use get_frame_register_value.
11851
27bfc1d1
AH
118522017-05-08 Alan Hayward <alan.hayward@arm.com>
11853
11854 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
11855 (mips_supply_fpregset): Likewise.
11856 (mips64_supply_gregset): Likewise.
11857
146e6c5c
AH
118582017-05-08 Alan Hayward <alan.hayward@arm.com>
11859
11860 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
11861 regcache->raw_supply_zeroed.
11862
e50f25ec
SDJ
118632017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11864
11865 * configure.nat: Rearrange 'case' statements to match
11866 host before cpu.
11867
21ea5acd
SDJ
118682017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11869
11870 * Makefile.in: Remove "@host_makefile_frag@". Add variables
11871 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
11872 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
11873 "@nat_extra_makefile_frag@".
11874 (Makefile): Remove dependency on "@frags@".
11875 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
11876 (data-directory/Makefile): Likewise.
11877 * config/aarch64/linux.mh: Deleted; moved contents to
11878 "gdb/configure.nat".
11879 * config/alpha/alpha-linux.mh: Likewise.
11880 * config/alpha/nbsd.mh: Likewise.
11881 * config/arm/linux.mh: Likewise.
11882 * config/arm/nbsdelf.mh: Likewise.
11883 * config/i386/cygwin.mh: Likewise.
11884 * config/i386/cygwin64.mh: Likewise.
11885 * config/i386/darwin.mh: Likewise.
11886 * config/i386/fbsd.mh: Likewise.
11887 * config/i386/fbsd64.mh: Likewise.
11888 * config/i386/go32.mh: Likewise.
11889 * config/i386/i386gnu.mh: Likewise.
11890 * config/i386/i386sol2.mh: Likewise.
11891 * config/i386/linux.mh: Likewise.
11892 * config/i386/linux64.mh: Likewise.
11893 * config/i386/mingw.mh: Likewise.
11894 * config/i386/mingw64.mh: Likewise.
11895 * config/i386/nbsd64.mh: Likewise.
11896 * config/i386/nbsdelf.mh: Likewise.
11897 * config/i386/nto.mh: Likewise.
11898 * config/i386/obsd.mh: Likewise.
11899 * config/i386/obsd64.mh: Likewise.
11900 * config/i386/sol2-64.mh: Likewise.
11901 * config/ia64/linux.mh: Likewise.
11902 * config/m32r/linux.mh: Likewise.
11903 * config/m68k/linux.mh: Likewise.
11904 * config/m68k/nbsdelf.mh: Likewise.
11905 * config/m68k/obsd.mh: Likewise.
11906 * config/m88k/obsd.mh: Likewise.
11907 * config/mips/fbsd.mh: Likewise.
11908 * config/mips/linux.mh: Likewise.
11909 * config/mips/nbsd.mh: Likewise.
11910 * config/mips/obsd64.mh: Likewise.
11911 * config/pa/linux.mh: Likewise.
11912 * config/pa/nbsd.mh: Likewise.
11913 * config/pa/obsd.mh: Likewise.
11914 * config/powerpc/aix.mh: Likewise.
11915 * config/powerpc/fbsd.mh: Likewise.
11916 * config/powerpc/linux.mh: Likewise.
11917 * config/powerpc/nbsd.mh: Likewise.
11918 * config/powerpc/obsd.mh: Likewise.
11919 * config/powerpc/ppc64-linux.mh: Likewise.
11920 * config/powerpc/spu-linux.mh: Likewise.
11921 * config/s390/linux.mh: Likewise.
11922 * config/sh/nbsd.mh: Likewise.
11923 * config/sparc/fbsd.mh: Likewise.
11924 * config/sparc/linux.mh: Likewise.
11925 * config/sparc/linux64.mh: Likewise.
11926 * config/sparc/nbsd64.mh: Likewise.
11927 * config/sparc/nbsdelf.mh: Likewise.
11928 * config/sparc/obsd64.mh: Likewise.
11929 * config/sparc/sol2.mh: Likewise.
11930 * config/tilegx/linux.mh: Likewise.
11931 * config/vax/nbsdelf.mh: Likewise.
11932 * config/vax/obsd.mh: Likewise.
11933 * config/xtensa/linux.mh: Likewise.
11934 * config/i386/i386gnu.mn: New file, with excerpts from
11935 "config/i386/i386gnu.mh".
11936 * configure: Regenerate.
11937 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
11938 *.mh files under "gdb/config".
11939 * configure.nat: New file, with contents from the
11940 "gdb/config/*/*.mh" files.
11941
7ed1acaf
TW
119422017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
11943
11944 * btrace.c (btrace_clear): Free insn vector.
11945
e13cb306
PA
119462017-05-05 Pedro Alves <palves@redhat.com>
11947
11948 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
11949 * configure: Regenerate.
11950
5ed8105e
PA
119512017-05-04 Pedro Alves <palves@redhat.com>
11952
11953 * Makefile.in (SFILES): Add progspace-and-thread.c.
11954 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
11955 (COMMON_OBS): Add progspace-and-thread.o.
11956 * breakpoint.c: Include "progspace-and-thread.h".
11957 (update_inserted_breakpoint_locations)
11958 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
11959 Use scoped_restore_current_pspace_and_thread.
11960 (create_std_terminate_master_breakpoint): Use
11961 scoped_restore_current_program_space.
11962 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
11963 (print_breakpoint_location): Use
11964 scoped_restore_current_program_space.
11965 (bp_loc_is_permanent): Use
11966 scoped_restore_current_pspace_and_thread.
11967 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
11968 (download_tracepoint_locations): Use
11969 scoped_restore_current_pspace_and_thread.
11970 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
11971 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
11972 (enum step_over_calls_kind): Moved from inferior.h.
11973 (class scoped_restore_current_thread): New class.
11974 * gdbthread.h (make_cleanup_restore_current_thread): Delete
11975 declaration.
11976 (scoped_restore_current_thread): New class.
11977 * infcmd.c: Include "common/gdb_optional.h".
11978 (continue_1, proceed_after_attach): Use
11979 scoped_restore_current_thread.
11980 (notice_new_inferior): Use scoped_restore_current_thread.
11981 * inferior.c: Include "progspace-and-thread.h".
11982 (restore_inferior, save_current_inferior): Delete.
11983 (add_inferior_command, clone_inferior_command): Use
11984 scoped_restore_current_pspace_and_thread.
11985 * inferior.h (scoped_restore_current_inferior): New class.
11986 * infrun.c: Include "progspace-and-thread.h" and
11987 "common/gdb_optional.h".
11988 (follow_fork_inferior): Use
11989 scoped_restore_current_pspace_and_thread.
11990 (scoped_restore_exited_inferior): New class.
11991 (handle_vfork_child_exec_or_exit): Use
11992 scoped_restore_exited_inferior,
11993 scoped_restore_current_pspace_and_thread,
11994 scoped_restore_current_thread and scoped_restore.
11995 (fetch_inferior_event): Use scoped_restore_current_thread.
11996 * linespec.c (decode_line_full, decode_line_1): Use
11997 scoped_restore_current_program_space.
11998 * mi/mi-main.c: Include "progspace-and-thread.h".
11999 (exec_continue): Use scoped_restore_current_thread.
12000 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12001 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12002 * proc-service.c (ps_pglobal_lookup): Use
12003 scoped_restore_current_program_space.
12004 * progspace-and-thread.c: New file.
12005 * progspace-and-thread.h: New file.
12006 * progspace.c (release_program_space, clone_program_space): Use
12007 scoped_restore_current_program_space.
12008 (restore_program_space, save_current_program_space)
12009 (save_current_space_and_thread): Delete.
12010 (switch_to_program_space_and_thread): Moved to
12011 progspace-and-thread.c.
12012 * progspace.h (save_current_program_space)
12013 (save_current_space_and_thread): Delete declarations.
12014 (scoped_restore_current_program_space): New class.
12015 * remote.c (remote_btrace_maybe_reopen): Use
12016 scoped_restore_current_thread.
12017 * symtab.c: Include "progspace-and-thread.h".
12018 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12019 * thread.c (print_thread_info_1): Use
12020 scoped_restore_current_thread.
12021 (struct current_thread_cleanup): Delete.
12022 (do_restore_current_thread_cleanup)
12023 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12024 (scoped_restore_current_thread::~scoped_restore_current_thread):
12025 ... this new dtor.
12026 (make_cleanup_restore_current_thread): Rename/convert to ...
12027 (scoped_restore_current_thread::scoped_restore_current_thread):
12028 ... this new ctor.
12029 (thread_apply_all_command): Use scoped_restore_current_thread.
12030 (thread_apply_command): Use scoped_restore_current_thread.
12031 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12032 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12033
f6223dbb
PA
120342017-05-04 Pedro Alves <palves@redhat.com>
12035
12036 * thread.c (make_cleanup_restore_current_thread): Move
12037 find_thread_ptid call before the is_stopped call. Assert that the
12038 thread is found. Replace is_stopped call by checking the thread's
12039 state directly. Remove unnecessary NULL-thread check.
12040
3c3ae77e
PA
120412017-05-04 Pedro Alves <palves@redhat.com>
12042
12043 * corelow.c (thread_section_name): New class.
12044 (get_core_register_section, get_core_siginfo): Use it.
12045
45eba0ab
AA
120462017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12047
12048 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12049 (get_core_register_section): Remove xfree of NULL pointer.
12050
f81fdd35
AH
120512017-05-03 Alan Hayward <alan.hayward@arm.com>
12052
12053 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12054 * regcache.c (regcache::raw_supply_zeroed): New function.
12055 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12056
35837774
SM
120572017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12058
12059 * gdbarch.sh: Remove commented out definition of
12060 TARGET_CHAR_BIT.
12061 * gdbarch.h: Re-generate.
12062
c94fee56
SDJ
120632017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12064
12065 * configure: Regenerate.
12066
d17f7b36
SM
120672017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12068
12069 * solib-target.c (solib_target_relocate_section_addresses):
12070 Remove num_section_bases, num_bases, segment_bases variables.
12071
b560ebd6
SM
120722017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12073
12074 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12075
f2f46dfc
SM
120762017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12077
12078 * solib-target.c: Include <vector>
12079 (struct lm_info_target) <~lm_info_target>: Remove.
12080 <segment_bases, section_bases>: Change type to
12081 std::vector<CORE_ADDR>.
12082 (library_list_start_segment, library_list_start_section,
12083 library_list_end_library,
12084 solib_target_relocate_section_addresses): Adjust.
12085
a0ff9e1a
SM
120862017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12087
12088 * gdbarch.sh (software_single_step): Change return type to
12089 std::vector<CORE_ADDR>.
12090 * gdbarch.c, gdbarch.h: Re-generate.
12091 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12092 Adjust.
12093 (arm_deal_with_atomic_sequence_raw): Adjust.
12094 (thumb_get_next_pcs_raw): Adjust.
12095 (arm_get_next_pcs_raw): Adjust.
12096 (arm_get_next_pcs): Adjust.
12097 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12098 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12099 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12100 (alpha_software_single_step): Adjust.
12101 * alpha-tdep.h (alpha_software_single_step): Adjust.
12102 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12103 * arm-tdep.c (arm_software_single_step): Adjust.
12104 (arm_breakpoint_kind_from_current_state): Adjust.
12105 * arm-tdep.h (arm_software_single_step): Adjust.
12106 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12107 * cris-tdep.c (cris_software_single_step): Adjust.
12108 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12109 (micromips_deal_with_atomic_sequence): Adjust.
12110 (deal_with_atomic_sequence): Adjust.
12111 (mips_software_single_step): Adjust.
12112 * mips-tdep.h (mips_software_single_step): Adjust.
12113 * moxie-tdep.c (moxie_software_single_step): Adjust.
12114 * nios2-tdep.c (nios2_software_single_step): Adjust.
12115 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12116 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12117 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12118 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12119 * sparc-tdep.c (sparc_software_single_step): Adjust.
12120 * spu-tdep.c (spu_software_single_step): Adjust.
12121 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12122
ea480a30
SM
121232017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12124
12125 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12126 * gdbarch.h: Re-generate.
12127
d050f7d7
TW
121282017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12129
12130 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12131 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12132 * python/py-instruction.c, python/py-instruction.h: New file.
12133 * python/py-record.c: Add py-instruction.h include.
12134 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12135 gdb.RecordInstruction.
12136 * python/python-internal.h: Add gdbpy_initialize_instruction
12137 declaration.
12138 * python/python.c (do_start_initialization): Add
12139 gdbpy_initialize_instruction.
12140
14f819c8
TW
121412017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12142
12143 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12144 Remove.
12145 (btrace_func_from_recpy_func): New function.
12146 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12147 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12148 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12149 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12150 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12151 Also, use new helper functions.
12152 (btpy_list_item): Use new helper functions.
12153 (recpy_bt_function_call_history): Use new type name.
12154 (btpy_call_getset): Remove.
12155 (gdbpy_initialize_btrace): Remove code to initialize
12156 gdb.BtraceFunctionCall.
12157 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12158 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12159 recpy_bt_func_prev, recpy_bt_func_next): New export.
12160 * python/py-record.c (recpy_func_type): New static object.
12161 (recpy_func_new, recpy_func_level, recpy_func_symbol,
12162 recpy_func_instructions, recpy_func_up, recpy_func_prev,
12163 recpy_func_next): New function.
12164 (recpy_element_hash, recpy_element_richcompare): Updated comment.
12165 (recpy_func_getset): New static object.
12166 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
12167 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
12168
0ed5da75
TW
121692017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12170
12171 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
12172 (btpy_object, btpy_insn_type, btpy_new): Remove.
12173 (btpy_list_object): Use gdb.RecordInstruction type instead of
12174 gdb.BtraceInstruction type.
12175 (btrace_insn_from_recpy_insn): New function.
12176 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
12177 btpy_new.
12178 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
12179 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
12180 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
12181 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
12182 instead of btpy_object.
12183 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12184 btpy_insn_data, btpy_insn_decode): Rename to ...
12185 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
12186 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
12187 recpy_bt_insn_decode): This. Also, use new helper functions.
12188 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
12189 recpy_insn_type.
12190 (btpy_insn_getset): Remove.
12191 (gdbpy_initialize_btrace): Remove code to initialize
12192 gdb.BtraceInstruction. Use recpy_element_object.
12193 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
12194 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
12195 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
12196 * python/py-record.c (recpy_insn_type): New static object.
12197 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
12198 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
12199 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
12200 New function.
12201 (recpy_insn_getset): New static object.
12202 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
12203 * python/py-record.h (recpy_element_object): New typedef.
12204 (recpy_insn_type, recpy_insn_new): New export.
12205
913aeadd
TW
122062017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12207
12208 * py-record-btrace.c (btpy_insn_new): Removed.
12209 (btpy_insn_or_gap_new): New function.
12210 (btpy_insn_error): Removed.
12211 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12212 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
12213 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
12214 btpy_insn_or_gap_new instead of btpy_insn_new.
12215 (btpy_insn_getset): Remove btpy_insn_error.
12216 * py-record.c (recpy_gap_type): New static object.
12217 (recpy_gap_object): New typedef.
12218 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
12219 recpy_gap_reason_string): New function.
12220 (recpy_gap_getset): New static object.
12221 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
12222 * py-record.h (recpy_gap_new): New export.
12223
a3be24ad
TW
122242017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12225
12226 * python/py-record.c (recpy_ptid): Remove.
12227 (recpy_record_getset): Remove recpy_ptid.
12228
ae20e79a
TW
122292017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12230
12231 * btrace.c (btrace_fetch): Set inferior_ptid.
12232 * python/py-record-btrace.c: Add "py-record.h" include.
12233 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
12234 recpy_bt_end, recpy_bt_instruction_history,
12235 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
12236 in gdb.Record object instead of current ptid.
12237 * python/py-record.c: Include new "py-record.h" file.
12238 (recpy_record_object): Moved to py-record.h.
12239 * python/py-record.h: New file.
12240
8d0050ea
TW
122412017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12242
12243 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
12244 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
12245 indentation.
12246
3f380b50
JB
122472017-05-01 Joel Brobecker <brobecker@adacore.com>
12248
12249 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
12250 the past maintainers section.
12251
07495424
YQ
122522017-04-28 Yao Qi <yao.qi@linaro.org>
12253
12254 * infcmd.c (get_return_value): Use regcache ctor, and remove
12255 cleanup.
12256
deb1fa3e
YQ
122572017-04-28 Yao Qi <yao.qi@linaro.org>
12258 Pedro Alves <palves@redhat.com>
12259
12260 * regcache.c (regcache::regcache): New tag dispatch ctor.
12261 (do_cooked_read): Moved above.
12262 (regcache_dup): Use the tag dispatch ctor..
12263 * regcache.h (regcache): Declare ctor, delete copy ctor and
12264 assignment operator, remove friend regcache_dup.
12265
b421c83c
YQ
122662017-04-28 Yao Qi <yao.qi@linaro.org>
12267
12268 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
12269 call method save instead of regcache_cpy.
12270 * regcache.h (struct regcache): Make regcache_dup a friend.
12271
ef79d9a3
YQ
122722017-04-28 Yao Qi <yao.qi@linaro.org>
12273
12274 * regcache.c (struct regcache): Move to regcache.h
12275 (regcache::arch): New method.
12276 (regcache_get_ptid): Update.
12277 (get_regcache_arch): Call arch method.
12278 (get_regcache_aspace): Call method aspace.
12279 (register_buffer): Change it to method.
12280 (regcache_save): Change it to regcache::save.
12281 (regcache_restore): Likewise.
12282 (regcache_cpy_no_passthrough): Remove the declaration.
12283 (regcache_cpy): Call methods restore and cpy_no_passthrough.
12284 (regcache_cpy_no_passthrough): Change it to method
12285 cpy_no_passthrough.
12286 (regcache_register_status): Change it to method
12287 get_register_status.
12288 (regcache_invalidate): Change it to method invalidate.
12289 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
12290 (regcache_raw_update): Change it to method raw_update.
12291 (regcache_raw_read): Likewise.
12292 (regcache_raw_read_signed): Likewise.
12293 (regcache_raw_read_unsigned): Likewise.
12294 (regcache_raw_write_signed): Likewise.
12295 (regcache_raw_write_unsigned): Likewise.
12296 (regcache_cooked_read): Likewise.
12297 (regcache_cooked_read_value): Likewise.
12298 (regcache_cooked_read_signed): Likewise.
12299 (regcache_cooked_read_unsigned): Likewise.
12300 (regcache_cooked_write_signed): Likewise.
12301 (regcache_cooked_write_unsigned): Likewise.
12302 (regcache_raw_set_cached_value): Likewise.
12303 (regcache_raw_write): Likewise.
12304 (regcache_cooked_write): Likewise.
12305 (regcache_xfer_part): Likewise.
12306 (regcache_raw_read_part): Likewise.
12307 (regcache_raw_write_part): Likewise.
12308 (regcache_cooked_read_part): Likewise.
12309 (regcache_cooked_write_part): Likewise.
12310 (regcache_raw_supply): Likewise.
12311 (regcache_raw_collect): Likewise.
12312 (regcache_transfer_regset): Likewise.
12313 (regcache_supply_regset): Likewise.
12314 (regcache_collect_regset): Likewise.
12315 (regcache_debug_print_register): Likewise.
12316 (enum regcache_dump_what): Move it to regcache.h.
12317 (regcache_dump): Change it to method dump.
12318 * regcache.h (enum regcache_dump_what): New.
12319 (class regcache): New.
12320 * target.c (target_fetch_registers): Call method
12321 debug_print_register.
12322 (target_store_registers): Likewise.
12323
f8fdb78e
SM
123242017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12325
12326 * windows-nat.c (struct lm_info_windows): Initialize field.
12327 (windows_make_so): Allocate lm_info_windows with new.
12328 (windows_free_so): Free lm_info_windows with delete.
12329
9ccbfd7b
SM
123302017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12331
12332 * solib-darwin.c (struct lm_info_darwin): Initialize field.
12333 (darwin_current_sos): Allocate lm_info_darwin with new, remove
12334 cleanup.
12335 (darwin_free_so): Free lm_info_darwin with delete.
12336
76e75227
SM
123372017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12338
12339 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
12340 <l_addr_p>: Change type to bool.
12341 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
12342 (svr4_free_so): Free lm_info_svr4 with delete.
12343 (svr4_copy_library_list): Replace memcpy with call to copy
12344 constructor.
12345 (library_list_start_library, svr4_default_sos): Allocate
12346 lm_info_svr4 with new.
12347
51046d9e
SM
123482017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12349
12350 * solib-target.c (struct lm_info_target): Add destructor,
12351 initialize fields.
12352 <name>: Change type to std::string.
12353 (library_list_start_library): Allocate lm_info_target with new.
12354 (solib_target_free_library_list): Free lm_info_target with
12355 delete.
12356 (solib_target_current_sos): Adapt to std::string.
12357 (solib_target_free_so): Free lm_info_target with delete.
12358
4023ae76
SM
123592017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12360
12361 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
12362 fields.
12363 (frv_current_sos): Allocate lm_info_frv with new.
12364 (frv_relocate_main_executable): Free lm_info_frv with delete,
12365 allocate with new.
12366 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
12367
af43057b
SM
123682017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12369
12370 * solib-frv.c (struct lm_info_frv): Fix indentation.
12371
b0911207
SM
123722017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12373
12374 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
12375 map field.
12376 (dsbt_current_sos): Allocate lm_info_dsbt with new.
12377 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
12378 and allocate with new.
12379 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
12380
6c401f72
SM
123812017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12382
12383 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
12384 <filename, member_name>: Change type to std::string.
12385 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
12386 (library_list_start_library): Allocate lm_info_aix with new.
12387 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
12388 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
12389 with copy constructor.
12390
d0e449a1
SM
123912017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12392
12393 * solist.h (struct lm_info): Remove.
12394 (struct lm_info_base): New class.
12395 (struct so_list) <lm_info>: Change type to lm_info_base *.
12396 * nto-tdep.c (struct lm_info): Remove.
12397 (lm_addr): Adjust.
12398 * solib-aix.c (struct lm_info): Rename to ...
12399 (struct lm_info_aix): ... this. Extend lm_info_base.
12400 (lm_info_p): Rename to ...
12401 (lm_info_aix_p): ... this, and adjust.
12402 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
12403 solib_aix_parse_libraries, library_list_start_library,
12404 solib_aix_free_library_list, solib_aix_parse_libraries,
12405 solib_aix_get_library_list,
12406 solib_aix_relocate_section_addresses, solib_aix_free_so,
12407 solib_aix_get_section_offsets,
12408 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
12409 Adjust.
12410 (struct solib_aix_inferior_data) <library_list>: Adjust.
12411 * solib-darwin.c (struct lm_info): Rename to ...
12412 (struct lm_info_darwin): ... this. Extend lm_info_base.
12413 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
12414 * solib-dsbt.c (struct lm_info): Rename to ...
12415 (struct lm_info_dsbt): ... this. Extend lm_info_base.
12416 (struct dsbt_info) <main_executable_lm_info): Adjust.
12417 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
12418 dsbt_relocate_section_addresses): Adjust.
12419 * solib-frv.c (struct lm_info): Rename to ...
12420 (struct lm_info_frv): ... this. Extend lm_info_base.
12421 (main_executable_lm_info): Adjust.
12422 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
12423 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
12424 find_canonical_descriptor_in_load_object,
12425 frv_fdpic_find_canonical_descriptor): Adjust.
12426 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
12427 to lm_info_svr4.
12428 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
12429 svr4_clear_so, svr4_copy_library_list,
12430 library_list_start_library, svr4_default_sos, svr4_read_so_list,
12431 svr4_current_sos, svr4_fetch_objfile_link_map,
12432 solist_update_incremental): Adjust.
12433 * solib-svr4.h (struct lm_info_svr4): Move here from
12434 solib-svr4.c.
12435 * solib-target.c (struct lm_info): Rename to ...
12436 (struct lm_info_target): ... this. Extend lm_info_base.
12437 (lm_info_p): Rename to ...
12438 (lm_info_target_p): ... this.
12439 (solib_target_parse_libraries, library_list_start_segment,
12440 library_list_start_section, library_list_start_library,
12441 library_list_end_library, solib_target_free_library_list,
12442 solib_target_current_sos, solib_target_free_so,
12443 solib_target_relocate_section_addresses): Adjust.
12444 * windows-nat.c (struct lm_info): Rename to ...
12445 (struct lm_info_windows): ... this. Extend lm_info_base.
12446 (windows_make_so, handle_load_dll, handle_unload_dll,
12447 windows_xfer_shared_libraries): Adjust.
12448
434a4023
SM
124492017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12450
12451 * solib-darwin.c (struct darwin_so_list): Remove.
12452 (darwin_current_sos): Allocate an so_list object instead of a
12453 darwin_so_list, separately allocate an lm_info object.
12454 (darwin_free_so): Free lm_info.
12455
428544e8
JB
124562017-04-28 John Baldwin <jhb@FreeBSD.org>
12457
12458 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
12459 with fprintf_filtered.
12460
4621115f
YQ
124612017-04-28 Yao Qi <yao.qi@linaro.org>
12462
12463 * regcache.c (regcache::regcache): New function.
12464 (regcache::~regcache): New function.
12465 (regcache_xmalloc_1): Remove.
12466 (regcache_xmalloc): Call new regcache.
12467 (regcache_xfree): Call delete regcache.
12468 (get_thread_arch_aspace_regcache): Call new regcache.
12469
339053c2
YQ
124702017-04-28 Yao Qi <yao.qi@linaro.org>
12471
12472 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
12473 lwp instead of ptid_get_lwp.
12474
7974a605
YQ
124752017-04-28 Yao Qi <yao.qi@linaro.org>
12476
12477 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
12478 lwp_info instead of getting from inferior_ptid.
12479
e15c3eb4
KS
124802017-04-27 Keith Seitz <keiths@redhat.com>
12481
12482 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
12483 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
12484 (CV_CONVERSION_BADNESS): Define.
12485 (rank_one_type): Remove overly restrictive rvalue reference
12486 rank checks.
12487 Add cv-qualifier checks and subranks for type equality.
12488 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
12489 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
12490 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
12491
72bc1d24
SM
124922017-04-27 Simon Marchi <simon.marchi@ericsson.com>
12493
12494 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
12495 count when creating the object.
12496
55bcecda
UW
124972017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
12498 Ulrich Weigand <uweigand@de.ibm.com>
12499
12500 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
12501 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
12502 is used in AIX.
12503 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
12504 (process_xcoff_symbol): Likewise.
12505 (scan_xcoff_symtab): Likewise.
12506
5c99fcf8
AH
125072017-04-26 Alan Hayward <alan.hayward@arm.com>
12508
12509 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
12510 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
12511 (ia64_access_reg): Use get_frame_register_unsigned.
12512 (ia64_access_rse_reg): Likewise.
12513 (ia64_libunwind_frame_prev_register): Likewise.
12514
b41c5a85
JW
125152017-04-26 Jiong Wang <jiong.wang@arm.com>
12516
12517 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
12518 * gdbarch.c: Regenerated.
12519 * gdbarch.h: Regenerated.
12520 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
12521 visibility external.
12522 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
12523 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
12524 (enum cfa_how_kind): Move to ...
12525 (struct dwarf2_frame_state_reg_info): Likewise.
12526 (struct dwarf2_frame_state): Likewise.
12527 * dwarf2-frame.h: ... here.
12528 (dwarf2_frame_state_alloc_regs): New declaration.
12529 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
12530 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
12531
c185f580
AH
125322017-04-26 Alan Hayward <alan.hayward@arm.com>
12533
12534 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
12535 regcache_raw_read_unsigned.
12536 (xtensa_pseudo_register_write): Likewise.
12537
19c45594
AH
125382017-04-26 Alan Hayward <alan.hayward@arm.com>
12539
12540 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
12541 (nds32_pseudo_register_write): Likewise.
12542
4658f12e
YQ
125432017-04-25 Yao Qi <yao.qi@linaro.org>
12544
12545 * regcache.c (struct regcache) <readonly_p>: Change its type
12546 to bool.
12547 (regcache_xmalloc_1): Update parameter type and callers update.
12548
d581dda8
YQ
125492017-04-25 Yao Qi <yao.qi@linaro.org>
12550
12551 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
12552 set_gdbarch_wchar_bit.
12553 * arm-tdep.c (arm_gdbarch_init): Likewise.
12554
debed3db
PA
125552017-04-25 Pedro Alves <palves@redhat.com>
12556
12557 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
12558 (BothAreRelocatable, memcopy, memmove): Don't define.
12559 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
12560 macros.
12561
b0b92aeb
PA
125622017-04-25 Pedro Alves <palves@redhat.com>
12563
12564 * common/common-defs.h: Include "common/poison.h".
12565 * common/function-view.h: (Not, Or, Requires): Move to traits.h
12566 and adjust.
12567 * common/poison.h: New file.
12568 * common/traits.h: Include <type_traits>.
12569 (Not, Or, Requires): New, moved from common/function-view.h.
12570
16c4d54a
PA
125712017-04-25 Pedro Alves <palves@redhat.com>
12572
12573 * breakpoint.h (struct breakpoint): In-class initialize all
12574 fields. Make boolean fields "bool".
12575 * breakpoint.c (init_raw_breakpoint_without_location): Remove
12576 memset call and initializations no longer necessary.
12577
b5c36682
PA
125782017-04-25 Pedro Alves <palves@redhat.com>
12579
12580 * btrace.c (pt_btrace_insn_flags): Change parameter type to
12581 reference.
12582 (pt_btrace_insn): New function.
12583 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
12584
5625a286
PA
125852017-04-25 Pedro Alves <palves@redhat.com>
12586
12587 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
12588 "base" field and inherit from "bp_location" instead. Add
12589 non-default ctor.
12590 (allocate_location_exception): Use new non-default ctor.
12591 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
12592 (init_bp_location): Convert to ...
12593 (bp_location::bp_location): ... this new ctor, and remove memset
12594 call.
12595 (base_breakpoint_allocate_location): Use the new non-default ctor.
12596 * breakpoint.h (bp_location): Now a class. Declare default and
12597 non-default ctors. In-class initialize all members.
12598 (init_bp_location): Remove declaration.
12599
23bcc18f
PA
126002017-04-25 Pedro Alves <palves@redhat.com>
12601
12602 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
12603 assignment operator.
12604
e1ba3053
YQ
126052017-04-24 Yao Qi <yao.qi@linaro.org>
12606
12607 * doublest.c (convert_doublest_to_floatformat): Call
12608 floatformat_totalsize_bytes.
12609
10f489e5
TT
126102017-04-22 Tom Tromey <tom@tromey.com>
12611
12612 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
12613 ui_out_emit_list.
12614 * stack.c (print_frame): Use ui_out_emit_list.
12615 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12616 ui_out_emit_list.
12617 * mi/mi-main.c (print_one_inferior)
12618 (mi_cmd_data_list_register_names)
12619 (mi_cmd_data_list_register_values, mi_cmd_list_features)
12620 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
12621 ui_out_emit_list.
12622 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
12623 (mi_output_solib_attribs): Use ui_out_emit_list,
12624 ui_out_emit_tuple.
12625 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
12626 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
12627 (mi_cmd_stack_list_args, list_args_or_locals): Use
12628 ui_out_emit_list.
12629 * disasm.c (do_assembly_only): Use ui_out_emit_list.
12630 * breakpoint.c (print_solib_event, output_thread_groups): Use
12631 ui_out_emit_list.
12632
0092b74d
TT
126332017-04-22 Tom Tromey <tom@tromey.com>
12634
12635 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
12636 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
12637 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
12638
a14a62dd
TT
126392017-04-22 Tom Tromey <tom@tromey.com>
12640
12641 * tracepoint.c (tvariables_info_1)
12642 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
12643
46b9c129
TT
126442017-04-22 Tom Tromey <tom@tromey.com>
12645
12646 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
12647 annotate_arg_emitter.
12648 * breakpoint.c (print_mention_watchpoint)
12649 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
12650 * annotate.h (struct annotate_arg_emitter): New.
12651
2e783024
TT
126522017-04-22 Tom Tromey <tom@tromey.com>
12653
12654 * record-btrace.c (record_btrace_insn_history)
12655 (record_btrace_insn_history_range, record_btrace_call_history)
12656 (record_btrace_call_history_range): Use ui_out_emit_tuple.
12657 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
12658 ui_out_emit_tuple.
12659 * stack.c (print_frame_info): Use ui_out_emit_tuple.
12660 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
12661 * skip.c (skip_info): Use ui_out_emit_tuple.
12662 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
12663 * progspace.c (print_program_space): Use ui_out_emit_tuple.
12664 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
12665 * osdata.c (info_osdata): Use ui_out_emit_tuple.
12666 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12667 ui_out_emit_tuple.
12668 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
12669 (output_register, mi_cmd_data_read_memory)
12670 (mi_cmd_data_read_memory_bytes, mi_load_progress)
12671 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
12672 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
12673 Use ui_out_emit_tuple.
12674 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
12675 ui_out_emit_tuple.
12676 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12677 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
12678 * linux-thread-db.c (info_auto_load_libthread_db): Use
12679 ui_out_emit_tuple.
12680 * inferior.c (print_inferior): Use ui_out_emit_tuple.
12681 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
12682 * disasm.c (do_mixed_source_and_assembly_deprecated)
12683 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
12684 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
12685 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
12686 * breakpoint.c (print_one_breakpoint_location)
12687 (print_one_breakpoint): Use ui_out_emit_tuple.
12688 * auto-load.c (print_script, info_auto_load_cmd): Use
12689 ui_out_emit_tuple.
12690 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
12691
9be21bb4
SM
126922017-04-21 Simon Marchi <simon.marchi@ericsson.com>
12693
12694 * thread.c (print_thread_info_1): Remove dead code.
12695
0d4c07af
JK
126962017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12697
12698 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
12699 GDB_SELF_TEST.
12700 * arm-tdep.c (selftests::arm_record_test): Likewise.
12701
4daf993d
YQ
127022017-04-21 Yao Qi <yao.qi@linaro.org>
12703
12704 * regcache.c (regcache_restore): Remove argument 2. Replace
12705 argument 3 with regcache. Get register status from
12706 src->register_status and get register contents from
12707 register_buffer (src, regnum).
12708 (regcache_cpy): Update.
12709
a6c21d4a
PA
127102017-04-19 Pedro Alves <palves@redhat.com>
12711
12712 * gdbthread.h (thread): Add missing closing parenthesis in
12713 comment.
12714
3a3fd0fd
PA
127152017-04-19 Pedro Alves <palves@redhat.com>
12716
12717 * common/refcounted-object.h: New file.
12718 * gdbthread.h: Include "common/refcounted-object.h".
12719 (thread_info): Inherit from refcounted_object and add comments.
12720 (thread_info::incref, thread_info::decref)
12721 (thread_info::m_refcount): Delete.
12722 (thread_info::deletable): Use the refcounted_object::refcount()
12723 method.
12724 * inferior.c (current_inferior_): Add comment.
12725 (set_current_inferior): Increment/decrement refcounts.
12726 (prune_inferiors, remove_inferior_command): Skip inferiors marked
12727 not-deletable instead of comparing with the current inferior.
12728 (initialize_inferiors): Increment the initial inferior's refcount.
12729 * inferior.h (struct inferior): Forward declare.
12730 Include "common/refcounted-object.h".
12731 (current_inferior, set_current_inferior): Move declaration to
12732 before struct inferior's definition, and fix comment.
12733 (inferior): Inherit from refcounted_object. Add comments.
12734 * thread.c (switch_to_thread_no_regs): Reference the thread's
12735 inferior pointer directly instead of doing a ptid lookup.
12736 (switch_to_no_thread): New function.
12737 (switch_to_thread(thread_info *)): New function, factored out
12738 from ...
12739 (switch_to_thread(ptid_t)): ... this.
12740 (restore_current_thread): Delete.
12741 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
12742 fields, and add 'inf' field.
12743 (do_restore_current_thread_cleanup): Check whether old->inf is
12744 alive instead of looking up an inferior by ptid. Use
12745 switch_to_thread and switch_to_no_thread.
12746 (restore_current_thread_cleanup_dtor): Use old->inf directly
12747 instead of lookup up an inferior by id. Decref the inferior.
12748 Don't restore 'removable'.
12749 (make_cleanup_restore_current_thread): Same the inferior pointer
12750 in old, instead of the inferior number. Incref the inferior.
12751 Don't save/clear 'removable'.
12752
9bcb1f16
PA
127532017-04-19 Pedro Alves <palves@redhat.com>
12754
12755 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12756 unittests/scoped_restore-selftests.c.
12757 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
12758 * common/scoped_restore.h (scoped_restore_base): Make "class".
12759 (scoped_restore_base::release): New public method.
12760 (scoped_restore_base::scoped_restore_base): New protected ctor.
12761 (scoped_restore_base::m_saved_var): New protected field.
12762 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
12763 scoped_restore_base base class instead of m_saved_var directly.
12764 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
12765 (scoped_restore_tmpl::scoped_restore_tmpl(const
12766 scoped_restore_tmpl<T>&)): Likewise.
12767 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
12768 method.
12769 (scoped_restore_tmpl::saved_var): New method.
12770 (scoped_restore_tmpl::m_saved_var): Delete.
12771 * inferior.h (inferior::detaching): Now a bool.
12772 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
12773 cleanup.
12774 * unittests/scoped_restore-selftests.c: New file.
12775
26fcd539
PA
127762017-04-19 Pedro Alves <palves@redhat.com>
12777
12778 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
12779 Re-sort in alphabetic order.
12780
fdd243b0
PA
127812017-04-18 Pedro Alves <palves@redhat.com>
12782
12783 * xml-support.c (obstack_xml_printf): Delete.
12784 * xml-support.h (obstack_xml_printf): Delete.
12785
4895cde2
PA
127862017-04-18 Pedro Alves <palves@redhat.com>
12787
12788 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
12789 vdebug, verror, body_text, start_element, end_element, name,
12790 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
12791 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
12792 is_xinclude>: Make private and add m_ prefix.
12793 (gdb_xml_parser::body_text): New method, based on ...
12794 (gdb_xml_body_text): ... this. Adjust.
12795 (gdb_xml_parser::vdebug): New method, based on ...
12796 (gdb_xml_debug): ... this. Adjust.
12797 (gdb_xml_parser::verror): New method, based on ...
12798 (gdb_xml_error): ... this. Adjust.
12799 (gdb_xml_parser::start_element): New method, based on ...
12800 (gdb_xml_start_element): ... this. Adjust.
12801 (gdb_xml_start_element_wrapper): Defer to
12802 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
12803 (gdb_xml_parser::end_element): New method, based on ...
12804 (gdb_xml_end_element_wrapper): ... this. Adjust.
12805 (gdb_xml_parser::~gdb_xml_parser): Adjust.
12806 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
12807 (gdb_xml_parser::use_dtd): New method, based on ...
12808 (gdb_xml_use_dtd): ... this. Adjust.
12809 (gdb_xml_parser::parse): New method, based on ...
12810 (gdb_xml_parse): ... this. Adjust.
12811 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
12812 (xinclude_start_include): Adjust to call the parser's name method.
12813 (xml_xinclude_default, xml_xinclude_start_doctype)
12814 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
12815 method.
12816 (xml_process_xincludes): Adjust to call parser methods.
12817 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
12818 declarations.
12819
bd8a901f
PA
128202017-04-18 Pedro Alves <palves@redhat.com>
12821
12822 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
12823 gdb::optional<std::string>.
12824 * xml-support.c: Include <string>.
12825 (scope_level::scope_level(scope_level &&))
12826 (scope_level::~scope_level): Delete.
12827 (scope_level::body): Now a std::string.
12828 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
12829 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
12830 parameter.
12831 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
12832 (xinclude_parsing_data::output): Now a std::string reference.
12833 (xinclude_start_include): Adjust.
12834 (xml_xinclude_default): Adjust.
12835 (xml_process_xincludes): Add 'output' parameter, and return bool.
12836 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
12837 and return bool.
12838 * xml-tdesc.c: Include <unordered_map> and <string>.
12839 (tdesc_xml_cache): Delete.
12840 (tdesc_xml_cache_s): Delete.
12841 (xml_cache): Now an std::unordered_map.
12842 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
12843 (target_fetch_description_xml): Change return type to
12844 gdb::optional<std::string>, and adjust.
12845 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
12846 (target_fetch_description_xml): Change return type to
12847 gdb::optional<std::string>.
12848
d35d1958
PA
128492017-04-18 Pedro Alves <palves@redhat.com>
12850
12851 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12852 unittests/optional-selftests.c.
12853 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
12854 * unittests/optional-selftests.c: New file.
12855 * unittests/optional/assignment/1.cc: New file.
12856 * unittests/optional/assignment/2.cc: New file.
12857 * unittests/optional/assignment/3.cc: New file.
12858 * unittests/optional/assignment/4.cc: New file.
12859 * unittests/optional/assignment/5.cc: New file.
12860 * unittests/optional/assignment/6.cc: New file.
12861 * unittests/optional/assignment/7.cc: New file.
12862 * unittests/optional/cons/copy.cc: New file.
12863 * unittests/optional/cons/default.cc: New file.
12864 * unittests/optional/cons/move.cc: New file.
12865 * unittests/optional/cons/value.cc: New file.
12866 * unittests/optional/in_place.cc: New file.
12867 * unittests/optional/observers/1.cc: New file.
12868 * unittests/optional/observers/2.cc: New file.
12869
22796e97
PA
128702017-04-18 Pedro Alves <palves@redhat.com>
12871
12872 * common/gdb_optional.h: Include common/traits.h.
12873 (in_place_t): New type.
12874 (in_place): New constexpr variable.
12875 (optional::optional): Remove member initialization of
12876 m_instantiated.
12877 (optional::optional(in_place_t...)): New constructor.
12878 (optional::~optional): Use reset.
12879 (optional::optional(const optional&)): New.
12880 (optional::optional(const optional&&)): New.
12881 (optional::optional(T &)): New.
12882 (optional::optional(T &&)): New.
12883 (operator::operator=(const optional &)): New.
12884 (operator::operator=(optional &&)): New.
12885 (operator::operator= (const T &))
12886 (operator::operator= (T &&))
12887 (operator::emplace (Args &&... args)): Return a T&. Use reset.
12888 (operator::reset): New.
12889 (operator::m_instantiated):: Add in-class initializer.
12890 * common/traits.h: Include <type_traits>.
12891 (struct And): New types.
12892
a7fc9b61
PA
128932017-04-18 Pedro Alves <palves@redhat.com>
12894
12895 * xml-support.c: Include <vector>.
12896 (scope_level::scope_level(const gdb_xml_element *))
12897 (scope_level::scope_level(scope_level&&)): New.
12898 (scope_level::~scope_level): New.
12899 (scope_level_s): Delete.
12900 (gdb_xml_parser::scopes): Now a std::vector.
12901 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
12902 Use std::vector.
12903 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
12904 scope cleanup code.
12905 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
12906 of the scopes member. Use std::vector::emplace_back.
12907
010151c9
PA
129082017-04-18 Pedro Alves <palves@redhat.com>
12909
12910 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
12911 a bool.
12912 (gdb_xml_end_element): Change type of first parameter.
12913 (gdb_xml_cleanup): Rename to ...
12914 (gdb_xml_parser::~gdb_xml_parser): ... this.
12915 (gdb_xml_create_parser_and_cleanup): Delete with ...
12916 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
12917 to this new ctor.
12918 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
12919 using gdb_xml_create_parser_and_cleanup.
12920 (xinclude_parsing_data): Add ctor/dtor.
12921 (xml_xinclude_cleanup): Delete.
12922 (xml_process_xincludes): Create a local xinclude_parsing_data
12923 instead of heap-allocating one. Create a local gdb_xml_parser
12924 instead of heap-allocating one with
12925 gdb_xml_create_parser_and_cleanup.
12926
d56060f0
JB
129272017-04-18 John Baldwin <jhb@FreeBSD.org>
12928
12929 PR threads/20743
12930 * fbsd-nat.c (resume_one_thread_cb): Remove.
12931 (resume_all_threads_cb): Remove.
12932 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
12933 iterate_over_threads.
12934
305d16a9
JB
129352017-04-17 Joel Brobecker <brobecker@adacore.com>
12936
12937 * NEWS: Create a new section for the next release branch.
12938 Rename the section of the current branch, now that it has
12939 been cut.
12940
8bb57231
JB
129412017-04-17 Joel Brobecker <brobecker@adacore.com>
12942
12943 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
12944 * version.in: Bump version to 8.0.50.DATE-git.
12945
096c92dd
SDJ
129462017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
12947
12948 PR gdb/21385
12949 * windows-nat.c (windows_create_inferior): Declare 'allargs'
12950 independently of the host, and fix build breakage on Cygwin.
12951
0550c955
PA
129522017-04-13 Pedro Alves <palves@redhat.com>
12953
12954 * inferior.c (free_inferior): Convert to ...
12955 (inferior::~inferior): ... this dtor.
12956 (inferior::inferior): New ctor, factored out from ...
12957 (add_inferior_silent): ... here. Allocate the inferior with a new
12958 expression.
12959 (delete_inferior): Call delete instead of free_inferior.
12960 * inferior.h (gdb_environ, continuation): Forward declare.
12961 (inferior): Now a class. Add in-class initialization to all
12962 members. Make boolean fields bool, except 'detaching'.
12963 (inferior::inferior): New explicit ctor.
12964 (inferior::~inferior): New.
12965
e3d60dfc
PA
129662017-04-13 Pedro Alves <palves@redhat.com>
12967
12968 * inferior.c (init_inferior_list): Delete.
12969 * inferior.h (init_inferior_list): Delete.
12970
5fd69d0a
PA
129712017-04-13 Pedro Alves <palves@redhat.com>
12972
12973 PR threads/13217
12974 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
12975 (top level): Call it twice, with different thread sets.
12976
c6609450
PA
129772017-04-13 Pedro Alves <palves@redhat.com>
12978
12979 * thread.c: Include <algorithm>.
12980 (thread_array_cleanup): Delete.
12981 (scoped_inc_dec_ref): New class.
12982 (live_threads_count): New function.
12983 (set_thread_refcount): Delete.
12984 (tp_array_compar_ascending): Now a bool.
12985 (tp_array_compar): Convert to a std::sort comparison function.
12986 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
12987 and live_threads_count.
12988
2a00d7ce
PA
129892017-04-13 Pedro Alves <palves@redhat.com>
12990
12991 * infrun.c (follow_fork_inferior): Also switch the current
12992 inferior.
12993
441d7c93
PA
129942017-04-13 Pedro Alves <palves@redhat.com>
12995
12996 * breakpoint.c (watch_command_1): Save watchpoint-frame info
12997 before calling create_internal_breakpoint.
12998
808480f6
PA
129992017-04-13 Pedro Alves <palves@redhat.com>
13000
13001 * fork-child.c (execv_argv): New class.
13002 (breakup_args): Refactored as ...
13003 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13004 Copy arguments to storage and replace separators with NULL
13005 terminators in place.
13006 (escape_bang_in_quoted_argument): Adjust to return bool.
13007 (execv_argv::execv_argv): New ctor.
13008 (execv_argv::init_for_shell): New method, factored out from
13009 fork_inferior. Don't strdup strings into the vector.
13010 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13011 Remove free_vector_argv call.
13012
ad3d022a
YQ
130132017-04-13 Yao Qi <yao.qi@linaro.org>
13014
13015 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13016 tdep->rx_psw_type.
13017
e6ddc3bf
YQ
130182017-04-13 Yao Qi <yao.qi@linaro.org>
13019
13020 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13021 * rx-tdep.c (rx_gdbarch_init): Likewise.
13022
bfb8cf90
PA
130232017-04-13 Pedro Alves <palves@redhat.com>
13024
13025 * breakpoint.h (struct breakpoint): Reindent.
13026
f5336ca5
PA
130272017-04-13 Pedro Alves <palves@redhat.com>
13028
13029 * breakpoint.c (bp_location): Rename to ...
13030 (bp_locations): ... this. All references updated.
13031 (bp_location_count): Rename to ...
13032 (bp_locations_count): ... this. All references updated.
13033 (bp_location_placed_address_before_address_max): Rename to ...
13034 (bp_locations_placed_address_before_address_max): ... this. All
13035 references updated.
13036 (bp_location_shadow_len_after_address_max): Rename to ...
13037 (bp_locations_shadow_len_after_address_max): ... this. All
13038 references updated.
13039 (bp_location_compare_addrs): Rename to ...
13040 (bp_locations_compare_addrs): ... this. All references updated.
13041 (bp_location_compare):Rename to ...
13042 (bp_locations_compare): ... this. All references updated.
13043 (bp_location_target_extensions_update): Rename to ...
13044 (bp_locations_target_extensions_update): ... this. All references
13045 updated.
13046
be628ab8
SDJ
130472017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13048
13049 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13050 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13051 'sgtty.h'.
13052 * common/gdb_termios.h: New file, with parts of "terminal.h".
13053 * inflow.c: Include "gdb_termios.h".
13054 * ser-unix.c: Include "gdb_termios.h".
13055 * terminal.h: Move terminal-related defines to
13056 "common/gdb_termios.h".
13057
8e9e35b1
TT
130582017-04-12 Tom Tromey <tom@tromey.com>
13059
13060 * probe.c (parse_probes): Update.
13061 * location.h (delete_event_location): Don't declare.
13062 (event_location_deleter::operator()): Update.
13063 * location.c (event_location_deleter::operator()): Rename from
13064 delete_event_location.
13065 * linespec.h (linespec_result) <location>: Change type to
13066 event_location_up.
13067 * linespec.c (canonicalize_linespec, event_location_to_sals)
13068 (decode_objc): Update.
13069 (linespec_result): Don't call delete_event_location.
13070 * breakpoint.c (create_breakpoints_sal)
13071 (bkpt_probe_create_sals_from_location)
13072 (strace_marker_create_sals_from_location): Update.
13073
16e802b9
TT
130742017-04-12 Tom Tromey <tom@tromey.com>
13075
13076 * linespec.h (struct linespec_result): Add constructor and
13077 destructor.
13078 (init_linespec_result, destroy_linespec_result)
13079 (make_cleanup_destroy_linespec_result): Don't declare.
13080 * linespec.c (init_linespec_result): Remove.
13081 (linespec_result::~linespec_result): Rename from
13082 destroy_linespec_result. Update.
13083 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13084 Remove.
13085 * breakpoint.c (create_breakpoint, break_range_command)
13086 (decode_location_default): Update.
13087 * ax-gdb.c (agent_command_1): Update.
13088
d28cd78a
TT
130892017-04-12 Tom Tromey <tom@tromey.com>
13090
13091 * remote.c (remote_download_tracepoint): Update.
13092 * python/py-breakpoint.c (bppy_get_location): Update.
13093 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13094 (gdbscm_breakpoint_location): Update.
13095 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13096 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13097 Change type to event_location_up.
13098 * breakpoint.c (create_overlay_event_breakpoint)
13099 (create_longjmp_master_breakpoint)
13100 (create_std_terminate_master_breakpoint)
13101 (create_exception_master_breakpoint)
13102 (breakpoint_event_location_empty_p, print_breakpoint_location)
13103 (print_one_breakpoint_location, create_thread_event_breakpoint)
13104 (init_breakpoint_sal, create_breakpoint)
13105 (print_recreate_ranged_breakpoint, break_range_command)
13106 (init_ada_exception_breakpoint, say_where): Update.
13107 (base_breakpoint_dtor): Don't call delete_event_location.
13108 (bkpt_print_recreate, tracepoint_print_recreate)
13109 (dprintf_print_recreate, update_static_tracepoint)
13110 (breakpoint_re_set_default): Update.
13111
711799d5
TT
131122017-04-12 Tom Tromey <tom@tromey.com>
13113
13114 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13115 type of "to_do". Update.
13116 (compute_stack_depth): Use std::vector.
13117
52d214d3
TT
131182017-04-12 Tom Tromey <tom@tromey.com>
13119
13120 * printcmd.c (find_instruction_backward): Use std::vector.
13121
4c404b8b
TT
131222017-04-12 Tom Tromey <tom@tromey.com>
13123
13124 * symfile.c (objfilep): Remove typedef.
13125 (reread_symbols): Use a std::vector.
13126
156d9eab
TT
131272017-04-12 Tom Tromey <tom@tromey.com>
13128
13129 * mi/mi-main.c (exec_direction_forward): Remove.
13130 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13131 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13132 scoped_restore.
13133 * guile/guile.c (guile_repl_command, guile_command)
13134 (gdbscm_execute_gdb_command): Use scoped_restore.
13135 * go-exp.y (go_parse): Use scoped_restore.
13136 * d-exp.y (d_parse): Use scoped_restore.
13137 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13138 * c-exp.y (c_parse): Use scoped_restore.
13139
4d89769a
TT
131402017-04-12 Tom Tromey <tom@tromey.com>
13141
13142 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13143 (mi_parse): Update return type.
13144 (mi_parse_free): Remove.
13145 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13146 (mi_parse::~mi_parse): Rename from mi_parse_free.
13147 (mi_parse_cleanup): Remove.
13148 (mi_parse): Return a unique_ptr. Use new.
13149 * mi/mi-main.c (mi_execute_command): Update.
13150
4b217cc7
TT
131512017-04-12 Tom Tromey <tom@tromey.com>
13152
13153 * location.c (explicit_location_lex_one): Return a
13154 unique_xmalloc_ptr.
13155 (string_to_explicit_location): Update. Remove cleanups.
13156
59d3651b
TT
131572017-04-12 Tom Tromey <tom@tromey.com>
13158
13159 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13160 (compare_value_and_voffset): Change type. Update.
13161 (compute_vtable_size): Change type of "offset_vec".
13162 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
13163 (gnuv3_get_typeid): Remove extraneous declaration.
13164
b24b0d6c
TT
131652017-04-12 Tom Tromey <tom@tromey.com>
13166
13167 * charset.h (wchar_iterator): Fix comment.
13168
80a3b8c5
TT
131692017-04-12 Tom Tromey <tom@tromey.com>
13170
13171 * charset.c (iconv_wrapper): New class.
13172 (cleanup_iconv): Remove.
13173 (convert_between_encodings): Use it.
13174
c83dd867
TT
131752017-04-12 Tom Tromey <tom@tromey.com>
13176
13177 * symfile.h (increment_reading_symtab): Update type.
13178 * symfile.c (decrement_reading_symtab): Remove.
13179 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
13180 * psymtab.c (psymtab_to_symtab): Update.
13181 * dwarf2read.c (dw2_instantiate_symtab): Update.
13182
0e8621a0
TT
131832017-04-12 Tom Tromey <tom@tromey.com>
13184
13185 * jit.c (struct jit_reader): Declare separately. Add constructor
13186 and destructor. Change type of "handle".
13187 (loaded_jit_reader): Define separately.
13188 (jit_reader_load): Update. New "new".
13189 (jit_reader_unload_command): Use "delete".
13190 * gdb-dlfcn.h (struct dlclose_deleter): New.
13191 (gdb_dlhandle_up): New typedef.
13192 (gdb_dlopen, gdb_dlsym): Update types.
13193 (gdb_dlclose): Remove.
13194 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
13195 (gdb_dlsym): Change type of "handle".
13196 (make_cleanup_dlclose): Remove.
13197 (dlclose_deleter::operator()): Rename from gdb_dlclose.
13198 * compile/compile-c-support.c (load_libcc): Update.
13199
67d89901
TT
132002017-04-12 Tom Tromey <tom@tromey.com>
13201
13202 * symtab.h (find_pcs_for_symtab_line): Change return type.
13203 * symtab.c (find_pcs_for_symtab_line): Change return type.
13204 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
13205 type of "vec". Update.
13206 (ltpy_get_pcs_for_line): Update.
13207 * linespec.c (decode_digits_ordinary): Update.
13208
93921405
TT
132092017-04-12 Tom Tromey <tom@tromey.com>
13210
13211 * tracepoint.c (actions_command): Update.
13212 * python/python.c (python_command, python_interactive_command):
13213 Update.
13214 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
13215 * guile/guile.c (guile_command): Update.
13216 * defs.h (read_command_lines, read_command_lines_1): Return
13217 command_line_up.
13218 (command_lines_deleter): New struct.
13219 (command_line_up): New typedef.
13220 * compile/compile.c (compile_code_command)
13221 (compile_print_command): Update.
13222 * cli/cli-script.h (get_command_line, copy_command_lines): Return
13223 command_line_up.
13224 (make_cleanup_free_command_lines): Remove.
13225 * cli/cli-script.c (get_command_line, read_command_lines_1)
13226 (copy_command_lines): Return command_line_up.
13227 (while_command, if_command, read_command_lines, define_command)
13228 (document_command): Update.
13229 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
13230 Remove.
13231 * breakpoint.h (breakpoint_set_commands): Change type of
13232 "commands".
13233 * breakpoint.c (breakpoint_set_commands): Change type of
13234 "commands". Update.
13235 (do_map_commands_command, update_dprintf_command_list)
13236 (create_tracepoint_from_upload): Update.
13237
ffc2605c
TT
132382017-04-12 Tom Tromey <tom@tromey.com>
13239
13240 * tracepoint.c (scope_info): Update.
13241 * spu-tdep.c (spu_catch_start): Update.
13242 * python/python.c (gdbpy_decode_line): Update.
13243 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
13244 * python/py-breakpoint.c (bppy_init): Update.
13245 * probe.c (parse_probes): Update.
13246 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
13247 * location.h (event_location_deleter): New struct.
13248 (event_location_up): New typedef.
13249 (new_linespec_location, new_address_location, new_probe_location)
13250 (new_explicit_location, copy_event_location)
13251 (string_to_event_location, string_to_event_location_basic)
13252 (string_to_explicit_location): Update return type.
13253 (make_cleanup_delete_event_location): Remove.
13254 * location.c (new_linespec_location, new_address_location)
13255 (new_probe_location, new_explicit_location, copy_event_location):
13256 Return event_location_up.
13257 (delete_event_location_cleanup)
13258 (make_cleanup_delete_event_location): Remove.
13259 (string_to_explicit_location, string_to_event_location_basic)
13260 (string_to_event_location): Return event_location_up.
13261 * linespec.c (canonicalize_linespec, event_location_to_sals)
13262 (decode_line_with_current_source)
13263 (decode_line_with_last_displayed, decode_objc): Update.
13264 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
13265 * completer.c (location_completer): Update.
13266 * cli/cli-cmds.c (edit_command, list_command): Update.
13267 * breakpoint.c (create_overlay_event_breakpoint)
13268 (create_longjmp_master_breakpoint)
13269 (create_std_terminate_master_breakpoint)
13270 (create_exception_master_breakpoint)
13271 (create_thread_event_breakpoint): Update.
13272 (init_breakpoint_sal): Update. Remove some dead code.
13273 (create_breakpoint_sal): Change type of "location". Update.
13274 (create_breakpoints_sal, create_breakpoint, break_command_1)
13275 (dprintf_command, break_range_command, until_break_command)
13276 (init_ada_exception_breakpoint)
13277 (strace_marker_create_sals_from_location)
13278 (update_static_tracepoint, trace_command, ftrace_command)
13279 (strace_command, create_tracepoint_from_upload): Update.
13280 * break-catch-throw.c (re_set_exception_catchpoint): Update.
13281 * ax-gdb.c (agent_command_1): Update.
13282
8f10c932
PA
132832017-04-12 Pedro Alves <palves@redhat.com>
13284
13285 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
13286 * configure.tgt: Handle i[34567]86-*-go32* and
13287 i[34567]86-*-msdosdjgpp*.
13288 * i386-tdep.c (i386_svr4_reg_to_regnum):
13289 Make extern.
13290 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
13291 i386-go32-tdep.c.
13292 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
13293 * i386-go32-tdep.c: New file.
13294 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
13295 declarations.
13296
0a31ccfb
SM
132972017-04-12 Simon Marchi <simon.marchi@ericsson.com>
13298
13299 * aix-thread.c (pd_status2str): Change return type to const char *.
13300
e9bb3fbb
PA
133012017-04-12 Pedro Alves <palves@redhat.com>
13302
13303 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
13304 calls to set_gdbarch_gnu_triplet_regexp.
13305
53375380
PA
133062017-04-12 Pedro Alves <palves@redhat.com>
13307
13308 PR gdb/21323
13309 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
13310 New enum value.
13311 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
13312 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
13313 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
13314 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
13315 * gdbarch.h, gdbarch.c: Regenerate.
13316 * aarch64-tdep.c (aarch64_gdbarch_init): Override
13317 gdbarch_wchar_bit and gdbarch_wchar_signed.
13318 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
13319 * arm-tdep.c (arm_gdbarch_init): Likewise.
13320 * avr-tdep.c (avr_gdbarch_init): Likewise.
13321 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13322 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
13323 * i386-tdep.c (i386_go32_init_abi): Likewise.
13324 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13325 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13326 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
13327 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
13328 * sh-tdep.c (sh_gdbarch_init): Likewise.
13329 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13330 * sparc64-tdep.c (sparc64_init_abi): Likewise.
13331 * windows-tdep.c (windows_init_abi): Likewise.
13332 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13333
53e710ac
PA
133342017-04-12 Pedro Alves <palves@redhat.com>
13335
13336 PR c++/21323
13337 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
13338 cplus_primitive_type_char32_t>: New enum values.
13339 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
13340 and cplus_primitive_type_char32_t.
13341 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
13342 32, use the archtecture's built-in type for char16_t and char32_t,
13343 respectively. Otherwise, fallback to init_integer_type as before,
13344 but make the type unsigned, and issue a complaint.
13345 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
13346
ab0538b8
AH
133472017-04-12 Alan Hayward <alan.hayward@arm.com>
13348
5e0e0422 13349 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
13350 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
13351
5430098f
SDJ
133522017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13353
13354 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
13355 'const char *'.
13356
7c5ded6a
SDJ
133572017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13358
13359 * common/common-utils.c (free_vector_argv): New function.
13360 * common/common-utils.h: Include <vector>.
13361 (free_vector_argv): New prototype.
13362 * darwin-nat.c (darwin_create_inferior): Rewrite function
13363 prototype in order to constify "exec_file" and accept a
13364 "std::string" for "allargs".
13365 * fork-child.c: Include <vector>.
13366 (breakup_args): Rewrite function, using C++.
13367 (fork_inferior): Rewrite function header, constify "exec_file_arg"
13368 and accept "std::string" for "allargs". Update the code to
13369 calculate "argv" based on "allargs". Update calls to "exec_fun"
13370 and "execvp".
13371 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
13372 order to constify "exec_file" and accept a "std::string" for
13373 "allargs".
13374 * go32-nat.c (go32_create_inferior): Likewise.
13375 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
13376 * infcmd.c (run_command_1): Constify "exec_file". Use
13377 "std::string" for inferior arguments.
13378 * inferior.h (fork_inferior): Update prototype.
13379 * linux-nat.c (linux_nat_create_inferior): Rewrite function
13380 prototype in order to constify "exec_file" and accept a
13381 "std::string" for "allargs".
13382 * nto-procfs.c (procfs_create_inferior): Likewise.
13383 * procfs.c (procfs_create_inferior): Likewise.
13384 * remote-sim.c (gdbsim_create_inferior): Likewise.
13385 * remote.c (extended_remote_run): Update code to accept
13386 "std::string" as argument.
13387 (extended_remote_create_inferior): Rewrite function prototype in
13388 order to constify "exec_file" and accept a "std::string" for
13389 "allargs".
13390 * rs6000-nat.c (super_create_inferior): Likewise.
13391 (rs6000_create_inferior): Likewise.
13392 * target.h (struct target_ops) <to_create_inferior>: Likewise.
13393 * windows-nat.c (windows_create_inferior): Likewise.
13394
ae0eee42
PA
133952017-04-11 Pedro Alves <palves@redhat.com>
13396
13397 * thread.c: Fix whitespace throughout.
13398
a6acac06
PR
133992017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
13400
13401 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
13402
64403bd1
AH
134032017-04-11 Alan Hayward <alan.hayward@arm.com>
13404
13405 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
13406
a5bef50f
SDJ
134072017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
13408
13409 PR gdb/21364
13410 * osdata.c (info_osdata): Check if 'type' is an empty string
13411 instead of NULL.
13412
9295a5a9
PA
134132017-04-10 Pedro Alves <palves@redhat.com>
13414
13415 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
13416 (ptid_to_global_thread_id, in_thread_list)
13417 (do_captured_list_thread_ids, set_resumed, set_running)
13418 (set_executing, set_stop_requested, finish_thread_state)
13419 (validate_registers_access, can_access_registers_ptid)
13420 (print_thread_info_1, switch_to_thread)
13421 (do_restore_current_thread_cleanup)
13422 (make_cleanup_restore_current_thread, thread_command)
13423 (thread_name_command): Use operator== instead of ptid_equal.
13424
996812e3
PA
134252017-04-10 Pedro Alves <palves@redhat.com>
13426
13427 * thread.c (struct current_thread_cleanup) <next>: Delete field.
13428 (current_thread_cleanup_chain): Delete.
13429 (restore_current_thread_cleanup_dtor)
13430 (make_cleanup_restore_current_thread): Remove references to
13431 current_thread_cleanup_chain.
13432
845b344f
AH
134332017-04-10 Alan Hayward <alan.hayward@arm.com>
13434
13435 * msp430-tdep.c (msp430_pseudo_register_read): Never return
13436 REG_UNKNOWN.
13437
803bdfe4
YQ
134382017-04-10 Yao Qi <yao.qi@linaro.org>
13439
13440 PR gdb/19942
13441 * gdbthread.h (thread_info::deletable): New method.
13442 (thread_info::incref): New method.
13443 (thread_info::decref): New method.
13444 (thread_info::refcount): Move it to private.
13445 * infrun.c (save_stop_context): Call inc_refcount.
13446 (release_stop_context_cleanup): Likewise.
13447 * thread.c (set_thread_exited): New function.
13448 (init_thread_list): Delete "tp" only it is deletable, otherwise
13449 call set_thread_exited.
13450 (delete_thread_1): Call set_thread_exited.
13451 (current_thread_cleanup) <inferior_pid>: Remove.
13452 <thread>: New field.
13453 (restore_current_thread_ptid_changed): Removed.
13454 (do_restore_current_thread_cleanup): Adjust.
13455 (restore_current_thread_cleanup_dtor): Don't call
13456 find_thread_ptid.
13457 (set_thread_refcount): Use dec_refcount.
13458 (make_cleanup_restore_current_thread): Adjust.
13459 (thread_apply_all_command): Call inc_refcount.
13460 (_initialize_thread): Don't call
13461 observer_attach_thread_ptid_changed.
13462
8c25b497
YQ
134632017-04-10 Yao Qi <yao.qi@linaro.org>
13464
13465 * thread.c (delete_thread_1): Hoist code on marking thread as
13466 exited.
13467
8473b447
SM
134682017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13469
13470 * windows-nat.c (windows_detach): Initialize ptid with
13471 minus_one_ptid.
13472
6670ec13
SM
134732017-04-07 Simon Marchi <simon.marchi@ericsson.com>
13474
13475 * unittests/ptid-selftests.c: Fix erroneous assert messages.
13476
ba2f91bb
AH
134772017-04-07 Alan Hayward <alan.hayward@arm.com>
13478
13479 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
13480 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
13481 (bfin_pseudo_register_write): Likewise
13482
436252de
SM
134832017-04-06 Simon Marchi <simon.marchi@ericsson.com>
13484
13485 * common/ptid.h (struct ptid): Change to...
13486 (class ptid_t): ... this.
13487 <ptid_t>: New constructors.
13488 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
13489 matches>: New methods.
13490 <make_null, make_minus_one>: New static methods.
13491 <pid>: Rename to...
13492 <m_pid>: ...this.
13493 <lwp>: Rename to...
13494 <m_lwp>: ...this.
13495 <tid>: Rename to...
13496 <m_tid>: ...this.
13497 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
13498 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
13499 as references, move comment to class ptid_t.
13500 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
13501 ptid_t static methods.
13502 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
13503 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
13504 Take ptid arguments as references, implement using ptid_t methods.
13505 * unittests/ptid-selftests.c: New file.
13506 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13507 unittests/ptid-selftests.c.
13508 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
13509
0dedf377
TP
135102017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13511
13512 * python/python.c (python_run_simple_file): Cast mode literal to
13513 non-const char pointer as expected by PyFile_FromString.
13514
4e9868d4
SM
135152017-04-05 Simon Marchi <simon.marchi@ericsson.com>
13516
13517 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
13518 minus_one_ptid and null_ptid.
13519
9bf2a700
PA
135202017-04-05 Pedro Alves <palves@redhat.com>
13521
13522 * warning.m4 (build_warnings): Remove -Wno-write-strings.
13523 * configure: Regenerate.
13524
a121b7c1
PA
135252017-04-05 Pedro Alves <palves@redhat.com>
13526
13527 * ada-exp.y (yyerror): Constify.
13528 * ada-lang.c (bound_name, get_selections)
13529 (ada_variant_discrim_type)
13530 (ada_variant_discrim_name, ada_value_struct_elt)
13531 (ada_lookup_struct_elt_type, is_unchecked_variant)
13532 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
13533 (catch_ada_exception_command_split)
13534 (catch_ada_assert_command_split, catch_assert_command)
13535 (ada_op_name): Constify.
13536 * ada-lang.h (ada_yyerror, get_selections)
13537 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
13538 * arc-tdep.c (arc_print_frame_cache): Constify.
13539 * arm-tdep.c (arm_skip_stub): Constify.
13540 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
13541 (gen_aggregate_elt_ref): Constify.
13542 * bcache.c (print_bcache_statistics): Constify.
13543 * bcache.h (print_bcache_statistics): Constify.
13544 * break-catch-throw.c (catch_exception_command_1):
13545 * breakpoint.c (struct ep_type_description::description):
13546 Constify.
13547 (add_solib_catchpoint): Constify.
13548 (catch_fork_command_1): Add cast.
13549 (add_catch_command): Constify.
13550 * breakpoint.h (add_catch_command, add_solib_catchpoint):
13551 Constify.
13552 * bsd-uthread.c (bsd_uthread_state): Constify.
13553 * buildsym.c (patch_subfile_names): Constify.
13554 * buildsym.h (next_symbol_text_func, patch_subfile_names):
13555 Constify.
13556 * c-exp.y (yyerror): Constify.
13557 (token::oper): Constify.
13558 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
13559 * c-varobj.c (cplus_describe_child): Constify.
13560 * charset.c (find_charset_names): Add cast.
13561 (find_charset_names): Constify array and add const_cast.
13562 * cli/cli-cmds.c (complete_command, cd_command): Constify.
13563 (edit_command): Constify.
13564 * cli/cli-decode.c (lookup_cmd): Constify.
13565 * cli/cli-dump.c (dump_memory_command, dump_value_command):
13566 Constify.
13567 (struct dump_context): Constify.
13568 (add_dump_command, restore_command): Constify.
13569 * cli/cli-script.c (get_command_line): Constify.
13570 * cli/cli-script.h (get_command_line): Constify.
13571 * cli/cli-utils.c (check_for_argument): Constify.
13572 * cli/cli-utils.h (check_for_argument): Constify.
13573 * coff-pe-read.c (struct read_pe_section_data): Constify.
13574 * command.h (lookup_cmd): Constify.
13575 * common/print-utils.c (decimal2str): Constify.
13576 * completer.c (gdb_print_filename): Constify.
13577 * corefile.c (set_gnutarget): Constify.
13578 * cp-name-parser.y (yyerror): Constify.
13579 * cp-valprint.c (cp_print_class_member): Constify.
13580 * cris-tdep.c (cris_register_name, crisv32_register_name):
13581 Constify.
13582 * d-exp.y (yyerror): Constify.
13583 (struct token::oper): Constify.
13584 * d-lang.h (d_yyerror): Constify.
13585 * dbxread.c (struct header_file_location::name): Constify.
13586 (add_old_header_file, add_new_header_file, last_function_name)
13587 (dbx_next_symbol_text, add_bincl_to_list)
13588 (find_corresponding_bincl_psymtab, set_namestring)
13589 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
13590 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
13591 * defs.h (command_line_input, print_address_symbolic)
13592 (deprecated_readline_begin_hook): Constify.
13593 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
13594 Constify.
13595 * event-top.c (handle_line_of_input): Constify and add cast.
13596 * exceptions.c (catch_errors): Constify.
13597 * exceptions.h (catch_errors): Constify.
13598 * expprint.c (print_subexp_standard, op_string, op_name)
13599 (op_name_standard, dump_raw_expression, dump_raw_expression):
13600 * expression.h (op_name, op_string, dump_raw_expression):
13601 Constify.
13602 * f-exp.y (yyerror): Constify.
13603 (struct token::oper): Constify.
13604 (struct f77_boolean_val::name): Constify.
13605 * f-lang.c (f_word_break_characters): Constify.
13606 * f-lang.h (f_yyerror): Constify.
13607 * fork-child.c (fork_inferior): Add cast.
13608 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
13609 (new_variant): Constify.
13610 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
13611 * gdbarch.c: Regenerate.
13612 * gdbcore.h (set_gnutarget): Constify.
13613 * go-exp.y (yyerror): Constify.
13614 (token::oper): Constify.
13615 * go-lang.h (go_yyerror): Constify.
13616 * go32-nat.c (go32_sysinfo): Constify.
13617 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
13618 * guile/scm-cmd.c (cmdscm_function): Constify.
13619 * guile/scm-param.c (pascm_param_value): Constify.
13620 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
13621 (h8300sx_register_name): Constify.
13622 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
13623 Constify.
13624 * ia64-tdep.c (ia64_register_names): Constify.
13625 * infcmd.c (construct_inferior_arguments): Constify.
13626 (path_command, attach_post_wait): Constify.
13627 * language.c (show_range_command, show_case_command)
13628 (unk_lang_error): Constify.
13629 * language.h (language_defn::la_error)
13630 (language_defn::la_name_of_this): Constify.
13631 * linespec.c (decode_line_2): Constify.
13632 * linux-thread-db.c (thread_db_err_str): Constify.
13633 * lm32-tdep.c (lm32_register_name): Constify.
13634 * m2-exp.y (yyerror): Constify.
13635 * m2-lang.h (m2_yyerror): Constify.
13636 * m32r-tdep.c (m32r_register_names): Constify and make static.
13637 * m68hc11-tdep.c (m68hc11_register_names): Constify.
13638 * m88k-tdep.c (m88k_register_name): Constify.
13639 * macroexp.c (appendmem): Constify.
13640 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
13641 (upgrade_type, parse_external, parse_partial_symbols)
13642 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
13643 (new_symbol): Constify.
13644 * memattr.c (mem_info_command): Constify.
13645 * mep-tdep.c (register_name_from_keyword): Constify.
13646 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
13647 Constify.
13648 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
13649 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
13650 * mi/mi-main.c (captured_mi_execute_command): Constify and add
13651 cast.
13652 (mi_execute_async_cli_command): Constify.
13653 * mips-tdep.c (mips_register_name): Constify.
13654 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
13655 (am33_register_name, am33_2_register_name)
13656 * moxie-tdep.c (moxie_register_names): Constify.
13657 * nat/linux-osdata.c (osdata_type): Constify fields.
13658 * nto-tdep.c (nto_parse_redirection): Constify.
13659 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
13660 (lookup_child_selector): Constify.
13661 (objc_methcall::name): Constify.
13662 * objc-lang.h (lookup_objc_class, lookup_child_selector)
13663 (lookup_struct_typedef): Constify.
13664 * objfiles.c (pc_in_section): Constify.
13665 * objfiles.h (pc_in_section): Constify.
13666 * p-exp.y (struct token::oper): Constify.
13667 (yyerror): Constify.
13668 * p-lang.h (pascal_yyerror): Constify.
13669 * parser-defs.h (op_name_standard): Constify.
13670 (op_print::string): Constify.
13671 (exp_descriptor::op_name): Constify.
13672 * printcmd.c (print_address_symbolic): Constify.
13673 * psymtab.c (print_partial_symbols): Constify.
13674 * python/py-breakpoint.c (stop_func): Constify.
13675 (bppy_get_expression): Constify.
13676 * python/py-cmd.c (cmdpy_completer::name): Constify.
13677 (cmdpy_function): Constify.
13678 * python/py-event.c (evpy_add_attribute)
13679 (gdbpy_initialize_event_generic): Constify.
13680 * python/py-event.h (evpy_add_attribute)
13681 (gdbpy_initialize_event_generic): Constify.
13682 * python/py-evts.c (add_new_registry): Constify.
13683 * python/py-finishbreakpoint.c (outofscope_func): Constify.
13684 * python/py-framefilter.c (get_py_iter_from_func): Constify.
13685 * python/py-inferior.c (get_buffer): Add cast.
13686 * python/py-param.c (parm_constant::name): Constify.
13687 * python/py-unwind.c (fprint_frame_id): Constify.
13688 * python/python.c (gdbpy_parameter_value): Constify.
13689 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
13690 * remote.c (memory_packet_config::name): Constify.
13691 (show_packet_config_cmd, remote_write_bytes)
13692 (remote_buffer_add_string):
13693 * reverse.c (exec_reverse_once): Constify.
13694 * rs6000-tdep.c (variant::name, variant::description): Constify.
13695 * rust-exp.y (rustyyerror): Constify.
13696 * rust-lang.c (rust_op_name): Constify.
13697 * rust-lang.h (rustyyerror): Constify.
13698 * serial.h (serial_ops::name): Constify.
13699 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
13700 (sh_sh3e_register_name, sh_sh2e_register_name)
13701 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
13702 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
13703 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
13704 (sh_sh4al_dsp_register_name): Constify.
13705 * sh64-tdep.c (sh64_register_name): Constify.
13706 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
13707 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
13708 * stabsread.c (patch_block_stabs, read_type_number)
13709 (ref_map::stabs, ref_add, process_reference)
13710 (symbol_reference_defined, define_symbol, define_symbol)
13711 (error_type, read_type, read_member_functions, read_cpp_abbrev)
13712 (read_one_struct_field, read_struct_fields, read_baseclasses)
13713 (read_tilde_fields, read_struct_type, read_array_type)
13714 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
13715 (read_huge_number, read_range_type, read_args, common_block_start)
13716 (find_name_end): Constify.
13717 * stabsread.h (common_block_start, define_symbol)
13718 (process_one_symbol, symbol_reference_defined, ref_add):
13719 * symfile.c (get_section_index, add_symbol_file_command):
13720 * symfile.h (get_section_index): Constify.
13721 * target-descriptions.c (tdesc_type::name): Constify.
13722 (tdesc_free_type): Add cast.
13723 * target.c (find_default_run_target):
13724 (add_deprecated_target_alias, find_default_run_target)
13725 (target_announce_detach): Constify.
13726 (do_option): Constify.
13727 * target.h (add_deprecated_target_alias): Constify.
13728 * thread.c (print_thread_info_1): Constify.
13729 * top.c (deprecated_readline_begin_hook, command_line_input):
13730 Constify.
13731 (init_main): Add casts.
13732 * top.h (handle_line_of_input): Constify.
13733 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
13734 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
13735 (tfind_command): Rename to ...
13736 (tfind_command_1): ... this and constify.
13737 (tfind_command): New function.
13738 (tfind_end_command, tfind_start_command): Adjust.
13739 (encode_source_string): Constify.
13740 * tracepoint.h (encode_source_string): Constify.
13741 * tui/tui-data.c (tui_partial_win_by_name): Constify.
13742 * tui/tui-data.h (tui_partial_win_by_name): Constify.
13743 * tui/tui-source.c (tui_set_source_content_nil): Constify.
13744 * tui/tui-source.h (tui_set_source_content_nil): Constify.
13745 * tui/tui-win.c (parse_scrolling_args): Constify.
13746 * tui/tui-windata.c (tui_erase_data_content): Constify.
13747 * tui/tui-windata.h (tui_erase_data_content): Constify.
13748 * tui/tui-winsource.c (tui_erase_source_content): Constify.
13749 * tui/tui.c (tui_enable): Add cast.
13750 * utils.c (defaulted_query): Constify.
13751 (init_page_info): Add cast.
13752 (puts_debug, subset_compare): Constify.
13753 * utils.h (subset_compare): Constify.
13754 * varobj.c (varobj_format_string): Constify.
13755 * varobj.h (varobj_format_string): Constify.
13756 * vax-tdep.c (vax_register_name): Constify.
13757 * windows-nat.c (windows_detach): Constify.
13758 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
13759 * xml-support.c (gdb_xml_end_element): Constify.
13760 * xml-tdesc.c (tdesc_start_reg): Constify.
13761 * xstormy16-tdep.c (xstormy16_register_name): Constify.
13762 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
13763 * xtensa-tdep.h (xtensa_register_t::name): Constify.
13764
995816ba
PA
137652017-04-05 Pedro Alves <palves@redhat.com>
13766
13767 * proc-api.c (struct trans): Constify.
13768 (procfs_note): Constify.
13769 * proc-events.c (struct trans, syscall_table):
13770 * proc-flags.c (struct trans): Constify.
13771 * proc-utils.h (procfs_note): Constify.
13772 * proc-why.c (struct trans): Constify.
13773 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
13774 (procfs_detach): Constify.
13775 * sol-thread.c (struct string_map): Constify.
13776 (td_err_string, td_state_string): Constify.
13777
3e83a920
PA
137782017-04-05 Pedro Alves <palves@redhat.com>
13779
13780 * proc-api.c (procfs_filename): Don't initialize
13781 procfs_filename.
13782 (prepare_to_trace): Assume procfs_filename is non-NULL.
13783 (_initialize_proc_api): Give procfs_filename a default value here.
13784
63160a43
PA
137852017-04-05 Pedro Alves <palves@redhat.com>
13786
13787 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
13788 'cond_string' parameter.
13789 (extract_exception_regexp): Constify 'string' parameter.
13790 (catch_exception_command_1): Constify.
13791 * breakpoint.c (init_catchpoint)
13792 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
13793 parameter.
13794 (ep_parse_optional_if_clause, catch_fork_command_1)
13795 (catch_exec_command_1): Constify.
13796 * breakpoint.h (init_catchpoint): Constify 'cond_string'
13797 parameter.
13798 (ep_parse_optional_if_clause): Constify.
13799 * cli/cli-utils.c (remove_trailing_whitespace)
13800 (check_for_argument): Constify.
13801 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
13802 non-const overload.
13803 (check_for_argument): Likewise.
13804
9b2eba3d
PA
138052017-04-05 Pedro Alves <palves@redhat.com>
13806
13807 * event-top.c (command_line_handler): Add cast to execute_command
13808 call.
13809 * record-btrace.c (cmd_record_btrace_bts_start)
13810 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
13811 (cmd_record_btrace_start): Add cast to execute_command call.
13812 * record-full.c (record_full_goto_insn):
13813 * record.c (record_start, record_stop): Add cast to
13814 execute_command_to_string calls.
13815 (cmd_record_start): Add cast to execute_command calls.
13816
2adadf51
PA
138172017-04-05 Pedro Alves <palves@redhat.com>
13818
13819 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
13820 static inline function.
13821 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
13822 array and use gdb_PyArg_ParseTupleAndKeywords.
13823 * python/py-cmd.c (cmdpy_init): Likewise.
13824 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
13825 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
13826 (infpy_search_memory): Likewise.
13827 * python/py-objfile.c (objfpy_add_separate_debug_file)
13828 (gdbpy_lookup_objfile): Likewise.
13829 * python/py-symbol.c (gdbpy_lookup_symbol)
13830 (gdbpy_lookup_global_symbol): Likewise.
13831 * python/py-type.c (gdbpy_lookup_type): Likewise.
13832 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
13833 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
13834 Likewise.
13835
0d1f4ceb
PA
138362017-04-05 Pedro Alves <palves@redhat.com>
13837
13838 * python/python-internal.h (gdb_PyGetSetDef): New type.
13839 * python/py-block.c (block_object_getset)
13840 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
13841 * python/py-event.c (event_object_getset)
13842 (finish_breakpoint_object_getset): Likewise.
13843 * python/py-inferior.c (inferior_object_getset): Likewise.
13844 * python/py-infthread.c (thread_object_getset): Likewise.
13845 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
13846 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
13847 * python/py-objfile.c (objfile_getset): Likewise.
13848 * python/py-progspace.c (pspace_getset): Likewise.
13849 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
13850 Likewise.
13851 * python/py-record.c (recpy_record_getset): Likewise.
13852 * python/py-symbol.c (symbol_object_getset): Likewise.
13853 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
13854 Likewise.
13855 * python/py-type.c (type_object_getset, field_object_getset):
13856 Likewise.
13857 * python/py-value.c (value_object_getset): Likewise.
13858
4d759979
PA
138592017-04-05 Pedro Alves <palves@redhat.com>
13860
13861 * python/python-internal.h (gdb_PyObject_CallMethod)
13862 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
13863 New functions.
13864 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
13865 (PySys_GetObject, PySys_SetPath): New macros.
13866
fdf9e36f
PA
138672017-04-05 Pedro Alves <palves@redhat.com>
13868
13869 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
13870 info_osdata_command.
13871 * osdata.c (info_osdata_command): Rename to ...
13872 (info_osdata): ... this. Constify 'type' parameter, and remove
13873 the 'from_tty' parameter. Accept NULL TYPE.
13874 (info_osdata_command): New function.
13875 * osdata.h (info_osdata_command): Remove declaration.
13876 (info_osdata): New declaration.
13877
9f33b8b7
PA
138782017-04-05 Pedro Alves <palves@redhat.com>
13879
13880 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
13881 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
13882 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
13883 parameter.
13884 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
13885 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
13886 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
13887 parameter.
13888 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
13889 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
13890 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
13891 (mi_cmd_file_list_exec_source_files)
13892 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
13893 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13894 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
13895 parameter.
13896 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
13897 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
13898 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
13899 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
13900 (mi_cmd_stack_info_frame): Constify 'command' parameter.
13901 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
13902 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
13903 'command' parameter.
13904 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
13905 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
13906 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
13907 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
13908 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
13909 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
13910 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
13911 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
13912 (mi_cmd_var_set_update_range): Constify 'command' parameter.
13913 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
13914 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
13915 parameter.
13916 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
13917 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
13918 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
13919 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
13920 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
13921 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
13922 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
13923 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
13924 (mi_cmd_data_list_changed_registers)
13925 (mi_cmd_data_write_register_values)
13926 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
13927 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
13928 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
13929 (mi_cmd_list_features, mi_cmd_list_target_features)
13930 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
13931 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
13932 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
13933 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
13934 (mi_cmd_trace_frame_collected): Constify 'command'
13935 parameter.
13936 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
13937 'command' parameter.
13938
67cb5b2d
PA
139392017-04-05 Pedro Alves <palves@redhat.com>
13940
13941 * ada-lang.c (ada_completer_word_break_characters): Now a const
13942 array.
13943 (ada_get_gdb_completer_word_break_characters): Constify.
13944 * completer.c (gdb_completer_command_word_break_characters)
13945 (gdb_completer_file_name_break_characters)
13946 (gdb_completer_quote_characters): Now const arrays.
13947 (get_gdb_completer_quote_characters): Constify.
13948 (set_rl_completer_word_break_characters): New function.
13949 (set_gdb_completion_word_break_characters)
13950 (complete_line_internal): Use it.
13951 * completer.h (get_gdb_completer_quote_characters): Constify.
13952 (set_rl_completer_word_break_characters): Declare.
13953 * f-lang.c (f_word_break_characters): Constify.
13954 * language.c (default_word_break_characters): Constify.
13955 * language.h (language_defn::la_word_break_characters): Constify.
13956 (default_word_break_characters): Constify.
13957 * top.c (init_main): Use set_rl_completer_word_break_characters.
13958
7a114964
PA
139592017-04-05 Pedro Alves <palves@redhat.com>
13960
13961 * aix-thread.c (aix_thread_pid_to_str)
13962 (aix_thread_extra_thread_info): Constify.
13963 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
13964 * bsd-uthread.c (bsd_uthread_extra_thread_info)
13965 (bsd_uthread_pid_to_str): Constify.
13966 * corelow.c (core_pid_to_str): Constify.
13967 * darwin-nat.c (darwin_pid_to_str): Constify.
13968 * fbsd-nat.c (fbsd_pid_to_str): Constify.
13969 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
13970 Constify.
13971 * gnu-nat.c (gnu_pid_to_str): Constify.
13972 * go32-nat.c (go32_pid_to_str): Constify.
13973 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
13974 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
13975 * inferior.c (inferior_pid_to_str): Constify.
13976 * linux-nat.c (linux_nat_pid_to_str): Constify.
13977 * linux-tdep.c (linux_core_pid_to_str): Constify.
13978 * linux-thread-db.c (thread_db_pid_to_str)
13979 (thread_db_extra_thread_info): Constify.
13980 * nto-tdep.c (nto_extra_thread_info): Constify.
13981 * nto-tdep.h (nto_extra_thread_info): Constify.
13982 * obsd-nat.c (obsd_pid_to_str): Constify.
13983 * procfs.c (procfs_pid_to_str): Constify.
13984 * ravenscar-thread.c (ravenscar_extra_thread_info)
13985 (ravenscar_pid_to_str): Constify.
13986 * remote-sim.c (gdbsim_pid_to_str): Constify.
13987 * remote.c (remote_threads_extra_info, remote_pid_to_str):
13988 Constify.
13989 * sol-thread.c (solaris_pid_to_str): Constify.
13990 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
13991 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
13992 * target.c (default_pid_to_str, target_pid_to_str)
13993 (normal_pid_to_str, default_pid_to_str): Constify.
13994 * target.h (target_ops::to_pid_to_str)
13995 (target_ops::to_extra_thread_info): Constify.
13996 (target_pid_to_str, normal_pid_to_str): Constify.
13997 * windows-nat.c (windows_pid_to_str): Constify.
13998 * gdbarch.sh (core_pid_to_str): Constify.
13999 * target-delegates.c: Regenerate.
14000 * gdbarch.h, gdbarch.c: Regenerate.
14001
69bbf465
PA
140022017-04-05 Pedro Alves <palves@redhat.com>
14003
14004 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14005 the memory of the temporary warning_pre_print override.
14006 * utils.c (warning_pre_print): Constify.
14007 * utils.h (warning_pre_print): Constify.
14008
be47f9e8
PA
140092017-04-05 Pedro Alves <palves@redhat.com>
14010
14011 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14012 (shell_command): New function.
14013 (make_command): Use std::string.
14014 (init_cli_cmds): Register shell_command instead of shell_escape.
14015
bde6261a
PA
140162017-04-05 Pedro Alves <palves@redhat.com>
14017
14018 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14019 * tracepoint.c (default_collect): Don't initialize.
14020
b38ef47f
PA
140212017-04-05 Pedro Alves <palves@redhat.com>
14022
14023 * macroexp.c (macro_buffer::shared): Now a bool.
14024 (init_buffer): Update.
14025 (init_shared_buffer): Constify 'addr' parameter.
14026 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14027 casts.
14028
f995bbe8
PA
140292017-04-05 Pedro Alves <palves@redhat.com>
14030
14031 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14032 * disasm.c (set_disassembler_options): Constify local.
14033 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14034
4a596fe2
SDJ
140352017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14036
14037 PR gdb/21352
14038 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14039 option.
14040
2cad08ea
YQ
140412017-04-05 Yao Qi <yao.qi@linaro.org>
14042
14043 * frame.c (frame_unwind_register_unsigned): Call
14044 frame_unwind_register_value.
14045
55a98976
YQ
140462017-04-05 Yao Qi <yao.qi@linaro.org>
14047
14048 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14049 Use gdb_test_multiple, and don't match anchor.
14050
4ac40124
PA
140512017-04-05 Pedro Alves <palves@redhat.com>
14052
14053 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14054 (Write After Approval): Remove Simon Marchi.
14055
c053b654
PA
140562017-04-05 Pedro Alves <palves@redhat.com>
14057
14058 * common/gdb_optional.h (optional::optional): Make constexpr and
14059 initialize m_dummy.
14060
4c7bf4f9
JB
140612017-04-04 John Baldwin <jhb@FreeBSD.org>
14062
14063 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14064 (amd64fbsd_jmp_buf_reg_offset): Remove.
14065 (amd64fbsd_supply_uthread): Remove function.
14066 (amd64fbsd_collect_uthread): Remove function.
14067 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14068 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14069 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14070 (fbsd-nat.c): Update comment.
14071 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14072 (i386fbsd_jmp_buf_reg_offset): Remove.
14073 (i386fbsd_supply_uthread): Remove function.
14074 (i386fbsd_collect_uthread): Remove function.
14075 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14076
1e1a8bef
JB
140772017-04-04 John Baldwin <jhb@FreeBSD.org>
14078
14079 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14080 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14081 * NEWS: Mention that support for FreeBSD/alpha was removed.
14082 * alpha-fbsd-tdep.c: Delete file.
14083 * config/alpha/fbsd.mh: Delete file.
14084 * configure.host: Delete alpha*-*-freebsd* and
14085 alpha*-*-kfreebsd*-gnu.
14086 * configure.tgt: Delete alpha*-*-freebsd* and
14087 alpha*-*-kfreebsd*-gnu.
14088
49907934
JB
140892017-04-04 John Baldwin <jhb@FreeBSD.org>
14090
14091 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14092 amd64bsd_store_inferior_registers): Use ptid from regcache.
14093
6f77053d
PA
140942017-04-04 Pedro Alves <palves@redhat.com>
14095
14096 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14097 data fields, make them private and add "m_" prefixes.
14098 (lnp_state_machine::lnp_state_machine): New ctor.
14099 (record_line, check_line_address, handle_set_discriminator)
14100 (handle_set_address, handle_advance_pc, handle_special_opcode)
14101 (handle_advance_line, handle_set_file, handle_negate_stmt)
14102 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14103 (end_sequence, advance_line): New methods.
14104 (m_gdbarch, m_record_lines_p): New fields.
14105 (lnp_reader_state): Delete.
14106 (dwarf_record_line): Rename to ...
14107 (lnp_state_machine::record_line): ... adjust.
14108 (init_lnp_state_machine): Delete.
14109 (lnp_state_machine::lnp_state_machine): New.
14110 (check_line_address): Rename to ...
14111 (lnp_state_machine::check_line_address): This.
14112 (dwarf_decode_lines_1): Remove reference to "reader_state".
14113 Adjust lnp_state_machine having a non-default ctor. Use bool.
14114 State machine internal state manipulation moved to
14115 lnp_state_machine methods.
14116
9c541725
PA
141172017-04-04 Pedro Alves <palves@redhat.com>
14118
14119 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14120 unittests/offset-type-selftests.c.
14121 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14122 * common/offset-type.h: New file.
14123 * common/preprocessor.h: New file.
14124 * common/traits.h: New file.
14125 * common/valid-expr.h: New file.
14126 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14127 sect_offset and cu_offset strong typedefs throughout.
14128 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14129 typedefs throughout.
14130 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14131 sect_offset and cu_offset strong typedefs throughout.
14132 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14133 typedefs throughout.
14134 * gdbtypes.h: Include "common/offset-type.h".
14135 (cu_offset): Now an offset type (strong typedef) instead of a
14136 struct.
14137 (sect_offset): Likewise.
14138 (union call_site_parameter_u): Rename "param_offset" field to
14139 "param_cu_off".
14140 * unittests/offset-type-selftests.c: New file.
14141
ecfb656c
PA
141422017-04-04 Pedro Alves <palves@redhat.com>
14143
14144 * common/underlying.h: New file.
14145 * dwarf2read.c: Include "common/gdb_optional.h" and
14146 "common/underlying.h".
14147 (dir_index, file_name_index): New types.
14148 (file_entry): Use them.
14149 (file_entry::include): Use to_underlying.
14150 (line_header::add_file_name): Use dir_index.
14151 (read_formatted_entries): Use gdb::optional. Read form before
14152 writting to file_entry.
14153 (dwarf_decode_line_header): Use dir_index.
14154 (lnp_state_machine::current_file): Use to_underlying.
14155 (lnp_state_machine::file): Change type to file_name_index.
14156 (dwarf_record_line): Use to_underlying.
14157 (init_lnp_state_machine): Use file_name_index.
14158 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14159
d194f1fe
PA
141602017-04-04 Pedro Alves <palves@redhat.com>
14161
14162 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
14163 operator bool, has_value and get methods.
14164
fff8551c
PA
141652017-04-04 Pedro Alves <palves@redhat.com>
14166
14167 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
14168 fields.
14169 (line_header): Initialize all data fields. Change type of
14170 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
14171 Change type of include_dirs to std::vector<const char *>. Remove
14172 num_include_dirs, include_dirs_size. Change type of file_names to
14173 std::vector<file_entry>. Remove num_file_names, file_names_size.
14174 (line_header::line_header): New.
14175 (line_header::add_include_dir, line_header::add_file_name): New
14176 methods.
14177 (line_header::include_dir_at): Remove NULL check.
14178 (line_header::file_name_at): Add const overload.
14179 (line_header_up): New unique_ptr typedef.
14180 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
14181 std::vector. Remove free_line_header call.
14182 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
14183 free_line_header call.
14184 (free_cu_line_header): Delete.
14185 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
14186 (setup_type_unit_groups): Use line_header_up instead of cleanups.
14187 Adjust to use std::vector.
14188 (free_line_header): Delete.
14189 (free_line_header_voidp): Use delete.
14190 (add_include_dir): Replace with ...
14191 (line_header::add_include_dir): ... this method. Use std::vector.
14192 (add_file_name): Replace with ...
14193 (line_header::add_file_name): ... this method. Use std::vector.
14194 (add_include_dir_stub): Delete.
14195 (read_formatted_entries): Remove memset.
14196 (dwarf_decode_line_header): Return a line_header_up instead of a
14197 raw pointer. Remove cleanup handling. Pass lambdas to
14198 read_formatted_entries. Adjust to use line_header methods.
14199 (dwarf_decode_lines_1): Adjust to use line_header methods.
14200 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
14201 use std::vector.
14202
d62a8ae2
SM
142032017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
14204
14205 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
14206 instead of struct ptid.
14207
db3a1dc7
AH
142082017-05-04 Alan Hayward <alan.hayward@arm.com>
14209
14210 * frame.c (get_frame_register_bytes): Unwind using value.
14211 (put_frame_register_bytes): Likewise.
14212
b1b45502
IB
142132017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
14214
14215 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
14216 aggregate-like.
14217
ec13808e
JK
142182017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
14219
14220 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
14221
12316564
YQ
142222017-03-29 Yao Qi <yao.qi@linaro.org>
14223
14224 * gdbthread.h (struct thread_info): Declare constructor and
14225 destructor. Add some in-class member initializers.
14226 * thread.c (free_thread): Remove.
14227 (init_thread_list): Call delete instead of free_thread.
14228 (new_thread): Call thread_info constructor.
14229 (thread_info::thread_info): New function.
14230 (thread_info::~thread_info): New function.
14231 (delete_thread_1): Call delete instead of free_thread.
14232 (make_cleanup_restore_current_thread): Move tp and frame to
14233 inner block.
14234
fe5f7374
AK
142352017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14236
14237 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
14238 (arc_skip_prologue): Likewise.
14239 (arc_make_frame_cache): Likewise.
14240 (arc_pv_get_operand): New function.
14241 (arc_is_in_prologue): Likewise.
14242 (arc_analyze_prologue): Likewise.
14243 (arc_print_frame_cache): Likewise.
14244 (MAX_PROLOGUE_LENGTH): New constant.
14245
eea78757
AK
142462017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14247
14248 * configure.tgt: Add arc-insn.o.
14249 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
14250 (dump_arc_instruction_command): New function.
14251 (arc_fprintf_disasm): Likewise.
14252 (arc_disassemble_info): Likewise.
14253 (arc_insn_get_operand_value): Likewise.
14254 (arc_insn_get_operand_value_signed): Likewise.
14255 (arc_insn_get_memory_base_reg): Likewise.
14256 (arc_insn_get_memory_offset): Likewise.
14257 (arc_insn_get_branch_target): Likewise.
14258 (arc_insn_dump): Likewise.
14259 (arc_insn_get_linear_next_pc): Likewise.
14260 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
14261 (arc_disassemble_info): Likewise.
14262 (arc_insn_get_branch_target): Likewise.
14263 (arc_insn_get_linear_next_pc): Likewise.
14264 * NEWS: Mention new "maint print arc arc-instruction".
14265
3be78afd
AK
142662017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14267
14268 * arc-tdep (maintenance_print_arc_list): New variable.
14269 (maintenance_print_arc_command): New function.
14270
296ec4fa
AK
142712017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14272
14273 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
14274 Add "limm" and "reserved".
14275 (arc_cannot_fetch_register, arc_cannot_store_register): Add
14276 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
14277 * arc-tdep.h (arc_regnum): Likewise.
14278
f74f865e
MF
142792017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14280
14281 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14282 for THREADPTR register.
14283 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
14284 register.
14285 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
14286 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
14287 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
14288
0d0bf81a
MF
142892017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14290
14291 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
14292 registers above gdbarch_num_regs (gdbarch) as privileged in
14293 call0 ABI.
14294
0ce4291e
MF
142952017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14296
14297 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14298 for a single specified register or for all registers in
14299 a0_base..a0_base + C0_NREGS range.
14300 (supply_gregset_reg): Call regcache_raw_supply for a single
14301 specified register or for all registers in a0_base..a0_base +
14302 C0_NREGS range.
14303
c56054f9
MF
143042017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14305
14306 * arch/xtensa.h (C0_NREGS): Add definition.
14307 * xtensa-tdep.c (C0_NREGS): Remove definition.
14308
a4398628
MF
143092017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14310
14311 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
14312 Drop xtensa_default_isa initialization.
14313 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
14314
8c43009f
PA
143152017-03-27 Pedro Alves <palves@redhat.com>
14316
14317 * dwarf2read.c (file_entry) <dir_index>: Add comment.
14318 (file_entry::include_dir): New method.
14319 (line_header::include_dir_at, line_header::file_name_at): New
14320 methods.
14321 (setup_type_unit_groups, setup_type_unit_groups)
14322 (psymtab_include_file_name): Simplify using the new methods.
14323 (lnp_state_machine) <the_line_header>: New field.
14324 <file>: Add comment.
14325 (lnp_state_machine::current_file): New method.
14326 (dwarf_record_line): Simplify using the new methods.
14327 (init_lnp_state_machine): Initialize the "the_line_header" field.
14328 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
14329 Simplify using the new methods.
14330
a7e80b9e
PA
143312017-03-27 Pedro Alves <palves@redhat.com>
14332
14333 * cp-name-parser.y (make_empty): Delete.
14334 (demangler_special, nested_name, ptr_operator, array_indicator)
14335 (direct_declarator, declarator_1): Use fill_comp instead of
14336 make_empty.
14337
21047726
PA
143382017-03-27 Pedro Alves <palves@redhat.com>
14339
14340 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
14341 to ATTRIBUTE_PRINTF.
14342 * solib-target.c (library_list_start_list): Print "string" not
14343 "version".
14344 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
14345 gdb_xml_error call.
14346
d721ba37
PA
143472017-03-27 Pedro Alves <palves@redhat.com>
14348
14349 * dwarf2read.c (struct file_and_directory): New.
14350 (dwarf2_get_dwz_file): Adjust to use std::string.
14351 (dw2_get_file_names_reader): Adjust to use file_and_directory.
14352 (find_file_and_directory): Adjust to return a file_and_directory
14353 object.
14354 (read_file_scope): Adjust to use file_and_directory. Remove
14355 make_cleanup/do_cleanups calls.
14356 (open_and_init_dwp_file): Adjust to use std::string. Remove
14357 make_cleanup/do_cleanups calls.
14358 * python/python.c (do_start_initialization): Adjust to ldirname
14359 returning a std::string.
14360 * utils.c (ldirname): Now returns a std::string.
14361 * utils.h (ldirname): Change return type to std::string.
14362 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
14363 returning a std::string.
14364 * xml-tdesc.c (file_read_description_xml): Likewise.
14365
ed771251
AH
143662017-03-24 Alan Hayward <alan.hayward@arm.com>
14367
14368 * regcache.c (regcache_debug_print_register): New function.
14369 * regcache.h (regcache_debug_print_register): New declaration.
14370 * target.c (debug_print_register): Remove.
14371 (target_fetch_registers): Call regcache_debug_print_register.
14372 (target_store_registers): Likewise.
14373
568c1b9f
PB
143742017-03-24 Pádraig Brady <pbrady@fb.com>
14375
14376 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
14377 reference beyond the 'lh->include_dirs' array before accessing to
14378 it.
14379 (psymtab_include_file_name): Likewise.
14380 (dwarf_decode_lines_1): Likewise.
14381 (dwarf_decode_lines): Likewise.
14382 (file_file_name): Likewise.
14383
3e00d44f
SM
143842017-03-23 Simon Marchi <simon.marchi@ericsson.com>
14385
14386 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
14387 inferior_ptid.
14388 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14389 ps_lsetfpregs): Likewise.
14390 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
14391 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14392 ps_lsetfpregs): Likewise.
14393 * target.c (target_fetch_registers, target_store_registers):
14394 Remove asserts.
14395
077ae656
AH
143962017-03-23 Alan Hayward <alan.hayward@arm.com>
14397
14398 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
14399
1e2b521d
YQ
144002017-03-23 Yao Qi <yao.qi@linaro.org>
14401
14402 * aarch64-tdep.c (aarch64_process_record_test): Declare.
14403 (_initialize_aarch64_tdep): Register it.
14404 (aarch64_record_load_store): Handle PRFM instruction.
14405 (aarch64_process_record_test): New function.
14406
33877125
YQ
144072017-03-23 Yao Qi <yao.qi@linaro.org>
14408
14409 * aarch64-tdep.c (aarch64_record_load_store): Fix code
14410 indentation.
14411
a0eef940
YQ
144122017-03-23 Yao Qi <yao.qi@linaro.org>
14413
14414 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
14415
3f2a3564
PR
144162017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14417
14418 python/python.c (do_start_initialization): Fix memory leak.
14419
b67aeab0
SM
144202017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
14421
14422 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
14423 using get_ptrace_pid.
14424 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
14425 inferior_ptid.
14426 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
14427 inferior_ptid instead of pid.
14428
ffdbe864
YQ
144292017-03-22 Yao Qi <yao.qi@linaro.org>
14430
14431 * aarch64-tdep.c: Wrap locally used classes in anonymous
14432 namespace.
14433 * arm-tdep.c: Likewise.
14434 * linespec.c: Likewise.
14435 * ui-out.c: Likewise.
14436
9d736fbf
JG
144372017-03-22 Jonah Graham <jonah@kichwacoders.com>
14438
14439 PR gdb/19637
14440 * python/lib/gdb/printer/bound_registers.py: Import sys.
14441
3de88e9a
SM
144422017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14443
14444 * windows-nat.c (do_windows_fetch_inferior_registers): Add
14445 windows_thread_info parameter and use it instead of
14446 current_thread.
14447 (windows_fetch_inferior_registers): Don't set current_thread,
14448 pass the thread to do_windows_fetch_inferior_registers. Use
14449 ptid from regcache instead of inferior_ptid.
14450 (do_windows_store_inferior_registers): Add windows_thread_info
14451 parameter and use it instead of current_thread.
14452 (windows_store_inferior_registers): Don't set current_thread,
14453 pass the thread to do_windows_store_inferior_registers. Use
14454 ptid from regcache instead of inferior_ptid.
14455
0e7b8f61
SM
144562017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14457
14458 * ser-mingw.c (ser_windows_raw): Remove reference to
14459 struct serial::current_timeout.
14460
5badf10a
IR
144612017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
14462
14463 PR tdep/20928
14464 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
14465 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
14466 (sparc64_fsr_type): Fix %fsr decoding.
14467
cee59b3f
TW
144682017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
14469
14470 * python/py-record-btrace.c (btpy_insn_data): Change return type
14471 for Python 2.
14472
639a9038
SM
144732017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14474
14475 * spu-linux-nat.c (spu_fetch_inferior_registers,
14476 spu_store_inferior_registers): Use ptid from regcache, set and
14477 restore inferior_ptid.
14478 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
14479 Likewise.
14480
bcc0c096
SM
144812017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14482
14483 * i386-linux-nat.c (fetch_register, store_register,
14484 i386_linux_fetch_inferior_registers,
14485 i386_linux_store_inferior_registers): Use ptid from regcache.
14486 * ia64-linux-nat.c (ia64_linux_fetch_register,
14487 ia64_linux_store_register): Likewise.
14488 * inf-ptrace.c (inf_ptrace_fetch_register,
14489 inf_ptrace_store_register): Likewise.
14490 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
14491 m32r_linux_store_inferior_registers): Likewise.
14492 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
14493 m68kbsd_store_inferior_registers): Likewise.
14494 * m68k-linux-nat.c (fetch_register, store_register,
14495 m68k_linux_fetch_inferior_registers,
14496 m68k_linux_store_inferior_registers): Likewise.
14497 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
14498 m88kbsd_store_inferior_registers): Likewise.
14499 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
14500 mips_fbsd_store_inferior_registers): Likewise.
14501 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
14502 mips64_linux_regsets_store_registers): Likewise.
14503 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
14504 mipsnbsd_store_inferior_registers): Likewise.
14505 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
14506 mips64obsd_store_inferior_registers): Likewise.
14507 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
14508 Likewise.
14509 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
14510 ppcfbsd_store_inferior_registers): Likewise.
14511 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
14512 ppc_linux_store_inferior_registers): Likewise.
14513 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
14514 ppcnbsd_store_inferior_registers): Likewise.
14515 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
14516 ppcobsd_store_registers): Likewise.
14517 * procfs.c (procfs_fetch_registers, procfs_store_registers):
14518 Likewise.
14519 * ravenscar-thread.c (ravenscar_fetch_registers,
14520 ravenscar_store_registers, ravenscar_prepare_to_store):
14521 Likewise.
14522 * record-btrace.c (record_btrace_fetch_registers,
14523 record_btrace_store_registers, record_btrace_prepare_to_store):
14524 Likewise.
14525 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
14526 Lookup inferior using ptid from regcache, instead of
14527 current_inferior.
14528 * remote.c (remote_fetch_registers, remote_store_registers): Use
14529 ptid from regcache.
14530 * rs6000-nat.c (fetch_register, store_register): Likewise.
14531 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
14532 s390_linux_store_inferior_registers): Likewise.
14533 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
14534 shnbsd_store_inferior_registers): Likewise.
14535 * sol-thread.c (sol_thread_fetch_registers,
14536 sol_thread_store_registers): Likewise.
14537 * sparc-nat.c (sparc_fetch_inferior_registers,
14538 sparc_store_inferior_registers): Likewise.
14539 * tilegx-linux-nat.c (fetch_inferior_registers,
14540 store_inferior_registers): Likewise.
14541 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
14542 vaxbsd_store_inferior_registers): Likewise.
14543 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
14544 store_xtregs): Likewise.
14545
c0f55cc6
AV
145462017-03-20 Artemiy Volkov <artemiyv@acm.org>
14547
14548 PR gdb/14441
14549 * NEWS: Mention support for rvalue references in GDB and python.
14550 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
14551 supports both lvalue and rvalue references.
14552
15c0a2a9
AV
145532017-03-20 Artemiy Volkov <artemiyv@acm.org>
14554
14555 PR gdb/14441
14556 * gdbtypes.c (rank_one_type): Implement overloading
14557 resolution rules regarding rvalue references.
14558
aa006118
AV
145592017-03-20 Artemiy Volkov <artemiyv@acm.org>
14560
14561 PR gdb/14441
14562 * aarch64-tdep.c (aarch64_type_align)
14563 (aarch64_extract_return_value, aarch64_store_return_value): Change
14564 lvalue reference type checks to general reference type checks.
14565 * amd64-tdep.c (amd64_classify): Likewise.
14566 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
14567 Likewise.
14568 * arm-tdep.c (arm_type_align, arm_extract_return_value)
14569 (arm_store_return_value): Likewise.
14570 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
14571 * c-typeprint.c (c_print_type): Likewise.
14572 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
14573 (cplus_number_of_children, cplus_describe_child): Likewise.
14574 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
14575 * completer.c (expression_completer): Likewise.
14576 * cp-support.c (make_symbol_overload_list_adl_namespace):
14577 Likewise.
14578 * darwin-nat-info.c (info_mach_region_command): Likewise.
14579 * dwarf2loc.c (entry_data_value_coerce_ref)
14580 (value_of_dwarf_reg_entry): Likewise.
14581 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
14582 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
14583 Likewise.
14584 * findvar.c (extract_typed_address, store_typed_address):
14585 Likewise.
14586 * gdbtypes.c (rank_one_type): Likewise.
14587 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
14588 * infcall.c (value_arg_coerce): Likewise.
14589 * language.c (pointer_type): Likewise.
14590 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
14591 Likewise.
14592 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
14593 * mn10300-tdep.c (mn10300_type_align): Likewise.
14594 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
14595 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
14596 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
14597 Likewise.
14598 * printcmd.c (print_formatted, x_command): Likewise.
14599 * python/py-type.c (typy_get_composite, typy_template_argument):
14600 Likewise.
14601 * python/py-value.c (valpy_referenced_value)
14602 (valpy_get_dynamic_type, value_has_field): Likewise.
14603 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
14604 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
14605 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
14606 * spu-tdep.c (spu_scalar_value_p): Likewise.
14607 * symtab.c (lookup_symbol_aux): Likewise.
14608 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
14609 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
14610 Likewise.
14611 * valops.c (value_cast_pointers, value_cast)
14612 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
14613 (value_struct_elt, value_struct_elt_bitpos)
14614 (value_find_oload_method_list, find_overload_match)
14615 (value_rtti_indirect_type): Likewise.
14616 * valprint.c (val_print_scalar_type_p, generic_val_print):
14617 Likewise.
14618 * value.c (value_actual_type, value_as_address, unpack_long)
14619 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
14620 (coerce_ref): Likewise.
14621 * varobj.c (varobj_get_value_type): Likewise.
14622
3fcf899d
AV
146232017-03-20 Artemiy Volkov <artemiyv@acm.org>
14624
14625 PR gdb/14441
14626 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
14627 table of constants.
14628 * python/lib/gdb/command/explore.py: Support exploring values
14629 of rvalue reference types.
14630 * python/lib/gdb/types.py: Implement get_basic_type() for
14631 rvalue reference types.
14632 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
14633 constant.
14634 * python/py-value.c (valpy_getitem): Add an rvalue reference
14635 check.
14636 (valpy_reference_value): Add new parameter "refcode".
14637 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
14638 New wrappers for valpy_reference_value().
14639 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14640 (gdbpy_invoke_xmethod): Likewise.
14641
4297a3f0
AV
146422017-03-20 Artemiy Volkov <artemiyv@acm.org>
14643
14644 PR gdb/14441
14645 * dwarf2read.c (process_die, read_type_die_1): Handle the
14646 DW_TAG_rvalue_reference_type DIE.
14647 (read_tag_reference_type): Add new parameter "refcode".
14648
e1cb3213
AV
146492017-03-20 Artemiy Volkov <artemiyv@acm.org>
14650
14651 PR gdb/14441
14652 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
14653 (c_type_print_modifier, c_type_print_varspec_suffix)
14654 (c_type_print_base): Support printing rvalue reference types.
14655 * c-valprint.c (c_val_print, c_value_print): Support printing
14656 rvalue reference values.
14657
e4347c89
AV
146582017-03-20 Artemiy Volkov <artemiyv@acm.org>
14659
14660 PR gdb/14441
14661 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
14662 typename.
14663 * cp-support.c (replace_typedefs): Handle
14664 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
14665 * python/py-type.c (typy_lookup_type): Likewise.
14666
53cc15f5
AV
146672017-03-20 Artemiy Volkov <artemiyv@acm.org>
14668
14669 PR gdb/14441
14670 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
14671 * parse.c (insert_type): Change assert statement.
14672 (follow_types): Handle rvalue reference types.
14673 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
14674 constant.
14675
a65cfae5
AV
146762017-03-20 Artemiy Volkov <artemiyv@acm.org>
14677
14678 PR gdb/14441
14679 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
14680 value_ref() interface.
14681 * c-valprint.c (c_value_print): Likewise.
14682 * infcall.c (value_arg_coerce): Likewise.
14683 * python/py-value.c (valpy_reference_value): Likewise.
14684 * valops.c (value_cast, value_reinterpret_cast)
14685 (value_dynamic_cast, typecmp): Likewise.
14686 (value_ref): Parameterize by kind of return value reference type.
14687 * value.h (value_ref): Add new parameter "refcode".
14688
3b224330
AV
146892017-03-20 Artemiy Volkov <artemiyv@acm.org>
14690
14691 PR gdb/14441
14692 * dwarf2read.c (read_tag_reference_type): Use
14693 lookup_lvalue_reference_type() instead of lookup_reference_type().
14694 * eval.c (evaluate_subexp_standard): Likewise.
14695 * f-exp.y: Likewise.
14696 * gdbtypes.c (make_reference_type, lookup_reference_type):
14697 Generalize with rvalue reference types.
14698 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
14699 convenience wrappers for lookup_reference_type().
14700 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
14701 reference kind parameter.
14702 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
14703 wrappers for lookup_reference_type().
14704 * guile/scm-type.c (gdbscm_type_reference): Use
14705 lookup_lvalue_reference_type() instead of lookup_reference_type().
14706 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
14707 * parse.c (follow_types): Likewise.
14708 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
14709 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
14710 Likewise.
14711 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14712 (gdbpy_invoke_xmethod): Likewise.
14713 * stabsread.c: Provide extra argument to make_reference_type()
14714 call.
14715 * valops.c (value_ref, value_rtti_indirect_type): Use
14716 lookup_lvalue_reference_type() instead of lookup_reference_type().
14717
f9aeb8d4
AV
147182017-03-20 Artemiy Volkov <artemiyv@acm.org>
14719
14720 PR gdb/14441
14721 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
14722 (TYPE_IS_REFERENCE): New macro.
14723 (struct type): Add rvalue_reference_type field.
14724 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
14725
51457a05
MAL
147262017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14727
14728 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
14729 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
14730 New function definition.
14731 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
14732 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
14733 New function declaration.
14734 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
14735 * mi/mi-interp.h: New file.
14736 * solib.c (info_sharedlibrary_command): Replace for loop with
14737 ALL_SO_LIBS macro
14738 * solib.h (update_solib_list): New function declaration.
14739 (so_list_head): Move macro.
14740 * solist.h (ALL_SO_LIBS): New macro.
14741
e696b3ad
MAL
147422017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14743
14744 * infcmd.c (post_create_inferior): Remove unused argument in
14745 call to solib_add.
14746 * remote.c (remote_start_remote): Likewise.
14747 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
14748 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
14749 (enable_break): Likewise.
14750 * solib.c (update_solib_list): Remove unused target argument
14751 and its documentation.
14752 (solib_add): Remove unused target argument. Remove unused
14753 argument in call to update_solib_list.
14754 (info_sharedlibrary_command): Remove unused argument in call
14755 to update_solib_list.
14756 (sharedlibrary_command): Remove unused argument in call to
14757 solib_add.
14758 (handle_solib_event): Likewise.
14759 (reload_shared_libraries): Likewise.
14760 * solib.h (solib_add): Remove unused target argument.
14761
dcb84eda
AA
147622017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
14763
14764 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
14765 (s390_displaced_step_fixup): Cover relative branches with the
14766 default fixup handling. This fixes lack of support for some
14767 relative branch instructions.
14768
d9cb6cdc
SM
147692017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14770
14771 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
14772 ptid from regcache.
14773
1afaf9f4
SM
147742017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14775
14776 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
14777 i386_darwin_store_inferior_registers): Use ptid from regcache.
14778
aac12e24
SM
147792017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14780
14781 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
14782 i386bsd_store_inferior_registers): Use ptid from regcache.
14783
bbe1eef1
SM
147842017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14785
14786 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
14787 hppaobsd_store_registers): Use ptid from regcache.
14788
10799020
SM
147892017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14790
14791 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
14792 hppanbsd_store_registers): Use ptid from regcache.
14793
00204cf7
SM
147942017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14795
14796 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
14797 from regcache. Use get_ptrace_pid.
14798
11a33714
SM
147992017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14800
14801 * corelow.c (get_core_register_section): Use ptid from regcache,
14802 update doc.
14803
317cd492
SM
148042017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14805
14806 * bsd-uthread.c (bsd_uthread_fetch_registers,
14807 bsd_uthread_store_registers): Use ptid from regcache, set and
14808 restore inferior_ptid.
14809
9ac8a7c2
SM
148102017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14811
14812 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
14813 fetch_fp_regs, store_register, store_regs, store_fp_register,
14814 store_fp_regs): Use ptid from regcache.
14815
4ac4bb6a
SM
148162017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14817
14818 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
14819 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
14820 store_vfp_regs): Use ptid from regcache.
14821
9bcbdca8
PA
148222017-03-17 Pedro Alves <palves@redhat.com>
14823
14824 PR remote/21188
14825 * ser-base.c (ser_base_wait_for): Add comment.
14826 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
14827 version.
14828 * ser-unix.c (hardwire_raw): Remove reference to
14829 scb->current_timeout.
14830 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
14831 (hardwire_ops): Install ser_base_readchar instead of
14832 hardwire_readchar.
14833 * serial.h (struct serial) <current_timeout, timeout_remaining>:
14834 Remove fields.
14835
7503099f
JG
148362017-03-17 Jonah Graham <jonah@kichwacoders.com>
14837
14838 PR gdb/19637
14839 * python/lib/gdb/printer/bound_registers.py: Add support for
14840 Python 3.
14841
7942e96e
AA
148422017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
14843
14844 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
14845 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
14846 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
14847 byte_offset to subobj_byte_offset. Fix the handling of
14848 DWARF_VALUE_STACK on big-endian targets when coming via an
14849 implicit pointer.
14850 (dwarf2_evaluate_loc_desc): Adjust call to
14851 dwarf2_evaluate_loc_desc_full.
14852 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
14853 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
14854
ba14f379
YQ
148552017-03-16 Yao Qi <yao.qi@linaro.org>
14856
14857 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
14858 and REVSH instructions.
14859
b121eeb9
YQ
148602017-03-16 Yao Qi <yao.qi@linaro.org>
14861
14862 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
14863 (arm_record_test): Declare.
14864 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
14865 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
14866 align with the manual.
14867 (thumb_record_misc): Adjust the code order to align with the
14868 manual.
14869 (thumb2_record_decode_insn_handler): Fix instruction matching.
14870 (instruction_reader_thumb): New class.
14871 (arm_record_test): New function.
14872
728a7913
YQ
148732017-03-16 Yao Qi <yao.qi@linaro.org>
14874
14875 * arm-tdep.c (abstract_memory_reader): New class.
14876 (instruction_reader): New class.
14877 (extract_arm_insn): Add argument 'reader'. Callers updated.
14878 (decode_insn): Likewise.
14879
34b43320
DE
148802017-03-16 Doug Evans <dje@google.com>
14881
a7c0469f
DE
14882 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
14883 member. Change type of TYPE member to SCM. All uses updated.
14884 (lsscm_make_lazy_string_smob): Add assert.
14885 (lsscm_make_lazy_string): Flag bad length values.
14886 (lsscm_elt_type): New function.
14887 (gdbscm_lazy_string_to_value): Rewrite to use
14888 lsscm_safe_lazy_string_to_value.
14889 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
14890 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
14891 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
14892 in incoming type.
14893 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14894 * guile/scm-type.c (tyscm_scm_to_type): New function.
14895
148962017-03-15 Doug Evans <dje@google.com>
14897
34b43320
DE
14898 PR python/17728, python/18439, python/18779
14899 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
14900 member. Change type of TYPE member to PyObject *. All uses updated.
14901 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
14902 (gdbpy_create_lazy_string_object): Flag bad length values.
14903 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
14904 Handle typedefs in incoming type.
14905 (stpy_lazy_string_elt_type): New function.
14906 (gdbpy_extract_lazy_string): Call it.
14907 * python/py-value.c (valpy_lazy_string): Flag bad length values.
14908 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
14909 typedefs in incoming type.
14910
a3a5fecc
DE
149112017-03-16 Doug Evans <dje@google.com>
14912
14913 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14914 * guile/scm-type.c (tyscm_scm_to_type): New function.
14915
28f1c605
JW
149162017-03-16 Jiong Wang <jiong.wang@arm.com>
14917
14918 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
14919 "ULONGEST" for "skip".
14920
87c336f6
AA
149212017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14922
14923 PR gdb/21220
14924 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
14925 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
14926 (inf_ptrace_peek_poke): ...here. New function. Now also loop
14927 over ptrace peek/poke until end of buffer or error.
14928
cf81cf60
SM
149292017-03-14 Simon Marchi <simon.marchi@ericsson.com>
14930
14931 * parse.c (length_of_subexp): Make static.
14932 * parser-defs.h (length_of_subexp): Remove.
14933
a379284a
AA
149342017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14935
14936 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
14937 as well.
14938
8a6200ba
PA
149392017-03-14 Pedro Alves <palves@redhat.com>
14940
14941 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
14942 (main): Use std::unique_ptr. Remove calls to
14943 cp_demangled_name_parse_free.
14944
f79ec206
SM
149452017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14946
14947 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
14948 alphabsd_store_inferior_registers): Use regcache->ptid instead
14949 of inferior_ptid.
14950
edb5fb00
SM
149512017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14952
14953 * aix-thread.c (aix_thread_fetch_registers,
14954 aix_thread_store_registers): Use regcache->ptid instead of
14955 inferior_ptid.
14956
55119686
SM
149572017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14958
14959 * aarch64-linux-nat.c (fetch_gregs_from_thread,
14960 store_gregs_to_thread, fetch_fpregs_from_thread,
14961 store_fpregs_to_thread): Use regcache->ptid instead of
14962 inferior_ptid.
14963
6a06fbb7
SM
149642017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14965
14966 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
14967 amd64_linux_fetch_inferior_registers): Use regcache->ptid
14968 instead of inferior_ptid.
14969
c6386875
SM
149702017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14971
14972 * target.c (target_fetch_registers, target_store_registers): Add
14973 assert.
14974
ddaaf0fb
SM
149752017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14976
14977 * regcache.h (regcache_get_ptid): New function.
14978 * regcache.c (regcache_get_ptid): New function.
14979
b9da89d1 149802017-03-13 Mark Wielaard <mark@klomp.org>
14981
14982 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
14983
5f4d1085
KS
149842017-03-10 Keith Seitz <keiths@redhat.com>
14985
14986 PR c++/8218
14987 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
14988
c65d6b55
PA
149892017-03-08 Pedro Alves <palves@redhat.com>
14990
14991 PR gdb/18360
14992 * infrun.c (start_step_over, do_target_resume, resume)
14993 (restart_threads): Assert we're not resuming a thread that is
14994 meant to be stopped.
14995 (infrun_thread_stop_requested_callback): Delete.
14996 (infrun_thread_stop_requested): If the thread is internally
14997 stopped, queue a pending stop event and clear the thread's
14998 inline-frame state.
14999 (handle_stop_requested): New function.
15000 (handle_syscall_event, handle_inferior_event_1): Use
15001 handle_stop_requested.
15002 (handle_stop_requested): New function.
15003 (handle_signal_stop): Set the thread's stop_signal here instead of
15004 at caller.
15005 (finish_step_over): Clear step over info unconditionally.
15006 (handle_signal_stop): If the user had interrupted the event
15007 thread, consider the stop a random signal.
15008 (handle_signal_stop) <signal arrived while stepping over
15009 breakpoint>: Don't restart threads here.
15010 (stop_waiting): Don't clear step-over info here.
15011
15c22686
PA
150122017-03-08 Pedro Alves <palves@redhat.com>
15013
15014 PR 21206
15015 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15016 goes to argument 2, not 1.
15017
6e5d74e7
PA
150182017-03-08 Pedro Alves <palves@redhat.com>
15019
15020 PR cli/21218
15021 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15022 display_gdb_prompt.
15023 (command_line_input): Add comment.
15024
9753a2f6
PA
150252017-03-08 Pedro Alves <palves@redhat.com>
15026
15027 PR tui/21216
15028 * tui/tui-file.c (tui_file::write): New.
15029 * tui/tui-file.h (tui_file): Override "write".
15030 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15031 factored out from ...
15032 (tui_puts): ... here.
15033 (tui_putc): Use them.
15034 (tui_write): New function.
15035 * tui/tui-io.h (tui_write): Declare.
15036
1672e0d9
SDJ
150372017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15038
15039 * Makefile.in (SFILES): Replace "environ.c" with
15040 "common/environ.c".
15041 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15042 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15043 to...
15044 * common/environ.c: ... here.
15045 * environ.h: Moved to...
15046 * common/environ.h: ... here.
15047
f7bb4e3a
PB
150482017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15049
15050 * gdbarch.sh (pstring_ptr): New static function.
15051 (gdbarch_disassembler_options): Use it.
15052 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15053 not valid_disassembler_option->name.
15054 * gdbarch.c: Regenerate.
15055
e45ced6c
PB
150562017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15057
15058 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15059
5f6fd321
PA
150602017-03-07 Pedro Alves <palves@redhat.com>
15061
15062 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15063
6dbb839a 150642017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
15065
15066 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15067 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15068 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 15069 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 15070
d274ecf4
SM
150712017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15072
15073 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15074
df97be55
SM
150752017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15076
15077 * remote.c (remote_add_target_side_commands): Use range-based
15078 for loop.
15079
7d45f3df
YQ
150802017-03-03 Yao Qi <yao.qi@linaro.org>
15081
15082 PR gdb/21165
15083 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15084 value is lazy.
15085 * valprint.c (common_val_print): Likewise.
15086
65b48a81
PB
150872017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15088
15089 * NEWS: Mention new set/show disassembler-options commands.
15090 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15091 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15092 (prospective_options): New static variable.
15093 (gdb_disassembler::gdb_disassembler): Initialize
15094 m_di.disassembler_options.
15095 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15096 (get_disassembler_options): New function.
15097 (set_disassembler_options): Likewise.
15098 (set_disassembler_options_sfunc): Likewise.
15099 (show_disassembler_options_sfunc): Likewise.
15100 (disassembler_options_completer): Likewise.
15101 (_initialize_disasm): Likewise.
15102 * disasm.h (get_disassembler_options): New prototype.
15103 (set_disassembler_options): Likewise.
15104 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15105 (gdbarch_verify_disassembler_options): Likewise.
15106 * gdbarch.c: Regenerate.
15107 * gdbarch.h: Likewise.
15108 * arm-tdep.c (num_disassembly_options): Delete.
15109 (set_disassembly_style): Likewise.
15110 (arm_disassembler_options): New static variable.
15111 (set_disassembly_style_sfunc): Convert short style name into long
15112 option name. Call set_disassembler_options.
15113 (show_disassembly_style_sfunc): New function.
15114 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15115 set_gdbarch_verify_disassembler_options.
15116 (_initialize_arm_tdep): Delete regnames variable and update callers.
15117 (arm_disassembler_options): Initialize.
15118 (disasm_options): New variable.
15119 (num_disassembly_options): Rename from this...
15120 (num_disassembly_styles): ...to this. Compute by scanning through
15121 disasm_options.
15122 (valid_disassembly_styles): Initialize using disasm_options.
15123 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15124 set_arm_regname_option.
15125 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15126 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15127 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15128 set_gdbarch_verify_disassembler_options.
15129 * s390-tdep.c (s390_disassembler_options): New static variable.
15130 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15131 set_gdbarch_verify_disassembler_options.
15132
d538e36d
SM
151332017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15134
15135 * remote.c (remote_add_target_side_condition): Remove "struct"
15136 keyword from range-based for loop.
15137
83621223
SM
151382017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15139
15140 * remote.c (remote_add_target_side_condition): Use range-based
15141 for loop. Update comment.
15142
2123df0e
YQ
151432017-02-27 Yao Qi <yao.qi@linaro.org>
15144
15145 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15146
8e368124
AH
151472017-02-26 Alan Hayward <alan.hayward@arm.com>
15148
15149 * regcache.c (regcache_raw_update): New function.
15150 (regcache_raw_read): Move code to regcache_raw_update.
15151 * regcache.h (regcache_raw_update): New declaration.
15152 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15153
a49dd8dd
JK
151542017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15155
15156 * dwarf2read.c (create_debug_type_hash_table): Initialize
15157 header.signature and header.type_offset_in_tu.
15158
34e4bae9
PA
151592017-02-24 Pedro Alves <palves@redhat.com>
15160
15161 * symtab.c (make_file_symbol_completion_list_1): Use
15162 add_symtab_completions.
15163
b0e4b369
AH
151642017-02-24 Alan Hayward <alan.hayward@arm.com>
15165
15166 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
15167
975c21ab
AH
151682017-02-24 Alan Hayward <alan.hayward@arm.com>
15169
15170 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
15171 I386_MAX_REGISTER_SIZE.
15172 (i386_pseudo_register_write): Likewise.
15173 (i386_process_record): Likewise.
15174 * i387-tdep.c (i387_supply_xsave): Likewise.
15175 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
15176 (store_register): Likewise.
15177
14bc53a8
PA
151782017-02-23 Pedro Alves <palves@redhat.com>
15179
15180 * ada-lang.c: Include "common/function-view.h".
15181 (ada_iterate_over_symbols): Adjust to use function_view as
15182 callback type.
15183 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
15184 (ada_make_symbol_completion_list): Use a lambda.
15185 (ada_exc_search_name_matches): Delete.
15186 (name_matches_regex): New.
15187 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
15188 * compile/compile-c-support.c: Include "common/function-view.h".
15189 (print_one_macro): Change prototype to accept a ui_file pointer.
15190 (write_macro_definitions): Use a lambda.
15191 * dwarf2read.c: Include "common/function-view.h".
15192 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
15193 (dw2_expand_symtabs_matching): Adjust to use function_view as
15194 callback type.
15195 * language.h: Include "common/function-view.h".
15196 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
15197 function_view as callback type.
15198 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
15199 * linespec.c: Include "common/function-view.h".
15200 (collect_info::add_symbol): New method.
15201 (struct symbol_and_data_callback, iterate_inline_only, struct
15202 symbol_matcher_data, iterate_name_matcher): Delete.
15203 (iterate_over_all_matching_symtabs): Adjust to use function_view
15204 as callback type and lambdas.
15205 (iterate_over_file_blocks): Adjust to use function_view as
15206 callback type.
15207 (decode_compound_collector): Now a class with private fields.
15208 (decode_compound_collector::release_symbols): New method.
15209 (collect_one_symbol): Rename to...
15210 (decode_compound_collector::operator()): ... this and adjust.
15211 (lookup_prefix_sym): decode_compound_collector construction bits
15212 move to decode_compound_collector ctor. Pass the
15213 decode_compound_collector object directly as callback. Remove
15214 cleanups and use decode_compound_collector::release_symbols
15215 instead.
15216 (symtab_collector): Now a class with private fields.
15217 (symtab_collector::release_symtabs): New method.
15218 (add_symtabs_to_list): Rename to...
15219 (symtab_collector::operator()): ... this and adjust.
15220 (collect_symtabs_from_filename): symtab_collector construction
15221 bits move to symtab_collector ctor. Pass the symtab_collector
15222 object directly as callback. Remove cleanups and use
15223 symtab_collector::release_symtabs instead.
15224 (collect_symbols): Delete.
15225 (add_matching_symbols_to_info): Use lambdas.
15226 * macrocmd.c (print_macro_callback): Delete.
15227 (info_macro_command): Use a lambda.
15228 (info_macros_command): Pass print_macro_definition as callable
15229 directly.
15230 (print_one_macro): Remove 'ignore' parameter.
15231 (macro_list_command): Adjust.
15232 * macrotab.c (macro_for_each_data::fn): Now a function_view.
15233 (macro_for_each_data::user_data): Delete field.
15234 (foreach_macro): Adjust to call the function_view.
15235 (macro_for_each): Adjust to use function_view as callback type.
15236 (foreach_macro_in_scope): Adjust to call the function_view.
15237 (macro_for_each_in_scope): Adjust to use function_view as callback
15238 type.
15239 * macrotab.h: Include "common/function-view.h".
15240 (macro_callback_fn): Declare a prototype instead of a pointer.
15241 Remove "user_data" parameter.
15242 (macro_for_each, macro_for_each_in_scope): Adjust to use
15243 function_view as callback type.
15244 * psymtab.c (partial_map_expand_apply)
15245 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
15246 Adjust to use function_view as callback type and to return bool.
15247 (psym_expand_symtabs_matching): Adjust to use function_view as
15248 callback types.
15249 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
15250 to use function_view as callback type and to return bool.
15251 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
15252 callback types.
15253 * symfile.c (expand_symtabs_matching): Adjust to use function_view
15254 as callback types.
15255 * symfile.h: Include "common/function-view.h".
15256 (expand_symtabs_file_matcher_ftype)
15257 (expand_symtabs_symbol_matcher_ftype)
15258 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
15259 return bool.
15260 (quick_symbol_functions::map_symtabs_matching_filename)
15261 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
15262 function_view as callback type and return bool.
15263 (expand_symtabs_matching): Adjust to use function_view as callback
15264 type.
15265 (maintenance_expand_name_matcher)
15266 (maintenance_expand_file_matcher): Delete.
15267 (maintenance_expand_symtabs): Use lambdas.
15268 * symtab.c (iterate_over_some_symtabs): Adjust to use
15269 function_view as callback types and return bool.
15270 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
15271 of a cleanup.
15272 (lookup_symtab_callback): Delete.
15273 (lookup_symtab): Use a lambda.
15274 (iterate_over_symbols): Adjust to use function_view as callback
15275 type.
15276 (struct search_symbols_data, search_symbols_file_matches)
15277 (search_symbols_name_matches): Delete.
15278 (search_symbols): Use a pair of lambdas.
15279 (struct add_name_data, add_macro_name, symbol_completion_matcher)
15280 (symtab_expansion_callback): Delete.
15281 (default_make_symbol_completion_list_break_on_1): Use lambdas.
15282 * symtab.h: Include "common/function-view.h".
15283 (iterate_over_some_symtabs): Adjust to use function_view as
15284 callback type and return bool.
15285 (iterate_over_symtabs): Adjust to use function_view as callback
15286 type.
15287 (symbol_found_callback_ftype): Remove 'data' parameter and return
15288 bool.
15289 (iterate_over_symbols): Adjust to use function_view as callback
15290 type.
15291
07e253aa
PA
152922017-02-23 Pedro Alves <palves@redhat.com>
15293
15294 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
15295 (%.o) <unittests/%.c>: New pattern.
15296 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
15297 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
15298 * common/function-view.h: New file.
15299 * unittests/function-view-selftests.c: New file.
15300 * configure: Regenerate.
15301
8eaf5320
SM
153022017-02-23 Simon Marchi <simon.marchi@ericsson.com>
15303
15304 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
15305 inferior_ptid.
15306 * go32-nat.c (go32_thread_alive): Likewise.
15307
38768751
YQ
153082017-02-23 Yao Qi <yao.qi@linaro.org>
15309
15310 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
15311 delete.
15312
0a8beaba
YQ
153132017-02-23 Yao Qi <yao.qi@linaro.org>
15314
15315 * varobj.c (varobj_clear_saved_item): Use delete instead of
15316 xfree.
15317 (update_dynamic_varobj_children): Likewise.
15318
58fdfd2c
JK
153192017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15320
15321 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
15322
1b90b139
SM
153232017-02-21 Simon Marchi <simon.marchi@ericsson.com>
15324
15325 * common/enum-flags.h (enum_flags::enum_flags): Initialize
15326 m_enum_value to 0 in default constructor.
15327
2039d74e
EBM
153282017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15329
15330 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
15331 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
15332 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
15333 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
15334 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
15335 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
15336 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
15337 IS_STORE_CONDITIONAL_INSN.
15338
7814882a
JK
153392017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15340
15341 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
15342
0ae60b63
JK
153432017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15344
15345 * NEWS (Changes since GDB 7.12): Add DWARF-5.
15346
0224619f
JK
153472017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15348
15349 * dwarf2read.c (skip_one_die, read_attribute_value)
15350 (dwarf2_const_value_attr, dump_die_shallow)
15351 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
15352 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
15353
0af92d60
JK
153542017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15355
15356 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
15357 (dwarf_parse_macro_header): Accept DWARF version 5.
15358 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
15359
216f72a1
JK
153602017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15361
15362 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
15363 DW_AT_GNU_*.
15364 * common/common-exceptions.h (enum errors): Likewise.
15365 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
15366 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
15367 (dwarf_expr_context::execute_stack_op): Likewise.
15368 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
15369 Likewise.
15370 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
15371 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15372 (show_entry_values_debug, call_site_to_target_addr)
15373 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
15374 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
15375 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
15376 (value_of_dwarf_block_entry, indirect_pieced_value)
15377 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
15378 (disassemble_dwarf_expression): Likewise.
15379 * dwarf2read.c (process_die, inherit_abstract_dies)
15380 (read_call_site_scope): Likewise.
15381 * gdbtypes.h (struct func_type, struct call_site_parameter)
15382 (struct call_site): Likewise.
15383 * stack.c (read_frame_arg): Likewise.
15384 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
15385
43988095
JK
153862017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15387
15388 * defs.h (read_unsigned_leb128): New declaration.
15389 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
15390 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
15391 (dwarf2_find_location_expression): Call also
15392 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
15393 * dwarf2loc.h (dwarf2_version): New declaration.
15394 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
15395 rnglists.
15396 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
15397 .debug_rnglists.
15398 (struct dwop_section_names): Add loclists_dwo.
15399 (dwop_section_names): Add .debug_loclists.dwo.
15400 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
15401 (struct dwarf2_per_cu_data): Add dwarf_version.
15402 (struct dwo_sections): Add loclists.
15403 (struct attr_abbrev): Add implicit_const.
15404 (read_indirect_line_string): New declaration.
15405 (read_unsigned_leb128): Delete declaration.
15406 (rcuh_kind): New definition.
15407 (read_and_check_comp_unit_head): Change parameter
15408 is_debug_types_section to section_kind.
15409 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
15410 (read_comp_unit_head): Change parameter abfd to section, add parameter
15411 section_kind. Handle DWARF-5.
15412 (error_check_comp_unit_head): Accept also DWARF version 5.
15413 (read_and_check_comp_unit_head): Change parameter
15414 is_debug_types_section to section_kind.
15415 (read_and_check_type_unit_head): Delete function.
15416 (read_abbrev_offset): Handle DWARF-5.
15417 (create_debug_type_hash_table): Add parameter section_kind. Process
15418 only DW_UT_type. Use signature and type_offset_in_tu from struct
15419 comp_unit_head.
15420 (create_debug_types_hash_table): Update create_debug_type_hash_table
15421 caller.
15422 (create_all_type_units): Call create_debug_type_hash_table.
15423 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
15424 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
15425 caller.
15426 (skip_one_die): Handle DW_FORM_implicit_const.
15427 (dwarf2_rnglists_process): New function.
15428 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
15429 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
15430 (read_attribute_value): Handle DW_FORM_implicit_const,
15431 DW_FORM_line_strp.
15432 (read_attribute): Handle DW_FORM_implicit_const.
15433 (read_indirect_string_at_offset_from): New function from
15434 read_indirect_string_at_offset.
15435 (read_indirect_string_at_offset): Call
15436 read_indirect_string_at_offset_from.
15437 (read_indirect_line_string_at_offset): New function.
15438 (read_indirect_string): New function comment.
15439 (read_indirect_line_string): New function.
15440 (read_unsigned_leb128): Make it global.
15441 (dwarf2_string_attr): Handle DWARF-5.
15442 (add_include_dir_stub, read_formatted_entries): New functions.
15443 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
15444 Handle DWARF-5.
15445 (per_cu_header_read_in): Update read_comp_unit_head caller.
15446 (dwarf2_version): New function.
15447 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
15448 rnglists.
15449 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
15450 fields.
15451
22d2f3ab
JK
154522017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15453
15454 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
15455
5f46c5a5
JK
154562017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15457
15458 * dwarf2read.c (dwarf2_ranges_process): New function from
15459 dwarf2_ranges_read.
15460 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
15461 dwarf2_ranges_process.
15462
78d4d2c5
JK
154632017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15464
15465 * dwarf2read.c (create_debug_type_hash_table): New function from
15466 create_debug_types_hash_table.
15467 (create_debug_types_hash_table): Call create_debug_type_hash_table.
15468 (create_all_type_units, open_and_init_dwo_file): Update
15469 create_debug_types_hash_table callers.
15470
1b076f25
SDJ
154712017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15472
15473 PR gdb/16188
15474 * fork-child.c (trace_start_error): Fix thinko. va_end should
15475 refer to 'ap', not 'args'.
15476
0db8980c
SDJ
154772017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15478 Pedro Alves <palves@redhat.com>
15479
15480 PR gdb/16188
15481 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
15482 calls succeeded.
15483 * fork-child.c (trace_start_error): New function.
15484 (trace_start_error_with_name): Likewise.
15485 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
15486 * inf-ptrace.c (inf_ptrace_me): Likewise.
15487 * inferior.h (trace_start_error): New prototype.
15488 (trace_start_error_with_name): Likewise.
15489
99e8a4f9
SDJ
154902017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
15491
15492 PR gdb/21164
15493 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
15494 NULL before using it.
15495 * symmisc.c (maintenance_print_symbols): Likewise.
15496 (maintenance_print_msymbols): Likewise.
15497
4e746bb6
TW
154982017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15499
15500 * NEWS: Add record Python bindings entry.
15501
155022017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15503
15504 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
15505 py-record-full.o.
15506 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
15507 * python/py-record-btrace.c, python/py-record-btrace.h,
15508 python/py-record-full.c, python/py-record-full.h: New file.
15509 * python/py-record.c: Add include for py-record-btrace.h and
15510 py-record-full.h.
15511 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
15512 recpy_instruction_history, recpy_function_call_history, recpy_begin,
15513 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
15514 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
15515 New definition.
15516 (gdbpy_initialize_btrace): New export.
15517 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
15518
155192017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15520
15521 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
15522 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
15523 * python/py-record.c: New file.
15524 * python/python-internal.h (gdbpy_start_recording,
15525 gdbpy_current_recording, gdpy_stop_recording,
15526 gdbpy_initialize_record): New export.
15527 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
15528 (python_GdbMethods): Add gdbpy_start_recording,
15529 gdbpy_current_recording and gdbpy_stop_recording.
15530
155312017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15532
15533 * record-btrace.c (record_btrace_record_method): New function.
15534 (init_record_btrace_ops): Initialize to_record_method.
15535 * record-full.c (record_full_record_method): New function.
15536 (init_record_full_ops, init_record_full_core_ops): Add
15537 record_full_record_method.
15538 * record.h (enum record_method): New enum.
15539 * target-debug.h (target_debug_print_enum_record_method: New define.
15540 * target-delegates.c: Regenerate.
15541 * target.c (target_record_method): New function.
15542 * target.h: Include record.h.
15543 (struct target_ops) <to_record_method>: New field.
15544 (target_record_method): New export.
15545
155462017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15547
15548 * record.h (record_start, record_stop): New export.
15549 * record.c (record_start, record_stop): New function.
15550
155512017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15552
15553 * btrace.c (btrace_fetch): Copy function call segments pointer
15554 into a vector.
15555 (btrace_clear): Clear the vector.
15556 (btrace_find_insn_by_number): Use binary search to find the correct
15557 function call segment.
15558 * btrace.h (brace_fun_p): New typedef.
15559 (struct btrace_thread_info) <functions>: New field.
15560
155612017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15562
15563 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
15564 * btrace.c (btrace_decode_error): ... here. New function.
15565 * btrace.h (btrace_decode_error): New export.
15566
155672017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15568
15569 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
15570 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
15571 btrace_find_insn_by_number): Remove special case for gaps.
15572 * btrace.h (btrace_insn_get_error): New export.
15573 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
15574 * record-btrace.c (btrace_insn_history): Print number for gaps.
15575 (record_btrace_info, record_btrace_goto): Handle gaps.
15576
3f77c769
TT
155772017-02-14 Tom Tromey <tom@tromey.com>
15578
15579 PR python/13598:
15580 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
15581 event.
15582 * python/py-evts.c (gdbpy_initialize_py_events): Add
15583 before_prompt registry.
15584 * python/py-events.h (events_object) <before_prompt>: New field.
15585
4c2c7ac6
MM
155862017-02-14 Markus Metzger <markus.t.metzger@intel.com>
15587
15588 * btrace.c (ftrace_new_switch): Preserve up link and flags.
15589
5cf30ebf
LM
155902017-02-13 Luis Machado <lgustavo@codesourcery.com>
15591
15592 * symfile (_initialize_symfile): Add usage text to the load command's
15593 help text.
15594
26a06916
SM
155952017-02-10 Simon Marchi <simon.marchi@ericsson.com>
15596
15597 * utils.c (defaulted_query): Don't query on secondary UIs.
15598
0b145e37
TT
155992017-02-10 Tom Tromey <tom@tromey.com>
15600
15601 * rust-lang.c (rust_get_disr_info): Remove unused variable.
15602
2d8365c4
TT
156032017-02-10 Tom Tromey <tom@tromey.com>
15604
15605 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
15606 "cleanup" local.
15607 * python/py-type.c (typy_legacy_template_argument): Remove
15608 unnecessary "cleanup" local.
15609
2bb8f231
TT
156102017-02-10 Tom Tromey <tom@tromey.com>
15611
15612 * python/python.c (do_start_initialization): New function, from
15613 _initialize_python.
15614 (_initialize_python): Call do_start_initialization.
15615 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
15616 goto.
15617
1bdfaf42
TT
156182017-02-10 Tom Tromey <tom@tromey.com>
15619
15620 * python/py-prettyprint.c (pretty_print_one_value): Use
15621 gdbpy_ref.
15622
88b6faea
TT
156232017-02-10 Tom Tromey <tom@tromey.com>
15624
15625 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
15626 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
15627 gdbpy_ref.
15628 * python/py-type.c (field_new): Use gdbpy_ref.
15629 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
15630 gdbpy_ref.
15631 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
15632 (py_free_pspace): Likewise.
15633 (pspace_to_pspace_object): Likewise.
15634 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
15635 (py_free_objfile): Likewise.
15636 (objfile_to_objfile_object): Likewise.
15637 * python/py-inferior.c (delete_thread_object): Use
15638 gdbpy_ref.
15639 (infpy_read_memory): Likewise.
15640 (py_free_inferior): Likewise.
15641 * python/py-evtregistry.c (create_eventregistry_object): Use
15642 gdbpy_ref.
15643 * python/py-event.c (create_event_object): Use gdbpy_ref.
15644
7780f186
TT
156452017-02-10 Tom Tromey <tom@tromey.com>
15646
15647 * python/py-ref.h (gdbpy_ref_policy): Now a template.
15648 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
15649 used.
15650 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
15651 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
15652 python/py-exitedevent.c, python/py-finishbreakpoint.c,
15653 python/py-framefilter.c, python/py-function.c,
15654 python/py-inferior.c, python/py-infevents.c,
15655 python/py-linetable.c, python/py-newobjfileevent.c,
15656 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
15657 python/py-signalevent.c, python/py-stopevent.c,
15658 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
15659 python/py-unwind.c, python/py-utils.c, python/py-value.c,
15660 python/py-varobj.c, python/py-xmethods.c, python/python.c,
15661 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
15662
d4b0bb18
TT
156632017-02-10 Tom Tromey <tom@tromey.com>
15664
15665 * ui-out.h (ui_out_emit_type): New class.
15666 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
15667 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
15668 and ui_out_emit_tuple.
15669 (enumerate_locals): Likewise.
15670 (py_mi_print_variables, py_print_locals, py_print_args): Use
15671 ui_out_emit_list.
15672 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
15673 ui_out_emit_list.
15674 * common/gdb_optional.h: New file.
15675
f67f945c
MG
156762017-02-10 Martin Galvan <martingalvan@sourceware.org>
15677
15678 * MAINTAINERS (Write After Approval): Update my e-mail address.
15679
18da0c51
MG
156802017-02-10 Martin Galvan <martingalvan@sourceware.org>
15681
15682 PR gdb/21122
15683 * breakpoint.c (_initialize_breakpoint): Update the help description
15684 of the 'commands' command to indicate that it takes a list argument.
15685
62c14536
SM
156862017-02-09 Simon Marchi <simon.marchi@ericsson.com>
15687
15688 * interps.c (current_interp_set_logging): Remove "return".
15689
ff6fa247
GB
156902017-02-09 Gary Benson <gbenson@redhat.com>
15691
15692 * symtab.c (add_symtab_completions): Prevent NULL pointer
15693 dereference.
15694
a474bd8e
PA
156952017-02-08 Pedro Alves <palves@redhat.com>
15696
15697 * interps.c (interp::interp): Remove reference to quiet_p.
15698 (interp_set): Make static. Remove dead "Switching to" output
15699 code.
15700 (interp_quiet_p, interp_set_quiet): Delete.
15701 (interpreter_exec_cmd): Don't set the interpreter quiet.
15702 * interps.h (interp_quiet_p): Make static.
15703 (class interp) <quiet_p>: Remove field
15704
3d7b173c
JG
157052017-02-08 Jerome Guitton <guitton@adacore.com>
15706
604c4576
JG
15707 * cli/cli-decode.c (find_command_name_length): Make it extern.
15708 * cli/cli-decode.h (find_command_name_length): Declare.
15709 * cli/cli-script.c (command_name_equals, line_first_arg):
15710 New functions.
15711 (process_next_line): Use cli-decode to parse command names.
15712 (build_command_line): Make args a constant pointer.
15713
157142017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 15715
3d7b173c
JG
15716 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
15717 Remove case-insensitive search.
15718
1291063d
JM
157192017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
15720
15721 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
15722 at the end of the line. Avoids an ARI warning.
15723
20b477a7
LM
157242017-02-06 Luis Machado <lgustavo@codesourcery.com>
15725
15726 * NEWS: Mention support for record/replay of Intel 64 rdrand and
15727 rdseed instructions.
15728 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
15729
3f7b46f2
IR
157302017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
15731
15732 PR tdep/20936
15733 Provide and use sparc32 and sparc64 target description XML files.
15734 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
15735 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
15736 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
15737 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
15738 * features/sparc/sparc32-solaris.xml: New file.
15739 * features/sparc/sparc64-solaris.xml: New file.
15740 * features/sparc/sparc32-solaris.c: Generated.
15741 * features/sparc/sparc64-solaris.c: Generated.
15742 * sparc-tdep.h: Account for differences in target descriptions.
15743 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
15744 (sparc32_register_type): Use target provided registers.
15745 (validate_tdesc_registers): New function.
15746 (sparc32_gdbarch_init): Use tdesc_has_registers.
15747 Set pseudoregister functions.
15748 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
15749 (sparc64_register_type): Use target provided registers.
15750 (sparc64_init_abi): Set pseudoregister functions.
15751
f0fd41c1
TT
157522017-02-03 Tom Tromey <tom@tromey.com>
15753
15754 PR rust/21097:
15755 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
15756 with a single member.
15757
d6f9b0fb
PA
157582017-02-03 Pedro Alves <palves@redhat.com>
15759
15760 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
15761 (cli_interp_base::~cli_interp_base): New.
15762 (cli_interp): New struct.
15763 (as_cli_interp): Cast the interp itself to cli_interp.
15764 (cli_interpreter_pre_command_loop): Rename to ...
15765 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
15766 parameter.
15767 (cli_interpreter_init): Rename to ...
15768 (cli_interp::init): ... this. Remove 'self' parameter. Use
15769 boolean. Make extern.
15770 (cli_interpreter_resume): Rename to ...
15771 (cli_interp::resume): ... this. Remove 'data' parameter. Make
15772 extern.
15773 (cli_interpreter_suspend): Rename to ...
15774 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
15775 extern.
15776 (cli_interpreter_exec): Rename to ...
15777 (cli_interp::exec): ... this. Remove 'data' parameter. Make
15778 extern.
15779 (cli_interpreter_supports_command_editing): Rename to ...
15780 (cli_interp_base::supports_command_editing): ... this. Remove
15781 'interp' parameter. Make extern.
15782 (cli_ui_out): Rename to ...
15783 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
15784 Make extern.
15785 (cli_set_logging): Rename to ...
15786 (cli_interp_base::set_logging): ... this. Remove 'interp'
15787 parameter. Make extern.
15788 (cli_interp_procs): Delete.
15789 (cli_interp_factory): Adjust to use "new".
15790 * cli/cli-interp.h: Include "interps.h".
15791 (struct cli_interp_base): New struct.
15792 * interps.c (struct interp): Delete. Fields moved to interps.h.
15793 (interp_new): Delete.
15794 (interp::interp, interp::~interp): New.
15795 (interp_set): Use bool, and return void. Assume the interpreter
15796 has suspend, init and resume methods, and that the all return
15797 void.
15798 (set_top_level_interpreter): interp_set returns void.
15799 (interp_ui_out): Adapt.
15800 (current_interp_set_logging): Adapt.
15801 (interp_data): Delete.
15802 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
15803 (interp_exec): Adapt.
15804 (top_level_interpreter_data): Delete.
15805 * interps.h (interp_init_ftype, interp_resume_ftype)
15806 (interp_suspend_ftype, interp_exec_ftype)
15807 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
15808 (class interp): New.
15809 (interp_new): Delete.
15810 (interp_set): Now returns void. Use bool.
15811 (interp_data, top_level_interpreter_data): Delete.
15812 * mi/mi-common.h: Include interps.h.
15813 (class mi_interp): Inherit from interp. Define a ctor. Declare
15814 init, resume, suspect, exec, interp_ui_out, set_logging and
15815 pre_command_loop methods.
15816 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
15817 (mi_interpreter_init): Rename to ...
15818 (mi_interp::init): ... this. Remove the 'interp' parameter, use
15819 bool, return void and make extern. Adjust.
15820 (mi_interpreter_resume): ... Rename to ...
15821 (mi_interp::resume): ... this. Remove the 'data' parameter,
15822 return void and make extern. Adjust.
15823 (mi_interpreter_suspend): ... Rename to ...
15824 (mi_interp::suspend): ... this. Remove the 'data' parameter,
15825 return void and make extern. Adjust.
15826 (mi_interpreter_exec): ... Rename to ...
15827 (mi_interp::exec): ... this. Remove the 'data' parameter and make
15828 extern. Adjust.
15829 (mi_interpreter_pre_command_loop): ... Rename to ...
15830 (mi_interp::pre_command_loop): ... this. Remove the 'self'
15831 parameter and make extern.
15832 (mi_on_normal_stop_1): Adjust.
15833 (mi_ui_out): Rename to ...
15834 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
15835 parameter and make extern. Adjust.
15836 (mi_set_logging): Rename to ...
15837 (mi_interp::set_logging): ... this. Remove the 'interp'
15838 parameter and make extern. Adjust.
15839 (mi_interp_procs): Delete.
15840 (mi_interp_factory): Adjust to use 'new'.
15841 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
15842 (mi_print_exception, mi_execute_command, mi_load_progress):
15843 Adjust.
15844 * tui/tui-interp.c (tui_interp): New class.
15845 (as_tui_interp): Return a tui_interp pointer.
15846 (tui_on_normal_stop, tui_on_signal_received)
15847 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
15848 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
15849 to use interp::interp_ui_out.
15850 (tui_init): Rename to ...
15851 (tui_interp::init): ... this. Remove the 'self' parameter, use
15852 bool, return void and make extern. Adjust.
15853 (tui_resume): Rename to ...
15854 (tui_interp::resume): ... this. Remove the 'data' parameter,
15855 return void and make extern. Adjust.
15856 (tui_suspend): Rename to ...
15857 (tui_interp::suspend): ... this. Remove the 'data' parameter,
15858 return void and make extern. Adjust.
15859 (tui_ui_out): Rename to ...
15860 (tui_interp::interp_ui_out): ... this. Remove the 'self'
15861 parameter, and make extern. Adjust.
15862 (tui_exec): Rename to ...
15863 (tui_interp::exec): ... this. Remove the 'data' parameter and
15864 make extern.
15865 (tui_interp_procs): Delete.
15866 (tui_interp_factory): Use "new".
15867
65c40c95
TT
158682017-02-02 Tom Tromey <tom@tromey.com>
15869
15870 * rust-exp.y (ends_raw_string, space_then_number)
15871 (rust_identifier_start_p): Return bool.
15872 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
15873 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
15874 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
15875 (rust_chartype_p): Return bool.
15876 (val_print_struct, rust_print_struct_def, rust_print_type):
15877 Update.
15878 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
15879 Return bool.
15880
b50f188d
TT
158812017-02-02 Tom Tromey <tom@tromey.com>
15882
15883 * rust-lang.c: Reindent.
15884
03c85b11
TT
158852017-02-02 Tom Tromey <tom@tromey.com>
15886
15887 * rust-lang.h (rust_crate_for_block): Update.
15888 * rust-lang.c (rust_crate_for_block): Return std::string.
15889 (rust_get_disr_info): Use std:;string, not
15890 gdb::unique_xmalloc_ptr.
15891 * rust-exp.y (crate_name): Update.
15892
9b6da501
PA
158932017-02-02 Pedro Alves <palves@redhat.com>
15894
15895 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
15896 field out of gdb_disassembler_test and make it static.
15897
ec4cb20b
PA
158982017-02-02 Pedro Alves <palves@redhat.com>
15899
15900 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
15901 mi1_interp and mi_interp fields.
15902
5be5dbf0
PA
159032017-02-02 Pedro Alves <palves@redhat.com>
15904
616268b6
PA
15905 * cli/cli-interp.c (struct saved_output_files, saved_output):
15906 Moved from cli/cli-logging.c.
15907 (cli_set_logging): New function.
15908 (cli_interp_procs): Install cli_set_logging.
15909 * cli/cli-interp.h (make_logging_output, cli_set_logging):
15910 Declare.
15911 * cli/cli-logging.c (struct saved_output_files, saved_output):
15912 Moved to cli/cli-interp.c.
15913 (pop_output_files): Don't save outputs here.
15914 (make_logging_output): New function.
15915 (handle_redirections): Don't build tee nor save previous outputs
15916 here.
15917 * interps.c (current_interp_set_logging): Change prototype.
15918 Assume there's always a set_logging_proc method installed.
15919 * interps.h (interp_set_logging_ftype): Change prototype.
15920 (current_interp_set_logging): Change prototype and adjust comment.
15921 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
15922 use make_logging_output.
15923 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
159242017-02-02 Pedro Alves <palves@redhat.com>
15925
5be5dbf0
PA
15926 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
15927 from ...
15928 (set_logging_overwrite): ... here.
15929 (logging_no_redirect_file): Delete.
15930 (set_logging_redirect): Don't handle redirection on the fly.
15931 Instead warn that "logging off" / "logging on" is necessary.
15932 (pop_output_files): Delete references to logging_no_redirect_file.
15933 (show_logging_command): Always speak in terms of what will happen
15934 once logging is reenabled.
15935
c99cc448
PA
159362017-02-02 Pedro Alves <palves@redhat.com>
15937
15938 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
15939
8b172ce7
PA
159402017-02-02 Pedro Alves <palves@redhat.com>
15941
15942 * disasm.c (gdb_pretty_print_insn): Rename to ...
15943 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
15944 Remove gdbarch parameter. Adapt to clear the object's buffers
15945 instead of allocating new buffers, and to print using the object's
15946 gdb_disassembler instead of calling gdb_print_insn.
15947 (dump_insns): Use gdb_pretty_print_disassembler.
15948 * disasm.h (gdb_pretty_print_insn): Delete declaration.
15949 (gdb_pretty_print_disassembler): New class.
15950 * record-btrace.c (btrace_insn_history): Use
15951 gdb_pretty_print_disassembler.
15952
d7e74731
PA
159532017-02-02 Pedro Alves <palves@redhat.com>
15954
15955 * ada-lang.c (type_as_string): Use string_file.
15956 * ada-valprint.c (ada_print_floating): Use string_file.
15957 * ada-varobj.c (ada_varobj_scalar_image)
15958 (ada_varobj_get_value_image): Use string_file.
15959 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
15960 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
15961 * breakpoint.c (update_inserted_breakpoint_locations)
15962 (insert_breakpoint_locations, reattach_breakpoints)
15963 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
15964 (print_it_watchpoint): Use string_file.
15965 (save_breakpoints): Use stdio_file.
15966 * c-exp.y (oper): Use string_file.
15967 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
15968 tee_file.
15969 (pop_output_files): Use delete.
15970 (handle_redirections): Use stdio_file and tee_file.
15971 * cli/cli-setshow.c (do_show_command): Use string_file.
15972 * compile/compile-c-support.c (c_compute_program): Use
15973 string_file.
15974 * compile/compile-c-symbols.c (generate_vla_size): Take a
15975 'string_file &' instead of a 'ui_file *'.
15976 (generate_c_for_for_one_variable): Take a 'string_file &' instead
15977 of a 'ui_file *'. Use string_file.
15978 (generate_c_for_variable_locations): Take a 'string_file &'
15979 instead of a 'ui_file *'.
15980 * compile/compile-internal.h (generate_c_for_for_one_variable):
15981 Take a 'string_file &' instead of a 'ui_file *'.
15982 * compile/compile-loc2c.c (push, pushf, unary, binary)
15983 (print_label, pushf_register_address, pushf_register)
15984 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
15985 'ui_file *'. Adjust.
15986 * compile/compile.c (compile_to_object): Use string_file.
15987 * compile/compile.h (compile_dwarf_expr_to_c)
15988 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
15989 'ui_file *'.
15990 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
15991 (replace_typedefs_qualified_name): Use string_file and
15992 obstack_copy0.
15993 * disasm.c (gdb_pretty_print_insn): Use string_file.
15994 (gdb_disassembly): Adjust reference the null_stream global.
15995 (do_ui_file_delete): Delete.
15996 (gdb_insn_length): Use null_stream.
15997 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
15998 * dwarf2loc.c (dwarf2_compile_property_to_c)
15999 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16000 'string_file &' instead of a 'ui_file *'.
16001 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16002 * dwarf2read.c (do_ui_file_peek_last): Delete.
16003 (dwarf2_compute_name): Use string_file.
16004 * event-top.c (gdb_setup_readline): Use stdio_file.
16005 * gdbarch.sh (verify_gdbarch): Use string_file.
16006 * gdbtypes.c (safe_parse_type): Use null_stream.
16007 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16008 string_file.
16009 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16010 'string_file *' instead of a 'ui_file *'.
16011 (gdbscm_arch_disassemble): Use string_file.
16012 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16013 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16014 inherits from ui_file.
16015 (ioscm_file_port_delete, ioscm_file_port_rewind)
16016 (ioscm_file_port_put): Delete.
16017 (ioscm_file_port_write): Rename to ...
16018 (ioscm_file_port::write): ... this. Remove file_port_magic
16019 checks.
16020 (ioscm_file_port_new): Delete.
16021 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16022 ui_file_up.
16023 * guile/scm-type.c (tyscm_type_name): Use string_file.
16024 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16025 Use string_file.
16026 * infcmd.c (print_return_value_1): Use string_file.
16027 * infrun.c (print_target_wait_results): Use string_file.
16028 * language.c (add_language): Use string_file.
16029 * location.c (explicit_to_string_internal): Use string_file.
16030 * main.c (captured_main_1): Use null_file.
16031 * maint.c (maintenance_print_architecture): Use stdio_file.
16032 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16033 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16034 event_channel>: Change type to mi_console_file pointer.
16035 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16036 (mi_console_file_delete): Delete.
16037 (struct mi_console_file): Delete.
16038 (mi_console_file_magic): Delete.
16039 (mi_console_file_new): Delete.
16040 (mi_console_file::mi_console_file): New.
16041 (mi_console_file_delete): Delete.
16042 (mi_console_file_fputs): Delete.
16043 (mi_console_file::write): New.
16044 (mi_console_raw_packet): Delete.
16045 (mi_console_file::flush): New.
16046 (mi_console_file_flush): Delete.
16047 (mi_console_set_raw): Rename to ...
16048 (mi_console_file::set_raw): ... this.
16049 * mi/mi-console.h (class mi_console_file): New class.
16050 (mi_console_file_new, mi_console_set_raw): Delete.
16051 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16052 (mi_set_logging): Use delete and tee_file. Adjust.
16053 * mi/mi-main.c (output_register): Use string_file.
16054 (mi_cmd_data_evaluate_expression): Use string_file.
16055 (mi_cmd_data_read_memory): Use string_file.
16056 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16057 * mi/mi-out.c (mi_ui_out::main_stream): New.
16058 (mi_ui_out::rewind): Use main_stream and
16059 string_file.
16060 (mi_ui_out::put): Use main_stream and string_file.
16061 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16062 Allocate a 'string_file' instead.
16063 (mi_out_new): Don't allocate a mem_fileopen stream here.
16064 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16065 (mi_ui_out::main_stream): Declare method.
16066 * printcmd.c (eval_command): Use string_file.
16067 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16068 * python/py-arch.c (archpy_disassemble): Use string_file.
16069 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16070 * python/py-frame.c (frapy_str): Use string_file.
16071 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16072 Use string_file.
16073 * python/py-type.c (typy_str): Use string_file.
16074 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16075 * python/py-value.c (valpy_str): Use string_file.
16076 * record-btrace.c (btrace_insn_history): Use string_file.
16077 * regcache.c (regcache_print): Use stdio_file.
16078 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16079 * remote.c (escape_buffer): Use string_file.
16080 * rust-lang.c (rust_get_disr_info): Use string_file.
16081 * serial.c (serial_open_ops_1): Use stdio_file.
16082 (do_serial_close): Use delete.
16083 * stack.c (print_frame_arg): Use string_file.
16084 (print_frame_args): Remove local mem_fileopen stream, not used.
16085 (print_frame): Use string_file.
16086 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16087 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16088 Take a 'string_file *' instead of a 'ui_file *'.
16089 * top.c (new_ui): Use stdio_file and stderr_file.
16090 (free_ui): Use delete.
16091 (execute_command_to_string): Use string_file.
16092 (quit_confirm): Use string_file.
16093 * tracepoint.c (collection_list::append_exp): Use string_file.
16094 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16095 * tui/tui-file.c: Don't include "ui-file.h".
16096 (enum streamtype, struct tui_stream): Delete.
16097 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16098 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16099 (tui_file::tui_file): New method.
16100 (tui_file_fputs): Delete.
16101 (tui_file_get_strbuf): Delete.
16102 (tui_file::puts): New method.
16103 (tui_file_adjust_strbuf): Delete.
16104 (tui_file_flush): Delete.
16105 (tui_file::flush): New method.
16106 * tui/tui-file.h: Tweak intro comment.
16107 Include ui-file.h.
16108 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16109 (tui_file_adjust_strbuf): Delete declarations.
16110 (class tui_file): New class.
16111 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16112 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16113 (tui_register_format): Use string_stream.
16114 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16115 (tui_get_function_from_frame): Use string_file.
16116 * typeprint.c (type_to_string): Use string_file.
16117 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16118 (null_stream): New global.
16119 (ui_file_delete): Delete.
16120 (ui_file::ui_file): New.
16121 (null_file_isatty): Delete.
16122 (ui_file::~ui_file): New.
16123 (null_file_rewind): Delete.
16124 (ui_file::printf): New.
16125 (null_file_put): Delete.
16126 (null_file_flush): Delete.
16127 (ui_file::putstr): New.
16128 (null_file_write): Delete.
16129 (ui_file::putstrn): New.
16130 (null_file_read): Delete.
16131 (ui_file::putc): New.
16132 (null_file_fputs): Delete.
16133 (null_file_write_async_safe): Delete.
16134 (ui_file::vprintf): New.
16135 (null_file_delete): Delete.
16136 (null_file::write): New.
16137 (null_file_fseek): Delete.
16138 (null_file::puts): New.
16139 (ui_file_data): Delete.
16140 (null_file::write_async_safe): New.
16141 (gdb_flush, ui_file_isatty): Adjust.
16142 (ui_file_put, ui_file_rewind): Delete.
16143 (ui_file_write): Adjust.
16144 (ui_file_write_for_put): Delete.
16145 (ui_file_write_async_safe, ui_file_read): Adjust.
16146 (ui_file_fseek): Delete.
16147 (fputs_unfiltered): Adjust.
16148 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16149 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16150 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16151 (set_ui_file_data): Delete.
16152 (string_file::~string_file, string_file::write)
16153 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16154 (do_ui_file_as_string, ui_file_as_string): Delete.
16155 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16156 (struct mem_file): Delete.
16157 (mem_file_new): Delete.
16158 (stdio_file::stdio_file): New.
16159 (mem_file_delete): Delete.
16160 (stdio_file::stdio_file): New.
16161 (mem_fileopen): Delete.
16162 (stdio_file::~stdio_file): New.
16163 (mem_file_rewind): Delete.
16164 (stdio_file::set_stream): New.
16165 (mem_file_put): Delete.
16166 (stdio_file::open): New.
16167 (mem_file_write): Delete.
16168 (stdio_file_magic, struct stdio_file): Delete.
16169 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
16170 (stdio_file::flush): New.
16171 (stdio_file_read): Rename to ...
16172 (stdio_file::read): ... this. Adjust.
16173 (stdio_file_write): Rename to ...
16174 (stdio_file::write): ... this. Adjust.
16175 (stdio_file_write_async_safe): Rename to ...
16176 (stdio_file::write_async_safe) ... this. Adjust.
16177 (stdio_file_fputs): Rename to ...
16178 (stdio_file::puts) ... this. Adjust.
16179 (stdio_file_isatty): Delete.
16180 (stdio_file_fseek): Delete.
16181 (stdio_file::isatty): New.
16182 (stderr_file_write): Rename to ...
16183 (stderr_file::write) ... this. Adjust.
16184 (stderr_file_fputs): Rename to ...
16185 (stderr_file::puts) ... this. Adjust.
16186 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
16187 (stderr_file::stderr_file): New.
16188 (tee_file_magic): Delete.
16189 (struct tee_file): Delete.
16190 (tee_file::tee_file): New.
16191 (tee_file_new): Delete.
16192 (tee_file::~tee_file): New.
16193 (tee_file_delete): Delete.
16194 (tee_file_flush): Rename to ...
16195 (tee_file::flush): ... this. Adjust.
16196 (tee_file_write): Rename to ...
16197 (tee_file::write): ... this. Adjust.
16198 (tee_file::write_async_safe): New.
16199 (tee_file_fputs): Rename to ...
16200 (tee_file::puts): ... this. Adjust.
16201 (tee_file_isatty): Rename to ...
16202 (tee_file::isatty): ... this. Adjust.
16203 * ui-file.h (struct obstack, struct ui_file): Don't
16204 forward-declare.
16205 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
16206 (ui_file_write_ftype)
16207 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
16208 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
16209 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
16210 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
16211 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
16212 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
16213 (set_ui_file_fseek): Delete.
16214 (ui_file_data, ui_file_delete, ui_file_rewind)
16215 (struct ui_file): New.
16216 (ui_file_up): New.
16217 (class null_file): New.
16218 (null_stream): Declare.
16219 (ui_file_write_for_put, ui_file_put): Delete.
16220 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
16221 Delete.
16222 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
16223 (gdb_fopen, tee_file_new): Delete.
16224 (struct string_file): New.
16225 (struct stdio_file): New.
16226 (stdio_file_up): New.
16227 (struct stderr_file): New.
16228 (class tee_file): New.
16229 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
16230 of a 'ui_file *'. Adjust.
16231 * ui-out.h (class ui_out) <field_stream>: Likewise.
16232 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
16233 (null_stream): Delete.
16234 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
16235 Adjust.
16236 * utils.h (struct ui_file): Delete forward declaration..
16237 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
16238 (error_stream): Take a 'string_file &' instead of a
16239 'ui_file *'.
16240 * varobj.c (varobj_value_get_print_value): Use string_file.
16241 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
16242 * gdbarch.c: Regenerate.
16243
187808b0
PA
162442017-02-02 Pedro Alves <palves@redhat.com>
16245
16246 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
16247 (gdb_pretty_print_insn): ... this. Now a free function. Add back
16248 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
16249 Adjust to call gdb_print_insn instead of
16250 gdb_disassembler::print_insn.
16251 (dump_insns, do_mixed_source_and_assembly_deprecated)
16252 (do_mixed_source_and_assembly, do_assembly_only): Add back a
16253 'gdbarch' parameter. Remove gdb_disassembler parameter.
16254 (gdb_disassembly): Don't allocate a gdb_disassembler here.
16255 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
16256 declaration.
16257 (gdb_pretty_print_insn): Re-add declaration.
16258 * record-btrace.c (btrace_insn_history): Don't allocate a
16259 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
16260
7a8eb317
SM
162612017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
16262
16263 * disasm.h (gdb_disassembly): Remove file_string parameter.
16264 * disasm.c (gdb_disassembly): Likewise.
16265 * cli/cli-cmds.c (print_disassembly): Adapt.
16266 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
16267 * stack.c (do_gdb_disassembly): Likewise.
16268
7346ef59
AA
162692017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
16270
16271 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
16272 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
16273 targets. And if the implicit value is longer than needed, extract
16274 the first bytes instead of the "least significant" ones.
16275
cd4007e4
MM
162762017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16277
16278 * btrace.c (btrace_enable): Do not call btrace_add_pc for
16279 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
16280 (btrace_fetch): Assert can_access_registers_ptid.
16281 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
16282 validate_registers_access.
16283
cf77c34e
MM
162842017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16285
16286 * gdbthread.h (can_access_registers_ptid): New.
16287 * thread.c (can_access_registers_ptid): New.
16288
be85ce7d
PA
162892017-02-01 Pedro Alves <palves@redhat.com>
16290
16291 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
16292
29b0b251
PA
162932017-01-31 Pedro Alves <palves@redhat.com>
16294
16295 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
16296 Fix typos.
16297
289b5b24
PA
162982017-01-31 Pedro Alves <palves@redhat.com>
16299
16300 * stack.c (print_frame_args): Remove local mem_fileopen stream,
16301 not used.
16302
b47413b4
PA
163032017-01-31 Pedro Alves <palves@redhat.com>
16304
16305 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
16306
60adb36c
PA
163072017-01-31 Pedro Alves <palves@redhat.com>
16308
16309 * common/scoped_restore.h
16310 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
16311 change the value's parameter type to T2.
16312 (make_scoped_restore): Likewise.
16313
2735833d
WT
163142017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16315 Richard Henderson <rth@redhat.com>
16316
16317 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
16318 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
16319 GS_BASE for older kernels.
16320 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
16321 GS_BASE for older kernels.
16322 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
16323 and GS_BASE to the offset table.
16324 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
16325 system register group.
16326 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
16327 for older kernels.
16328 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
16329 amd64 ABI.
16330 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
16331 AMD64_GSBASE_REGNUM.
16332 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
16333 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
16334 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
16335 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
16336 i386/64bit-segments.xml in those rules.
16337 * features/i386/64bit-segments.xml: New file.
16338 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
16339 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
16340 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
16341 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
16342 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
16343 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
16344 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
16345 * features/i386/amd64-avx-linux.c: Regenerated.
16346 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
16347 * features/i386/amd64-avx-mpx.c: Regenerated.
16348 * features/i386/amd64-avx512-linux.c: Regenerated.
16349 * features/i386/amd64-linux.c: Regenerated.
16350 * features/i386/amd64-mpx-linux.c: Regenerated.
16351 * features/i386/i386-avx-mpx-linux.c: Regenerated.
16352 * features/i386/i386-avx-mpx.c: Regenerated.
16353 * features/i386/x32-avx-linux.c: Regenerated.
16354 * features/i386/x32-avx512-linux.c: Regenerated.
16355 * regformats/i386/amd64-avx-linux.dat: Regenerated.
16356 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
16357 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
16358 * regformats/i386/amd64-linux.dat: Regenerated.
16359 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
16360 * regformats/i386/x32-avx-linux.dat: Regenerated.
16361 * regformats/i386/x32-avx512-linux.dat: Regenerated.
16362 * regformats/i386/x32-linux.dat: Regenerated.
16363
8884e97e
WT
163642017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16365
16366 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
16367 Set to AMD64_NUM_REGS.
16368
7005d26a
WT
163692017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16370
16371 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
16372 that checks validity of a register number.
16373
4bd2e1b2
KC
163742017-01-27 Kees Cook <keescook@google.com>
16375
16376 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
16377 fetch_fpregs if target has fpa registers.
16378 (arm_linux_store_inferior_registers): Call store_fpregs if target
16379 has fpa registers.
16380
7cf1de6c
AA
163812017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
16382
16383 * cris-tdep.c (cris_gdbarch_init): Remove check for
16384 info.byte_order and force it to BFD_ENDIAN_LITTLE.
16385
874a1c8c
AT
163862017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
16387
16388 * corelow.c (get_core_register_section): Check for regset
16389 existence before checking for REGSET_VARIABLE_SIZE.
16390
d8b49cf0
YQ
163912017-01-26 Yao Qi <yao.qi@linaro.org>
16392 Pedro Alves <palves@redhat.com>
16393
16394 PR gdb/20939
16395 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
16396 call memory_error, save memaddr instead.
16397 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
16398 negative, cal memory_error.
16399 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
16400
658ca58c
YQ
164012017-01-26 Yao Qi <yao.qi@linaro.org>
16402
16403 * disasm-selftests.c (memory_error_test): New function.
16404 (_initialize_disasm_selftests): Register memory_error_test.
16405
79843d45
YQ
164062017-01-26 Yao Qi <yao.qi@linaro.org>
16407
16408 * Makefile.in (SFILES): Add disasm-selftests.c and
16409 selftest-arch.c.
16410 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
16411 * disasm-selftests.c: New file.
16412 * selftest-arch.c: New file.
16413 * selftest-arch.h: New file.
16414
8cafda32
YQ
164152017-01-26 Yao Qi <yao.qi@linaro.org>
16416
16417 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
16418 to bfd_arch_mep. Don't return 0 if section is not
16419 found. Call print_insn_mep.
16420
e47ad6c0
YQ
164212017-01-26 Pedro Alves <palves@redhat.com>
16422 Yao Qi <yao.qi@linaro.org>
16423
16424 * arm-tdep.c: Include "disasm.h".
16425 (gdb_print_insn_arm): Update code to get gdbarch.
16426 * disasm.c (dis_asm_read_memory): Change it to
16427 gdb_disassembler::dis_asm_read_memory.
16428 (dis_asm_memory_error): Likewise.
16429 (dis_asm_print_address): Likewise.
16430 (gdb_pretty_print_insn): Change it to
16431 gdb_disassembler::pretty_print_insn.
16432 (dump_insns): Add one argument gdb_disassemlber. All
16433 callers updated.
16434 (do_mixed_source_and_assembly_deprecated): Likewise.
16435 (do_mixed_source_and_assembly): Likewise.
16436 (do_assembly_only): Likewise.
16437 (gdb_disassembler::gdb_disassembler): New.
16438 (gdb_disassembler::print_insn): New.
16439 * disasm.h (class gdb_disassembler): New.
16440 (gdb_pretty_print_insn): Remove declaration.
16441 (gdb_disassemble_info): Likewise.
16442 * guile/scm-disasm.c (class gdbscm_disassembler): New.
16443 (gdbscm_disasm_read_memory_worker): Update.
16444 (gdbscm_disasm_read_memory): Update.
16445 (gdbscm_disasm_memory_error): Remove.
16446 (gdbscm_disasm_print_address): Remove.
16447 (gdbscm_disassembler::gdbscm_disassembler): New.
16448 (gdbscm_print_insn_from_port): Update.
16449 * mips-tdep.c: Include disasm.h.
16450 (gdb_print_insn_mips): Update code to get gdbarch.
16451 * record-btrace.c (btrace_insn_history): Update.
16452 * spu-tdep.c: Include disasm.h.
16453 (struct spu_dis_asm_data): Remove.
16454 (struct spu_dis_asm_info): New.
16455 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
16456 SPU id.
16457 (gdb_print_insn_spu): Cast disassemble_info to
16458 spu_dis_asm_info.
16459
80d75874
YQ
164602017-01-26 Yao Qi <yao.qi@linaro.org>
16461
16462 * disasm.c (do_ui_file_delete): Delete.
16463 (gdb_insn_length): Move code creating stream to ...
16464 * utils.c (null_stream): ... here. New function.
16465 * utils.h (null_stream): Declare.
16466
60685cd0
SM
164672017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16468
16469 * python/py-inferior.c (find_thread_object): Return directly
16470 from the loop. Remove "found" variable.
16471
eb1cdb62
JB
164722017-01-21 Joel Brobecker <brobecker@adacore.com>
16473
16474 GDB 7.12.1 released.
16475
b1ce6568
SM
164762017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16477
16478 * python/py-function.c (fnpy_call): Reorder declarations to have
16479 the gdbpy_enter object declared first.
16480 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
16481
6f8b0407
SM
164822017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16483
fec93fb1 16484 PR python/21068
6f8b0407
SM
16485 * python/python-internal.h (PyMem_RawMalloc): Define for
16486 Python < 3.4.
16487 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
16488 PyMem_RawMalloc instead of PyMem_Malloc.
16489
78cbbba8
LM
164902017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
16491 Luis Machado <lgustavo@codesourcery.com>
16492
16493 * NEWS (New commands): Mention flash-erase.
16494 (New MI commands): Mention target-flash-erase.
16495 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
16496 command.
16497 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
16498 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
16499 * target.c (flash_erase_command): New function.
16500 (initialize_targets): Add new flash-erase command.
16501 * target.h (flash_erase_command): New declaration.
16502
2132fe85
JB
165032017-01-20 Joel Brobecker <brobecker@adacore.com>
16504
16505 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
16506 HAVE_SYS_PROCFS_H is defined.
16507
d1dff226
AH
165082017-01-18 Alan Hayward <alan.hayward@arm.com>
16509
16510 * remote.c (struct cached_reg): Change data into a pointer.
16511 * (stop_reply_dtr): Free data pointers before deleting vector.
16512 (process_stop_reply): Likewise.
16513 (remote_parse_stop_reply): Allocate space for data
16514
9890e433
AH
165152017-01-18 Alan Hayward <alan.hayward@arm.com>
16516
16517 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
16518 MAX_REGISTER_SIZE.
16519 (amd64_pseudo_register_read_value): Likewise.
16520 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
16521 (store_register_using_P): Likewise.
16522 * regcache.c (regcache_xfer_part): Likewise.
16523
7a36499a
IR
165242017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
16525
16526 Split real and pseudo registers.
16527 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
16528 (sparc32_pseudo_regnum): New enum.
16529 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
16530 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
16531 (SPARC32_CP0_REGISTERS): New macro.
16532 (sparc32_pseudo_register_name): New function.
16533 (sparc32_register_name): Use sparc32_pseudo_register_name.
16534 (sparc32_pseudo_register_type): New function.
16535 (sparc32_register_type): Use sparc32_pseudo_register_type.
16536 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
16537 pseudo register numbers.
16538 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
16539 (SPARC64_CP0_REGISTERS): New macro.
16540 (sparc64_pseudo_register_name): New function.
16541 (sparc64_register_name): Use sparc64_pseudo_register_name.
16542 (sparc64_pseudo_register_type): New function.
16543 (sparc64_register_type): Use sparc64_pseudo_register_type.
16544 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
16545 pseudo register numbers.
16546 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
16547 sparc64_store_arguments): Handle pseudo register numbers.
16548
6f8976bf
YQ
165492017-01-13 Yao Qi <yao.qi@linaro.org>
16550
16551 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
16552 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
16553 output.
16554 (getpkt_or_notif_sane_1): Likewise.
16555
e4241ace
YQ
165562017-01-13 Yao Qi <yao.qi@linaro.org>
16557
16558 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
16559 of CC. Pass "-x c++-header" instead of "-x c".
16560
3015c064
SM
165612017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16562
16563 * remote.c (remote_can_async_p): Update comment.
16564
fde1b17d
SM
165652017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16566
16567 * linux-nat.c (linux_nat_can_async_p): Update comment.
16568
ca1ca08b
SM
165692017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16570
16571 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
16572
4ad2da73
SM
165732017-01-11 Simon Marchi <simon.marchi@ericsson.com>
16574
16575 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
16576
c8b23b3f
TT
165772017-01-10 Tom Tromey <tom@tromey.com>
16578
16579 * python/py-type.c (typy_legacy_template_argument): Update.
16580 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
16581 ~demangle_parse_info): Declare new members.
16582 (cp_demangled_name_to_comp): Return unique_ptr.
16583 (cp_demangled_name_parse_free)
16584 (make_cleanup_cp_demangled_name_parse_free)
16585 (cp_new_demangle_parse_info): Remove.
16586 * cp-support.c (do_demangled_name_parse_free_cleanup)
16587 (make_cleanup_cp_demangled_name_parse_free): Remove.
16588 (inspect_type, cp_canonicalize_string_full)
16589 (cp_canonicalize_string): Update.
16590 (mangled_name_to_comp): Change return type.
16591 (cp_class_name_from_physname, method_name_from_physname)
16592 (cp_func_name, cp_remove_params): Update.
16593 * cp-name-parser.y (demangle_parse_info): New constructor, from
16594 cp_new_demangle_parse_info.
16595 (~demangle_parse_info): New destructor, from
16596 cp_demangled_name_parse_free.
16597 (cp_merge_demangle_parse_infos): Update.
16598 (cp_demangled_name_to_comp): Change return type.
16599
1ac32117
TT
166002017-01-10 Tom Tromey <tom@tromey.com>
16601
16602 * top.c (prevent_dont_repeat): Change return type.
16603 * python/python.c (execute_gdb_command): Use std::string.
16604 Update.
16605 * guile/guile.c (gdbscm_execute_gdb_command): Update.
16606 * command.h (prevent_dont_repeat): Change return type.
16607 * breakpoint.c (bpstat_do_actions_1): Update.
16608
0cf08227
TT
166092017-01-10 Tom Tromey <tom@tromey.com>
16610
16611 * value.h (scoped_value_mark::~scoped_value_mark): Call
16612 free_to_mark.
16613 (scoped_value_mark::free_to_mark): New method.
16614 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
16615 scoped_value_mark.
16616
eb115069
TT
166172017-01-10 Tom Tromey <tom@tromey.com>
16618
16619 * python/py-value.c (valpy_dereference, valpy_referenced_value)
16620 (valpy_reference_value, valpy_const_value, valpy_get_address)
16621 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
16622 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
16623 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
16624 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
16625 scoped_value_mark.
16626 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
16627 * value.h (scoped_value_mark): New class.
16628
906768f9
TT
166292017-01-10 Tom Tromey <tom@tromey.com>
16630
16631 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
16632 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
16633 * psymtab.c (discard_psymtabs_upto): Remove.
16634 (make_cleanup_discard_psymtabs): Remove.
16635 (struct psymtab_state): Remove.
16636
bef155c3
TT
166372017-01-10 Tom Tromey <tom@tromey.com>
16638
16639 * record-full.c (record_full_save_cleanups): Remove.
16640 (record_full_save): Use gdb::unlinker.
16641 * gcore.c (do_bfd_delete_cleanup): Remove.
16642 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
16643 cleanups.
16644 * dwarf2read.c (unlink_if_set): Remove.
16645 (write_psymtabs_to_index): Use gdb::unlinker.
16646 * common/gdb_unlinker.h: New file.
16647
192b62ce
TT
166482017-01-10 Tom Tromey <tom@tromey.com>
16649
16650 * windows-tdep.c (windows_xfer_shared_library): Update.
16651 * windows-nat.c (windows_make_so): Update.
16652 * utils.h (make_cleanup_bfd_unref): Remove.
16653 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
16654 * symfile.h (symfile_bfd_open)
16655 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
16656 * symfile.c (read_symbols, symbol_file_add)
16657 (separate_debug_file_exists): Update.
16658 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
16659 (generic_load, reread_symbols): Update.
16660 * symfile-mem.c (symbol_file_add_from_memory): Update.
16661 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
16662 (spu_symbol_file_add_from_memory): Update.
16663 * solist.h (struct target_so_ops) <bfd_open>: Return
16664 gdb_bfd_ref_ptr.
16665 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
16666 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
16667 gdb_bfd_ref_ptr.
16668 (solib_map_sections, reload_shared_libraries_1): Update.
16669 * solib-svr4.c (enable_break): Update.
16670 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
16671 * solib-frv.c (enable_break2): Update.
16672 * solib-dsbt.c (enable_break): Update.
16673 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
16674 gdb_bfd_ref_ptr.
16675 (darwin_solib_get_all_image_info_addr_at_init): Update.
16676 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
16677 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
16678 * record-full.c (record_full_save): Update.
16679 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
16680 * procfs.c (insert_dbx_link_bpt_in_file): Update.
16681 * minidebug.c (find_separate_debug_file_in_section): Return
16682 gdb_bfd_ref_ptr.
16683 * machoread.c (macho_add_oso_symfile): Change abfd to
16684 gdb_bfd_ref_ptr.
16685 (macho_symfile_read_all_oso): Update.
16686 (macho_check_dsym): Return gdb_bfd_ref_ptr.
16687 (macho_symfile_read): Update.
16688 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
16689 (jit_bfd_try_read_symtab): Update.
16690 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16691 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16692 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16693 gdb_bfd_ref_ptr.
16694 (gdb_bfd_ref_policy): New struct.
16695 (gdb_bfd_ref_ptr): New typedef.
16696 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16697 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16698 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16699 gdb_bfd_ref_ptr.
16700 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16701 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16702 (gcore_command): Update.
16703 * exec.c (exec_file_attach): Update.
16704 * elfread.c (elf_symfile_read): Update.
16705 * dwarf2read.c (dwarf2_get_dwz_file): Update.
16706 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
16707 (open_and_init_dwo_file): Update.
16708 (open_dwp_file): Return gdb_bfd_ref_ptr.
16709 (open_and_init_dwp_file): Update.
16710 * corelow.c (core_open): Update.
16711 * compile/compile-object-load.c (compile_object_load): Update.
16712 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
16713 * coffread.c (coff_symfile_read): Update.
16714 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
16715 gdb_bfd_ref_ptr. Rename.
16716 (dump_bfd_file, restore_command): Update.
16717 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16718 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16719 (find_separate_debug_file_by_buildid): Update.
16720
50315b21
TT
167212017-01-10 Tom Tromey <tom@tromey.com>
16722
16723 * common/gdb_ref_ptr.h: New file.
16724 * python/py-ref.h (struct gdbpy_ref_policy): New.
16725 (gdbpy_ref): Now a typedef.
16726
fc4007c9
TT
167272017-01-10 Tom Tromey <tom@tromey.com>
16728
16729 * utils.h (make_cleanup_htab_delete): Don't declare.
16730 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
16731 Remove.
16732 * linespec.c (decode_compound_collector): Add constructor,
16733 destructor.
16734 (lookup_prefix_sym): Remove cleanup.
16735 (symtab_collector): Add constructor, destructor.
16736 (collect_symtabs_from_filename): Remove cleanup.
16737 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
16738 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
16739 Use htab_up.
16740 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
16741 * dwarf2read.c (dw2_expand_symtabs_matching)
16742 (dw2_map_symbol_filenames, dwarf_decode_macros)
16743 (write_psymtabs_to_index): Use htab_up.
16744 * dwarf2loc.c (func_verify_no_selftailcall)
16745 (call_site_find_chain_1, func_verify_no_selftailcall)
16746 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
16747 std::vector, gdb::unique_xmalloc_ptr.
16748 (call_sitep): Remove typedef.
16749 (dwarf2_locexpr_baton_eval): Remove unused variable.
16750
8dbcee67
TT
167512017-01-10 Tom Tromey <tom@tromey.com>
16752
16753 * python/python-internal.h (make_cleanup_py_decref)
16754 (make_cleanup_py_xdecref): Don't declare.
16755 * python/py-utils.c (py_decref, make_cleanup_py_decref)
16756 (py_xdecref, make_cleanup_py_xdecref): Remove.
16757
13df46cc
TT
167582017-01-10 Tom Tromey <tom@tromey.com>
16759
16760 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
16761 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
16762
06fc9bf7
TT
167632017-01-10 Tom Tromey <tom@tromey.com>
16764
16765 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
16766
830a4934
TT
167672017-01-10 Tom Tromey <tom@tromey.com>
16768
16769 * python/py-utils.c (unicode_to_encoded_string)
16770 (python_string_to_target_string)
16771 (python_string_to_target_python_string)
16772 (python_string_to_host_string, gdbpy_obj_to_string)
16773 (get_addr_from_python): Use gdbpy_ref.
16774
4586d543
TT
167752017-01-10 Tom Tromey <tom@tromey.com>
16776
16777 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
16778 gdbpy_ref.
16779
59876f8f
TT
167802017-01-10 Tom Tromey <tom@tromey.com>
16781
16782 * python/python.c (eval_python_command, gdbpy_decode_line)
16783 (gdbpy_run_events, gdbpy_start_type_printers)
16784 (gdbpy_apply_type_printers): Use gdbpy_ref.
16785
97d83487
TT
167862017-01-10 Tom Tromey <tom@tromey.com>
16787
16788 * python/py-param.c (get_doc_string, compute_enum_values): Use
16789 gdbpy_ref.
16790
9205649a
TT
167912017-01-10 Tom Tromey <tom@tromey.com>
16792
16793 * python/py-inferior.c (find_thread_object, build_inferior_list):
16794 Use gdbpy_ref.
16795
74c49d45
TT
167962017-01-10 Tom Tromey <tom@tromey.com>
16797
16798 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16799
16361ffb
TT
168002017-01-10 Tom Tromey <tom@tromey.com>
16801
16802 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
16803 gdbpy_ref.
16804
905f2cca
TT
168052017-01-10 Tom Tromey <tom@tromey.com>
16806
16807 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
16808 extra incref.
16809 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
16810 Use gdbpy_ref.
16811
64081434
TT
168122017-01-10 Tom Tromey <tom@tromey.com>
16813
16814 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16815 gdbpy_ref.
16816
59e9e831
TT
168172017-01-10 Tom Tromey <tom@tromey.com>
16818
16819 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
16820 decref results of PyArg_ParseTupleAndKeywords.
16821
9de10f6d
TT
168222017-01-10 Tom Tromey <tom@tromey.com>
16823
16824 * python/python.c (python_run_simple_file): Use
16825 unique_xmalloc_ptr, gdbpy_ref.
16826
2bd5759d
TT
168272017-01-10 Tom Tromey <tom@tromey.com>
16828
16829 * python/py-prettyprint.c (print_stack_unless_memory_error)
16830 (print_string_repr, print_children): Use gdbpy_ref.
16831 (dummy_python_frame): New class.
16832 (dummy_python_frame::dummy_python_frame): Rename from
16833 push_dummy_python_frame.
16834 (py_restore_tstate): Remove.
16835
3b4e0e01
TT
168362017-01-10 Tom Tromey <tom@tromey.com>
16837
16838 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16839
17a22718
TT
168402017-01-10 Tom Tromey <tom@tromey.com>
16841
16842 * python/python.c (ensure_python_env, restore_python_env):
16843 Remove.
16844 * python/python-internal.h (ensure_python_env): Don't declare.
16845 * varobj.h (varobj_ensure_python_env): Don't declare.
16846 * varobj.c (varobj_ensure_python_env): Remove.
16847
68cdc557
TT
168482017-01-10 Tom Tromey <tom@tromey.com>
16849
16850 * varobj.c (varobj_value_get_print_value): Use
16851 gdbpy_enter_varobj.
16852
1eba6383
TT
168532017-01-10 Tom Tromey <tom@tromey.com>
16854
16855 * python/py-prettyprint.c (print_string_repr, print_children):
16856 Update.
16857 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
16858 of "encoding".
16859 * varobj.c (varobj_value_get_print_value): Update.
16860 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
16861
bde7b3e3
TT
168622017-01-10 Tom Tromey <tom@tromey.com>
16863
16864 * varobj.c (varobj_get_display_hint)
16865 (dynamic_varobj_has_child_method, install_new_value_visualizer)
16866 (varobj_set_visualizer, free_variable): Use
16867 gdbpy_enter_varobj.
16868
a7785f8c
TT
168692017-01-10 Tom Tromey <tom@tromey.com>
16870
16871 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
16872 (do_finish_initialization): New function. Use gdbpy_ref.
16873 (gdbpy_finish_initialization): Use gdbpy_enter. Call
16874 do_finish_initialization.
16875
2865bfce
TT
168762017-01-10 Tom Tromey <tom@tromey.com>
16877
16878 * python/py-param.c (get_set_value, get_show_value): Use
16879 gdbpy_enter, gdbpy_ref.
16880
0e9dcc75
TT
168812017-01-10 Tom Tromey <tom@tromey.com>
16882
16883 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
16884
12a5cedd
TT
168852017-01-10 Tom Tromey <tom@tromey.com>
16886
16887 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
16888
788f2586
TT
168892017-01-10 Tom Tromey <tom@tromey.com>
16890
16891 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
16892 Use gdbpy_enter_varobj.
16893
6cd67bea
TT
168942017-01-10 Tom Tromey <tom@tromey.com>
16895
16896 * varobj.c (gdbpy_enter_varobj): New constructor.
16897 * python/python-internal.h (gdbpy_enter_varobj): New class.
16898 * python/py-varobj.c (py_varobj_get_iterator): Use
16899 gdbpy_enter_varobj.
16900
14b122bf
TT
169012017-01-10 Tom Tromey <tom@tromey.com>
16902
16903 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
16904 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16905 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
16906 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
16907 unique_xmalloc_ptr.
16908 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
16909
bf1ca3b9
TT
169102017-01-10 Tom Tromey <tom@tromey.com>
16911
16912 * python/py-xmethods.c (invoke_match_method): Use
16913 gdbpy_ref.
16914
572a5524
TT
169152017-01-10 Tom Tromey <tom@tromey.com>
16916
16917 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
16918 gdbpy_enter, gdbpy_ref.
16919
396a78b6
TT
169202017-01-10 Tom Tromey <tom@tromey.com>
16921
16922 * python/python.c (python_interactive_command): Use gdbpy_enter.
16923
a88b13c7
TT
169242017-01-10 Tom Tromey <tom@tromey.com>
16925
16926 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
16927 gdbpy_ref.
16928
e9f0c363
TT
169292017-01-10 Tom Tromey <tom@tromey.com>
16930
16931 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
16932 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16933
6349f452
TT
169342017-01-10 Tom Tromey <tom@tromey.com>
16935
16936 * utils.h (htab_deleter): New struct.
16937 (htab_up): New typedef.
16938 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
16939 gdbpy_enter, gdbpy_ref, htab_up.
16940
c0171de6
TT
169412017-01-10 Tom Tromey <tom@tromey.com>
16942
16943 * python/py-unwind.c (pending_frame_invalidate): Remove.
16944 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
16945
f18e226f
TT
169462017-01-10 Tom Tromey <tom@tromey.com>
16947
16948 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
16949 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
16950
c57af3f1
TT
169512017-01-10 Tom Tromey <tom@tromey.com>
16952
16953 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
16954
60e600ec
TT
169552017-01-10 Tom Tromey <tom@tromey.com>
16956
16957 * python/python.c (gdbpy_eval_from_control_command)
16958 (gdbpy_source_script, gdbpy_run_events)
16959 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
16960 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
16961 gdbpy_enter.
16962
bf7da5b0
TT
169632017-01-10 Tom Tromey <tom@tromey.com>
16964
16965 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
16966
2d38bced
TT
169672017-01-10 Tom Tromey <tom@tromey.com>
16968
16969 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
16970
07bc7329
TT
169712017-01-10 Tom Tromey <tom@tromey.com>
16972
16973 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
16974 (python_on_inferior_call_pre, python_on_inferior_call_post)
16975 (python_on_memory_change, python_on_register_change)
16976 (python_inferior_exit, python_new_objfile, add_thread_object)
16977 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
16978
6e7c365e
TT
169792017-01-10 Tom Tromey <tom@tromey.com>
16980
16981 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
16982 (bpfinishpy_handle_exit): Use gdbpy_enter.
16983
6ba0cd40
TT
169842017-01-10 Tom Tromey <tom@tromey.com>
16985
16986 * python/py-cmd.c (cmdpy_destroyer)
16987 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
16988 gdbpy_enter.
16989
de2dc875
TT
169902017-01-10 Tom Tromey <tom@tromey.com>
16991
16992 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16993 gdbpy_enter.
16994 (gdbpy_breakpoint_has_cond): Likewise.
16995
4ecee2c4
TT
169962017-01-10 Tom Tromey <tom@tromey.com>
16997
16998 * python/python.c (gdbpy_enter): New constructor.
16999 (~gdbpy_enter): New destructor.
17000 (restore_python_env, ensure_python_env): Rewrite.
17001 * python/python-internal.h (gdbpy_enter): New class.
17002
37fce74f
TT
170032017-01-10 Tom Tromey <tom@tromey.com>
17004
17005 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17006
53a0cca3
TT
170072017-01-10 Tom Tromey <tom@tromey.com>
17008
17009 * python/py-value.c (value_has_field, get_field_flag)
17010 (get_field_type, valpy_getitem, convert_value_from_python): Use
17011 gdbpy_ref.
17012
ff3724f5
TT
170132017-01-10 Tom Tromey <tom@tromey.com>
17014
17015 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17016 gdbpy_ref.
17017
0700aea5
TT
170182017-01-10 Tom Tromey <tom@tromey.com>
17019
17020 * python/py-prettyprint.c (search_pp_list)
17021 (find_pretty_printer_from_objfiles)
17022 (find_pretty_printer_from_progspace)
17023 (find_pretty_printer_from_gdb, find_pretty_printer)
17024 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17025 gdbpy_ref.
17026
1bb44c9f
TT
170272017-01-10 Tom Tromey <tom@tromey.com>
17028
17029 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17030
87ce03fd
TT
170312017-01-10 Tom Tromey <tom@tromey.com>
17032
17033 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17034 (ltpy_get_all_source_lines): Use gdbpy_ref.
17035
ee0a3fb8
TT
170362017-01-10 Tom Tromey <tom@tromey.com>
17037
17038 * python/py-framefilter.c (extract_sym, extract_value)
17039 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17040 gdbpy_ref.
17041
bf2a52fa
TT
170422017-01-10 Tom Tromey <tom@tromey.com>
17043
17044 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17045
f59fe7f8
TT
170462017-01-10 Tom Tromey <tom@tromey.com>
17047
17048 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17049
80bd970a
TT
170502017-01-10 Tom Tromey <tom@tromey.com>
17051
17052 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17053 gdbpy_ref.
17054
d1b3de2e
TT
170552017-01-10 Tom Tromey <tom@tromey.com>
17056
17057 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17058
3bb43384
TT
170592017-01-10 Tom Tromey <tom@tromey.com>
17060
17061 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17062 (typy_range): Use gdbpy_ref.
17063
abf5651e
TT
170642017-01-10 Tom Tromey <tom@tromey.com>
17065
17066 * python/py-threadevent.c (create_thread_event_object): Use
17067 gdbpy_ref.
17068 * python/py-stopevent.c (create_stop_event_object): Simplify.
17069 (emit_stop_event): Use gdbpy_ref.
17070 * python/py-signalevent.c (create_signal_event_object): Use
17071 gdbpy_ref.
17072 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17073 (emit_new_objfile_event, create_clear_objfiles_event_object)
17074 (emit_clear_objfiles_event): Use gdbpy_ref.
17075 * python/py-infevents.c (create_inferior_call_event_object)
17076 (create_register_changed_event_object)
17077 (create_memory_changed_event_object, emit_inferior_call_event)
17078 (emit_memory_changed_event, emit_register_changed_event): Use
17079 gdbpy_ref.
17080 * python/py-exitedevent.c (create_exited_event_object)
17081 (emit_exited_event): Use gdbpy_ref.
17082 * python/py-event.h (evpy_emit_event): Remove
17083 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17084 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17085 * python/py-continueevent.c (emit_continue_event): Use
17086 gdbpy_ref.
17087 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17088 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17089 gdbpy_ref.
17090 * python/py-bpevent.c (create_breakpoint_event_object): Use
17091 gdbpy_ref.
17092
a68ff33e
TT
170932017-01-10 Tom Tromey <tom@tromey.com>
17094
17095 * python/py-ref.h: New file.
17096
7becfd03
SM
170972017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17098
17099 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17100 void.
17101 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17102 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17103 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17104 * ui-out.c (ui_out::redirect): Likewise.
17105 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17106 * cli/cli-logging.c (set_logging_redirect): Update call site of
17107 ui_out::redirect.
17108 (handle_redirections): Likewise.
17109 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17110 * top.c (execute_command_to_string): Likewise.
17111 * utils.c (do_ui_out_redirect_pop): Likewise.
17112
df294654
SM
171132017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17114
17115 * stack.c (_initialize_stack): Update "frame" command help message.
17116
f5e6296e
IB
171172017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17118
17119 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17120
0e2d6fa6
YQ
171212017-01-06 Yao Qi <yao.qi@linaro.org>
17122
17123 * x86-linux-nat.h: Include gdb_proc_service.h.
17124
44d6d3f9
YQ
171252017-01-06 Yao Qi <yao.qi@linaro.org>
17126
17127 * ser-base.h: Include serial.h.
17128
656731fe
YQ
171292017-01-06 Yao Qi <yao.qi@linaro.org>
17130
17131 * ppc-linux-tdep.h: Include ppc-tdep.h.
17132
1ca8f924
YQ
171332017-01-06 Yao Qi <yao.qi@linaro.org>
17134
17135 * nat/amd64-linux-siginfo.h: Include signal.h.
17136
bc3008c4
YQ
171372017-01-06 Yao Qi <yao.qi@linaro.org>
17138
17139 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17140
66c80d03
YQ
171412017-01-06 Yao Qi <yao.qi@linaro.org>
17142
17143 * mi/mi-parse.h: Include mi-cmds.h.
17144
051d2dda
YQ
171452017-01-06 Yao Qi <yao.qi@linaro.org>
17146
17147 * inf-loop.c: Don't include "target.h".
17148 * inf-loop.h: Include it here.
17149
8018d34f
YQ
171502017-01-06 Yao Qi <yao.qi@linaro.org>
17151
17152 * dfp.h: Include "dboulest.h" and "expression.h".
17153
c0b8369c
YQ
171542017-01-06 Yao Qi <yao.qi@linaro.org>
17155
17156 * ax-gdb.h: Include "ax.h".
17157
ad5cba2a
YQ
171582017-01-06 Yao Qi <yao.qi@linaro.org>
17159
17160 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
17161 with nat/gdb_ptrace.h.
17162
1c33cd7f
YQ
171632017-01-05 Yao Qi <yao.qi@linaro.org>
17164
17165 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
17166 new line.
17167 (mips64_fbsd_sigframe_init): Likewise.
17168
c988ac1d
JB
171692017-01-04 John Baldwin <jhb@FreeBSD.org>
17170
17171 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
17172 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
17173
b268007c
JB
171742017-01-04 John Baldwin <jhb@FreeBSD.org>
17175
17176 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
17177 * NEWS: Mention new FreeBSD/mips native configuration.
17178 * config/mips/fbsd.mh: New file.
17179 * configure.host: Add mips*-*-freebsd*.
17180 * mips-fbsd-nat.c: New file.
17181
387360da
JB
171822017-01-04 John Baldwin <jhb@FreeBSD.org>
17183
17184 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
17185 (ALLDEPFILES): Add mips-fbsd-tdep.c.
17186 * NEWS: Mention new FreeBSD/mips target.
17187 * configure.tgt: Add mips*-*-freebsd*.
17188 * mips-fbsd-tdep.c: New file.
17189 * mips-fbsd-tdep.h: New file.
17190
2aaaf250
YQ
171912017-01-04 Yao Qi <yao.qi@linaro.org>
17192
17193 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
17194 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
17195
61baf725
JB
171962017-01-01 Joel Brobecker <brobecker@adacore.com>
17197
6dbb839a 17198 Update copyright year range in all GDB files.
61baf725 17199
c113e7ff 172002017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 17201
c113e7ff 17202 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 17203
c113e7ff 17204For older changes see ChangeLog-2016.
c906108c
SS
17205\f
17206Local Variables:
17207mode: change-log
17208left-margin: 8
17209fill-column: 74
17210version-control: never
57da7796 17211coding: utf-8
c906108c 17212End:
This page took 4.5699 seconds and 4 git commands to generate.