Removes a cleanup from gcore.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
44287fd8
TT
12017-11-26 Tom Tromey <tom@tromey.com>
2
3 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
4
5ffd2cb7
UW
52017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
6
7 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
8 "cooked" register. Access only first four bytes of branch target
9 registers.
10
0e5457dc
SDJ
112017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
12
13 PR gdb/22491
14 * stap-probe.c (relocate_address): New function.
15 (stap_probe::get_relocated_address): Use 'relocate_address'.
16 (stap_probe::set_semaphore): Use 'relocate_address' and pass
17 'm_sem_addr'.
18 (stap_probe::clear_semaphore): Likewise.
19
deeeba55
PA
202017-11-25 Pedro Alves <palves@redhat.com>
21
22 * dictionary.c: Include "safe-ctype.h".
23 * minsyms.c: Include "safe-ctype.h".
24 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
25
a81aaca0
PA
262017-11-25 Pedro Alves <palves@redhat.com>
27
28 * completer.c (complete_line_internal_1): Skip spaces until the
29 start of the command.
30
0662b6a7
PA
312017-11-24 Pedro Alves <palves@redhat.com>
32
33 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
34 cp_fq_symbol_name_matches. Pass language_cplus to
35 strncmp_with_mode.
36 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
37 (selftests::test_cp_symbol_name_cmp): New.
38 (_initialize_cp_support): Register "cp_symbol_name_matches"
39 selftests.
40 * language.c (default_symbol_name_matcher): Pass language_minimal
41 to strncmp_iw_with_mode.
42 * utils.c: Include "cp-support.h" and <algorithm>.
43 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
44 (cp_is_operator): New functions.
45 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
46 skip whitespace in the symbol name when the lookup name doesn't
47 have spaces, and vice versa.
48 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
49 * utils.h (strncmp_iw_with_mode): Add language parameter.
50
e547c119
JB
512017-11-24 Joel Brobecker <brobecker@adacore.com>
52
53 * ada-lang.c (ada_exception_message_1, ada_exception_message):
54 New functions.
55 (print_it_exception): If available, display the exception
56 message as well.
57 * NEWS: Document new feature.
58
d7fcdff9
UW
592017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
60
61 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
62
30649c14
PR
632017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
64
65 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
66 (dtrace_probe::is_enabled, dtrace_probe::enable)
67 (dtrace_probe::disable): Remove keyword 'struct' at for-range
68 variable
69 * probe.c (gen_ui_out_table_header_info)
70 (print_ui_out_not_applicables): Remove keyword 'struct' at
71 for-range variable
72
7696f5c9
AH
732017-11-24 Alan Hayward <alan.hayward@arm.com>
74
75 * configure.tgt: Add arch/aarch64.o
76
8172f16b
SM
772017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * common/common-utils.h: Include poison.h.
80 (xfree): Remove declaration, add definition with static_assert.
81 * common/common-utils.c (xfree): Remove.
82 * common/poison.h (IsMallocatable): Define.
83 (IsFreeable): Define.
84 (free): Delete for non-freeable types.
85 (xnew): New.
86 (XNEW): Undef and redefine.
87 (xcnew): New.
88 (XCNEW): Undef and redefine.
89 (xdelete): New.
90 (XDELETE): Undef and redefine.
91 (xnewvec): New.
92 (XNEWVEC): Undef and redefine.
93 (xcnewvec): New.
94 (XCNEWVEC): Undef and redefine.
95 (xresizevec): New.
96 (XRESIZEVEC): Undef and redefine.
97 (xdeletevec): New.
98 (XDELETEVEC): Undef and redefine.
99 (xnewvar): New.
100 (XNEWVAR): Undef and redefine.
101 (xcnewvar): New.
102 (XCNEWVAR): Undef and redefine.
103 (xresizevar): New.
104 (XRESIZEVAR): Undef and redefine.
105
7aabaf9d
SM
1062017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
107
108 * gdbthread.h (private_thread_info): Define structure type, add
109 virtual pure destructor.
110 (thread_info) <priv>: Change type to unique_ptr.
111 <private_dtor>: Remove.
112 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
113 (private_thread_info::~private_thread_info): Provide default
114 implementation.
115 (thread_info::~thread_info): Don't call private_dtor nor
116 manually free priv.
117 * aix-thread.c (private_thread_info): Rename to ...
118 (aix_thread_info): ... this.
119 (get_aix_thread_info): New.
120 (sync_threadlists): Adjust.
121 (iter_tid): Adjust.
122 (aix_thread_resume): Adjust.
123 (aix_thread_fetch_registers): Adjust.
124 (aix_thread_store_registers): Adjust.
125 (aix_thread_extra_thread_info): Adjust.
126 * darwin-nat.h (private_thread_info): Rename to ...
127 (darwin_thread_info): ... this.
128 (get_darwin_thread_info): New.
129 * darwin-nat.c (darwin_init_thread_list): Adjust.
130 (darwin_check_new_threads): Adjust.
131 (thread_info_from_private_thread_info): Adjust.
132 * linux-thread-db.c (private_thread_info): Rename to ...
133 (thread_db_thread_info): ... this, initialize fields.
134 (get_thread_db_thread_info): New.
135 <dying>: Change type to bool.
136 (update_thread_state): Adjust to type rename.
137 (record_thread): Adjust to type rename an use of unique_ptr.
138 (thread_db_pid_to_str): Likewise.
139 (thread_db_extra_thread_info): Likewise.
140 (thread_db_thread_handle_to_thread_info): Likewise.
141 (thread_db_get_thread_local_address): Likewise.
142 * nto-tdep.h (private_thread_info): Rename to ...
143 (nto_thread_info): ... this, initialize fields.
144 (get_nto_thread_info): New.
145 <name>: Change type to std::string.
146 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
147 use of unique_ptr.
148 * nto-procfs.c (update_thread_private_data_name): Adjust to
149 std::string change, allocate nto_private_thread_info with new.
150 (update_thread_private_data): Adjust to unique_ptr.
151 * remote.c (private_thread_info): Rename to ...
152 (remote_thread_info): ... this, initialize data members with
153 default values.
154 <extra, name>: Change type to std::string.
155 <thread_handle>: Change type to non-pointer.
156 (free_private_thread_info): Remove.
157 (get_private_info_thread): Rename to...
158 (get_remote_thread_info): ... this, change return type, adjust to
159 use of unique_ptr, use remote_thread_info constructor.
160 (remote_add_thread): Adjust.
161 (get_private_info_ptid): Rename to...
162 (get_remote_thread_info): ...this, change return type.
163 (remote_thread_name): Use get_remote_thread_info, adjust to
164 change to std::string.
165 (struct thread_item) <~thread_item>: Remove.
166 <thread_handle>: Make non pointer.
167 (start_thread): Adjust to thread_item::thread_handle type
168 change.
169 (remote_update_thread_list): Adjust to type name change, move
170 strings from temporary to long-lived object instead of
171 duplicating.
172 (remote_threads_extra_info): Use get_remote_thread_info.
173 (process_initial_stop_replies): Likewise.
174 (resume_clear_thread_private_info): Likewise.
175 (remote_resume): Adjust to type name change.
176 (remote_commit_resume): Use get_remote_thread_info.
177 (process_stop_reply): Adjust to type name change.
178 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
179 (remote_stopped_by_hw_breakpoint): Likewise.
180 (remote_stopped_by_watchpoint): Likewise.
181 (remote_stopped_data_address): Likewise.
182 (remote_core_of_thread): Likewise.
183 (remote_thread_handle_to_thread_info): Use
184 get_private_info_thread, adjust to thread_handle field type
185 change.
186
21fe1c75
SM
1872017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
188
189 * remote.c (struct thread_item): Add constructor, disable copy
190 construction and copy assignment, define default move
191 construction and move assignment.
192 <extra, name>: Change type to std::string.
193 <core>: Initialize.
194 <thread_handle>: Make non-pointer.
195 (thread_item_t): Remove typedef.
196 (DEF_VEC_O(thread_item_t)): Remove.
197 (threads_listing_context) <contains_thread>: New method.
198 <remove_thread>: New method.
199 <items>: Change type to std::vector.
200 (clear_threads_listing_context): Remove.
201 (threads_listing_context_remove): Remove.
202 (remote_newthread_step): Use thread_item constructor, adjust to
203 change to std::vector.
204 (start_thread): Use thread_item constructor, adjust to change to
205 std::vector.
206 (end_thread): Adjust to change to std::vector and std::string.
207 (remote_get_threads_with_qthreadinfo): Use thread_item
208 constructor, adjust to std::vector.
209 (remote_update_thread_list): Adjust to change to std::vector and
210 std::string, use threads_listing_context methods.
211 (remove_child_of_pending_fork): Adjust.
212 (remove_new_fork_children): Adjust.
213 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
214 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
215 * unittests/rsp-low-selftests.c: New file.
216 * common/rsp-low.h: Include common/byte-vector.h.
217 (hex2bin): New overload.
218 * common/rsp-low.c (hex2bin): New overload.
219
089354bb
SM
2202017-11-24 Simon Marchi <simon.marchi@ericsson.com>
221
222 * inferior.h (private_inferior): Define structure type, add
223 virtual pure destructor.
224 (inferior) <priv>: Change type to unique_ptr.
225 * inferior.c (private_inferior::~private_inferior): Provide
226 default implementation.
227 (inferior::~inferior): Don't free priv field.
228 (exit_inferior_1): Likewise.
229 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
230 (darwin_exception_info): Remove typedef.
231 (DEF_VEC_O (darwin_thread_t)); Remove.
232 (private_inferior): Rename to ...
233 (darwin_private_inferior): ... this, extend private_inferior.
234 (get_darwin_inferior): New.
235 <threads>: Change type to std::vector of darwin_thread_t pointers.
236 * darwin-nat.c (darwin_check_new_threads): Adjust.
237 (find_inferior_task_it): Adjust.
238 (darwin_find_thread); Adjust.
239 (darwin_suspend_inferior): Adjust.
240 (darwin_resume_inferior): Adjust.
241 (darwin_find_new_inferior): Adjust.
242 (darwin_decode_notify_message): Adjust.
243 (darwin_send_reply): Adjust.
244 (darwin_resume_inferior_threads): Adjust.
245 (darwin_suspend_inferior_threads): Adjust.
246 (darwin_decode_message): Adjust.
247 (darwin_wait): Adjust.
248 (darwin_interrupt): Adjust.
249 (darwin_deallocate_threads): Adjust.
250 (darwin_mourn_inferior): Adjust, don't free private data.
251 (darwin_reply_to_all_pending_messages): Adjust.
252 (darwin_stop_inferior): Adjust.
253 (darwin_setup_exceptions): Adjust.
254 (darwin_kill_inferior): Adjust.
255 (darwin_setup_request_notification): Adjust.
256 (darwin_attach_pid): Adjust.
257 (darwin_init_thread_list): Adjust.
258 (darwin_setup_fake_stop_event): Adjust.
259 (darwin_attach): Adjust.
260 (darwin_detach): Adjust.
261 (darwin_xfer_partial): Adjust.
262 (set_enable_mach_exceptions): Adjust.
263 (darwin_pid_to_exec_file): Adjust.
264 (darwin_get_ada_task_ptid): Adjust.
265 * darwin-nat-info.c (get_task_from_args): Adjust.
266 (info_mach_ports_command): Adjust.
267 (info_mach_region_command): Adjust.
268 (info_mach_exceptions_command): Adjust.
269 * remote.c (private_inferior): Rename to ...
270 (remote_private_inferior): ... this, initialize fields.
271 (get_remote_inferior); New.
272 (remote_commit_resume): Use get_remote_inferior.
273 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
274
d044bac8
PA
2752017-11-24 Pedro Alves <palves@redhat.com>
276
277 * NEWS: Mention linespecs and explicit locations, and completion
278 improvements.
279
e8d58cba
YQ
2802017-11-24 Yao Qi <yao.qi@linaro.org>
281
282 * regcache.c (regcache::dump): Remove footnote_register_size.
283
a63f2d2f
YQ
2842017-11-24 Yao Qi <yao.qi@linaro.org>
285
286 * regcache.c (cooked_read_test): Add more test for readonly
287 regcache.
288
1b30aaa5
YQ
2892017-11-24 Yao Qi <yao.qi@linaro.org>
290
291 * gdbarch-selftests.c (test_target_has_registers): Move it to
292 target.c.
293 (test_target_has_stack): Likewise.
294 (test_target_has_memory): Likewise.
295 (test_target_prepare_to_store): Likewise.
296 (test_target_store_registers): Likewise.
297 (test_target_ops): Likewise.
298 * regcache.c: Include selftest-arch.h and gdbthread.h.
299 (target_ops_no_register): New class.
300 (test_target_fetch_registers): New.
301 (test_target_store_registers): New.
302 (test_target_xfer_partial): New.
303 (readwrite_regcache): New.
304 (cooked_read_test): New.
305 (_initialize_regcache): Register the test.
306 * target.c: (test_target_has_registers): Moved from
307 gdbarch-selftests.c.
308 (test_target_has_stack): Likewise.
309 (test_target_has_memory): Likewise.
310 (test_target_prepare_to_store): Likewise.
311 (test_target_store_registers): Likewise.
312 * target.h (test_target_ops): New class.
313
6654d750
AH
3142017-11-24 Alan Hayward <alan.hayward@arm.com>
315
316 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
317 selftest.
318
49bdb7ee
AH
3192017-11-24 Alan Hayward <alan.hayward@arm.com>
320
321 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
322 * arch/aarch64.c (aarch64_create_target_description): Create
323 new target description.
324 * features/Makefile: Add new files.
325 * features/aarch64.c: Remove file.
326 * features/aarch64-core.c: New autogenerated file.
327 * features/aarch64-fpu.c: New autogenerated file.
328 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
da434ccb
AH
329
3302017-11-24 Alan Hayward <alan.hayward@arm.com>
331
332 * Makefile.in: Add new files.
333 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
334 aarch64_read_description.
335 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
336 Call aarch64_read_description.
337 * aarch64-tdep.c (aarch64_read_description): New function.
338 (aarch64_gdbarch_init): Call aarch64_read_description.
339 * aarch64-tdep.h (aarch64_read_description): New function.
340 * arch/aarch64.c: New file.
341 * configure.tgt: Add new files.
342
98ead37e
YQ
3432017-11-24 Yao Qi <yao.qi@linaro.org>
344
345 * mi/mi-main.c (register_changed_p): Update.
346 * value.c (value_contents_bits_eq): Change return type.
347 (value_contents_eq): Likewise.
348 * value.h: Update comments.
349
62ad7ce7
YQ
3502017-11-24 Yao Qi <yao.qi@linaro.org>
351
352 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
353 local 'changed'. Remove error.
354 (register_changed_p): Change return type to bool.
355
506fe5f4
YQ
3562017-11-24 Yao Qi <yao.qi@linaro.org>
357
358 * arch/tic6x.c: New file.
359 * arch/tic6x.h: New file.
360 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
361 tic6x-core.xml and tic6x-gp.xml.
362 * features/tic6x-c6xp.c: Generated.
363 * features/tic6x-core.c: Generated.
364 * features/tic6x-gp.c: Generated.
365 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
366 "tic6x-".
367
00ea2e2a
SM
3682017-11-23 Simon Marchi <simon.marchi@ericsson.com>
369
370 * mi/mi-main.c (list_available_thread_groups): Change map value
371 type to std::vector.
372
f45e2a77
SM
3732017-11-23 Simon Marchi <simon.marchi@ericsson.com>
374
375 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
376
bd046f64
SM
3772017-11-23 Simon Marchi <simon.marchi@ericsson.com>
378
379 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
380 back to...
381 <children_requested>: ... this.
382 (varobj_get_num_children, varobj_update): Adjust.
383
4c37490d
SM
3842017-11-23 Simon Marchi <simon.marchi@ericsson.com>
385
386 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
387 (ada_value_has_mutated): Likewise.
388 * c-varobj.c (varobj_is_anonymous_child): Likewise.
389 (c_is_path_expr_parent): Likewise.
390 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
391 (mi_cmd_var_set_frozen): Likewise.
392 (mi_cmd_var_update_iter): Likewise.
393 (mi_cmd_var_update): Likewise.
394 * varobj.c (pretty_printing): Likewise.
395 (varobj_enable_pretty_printing): Likewise.
396 (struct varobj_root) <floating, is_valid>: Likewise.
397 (struct varobj_dynamic) <children_requested>: Likewise.
398 (delete_variable): Likewise.
399 (delete_variable_1): Likewise.
400 (install_variable): Likewise.
401 (update_type_if_necessary): Likewise.
402 (install_new_value): Likewise.
403 (value_of_root): Likewise.
404 (is_root_p): Likewise.
405 (varobj_create): Likewise.
406 (varobj_delete): Likewise.
407 (varobj_has_more): Likewise.
408 (varobj_set_frozen): Likewise.
409 (varobj_get_frozen): Likewise.
410 (install_dynamic_child): Likewise.
411 (dynamic_varobj_has_child_method): Likewise.
412 (update_dynamic_varobj_children): Likewise.
413 (varobj_get_num_children): Likewise.
414 (varobj_list_children): Likewise.
415 (is_path_expr_parent): Likewise.
416 (varobj_default_is_path_expr_parent): Likewise.
417 (varobj_is_dynamic_p): Likewise.
418 (varobj_set_value): Likewise.
419 (varobj_value_has_mutated): Likewise.
420 (varobj_update): Likewise.
421 (check_scope): Likewise.
422 (value_of_root_1): Likewise.
423 (varobj_value_get_print_value): Likewise.
424 (varobj_editable_p): Likewise.
425 (varobj_value_is_changeable_p): Likewise.
426 (varobj_floating_p): Likewise.
427 (varobj_default_value_is_changeable_p): Likewise.
428 (varobj_invalidate_iter): Likewise.
429 * varobj.h (struct varobj_update_result) <type_changed,
430 children_changed, changed, value_installed>: Likewise.
431 (struct varobj) <updated, frozen, not_fetched>: Likewise.
432 (struct lang_varobj_ops) <value_is_changeable_p,
433 value_has_mutated, is_path_expr_parent>: Likewise.
434 (varobj_delete): Likewise.
435 (varobj_set_frozen): Likewise.
436 (varobj_get_frozen): Likewise.
437 (varobj_set_value): Likewise.
438 (varobj_update): Likewise.
439 (varobj_editable_p): Likewise.
440 (varobj_floating_p): Likewise.
441 (varobj_has_more): Likewise.
442 (varobj_is_dynamic_p): Likewise.
443 (varobj_default_value_is_changeable_p): Likewise.
444 (varobj_value_is_changeable_p): Likewise.
445 (varobj_is_anonymous_child): Likewise.
446 (varobj_default_is_path_expr_parent): Likewise.
447
9c23b42f
SDJ
4482017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
449
450 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
451 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
452 <type_str>: Convert to 'std::string'.
453 <expr>: Convert to 'expression_up'.
454 (dtrace_probe_arg_s): Delete type and VEC.
455 (dtrace_probe_enabler_s): Likewise.
456 (struct dtrace_probe): Replace by...
457 (class dtrace_static_probe_ops): ...this and...
458 (class dtrace_probe): ...this.
459 (dtrace_probe_is_linespec): Rename to...
460 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
461 to reflect change.
462 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
463 Adjust code. Create new instance of 'dtrace_probe'.
464 (dtrace_build_arg_exprs): Rename to...
465 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
466 reflect change.
467 (dtrace_get_probes): Rename to...
468 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
469 to reflect change.
470 (dtrace_get_arg): Rename to...
471 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
472 reflect change.
473 (dtrace_probe_is_enabled): Rename to...
474 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
475 change.
476 (dtrace_get_probe_address): Rename to...
477 (dtrace_probe::get_relocated_address): ...this. Adjust code
478 to reflect change.
479 (dtrace_get_probe_argument_count): Rename to...
480 (dtrace_probe::get_argument_count): ...this. Adjust code to
481 reflect change.
482 (dtrace_can_evaluate_probe_arguments): Rename to...
483 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
484 to reflect change.
485 (dtrace_evaluate_probe_argument): Rename to...
486 (dtrace_probe::evaluate_argument): ...this. Adjust code to
487 reflect change.
488 (dtrace_compile_to_ax): Rename to...
489 (dtrace_probe::compile_to_ax): ...this. Adjust code to
490 reflect change.
491 (dtrace_probe_destroy): Delete.
492 (dtrace_type_name): Rename to...
493 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
494 reflect change.
495 (dtrace_probe::get_static_ops): New method.
496 (dtrace_gen_info_probes_table_header): Rename to...
497 (dtrace_static_probe_ops::gen_info_probes_table_header):
498 ...this. Adjust code to reflect change.
499 (dtrace_gen_info_probes_table_values): Rename to...
500 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
501 code to reflect change.
502 (dtrace_enable_probe): Rename to...
503 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
504 change.
505 (dtrace_disable_probe): Rename to...
506 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
507 change.
508 (struct probe_ops dtrace_probe_ops): Delete.
509 (info_probes_dtrace_command): Call 'info_probes_for_spops'
510 instead of 'info_probes_for_ops'.
511 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
512 of 'all_probe_ops'.
513
0e9ae10f
SDJ
5142017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
515 Simon Marchi <simark@simark.ca>
516
517 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
518 variable.
519 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
520 <aexpr>: Change type to 'expression_up'.
521 (stap_probe_arg_s): Delete type and VEC.
522 (struct stap_probe): Delete. Replace by...
523 (class stap_static_probe_ops): ...this and...
524 (class stap_probe): ...this. Rename variables to add 'm_'
525 prefix. Do not use 'union' for arguments anymore.
526 (stap_get_expected_argument_type): Receive probe name instead
527 of 'struct stap_probe'. Adjust code.
528 (stap_parse_probe_arguments): Rename to...
529 (stap_probe::parse_arguments): ...this. Adjust code to
530 reflect change.
531 (stap_get_probe_address): Rename to...
532 (stap_probe::get_relocated_address): ...this. Adjust code
533 to reflect change.
534 (stap_get_probe_argument_count): Rename to...
535 (stap_probe::get_argument_count): ...this. Adjust code
536 to reflect change.
537 (stap_get_arg): Rename to...
538 (stap_probe::get_arg_by_number'): ...this. Adjust code to
539 reflect change.
540 (can_evaluate_probe_arguments): Rename to...
541 (stap_probe::can_evaluate_arguments): ...this. Adjust code
542 to reflect change.
543 (stap_evaluate_probe_argument): Rename to...
544 (stap_probe::evaluate_argument): ...this. Adjust code
545 to reflect change.
546 (stap_compile_to_ax): Rename to...
547 (stap_probe::compile_to_ax): ...this. Adjust code to
548 reflect change.
549 (stap_probe_destroy): Delete.
550 (stap_modify_semaphore): Adjust comment.
551 (stap_set_semaphore): Rename to...
552 (stap_probe::set_semaphore): ...this. Adjust code to reflect
553 change.
554 (stap_clear_semaphore): Rename to...
555 (stap_probe::clear_semaphore): ...this. Adjust code to
556 reflect change.
557 (stap_probe::get_static_ops): New method.
558 (handle_stap_probe): Adjust code to create instance of
559 'stap_probe'.
560 (stap_get_probes): Rename to...
561 (stap_static_probe_ops::get_probes): ...this. Adjust code to
562 reflect change.
563 (stap_probe_is_linespec): Rename to...
564 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
565 reflect change.
566 (stap_type_name): Rename to...
567 (stap_static_probe_ops::type_name): ...this. Adjust code to
568 reflect change.
569 (stap_gen_info_probes_table_header): Rename to...
570 (stap_static_probe_ops::gen_info_probes_table_header):
571 ...this. Adjust code to reflect change.
572 (stap_gen_info_probes_table_values): Rename to...
573 (stap_probe::gen_info_probes_table_values): ...this. Adjust
574 code to reflect change.
575 (struct probe_ops stap_probe_ops): Delete.
576 (info_probes_stap_command): Use 'info_probes_for_spops'
577 instead of 'info_probes_for_ops'.
578 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
579 of 'all_probe_ops'.
580
935676c9
SDJ
5812017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
582
583 * break-catch-throw.c (fetch_probe_arguments): Use
584 'probe.prob' instead of 'probe.probe'.
585 * breakpoint.c (create_longjmp_master_breakpoint): Call
586 'can_evaluate_arguments' and 'get_relocated_address' methods
587 from probe.
588 (create_exception_master_breakpoint): Likewise.
589 (add_location_to_breakpoint): Use 'sal->prob' instead of
590 'sal->probe'.
591 (bkpt_probe_insert_location): Call 'set_semaphore' method from
592 probe.
593 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
594 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
595 of 'probe_ops'.
596 (probe_key_free): Call 'delete' on probe.
597 (check_exception_resume): Use 'probe.prob' instead of
598 'probe.probe'.
599 * location.c (string_to_event_location_basic): Call
600 'probe_linespec_to_static_ops'.
601 * probe.c (class any_static_probe_ops): New class.
602 (any_static_probe_ops any_static_probe_ops): New variable.
603 (parse_probes_in_pspace): Receive 'static_probe_ops' as
604 argument. Adjust code to reflect change.
605 (parse_probes): Use 'static_probe_ops' instead of
606 'probe_ops'. Adjust code to reflect change.
607 (find_probes_in_objfile): Call methods to get name and
608 provider from probe.
609 (find_probe_by_pc): Use 'result.prob' instead of
610 'result.probe'. Call 'get_relocated_address' method from
611 probe.
612 (collect_probes): Adjust comment and argument list to receive
613 'static_probe_ops' instead of 'probe_ops'. Adjust code to
614 reflect change. Call necessary methods from probe.
615 (compare_probes): Call methods to get name and provider from
616 probes.
617 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
618 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
619 adjust code accordingly.
620 (print_ui_out_not_applicables): Likewise.
621 (info_probes_for_ops): Rename to...
622 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
623 as argument instead of 'probe_ops'. Adjust code. Call
624 necessary methods from probe.
625 (info_probes_command): Use 'info_probes_for_spops'.
626 (enable_probes_command): Pass correct argument to
627 'collect_probes'. Call methods from probe.
628 (disable_probes_command): Likewise.
629 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
630 (get_probe_argument_count): Move to
631 'any_static_probe_ops::get_argument_count'.
632 (can_evaluate_probe_arguments): Move to
633 'any_static_probe_ops::can_evaluate_arguments'.
634 (evaluate_probe_argument): Move to
635 'any_static_probe_ops::evaluate_argument'.
636 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
637 'probe.probe'.
638 (probe_linespec_to_ops): Rename to...
639 (probe_linespec_to_static_ops): ...this. Adjust code.
640 (probe_any_is_linespec): Rename to...
641 (any_static_probe_ops::is_linespec): ...this.
642 (probe_any_get_probes): Rename to...
643 (any_static_probe_ops::get_probes): ...this.
644 (any_static_probe_ops::type_name): New method.
645 (any_static_probe_ops::gen_info_probes_table_header): New
646 method.
647 (compute_probe_arg): Use 'pc_probe.prob' instead of
648 'pc_probe.probe'. Call methods from probe.
649 (compile_probe_arg): Likewise.
650 (std::vector<const probe_ops *> all_probe_ops): Delete.
651 (std::vector<const static_probe_ops *> all_static_probe_ops):
652 New variable.
653 (_initialize_probe): Use 'all_static_probe_ops' instead of
654 'all_probe_ops'.
655 * probe.h (struct info_probe_column) <field_name>: Delete
656 extraneous newline
657 (info_probe_column_s): Delete type and VEC.
658 (struct probe_ops): Delete. Replace with...
659 (class static_probe_ops): ...this and...
660 (clas probe): ...this.
661 (struct bound_probe) <bound_probe>: Delete extraneous
662 newline. Adjust constructor to receive 'probe' instead of
663 'struct probe'.
664 <probe>: Rename to...
665 <prob>: ...this. Delete extraneous newline.
666 <objfile>: Delete extraneous newline.
667 (register_probe_ops): Delete unused prototype.
668 (info_probes_for_ops): Rename to...
669 (info_probes_for_spops): ...this. Adjust comment.
670 (get_probe_address): Move to 'probe::get_address'.
671 (get_probe_argument_count): Move to
672 'probe::get_argument_count'.
673 (can_evaluate_probe_arguments): Move to
674 'probe::can_evaluate_arguments'.
675 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
676 * solib-svr4.c (struct svr4_info): Adjust comment.
677 (struct probe_and_action) <probe>: Rename to...
678 <prob>: ...this.
679 (register_solib_event_probe): Receive 'probe' instead of
680 'struct probe' as argument. Use 'prob' instead of 'probe'
681 when applicable.
682 (solib_event_probe_action): Call 'get_argument_count' method
683 from probe. Adjust comment.
684 (svr4_handle_solib_event): Adjust comment. Call
685 'evaluate_argument' method from probe.
686 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
687 from probe.
688 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
689 'struct probe'. Call 'can_evaluate_arguments' from probe.
690 * symfile.h: Forward declare 'class probe' instead of 'struct
691 probe'.
692 * symtab.h: Likewise.
693 (struct symtab_and_line) <probe>: Rename to...
694 <prob>: ...this.
695 * tracepoint.c (start_tracing): Use 'prob' when applicable.
696 Call probe methods.
697 (stop_tracing): Likewise.
698
8f6cb6c3
JB
6992017-11-22 Joel Brobecker <brobecker@adacore.com>
700
701 * ravenscar-thread.c (ravenscar_inferior_created): Remove
702 trailing newline at end of string in call to warning.
703
479f8de1
SM
7042017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
705
706 * osdata.h: Include vector isntead of vec.h.
707 (osdata_column_s): Remove typedef.
708 (struct osdata_column): Add constructor.
709 <name, value>: Change type to std::string.
710 (DEF_VEC_O (osdata_column_s)): Remove.
711 (osdata_item_s): Remove typedef.
712 (struct osdata_item) <columns>: Change type to std::vector.
713 (DEF_VEC_O (osdata_item_s)): Remove.
714 (struct osdata): Add constructor.
715 <type>: Change type to std::string.
716 <items>: Change type to std::vector.
717 (osdata_p): Remove typedef.
718 (DEF_VEC_P (osdata_p)): Remove.
719 (osdata_parse): Return a unique_ptr.
720 (osdata_free): Remove.
721 (make_cleanup_osdata_free): Remove.
722 (get_osdata): Return a unique_ptr.
723 (get_osdata_column): Return pointer to std::string, take a
724 reference to osdata_item as parameter.
725 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
726 unique_ptr.
727 <property_name>: Change type to std::string.
728 (osdata_start_osdata): Allocate osdata with new and adjust.
729 (osdata_start_item): Adjust.
730 (osdata_start_column): Adjust.
731 (osdata_end_column): Adjust.
732 (clear_parsing_data): Remove.
733 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
734 (osdata_item_clear): Remove.
735 (get_osdata): return a unique_ptr and adjust.
736 (get_osdata_column): Return a pointer to std::string and adjust.
737 (info_osdata): Adjust.
738 * mi/mi-main.c: Include <map>.
739 (free_vector_of_osdata_items): Remove.
740 (list_available_thread_groups): Adjust, use std::map instead of
741 splay tree.
742
41bd68f5
SM
7432017-11-22 Simon Marchi <simon.marchi@ericsson.com>
744
745 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
746 case in switch.
747
7e2fd2f4
SM
7482017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
749
750 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
751
0604393c
SM
7522017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
753
754 * varobj.h (struct varobj_update_result): Add constructor, add
755 move constructor, disable copy and assign, initialize fields.
756 <newobj>: Change type to std::vector.
757 (varobj_update): Return std::vector.
758 * varobj.c (install_dynamic_child): Change VEC parameters to
759 std::vector and adjust.
760 (update_dynamic_varobj_children): Likewise.
761 (varobj_update): Return std::vector and adjust.
762 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
763
ddf0ea08
SM
7642017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
765
766 * varobj.h (struct varobj) <parent>: Remove const.
767 <children>: Change type to std::vector.
768 (varobj_list_children): Return std::vector const reference.
769 (varobj_restrict_range): Change parameter type to std::vector
770 const reference.
771 * varobj.c (varobj_has_more): Adjust.
772 (varobj_restrict_range): Change parameter type to std::vector
773 const reference and adjust.
774 (install_dynamic_child): Adjust.
775 (update_dynamic_varobj_children): Adjust.
776 (varobj_list_children): Return std::vector const reference and
777 adjust.
778 (varobj_add_child): Adjust.
779 (update_type_if_necessary): Adjust.
780 (varobj_update): Adjust.
781 (delete_variable_1): Adjust.
782 * ada-varobj.c (ada_value_has_mutated): Adjust.
783 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
784
9e5b9d2b
SM
7852017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
786
787 * varobj.h (struct varobj): Add constructor and destructor,
788 initialize fields.
789 * varobj.c (struct varobj_root): Initialize fields.
790 (struct varobj_dynamic): Initialize fields.
791 (varobj_create): Use unique_ptr instead of cleanup. Create
792 varobj with new instead of new_root_variable.
793 (delete_variable_1): Free variable with delete instead of
794 free_variable.
795 (create_child_with_value): Create variable with new instead of
796 new_variable.
797 (varobj::varobj): New.
798 (varobj::~varobj): New (body mostly coming from free_variable).
799 (new_variable): Remove.
800 (free_variable): Remove.
801 (do_free_variable_cleanup): Remove.
802 (make_cleanup_free_variable): Remove.
803
fc35dab1
UW
8042017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
805
806 * core-regset.c: Remove file.
807 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
808
2400729e
UW
8092017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
810
811 * NEWS: Document use of GNU MPFR.
812 * README: Likewise.
813
814 * Makefile.in (LIBMPFR): Add define.
815 (CLIBS): Add $(LIBMPFR).
816 * configure.ac: Add --with-mpfr configure option.
817 * configure: Regenerate.
818 * config.in: Regenerate.
819
820 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
821 (class mpfr_float_ops): New type.
822 (mpfr_float_ops::from_target): Two new overloaded functions.
823 (mpfr_float_ops::to_target): Likewise.
824 (mpfr_float_ops::to_string): New function.
825 (mpfr_float_ops::from_string): Likewise.
826 (mpfr_float_ops::to_longest): Likewise.
827 (mpfr_float_ops::from_longest): Likewise.
828 (mpfr_float_ops::from_ulongest): Likewise.
829 (mpfr_float_ops::to_host_double): Likewise.
830 (mpfr_float_ops::from_host_double): Likewise.
831 (mpfr_float_ops::convert): Likewise.
832 (mpfr_float_ops::binop): Likewise.
833 (mpfr_float_ops::compare): Likewise.
834 (get_target_float_ops): Use mpfr_float_ops if available.
835
7a26362d
UW
8362017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
837
838 * target-float.c: Do not include <math.h>.
839 Include <cmath> and <limits>.
840 (DOUBLEST): Do not define.
841 (class target_float_ops): New type.
842 (class host_float_ops): New templated type.
843 (class decimal_float_ops): New type.
844
845 (floatformat_to_doublest): Rename to ...
846 (host_float_ops<T>::from_target): ... this. Use template type T
847 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
848 (host_float_ops<T>::from_target): New overload using a type argument.
849 (floatformat_from_doublest): Rename to ...
850 (host_float_ops<T>::to_target): ... this. Use template type T
851 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
852 (host_float_ops<T>::to_target): New overload using a type argument.
853 (floatformat_printf_format): New function.
854 (struct printf_length_modifier): New templated type.
855 (floatformat_to_string): Rename to ...
856 (host_float_ops<T>::to_string): ... this. Use type instead of
857 floatformat argument. Use floatformat_printf_format and
858 printf_length_modifier. Remove special handling of invalid numbers,
859 infinities and NaN (moved to target_float_to_string).
860 (struct scanf_length_modifier): New templated type.
861 (floatformat_from_string): Rename to ...
862 (host_float_ops<T>::from_string): ... this. Use type instead of
863 floatformat argument. Use scanf_length_modifier.
864 (floatformat_to_longest): Rename to ...
865 (host_float_ops<T>::to_longest): ... this. Use type instead of
866 floatformat argument. Handle out-of-range values deterministically.
867 (floatformat_from_longest): Rename to ...
868 (host_float_ops<T>::from_longest): ... this. Use type instead of
869 floatformat argument.
870 (floatformat_from_ulongest): Rename to ...
871 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
872 floatformat argument.
873 (floatformat_to_host_double): Rename to ...
874 (host_float_ops<T>::to_host_double): ... this. Use type instead of
875 floatformat argument.
876 (floatformat_from_host_double): Rename to ...
877 (host_float_ops<T>::from_host_double): ... this. Use type instead of
878 floatformat argument.
879 (floatformat_convert): Rename to ...
880 (host_float_ops<T>::convert): ... this. Use type instead of
881 floatformat arguments. Remove handling of no-op conversions.
882 (floatformat_binop): Rename to ...
883 (host_float_ops<T>::binop): ... this. Use type instead of
884 floatformat arguments.
885 (floatformat_compare): Rename to ...
886 (host_float_ops<T>::compare): ... this. Use type instead of
887 floatformat arguments.
888
889 (match_endianness): Use type instead of length/byte_order arguments.
890 (set_decnumber_context): Likewise.
891 (decimal_from_number): Likewise. Update calls.
892 (decimal_to_number): Likewise.
893 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
894 (decimal_float_ops::to_host_double): New dummy function.
895 (decimal_float_ops::from_host_double): Likewise.
896 (decimal_to_string): Rename to ...
897 (decimal_float_ops::to_string): ... this. Use type instead of
898 length/byte_order arguments. Update calls.
899 (decimal_from_string): Rename to ...
900 (decimal_float_ops::from_string): ... this. Use type instead of
901 length/byte_order arguments. Update calls.
902 (decimal_from_longest): Rename to ...
903 (decimal_float_ops::from_longest): ... this. Use type instead of
904 length/byte_order arguments. Update calls.
905 (decimal_from_ulongest): Rename to ...
906 (decimal_float_ops::from_ulongest): ... this. Use type instead of
907 length/byte_order arguments. Update calls.
908 (decimal_to_longest): Rename to ...
909 (decimal_float_ops::to_longest): ... this. Use type instead of
910 length/byte_order arguments. Update calls.
911 (decimal_binop): Rename to ...
912 (decimal_float_ops::binop): ... this. Use type instead of
913 length/byte_order arguments. Update calls.
914 (decimal_compare): Rename to ...
915 (decimal_float_ops::compare): ... this. Use type instead of
916 length/byte_order arguments. Update calls.
917 (decimal_convert): Rename to ...
918 (decimal_float_ops::convert): ... this. Use type instead of
919 length/byte_order arguments. Update calls.
920
921 (target_float_same_category_p): New function.
922 (target_float_same_format_p): Likewise.
923 (target_float_format_length): Likewise.
924 (enum target_float_ops_kind): New type.
925 (get_target_float_ops_kind): New function.
926 (get_target_float_ops): Three new overloaded functions.
927
928 (target_float_is_zero): Update call.
929 (target_float_to_string): Add special handling of invalid numbers,
930 infinities and NaN (moved from floatformat_to_string). Use
931 target_float_ops callback.
932 (target_float_from_string): Use target_float_ops callback.
933 (target_float_to_longest): Likewise.
934 (target_float_from_longest): Likewise.
935 (target_float_from_ulongest): Likewise.
936 (target_float_to_host_double): Likewise.
937 (target_float_from_host_double): Likewise.
938 (target_float_convert): Add special case for no-op conversions.
939 Use target_float_ops callback.
940 (target_float_binop): Use target_float_ops callback.
941 (target_float_compare): Likewise.
942
a9f26f60
YQ
9432017-11-22 Yao Qi <yao.qi@linaro.org>
944
945 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
946
29f9a567
YQ
9472017-11-22 Yao Qi <yao.qi@linaro.org>
948
949 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
950 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
951
3b1b69bf
JG
9522017-11-21 Jerome Guitton <guitton@adacore.com>
953
954 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
955 with event ptid from the lower layer before doing the
956 ravenscar-specific update.
957
54aa6c67
JB
9582017-11-21 Joel Brobecker <brobecker@adacore.com>
959
960 * ravenscar-thread.c (is_ravenscar_task): Also verify that
961 the ptid's TID is nonzero.
962
cf3fbed4
JB
9632017-11-21 Joel Brobecker <brobecker@adacore.com>
964
965 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
966 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
967 Make non-static. Change return type to char *. Adjust code
968 accordingly. Rewrite the function's documentation.
969 (read_atcb): Adjust call to get_tcb_types_info accordingly.
970 * ravenscar-thread.c (ravenscar_inferior_created): Check that
971 we have enough debugging information in the runtime to support
972 Ada task debugging before we enable the ravenscar-thread layer.
973
9edcc12f
JB
9742017-11-21 Joel Brobecker <brobecker@adacore.com>
975
976 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
977 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
978 * ravenscar-thread.c: Add into comment.
979 (base_magic_null_ptid): Delete.
980 (base_ptid): Change documentation.
981 (ravenscar_active_task): Renames ravenscar_running_thread.
982 All callers updated throughout.
983 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
984 (ravenscar_task_is_currently_active): Likewise.
985 (get_base_thread_from_ravenscar_task): Ditto.
986 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
987 (ravenscar_runtime_initialized): Likewise.
988 (get_running_thread_id): Add new parameter "cpu". Adjust
989 implementation to handle this new parameter.
990 (ravenscar_fetch_registers): Small adjustment to use
991 is_ravenscar_task and ravenscar_task_is_currently_active in
992 order to decide whether to use the target beneath or this
993 module's arch_ops.
994 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
995 (ravenscar_stopped_by_sw_breakpoint): Use
996 get_base_thread_from_ravenscar_task to get the underlying
997 thread, rather than using base_ptid.
998 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
999 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1000 Likewise.
1001 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
1002
65d40437
JB
10032017-11-21 Joel Brobecker <brobecker@adacore.com>
1004
1005 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
1006 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
1007 (get_tcb_types_info): Set fieldnos.base_cpu.
1008 (read_atcb): Set task_info->base_cpu.
1009 (info_task): Print "Base CPU" info if set by runtime.
1010
e02544b2
JB
10112017-11-21 Joel Brobecker <brobecker@adacore.com>
1012
1013 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
1014 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1015 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1016 New functions.
1017 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
1018 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
1019 to_stopped_data_address and to_core_of_thread fields of
1020 ravenscar_ops.
1021
ed0f4273
UW
10222017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
1023
1024 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
1025 (struct gdbarch_tdep): New member long_double_abi.
1026 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
1027 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
1028 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
1029 format depending on long_double_abi tdep member.
1030 (ppc_floatformat_for_type): Handle __ibm128 type.
1031
0fc76421
SM
10322017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1033
1034 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
1035
e6b2f5ef
PA
10362017-11-21 Pedro Alves <palves@redhat.com>
1037
1038 * dwarf2read.c (mapped_index::find_name_components_bounds)
1039 <completion mode, upper bound>: Use std::lower_bound instead of
1040 std::upper_bound.
1041 (test_mapped_index_find_name_component_bounds): Remove incorrect
1042 "t1_fund" from expected symbols.
1043
5c58de74
PA
10442017-11-21 Pedro Alves <palves@redhat.com>
1045
1046 * dwarf2read.c (mapped_index::name_components_casing): New field.
1047 (mapped_index) <build_name_components,
1048 find_name_components_bounds): Declare new methods.
1049 (mapped_index::find_name_components_bounds)
1050 (mapped_index::build_name_components): New methods, factored out
1051 from dw2_expand_symtabs_matching_symbol.
1052 (check_find_bounds_finds)
1053 (test_mapped_index_find_name_component_bounds): New.
1054 (run_test): Rename to ...
1055 (test_dw2_expand_symtabs_matching_symbol): ... this.
1056 (run_test): Reimplement.
1057
e1ef7d7a
PA
10582017-11-21 Pedro Alves <palves@redhat.com>
1059
1060 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
1061 (symbol_end): Use cp_ident_is_alnum.
1062 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
1063 * dwarf2read.c (make_sort_after_prefix_name): New function.
1064 (dw2_expand_symtabs_matching_symbol): Use it.
1065 (test_symbols): Add more symbols.
1066 (run_test): Add tests.
1067
cf724bc9
TT
10682017-11-17 Tom Tromey <tom@tromey.com>
1069
1070 * symtab.h (enum symbol_subclass_kind): New.
1071 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
1072 Remove.
1073 <subclass>: New member.
1074 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
1075 * rust-lang.c (rust_get_trait_object_pointer): Update.
1076 * dwarf2read.c (read_func_scope): Update.
1077 (read_variable): Update.
1078
68e745e3
TT
10792017-11-17 Tom Tromey <tom@tromey.com>
1080
1081 * dwarf2read.c (read_func_scope): Update.
1082 * symtab.h (struct template_symbol): Derive from symbol.
1083 <base>: Remove.
1084
71a3c369
TT
10852017-11-17 Tom Tromey <tom@tromey.com>
1086
1087 * symtab.h (struct symbol) <is_rust_vtable>: New member.
1088 (struct rust_vtable_symbol): New.
1089 (find_symbol_at_address): Declare.
1090 * symtab.c (find_symbol_at_address): New function.
1091 * symfile.h (struct quick_symbol_functions)
1092 <find_compunit_symtab_by_address>: New member.
1093 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
1094 function.
1095 (debug_sym_quick_functions): Link to
1096 debug_qf_find_compunit_symtab_by_address.
1097 * rust-lang.c (rust_get_trait_object_pointer): New function.
1098 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
1099 rust_get_trait_object_pointer.
1100 * psymtab.c (psym_relocate): Clear psymbol_map.
1101 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
1102 functions.
1103 (psym_functions): Link to psym_find_compunit_symtab_by_address.
1104 * objfiles.h (struct objfile) <psymbol_map>: New member.
1105 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
1106 (process_die) <DW_TAG_variable>: New case. Call read_variable.
1107 (rust_containing_type, read_variable): New functions.
1108
7468702d
SM
11092017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1110
1111 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
1112
37269bc9
SM
11132017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1114
1115 * common/filestuff.c: Include <algorithm>.
1116 (open_fds): Change type to std::vector<int>.
1117 (do_mark_open_fd): Adjust.
1118 (unmark_fd_no_cloexec): Adjust.
1119 (do_close): Adjust.
1120
5c632425
SM
11212017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 * breakpoint.c (output_thread_groups): Take an std::vector.
1124 (print_one_breakpoint_location): Adjust.
1125
ced9779b
JB
11262017-11-17 Joel Brobecker <brobecker@adacore.com>
1127
1128 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
1129 (ada_evaluate_subexp_for_cast): New function.
1130 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
1131 ada_evaluate_subexp_for_cast.
1132 (ada_evaluate_subexp) <nosideret>: Replace code by call to
1133 eval_skip_value.
1134 * eval.c (evaluate_var_value): Make non-static.
1135 (evaluate_var_msym_value, eval_skip_value): Likewise.
1136 * value.h (evaluate_var_value, evaluate_var_msym_value)
1137 (eval_skip_value): Declare.
1138
b7e22850
JB
11392017-11-16 Joel Brobecker <brobecker@adacore.com>
1140
1141 * ada-lang.c (ada_value_cast): Remove parameter "noside".
1142 Update all callers.
1143
9ccabccd
PA
11442017-11-16 Pedro Alves <palves@redhat.com>
1145
1146 * python/py-unwind.c (pyuw_sniffer): Translate
1147 PyExc_KeyboardInterrupt to a GDB Quit exception.
1148
d930703d
PA
11492017-11-16 Pedro Alves <palves@redhat.com>
1150
1151 * infrun.c (resume_cleanups): Delete.
1152 (resume): No longer install a resume_cleanups cleanup nor call
1153 QUIT.
1154 (proceed): Pass the terminal to the inferior.
1155 (keep_going_pass_signal): No longer install a resume_cleanups
1156 cleanup.
1157
38dc2859
PA
11582017-11-16 Pedro Alves <palves@redhat.com>
1159
1160 * inf-loop.c (inferior_event_handler): Don't swallow the exception
1161 if the prompt is blocked.
1162
688fca4f
PA
11632017-11-16 Pedro Alves <palves@redhat.com>
1164
1165 * breakpoint.c (insert_bp_location): Replace bp_err and
1166 bp_err_message locals by a gdb_exception local.
1167
e2c33ac7
PA
11682017-11-16 Pedro Alves <palves@redhat.com>
1169
1170 * inflow.c (scoped_ignore_sigttou): New class.
1171 (child_terminal_ours_1, new_tty): Use it.
1172
d7236961
UW
11732017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1174
1175 * target-float.c (decimal_from_number): Add byte_order argument and
1176 call match_endianness. Error if unknown floating-point type.
1177 (decimal_to_number): Add byte_order argument and call match_endianness.
1178 (decimal_from_longest): Update call. Do not call match_endianness.
1179 (decimal_from_ulongest): Likewise.
1180 (decimal_binop): Likewise.
1181 (decimal_is_zero): Likewise.
1182 (decimal_compare): Likewise.
1183 (decimal_convert): Likewise.
1184
d8ae99a7
PM
11852017-11-16 Phil Muldoon <pmuldoon@redhat.com>
1186
1187 * python/python.c (gdbpy_rbreak): New function.
1188 * NEWS: Document Python rbreak feature.
1189
c632b645
YQ
11902017-11-16 Yao Qi <yao.qi@linaro.org>
1191
1192 * features/tic6x-c62x.xml: Remove.
1193 * features/tic6x-c64x.xml: Remove.
1194 * features/tic6x-c64xp.xml: Remove.
1195
a014b87a
JB
11962017-11-15 John Baldwin <jhb@FreeBSD.org>
1197
1198 * symtab.h: Include <array>.
1199
94765011
JB
12002017-11-15 John Baldwin <jhb@FreeBSD.org>
1201
1202 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
1203 (bsd_kvm_proc_cmd): Likewise.
1204
625ad440
SM
12052017-11-15 Simon Marchi <simon.marchi@ericsson.com>
1206
1207 * tui/tui-win.c (window_name_completer): Replace VEC with
1208 std::vector.
1209
c0c11fa9
AC
12102017-11-15 Andrew Cagney <cagney@gnu.org>
1211
1212 * MAINTAINERS: Remove no-longer applicable entries.
1213
34a7ebaf
AC
12142017-11-15 Andrew Cagney <cagney@gnu.org>
1215
1216 * MAINTAINERS: Move self to Past Maintainers.
1217
5334ef39
YQ
12182017-11-15 Yao Qi <yao.qi@linaro.org>
1219
1220 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
1221 * features/nios2-linux.c: Remove.
1222 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
1223 initialize_tdesc_nios2_linux.
1224
a714b0d6
YQ
12252017-11-15 Yao Qi <yao.qi@linaro.org>
1226
1227 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
1228 M68HC11_LAST_HARD_REG + 1.
1229
92ffd475
PC
12302017-11-14 Paul Carroll <pcarroll@codesourcery.com>
1231
1232 PR gdb/22388
1233 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
1234 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
1235 Return TARGET_XFER_EOF if size of returned data is 0.
1236
07431908
SM
12372017-11-14 Simon Marchi <simon.marchi@ericsson.com>
1238
1239 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1240 memory-map-selftests.c.
1241 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
1242 * memory-map.c (memory_map_start_memory): Fix computation of hi
1243 address.
1244 * unittests/memory-map-selftests.c: New file.
1245
31432a67
JB
12462017-11-09 Joel Brobecker <brobecker@adacore.com>
1247
1248 * ada-lang.c: Fix some typos in the general command documenting
1249 how Ada expressions are being evaluated and how their result
1250 is printed.
1251
e793c052
TT
12522017-11-09 Tom Tromey <tom@tromey.com>
1253
1254 * psymtab.c (psymbol_hash): Do not hash string contents.
1255 (psymbol_compare): Add comment.
1256
7e8835c5
TT
12572017-11-09 Tom Tromey <tom@tromey.com>
1258
1259 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
1260
286acbb5
JB
12612017-11-08 Joel Brobecker <brobecker@adacore.com>
1262
1263 * ada-exp.y (write_var_from_sym): Remove parameter
1264 "orig_left_context". Update all callers.
1265
b44ec619
SM
12662017-11-08 Simon Marchi <simon.marchi@ericsson.com>
1267
1268 * tracepoint.h (class collection_list) <stringify>: Return
1269 std::vector<std::string>.
1270 (encode_actions_rsp): Change parameters to
1271 std::vector<std::string> *.
1272 * tracepoint.c (collection_list::stringify): Return
1273 std::vector<std::string> and adjust accordingly.
1274 (encode_actions_rsp): Changee parameters to
1275 std::vector<std::string> and adjust accordingly.
1276 * remote.c (free_actions_list),
1277 free_actions_list_cleanup_wrapper): Remove.
1278 (remote_download_tracepoint): Adjust to std::vector.
1279
2f4732b0
TT
12802017-11-08 Tom Tromey <tom@tromey.com>
1281
1282 * dwarf2read.c (symbolp): Remove typedef.
1283 (read_func_scope): Use std::vector.
1284 (process_structure_scope): Use std::vector.
1285
f9d67a22
PA
12862017-11-08 Pedro Alves <palves@redhat.com>
1287
1288 * ada-lang.c (ada_make_symbol_completion_list): Use
1289 completion_skip_symbol.
1290 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
1291 (symbol_is_function_or_method(symbol*)): New.
1292 (add_symtab_completions): Add complete_symbol_mode parameter. Use
1293 completion_skip_symbol.
1294 (default_collect_symbol_completion_matches_break_on): Use
1295 completion_skip_symbol. Pass down mode.
1296 (collect_file_symbol_completion_matches): Pass down mode.
1297 * symtab.h (symbol_is_function_or_method): New declarations.
1298 (completion_skip_symbol): New template function.
1299
56d87ef7
PA
13002017-11-08 Pedro Alves <palves@redhat.com>
1301
1302 * linespec.c (iterate_over_all_matching_symtabs): Add
1303 search_domain parameter. Pass it down to expand_symtabs_matching.
1304 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
1305 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
1306 search_domain.
1307 (add_all_symbol_names_from_pspace): Add search_domain parameter.
1308 Pass it down.
1309 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
1310 symbols.
1311 (add_matching_symbols_to_info): Add search_domain parameter. Pass
1312 it down.
1313
1b026119
PA
13142017-11-08 Pedro Alves <palves@redhat.com>
1315
1316 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
1317 text_len locals and don't pass them down.
1318 * symtab.c (completion_list_add_name): Remove
1319 sym_text/sym_text_len parameters and adjust.
1320 (completion_list_add_symbol, completion_list_add_msymbol)
1321 (completion_list_objc_symbol, completion_list_add_fields)
1322 (add_symtab_completions): Likewise.
1323 (default_collect_symbol_completion_matches_break_on)
1324 (collect_file_symbol_completion_matches): Remove sym_text_len
1325 local and don't pass it down.
1326 * symtab.h (completion_list_add_name): Remove
1327 sym_text/sym_text_len parameters.
1328
c62446b1
PA
13292017-11-08 Pedro Alves <palves@redhat.com>
1330
1331 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1332 unittests/lookup_name_info-selftests.c.
1333 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
1334 * cp-support.c: Include "selftest.h".
1335 (cp_remove_params_1): Rename from cp_remove_params. Add
1336 'require_param' parameter, and handle it.
1337 (cp_remove_params): Reimplement.
1338 (cp_remove_params_if_any): New.
1339 (selftests::quote): New.
1340 (selftests::check_remove_params): New.
1341 (selftests::test_cp_remove_params): New.
1342 (_initialize_cp_support): Install
1343 selftests::test_cp_remove_params.
1344 * cp-support.h (cp_remove_params_if_any): Declare.
1345 * dwarf2read.c :Include "selftest.h".
1346 (dw2_expand_symtabs_matching_symbol): Use
1347 lookup_name_info::make_ignore_params.
1348 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
1349 (selftests::dw2_expand_symtabs_matching::string_or_null)
1350 (selftests::dw2_expand_symtabs_matching::check_match)
1351 (selftests::dw2_expand_symtabs_matching::test_symbols)
1352 (selftests::dw2_expand_symtabs_matching::run_test): New.
1353 (_initialize_dwarf2_read): Register
1354 selftests::dw2_expand_symtabs_matching::run_test.
1355 * psymtab.c (psym_expand_symtabs_matching): Use
1356 lookup_name_info::make_ignore_params.
1357 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
1358 If the lookup name wants to ignore parameters, strip them.
1359 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
1360 code handling '('.
1361 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
1362 (default_collect_symbol_completion_matches_break_on): Don't try to
1363 strip parameters.
1364 * symtab.h (lookup_name_info::lookup_name_info): Add
1365 'ignore_parameters' parameter.
1366 (lookup_name_info::ignore_parameters)
1367 (lookup_name_info::make_ignore_params): New methods.
1368 (lookup_name_info::m_ignore_parameters): New field.
1369 * unittests/lookup_name_info-selftests.c: New file.
1370
61920122
PA
13712017-11-08 Pedro Alves <palves@redhat.com>
1372
1373 * dwarf2read.c (dw2_expand_marked_cus)
1374 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
1375 (dw2_expand_symtabs_matching): Move further below.
1376 (dw2_expand_marked_cus): Reindent.
1377
3f563c84
PA
13782017-11-08 Pedro Alves <palves@redhat.com>
1379
1380 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
1381 (struct name_component): New.
1382 (mapped_index::name_components): New field.
1383 (mapped_index::symbol_name_at): New method.
1384 (dwarf2_read_index): Call mapped_index ctor.
1385 (dw2_map_matching_symbols): Add comment about name_components
1386 table.
1387 (dw2_expand_symtabs_matching): Factor part to...
1388 (dw2_expand_symtabs_matching_symbol): ... this new function.
1389 Build name components table, and lookup symbols in it before
1390 calling the name matcher.
1391 (dw2_expand_marked_cus): New, factored out from
1392 dw2_expand_symtabs_matching.
1393 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
1394
b5ec771e
PA
13952017-11-08 Pedro Alves <palves@redhat.com>
1396
1397 * ada-lang.c (ada_encode): Rename to ..
1398 (ada_encode_1): ... this. Add throw_errors parameter and handle
1399 it.
1400 (ada_encode): Reimplement.
1401 (match_name): Delete, folded into full_name.
1402 (resolve_subexp): No longer pass the encoded name to
1403 ada_lookup_symbol_list.
1404 (should_use_wild_match): Delete.
1405 (name_match_type_from_name): New.
1406 (ada_lookup_simple_minsym): Use lookup_name_info and the
1407 language's symbol_name_matcher_ftype.
1408 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
1409 (ada_add_block_renamings): Adjust to use lookup_name_info.
1410 (ada_lookup_name): New.
1411 (add_nonlocal_symbols, ada_add_all_symbols)
1412 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
1413 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
1414 (ada_name_for_lookup): Delete.
1415 (ada_lookup_encoded_symbol): Construct a verbatim name.
1416 (wild_match): Reverse sense of return type. Use bool.
1417 (full_match): Reverse sense of return type. Inline bits of old
1418 match_name here.
1419 (ada_add_block_symbols): Adjust to use lookup_name_info.
1420 (symbol_completion_match): Delete, folded into...
1421 (ada_lookup_name_info::matches): ... .this new method.
1422 (symbol_completion_add): Delete.
1423 (ada_collect_symbol_completion_matches): Add name_match_type
1424 parameter. Adjust to use lookup_name_info and
1425 completion_list_add_name.
1426 (get_var_value, ada_add_global_exceptions): Adjust to use
1427 lookup_name_info.
1428 (ada_get_symbol_name_cmp): Delete.
1429 (do_wild_match, do_full_match): New functions.
1430 (ada_lookup_name_info::ada_lookup_name_info): New method.
1431 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
1432 functions.
1433 (ada_language_defn): Install ada_get_symbol_name_matcher.
1434 * ada-lex.l (processId): If name starts with '<', copy it
1435 verbatim.
1436 * block.c (block_iter_match_step, block_iter_match_first)
1437 (block_iter_match_next, block_lookup_symbol)
1438 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
1439 lookup_name_info.
1440 * block.h (block_iter_match_first, block_iter_match_next)
1441 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
1442 * c-lang.c (c_language_defn, cplus_language_defn)
1443 (asm_language_defn, minimal_language_defn): Adjust comments to
1444 refer to la_get_symbol_name_matcher.
1445 * completer.c (complete_files_symbols)
1446 (collect_explicit_location_matches, symbol_completer): Pass a
1447 symbol_name_match_type down.
1448 * completer.h (class completion_match, completion_match_result):
1449 New classes.
1450 (completion_tracker::reset_completion_match_result): New method.
1451 (completion_tracker::m_completion_match_result): New field.
1452 * cp-support.c (make_symbol_overload_list_block): Adjust to use
1453 lookup_name_info.
1454 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
1455 functions.
1456 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
1457 * d-lang.c: Adjust comments to refer to
1458 la_get_symbol_name_matcher.
1459 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
1460 Adjust to use lookup_name_info.
1461 (dict_iter_match_first, dict_iter_match_next)
1462 (iter_match_first_hashed, iter_match_next_hashed)
1463 (iter_match_first_linear, iter_match_next_linear): Adjust to work
1464 with a lookup_name_info.
1465 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
1466 Likewise.
1467 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
1468 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
1469 (gdb_index_symbol_name_matcher): New class.
1470 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
1471 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
1472 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
1473 with a symbol_name_match_type.
1474 (f_language_defn): Adjust comments to refer to
1475 la_get_symbol_name_matcher.
1476 * go-lang.c (go_language_defn): Adjust comments to refer to
1477 la_get_symbol_name_matcher.
1478 * language.c (default_symbol_name_matcher)
1479 (language_get_symbol_name_matcher): New functions.
1480 (unknown_language_defn, auto_language_defn): Adjust comments to
1481 refer to la_get_symbol_name_matcher.
1482 * language.h (symbol_name_cmp_ftype): Delete.
1483 (language_defn) <la_collect_symbol_completion_matches>: Add match
1484 type parameter.
1485 <la_get_symbol_name_cmp>: Delete field.
1486 <la_get_symbol_name_matcher>: New field.
1487 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
1488 (default_symbol_name_matcher, language_get_symbol_name_matcher):
1489 Declare.
1490 * linespec.c (iterate_over_all_matching_symtabs)
1491 (iterate_over_file_blocks): Adjust to use lookup_name_info.
1492 (find_methods): Add language parameter, and use lookup_name_info
1493 and the language's symbol_name_matcher_ftype.
1494 (linespec_complete_function): Adjust.
1495 (lookup_prefix_sym): Use lookup_name_info.
1496 (add_all_symbol_names_from_pspace): Adjust.
1497 (find_superclass_methods): Add language parameter and pass it
1498 down.
1499 (find_method): Pass symbol language down.
1500 (find_linespec_symbols): Don't demangle or Ada encode here.
1501 (search_minsyms_for_name): Add lookup_name_info parameter.
1502 (add_matching_symbols_to_info): Add name_match_type parameter.
1503 Use lookup_name_info.
1504 * m2-lang.c (m2_language_defn): Adjust comments to refer to
1505 la_get_symbol_name_matcher.
1506 * minsyms.c: Include <algorithm>.
1507 (add_minsym_to_demangled_hash_table): Remove table parameter and
1508 add objfile parameter. Use search_name_hash, and add language to
1509 demangled languages vector.
1510 (struct found_minimal_symbols): New struct.
1511 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
1512 New functions.
1513 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
1514 input names here. Use lookup_name_info instead. Lookup up
1515 demangled names once for each language in the demangled names
1516 vector.
1517 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
1518 demangled names once for each language in the demangled names
1519 vector.
1520 (build_minimal_symbol_hash_tables): Adjust.
1521 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
1522 lookup_name_info.
1523 * objc-lang.c (objc_language_defn): Adjust comment to refer to
1524 la_get_symbol_name_matcher.
1525 * objfiles.h: Include <vector>.
1526 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
1527 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
1528 la_get_symbol_name_matcher.
1529 * p-lang.c (pascal_language_defn): Adjust comment to refer to
1530 la_get_symbol_name_matcher.
1531 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
1532 (match_partial_symbol): Use symbol_name_match_type,
1533 lookup_name_info and psymbol_name_matches.
1534 (lookup_partial_symbol): Use lookup_name_info.
1535 (map_block): Use symbol_name_match_type and lookup_name_info.
1536 (psym_map_matching_symbols): Use symbol_name_match_type.
1537 (psymbol_name_matches): New.
1538 (recursively_search_psymtabs): Use lookup_name_info and
1539 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
1540 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
1541 'kind' parameter to 'domain'.
1542 * rust-lang.c (rust_language_defn): Adjust comment to refer to
1543 la_get_symbol_name_matcher.
1544 * symfile-debug.c (debug_qf_map_matching_symbols)
1545 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
1546 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
1547 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
1548 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
1549 Adjust to use symbol_name_match_type.
1550 <expand_symtabs_matching>: Adjust to use lookup_name_info.
1551 (expand_symtabs_matching): Adjust to use lookup_name_info.
1552 * symmisc.c (maintenance_expand_symtabs): Use
1553 lookup_name_info::match_any ().
1554 * symtab.c (symbol_matches_search_name): New.
1555 (eq_symbol_entry): Adjust to use lookup_name_info and the
1556 language's matcher.
1557 (demangle_for_lookup_info::demangle_for_lookup_info): New.
1558 (lookup_name_info::match_any): New.
1559 (iterate_over_symbols, search_symbols): Use lookup_name_info.
1560 (compare_symbol_name): Add language, lookup_name_info and
1561 completion_match_result parameters, and use them.
1562 (completion_list_add_name): Make extern. Add language and
1563 lookup_name_info parameters. Use them.
1564 (completion_list_add_symbol, completion_list_add_msymbol)
1565 (completion_list_objc_symbol): Add lookup_name_info parameters and
1566 adjust. Pass down language.
1567 (completion_list_add_fields): Add lookup_name_info parameters and
1568 adjust. Pass down language.
1569 (add_symtab_completions): Add lookup_name_info parameters and
1570 adjust.
1571 (default_collect_symbol_completion_matches_break_on): Add
1572 name_match_type parameter, and use it. Use lookup_name_info.
1573 (default_collect_symbol_completion_matches)
1574 (collect_symbol_completion_matches): Add name_match_type
1575 parameter, and pass it down.
1576 (collect_symbol_completion_matches_type): Adjust.
1577 (collect_file_symbol_completion_matches): Add name_match_type
1578 parameter, and use lookup_name_info.
1579 * symtab.h: Include <string> and "common/gdb_optional.h".
1580 (enum class symbol_name_match_type): New.
1581 (class ada_lookup_name_info): New.
1582 (struct demangle_for_lookup_info): New.
1583 (class lookup_name_info): New.
1584 (symbol_name_matcher_ftype): New.
1585 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
1586 (symbol_matches_search_name): Declare.
1587 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
1588 (default_collect_symbol_completion_matches)
1589 (collect_symbol_completion_matches)
1590 (collect_file_symbol_completion_matches): Add name_match_type
1591 parameter.
1592 (iterate_over_symbols): Use lookup_name_info.
1593 (completion_list_add_name): Declare.
1594 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
1595 (strncmp_iw_with_mode): Now extern.
1596 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
1597 (strncmp_iw_with_mode): Declare.
1598
5ffa0793
PA
15992017-11-08 Keith Seitz <keiths@redhat.com>
1600 Pedro Alves <palves@redhat.com>
1601
1602 * ada-lang.c (ada_language_defn): Install
1603 default_search_name_hash.
1604 * buildsym.c (struct buildsym_compunit): <language>: New field.
1605 (finish_block_internal): Pass language when creating dictionaries.
1606 (start_buildsym_compunit, start_symtab): New language parameters.
1607 Use them.
1608 (restart_symtab): Pass down compilation unit's language.
1609 * buildsym.h (enum language): Forward declare.
1610 (start_symtab): New 'language' parameter.
1611 * c-lang.c (c_language_defn, cplus_language_defn)
1612 (asm_language_defn, minimal_language_defn): Install
1613 default_search_name_hash.
1614 * coffread.c (coff_start_symtab): Adjust.
1615 * d-lang.c (d_language_defn): Install default_search_name_hash.
1616 * dbxread.c (struct symloc): Add 'pst_language' field.
1617 (PST_LANGUAGE): Define.
1618 (start_psymtab, read_ofile_symtab): Use it.
1619 (process_one_symbol): New 'language' parameter. Pass it down.
1620 * dictionary.c (struct dictionary) <language>: New field.
1621 (DICT_LANGUAGE): Define.
1622 (dict_create_hashed, dict_create_hashed_expandable)
1623 (dict_create_linear, dict_create_linear_expandable): New parameter
1624 'language'. Set the dictionary's language.
1625 (iter_match_first_hashed): Adjust to rename.
1626 (insert_symbol_hashed): Assert we don't see mismatching
1627 languages. Adjust to rename.
1628 (dict_hash): Rename to ...
1629 (default_search_name_hash): ... this and make extern.
1630 * dictionary.h (struct language_defn): Forward declare.
1631 (dict_create_hashed): New parameter 'language'.
1632 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
1633 * f-lang.c (f_language_defn): Install default_search_name_hash.
1634 * go-lang.c (go_language_defn): Install default_search_name_hash.
1635 * jit.c (finalize_symtab): Pass compunit's language to dictionary
1636 creation.
1637 * language.c (unknown_language_defn, auto_language_defn):
1638 * language.h (language_defn::la_search_name_hash): New field.
1639 (default_search_name_hash): Declare.
1640 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
1641 * mdebugread.c (new_block): New parameter 'language'.
1642 * mdebugread.c (parse_symbol): Pass symbol language to block
1643 allocation.
1644 (psymtab_to_symtab_1): Pass down language.
1645 (new_symtab): Pass compunit's language to block allocation.
1646 * objc-lang.c (objc_language_defn): Install
1647 default_search_name_hash.
1648 * opencl-lang.c (opencl_language_defn):
1649 * p-lang.c (pascal_language_defn): Install
1650 default_search_name_hash.
1651 * rust-lang.c (rust_language_defn): Install
1652 default_search_name_hash.
1653 * stabsread.h (enum language): Forward declare.
1654 (process_one_symbol): Add 'language' parameter.
1655 * symtab.c (search_name_hash): New function.
1656 * symtab.h (search_name_hash): Declare.
1657 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
1658
2a1dde5d
PA
16592017-11-08 Pedro Alves <palves@redhat.com>
1660
1661 * cp-name-parser.y (main): Don't initialize extra_chars.
1662
95a6b0a1
TT
16632017-11-07 Tom Tromey <tom@tromey.com>
1664
1665 * event-top.h (command_handler): Constify.
1666 * record-full.c (cmd_record_full_start): Update.
1667 * thread.c (thread_apply_all_command): Update.
1668 * printcmd.c (eval_command): Update.
1669 * mi/mi-main.c (mi_execute_cli_command): Update.
1670 (mi_execute_async_cli_command): Update.
1671 * tui/tui-stack.c (tui_update_command): Update.
1672 * cli/cli-interp.c (safe_execute_command): Constify.
1673 * record.c (record_start): Update.
1674 (record_start, record_stop, cmd_record_start): Update.
1675 * record-btrace.c (cmd_record_btrace_bts_start): Update.
1676 (cmd_record_btrace_pt_start): Update.
1677 (cmd_record_btrace_start): Update.
1678 (cmd_record_btrace_start): Update.
1679 * reverse.c (exec_reverse_once): Update.
1680 * python/python.c (execute_gdb_command): Don't copy the command.
1681 * event-top.c (command_line_handler): Update.
1682 (command_handler): Constify.
1683 * defs.h (deprecated_call_command_hook): Constify.
1684 * cli/cli-script.h (execute_user_command): Constify.
1685 * cli/cli-script.c (execute_user_command): Constify.
1686 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
1687 (enum command_control_type): Update.
1688 * main.c (catch_command_errors): Remove non-const overload.
1689 (catch_command_errors_ftype): Remove.
1690 * python/py-cmd.c (cmdpy_function): Constify.
1691 * guile/scm-cmd.c (cmdscm_function): Constify.
1692 * cli/cli-dump.c (call_dump_func): Constify.
1693 * cli/cli-decode.c (do_const_cfunc): Constify.
1694 (do_sfunc): Constify.
1695 (cmd_func): Constify.
1696 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
1697 * top.h (execute_command): Constify.
1698 * top.c (execute_command): Constify.
1699 (execute_command_to_string): Constify.
1700 (deprecated_call_command_hook): Constify.
1701 * command.h (cmd_func): Constify.
1702 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
1703
eb4c3f4a
TT
17042017-11-07 Tom Tromey <tom@tromey.com>
1705
1706 * ada-lang.c (catch_ada_exception_command): Constify.
1707 (catch_assert_command): Constify.
1708 * break-catch-throw.c (catch_catch_command, catch_throw_command)
1709 (catch_rethrow_command): Constify.
1710 (catch_exception_command_1): Constify.
1711 * breakpoint.h (add_catch_command): Constify.
1712 * break-catch-syscall.c (catch_syscall_command_1): Constify.
1713 (catch_syscall_split_args): Constify.
1714 * break-catch-sig.c (catch_signal_command): Constify.
1715 (catch_signal_split_args): Constify.
1716 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
1717 cmd_const_sfunc_ftype.
1718 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
1719 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1720 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1721 (add_setshow_string_cmd, struct cmd_list_element)
1722 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1723 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1724 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
1725 Constify.
1726 (set_cmd_sfunc): Constify.
1727 (empty_sfunc): Constify.
1728 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1729 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1730 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
1731 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1732 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1733 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1734 Constify.
1735 (set_cmd_sfunc): Constify.
1736 (cmd_sfunc_ftype): Remove.
1737 * compile/compile.c (set_compile_args): Constify.
1738 * infrun.c (set_disable_randomization): Constify.
1739 * infcmd.c (set_args_command, set_cwd_command): Constify.
1740 * breakpoint.c (set_condition_evaluation_mode): Constify.
1741 (add_catch_command): Constify.
1742 (catch_fork_command_1, catch_exec_command_1)
1743 (catch_load_command_1, catch_unload_command_1): Constify.
1744 (catch_load_or_unload): Constify.
1745 * guile/scm-param.c (pascm_set_func): Constify.
1746 (add_setshow_generic): Constify.
1747 * python/py-param.c (get_set_value): Constify.
1748 * top.h (set_verbose): Constify.
1749 * tui/tui-win.c (tui_set_var_cmd): Constify.
1750 * mi/mi-main.c (set_mi_async_command): Constify.
1751 * cli/cli-logging.c (set_logging_overwrite)
1752 (set_logging_redirect): Constify.
1753 * value.c (set_max_value_size): Constify.
1754 * valprint.c (set_input_radix, set_output_radix): Constify.
1755 * utils.c (set_width_command, set_height_command): Constify.
1756 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
1757 * tracepoint.c (set_disconnected_tracing)
1758 (set_circular_trace_buffer, set_trace_buffer_size)
1759 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
1760 * top.c (set_history_size_command, set_verbose, set_editing)
1761 (set_gdb_datadir, set_history_filename): Constify.
1762 * target.c (set_targetdebug, maint_set_target_async_command)
1763 (maint_set_target_non_stop_command, set_target_permissions)
1764 (set_write_memory_permission): Constify.
1765 (open_target): Constify.
1766 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
1767 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
1768 * symtab.c (set_symbol_cache_size_handler): Constify.
1769 * symfile.c (set_ext_lang_command): Constify.
1770 * symfile-debug.c (set_debug_symfile): Constify.
1771 * source.c (set_directories_command): Constify.
1772 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
1773 * serial.c (set_parity): Constify.
1774 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
1775 * remote.c (set_remote_exec_file, set_remotebreak)
1776 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
1777 * record.c (set_record_insn_history_size)
1778 (set_record_call_history_size): Constify.
1779 * record-full.c (set_record_full_insn_max_num): Constify.
1780 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
1781 * osabi.c (set_osabi): Constify.
1782 * mips-tdep.c (set_mips64_transfers_32bit_regs)
1783 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
1784 * maint.c (maintenance_set_profile_cmd): Constify.
1785 * linux-thread-db.c (set_libthread_db_search_path): Constify.
1786 * language.c (set_language_command, set_range_command)
1787 (set_case_command): Constify.
1788 * infrun.c (set_non_stop, set_observer_mode)
1789 (set_stop_on_solib_events, set_schedlock_func)
1790 (set_exec_direction_func): Constify.
1791 * infcmd.c (set_inferior_tty_command): Constify.
1792 * disasm.c (set_disassembler_options_sfunc): Constify.
1793 * demangle.c (set_demangling_command): Constify.
1794 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
1795 * cris-tdep.c (set_cris_version, set_cris_mode)
1796 (set_cris_dwarf2_cfi): Constify.
1797 * corefile.c (set_gnutarget_command): Constify.
1798 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
1799 (set_target_wide_charset_sfunc): Constify.
1800 * breakpoint.c (update_dprintf_commands): Constify.
1801 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
1802 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
1803 (set_disassembly_style_sfunc): Constify.
1804 * arch-utils.c (set_endian, set_architecture): Constify.
1805 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
1806 * agent.c (set_can_use_agent): Constify.
1807
5fed81ff
TT
18082017-11-07 Tom Tromey <tom@tromey.com>
1809
1810 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
1811 (go32_pde, go32_pte, go32_pte_for_address): Constify.
1812 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
1813 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
1814 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
1815 (parse_int_arg, show_thread_default_detach_sc_cmd)
1816 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
1817 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
1818 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
1819 (show_task_pause_cmd, set_task_detach_sc_cmd)
1820 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
1821 (set_noninvasive_cmd, set_thread_pause_cmd)
1822 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
1823 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
1824 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
1825 * windows-nat.c (display_selectors): Constify.
1826 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
1827 non-const "cfunc".
1828 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
1829 (cmd_cfunc_eq): Likewise.
1830 (struct cmd_list_element): Likewise.
1831 (do_cfunc): Remove.
1832 (cli_user_command_p): Update.
1833 * command.h (add_cmd): Remove non-const overload.
1834 (cmd_cfunc_ftype): Remove typedef.
1835 (cmd_cfunc_eq): Remove non-const overload.
1836 * value.c (show_values): Constify.
1837 * thread.c (thread_apply_all_command): Constify.
1838 * symfile.c (load_command): Constify.
1839 * source.c (directory_command): Constify.
1840 * maint.c (maintenance_internal_error)
1841 (maintenance_demangler_warning, maintenance_space_display)
1842 (maintenance_print_architecture, maintenance_translate_address)
1843 (maintenance_info_selftests, maintenance_internal_warning):
1844 Constify.
1845 * breakpoint.c (disable_trace_command, enable_trace_command):
1846 Constify.
1847 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
1848 Constify.
1849 (add_auto_load_safe_path): Constify.
1850 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
1851 * top.h (show_commands): Constify.
1852 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
1853 * sparc64-tdep.c (adi_examine_command): Constify.
1854 (adi_assign_command): Constify.
1855
1d12d88f
TT
18562017-11-07 Tom Tromey <tom@tromey.com>
1857
1858 * frame.h (info_locals_command, info_args_command): Constify.
1859 * auto-load.h (auto_load_info_scripts): Constify.
1860 * inferior.h (registers_info): Constify.
1861 * copying.c: Rebuild.
1862 * copying.awk: Constify generated commands.
1863 * auto-load.c (auto_load_info_scripts)
1864 (info_auto_load_gdb_scripts): Constify.
1865 * cli/cli-decode.c (struct cmd_list_element): Take a
1866 cmd_const_cfunc_ftype.
1867 * command.h (add_info): Take a cmd_const_cfunc_ftype.
1868 * tui/tui-win.c (tui_all_windows_info): Constify.
1869 * python/py-auto-load.c (info_auto_load_python_scripts):
1870 Constify.
1871 * cli/cli-cmds.c (show_command): Remove non-const overload.
1872 * tracepoint.c (info_tvariables_command, info_scope_command):
1873 Constify.
1874 (info_static_tracepoint_markers_command): Constify.
1875 * thread.c (info_threads_command): Constify.
1876 (print_thread_info_1): Constify.
1877 * target.c (info_target_command): Constify.
1878 * symtab.c (info_sources_command, info_functions_command)
1879 (info_types_command): Constify.
1880 (info_variables_command): Remove non-const overload.
1881 * symfile.c (info_ext_lang_command): Constify.
1882 * stack.c (info_frame_command, info_locals_command)
1883 (info_args_command): Constify.
1884 (backtrace_command): Remove non-const overload.
1885 * source.c (info_source_command, info_line_command): Constify.
1886 * solib.c (info_sharedlibrary_command): Constify.
1887 * skip.c (info_skip_command): Constify.
1888 * ser-go32.c (info_serial_command): Constify.
1889 * reverse.c (info_bookmarks_command): Constify.
1890 * printcmd.c (info_symbol_command, info_address_command)
1891 (info_display_command): Constify.
1892 * osdata.c (info_osdata_command): Constify.
1893 * objc-lang.c (info_selectors_command, info_classes_command):
1894 Constify.
1895 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
1896 * memattr.c (info_mem_command): Constify.
1897 * macrocmd.c (info_macro_command, info_macros_command): Constify.
1898 * linux-fork.c (info_checkpoints_command): Constify.
1899 * infrun.c (info_signals_command): Constify.
1900 * inflow.c (info_terminal_command): Constify.
1901 * inferior.c (info_inferiors_command): Constify.
1902 (print_inferior): Constify.
1903 * infcmd.c (info_program_command, info_all_registers_command)
1904 (info_registers_command, info_vector_command)
1905 (info_float_command): Constify.
1906 (registers_info): Constify.
1907 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
1908 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
1909 Constify.
1910 * f-valprint.c (info_common_command): Constify.
1911 * dcache.c (info_dcache_command): Constify.
1912 (dcache_info_1): Constify.
1913 * darwin-nat-info.c (info_mach_tasks_command)
1914 (info_mach_task_command, info_mach_ports_command)
1915 (info_mach_port_command, info_mach_threads_command)
1916 (info_mach_thread_command, info_mach_regions_command)
1917 (info_mach_regions_recurse_command, info_mach_region_command)
1918 (info_mach_exceptions_command): Constify.
1919 (get_task_from_args): Constify.
1920 * cp-support.c (info_vtbl_command): Constify.
1921 * breakpoint.c (info_watchpoints_command)
1922 (info_tracepoints_command): Constify.
1923 (info_breakpoints_command): Remove non-const overload.
1924 * avr-tdep.c (avr_io_reg_read_command): Constify.
1925 * auxv.c (info_auxv_command): Constify.
1926 * ada-tasks.c (info_tasks_command): Constify.
1927 (info_task): Constify.
1928 * ada-lang.c (info_exceptions_command): Constify.
1929
0b39b52e
TT
19302017-11-07 Tom Tromey <tom@tromey.com>
1931
1932 * solib.h (no_shared_libraries): Constify.
1933 * frame.h (return_command): Constify.
1934 * cli/cli-cmds.h (quit_command): Constify.
1935 * top.h (quit_command, execute_command): Constify.
1936 * target.h (flash_erase_command): Constify.
1937 * inferior.h (set_inferior_args, attach_command): Constify.
1938 * tracepoint.h (start_tracing, stop_tracing): Constify.
1939 * breakpoint.h (break_command, tbreak_command)
1940 (hbreak_command_wrapper, thbreak_command_wrapper)
1941 (rbreak_command_wrapper, watch_command_wrapper)
1942 (awatch_command_wrapper, rwatch_command_wrapper)
1943 (get_tracepoint_by_number): Constify.
1944 * symtab.c (info_variables_command, rbreak_command)
1945 (symtab_symbol_info): Constify.
1946 (info_variables_command): Add non-const overload.
1947 * top.c (dont_repeat_command): Constify.
1948 * breakpoint.c (ignore_command, commands_command)
1949 (condition_command, tbreak_command, hbreak_command)
1950 (thbreak_command, clear_command, break_command)
1951 (info_breakpoints_command, watch_command, rwatch_command)
1952 (awatch_command, trace_command, ftrace_command, strace_command)
1953 (trace_pass_command, break_range_command, dprintf_command)
1954 (agent_printf_command, get_tracepoint_by_number)
1955 (watch_maybe_just_location, trace_pass_command): Constify.
1956 (info_breakpoints_command): Add non-const overload.
1957 * tracefile.c (tsave_command): Constify.
1958 * infcmd.c (attach_command, disconnect_command, signal_command)
1959 (queue_signal_command, stepi_command, nexti_command)
1960 (finish_command, next_command, step_command, until_command)
1961 (advance_command, jump_command, continue_command, run_command)
1962 (start_command, starti_command, interrupt_command)
1963 (run_command_1, set_inferior_args, step_1): Constify.
1964 * inferior.c (add_inferior_command, remove_inferior_command)
1965 (clone_inferior_command): Constify.
1966 * linux-fork.c (checkpoint_command, restart_command): Constify.
1967 * windows-nat.c (signal_event_command): Constify.
1968 * guile/guile.c (guile_repl_command, guile_command): Constify.
1969 * printcmd.c (x_command, display_command, printf_command)
1970 (output_command, set_command, call_command, print_command)
1971 (eval_command): Constify.
1972 (non_const_set_command): Remove.
1973 (_initialize_printcmd): Update.
1974 * source.c (forward_search_command, reverse_search_command):
1975 Constify.
1976 * jit.c (jit_reader_load_command, jit_reader_unload_command):
1977 Constify.
1978 * infrun.c (handle_command): Constify.
1979 * memattr.c (mem_command): Constify.
1980 * stack.c (return_command, up_command, up_silently_command)
1981 (down_command, down_silently_command, frame_command)
1982 (backtrace_command, func_command, backtrace_command_1): Constify.
1983 (backtrace_command): Add non-const overload.
1984 * remote-sim.c (simulator_command): Constify.
1985 * exec.c (set_section_command): Constify.
1986 * tracepoint.c (tdump_command, trace_variable_command)
1987 (tstatus_command, tstop_command, tstart_command)
1988 (end_actions_pseudocommand, while_stepping_pseudocommand)
1989 (collect_pseudocommand, teval_pseudocommand, actions_command)
1990 (start_tracing, stop_tracing): Constify.
1991 * value.c (init_if_undefined_command): Constify.
1992 * tui/tui-stack.c (tui_update_command): Constify.
1993 * tui/tui-win.c (tui_refresh_all_command)
1994 (tui_set_tab_width_command, tui_set_win_height_command)
1995 (tui_set_focus_command, tui_scroll_forward_command)
1996 (tui_scroll_backward_command, tui_scroll_left_command)
1997 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
1998 (tui_set_win_height): Constify.
1999 * tui/tui-layout.c (tui_layout_command): Constify.
2000 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
2001 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
2002 (proc_untrace_sysexit_cmd): Constify.
2003 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
2004 (threadset_test_cmd, threadlist_update_test_cmd)
2005 (threadalive_test): Constify.
2006 * objc-lang.c (print_object_command): Constify.
2007 * command.h (add_com): Constify.
2008 * cli/cli-dump.c (restore_command): Constify.
2009 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
2010 (help_command, complete_command, shell_command, edit_command)
2011 (list_command, disassemble_command, make_command)
2012 (apropos_command, alias_command): Constify.
2013 * cli/cli-script.c (document_command, define_command)
2014 (while_command, if_command, validate_comname): Constify.
2015 * cli/cli-decode.c (struct cmd_list_element): Change type of
2016 "fun".
2017 * target.c (do_monitor_command, flash_erase_command): Constify.
2018 * regcache.c (reg_flush_command): Constify.
2019 * reverse.c (reverse_step, reverse_next, reverse_stepi)
2020 (reverse_nexti, reverse_continue, reverse_finish)
2021 (save_bookmark_command, goto_bookmark_command)
2022 (exec_reverse_once): Constify.
2023 * python/python.c (python_interactive_command, python_command):
2024 Constify.
2025 * typeprint.c (ptype_command, whatis_command, whatis_exp):
2026 Constify.
2027 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
2028 * gcore.c (gcore_command): Constify.
2029
85c4be7c
TT
20302017-11-07 Tom Tromey <tom@tromey.com>
2031
2032 * printcmd.c (x_command): Call set_repeat_arguments.
2033 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
2034 * top.c (repeat_arguments): New global.
2035 (set_repeat_arguments): New function.
2036 (execute_command): Handle repeat_arguments.
2037 (show_commands): Calls set_repeat_arguments.
2038 * command.h (set_repeat_arguments): Declare.
2039
022643b4
TT
20402017-11-07 Tom Tromey <tom@tromey.com>
2041
2042 * stack.c (backtrace_command): Use std::string.
2043 (backtrace_command_1): Make "count_exp" const.
2044
5614fb77
TT
20452017-11-07 Tom Tromey <tom@tromey.com>
2046
2047 * source.c (directory_switch, mod_path, add_path): Constify.
2048 * defs.h (add_path, mod_path, directory_switch): Constify.
2049 * mi/mi-cmd-env.c (env_mod_path): Constify.
2050
6be9a197
TT
20512017-11-07 Tom Tromey <tom@tromey.com>
2052
2053 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
2054 (run_command_1, continue_command, step_1, jump_command)
2055 (signal_command, until_command, advance_command, finish_command)
2056 (attach_command): Update.
2057
c2252c0d
TT
20582017-11-07 Tom Tromey <tom@tromey.com>
2059
2060 * command.h (set_cmd_cfunc): Don't declare.
2061 * cli/cli-decode.c (set_cmd_cfunc): Now static.
2062
1ee870c5
TT
20632017-11-07 Tom Tromey <tom@tromey.com>
2064
2065 * stack.c (select_frame_command): Constify.
2066 * cli/cli-decode.c (add_com_suppress_notification): Constify.
2067 * command.h (add_com_suppress_notification): Constify.
2068
ee7ddd71
TT
20692017-11-07 Tom Tromey <tom@tromey.com>
2070
2071 * breakpoint.c (stop_command): Constify.
2072 * cli/cli-decode.c (struct cmd_list_element): Constify.
2073 * command.h (add_abbrev_prefix_cmd): Constify.
2074
95e95a6d
PA
20752017-11-07 Pedro Alves <palves@redhat.com>
2076
2077 * breakpoint.c (extract_bp_kind): New enum.
2078 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
2079 factored out from ...
2080 (extract_bp_number_and_location): ... here.
2081 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
2082
cc638e86
PA
20832017-11-07 Pedro Alves <palves@redhat.com>
2084
2085 * breakpoint.c (extract_bp_number_and_location): Change return
2086 type to void. Throw error instead of warning.
2087 (enable_disable_command): Adjust.
2088
d0fe4701
XR
20892017-11-07 Xavier Roirand <roirand@adacore.com>
2090 Pedro Alves <palves@redhat.com>
2091
2092 * breakpoint.c (map_breakpoint_number_range): New, factored out
2093 from ...
2094 (map_breakpoint_numbers): ... here.
2095 (find_location_by_number): Change parameters from string to
2096 breakpoint number and location.
2097 (extract_bp_number_and_location): New function.
2098 (enable_disable_bp_num_loc)
2099 (enable_disable_breakpoint_location_range)
2100 (enable_disable_command): New functions, factored out ...
2101 (enable_command, disable_command): ... these functions, and
2102 adjusted to support ranges.
2103 * NEWS: Document enable/disable breakpoint location range feature.
2104
635dc5b2
LM
21052017-11-06 Luis Machado <luis.machado@linaro.org>
2106
2107 * MAINTAINERS (Write After Approval): Update my e-mail address.
2108
556e5da5
PA
21092017-11-06 Pedro Alves <palves@redhat.com>
2110
2111 * gnu-nat.c (gnu_terminal_init): Delete.
2112 (gnu_target): Don't install gnu_terminal_init.
2113 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
2114 (child_terminal_init): ... this function.
2115
d1928160
PA
21162017-11-06 Pedro Alves <palves@redhat.com>
2117
2118 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
2119 sgtty.h.
2120 * config.in, configure: Regenerate.
2121
6aa899ce
PA
21222017-11-06 Pedro Alves <palves@redhat.com>
2123
2124 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
2125 (async_init_signals): Adjust.
2126 (handle_stop_sig): Rename to ...
2127 (handle_sigtstp): ... this.
2128 (async_stop_sig): Rename to ...
2129 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
2130 SIGTSTP path.
2131 * event-top.h: Move signal.h include to the top. Check SIGTSTP
2132 instead of STOP_SIGNAL thoughout.
2133 (handle_stop_sig): Rename to ...
2134 (handle_sigtstp): ... this.
2135 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
2136
a94799ac
PA
21372017-11-06 Pedro Alves <palves@redhat.com>
2138
2139 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
2140 longer set flags twice in row.
2141
726e1356
PA
21422017-11-06 Pedro Alves <palves@redhat.com>
2143
2144 * Makefile.in (SER_HARDWIRE): Update comment.
2145 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
2146 * common/gdb_termios.h: Delete file.
2147 * common/job-control.c: Include termios.h and unistd.h instead of
2148 gdb_termios.h.
2149 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
2150 check.
2151 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
2152 Remove sgtty code.
2153 * configure.ac: No longer check for termio.h and sgtty.h.
2154 * configure: Regenerate.
2155 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
2156 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
2157 Replace PROCESS_GROUP_TYPE references with pid_t references
2158 throughout.
2159 (gdb_getpgrp): Delete.
2160 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
2161 (child_terminal_inferior): Remove comment. Remove sgtty code.
2162 (child_terminal_ours_1): Use tcgetpgrp directly instead of
2163 gdb_getpgrp. Use serial_set_tty_state instead aof
2164 serial_noflush_set_tty_state. Remove sgtty code.
2165 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
2166 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
2167 (inferior_process_group): Now returns pid_t.
2168 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
2169 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
2170 * ser-event.c (serial_event_ops): Update.
2171 * ser-go32.c (dos_noflush_set_tty_state): Delete.
2172 (dos_ops): Update.
2173 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
2174 * ser-pipe.c (pipe_ops): Update.
2175 * ser-tcp.c (tcp_ops): Update.
2176 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
2177 HAVE_TERMIOS checks.
2178 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
2179 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
2180 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
2181 assume termios.
2182 (hardwire_noflush_set_tty_state): Delete.
2183 (hardwire_print_tty_state, hardwire_drain_output)
2184 (hardwire_flush_output, hardwire_flush_input)
2185 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
2186 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
2187 code, and assume termios.
2188 (hardwire_ops): Update.
2189 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
2190 * serial.c (serial_noflush_set_tty_state): Delete.
2191 * serial.h (serial_noflush_set_tty_state): Delete.
2192 (serial_ops::noflush_set_tty_state): Delete.
2193
1cfb73db
UW
21942017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2195
2196 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
2197 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
2198 (COMMON_OBS): Remove doublest.o and dfp.o.
2199 Do not build target-float.c (instead of doublest.c)
2200 with -Wformat-nonliteral.
2201
2202 * doublest.c: Remove file.
2203 * doublest.h: Remove file.
2204 * dfp.c: Remove file.
2205 * dfp.h: Remove file.
2206
2207 * target-float.c: Do not include "doublest.h" and "dfp.h".
2208 (DOUBLEST): Move here from doublest.h.
2209 (enum float_kind): Likewise.
2210 (FLOATFORMAT_CHAR_BIT): Likewise.
2211 (FLOATFORMAT_LARGEST_BYTES): Likewise.
2212 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
2213 (floatformat_precision): Likewise.
2214 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
2215 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
2216 Likewise.
2217 (host_float_format, host_double_format, host_long_double_format):
2218 Likewise.
2219 (floatformat_to_string, floatformat_from_string): Likewise.
2220 (floatformat_to_doublest): Likewise. Also, inline the original
2221 convert_floatformat_to_doublest.
2222 (floatformat_from_doublest): Likewise. Also, inline the original
2223 convert_floatformat_from_doublest.
2224
2225 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
2226 (MAX_DECIMAL_STRING): Move here from dfp.c.
2227 (match_endianness): Likewise.
2228 (set_decnumber_context, decimal_check_errors): Likewise.
2229 (decimal_from_number, decimal_to_number): Likewise.
2230 (decimal_to_string, decimal_from_string): Likewise. Make static.
2231 (decimal_from_longest, decimal_from_ulongest): Likewise.
2232 (decimal_to_longest): Likewise.
2233 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
2234 (decimal_convert): Likewise.
2235
b07e9c46
UW
22362017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2237
2238 * doublest.c: Do not include "gdbtypes.h".
2239 (extract_typed_floating): Remove.
2240 (store_typed_floating): Remove.
2241 (convert_typed_floating): Remove.
2242 * doublest.h (struct type): Remove.
2243 (DOUBLEST_PRINT_FORMAT): Remove.
2244 (DOUBLEST_SCAN_FORMAT): Remove.
2245 (extract_typed_floating): Remove.
2246 (store_typed_floating): Remove.
2247 (convert_typed_floating): Remove.
2248
2249 * dfp.c (decimal_from_doublest): Remove.
2250 (decimal_to_doublest): Remove.
2251 * dfp.h: Do not include "doublest.h".
2252 (decimal_from_doublest): Remove.
2253 (decimal_to_doublest): Remove.
2254
2255 * value.c: Do not include "doublest.h" and "dfp.h".
2256 (value_as_double): Remove.
2257 (unpack_double): Remove.
2258 (value_from_double): Remove.
2259 (value_from_decfloat): Remove.
2260 * value.h: Do not include "doublest.h".
2261 (value_as_double): Remove.
2262 (unpack_double): Remove.
2263 (value_from_double): Remove.
2264 (value_from_decfloat): Remove.
2265
3b2ca824
UW
22662017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2267
2268 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
2269 (i386_extract_return_value): Use target_float_convert.
2270 (i386_store_return_value): Likewise.
2271 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
2272 (i387_value_to_register): Likewise.
2273 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
2274 (ia64_register_to_value): Use target_float_convert.
2275 (ia64_value_to_register): Likewise.
2276 (ia64_extract_return_value): Likewise.
2277 (ia64_store_return_value): Likewise.
2278 (ia64_push_dummy_call): Likewise.
2279 * m68k-tdep.c: Include "target-float.h".
2280 (m68k_register_to_value): Use target_float_convert.
2281 (m68k_value_to_register): Likewise.
2282 (m68k_svr4_extract_return_value): Likewise.
2283 (m68k_svr4_store_return_value): Likewise.
2284 * ppc-sysv-tdep.c: Include "target-float.h".
2285 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
2286 (do_ppc_sysv_return_value): Likewise.
2287 (ppc64_sysv_abi_push_freg): Likewise.
2288 (ppc64_sysv_abi_return_value_base): Likewise.
2289 * rs6000-aix-tdep.c: Include "target-float.h".
2290 (rs6000_push_dummy_call): Use target_float_convert.
2291 (rs6000_return_value): Likewise.
2292 * rs6000-lynx178-tdep.c: Include "target-float.h".
2293 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
2294 (rs6000_lynx178_return_value): Likewise.
2295 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
2296 (rs6000_register_to_value): Use target_float_convert.
2297 (rs6000_value_to_register): Likewise.
2298 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
2299 (arm_extract_return_value): Use target_float_convert.
2300 (arm_store_return_value): Likewise.
2301 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
2302 (sh_register_convert_to_virtual): Use target_float_convert.
2303 (sh_register_convert_to_raw): Likewise.
2304 * sh64-tdep.c: Include "target-float.h".
2305 (sh64_extract_return_value): Use target_float_convert.
2306 (sh64_register_convert_to_virtual): Likewise.
2307 (sh64_register_convert_to_raw): Likewise. Fix argument types.
2308
14ad9311
UW
23092017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2310
2311 * target-float.c (floatformat_to_host_double): New function.
2312 (floatformat_from_host_double): Likewise.
2313 (target_float_to_host_double): Likewise.
2314 (target_float_from_host_double): Likewise.
2315 * target-float.h (target_float_to_host_double): Add prototype.
2316 (target_float_from_host_double): Likewise.
2317
2318 * guile/scm-value.c: Include "target-float.h".
2319 (gdbscm_value_to_real): Use target_float_to_host_double.
2320 Handle integer source values via value_as_long.
2321 * guile/scm-math.c: Include "target-float.h". Do not include
2322 "doublest.h", "dfp.h", and "expression.h".
2323 (vlscm_convert_typed_number): Use target_float_from_host_double.
2324 (vlscm_convert_number): Likewise.
2325
2326 * python/py-value.c (valpy_float): Use target_float_to_host_double.
2327 (convert_value_from_python): Use target_float_from_host_double.
2328
50eff16b
UW
23292017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2330
2331 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
2332 (cast_from_fixed): Likewise.
2333 (ada_scaling_type): New function.
2334 (ada_delta): Return value instead of DOUBLEST. Perform target
2335 arithmetic instead of host arithmetic.
2336 (scaling_factor): Rename to ...
2337 (ada_scaling_factor) ... this. Make non-static. Return value instead
2338 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
2339 (ada_fixed_to_float): Remove.
2340 (ada_float_to_fixed): Remove.
2341 * ada-lang.h (ada_fixed_to_float): Remove.
2342 (ada_float_to_fixed): Remove.
2343 (ada_delta): Return value instead of DOUBLEST.
2344 (ada_scaling_factor): Add prototype.
2345
2346 * ada-typeprint.c: Include "target-float.h".
2347 (print_fixed_point_type): Perform target arithmetic instead of
2348 host arithmetic.
2349 * ada-valprint.c: Include "target-float.h".
2350 (ada_val_print_num): Perform target arithmetic instead of
2351 host arithmetic for fixed-point types.
2352
66c02b9e
UW
23532017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2354
2355 * target-float.c: Include <math.h>.
2356 (floatformat_binop): New function.
2357 (floatformat_compare): Likewise.
2358 (target_float_binop): Likewise.
2359 (target_float_compare): Likewise.
2360 * target-float.h: Include "expression.h".
2361 (target_float_binop): Add prototype.
2362 (target_float_compare): Likewise.
2363
2364 * valarith.c: Do not include "doublest.h" and "dfp.h".
2365 Include "common/byte-vector.h".
2366 (value_args_as_decimal): Remove, replace by ...
2367 (value_args_as_target_float): ... this function. Handle both
2368 binary and decimal target floating-point formats.
2369 (scalar_binop): Handle both binary and decimal FP using
2370 value_args_as_target_float and target_float_binop.
2371 (value_equal): Handle both binary and decimal FP using
2372 value_args_as_target_float and target_float_compare.
2373 (value_less): Likewise.
2374 (value_pos): Handle all scalar types as simple copy.
2375 (value_neg): Handle all scalar types via BINOP_SUB from 0.
2376 * dfp.c (decimal_binop): Throw error instead of internal_error
2377 when called with an unsupported operation code.
2378
f69fdf9b
UW
23792017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2380
2381 * target-float.c (target_float_to_string): New function.
2382 (target_float_from_string): New function.
2383 * target-float.h (target_float_to_string): Add prototype.
2384 (target_float_from_string): Add prototype.
2385
2386 * valprint.c: Include "target-float.h". Do not include
2387 "doublest.h" and "dfp.h".
2388 (print_floating): Use target_float_to_string.
2389 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
2390 (printf_floating): Use target_float_to_string.
2391 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
2392 (print_i387_value): Use target_float_to_string.
2393 * mips-tdep.c: Include "target-float.h".
2394 (mips_print_fp_register): Use target_float_to_string.
2395 * sh64-tdep.c: Include "target-float.h".
2396 (sh64_do_fp_register): Use target_float_to_string.
2397
2398 * parse.c: Include "target-float.h". Do not include
2399 "doublest.h" and "dfp.h".
2400 (parse_float): Use target_float_from_string.
2401 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
2402 (define_symbol): Use target_float_from_string.
2403 * gdbarch-selftests.c: Include "target-float.h".
2404 (register_to_value_test): Use target_float_from_string.
2405
70100014
UW
24062017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2407
2408 * Makefile.c (SFILES): Add target-float.c.
2409 (HFILES_NO_SRCDIR): Add target-float.h.
2410 (COMMON_OBS): Add target-float.o.
2411 * target-float.h: New file.
2412 * target-float.c: New file.
2413
2414 * doublest.c (floatformat_classify): Fix detection of float_zero.
2415
2416 * gdbtypes.c (is_floating_type): New function.
2417 * gdbtypes.h (is_floating_type): Add prototype.
2418
2419 * value.c: Do not include "floatformat.h".
2420 (unpack_double): Use target_float_is_valid.
2421 (is_floating_value): New function.
2422 * value.h (is_floating_value): Add prototype-
2423
2424 * valarith.c: Include "target-float.h".
2425 (value_logical_not): Use target_float_is_zero.
2426
2427 * python/py-value.c: Include "target-float.h".
2428 (valpy_nonzero): Use target_float_is_zero.
2429
ab4b1c46
TT
24302017-11-04 Tom Tromey <tom@tromey.com>
2431
2432 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
2433
454dafbd
TT
24342017-11-04 Tom Tromey <tom@tromey.com>
2435
2436 * breakpoint.c (set_momentary_breakpoint): Return
2437 breakpoint_up.
2438 (until_break_command): Update.
2439 (new_until_break_fsm): Change argument types to
2440 breakpoint_up.
2441 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2442 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
2443 Remove.
2444 * infcmd.c (finish_forward): Update.
2445 * breakpoint.h (set_momentary_breakpoint)
2446 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2447 (make_cleanup_delete_breakpoint): Remove.
2448 (struct breakpoint_deleter): New.
2449 (breakpoint_up): New typedef.
2450 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
2451 (insert_exception_resume_breakpoint): Update.
2452 (insert_exception_resume_from_probe): Update.
2453 (insert_longjmp_resume_breakpoint): Update.
2454 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
2455 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
2456 * infcall.c (call_function_by_hand_dummy): Update
2457
331b71e5
TT
24582017-11-04 Tom Tromey <tom@tromey.com>
2459
2460 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
2461
9f584b37
TT
24622017-11-04 Tom Tromey <tom@tromey.com>
2463
2464 * linux-tdep.c (linux_core_info_proc_mappings): Use
2465 gdb::def_vector.
2466 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
2467 "size" argument.
2468 (linux_corefile_thread): Update.
2469 (linux_make_corefile_notes): Remove unused variable.
2470
779bc38e
TT
24712017-11-04 Tom Tromey <tom@tromey.com>
2472
2473 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
2474 gdb::byte_vector.
2475
ed2b3126
TT
24762017-11-04 Tom Tromey <tom@tromey.com>
2477
2478 * objfiles.c (do_free_objfile_cleanup): Remove.
2479 * compile/compile-object-load.c (compile_object_load): Update.
2480 * objfiles.h (make_cleanup_free_objfile): Remove.
2481
7f6743fd
TT
24822017-11-04 Tom Tromey <tom@tromey.com>
2483
2484 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
2485 (adi_read_versions): Change "tags" to "gdb_byte *".
2486 (adi_print_versions): Likewise.
2487
c80049d3
TT
24882017-11-04 Tom Tromey <tom@tromey.com>
2489
2490 * breakpoint.c
2491 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
2492 from start_rbreak_breakpoints.
2493 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
2494 * breakpoint.h (class scoped_rbreak_breakpoints): New.
2495 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
2496 * symtab.c (do_end_rbreak_breakpoints): Remove.
2497 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
2498
167b0be1
TT
24992017-11-04 Tom Tromey <tom@tromey.com>
2500
2501 * cp-namespace.c (reset_directive_searched): Remove.
2502 (cp_lookup_symbol_via_imports): Use scoped_restore.
2503 * cp-support.c (reset_directive_searched): Remove.
2504 (make_symbol_overload_list_using): Use scoped_restore.
2505 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
2506 (reset_directive_searched): Remove.
2507
5eae7aea
TT
25082017-11-04 Tom Tromey <tom@tromey.com>
2509
2510 * symfile.c (find_separate_debug_file_by_debuglink): Use
2511 unique_xmalloc_ptr.
2512
c6bcad5f
TT
25132017-11-04 Tom Tromey <tom@tromey.com>
2514
2515 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
2516 type of "info".
2517 (compute_stack_depth): Likewise.
2518 (do_compile_dwarf_expr_to_c): Use std::vector.
2519
20dcd8ca
TT
25202017-11-04 Tom Tromey <tom@tromey.com>
2521
2522 * compile/compile-object-load.c (link_callbacks_einfo): Use
2523 std::string.
2524
33c7c59d
TT
25252017-11-04 Tom Tromey <tom@tromey.com>
2526
2527 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2528 Use scoped_free_pendings.
2529 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
2530 scoped_free_pendings.
2531 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
2532 (xcoff_initial_scan): Likewise.
2533 * buildsym.c (reset_symtab_globals): Update comment.
2534 (scoped_free_pendings): Rename from really_free_pendings.
2535 (prepare_for_building): Update comment.
2536 (buildsym_init): Likewise.
2537 * buildsym.h (class scoped_free_pendings): New class.
2538 (really_free_pendings): Don't declare.
2539
67fa57cf
UW
25402017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
2541
2542 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
2543 output when converting a zero value to a special byteorder format.
2544
f26ae15b
YQ
25452017-11-02 Yao Qi <yao.qi@linaro.org>
2546
2547 * frame.c (do_frame_register_read): Remove aspace.
2548 * jit.c (jit_frame_sniffer): Likwise.
2549 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2550 * regcache.c (regcache::regcache): Pass nullptr.
2551 (regcache_print): Caller updated.
2552 * regcache.h (regcache::regcache): Remove one constructor
2553 parameter aspace.
2554
6c6e9412
YQ
25552017-11-02 Yao Qi <yao.qi@linaro.org>
2556
2557 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
2558
8b86c959
YQ
25592017-11-02 Yao Qi <yao.qi@linaro.org>
2560
2561 * breakpoint.c (insert_single_step_breakpoints): Update.
2562 * frame.c (struct frame_info) <aspace>: Add const.
2563 (frame_save_as_regcache): Add const.
2564 (get_frame_address_space): Return const address_space *.
2565 * frame.h (get_frame_address_space): Update declaration.
2566 * infrun.c (struct step_over_info) <aspace>: Add const.
2567 (set_step_over_info): Make aspace const.
2568 (displaced_step_prepare_throw): Change variable const.
2569 (resume): Likewise.
2570 (proceed): Likewise.
2571 (adjust_pc_after_break): Likewise.
2572 (save_waitstatus): Likewise.
2573 (handle_signal_stop): Likewise.
2574 (keep_going_pass_signal): Likewise.
2575 * jit.c (jit_frame_sniffer): Add const.
2576 * mips-tdep.c (mips_single_step_through_delay): Likewise.
2577 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2578 * record-full.c (record_full_wait_1): Likewise.
2579 * regcache.c (regcache::regcache): Change parameter to const.
2580 * regcache.h (regcache::regcache): Likewise.
2581 (regcache::aspace): Return const address_space *.
2582 (regcache) <m_aspace>: Add const.
2583
a01bda52
YQ
25842017-11-02 Yao Qi <yao.qi@linaro.org>
2585
2586 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
2587 * frame.c (create_sentinel_frame): Likewise.
2588 * infrun.c (displaced_step_prepare_throw): Likewise.
2589 (resume): Likewise.
2590 (thread_still_needs_step_over_bp): Likewise.
2591 (proceed): Likewise.
2592 (do_target_wait): Likewise.
2593 (adjust_pc_after_break): Likewise.
2594 (handle_syscall_event): Likewise.
2595 (save_waitstatus): Likewise.
2596 (handle_inferior_event_1): Likewise.
2597 (handle_signal_stop): Likewise.
2598 (keep_going_pass_signal): Likewise.
2599 * linux-nat.c (status_callback): Likewise.
2600 (save_stop_reason): Likewise.
2601 (resume_stopped_resumed_lwps): Likewise.
2602 * record-full.c (record_full_exec_insn): Likewise.
2603 (record_full_wait_1): Likewise.
2604 * regcache.c (get_regcache_aspace): Remove.
2605 * regcache.h (get_regcache_aspace): Remove.
2606
d999647b
YQ
26072017-11-02 Yao Qi <yao.qi@linaro.org>
2608
2609 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
2610 (init_regcache_descr): Use gdbarch_num_regs.
2611 (regcache::regcache): Likewise.
2612 (regcache::get_register_status): Likewise.
2613 (regcache::assert_raw_regnum): Likewise.
2614 (regcache::cooked_read): Likewise.
2615 (regcache::cooked_read_value): Likewise.
2616 (regcache::cooked_write): Likewise.
2617 (regcache::dump): Likewise.
2618 (regcache::num_raw_registers): New method.
2619 * regcache.h (class regcache) <num_raw_registers>: New.
2620
4e888c28
YQ
26212017-11-02 Yao Qi <yao.qi@linaro.org>
2622
2623 * regcache.c (regcache::assert_regnum): New method.
2624 (regcache::invalidate): Call assert_regnum.
2625 (regcache::raw_update): Likewise.
2626 (regcache::raw_write): Likewise.
2627 (regcache::raw_read_part): Likewise.
2628 (regcache::raw_write_part): Likewise.
2629 (regcache::raw_supply): Likewise.
2630 (regcache::raw_supply_integer): Likewise.
2631 (regcache::raw_supply_zeroed): Likewise.
2632 (regcache::raw_collect): Likewise.
2633 (regcache::raw_collect_integer): Likewise.
2634 * regcache.h (regcache::assert_regnum): Declare.
2635
2e1b49b3
YQ
26362017-11-02 Yao Qi <yao.qi@linaro.org>
2637
2638 * regcache.c (regcache::dump): Remove code.
2639
6c5218df
YQ
26402017-11-02 Yao Qi <yao.qi@linaro.org>
2641
2642 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
2643 Remove.
2644 <sizeof_cooked_register_status>: Remove.
2645 (init_regcache_descr): Update.
2646 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
2647 (regcache::save): Likewise.
2648 (regcache::dump): Likewise.
2649
dcc31d28
JB
26502017-11-01 James Bowman <james.bowman@ftdichip.com>
2651
2652 * ft32-tdep.c (ft32_fetch_instruction): New function.
2653 (ft32_analyze_prologue): Use ft32_fetch_instruction().
2654
3a87ae65
SM
26552017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2656
2657 * cli/cli-script.c (execute_control_command): Rename to ...
2658 (execute_control_command_1): ... this.
2659 (execute_control_command): New function.
2660
09b847f3
SM
26612017-10-31 Simon Marchi <simon.marchi@ericsson.com>
2662
2663 * tracepoint.c (tfind_command): Remove const_cast.
2664
f871c485
MG
26652017-10-30 Mike Gulick <mgulick@mathworks.com>
2666
2667 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
2668
b020ff80
SM
26692017-10-30 Simon Marchi <simon.marchi@ericsson.com>
2670
2671 * common/common-utils.h (in_inclusive_range): New function.
2672 * arm-tdep.c (arm_record_extension_space): Use
2673 in_inclusive_range.
2674 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
2675 * cris-tdep.c (cris_spec_reg_applicable): Use
2676 in_inclusive_range.
2677
1b81856f
PA
26782017-10-30 Pedro Alves <palves@redhat.com>
2679 Simon Marchi <simon.marchi@ericsson.com>
2680
2681 * remote.c (remote_set_syscall_catchpoint): Build a std::string
2682 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
2683
31b833b3
PA
26842017-10-30 Pedro Alves <palves@redhat.com>
2685
2686 * common/common-utils.c (string_appendf, string_vappendf): New
2687 functions.
2688 * common/common-utils.h (string_appendf, string_vappendf): New
2689 declarations.
2690 * unittests/common-utils-selftests.c (string_appendf_func)
2691 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
2692 (string_vappendf_tests): New functions.
2693 (_initialize_common_utils_selftests): Register "string_appendf" and
2694 "string_vappendf tests".
2695
4a250334
PA
26962017-10-30 Pedro Alves <palves@redhat.com>
2697
2698 * unittests/common-utils-selftests.c (format_func): New typedef.
2699 (string_printf_tests, string_vprintf_tests): Tests factored out
2700 and merged to ...
2701 (test_format_func): ... this new function.
2702 (string_printf_tests, string_vprintf_tests): Reimplement on top of
2703 test_format_func.
2704
16c5c17e
SM
27052017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2706
2707 * darwin-nat.c: Remove include of gdb.h.
2708
7ca51576
SM
27092017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2710
2711 * xtensa-xtregs.c: Fix formatting issues.
2712
c1342859
SM
27132017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2714
2715 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
2716
484d8d36
MD
27172017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
2718
2719 PR python/21213
2720 * python/py-infthread.c (thpy_get_inferior): Increment reference
2721 of inferior before returning it.
2722
b5540b5f
SM
27232017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2724
2725 * unittests/common-utils-selftests.c (format): Add
2726 ATTRIBUTE_PRINTF.
2727
5a9dcda1
SM
27282017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2729
2730 * xml-syscall.c (struct syscall_desc): Add constructor.
2731 <name>: Change type to std::string.
2732 (syscall_desc_up): New typedef.
2733 (syscall_desc_p): Remove typeder.
2734 (DEF_VEC_P(syscall_desc_p)): Remove.
2735 (struct syscall_group_desc): Add constructor.
2736 <name>: Change type to std::string.
2737 <syscalls>: Change type to std::vector.
2738 (syscall_group_desc_up): New typedef.
2739 (syscall_group_desc_p): Remove typedef.
2740 (DEF_VEC_P(syscall_group_desc_p)): Remove.
2741 (struct syscalls_info) <syscalls>: Change type to std::vector of
2742 unique_ptr.
2743 <groups>: Likewise.
2744 <my_gdb_datadir>: Change type to std::string.
2745 (syscalls_info_up): New typedef.
2746 (allocate_syscalls_info): Remove.
2747 (syscalls_info_free_syscalls_desc): Remove.
2748 (syscalls_info_free_syscall_group_desc): Remove.
2749 (free_syscalls_info): Remove.
2750 (make_cleanup_free_syscalls_info): Remove.
2751 (syscall_group_create_syscall_group_desc): Adjust.
2752 (syscall_group_add_syscall): Adjust.
2753 (syscall_create_syscall_desc): Adjust.
2754 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
2755 (init_syscalls_info): Adjust.
2756 (syscall_group_get_group_by_name): Adjust.
2757 (xml_get_syscall_number): Adjust.
2758 (xml_get_syscall_name): Adjust.
2759 (xml_list_of_syscalls): Adjust.
2760 (xml_list_syscalls_by_group): Adjust.
2761 (xml_list_of_groups): Adjust.
2762
45461e0d
SM
27632017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2764
2765 * probe.h: Don't include gdb_vecs.h.
2766 (DEF_VEC_P (probe_p)): Remove.
2767 (find_probes_in_objfile): Return an std::vector.
2768 * probe.c (find_probes_in_objfile): Likewise.
2769 * breakpoint.c (breakpoint_objfile_data)
2770 <longjmp_probes>: Change type to std::vector.
2771 <exception_probes>: Likewise.
2772 (free_breakpoint_probes): Don't manually free vectors.
2773 (create_longjmp_master_breakpoint): Adjust.
2774 (create_exception_master_breakpoint): Adjust.
2775 * solib-svr4.c (svr4_create_probe_breakpoints): Change
2776 parameter type, adjust.
2777 (svr4_create_solib_event_breakpoints): Adjust.
2778
43dce439
SM
27792017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2780
2781 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
2782 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
2783 with new.
2784 (free_breakpoint_probes): Rename to ...
2785 (free_breakpoint_objfile_data): ... this, and call delete on
2786 bp_objfile_data..
2787
6a1b9516
SM
27882017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2789
2790 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
2791 (loaded_script_ptr): Remove typedef.
2792 (DEF_VEC_P (loaded_script_ptr)): Remove.
2793 (struct collect_matching_scripts_data): Add constructor.
2794 <scripts_p>: Change type to (pointer to) std::vector.
2795 (collect_matching_scripts_data): Adjust.
2796 (sort_scripts_by_name): Make suitable for std::sort.
2797 (print_scripts): Don't sort vector, adjust to std::vector.
2798 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
2799
593e3209
SM
28002017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2801
2802 * symfile.c (filename_language): Make struct, not typedef. Add
2803 constructor.
2804 <ext>: Change type to std::string.
2805 (DEF_VEC_O (filename_language)): Remove.
2806 (filename_language_table): Change type to std::vector.
2807 (add_filename_language): Adjust.
2808 (set_ext_lang_command): Adjust.
2809 (info_ext_lang_command): Adjust.
2810 (deduce_language_from_filename): Adjust.
2811 (class scoped_restore_filename_language_table): Remove.
2812 (test_filename_language): Use scoped_restore.
2813 (test_set_ext_lang_command): Use scoped_restore, adjust to
2814 std::vector change.
2815
32fa66eb
SM
28162017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2817
2818 * symfile.c: Include selftest.h.
2819 (class scoped_restore_filename_language_table): New.
2820 (test_filename_language): New test.
2821 (test_set_ext_lang_command): New test.
2822 (_initialize_symfile): Register tests.
2823
4a27f119
KS
28242017-10-27 Keith Seitz <keiths@redhat.com>
2825
2826 * breakpoint.c (print_breakpoint_location): Use the symbol saved
2827 in the bp_location, falling back to find_pc_sect_function when
2828 needed.
2829 (add_location_to_breakpoint): Save sal->symbol.
2830 * breakpoint.h (struct bp_location) <symbol>: New field.
2831 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
2832 * symtab.h (struct symtab_and_line) <symbol>: New field.
2833
a43f3893
PF
28342017-10-26 Patrick Frants <osscontribute@gmail.com>
2835
7453e6b2 2836 PR gdb/13669
a43f3893
PF
2837 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
2838 to rewind obstack.
2839
23cc4e1b
PA
28402017-10-26 Pedro Alves <palves@redhat.com>
2841
2842 * remote.c (remote_async_terminal_ours_p): Delete.
2843 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
2844 Remove references to 'remote_async_terminal_ours_p'.
2845
6abc18bb
YQ
28462017-10-26 Yao Qi <yao.qi@linaro.org>
2847
2848 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
2849
bd522513
YQ
28502017-10-26 Yao Qi <yao.qi@linaro.org>
2851
2852 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
2853 aspace const.
2854 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
2855 Likewise.
2856 * breakpoint.c (bpstat_check_location): Remove cast.
2857 (breakpoint_hit_catch_fork): Make aspce const.
2858 (breakpoint_hit_catch_solib): Likewise.
2859 (breakpoint_hit_catch_exec): Likewise.
2860 (breakpoint_hit_ranged_breakpoint): Likewise.
2861 (breakpoint_hit_watchpoint): Likewise.
2862 (base_breakpoint_breakpoint_hit): Likewise.
2863 (bkpt_breakpoint_hit): Likewise.
2864 (dprintf_breakpoint_hit): Likewise.
2865 (tracepoint_breakpoint_hit): Likewise.
2866 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
2867
accd0bcd
YQ
28682017-10-26 Yao Qi <yao.qi@linaro.org>
2869
2870 * breakpoint.c (breakpoint_location_address_match): Change
2871 "struct address_space *" to "const address_space".
2872 (breakpoint_location_address_range_overlap): Likewise.
2873 (breakpoint_here_p): Likewise.
2874 (breakpoint_in_range_p): Likewise.
2875 (moribund_breakpoint_here_p): Likewise.
2876 (bp_location_inserted_here_p): Likewise.
2877 (software_breakpoint_inserted_here_p): Likewise.
2878 (hardware_breakpoint_inserted_here_p): Likewise.
2879 (hardware_watchpoint_inserted_in_range): Likewise.
2880 (bpstat_check_location): Likewise.
2881 (bpstat_stop_status): Likewise.
2882 (breakpoint_address_match): Likewise.
2883 (breakpoint_address_match_range): Likewise.
2884 (breakpoint_location_address_match): Likewise.
2885 (breakpoint_location_address_range_overlap): Likewise.
2886 (insert_single_step_breakpoint): Likewise.
2887 (breakpoint_has_location_inserted_here): Likewise.
2888 (single_step_breakpoint_inserted_here_p): Likewise.
2889 (pc_at_non_inline_function): Likewise.
2890 * breakpoint.h (bpstat_stop_status): Update declaration.
2891 (breakpoint_here_p): Likewise.
2892 (breakpoint_in_range_p): Likewise.
2893 (moribund_breakpoint_here_p): Likewise.
2894 (breakpoint_inserted_here_p): Likewise.
2895 (software_breakpoint_inserted_here_p): Likewise.
2896 (hardware_breakpoint_inserted_here_p): Likewise.
2897 (breakpoint_has_location_inserted_here): Likewise.
2898 (single_step_breakpoint_inserted_here_p): Likewise.
2899 (hardware_watchpoint_inserted_in_range): Likewise.
2900 (breakpoint_address_match): Likewise.
2901 (insert_single_step_breakpoint): Likewise.
2902 (pc_at_non_inline_function): Likewise.
2903 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
2904 * record.c (record_check_stopped_by_breakpoint): Likewise.
2905 * record.h (record_check_stopped_by_breakpoint): Likewise.
2906 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
2907
ac7936df
YQ
29082017-10-25 Yao Qi <yao.qi@linaro.org>
2909
2910 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
2911 regcache->arch () instead get_regcache_arch.
2912 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
2913 Likewise.
2914 (aarch64_fbsd_store_inferior_registers): Likewise.
2915 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
2916 (store_gregs_to_thread): Likewise.
2917 (fetch_fpregs_from_thread): Likewise.
2918 (store_fpregs_to_thread): Likewise.
2919 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
2920 (aarch64_store_return_value): Likewise.
2921 (aarch64_software_single_step): Likewise.
2922 * aix-thread.c (aix_thread_wait): Likewise.
2923 (supply_reg32): Likewise.
2924 (supply_sprs64): Likewise.
2925 (supply_sprs32): Likewise.
2926 (fill_gprs64): Likewise.
2927 (fill_gprs32): Likewise.
2928 (fill_sprs64): Likewise.
2929 (fill_sprs32): Likewise.
2930 (store_regs_user_thread): Likewise.
2931 (store_regs_kernel_thread): Likewise.
2932 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2933 (alphabsd_store_inferior_registers): Likewise.
2934 * alpha-tdep.c (alpha_extract_return_value): Likewise.
2935 (alpha_store_return_value): Likewise.
2936 (alpha_deal_with_atomic_sequence): Likewise.
2937 (alpha_next_pc): Likewise.
2938 (alpha_software_single_step): Likewise.
2939 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2940 (amd64bsd_store_inferior_registers): Likewise.
2941 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
2942 Likewise.
2943 (amd64_linux_store_inferior_registers): Likewise.
2944 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2945 (amd64_collect_native_gregset): Likewise.
2946 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
2947 (amd64obsd_collect_uthread): Likewise.
2948 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
2949 (amd64_collect_fpregset): Likewise.
2950 (amd64_supply_fxsave): Likewise.
2951 (amd64_supply_xsave): Likewise.
2952 (amd64_collect_fxsave): Likewise.
2953 (amd64_collect_xsave): Likewise.
2954 * arc-tdep.c (arc_write_pc): Likewise.
2955 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
2956 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
2957 (arm_fbsd_store_inferior_registers): Likewise.
2958 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
2959 (store_vfp_regs): Likewise.
2960 (arm_linux_fetch_inferior_registers): Likewise.
2961 (arm_linux_store_inferior_registers): Likewise.
2962 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2963 (arm_linux_sigreturn_next_pc): Likewise.
2964 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
2965 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
2966 (fetch_register): Likewise.
2967 (store_register): Likewise.
2968 * arm-tdep.c (arm_is_thumb): Likewise.
2969 (displaced_in_arm_mode): Likewise.
2970 (bx_write_pc): Likewise.
2971 (arm_get_next_pcs_addr_bits_remove): Likewise.
2972 (arm_software_single_step): Likewise.
2973 (arm_extract_return_value): Likewise.
2974 (arm_store_return_value): Likewise.
2975 (arm_write_pc): Likewise.
2976 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2977 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2978 (bsd_uthread_store_registers): Likewise.
2979 * core-regset.c (fetch_core_registers): Likewise.
2980 * corelow.c (get_core_registers): Likewise.
2981 * cris-tdep.c (cris_store_return_value): Likewise.
2982 (cris_extract_return_value): Likewise.
2983 (find_step_target): Likewise.
2984 (find_step_target): Likewise.
2985 (cris_software_single_step): Likewise.
2986 * ctf.c (ctf_fetch_registers): Likewise.
2987 * darwin-nat.c (cancel_breakpoint): Likewise.
2988 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
2989 * frv-tdep.c (frv_extract_return_value): Likewise.
2990 * ft32-tdep.c (ft32_store_return_value): Likewise.
2991 (ft32_extract_return_value): Likewise.
2992 * go32-nat.c (fetch_register): Likewise.
2993 (go32_fetch_registers): Likewise.
2994 (go32_store_registers): Likewise.
2995 (store_register): Likewise.
2996 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2997 (h8300_store_return_value): Likewise.
2998 * hppa-linux-nat.c (fetch_register): Likewise.
2999 (store_register): Likewise.
3000 (hppa_linux_fetch_inferior_registers): Likewise.
3001 (hppa_linux_store_inferior_registers): Likewise.
3002 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
3003 (i386_darwin_store_inferior_registers): Likewise.
3004 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
3005 (gnu_store_registers): Likewise.
3006 * i386-linux-nat.c (fetch_register): Likewise.
3007 (store_register): Likewise.
3008 (supply_gregset): Likewise.
3009 (fill_gregset): Likewise.
3010 (i386_linux_fetch_inferior_registers): Likewise.
3011 (i386_linux_store_inferior_registers): Likewise.
3012 (i386_linux_resume): Likewise.
3013 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
3014 Likewise.
3015 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
3016 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
3017 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
3018 (i386obsd_collect_uthread): Likewise.
3019 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3020 (i386_supply_gregset): Likewise.
3021 (i386_collect_gregset): Likewise.
3022 (i386_supply_fpregset): Likewise.
3023 (i386_collect_fpregset): Likewise.
3024 (i386_mpx_bd_base): Likewise.
3025 * i386-v4-nat.c (supply_fpregset): Likewise.
3026 (fill_fpregset): Likewise.
3027 * i387-tdep.c (i387_supply_fsave): Likewise.
3028 (i387_collect_fsave): Likewise.
3029 (i387_supply_fxsave): Likewise.
3030 (i387_collect_fxsave): Likewise.
3031 (i387_supply_xsave): Likewise.
3032 (i387_collect_xsave): Likewise.
3033 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
3034 (ia64_linux_store_registers): Likewise.
3035 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
3036 (ia64_extract_return_value): Likewise.
3037 (ia64_store_return_value): Likewise.
3038 (find_func_descr): Likewise.
3039 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3040 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
3041 (inf_ptrace_store_registers): Likewise.
3042 * infrun.c (use_displaced_stepping): Likewise.
3043 (displaced_step_prepare_throw): Likewise.
3044 (resume): Likewise.
3045 (proceed): Likewise.
3046 (do_target_wait): Likewise.
3047 (adjust_pc_after_break): Likewise.
3048 (handle_inferior_event_1): Likewise.
3049 (handle_signal_stop): Likewise.
3050 (save_infcall_suspend_state): Likewise.
3051 (restore_infcall_suspend_state): Likewise.
3052 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
3053 * jit.c (jit_frame_prev_register): Likewise.
3054 * linux-nat.c (save_stop_reason): Likewise.
3055 (linux_nat_wait_1): Likewise.
3056 (resume_stopped_resumed_lwps): Likewise.
3057 * linux-record.c (record_linux_sockaddr): Likewise.
3058 (record_linux_msghdr): Likewise.
3059 (record_linux_system_call): Likewise.
3060 * linux-tdep.c (linux_collect_thread_registers): Likewise.
3061 * lm32-tdep.c (lm32_extract_return_value): Likewise.
3062 (lm32_store_return_value): Likewise.
3063 * m32c-tdep.c (m32c_read_flg): Likewise.
3064 (m32c_pseudo_register_read): Likewise.
3065 (m32c_pseudo_register_write): Likewise.
3066 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
3067 (m32r_linux_collect_gregset): Likewise.
3068 * m32r-tdep.c (m32r_store_return_value): Likewise.
3069 (m32r_extract_return_value): Likewise.
3070 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3071 (m68kbsd_collect_fpregset): Likewise.
3072 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3073 * m68k-linux-nat.c (fetch_register): Likewise.
3074 (old_fetch_inferior_registers): Likewise.
3075 (old_store_inferior_registers): Likewise.
3076 (store_regs): Likewise.
3077 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
3078 (m68k_svr4_store_return_value): Likewise.
3079 * m88k-tdep.c (m88k_store_arguments): Likewise.
3080 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
3081 (mi_cmd_data_write_register_values): Likewise.
3082 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
3083 (mips_fbsd_store_inferior_registers): Likewise.
3084 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
3085 (mips_fbsd_supply_gregs): Likewise.
3086 (mips_fbsd_collect_fpregs): Likewise.
3087 (mips_fbsd_collect_gregs): Likewise.
3088 (mips_fbsd_supply_fpregset): Likewise.
3089 (mips_fbsd_collect_fpregset): Likewise.
3090 (mips_fbsd_supply_gregset): Likewise.
3091 (mips_fbsd_collect_gregset): Likewise.
3092 * mips-linux-nat.c (supply_gregset): Likewise.
3093 (fill_gregset): Likewise.
3094 (supply_fpregset): Likewise.
3095 (fill_fpregset): Likewise.
3096 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
3097 (mips_fill_gregset): Likewise.
3098 (mips_supply_fpregset): Likewise.
3099 (mips_fill_fpregset): Likewise.
3100 (mips64_supply_gregset): Likewise.
3101 (micromips_linux_sigframe_validate): Likewise.
3102 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3103 (mipsnbsd_fetch_inferior_registers): Likewise.
3104 (mipsnbsd_store_inferior_registers): Likewise.
3105 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
3106 (mipsnbsd_supply_gregset): Likewise.
3107 (mipsnbsd_iterate_over_regset_sections): Likewise.
3108 (mipsnbsd_supply_reg): Likewise.
3109 (mipsnbsd_supply_fpreg): Likewise.
3110 * mips-tdep.c (mips_in_frame_stub): Likewise.
3111 (mips_dummy_id): Likewise.
3112 (is_octeon_bbit_op): Likewise.
3113 (micromips_bc1_pc): Likewise.
3114 (extended_mips16_next_pc): Likewise.
3115 (mips16_next_pc): Likewise.
3116 (deal_with_atomic_sequence): Likewise.
3117 * moxie-tdep.c (moxie_process_readu): Likewise.
3118 * nios2-tdep.c (nios2_get_next_pc): Likewise.
3119 * nto-procfs.c (procfs_store_registers): Likewise.
3120 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
3121 (ppcfbsd_store_inferior_registers): Likewise.
3122 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
3123 (fetch_altivec_register): Likewise.
3124 (get_spe_registers): Likewise.
3125 (fetch_spe_register): Likewise.
3126 (fetch_altivec_registers): Likewise.
3127 (fetch_all_gp_regs): Likewise.
3128 (fetch_all_fp_regs): Likewise.
3129 (store_vsx_register): Likewise.
3130 (store_altivec_register): Likewise.
3131 (set_spe_registers): Likewise.
3132 (store_spe_register): Likewise.
3133 (store_altivec_registers): Likewise.
3134 (store_all_gp_regs): Likewise.
3135 (store_all_fp_regs): Likewise.
3136 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
3137 (ppc_linux_collect_gregset): Likewise.
3138 (ppc_canonicalize_syscall): Likewise.
3139 (ppc_linux_record_signal): Likewise.
3140 (ppu2spu_prev_register): Likewise.
3141 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
3142 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
3143 (ppcobsd_store_registers): Likewise.
3144 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
3145 Likewise.
3146 (ppc_ravenscar_generic_store_registers): Likewise.
3147 * procfs.c (procfs_fetch_registers): Likewise.
3148 (procfs_store_registers): Likewise.
3149 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
3150 (ravenscar_store_registers): Likewise.
3151 (ravenscar_prepare_to_store): Likewise.
3152 * record-btrace.c (record_btrace_fetch_registers): Likewise.
3153 * record-full.c (record_full_wait_1): Likewise.
3154 (record_full_registers_change): Likewise.
3155 (record_full_store_registers): Likewise.
3156 (record_full_core_fetch_registers): Likewise.
3157 (record_full_save): Likewise.
3158 (record_full_goto_insn): Likewise.
3159 * regcache.c (regcache_register_size): Likewise.
3160 (get_regcache_arch): Remove.
3161 (regcache_read_pc): Likewise.
3162 * regcache.h (get_regcache_arch): Remove.
3163 * remote-sim.c (gdbsim_fetch_register): Likewise.
3164 (gdbsim_store_register): Likewise.
3165 * remote.c (fetch_register_using_p): Likewise.
3166 (send_g_packet): Likewise.
3167 (remote_prepare_to_store): Likewise.
3168 (store_registers_using_G): Likewise.
3169 * reverse.c (save_bookmark_command): Likewise.
3170 (goto_bookmark_command): Likewise.
3171 * rs6000-aix-tdep.c (branch_dest): Likewise.
3172 * rs6000-nat.c (rs6000_ptrace64): Likewise.
3173 (fetch_register): Likewise.
3174 * rs6000-tdep.c (ppc_supply_reg): Likewise.
3175 (ppc_collect_reg): Likewise.
3176 (ppc_collect_gregset): Likewise.
3177 (ppc_collect_fpregset): Likewise.
3178 (ppc_collect_vsxregset): Likewise.
3179 (ppc_collect_vrregset): Likewise.
3180 (ppc_displaced_step_hw_singlestep): Likewise.
3181 (rs6000_pseudo_register_read): Likewise.
3182 (rs6000_pseudo_register_write): Likewise.
3183 * s390-linux-nat.c (supply_gregset): Likewise.
3184 (fill_gregset): Likewise.
3185 (s390_linux_fetch_inferior_registers): Likewise.
3186 * s390-linux-tdep.c (s390_write_pc): Likewise.
3187 (s390_software_single_step): Likewise.
3188 (s390_all_but_pc_registers_record): Likewise.
3189 (s390_linux_syscall_record): Likewise.
3190 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
3191 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3192 (shnbsd_store_inferior_registers): Likewise.
3193 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3194 (sh_extract_return_value_fpu): Likewise.
3195 (sh_store_return_value_nofpu): Likewise.
3196 (sh_corefile_supply_regset): Likewise.
3197 (sh_corefile_collect_regset): Likewise.
3198 * sh64-tdep.c (sh64_extract_return_value): Likewise.
3199 (sh64_store_return_value): Likewise.
3200 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
3201 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
3202 (sparc_store_inferior_registers): Likewise.
3203 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
3204 (sparc_ravenscar_prepare_to_store): Likewise.
3205 * sparc-tdep.c (sparc32_store_arguments): Likewise.
3206 (sparc_analyze_control_transfer): Likewise.
3207 (sparc_step_trap): Likewise.
3208 (sparc_software_single_step): Likewise.
3209 (sparc32_gdbarch_init): Likewise.
3210 (sparc_supply_rwindow): Likewise.
3211 (sparc_collect_rwindow): Likewise.
3212 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
3213 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
3214 (sparc64nbsd_collect_gregset): Likewise.
3215 (sparc64nbsd_supply_fpregset): Likewise.
3216 (sparc64nbsd_collect_fpregset): Likewise.
3217 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
3218 (sparc64_supply_gregset): Likewise.
3219 (sparc64_collect_gregset): Likewise.
3220 (sparc64_supply_fpregset): Likewise.
3221 (sparc64_collect_fpregset): Likewise.
3222 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3223 * spu-tdep.c (spu_unwind_sp): Likewise.
3224 (spu2ppu_prev_register): Likewise.
3225 (spu_memory_remove_breakpoint): Likewise.
3226 * stack.c (return_command): Likewise.
3227 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
3228 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3229 * tracefile.c (trace_save_ctf): Likewise.
3230 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
3231 (do_windows_store_inferior_registers): Likewise.
3232 (windows_resume): Likewise.
3233 * xtensa-linux-nat.c (fill_gregset): Likewise.
3234 (supply_gregset_reg): Likewise.
3235 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
3236 (xtensa_register_read_masked): Likewise.
3237 (xtensa_supply_gregset): Likewise.
3238 (xtensa_extract_return_value): Likewise.
3239 (xtensa_store_return_value): Likewise.
3240
edd079d9
UW
32412017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
3242
3243 * doublest.c (floatformat_from_string): New function.
3244 * doublest.h (floatformat_from_string): Add prototype.
3245
3246 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
3247 (OP_FLOAT): ... this.
3248 * expression.h: Do not include "doublest.h".
3249 (union exp_element): Replace doubleconst and decfloatconst by
3250 new element floatconst.
3251 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
3252 (ada_evaluate_subexp): Likewise.
3253 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
3254 OP_DOUBLE and OP_DECFLOAT.
3255 * expprint.c (print_subexp_standard): Likewise.
3256 (dump_subexp_body_standard): Likewise.
3257 * breakpoint.c (watchpoint_exp_is_const): Likewise.
3258
3259 * parse.c: Include "dfp.h".
3260 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3261 (write_exp_elt_floatcst): New function.
3262 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
3263 and OP_DECFLOAT.
3264 (operator_check_standard): Likewise.
3265 (parse_float): Do not accept suffix. Take type as input. Return bool.
3266 Return target format buffer instead of host DOUBLEST.
3267 Use floatformat_from_string and decimal_from_string to parse
3268 either binary or decimal floating-point types.
3269 (parse_c_float): Remove.
3270 * parser-defs.h: Do not include "doublest.h".
3271 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3272 (write_exp_elt_floatcst): Add prototype.
3273 (parse_float): Update prototype.
3274 (parse_c_float): Remove.
3275
3276 * c-exp.y: Do not include "dfp.h".
3277 (typed_val_float): Use byte buffer instead of DOUBLEST.
3278 (typed_val_decfloat): Remove.
3279 (DECFLOAT): Remove.
3280 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3281 (parse_number): Update to new parse_float interface.
3282 Parse suffixes and determine type before calling parse_float.
3283 Handle decimal and binary FP types the same way.
3284
3285 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3286 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
3287 (parse_number): Update to new parse_float interface.
3288 Parse suffixes and determine type before calling parse_float.
3289
3290 * f-exp.y: Replace dval by typed_val_float.
3291 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3292 (parse_number): Use parse_float instead of atof.
3293
3294 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3295 (parse_go_float): Remove.
3296 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3297 (parse_number): Call parse_float instead of parse_go_float.
3298 Parse suffixes and determine type before calling parse_float.
3299
3300 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3301 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3302 (parse_number): Update to new parse_float interface.
3303 Parse suffixes and determine type before calling parse_float.
3304
3305 * m2-exp.y: Replace dval by byte buffer val.
3306 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3307 (parse_number): Call parse_float instead of atof.
3308
3309 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3310 (lex_number): Call parse_float instead of strtod.
3311 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
3312 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
3313 Use write_exp_elt_floatcst.
3314 (unit_testing): Remove static variable.
3315 (rust_type): Do not check unit_testing.
3316 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
3317
3318 * ada-exp.y (type_float, type_double): Remove.
3319 (typed_val_float): Use byte buffer instead of DOUBLEST.
3320 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3321 * ada-lex.l (processReal): Use parse_float instead of sscanf.
3322
cc628f3d
AH
33232017-10-25 Alan Hayward <alan.hayward@arm.com>
3324
3325 * aarch64-tdep.h (enum aarch64_regnum): Remove.
3326 * arch/aarch64.h: New file.
3327
09a7c6aa
UW
33282017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3329
3330 * dfp.h (decimal_from_string): Use const reference for argument.
3331 * dfp.c (decimal_from_string): Likewise.
3332
8ba0dd51
UW
33332017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3334
3335 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
3336 * sh64-tdep.c (sh64_do_fp_register): Likewise.
3337 * mips-tdep.c (mips_print_fp_register): Likewise.
3338
16e812b2
UW
33392017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3340
3341 * common/format.h (enum argclass): Replace decfloat_arg by
3342 dec32float_arg, dec64float_arg, and dec128float_arg.
3343 * common/format.c (parse_format_string): Update to return
3344 new decimal float argument classes.
3345
3346 * printcmd.c (printf_decfloat): Rename to ...
3347 (printf_floating): ... this. Add argclass argument, and use it
3348 instead of parsing the format string again. Add support for
3349 binary floating-point values, using floatformat_to_string.
3350 Convert value to the target format if it doesn't already match.
3351 (ui_printf): Call printf_floating instead of printf_decfloat,
3352 also for double_arg / long_double_arg. Pass argclass.
3353
3354 * dfp.c (decimal_to_string): Add format string argument.
3355 * dfp.h (decimal_to_string): Likewise.
3356
3357 * doublest.c (floatformat_to_string): Add format string argument.
3358 * doublest.h (floatformat_to_string): Likewise.
3359
fdf0cbc2
UW
33602017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3361
3362 * doublest.c (floatformat_precision): New routine.
3363 (floatformat_to_string): Likewise.
3364 * doublest.c (floatformat_to_string): Add prototype.
3365
3366 * printcmd.c (print_scalar_formatted): Only call print_floating
3367 on floating-point types.
3368 * valprint.c: Do not include "floatformat.h".
3369 (generic_val_print_decfloat): Remove.
3370 (generic_val_print): Call generic_val_print_float for both
3371 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
3372 (print_floating): Use floatformat_to_string. Handle decimal float.
3373 (print_decimal_floating): Remove, merge into floatformat_to_string.
3374 * value.h (print_decimal_floating): Remove.
3375
3376 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
3377
5033013f
UW
33782017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3379
3380 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
3381
a664f67e
SM
33822017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3383
3384 * memattr.h: Don't include vec.h.
3385 (struct mem_attrib): Initialize fields.
3386 <unknown>: New static method.
3387 (struct mem_region): Add constructors, operator<, initialize
3388 fields.
3389 * memattr.c: Include algorithm.
3390 (default_mem_attrib, unknown_mem_attrib): Remove.
3391 (user_mem_region_list): New global.
3392 (target_mem_region_list, mem_region_list): Change type to
3393 std::vector<mem_region>.
3394 (mem_use_target): Now a function.
3395 (target_mem_regions_valid): Change type to bool.
3396 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
3397 (require_user_regions): Adjust.
3398 (require_target_regions): Adjust.
3399 (create_mem_region): Adjust.
3400 (lookup_mem_region): Adjust.
3401 (invalidate_target_mem_regions): Adjust.
3402 (mem_clear): Rename to...
3403 (user_mem_clear): ... this, and adjust.
3404 (mem_command): Adjust.
3405 (info_mem_command): Adjust.
3406 (mem_enable, enable_mem_command, mem_disable,
3407 disable_mem_command): Adjust.
3408 (mem_delete): Adjust.
3409 (delete_mem_command): Adjust.
3410 * memory-map.h (parse_memory_map): Return an std::vector.
3411 * memory-map.c (parse_memory_map): Likewise.
3412 (struct memory_map_parsing_data): Add constructor.
3413 <memory_map>: Point to std::vector.
3414 (memory_map_start_memory): Adjust.
3415 (memory_map_end_memory): Adjust.
3416 (memory_map_end_property): Adjust.
3417 (clear_result): Remove.
3418 * remote.c (remote_memory_map): Return an std::vector.
3419 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
3420 Remove.
3421 (target_debug_print_mem_region_vector): New.
3422 * target-delegates.c: Regenerate.
3423 * target.h (mem_region_vector): New typedef.
3424 (to_memory_map): Return mem_region_vector.
3425 (target_memory_map): Return an std::vector.
3426 * target.c (target_memory_map): Return an std::vector.
3427 (flash_erase_command): Adjust.
3428
6e17c565
SM
34292017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3430
3431 * memory-map.c (struct memory_map_parsing_data) <property_name>:
3432 Change type to std::string.
3433 (memory_map_start_property): Adjust.
3434 (memory_map_end_property): Adjust.
3435
cfba9872
SM
34362017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3437
3438 * infrun.h: Include common/byte-vector.h.
3439 (struct displaced_step_closure): New struct.
3440 (struct buf_displaced_step_closure): New struct.
3441 * infrun.c (displaced_step_closure::~displaced_step_closure):
3442 Provide default implementation.
3443 (displaced_step_clear): Deallocate step closure with delete.
3444 * aarch64-tdep.c (displaced_step_closure): Rename to ...
3445 (aarch64_displaced_step_closure): ... this, extend
3446 displaced_step_closure.
3447 (aarch64_displaced_step_data) <dsc>: Change type to
3448 aarch64_displaced_step_closure.
3449 (aarch64_displaced_step_copy_insn): Adjust to type change, use
3450 unique_ptr.
3451 (aarch64_displaced_step_fixup): Add cast for displaced step
3452 closure.
3453 * amd64-tdep.c (displaced_step_closure): Rename to ...
3454 (amd64_displaced_step_closure): ... this, extend
3455 displaced_step_closure.
3456 <insn_buf>: Change type to std::vector<gdb_byte>.
3457 <max_len>: Remove.
3458 (fixup_riprel): Change type of DSC parameter, adjust to type
3459 change of insn_buf.
3460 (fixup_displaced_copy): Change type of DSC parameter.
3461 (amd64_displaced_step_copy_insn): Instantiate
3462 amd64_displaced_step_closure.
3463 (amd64_displaced_step_fixup): Add cast for closure type, adjust
3464 to type change of insn_buf.
3465 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
3466 parameter DSC.
3467 (arm_linux_copy_svc): Likewise.
3468 (cleanup_kernel_helper_return): Likewise.
3469 (arm_catch_kernel_helper_return): Likewise.
3470 (arm_linux_displaced_step_copy_insn): Instantiate
3471 arm_displaced_step_closure.
3472 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
3473 (displaced_read_reg): Change type of parameter DSC.
3474 (branch_write_pc): Likewise.
3475 (load_write_pc): Likewise.
3476 (alu_write_pc): Likewise.
3477 (displaced_write_reg): Likewise.
3478 (arm_copy_unmodified): Likewise.
3479 (thumb_copy_unmodified_32bit): Likewise.
3480 (thumb_copy_unmodified_16bit): Likewise.
3481 (cleanup_preload): Likewise.
3482 (install_preload): Likewise.
3483 (arm_copy_preload): Likewise.
3484 (thumb2_copy_preload): Likewise.
3485 (install_preload_reg): Likewise.
3486 (arm_copy_preload_reg): Likewise.
3487 (cleanup_copro_load_store): Likewise.
3488 (install_copro_load_store): Likewise.
3489 (arm_copy_copro_load_store) Likewise.
3490 (thumb2_copy_copro_load_store): Likewise.
3491 (cleanup_branch): Likewise.
3492 (install_b_bl_blx): Likewise.
3493 (arm_copy_b_bl_blx): Likewise.
3494 (thumb2_copy_b_bl_blx): Likewise.
3495 (thumb_copy_b): Likewise.
3496 (install_bx_blx_reg): Likewise.
3497 (arm_copy_bx_blx_reg): Likewise.
3498 (thumb_copy_bx_blx_reg): Likewise.
3499 (cleanup_alu_imm): Likewise.
3500 (arm_copy_alu_imm): Likewise.
3501 (thumb2_copy_alu_imm): Likewise.
3502 (cleanup_alu_reg): Likewise.
3503 (install_alu_reg): Likewise.
3504 (arm_copy_alu_reg): Likewise.
3505 (thumb_copy_alu_reg): Likewise.
3506 (cleanup_alu_shifted_reg): Likewise.
3507 (install_alu_shifted_reg): Likewise.
3508 (arm_copy_alu_shifted_reg): Likewise.
3509 (cleanup_load): Likewise.
3510 (cleanup_store): Likewise.
3511 (arm_copy_extra_ld_st): Likewise.
3512 (install_load_store): Likewise.
3513 (thumb2_copy_load_literal): Likewise.
3514 (thumb2_copy_load_reg_imm): Likewise.
3515 (arm_copy_ldr_str_ldrb_strb): Likewise.
3516 (cleanup_block_load_all): Likewise.
3517 (cleanup_block_store_pc): Likewise.
3518 (cleanup_block_load_pc): Likewise.
3519 (arm_copy_block_xfer): Likewise.
3520 (thumb2_copy_block_xfer): Likewise.
3521 (cleanup_svc): Likewise.
3522 (install_svc): Likewise.
3523 (arm_copy_svc): Likewise.
3524 (thumb_copy_svc): Likewise.
3525 (arm_copy_undef): Likewise.
3526 (thumb_32bit_copy_undef): Likewise.
3527 (arm_copy_unpred): Likewise.
3528 (arm_decode_misc_memhint_neon): Likewise.
3529 (arm_decode_unconditional): Likewise.
3530 (arm_decode_miscellaneous): Likewise.
3531 (arm_decode_dp_misc): Likewise.
3532 (arm_decode_ld_st_word_ubyte): Likewise.
3533 (arm_decode_media): Likewise.
3534 (arm_decode_b_bl_ldmstm): Likewise.
3535 (arm_decode_ext_reg_ld_st): Likewise.
3536 (thumb2_decode_dp_shift_reg): Likewise.
3537 (thumb2_decode_ext_reg_ld_st): Likewise.
3538 (arm_decode_svc_copro): Likewise.
3539 (thumb2_decode_svc_copro): Likewise.
3540 (install_pc_relative): Likewise.
3541 (thumb_copy_pc_relative_16bit): Likewise.
3542 (thumb_decode_pc_relative_16bit): Likewise.
3543 (thumb_copy_pc_relative_32bit): Likewise.
3544 (thumb_copy_16bit_ldr_literal): Likewise.
3545 (thumb_copy_cbnz_cbz): Likewise.
3546 (thumb2_copy_table_branch): Likewise.
3547 (cleanup_pop_pc_16bit_all): Likewise.
3548 (thumb_copy_pop_pc_16bit): Likewise.
3549 (thumb_process_displaced_16bit_insn): Likewise.
3550 (decode_thumb_32bit_ld_mem_hints): Likewise.
3551 (thumb_process_displaced_32bit_insn): Likewise.
3552 (thumb_process_displaced_insn): Likewise.
3553 (arm_process_displaced_insn): Likewise.
3554 (arm_displaced_init_closure): Likewise.
3555 (arm_displaced_step_fixup): Add cast for closure.
3556 * arm-tdep.h: Include infrun.h.
3557 (displaced_step_closure): Rename to ...
3558 (arm_displaced_step_closure): ... this, extend
3559 displaced_step_closure.
3560 <u::svc::copy_svc_os>: Change type of parameter DSC.
3561 <cleanup>: Likewise.
3562 (arm_process_displaced_insn): Likewise.
3563 (arm_displaced_init_closure): Likewise.
3564 (displaced_read_reg): Likewise.
3565 (displaced_write_reg): Likewise.
3566 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
3567 Adjust.
3568 * i386-tdep.h: Include infrun.h.
3569 (i386_displaced_step_closure): New typedef.
3570 * i386-tdep.c (i386_displaced_step_copy_insn): Use
3571 i386_displaced_step_closure.
3572 (i386_displaced_step_fixup): Adjust.
3573 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
3574 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
3575 and unique_ptr.
3576 (ppc_displaced_step_fixup): Adjust.
3577 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
3578 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
3579 and unique_ptr.
3580 (s390_displaced_step_fixup): Adjust.
3581
b392b304
SM
35822017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3583
3584 * interps.h (interp_resume, interp_suspend, interp_set_temp):
3585 Remove declarations.
3586
d5833c62
TT
35872017-10-20 Tom Tromey <tom@tromey.com>
3588
3589 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
3590 std::vector.
3591 (gdb_bfd_record_inclusion): Update.
3592 (bfdp): Remove typedef.
3593
06d5bbc8
TT
35942017-10-20 Tom Tromey <tom@tromey.com>
3595
3596 * gdb_bfd.c (gdb_bfd_ref): Use new.
3597 (struct gdb_bfd_data): Add constructor, destructor, and member
3598 initializers.
3599 (gdb_bfd_unref): Use delete.
3600
2712ce2e
TT
36012017-10-20 Tom Tromey <tom@tromey.com>
3602
3603 * exec.c (exec_file_attach): Use new_bfd_ref.
3604 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
3605 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
3606 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
3607 new_bfd_ref.
3608 * gdb_bfd.h (new_bfd_ref): New function.
3609
fcc8fb2f
PA
36102017-10-20 Pedro Alves <palves@redhat.com>
3611
3612 * main.c (captured_command_loop): Add attribute noinline.
3613
4c2287b0
SM
36142017-10-19 Simon Marchi <simon.marchi@ericsson.com>
3615
3616 * interps.c (struct interp_factory): Add constructor.
3617 (interp_factory_p): Remove typedef.
3618 (DEF_VEC_P(interp_factory_p)): Remove.
3619 (interpreter_factories): Change type to std::vector.
3620 (interp_factory_register): Adjust.
3621 (interp_lookup): Adjust.
3622 (interpreter_completer): Adjust.
3623
3d415c26
TT
36242017-10-19 Tom Tromey <tom@tromey.com>
3625
3626 * break-catch-syscall.c (catch_syscall_completer): Use
3627 std::string, gdb::unique_xmalloc_ptr.
3628
395423c4
TT
36292017-10-19 Tom Tromey <tom@tromey.com>
3630
3631 * infcall.c (call_function_by_hand_dummy): Use std::string.
3632
54f70bc1
TT
36332017-10-19 Tom Tromey <tom@tromey.com>
3634
3635 * mi/mi-main.c (mi_cmd_execute): Update.
3636 * top.h (prepare_execute_command): Return scoped_value_mark.
3637 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
3638 Add move constructor.
3639 * top.c (prepare_execute_command): Return scoped_value_mark.
3640 (execute_command): Update.
3641
63929e84
PA
36422017-10-19 Pedro Alves <palves@redhat.com>
3643
3644 * xml-support.c (xml_fetch_content_from_file): Check fread's
3645 return.
3646
a75868f5
PA
36472017-10-19 Pedro Alves <palves@redhat.com>
3648
3649 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
3650 async.
3651 (handle_error_fd): New function.
3652 (ser_base_async): Add/delete an event loop file handler for
3653 error_fd.
3654
2edf834e
PA
36552017-10-19 Pedro Alves <palves@redhat.com>
3656
3657 * xml-support.c (xml_fetch_content_from_file): Don't read in
3658 chunks. Instead use fseek to determine the file's size, and read
3659 it in one go.
3660
c8ba13ad
KS
36612017-11-18 Keith Seitz <keiths@redhat.com>
3662
3663 * c-exp.y (oper): Canonicalize conversion operators of user-defined
3664 types.
3665 Add whitespace to front of type name.
3666
37534686
KS
36672017-10-18 Keith Seitz <keiths@redhat.com>
3668
3669 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
3670 DW_AT_accessibility.
3671
28c7c158
YQ
36722017-10-18 Yao Qi <yao.qi@linaro.org>
3673
3674 * features/tic6x-c62x-linux.c: Remove.
3675
30f0b101
TT
36762017-10-17 Tom Tromey <tom@tromey.com>
3677
3678 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
3679 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
3680 (do_mixed_source_and_assembly): Likewise.
3681
57e12da9
TT
36822017-10-17 Tom Tromey <tom@tromey.com>
3683
3684 * regcache.c (regcache::xfer_part): Remove assertion.
3685
7b700999
PA
36862017-10-17 Pedro Alves <palves@redhat.com>
3687
3688 * xml-support.c (xml_fetch_content_from_file): Call
3689 unique_ptr::release() instead unique_ptr::get() when passing
3690 through xrealloc.
3691
d3037ba6
YQ
36922017-10-17 Yao Qi <yao.qi@linaro.org>
3693
3694 * regcache.c (regcache::xfer_part): Remove parameters read and
3695 write, add parameter is_raw. All callers are updated.
3696
83d5a34d
KS
36972017-10-16 Keith Seitz <keiths@redhat.com>
3698
3699 * c-typeprint.c (enum access_specifier): Moved here from
3700 c_type_print_base.
3701 (output_access_specifier): New function.
3702 (c_type_print_base): Consider typedefs when assessing
3703 whether access labels are needed.
3704 Use output_access_specifier as needed.
3705 Output access specifier for typedefs, if needed.
3706 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
3707 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
3708 fields.
3709 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
3710 accessor macros.
3711
87028b87
TT
37122017-10-16 Tom Tromey <tom@tromey.com>
3713
3714 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
3715 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
3716 * target.c (target_fileio_read_stralloc): Update.
3717 * sparc64-tdep.c (adi_is_addr_mapped): Update.
3718 * target.h (target_fileio_read_stralloc): Return
3719 unique_xmalloc_ptr.
3720
b7b030ad
TT
37212017-10-16 Tom Tromey <tom@tromey.com>
3722
3723 * xml-syscall.c (xml_init_syscalls_info): Update.
3724 * xml-support.c (xinclude_start_include): Update.
3725 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
3726 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
3727 (xml_fetch_content_from_file): Likewise.
3728 * osdata.c (get_osdata): Update.
3729 * target.h (target_read_stralloc, target_get_osdata): Return
3730 unique_xmalloc_ptr.
3731 * solib-aix.c (solib_aix_get_library_list): Update.
3732 * solib-target.c (solib_target_current_sos): Update.
3733 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
3734 * xml-tdesc.c (fetch_available_features_from_target): Update.
3735 (target_fetch_description_xml): Update.
3736 (file_read_description_xml): Update.
3737 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
3738 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
3739 (remote_pid_to_exec_file): Update.
3740 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
3741 (target_get_osdata): Likewise.
3742
b80406ac
TT
37432017-10-16 Tom Tromey <tom@tromey.com>
3744
3745 * remote.c (remote_register_number_and_offset): Use std::vector.
3746 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
3747 (putpkt_binary): Use gdb::def_vector.
3748 (compare_sections_command): Use gdb::byte_vector.
3749
a90ecff8
TT
37502017-10-16 Tom Tromey <tom@tromey.com>
3751
3752 * ppc-linux-nat.c (hwdebug_insert_point): Use
3753 gdb::unique_xmalloc_ptr, XDUP.
3754
2dc0e219
TT
37552017-10-16 Tom Tromey <tom@tromey.com>
3756
3757 * probe.c (parse_probes): Use std::string.
3758 (info_probes_for_ops, enable_probes_command)
3759 (disable_probes_command): Remove cleanups.
3760
b05628f0
TT
37612017-10-16 Tom Tromey <tom@tromey.com>
3762
3763 * buildsym.c (block_compar): Remove.
3764 (end_symtab_get_static_block): Use std::vector.
3765
a79b1bc6
SM
37662017-10-16 Simon Marchi <simon.marchi@ericsson.com>
3767
3768 * memrange.h (struct mem_range): Define operator< and operator==.
3769 (mem_range_s): Remove.
3770 (DEF_VEC_O (mem_range_s)): Remove.
3771 (normalize_mem_ranges): Change parameter type to std::vector.
3772 * memrange.c (compare_mem_ranges): Remove.
3773 (normalize_mem_ranges): Change parameter type to std::vector,
3774 adjust to vector change.
3775 * exec.c (section_table_available_memory): Return vector, remove
3776 parameter.
3777 (section_table_read_available_memory): Adjust to std::vector
3778 change.
3779 * remote.c (remote_read_bytes): Adjust to std::vector
3780 change.
3781 * tracepoint.h (traceframe_available_memory): Change parameter
3782 type to std::vector.
3783 * tracepoint.c (traceframe_available_memory): Change parameter
3784 type to std::vector, adjust.
3785 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
3786 std::vector change.
3787 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3788 unittests/memrange-selftests.c.
3789 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
3790 * gdb/unittests/memrange-selftests.c: New file.
3791
63f0e930
PA
37922017-10-16 Pedro Alves <palves@redhat.com>
3793
3794 * elfread.c (probe_key_free): Rename range-for variable.
3795 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
3796 (find_probe_by_pc, collect_probes): Rename range-for variable.
3797
c40c7bfc
YQ
37982017-10-16 Yao Qi <yao.qi@linaro.org>
3799
3800 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
3801 * features/tic6x-c62x.c: Remove.
3802 * features/tic6x-c64x-linux.c: Remove.
3803 * features/tic6x-c64x.c: Remove.
3804 * features/tic6x-c64xp-linux.c: Remove.
3805 * features/tic6x-c64xp.c: Remove.
3806 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
3807 initialize_tdesc_tic6x_*_linux functions.
3808 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
3809 initialize_tdesc_tic6x_* functions.
3810
df27ae6a
YQ
38112017-10-16 Yao Qi <yao.qi@linaro.org>
3812
3813 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
3814 tic6x-c62x.
3815 * regformats/tic6x-c62x.dat: Remove.
3816 * regformats/tic6x-c64x.dat: Remove.
3817 * regformats/tic6x-c64xp.dat: Remove.
3818
86766165
SM
38192017-10-15 Simon Marchi <simon.marchi@ericsson.com>
3820
3821 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
3822 (the !HAVE_LIBEXPAT version).
3823
824dfcc3
SM
38242017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3825
3826 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
3827 const.
3828
2098b393
SM
38292017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3830
3831 * target.h: Include tracepoint.h.
3832 (enum trace_find_type): Move to tracepoint.h.
3833 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
3834 * tracepoint.h: Don't include target.h
3835 (enum trace_find_type): Move from target.h.
3836 (parse_traceframe_info): Return a unique ptr.
3837 * tracepoint.c (current_traceframe_info): Change type to unique
3838 ptr.
3839 (free_traceframe_info): Remove.
3840 (clear_traceframe_info): Don't manually free
3841 current_traceframe_info.
3842 (free_result): Remove.
3843 (parse_traceframe_info): Return a unique ptr.
3844 (get_traceframe_info): Adjust to unique ptr.
3845 * ctf.c (ctf_traceframe_info): Return a unique ptr.
3846 * remote.c (remote_traceframe_info): Return a unique ptr.
3847 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
3848 ptr.
3849 * target-debug.h (target_debug_print_traceframe_info_up): New
3850 macro.
3851 * target-delegates.c: Regenerate.
3852
4cdd21a8
SM
38532017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3854
3855 * memrange.h (struct mem_range): Add constructors.
3856 * tracepoint.h (struct traceframe_info) <memory>: Change type to
3857 std::vector<mem_range>.
3858 * tracepoint.c (free_traceframe_info): Don't manually free
3859 vector.
3860 (traceframe_info_start_memory): Adjust to vector change.
3861 (traceframe_available_memory): Likewise.
3862 * tracefile-tfile.c (build_traceframe_info): Likewise.
3863 * ctf.c (ctf_traceframe_info): Likewise.
3864
d0d292a2
SM
38652017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3866
3867 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
3868 std::vector<int>.
3869 * tracepoint.c (free_traceframe_info): Deallocate with delete.
3870 (traceframe_info_start_tvar): Adjust to vector change.
3871 (parse_traceframe_info): Allocate with new.
3872 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
3873 vector change.
3874 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
3875 change.
3876 tfile_traceframe_info): Allocate with new.
3877 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
3878 change.
3879
8d3c73ef
SM
38802017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3881
3882 * tracepoint.c (traceframe_info): Rename to...
3883 (current_traceframe_info): ...this.
3884 (clear_traceframe_info): Adjust.
3885 (get_traceframe_info): Adjust.
3886
b129dcac
SM
38872017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3888
3889 * nat/linux-osdata.c: Include algorithm.
3890 (compare_processes): Remove.
3891 (struct pid_pgid_entry): New struct.
3892 (linux_xfer_osdata_processgroups): Use std::vector instead of
3893 XNEWVEC.
3894
af5bf4ad
SM
38952017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3896
3897 * objfiles.h: Don't include symfile.h.
3898 (struct partial_symbol): Remove forward-declaration.
3899 (struct objfile) <global_psymbols, static_psymbols>: Change type
3900 to std::vector<partial_symbol *>.
3901 * objfiles.c (objfile::objfile): Don't memset those fields.
3902 (objfile::~objfile): Don't free those fields.
3903 * psympriv.h (struct psymbol_allocation_list): Remove
3904 forward-declaration.
3905 (add_psymbol_to_list): Change psymbol_allocation_list parameter
3906 to std::vector.
3907 (start_psymtab_common): Change parameters to std::vector.
3908 * psymtab.c: Include algorithm.
3909 (require_partial_symbols): Call shrink_to_fit.
3910 (find_pc_sect_psymbol): Adjust to vector change.
3911 (match_partial_symbol): Likewise.
3912 (lookup_partial_symbol): Likewise.
3913 (psym_relocate): Likewise.
3914 (dump_psymtab): Likewise.
3915 (recursively_search_psymtabs): Likewise.
3916 (compare_psymbols): Remove.
3917 (sort_pst_symbols): Adjust to vector change.
3918 (start_psymtab_common): Likewise.
3919 (end_psymtab_common): Likewise.
3920 (psymbol_bcache_full): De-constify return value.
3921 (add_psymbol_to_bcache): Likewise.
3922 (extend_psymbol_list): Remove.
3923 (append_psymbol_to_list): Adjust to vector change.
3924 (add_psymbol_to_list): Likewise.
3925 (init_psymbol_list): Likewise.
3926 (maintenance_info_psymtabs): Likewise.
3927 (maintenance_check_psymtabs): Likewise.
3928 * symfile.h (struct psymbol_allocation_list): Remove.
3929 * symfile.c (reread_symbols): Adjust to vector change.
3930 * dbxread.c (start_psymtab): Change type of parameters.
3931 (dbx_symfile_read): Adjust to vector change.
3932 (read_dbx_symtab): Likewise.
3933 (start_psymtab): Change type of parameters.
3934 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
3935 (create_partial_symtab): Likewise.
3936 (add_partial_symbol): Likewise.
3937 (write_one_signatured_type): Likewise.
3938 (recursively_write_psymbols): Likewise.
3939 * mdebugread.c (parse_partial_symbols): Likewise.
3940 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
3941 (scan_xcoff_symtab): Adjust to vector change.
3942 (xcoff_initial_scan): Likewise.
3943
3ec5942f
SM
39442017-10-13 Simon Marchi <simon.marchi@ericsson.com>
3945
3946 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
3947
2399fe6a
YQ
39482017-10-13 Yao Qi <yao.qi@linaro.org>
3949
3950 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
3951 Remove s390x-*-expedite, add s390x-expedite.
3952
4bf3f4a8
YQ
39532017-10-13 Yao Qi <yao.qi@linaro.org>
3954
3955 * features/s390-gs-linux64.c: Regenerated.
3956 * features/s390x-gs-linux64.c: Regenerated.
3957
9e86da07
TT
39582017-10-13 Tom Tromey <tom@tromey.com>
3959
3960 * compile/compile-object-run.c (do_module_cleanup): Use delete.
3961 * solib.c (update_solib_list, reload_shared_libraries_1): Use
3962 delete.
3963 * symfile.c (symbol_file_add_with_addrs): Use new.
3964 (symbol_file_add_separate): Update comment.
3965 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
3966 * jit.c (jit_object_close_impl): Use new.
3967 (jit_unregister_code): Use delete.
3968 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
3969 (~objfile): Rename from free_objfile.
3970 (free_objfile_separate_debug, do_free_objfile_cleanup)
3971 (free_all_objfiles, objfile_purge_solibs): Use delete.
3972 * objfiles.h (struct objfile): Add constructor and destructor.
3973 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
3974 (allocate_objfile, free_objfile): Don't declare.
3975 (struct objstats): Add initializers.
3976
c2508e90
SM
39772017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3978
3979 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
3980 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
3981 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
3982 * gdbarch.h: Regenerate.
3983 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
3984 Adjust comment.
3985 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
3986 (i386_displaced_step_fixup): Adjust comment.
3987 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
3988
a900ff72
TT
39892017-10-12 Tom Tromey <tom@tromey.com>
3990
3991 * prologue-value.h (pv_area::store_would_trash): Return bool.
3992 (pv_area::find_reg): Likewise.
3993 * prologue-value.c (pv_area::store_would_trash): Return bool.
3994 (pv_area::find_reg): Likewise.
3995
f7b7ed97
TT
39962017-10-12 Tom Tromey <tom@tromey.com>
3997
3998 * s390-linux-tdep.c (s390_store, s390_load)
3999 (s390_check_for_saved, s390_analyze_prologue): Update.
4000 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
4001 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
4002 * prologue-value.h (class pv_area): Move from prologue-value.c.
4003 Change names of members. Add constructor, destructor, member
4004 functions.
4005 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
4006 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
4007 (pv_area_fetch, pv_area_scan): Don't declare.
4008 * prologue-value.c (struct pv_area::area_entry): Now member of
4009 pv_area.
4010 (struct pv_area): Move to prologue-value.h.
4011 (pv_area::pv_area): Rename from make_pv_area.
4012 (pv_area::~pv_area): Rename from free_pv_area.
4013 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
4014 (clear_entries, find_entry, overlaps, store_would_trash, store)
4015 (fetch, find_reg, scan): Now member of pv_area.
4016 Remove "area" argument. Update.
4017 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
4018 Update.
4019 * mn10300-tdep.c (push_reg, check_for_saved)
4020 (mn10300_analyze_prologue): Update.
4021 * mep-tdep.c (is_arg_spill, check_for_saved)
4022 (mep_analyze_prologue): Update.
4023 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
4024 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
4025 (m32c_is_struct_return, m32c_analyze_prologue): Update.
4026 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
4027 Update.
4028 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
4029 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
4030
466eecee
SM
40312017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4032
4033 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
4034 * linux-nat.c (linux_nat_delete_thread): New variable.
4035 (lwp_free): Invoke linux_nat_delete_thread if set.
4036 (linux_nat_set_delete_thread): New function.
4037 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
4038 thread delete callback.
4039 * arm-linux-nat.c (arm_linux_delete_thread): New function.
4040 (_initialize_arm_linux_nat): Assign thread delete callback.
4041 * s390-linux-nat.c (s390_delete_thread): New function.
4042 (_initialize_s390_nat): Assign thread delete callback.
4043 * x86-linux-nat.c (x86_linux_add_target): Likewise.
4044 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
4045 function.
4046 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
4047 declaration.
4048 * nat/x86-linux.c (x86_linux_delete_thread): New function.
4049 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
4050
f71c8822
TT
40512017-10-09 Tom Tromey <tom@tromey.com>
4052
4053 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
4054 std::string.
4055 * tui/tui-layout.c (enum tui_status): Use std::string.
4056
981a3fb3
TT
40572017-10-11 Tom Tromey <tom@tromey.com>
4058
4059 * gdbthread.h (thread_command): Constify.
4060 * inferior.h (detach_command): Constify.
4061 * top.h (set_history, show_history): Constify.
4062 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
4063 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
4064 * bsd-kvm.c (bsd_kvm_cmd): Constify.
4065 * printcmd.c (set_command): Constify.
4066 (non_const_set_command): New function.
4067 * dcache.c (set_dcache_command, show_dcache_command): Constify.
4068 * breakpoint.c (enable_command, disable_command, delete_command)
4069 (catch_command, tcatch_command, set_breakpoint_cmd)
4070 (show_breakpoint_cmd): Constify.
4071 * macrocmd.c (macro_command): Constify.
4072 * infcmd.c (unset_command, kill_command, detach_command)
4073 (info_proc_cmd): Constify.
4074 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
4075 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
4076 (info_auto_load_cmd): Constify.
4077 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4078 (unset_tdesc_cmd): Constify.
4079 * ada-lang.c (set_ada_command, show_ada_command)
4080 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
4081 * guile/guile.c (set_guile_command, show_guile_command)
4082 (info_guile_command): Constify.
4083 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
4084 Constify.
4085 * skip.c (skip_command): Constify.
4086 * compile/compile.c (_initialize_compile): Constify.
4087 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
4088 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4089 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4090 (maint_btrace_pt_show_cmd): Constify.
4091 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
4092 Constify.
4093 * python/python.c (user_show_python, user_set_python): Constify.
4094 * mips-tdep.c (set_mips_command, show_mips_command)
4095 (set_mipsfpu_command): Constify.
4096 * record-btrace.c (cmd_record_btrace_start)
4097 (cmd_set_record_btrace, cmd_show_record_btrace)
4098 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
4099 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
4100 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
4101 Constify.
4102 * symfile.c (overlay_command): Constify.
4103 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
4104 * cli/cli-logging.c (set_logging_command, show_logging_command):
4105 Constify.
4106 * cli/cli-dump.c (dump_command, append_command)
4107 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4108 (tekhex_dump_command, binary_dump_command)
4109 (binary_append_command): Constify.
4110 * cli/cli-decode.c (struct cmd_list_element): Change type of
4111 "fun".
4112 * cli/cli-cmds.c (info_command, show_command, set_debug)
4113 (show_debug): Constify.
4114 (show_command): Add non-const overload.
4115 * top.c (set_history, show_history): Constify.
4116 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
4117 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
4118 * target.c (target_command): Constify.
4119 * sparc64-tdep.c (info_adi_command): Constify.
4120 * record-full.c (cmd_record_full_start): Constify.
4121 (set_record_full_command): Constify. Fix typo.
4122 (show_record_full_command): Constify.
4123 * thread.c (thread_command, thread_apply_command): Constify.
4124 * memattr.c (dummy_cmd): Constify.
4125 * value.c (function_command): Constify.
4126 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
4127 * probe.c (info_probes_command): Constify.
4128 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
4129 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
4130 (show_thread_cmd, set_thread_default_cmd)
4131 (show_thread_default_cmd): Constify.
4132 (check_empty): Constify.
4133 * tracepoint.c (tfind_command): Constify.
4134 * cp-support.c (maint_cplus_command): Constify.
4135 * windows-tdep.c (info_w32_command): Constify.
4136 * record.c (cmd_record_start, set_record_command)
4137 (show_record_command, info_record_command, cmd_record_goto):
4138 Constify.
4139 * ravenscar-thread.c (set_ravenscar_command)
4140 (show_ravenscar_command): Constify.
4141 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4142 Constify.
4143 (add_internal_problem_command): Remove casts.
4144 * arc-tdep.c (maintenance_print_arc_command): Constify.
4145 * valprint.c (set_print, show_print, set_print_raw)
4146 (show_print_raw): Constify.
4147 * maint.c (maintenance_command, maintenance_info_command)
4148 (maintenance_print_command, maintenance_set_cmd)
4149 (maintenance_show_cmd, set_per_command_cmd)
4150 (show_per_command_cmd, maintenance_check_command): Constify.
4151 * language.c (set_check, show_check): Constify.
4152 * typeprint.c (show_print_type, set_print_type): Constify.
4153 * go32-nat.c (go32_info_dos_command): Constify.
4154
fdf44873
TT
41552017-10-11 Tom Tromey <tom@tromey.com>
4156
4157 * breakpoint.c (prepare_re_set_context): Remove.
4158 (breakpoint_re_set_one): Update. Don't use cleanups.
4159 (breakpoint_re_set): Use scoped_restore, std::string, and
4160 scoped_restore_current_language.
4161
81b1e71c
TT
41622017-10-11 Tom Tromey <tom@tromey.com>
4163
4164 * breakpoint.c (commands_command_1): Use std::string.
4165 (cleanup_executing_breakpoints): Remove.
4166 (bpstat_do_actions_1): Use scoped_restore.
4167 (bpstat_check_watchpoint): Use std::string.
4168 (decode_static_tracepoint_spec): Likewise.
4169 (break_range_command): Likewise.
4170 (watch_command_1): Likewise.
4171 (compare_breakpoints): Change argument types.
4172 (clear_command): Use std::vector.
4173 (cleanup_executing_breakpoints): Remove.
4174 (update_global_location_list): Use unique_xmalloc_ptr.
4175 (strace_command): Remove unused declaration.
4176
4f9d9906
JB
41772017-10-11 John Baldwin <jhb@FreeBSD.org>
4178
4179 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
4180 * NEWS: Mention new FreeBSD/arm native configuration.
4181 * configure.host: Add arm*-*-freebsd*.
4182 * configure.nat: Likewise.
4183 * arm-fbsd-nat.c: New file.
4184
7176dfd2
JB
41852017-10-11 John Baldwin <jhb@FreeBSD.org>
4186
4187 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
4188 (ALLDEPFILES): Add arm-fbsd-tdep.c.
4189 * NEWS: Mention new FreeBSD/arm target.
4190 * configure.tgt: Add arm*-*-freebsd*.
4191 * arm-fbsd-tdep.c: New file.
4192 * arm-fbsd-tdep.h: New file.
4193
fe220226
MR
41942017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4195
4196 * linux-tdep.c (linux_make_corefile_notes): Remove call to
4197 `gdbarch_elfcore_write_linux_prpsinfo'.
4198 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
4199 method.
4200 (elf_internal_linux_prpsinfo): Remove declaration.
4201 * gdbarch.h: Regenerate.
4202 * gdbarch.c: Regenerate.
4203
a2f63b2e
MR
42042017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4205
4206 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
4207 `set_gdbarch_elfcore_write_linux_prpsinfo'.
4208
458ca1d0
PA
42092017-10-11 Pedro Alves <palves@redhat.com>
4210
4211 * breakpoint.c (reattach_breakpoints): Delete.
4212 * breakpoint.h (reattach_breakpoints): Delete.
4213
905014d7
SM
42142017-10-11 Simon Marchi <simon.marchi@ericsson.com>
4215
4216 * symfile.c (registered_sym_fns): Make struct, not typedef.
4217 (DEF_VEC_O (registered_sym_fns)): Remove.
4218 (symtab_fns): Change type to std::vector.
4219 (add_symtab_fns): Adjust.
4220 (find_sym_fns): Adjust.
4221
56d704da
AK
42222017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
4223
4224 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
4225 * arc-tdep.h (arc_arch_is_em): New function.
4226 (arc_arch_is_hs): Likewise.
4227
7fa29be9
EB
42282017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
4229
4230 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
4231 parentheses in the declaration.
4232 (macro_lookup_inclusion): Likewise.
4233 (macro_lookup_definition): Likewise.
4234 * p-lang.h (pascal_builtin_types): Likewise.
4235 * tui/tui-data.c (tui_win_list): Likewise.
4236 * tui/tui-data.h (tui_win_list): Likewise.
4237 * utils.h (make_cleanup_free_section_addr_info): Likewise.
4238
d9b477e3
KB
42392017-10-11 Mark Rages <markrages@gmail.com>
4240
4241 * target-memory.c (block_boundaries): Fix for block address not
4242 aligned on block size.
4243
65630365
PA
42442017-10-10 Pedro Alves <palves@redhat.com>
4245 Tom Tromey <tom@tromey.com>
4246
4247 * breakpoint.c (struct captured_breakpoint_query_args)
4248 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
4249 (print_breakpoint): New.
4250 * breakpoint.h (print_breakpoint): Declare.
4251 * common/common-exceptions.h (enum return_reason): Remove
4252 references to catch_exceptions.
4253 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
4254 Delete.
4255 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
4256 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
4257 * gdb.h: Delete.
4258 * gdbthread.h (thread_select): Declare.
4259 * mi/mi-cmd-break.c: Don't include gdb.h.
4260 (breakpoint_notify): Use print_breakpoint.
4261 * mi/mi-cmd-catch.c: Don't include gdb.h.
4262 * mi/mi-interp.c: Don't include gdb.h.
4263 (mi_print_breakpoint_for_event): New.
4264 (mi_breakpoint_created, mi_breakpoint_modified): Use
4265 mi_print_breakpoint_for_event.
4266 * mi/mi-main.c: Don't include gdb.h.
4267 (mi_cmd_thread_select): Parse the global thread ID here. Use
4268 thread_select instead of gdb_thread_select.
4269 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
4270 of using gdb_list_thread_ids.
4271 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
4272 FILEIO_ENOSYS here.
4273 (remote_fileio_request): Use TRY/CATCH instead of
4274 catch_exceptions.
4275 * symfile-mem.c (struct symbol_file_add_from_memory_args)
4276 (symbol_file_add_from_memory_wrapper): Delete.
4277 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
4278 * thread.c: Don't include gdb.h.
4279 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
4280 (thread_alive): Use thread_select.
4281 (do_captured_thread_select): Delete, parts salvaged as ...
4282 (thread_select): ... this new function.
4283 (gdb_thread_select): Delete.
4284
bf469271
PA
42852017-10-10 Pedro Alves <palves@redhat.com>
4286 Tom Tromey <tom@tromey.com>
4287
4288 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
4289 and reverse logic.
4290 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
4291 No longer macros. Instead ...
4292 (enum wp_check_result): They're now values of this new
4293 enumeration.
4294 (watchpoint_check): Change return type to wp_check_result and
4295 parameter type to bpstat.
4296 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
4297 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
4298 catch_errors. Reverse logic of watchpoint_check call.
4299 (breakpoint_re_set_one): Now returns void and takes a breakpoint
4300 pointer as parameter.
4301 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
4302 * common/common-exceptions.c (throw_exception_sjlj): Update
4303 comments to avoid mentioning catch_errors.
4304 * exceptions.c (catch_errors): Delete.
4305 * exceptions.h: Update comments to avoid mentioning catch_errors.
4306 (catch_errors_ftype, catch_errors): Delete.
4307 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
4308 (hook_stop_stub): Delete.
4309 (restore_selected_frame): Change return type to void, and
4310 parameter type to const frame_id &.
4311 (restore_infcall_control_state): Use TRY/CATCH instead of
4312 catch_errors.
4313 * main.c (captured_command_loop): Return void and remove
4314 parameter. Remove references to catch_errors.
4315 (captured_main): Use TRY/CATCH instead of catch_errors.
4316 * objc-lang.c (objc_submethod_helper_data)
4317 (find_objc_msgcall_submethod_helper): Delete.
4318 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
4319 catch_errors.
4320 * record-full.c (record_full_message): Return void.
4321 (record_full_message_args, record_full_message_wrapper): Delete.
4322 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
4323 instead of catch_errors.
4324 * solib-aix.c (solib_aix_open_symbol_file_object): Change
4325 parameter type to int.
4326 * solib-darwin.c (open_symbol_file_object): Ditto.
4327 * solib-dsbt.c (open_symbol_file_object): Ditto.
4328 * solib-frv.c (open_symbol_file_object): Ditto.
4329 * solib-svr4.c (open_symbol_file_object): Ditto.
4330 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
4331 * solib.c (update_solib_list): Use TRY/CATCH instead of
4332 catch_errors.
4333 * solist.h (struct target_so_ops) <open_symbol_file_object>:
4334 Change type.
4335 * symmisc.c (struct print_symbol_args): Remove.
4336 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
4337 (print_symbol): Change type.
4338 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
4339 and remove parameters.
4340 (catch_errors): New.
4341 (get_windows_debug_event): Adjust.
4342
1a56bfa5
TT
43432017-10-09 Tom Tromey <tom@tromey.com>
4344
4345 * mi/mi-main.c (free_splay_tree): Remove.
4346 (list_available_thread_groups): Use splay_tree_up.
4347 * common/gdb_splay_tree.h: New file.
4348
0c478e2d
TT
43492017-10-09 Tom Tromey <tom@tromey.com>
4350
4351 * mi/mi-main.c (do_nothing): Remove.
4352 (list_available_thread_groups): Update.
4353
cbd2b4e3
PA
43542017-10-09 Pedro Alves <palves@redhat.com>
4355
4356 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
4357 reading registers when switching context.
4358
a181c0bf
JB
43592017-10-09 John Baldwin <jhb@FreeBSD.org>
4360
4361 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
4362 (fbsd_convert_siginfo): Likewise.
4363 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
4364
6e66f753
SM
43652017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
4366
4367 * configure.ac (try_guile_versions): Remove guile-2.2.
4368 * configure: Regenerate.
4369
890e9790
TT
43702017-10-09 Tom Tromey <tom@tromey.com>
4371
4372 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
4373 (COMPILE.pre): Use $(CXX).
4374
109483d9
PA
43752017-10-09 Pedro Alves <palves@redhat.com>
4376
4377 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
4378 Use bool.
4379 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4380 * cp-support.h (cp_remove_params): Now returns a
4381 gdb::unique_xmalloc_ptr.
4382 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
4383 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
4384 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
4385 returning a gdb::unique_xmalloc_ptr.
4386 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4387 * stack.c (find_frame_funname): Adjust to cp_remove_params
4388 returning a gdb::unique_xmalloc_ptr.
4389
791afaa2
TT
43902017-10-08 Tom Tromey <tom@tromey.com>
4391
4392 * dwarf2read.c (dwarf2_get_dwz_file): Use
4393 gdb::unique_xmalloc_ptr.
4394 (find_slot_in_mapped_hash): Likewise.
4395 (dwarf2_physname): Likewise.
4396 (create_dwo_unit_in_dwp_v1): Use std::string.
4397 (create_dwo_unit_in_dwp_v2): Likewise.
4398 (lookup_dwo_cutu): Likewise.
4399 (inherit_abstract_dies): Use std::vector.
4400 (read_array_type): Likewise.
4401 (dwarf_decode_macros): Remove unused declaration.
4402 (unsigned_int_compar): Remove.
4403 (dwarf2_build_psymtabs_hard): Use scoped_restore.
4404 (psymtabs_addrmap_cleanup): Remove.
4405
30a9c02f
TT
44062017-10-08 Tom Tromey <tom@tromey.com>
4407
4408 * frame-unwind.c (frame_unwind_try_unwinder): Update.
4409 * frame.h (frame_cleanup_after_sniffer): Declare.
4410 (frame_prepare_for_sniffer): Return void.
4411 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
4412 type of argument.
4413 (frame_prepare_for_sniffer): Return void.
4414
757325a3
TT
44152017-10-08 Tom Tromey <tom@tromey.com>
4416
4417 * utils.h (make_cleanup_value_free): Remove.
4418 * utils.c (do_value_free, struct cleanup): Remove.
4419 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
4420 Use gdb_value_up.
4421 * value.h (struct value_deleter): New.
4422 (gdb_value_up): New typedef.
4423
b9c04fb2
TT
44242017-10-08 Tom Tromey <tom@tromey.com>
4425
4426 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
4427 (make_cleanup_free_search_symbols): Remove.
4428 (search_symbols): Return std::vector.
4429 (symbol_search::compare_search_syms): Now member of
4430 symbol_search. Change arguments.
4431 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
4432 (symtab_symbol_info, rbreak_command): Update.
4433 * symtab.h (struct symbol_search) <next>: Remove.
4434 Add constructors.
4435 (symbol_search::operator<): New function.
4436 (symbol_search::operator==): New function.
4437 (search_symbols): Remove std::vector.
4438 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
4439 (symbol_search::compare_search_syms): Declare.
4440
0d28b0a5
YQ
44412017-10-06 Yao Qi <yao.qi@linaro.org>
4442
4443 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
4444 arch/aarch64-insn.o.
4445 Remove one rule.
4446 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
4447
71917808
YQ
44482017-10-06 Yao Qi <yao.qi@linaro.org>
4449
4450 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
4451 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
4452 arch/arm-linux.o respectively.
4453 * configure.tgt: Likewise.
4454
2081b2b2
YQ
44552017-10-06 Yao Qi <yao.qi@linaro.org>
4456
4457 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
4458 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
4459
a1b85d28
PA
44602017-10-06 Pedro Alves <palves@redhat.com>
4461
4462 * windows-nat.c: Include <algorithm>.
4463
d97987e2
YQ
44642017-10-06 Yao Qi <yao.qi@linaro.org>
4465
4466 * configure.tgt (i386_tobjs): New variable.
4467 (amd64_tobjs): New variable.
4468 Set $cpu_obs and $os_obs.
4469
f38307f5
YQ
44702017-10-06 Yao Qi <yao.qi@linaro.org>
4471
4472 * Makefile.in (CONFIG_SRC_SUBDIR): New.
4473 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
4474 (clean): Remove object files and dependency files.
4475 (distclean): Remove the directory.
4476 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4477 * configure: Re-generated.
4478 * configure.tgt: Replace amd64.o with arch/amd64.o.
4479
2f924de6
JM
44802017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
4481
4482 PR build/22188
4483 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
4484 and SETEND.
4485
2fd9d7ca
PA
44862017-10-05 Pedro Alves <palves@redhat.com>
4487
4488 * linux-nat.c (linux_child_follow_fork): When following the parent
4489 and detaching the child, consult the parent thread's architecture
4490 instead of the child's.
4491
d13b8493
UW
44922017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4493
4494 * ax.h: Do not include "doublest.h".
4495 (union agent_val): Remove.
4496
3b4b2f16
UW
44972017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4498
4499 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
4500 (decimal_to_string): Return std::string object.
4501 (decimal_from_string): Accept std::string object. Return bool.
4502 (decimal_from_integral, decimal_from_doublest): Remove.
4503 (decimal_from_longest): Add prototype.
4504 (decimal_from_ulongest): Likewise.
4505 (decimal_to_longest): Likewise.
4506 (decimal_from_doublest): Likewise.
4507 * dfp.c: Do not include "gdbtypes.h" or "value.h".
4508 (MAX_DECIMAL_STRING): Move here.
4509 (decimal_to_string): Return std::string object.
4510 (decimal_from_string): Accept std::string object. Return bool.
4511 (decimal_from_integral): Remove, replace by ...
4512 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
4513 (decimal_to_longest): New function.
4514 (decimal_from_floating): Remove, replace by ...
4515 (decimal_from_doublest): ... this new function.
4516 (decimal_to_doublest): Update to new decimal_to_string interface.
4517
4518 * value.c (unpack_long): Use decimal_to_longest.
4519 * valops.c (value_cast): Use decimal_from_doublest instead of
4520 decimal_from_floating. Use decimal_from_[u]longest isntead of
4521 decimal_from_integral.
4522 * valarith.c (value_args_as_decimal): Likewise.
4523 * valprint.c (print_decimal_floating): Update to new
4524 decimal_to_string interface.
4525 * printcmd.c (printf_decfloat): Likewise.
4526 * c-exp.y (parse_number): Update to new decimal_from_string interface.
4527
1841ee5d
UW
45282017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4529
4530 * doublest.h: Do not include "floatformat.h". Remove stale comments.
4531 * gdbtypes.c: Include "floatformat.h".
4532 * value.c: Likewise.
4533 * m68k-tdep.c: Likewise.
4534
4535 * findvar.c: Do not include "floatformat.h".
4536 * amd64-darwin-tdep.c: Likewise.
4537 * arm-linux-tdep.c: Likewise.
4538 * i386-darwin-tdep.c: Likewise.
4539 * i387-tdep.c: Likewise.
4540 * m68k-linux-tdep.c: Likewise.
4541 * mep-tdep.c: Likewise.
4542 * mips-tdep.c: Likewise.
4543 * nios2-tdep.c: Likewise.
4544 * s390-linux-tdep.c: Likewise.
4545 * sparc-obsd-tdep.c: Likewise.
4546 * sparc-tdep.c: Likewise.
4547 * sparc64-tdep.c: Likewise.
4548 * spu-tdep.c: Likewise.
4549 * tic6x-tdep.c: Likewise.
4550 * tilegx-tdep.c: Likewise.
4551 * vax-tdep.c: Likewise.
4552 * xstormy16-tdep.c: Likewise.
4553 * xtensa-tdep.c: Likewise.
4554
4555 * top.c: Do not include "doublest.h".
4556 * aarch64-tdep.c: Likewise.
4557 * alpha-tdep.c: Likewise.
4558 * arm-linux-tdep.c: Likewise.
4559 * m68k-linux-tdep.c: Likewise.
4560 * tilegx-tdep.c: Likewise.
4561 * xstormy16-tdep.c: Likewise.
4562
a80a6471
JB
45632017-10-05 John Baldwin <jhb@FreeBSD.org>
4564
4565 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
4566 (mipsn32_fbsd_sigframe): Define.
4567 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
4568 for FreeBSD/mipsn32.
4569
12c4bd7f
JB
45702017-10-05 John Baldwin <jhb@FreeBSD.org>
4571
4572 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
4573 AT_HWCAP.
4574
c91933e9
TG
45752017-10-05 Tristan Gingold <tgingold@free.fr>
4576
4577 * MAINTAINERS (Misc): Update my email address.
4578
5cd63fda
PA
45792017-10-04 Pedro Alves <palves@redhat.com>
4580
4581 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
4582 it instead of target_gdbarch.
4583 (get_remote_state, get_remote_packet_size): Adjust
4584 get_remote_arch_state calls, passing down target_gdbarch
4585 explicitly.
4586 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
4587 'gdbarch' and use it instead of target_gdbarch.
4588 (get_memory_packet_size): Adjust get_remote_arch_state calls,
4589 passing down target_gdbarch explicitly.
4590 (struct stop_reply) <arch>: New field.
4591 (remote_parse_stop_reply): Use the stopped thread's architecture,
4592 not the current inferior's. Save the architecture in the
4593 stop_reply.
4594 (process_stop_reply): Use the stop reply's architecture.
4595 (process_g_packet, remote_fetch_registers)
4596 (remote_prepare_to_store, store_registers_using_G)
4597 (remote_store_registers): Adjust get_remote_arch_state calls,
4598 using the regcache's architecture.
4599 (remote_get_trace_status): Adjust get_remote_arch_state calls,
4600 passing down target_gdbarch explicitly.
4601 * spu-multiarch.c (spu_thread_architecture): Defer to the target
4602 beneath instead of calling target_gdbarch.
4603 * target.c (default_thread_architecture): Use the specified
4604 inferior's architecture, instead of the current inferior's
4605 architecture (via target_gdbarch).
4606
ed4227b7
PA
46072017-10-04 Pedro Alves <palves@redhat.com>
4608
4609 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
4610 case.
4611 (regcache_print): Handle !target_has_registers here instead.
4612
55b11ddf
PA
46132017-10-04 Pedro Alves <palves@redhat.com>
4614
4615 * frame.c (create_test_frame): Delete.
4616 * frame.h (create_test_frame): Delete.
4617 * gdbarch-selftests.c: Include gdbthread.h and target.h.
4618 (class regcache_test): Delete.
4619 (test_target_has_registers, test_target_has_stack)
4620 (test_target_has_memory, test_target_prepare_to_store)
4621 (test_target_store_registers): New functions.
4622 (test_target_ops): New class.
4623 (register_to_value_test): Error out if there's already a
4624 process_stratum (or higher) target pushed. Create a fuller mock
4625 environment, with mock target_ops, inferior, address space, thread
4626 and inferior_ptid.
4627 * progspace.c (struct address_space): Move to ...
4628 * progspace.h (struct address_space): ... here.
4629 * regcache.h (regcache::~regcache, regcache::raw_write)
4630 [GDB_SELF_TEST]: No longer virtual.
4631
4c71c105
SM
46322017-10-04 Simon Marchi <simon.marchi@ericsson.com>
4633
4634 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
4635
73dcd72d
PA
46362017-10-04 Pedro Alves <palves@redhat.com>
4637
4638 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
4639 out of 'between TRY and CATCH'.
4640
44704526
PA
46412017-10-04 Pedro Alves <palves@redhat.com>
4642
4643 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
4644 * common/common-exceptions.h (TRY): Open an outermost scope.
4645 Expand intro comment.
4646 (CATCH): Reindent.
4647 (END_CATCH): Close the outermost scope.
4648 * completer.c (complete_line_internal): Add missing END_CATCH.
4649
bc3b087d
SDJ
46502017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4651
4652 * NEWS (Changes since GDB 8.0): Add entry about new
4653 'set-cwd-on-gdbserver' feature.
4654 (New remote packets): Add entry for QSetWorkingDir.
4655 * common/common-inferior.h (set_inferior_cwd): New prototype.
4656 * infcmd.c (set_inferior_cwd): Remove "static".
4657 (show_cwd_command): Expand text to include remote debugging.
4658 * remote.c: Add PACKET_QSetWorkingDir.
4659 (remote_protocol_features) <QSetWorkingDir>: New entry for
4660 PACKET_QSetWorkingDir.
4661 (extended_remote_set_inferior_cwd): New function.
4662 (extended_remote_create_inferior): Call
4663 "extended_remote_set_inferior_cwd".
4664 (_initialize_remote): Call "add_packet_config_cmd" for
4665 QSetWorkingDir.
4666
d092c5a2
SDJ
46672017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4668
4669 * NEWS (New commands): Mention "set/show cwd".
4670 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
4671 "cd" command's help text.
4672 * common/common-inferior.h (get_inferior_cwd): New prototype.
4673 * infcmd.c (inferior_cwd_scratch): New global variable.
4674 (set_inferior_cwd): New function.
4675 (get_inferior_cwd): Likewise.
4676 (set_cwd_command): Likewise.
4677 (show_cwd_command): Likewise.
4678 (_initialize_infcmd): Add "set/show cwd" commands.
4679 * inferior.h (class inferior) <cwd>: New field.
4680 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
4681 (fork_inferior): Change inferior's cwd before its execution.
4682 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
4683 to CreateProcess.
4684
7da0a886
SDJ
46852017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4686
4687 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
4688 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
4689 (COMMON_OBS): Add gdb_tilde_expand.o.
4690 * common/gdb_tilde_expand.c: New file.
4691 * common/gdb_tilde_expand.h: Likewise.
4692
db8dd160
MR
46932017-10-03 Maciej W. Rozycki <macro@imgtec.com>
4694
4695 * gdbarch.sh (objfile): Remove duplicate declaration.
4696 * gdbarch.h: Regenerate.
4697
f8bfbf22
TT
46982017-10-03 Tom Tromey <tom@tromey.com>
4699
4700 * utils.c (internal_vproblem): Use string_vprintf.
4701
5178ed48
TT
47022017-10-03 Tom Tromey <tom@tromey.com>
4703
4704 * printcmd.c (info_symbol_command): Use std::string.
4705
8cff8730
TT
47062017-10-03 Tom Tromey <tom@tromey.com>
4707
4708 * top.c (gdb_safe_append_history): Use std::string.
4709
895b8f30
TT
47102017-10-03 Tom Tromey <tom@tromey.com>
4711
4712 * event-top.c (stdin_event_handler): Update.
4713 * main.c (captured_main_1): Update.
4714 * top.h (make_delete_ui_cleanup): Remove.
4715 (struct ui): Add constructor and destructor.
4716 (new_ui, delete_ui): Remove.
4717 * top.c (make_delete_ui_cleanup): Remove.
4718 (new_ui_command): Use std::unique_ptr.
4719 (delete_ui_cleanup): Remove.
4720 (ui::ui): Rename from new_ui. Update.
4721 (free_ui): Remove.
4722 (ui::~ui): Rename from delete_ui. Update.
4723
0efef640
TT
47242017-10-03 Tom Tromey <tom@tromey.com>
4725
4726 * symfile.c (load_progress): Use gdb::byte_vector.
4727
245ad7d3
TT
47282017-10-03 Tom Tromey <tom@tromey.com>
4729
4730 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
4731 declaration.
4732 * printcmd.c (x_command): Remove unused declaration.
4733 * symfile.c (symbol_file_command): Remove unused declaration.
4734
e05550d7
TT
47352017-10-03 Tom Tromey <tom@tromey.com>
4736
4737 * utils.c (internal_vproblem): Use std::string.
4738 (defaulted_query): Likewise.
4739
b95de2b7
TT
47402017-10-03 Tom Tromey <tom@tromey.com>
4741
4742 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
4743 * top.c (execute_command_to_string): Update.
4744 * utils.c (make_cleanup_restore_page_info): Remove.
4745 (do_restore_page_info_cleanup): Remove.
4746 (set_batch_flag_and_restore_page_info):
4747 New.
4748 (make_cleanup_restore_page_info): Remove.
4749 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
4750 (~set_batch_flag_and_restore_page_info): New
4751 (make_cleanup_restore_uinteger): Remove.
4752 (make_cleanup_restore_integer): Remove.
4753 (struct restore_integer_closure): Remove.
4754 (restore_integer): Remove.
4755 * utils.h (struct set_batch_flag_and_restore_page_info): New
4756 class.
4757 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
4758 (make_cleanup_restore_page_info): Remove.
4759 (make_cleanup_restore_uinteger) Remove.
4760 (make_cleanup_restore_integer) Remove.
4761
07036511
TT
47622017-10-03 Tom Tromey <tom@tromey.com>
4763
4764 * record-full.h (record_full_gdb_operation_disable_set): Return
4765 scoped_restore_tmpl<int>.
4766 * infrun.c (adjust_pc_after_break): Update.
4767 (handle_signal_stop): Update.
4768 * record-full.c (record_full_gdb_operation_disable_set): Return
4769 scoped_restore_tmpl<int>.
4770 (record_full_wait_1, record_full_insert_breakpoint)
4771 (record_full_remove_breakpoint, record_full_save)
4772 (record_full_goto_insn): Update.
4773
45320ffa
TT
47742017-10-02 Tom Tromey <tom@tromey.com>
4775
4776 PR rust/22236:
4777 * rust-lang.c (rust_val_print_str): New function.
4778 (val_print_struct): Call it.
4779 (rust_subscript): Preserve name of slice type.
4780
b3e3859b
TT
47812017-10-02 Tom Tromey <tom@tromey.com>
4782
4783 * rust-lang.c (rust_subscript): Handle slices in
4784 EVAL_AVOID_SIDE_EFFECTS case.
4785
01af5e0d
TT
47862017-10-02 Tom Tromey <tom@tromey.com>
4787
4788 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
4789
888e3ddb
TT
47902017-10-02 Tom Tromey <tom@tromey.com>
4791
4792 * rust-lang.h (rust_slice_type): Add "extern".
4793
cc536b21
PA
47942017-10-02 Tom Tromey <tom@tromey.com>
4795 Pedro Alves <palves@redhat.com>
4796
4797 * ada-lang.h (ada_exc_info::operator<): Make const.
4798 (ada_exc_info::operator==): Make const.
4799 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
4800 Make const.
4801
386c8614
TT
48022017-09-29 Tom Tromey <tom@tromey.com>
4803
4804 * target.c (read_whatever_is_readable): Change type of "result".
4805 Update.
4806 (free_memory_read_result_vector): Remove.
4807 (read_memory_robust): Change return type. Update.
4808 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
4809 bin2hex, std::string.
4810 * target.h (memory_read_result_s): Remove typedef.
4811 (free_memory_read_result_vector): Remove.
4812 (read_memory_robust): Return std::vector.
4813
789c4b5e
TT
48142017-09-29 Tom Tromey <tom@tromey.com>
4815
4816 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
4817
ab816a27
TT
48182017-09-29 Tom Tromey <tom@tromey.com>
4819
4820 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
4821 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
4822 operator< and operator==.
4823 (ada_exceptions_list): Return a std::vector.
4824 * ada-lang.c (ada_exc_info::operator<): Rename from
4825 compare_ada_exception_info.
4826 (ada_exc_info::operator==): New.
4827 (sort_remove_dups_ada_exceptions_list): Change type of
4828 "exceptions".
4829 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
4830 (ada_add_global_exceptions): Likewise.
4831 (ada_exceptions_list_1): Return a std::vector.
4832 (ada_exceptions_list): Likewise.
4833
52f9abe4
TT
48342017-09-29 Tom Tromey <tom@tromey.com>
4835
4836 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
4837 'std::set *'.
4838 (print_one_inferior): Update.
4839 (free_vector_of_ints): Remove.
4840 (list_available_thread_groups): Change "ids" to std::set.
4841 (mi_cmd_list_thread_groups): Update.
4842 (struct collect_cores_data) <core>: Now a std::set.
4843 (collect_cores): Update.
4844 (unique): Remove.
4845 (print_one_inferior): Update.
4846
dcd5ddcc
TT
48472017-09-29 Tom Tromey <tom@tromey.com>
4848
4849 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
4850 (mi_execute_async_cli_command): Likewise.
4851 (mi_cmd_trace_frame_collected): Use field_fmt.
4852
45d288cc
TT
48532017-09-29 Tom Tromey <tom@tromey.com>
4854
4855 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
4856 gdb::byte_vector.
4857
6afe2f4a
TT
48582017-09-29 Tom Tromey <tom@tromey.com>
4859
4860 * mi/mi-parse.c (mi_parse): Remove unused declaration.
4861
9813429a
TT
48622017-09-29 Tom Tromey <tom@tromey.com>
4863
4864 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
4865
2d6960b4
TT
48662017-09-29 Tom Tromey <tom@tromey.com>
4867
4868 * varobj.h (varobj_gen_name): Return std::string.
4869 * varobj.c (varobj_gen_name): Return std::string.
4870 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
4871 (mi_cmd_var_delete): Don't copy "name".
4872
784c453a
TT
48732017-09-29 Tom Tromey <tom@tromey.com>
4874
4875 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
4876 (mi_cmd_break_insert_1): Update.
4877
a9bc57b9
TT
48782017-09-29 Tom Tromey <tom@tromey.com>
4879
4880 * target.h (make_scoped_defer_target_commit_resume): Update.
4881 * target.c (make_scoped_defer_target_commit_resume): Rename from
4882 make_cleanup_defer_target_commit_resume. Return a
4883 scoped_restore.
4884 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
4885
9754d8c4
TT
48862017-09-29 Tom Tromey <tom@tromey.com>
4887
4888 * main.c (captured_main_1): Remove unused declaration.
4889 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
4890
99ef965c
TT
48912017-09-29 Tom Tromey <tom@tromey.com>
4892
4893 * symtab.c (search_symbols): Remove unused outer cleanup.
4894 (make_source_files_completion_list): Remove unused declaration.
4895
42518ba7
TT
48962017-09-29 Tom Tromey <tom@tromey.com>
4897
4898 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
4899
726b2169
TT
49002017-09-29 Tom Tromey <tom@tromey.com>
4901
4902 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
4903 gdb::byte_vector.
4904
55b06432
TT
49052017-09-29 Tom Tromey <tom@tromey.com>
4906
4907 * complaints.c (vcomplaint): Use std::string.
4908
8abcee91
TT
49092017-09-29 Tom Tromey <tom@tromey.com>
4910
4911 * tracepoint.c (trace_variable_command): Use std::string.
4912 (encode_actions_1): Remove unused declarations.
4913 (create_tsv_from_upload): Use std::string.
4914
6ad94bc7
TT
49152017-09-29 Tom Tromey <tom@tromey.com>
4916
4917 * cp-support.c (gdb_demangle): Use std::string.
4918
2003f3d8
TT
49192017-09-29 Tom Tromey <tom@tromey.com>
4920
4921 * stack.c (parse_frame_specification): Use std::string
4922 (info_frame_command): Use gdb::unique_xmalloc_ptr.
4923
8f8accb5
TT
49242017-09-29 Tom Tromey <tom@tromey.com>
4925
4926 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
4927
200aa7b1
TT
49282017-09-29 Tom Tromey <tom@tromey.com>
4929
4930 * utils.c (vfprintf_maybe_filtered): Use std::string.
4931 (vfprintf_unfiltered): Likewise.
4932
606aae8a
TT
49332017-09-29 Tom Tromey <tom@tromey.com>
4934
4935 * event-top.c (top_level_prompt): Return std::string.
4936 (display_gdb_prompt): Update.
4937
bd413795
TT
49382017-09-29 Tom Tromey <tom@tromey.com>
4939
4940 * unittests/common-utils-selftests.c (format): New function.
4941 (string_vprintf_tests): New function.
4942 (_initialize_common_utils_selftests): Register new tests.
4943 * common/common-utils.c (string_vprintf): New function.
4944 * common/common-utils.h (string_vprintf): Declare.
4945
256642e8
PA
49462017-09-29 Pedro Alves <palves@redhat.com>
4947
4948 * common/rsp-low.c (unpack_varlen_hex): Constify.
4949 * common/rsp-low.h (unpack_varlen_hex): Constify.
4950 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4951 Constify.
4952 * remote.c (remote_set_permissions, read_ptid)
4953 (remote_current_thread, remote_get_threads_with_qthreadinfo)
4954 (remote_static_tracepoint_marker_at)
4955 (remote_static_tracepoint_markers_by_strid)
4956 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
4957 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
4958 (parse_tracepoint_definition, parse_tsv_definition)
4959 (parse_static_tracepoint_marker_definition): Constify.
4960 * tracepoint.h (parse_static_tracepoint_marker_definition)
4961 (parse_trace_status, parse_tracepoint_status)
4962 (parse_tracepoint_definition, parse_tsv_definition): Constify.
4963
b6bb3468
PA
49642017-09-29 Pedro Alves <palves@redhat.com>
4965
4966 * remote.c (target_buf, target_buf_size): Delete.
4967 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
4968 Use the connection's packet buffer instead.
4969 All callers adjusted.
4970 (_initialize_remote): Remove references to target_buf and
4971 target_buf_size.
4972
b2f8eb7a
PA
49732017-09-28 Pedro Alves <palves@redhat.com>
4974
4975 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4976 unittests/common-utils-selftests.c.
4977 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
4978 (COMMON_OBS): Remove utils-selftests.o.
4979 * utils-selftests.c: Move to ...
4980 * unittests/common-utils-selftests.c: ... here and rename self
4981 test to "string_printf".
4982
08302ed2
DE
49832017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
4984
4985 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
4986 having NULL cus or tus.
4987
96a5a1d3
UW
49882017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4989
4990 * arm-tdep.c: (convert_from_extended): Remove.
4991 (convert_to_extended): Likewise.
4992 (arm_extract_return_value): Use convert_typed_floating.
4993 (arm_store_return_value): Likewise.
4994
4995 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
4996 * sh-tdep.c: Do not include "floatformat.h".
4997 (sh_littlebyte_bigword_type): New function.
4998 (sh_register_convert_to_virtual): Use convert_typed_floating.
4999 (sh_register_convert_to_raw): Likewise.
5000 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5001 (sh64_littlebyte_bigword_type): New function.
5002 (sh64_extract_return_value): Use convert_typed_floating.
5003 (sh64_register_convert_to_virtual): Likewise.
5004 (sh64_register_convert_to_raw): Likewise.
5005
0db7851f
UW
50062017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5007
5008 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
5009 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
5010
5011 * gdbtypes.h (union type_specific): Make field floatformat hold
5012 just a single struct floatformat, not an array.
5013 (floatformat_from_type): Move here.
5014 * gdbtypes.c (floatformat_from_type): Move here. Update to
5015 changed TYPE_FLOATFORMAT definition.
5016 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
5017 (recursive_dump_type): Likewise.
5018 (init_float_type): Install correct floatformat for byte order.
5019 (arch_float_type): Likewise.
5020
77b7c781
UW
50212017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5022
5023 * gdbtypes.c (init_type): Change incoming argument from
5024 length-in-bytes to length-in-bits. Assert length is a
5025 multiple of TARGET_CHAR_BITS.
5026 (arch_type, arch_flags_type): Likewise.
5027 (init_integer_type): Update call to init_type.
5028 (init_character_type): Likewise.
5029 (init_boolean_type): Likewise.
5030 (init_float_type): Likewise.
5031 (init_decfloat_type): Likewise.
5032 (init_complex_type): Likewise.
5033 (init_pointer_type): Likewise.
5034 (objfile_type): Likewise.
5035 (arch_integer_type): Update call to arch_type.
5036 (arch_character_type): Likewise.
5037 (arch_boolean_type): Likewise.
5038 (arch_float_type): Likewise.
5039 (arch_decfloat_type): Likewise.
5040 (arch_complex_type): Likewise.
5041 (arch_pointer_type): Likewise.
5042 (gdbtypes_post_init): Likewise.
5043
5044 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
5045 (read_base_type): Likewise.
5046 * mdebugread.c (basic_type): Likewise.
5047 * stabsread.c (dbx_init_float_type): Likewise.
5048 (rs6000_builtin_type): Likewise.
5049 (read_range_type): Likewise. Also, fix call to init_integer_type
5050 with erroneous length argument.
5051
5052 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
5053 * d-lang.c (build_d_types): Likewise.
5054 * f-lang.c (build_fortran_types): Likewise.
5055 * go-lang.c (build_go_types): Likewise.
5056 * opencl-lang.c (build_opencl_types): Likewise.
5057 * jit.c (finalize_symtab): Likewise.
5058 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5059 (build_std_type_info_type): Likewise.
5060 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
5061 update call to arch_flags_type.
5062
5063 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
5064 arch_type.
5065 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
5066 * windows-tdep.c (windows_get_tlb_type): Likewise.
5067
5068 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
5069 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5070 * m32c-tdep.c (make_types): Likewise.
5071 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5072 (rl78_psw_type): Update call to arch_flags_type.
5073 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
5074 * rx-tdep.c (rx_psw_type): Likewise.
5075 (rx_fpsw_type): Likewise.
5076 * sparc-tdep.c (sparc_psr_type): Likewise.
5077 (sparc_fsr_type): Likewise.
5078 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
5079 (sparc64_ccr_type): Likewise.
5080 (sparc64_fsr_type): Likewise.
5081 (sparc64_fprs_type): Likewise.
5082
f21b4d5c
TT
50832017-09-27 Tom Tromey <tom@tromey.com>
5084
5085 * findcmd.c (find_command): Constify.
5086
643c2ffa
TT
50872017-09-27 Tom Tromey <tom@tromey.com>
5088
5089 * ada-tasks.c (task_command_1, task_command): Constify.
5090
510e5e56
TT
50912017-09-27 Tom Tromey <tom@tromey.com>
5092
5093 * symtab.c (maintenance_print_symbol_cache)
5094 (maintenance_flush_symbol_cache)
5095 (maintenance_print_symbol_cache_statistics): Constify.
5096
e503b191
TT
50972017-09-27 Tom Tromey <tom@tromey.com>
5098
5099 * inferior.c (detach_inferior_command, kill_inferior_command)
5100 (inferior_command): Constify.
5101
4e001312
TT
51022017-09-27 Tom Tromey <tom@tromey.com>
5103
5104 * regcache.c (regcache_print, maintenance_print_registers)
5105 (maintenance_print_raw_registers)
5106 (maintenance_print_cooked_registers)
5107 (maintenance_print_register_groups)
5108 (maintenance_print_remote_registers): Constify.
5109
77763700
TT
51102017-09-27 Tom Tromey <tom@tromey.com>
5111
5112 * printcmd.c (map_display_numbers, undisplay_command)
5113 (enable_disable_display_command, enable_display_command)
5114 (disable_display_command): Constify.
5115
4495129a
TT
51162017-09-27 Tom Tromey <tom@tromey.com>
5117
5118 * breakpoint.h (delete_command): Don't declare.
5119 * breakpoint.c (delete_command, enable_once_command)
5120 (enable_count_command, enable_delete_command, breakpoint_1)
5121 (maintenance_info_breakpoints, stopin_command, stopat_command)
5122 (delete_command, delete_trace_command, save_breakpoints)
5123 (save_breakpoints_command, save_tracepoints_command): Constify.
5124
3088cf40
TT
51252017-09-27 Tom Tromey <tom@tromey.com>
5126
5127 * macrocmd.c (macro_expand_command, macro_expand_once_command)
5128 (skip_ws, extract_identifier, macro_define_command)
5129 (macro_undef_command, macro_list_command): Constify.
5130
69f476a3
TT
51312017-09-27 Tom Tromey <tom@tromey.com>
5132
5133 * infcmd.c (environment_info, set_environment_command)
5134 (unset_environment_command, path_info, info_proc_cmd_1)
5135 (info_proc_cmd_mappings, info_proc_cmd_stat)
5136 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
5137 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
5138
c4a3e68e
TT
51392017-09-27 Tom Tromey <tom@tromey.com>
5140
5141 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
5142 Constify.
5143
c9d31bd6
TT
51442017-09-27 Tom Tromey <tom@tromey.com>
5145
5146 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
5147
1f3f85eb
TT
51482017-09-27 Tom Tromey <tom@tromey.com>
5149
5150 * demangle.c (demangle_command): Constify.
5151
9c504b5d
TT
51522017-09-27 Tom Tromey <tom@tromey.com>
5153
5154 * progspace.c (maintenance_info_program_spaces_command):
5155 Constify.
5156
6663cf91
TT
51572017-09-27 Tom Tromey <tom@tromey.com>
5158
5159 * compile/compile.c (check_raw_argument, compile_file_command)
5160 (compile_code_command, compile_print_command): Constify.
5161
34e5fa26
TT
51622017-09-27 Tom Tromey <tom@tromey.com>
5163
5164 * reggroups.c (maintenance_print_reggroups): Constify.
5165
8384c356
TT
51662017-09-27 Tom Tromey <tom@tromey.com>
5167
5168 * dwarf2read.c (save_gdb_index_command): Constify.
5169
884beb0c
TT
51702017-09-27 Tom Tromey <tom@tromey.com>
5171
5172 * stap-probe.c (info_probes_stap_command): Constify.
5173
e0b2930c
TT
51742017-09-27 Tom Tromey <tom@tromey.com>
5175
5176 * fork-child.c (unset_exec_wrapper_command): Constify.
5177
f938677d
TT
51782017-09-27 Tom Tromey <tom@tromey.com>
5179
5180 * btrace.c (get_uint, get_context_size, no_chunk)
5181 (maint_btrace_packet_history_cmd)
5182 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
5183 (maint_info_btrace_cmd): Constify.
5184
8949cb87
TT
51852017-09-27 Tom Tromey <tom@tromey.com>
5186
5187 * reverse.c (delete_bookmark_command): Constify.
5188
ac88e2de
TT
51892017-09-27 Tom Tromey <tom@tromey.com>
5190
5191 * remote.c (set_memory_packet_size)
5192 (set_memory_write_packet_size, show_memory_write_packet_size)
5193 (set_memory_read_packet_size, show_memory_read_packet_size)
5194 (compare_sections_command, packet_command, remote_put_command)
5195 (remote_get_command, remote_delete_command): Constify.
5196
bd4c9dfe
TT
51972017-09-27 Tom Tromey <tom@tromey.com>
5198
5199 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
5200 (set_mipsfpu_double_command, set_mipsfpu_none_command)
5201 (set_mipsfpu_auto_command): Constify.
5202
5e93d4c6
TT
52032017-09-27 Tom Tromey <tom@tromey.com>
5204
5205 * cli/cli-cmds.h (cd_command): Constify.
5206 * cli/cli-cmds.c (cd_command): Constify.
5207
fc41a75b
TT
52082017-09-27 Tom Tromey <tom@tromey.com>
5209
5210 * thread.c (thread_name_command, thread_find_command): Constify.
5211
67810076
TT
52122017-09-27 Tom Tromey <tom@tromey.com>
5213
5214 * probe.c (enable_probes_command, disable_probes_command):
5215 Constify.
5216
1d8b34a7
TT
52172017-09-27 Tom Tromey <tom@tromey.com>
5218
5219 * symfile.c (symbol_file_command): Constify.
5220 * gdbcore.h (deprecated_file_changed_hook): Constify.
5221 * exec.c (deprecated_file_changed_hook, exec_file_command)
5222 (file_command): Constify.
5223 * defs.h (symbol_file_command): Constify.
5224
442019e1
TT
52252017-09-27 Tom Tromey <tom@tromey.com>
5226
5227 * remote-fileio.c (set_system_call_allowed)
5228 (show_system_call_allowed): Constify.
5229
2983f7cb
TT
52302017-09-27 Tom Tromey <tom@tromey.com>
5231
5232 * tracepoint.c (delete_trace_variable_command)
5233 (tfind_end_command, tfind_start_command, tfind_pc_command)
5234 (tfind_tracepoint_command, tfind_line_command)
5235 (tfind_range_command, tfind_outside_command): Constify.
5236
4fd41b24
TT
52372017-09-27 Tom Tromey <tom@tromey.com>
5238
5239 * ax-gdb.c (maint_agent_printf_command, agent_command)
5240 (agent_eval_command): Constify.
5241
f2fc3015
TT
52422017-09-27 Tom Tromey <tom@tromey.com>
5243
5244 * tracepoint.c (info_scope_command): Constify.
5245 * python/python.c (gdbpy_decode_line): Constify.
5246 * python/py-breakpoint.c (bppy_init): Constify.
5247 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
5248 * location.h: (new_linespec_location)
5249 (string_to_event_location_basic, string_to_event_location):
5250 Constify.
5251 * location.c (new_linespec_location)
5252 (string_to_event_location_basic, string_to_event_location):
5253 Constify.
5254 * linespec.h (decode_line_with_current_source)
5255 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
5256 * linespec.c (linespec_lex_to_end)
5257 (decode_line_with_current_source)
5258 (decode_line_with_last_displayed): Constify.
5259 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
5260 Constify.
5261 * cli/cli-cmds.c (edit_command, list_command): Constify.
5262 * breakpoint.h (until_break_command, watch_command_wrapper)
5263 (awatch_command_wrapper, rwatch_command_wrapper)
5264 (init_ada_exception_breakpoint): Constify.
5265 * breakpoint.c (break_command_1, dprintf_command)
5266 (break_range_command, watch_command_wrapper)
5267 (rwatch_command_wrapper, awatch_command_wrapper)
5268 (until_break_command, init_ada_exception_breakpoint)
5269 (strace_marker_create_sals_from_location, trace_command)
5270 (ftrace_command, strace_command, struct tracepoint): Constify.
5271 * ax-gdb.c (agent_command_1): Constify.
5272 * ada-lang.c (ada_exception_sal): Constify.
5273
8c2f95f4
TT
52742017-09-27 Tom Tromey <tom@tromey.com>
5275
5276 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
5277 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
5278 (get_context_size, no_chunk, get_insn_history_modifiers)
5279 (cmd_record_insn_history, get_call_history_modifiers)
5280 (cmd_record_call_history): Constify.
5281
a0d65762
TT
52822017-09-27 Tom Tromey <tom@tromey.com>
5283
5284 * source.c (show_substitute_path_command)
5285 (unset_substitute_path_command, set_substitute_path_command):
5286 Constify.
5287
58971144
TT
52882017-09-27 Tom Tromey <tom@tromey.com>
5289
5290 * typeprint.c (maintenance_print_type): Constify.
5291 * maint.c (maintenance_dump_me, maintenance_demangle)
5292 (maintenance_time_display, maintenance_info_sections)
5293 (maintenance_print_statistics, maintenance_deprecate)
5294 (maintenance_undeprecate): Constify.
5295 (maintenance_do_deprecate): Constify. Use std::string.
5296 (maintenance_selftest): Constify.
5297 * gdbtypes.h (maintenance_print_type): Constify.
5298
c482f52c
TT
52992017-09-27 Tom Tromey <tom@tromey.com>
5300
5301 * hppa-tdep.c (unwind_command): Constify.
5302
e100df1a
TT
53032017-09-27 Tom Tromey <tom@tromey.com>
5304
5305 * target-descriptions.c (unset_tdesc_filename_cmd)
5306 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
5307 Constify.
5308
31d56ade
TT
53092017-09-27 Tom Tromey <tom@tromey.com>
5310
5311 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
5312
b961da0b
TT
53132017-09-27 Tom Tromey <tom@tromey.com>
5314
5315 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
5316
e2d8ae16
TT
53172017-09-27 Tom Tromey <tom@tromey.com>
5318
5319 * tui/tui-regs.c (tui_reg_command): Constify.
5320
863779b0
TT
53212017-09-27 Tom Tromey <tom@tromey.com>
5322
5323 * skip.c (skip_file_command, skip_function_command)
5324 (skip_enable_command, skip_disable_command, skip_delete_command):
5325 Constify.
5326
cdb34d4a
TT
53272017-09-27 Tom Tromey <tom@tromey.com>
5328
5329 * record-btrace.c (cmd_record_btrace_bts_start)
5330 (cmd_record_btrace_pt_start): Constify.
5331
e99c83e7
TT
53322017-09-27 Tom Tromey <tom@tromey.com>
5333
5334 * symmisc.c (maintenance_print_symbols)
5335 (maintenance_print_msymbols, maintenance_print_objfiles)
5336 (maintenance_info_symtabs, maintenance_check_symtabs)
5337 (maintenance_expand_symtabs, maintenance_info_line_tables):
5338 Constify.
5339
32faf971
TT
53402017-09-27 Tom Tromey <tom@tromey.com>
5341
5342 * top.c (new_ui_command): Constify.
5343
2cf311eb
TT
53442017-09-27 Tom Tromey <tom@tromey.com>
5345
5346 * symfile.c (add_symbol_file_command)
5347 (remove_symbol_file_command, list_overlays_command)
5348 (map_overlay_command, unmap_overlay_command)
5349 (overlay_auto_command, overlay_manual_command)
5350 (overlay_off_command, overlay_load_command): Constify.
5351
e6738699
TT
53522017-09-27 Tom Tromey <tom@tromey.com>
5353
5354 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
5355 (info_spu_mailbox_command, info_spu_dma_command)
5356 (info_spu_proxydma_command): Constify.
5357
aa360cd5
TT
53582017-09-27 Tom Tromey <tom@tromey.com>
5359
5360 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
5361
898241a5
TT
53622017-09-27 Tom Tromey <tom@tromey.com>
5363
5364 * cli/cli-script.c (user_defined_command): Constify.
5365
2d0ac106
TT
53662017-09-27 Tom Tromey <tom@tromey.com>
5367
5368 * cli/cli-dump.c (dump_memory_command, dump_value_command)
5369 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
5370 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
5371 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
5372 (dump_binary_value, append_binary_memory, append_binary_value):
5373 Constify.
5374 (struct dump_context) <func>: Constify.
5375 (add_dump_command): Update.
5376
dede02ce
TT
53772017-09-27 Tom Tromey <tom@tromey.com>
5378
5379 * cli/cli-cmds.c (show_version, show_configuration)
5380 (source_command, show_user): Constify.
5381
d3cb6b99
TT
53822017-09-27 Tom Tromey <tom@tromey.com>
5383
5384 * target.c (maintenance_print_target_stack): Constify.
5385
1970a12f
TT
53862017-09-27 Tom Tromey <tom@tromey.com>
5387
5388 * interps.c (interpreter_exec_cmd): Constify.
5389
41243651
TT
53902017-09-27 Tom Tromey <tom@tromey.com>
5391
5392 * record-full.c (cmd_record_full_restore): Constify.
5393
4465d9db
TT
53942017-09-27 Tom Tromey <tom@tromey.com>
5395
5396 * memattr.c (enable_mem_command, disable_mem_command)
5397 (delete_mem_command): Constify.
5398
ad25e423
TT
53992017-09-27 Tom Tromey <tom@tromey.com>
5400
5401 * value.c (show_convenience): Constify.
5402
d64097b1
TT
54032017-09-27 Tom Tromey <tom@tromey.com>
5404
5405 * gdbcore.h (core_file_command): Update.
5406 * corefile.c (core_file_command): Constify.
5407
4d4589ef
TT
54082017-09-27 Tom Tromey <tom@tromey.com>
5409
5410 * user-regs.c (maintenance_print_user_registers): Constify.
5411
32a7bf17
TT
54122017-09-27 Tom Tromey <tom@tromey.com>
5413
5414 * cp-namespace.c (maintenance_cplus_namespace): Constify.
5415
4a475551
TT
54162017-09-27 Tom Tromey <tom@tromey.com>
5417
5418 * cp-support.c (first_component_command): Constify.
5419
990b9f9f
TT
54202017-09-27 Tom Tromey <tom@tromey.com>
5421
5422 * psymtab.c (maintenance_print_psymbols)
5423 (maintenance_info_psymtabs, maintenance_check_psymtabs):
5424 Constify.
5425
c281872e
TT
54262017-09-27 Tom Tromey <tom@tromey.com>
5427
5428 * windows-tdep.c (display_tib): Constify.
5429
5b64bf74
TT
54302017-09-27 Tom Tromey <tom@tromey.com>
5431
5432 * linux-fork.c (delete_checkpoint_command)
5433 (detach_checkpoint_command): Constify.
5434
4ada038f
TT
54352017-09-27 Tom Tromey <tom@tromey.com>
5436
5437 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
5438
57f5a81b
TT
54392017-09-27 Tom Tromey <tom@tromey.com>
5440
5441 * arc-tdep.c (dump_arc_instruction_command): Constify.
5442
b0a8e6c4
TT
54432017-09-27 Tom Tromey <tom@tromey.com>
5444
5445 * valprint.c (set_radix, show_radix): Constify.
5446
8d97dc1c
TT
54472017-09-27 Tom Tromey <tom@tromey.com>
5448
5449 * dtrace-probe.c (info_probes_dtrace_command): Constify.
5450
eb7c454d
TT
54512017-09-27 Tom Tromey <tom@tromey.com>
5452
5453 * command.h (not_just_help_class_command): Update.
5454 * cli/cli-decode.h (not_just_help_class_command): Update.
5455 * cli/cli-decode.c (not_just_help_class_command): Constify.
5456
e4e33335
TT
54572017-09-27 Tom Tromey <tom@tromey.com>
5458
5459 * gdb_bfd.c (maintenance_info_bfds): Constify.
5460
0450cc4c
TT
54612017-09-27 Tom Tromey <tom@tromey.com>
5462
5463 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
5464 overloads.
5465 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
5466 (do_const_cfunc): New function.
5467 (cmd_cfunc_eq): New overload.
5468 (cli_user_command_p): Check do_const_cfunc.
5469 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
5470 const_cfunc.
5471 * command.h (add_cmd): Add const overload and no-function
5472 overload.
5473 (set_cmd_cfunc): Add const overload.
5474 (cmd_const_cfunc_ftype): Declare.
5475 (cmd_cfunc_eq): Add const overload.
5476 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
5477 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
5478 overload.
5479
a9bbfbd8
TT
54802017-09-27 Tom Tromey <tom@tromey.com>
5481
5482 * macroexp.c (get_next_token_for_substitution): New function.
5483 (substitute_args): Call it. Check for __VA_OPT__.
5484
5230b05a
WT
54852017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5486 Pedro Alves <palves@redhat.com>
5487
5488 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
5489 producer_is_icc_lt_14.
5490 (producer_is_icc_lt_14): New function.
5491 (check_producer): Add code for checking version of ICC.
5492 (producer_is_icc): Move to producer.c.
5493 (read_structure_type): Restrict ICC workaround to ICC<14.
5494 * producer.c: Include selftest.h.
5495 (producer_is_icc, producer_parsing_tests, _initialize_producer):
5496 New functions.
5497 * producer.h (producer_is_icc): New declaration.
5498
b32b108a
WT
54992017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5500
5501 * Makefile.in (SFILES): Add producer.c.
5502 (COMMON_OBS): Add producer.o
5503 * amd64-tdep.c (producer.h): Add new include.
5504 * dwarf2read.c (producer.h): Add new include.
5505 * producer.c: New file.
5506 * producer.h: New file.
5507 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
5508 producer.c.
5509 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
5510 producer.h.
5511
5007d765
MK
55122017-09-26 Matthias Klose <doko@ubuntu.com>
5513
5514 * configure.ac: Search ncursesw before ncurses.
5515 Check ncursesw/ncurses.h before ncurses/ncurses.h.
5516 * gdb_curses.h: Include <ncursesw/ncurses.h>
5517 * config.in, configure: Regenerate.
5518
281c4447
RO
55192017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5520
5521 PR gdb/22185
5522 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
5523 obsolete.
5524 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
5525 Remove i386sol2 support.
5526 * configure.nat <i386sol2>: Remove.
5527 <sol2-64>: Fold into ...
5528 <sol2>: ... this.
5529 Move common settings to default section.
5530 Add sol-thread.o.
5531 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
5532 x86_64-*-solaris2.1[0-9]*>: Rename to ...
5533 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
5534 <i[34567]86-*-solaris*>: Remove.
5535 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
5536
5537 * configure.ac: Remove wctype in libw check.
5538 (_MSE_INT_H): Don't define on Solaris 7-9.
5539 <solaris*>: Remove libthread_db.so.1 check.
5540 * configure: Regenerate.
5541 * config.in: Regenerate.
5542
5543 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
5544 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
5545 (gdb_ps_size_t): Remove.
5546 Use base types in users.
5547 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
5548
5549 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
5550
39b06c20
RO
55512017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5552
5553 PR build/22206
5554 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
5555 (adi_is_addr_mapped): Likewise.
5556 (PSR_ICC): Don't redefine.
5557 (PSR_IMPL): Likewise.
5558
6c3e20f1
TT
55592017-09-25 Tom Tromey <tom@tromey.com>
5560
5561 * regcache.c (regcache::dump): Use string_printf.
5562
b292235f
TT
55632017-09-25 Tom Tromey <tom@tromey.com>
5564
5565 * regcache.c (class regcache_invalidator): New.
5566 (struct register_to_invalidate): Remove.
5567 (make_cleanup_regcache_invalidate): Remove.
5568 (regcache::raw_write): Use regcache_invalidator.
5569
9ac86b52
TT
55702017-09-25 Tom Tromey <tom@tromey.com>
5571
5572 * spu-tdep.c (spu2ppu_sniffer): Update.
5573 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
5574 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
5575 Remove.
5576 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
5577 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
5578 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
5579 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
5580 (frame_pop): Update.
5581
c0e383c6
TT
55822017-09-25 Tom Tromey <tom@tromey.com>
5583
5584 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
5585 * regcache.h (regcache_xfree): Don't declare.
5586 * regcache.c (regcache_xfree): Remove.
5587 (do_regcache_xfree): Use delete.
5588 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
5589 * linux-fork.c (free_fork): Use delete.
5590 (fork_save_infrun_state): Likewise.
5591 * jit.c (jit_dealloc_cache): Use delete.
5592 * infrun.c (discard_infcall_suspend_state): Use delete.
5593
791199cc
TT
55942017-09-25 Tom Tromey <tom@tromey.com>
5595
5596 * regcache.h (regcache_xmalloc): Don't declare.
5597 (regcache_raw_set_cached_value): Update comment.
5598 * regcache.c (regcache_xmalloc): Remove.
5599 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
5600 * jit.c (jit_frame_sniffer): Use new.
5601 * frame.c (frame_save_as_regcache): Use new.
5602
289e23aa
AA
56032017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5604
5605 * NEWS: Advertise support for guarded-storage registers on IBM z.
5606
1b63490c
AA
56072017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5608
5609 * s390-linux-nat.c (have_regset_gs): New static variable.
5610 (s390_linux_fetch_inferior_registers): Handle guarded-storage
5611 control block and guarded-storage broadcast control regsets.
5612 (s390_read_description): Detect whether the target has
5613 guarded-storage support, return appropriate tdesc.
5614 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
5615 (features/s390x-gs-linux64.c): Likewise.
5616 (struct gdbarch_tdep) <have_gs>: New field.
5617 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
5618 (s390_gsbc_regset): New variables.
5619 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
5620 and s390_gsbc_regset, if applicable.
5621 (s390_core_read_description): Check whether core file was from a
5622 target with guarded-storage support; include appropriate regsets.
5623 (s390_gdbarch_init): Add registers for guarded-storage support.
5624 (_initialize_s390_tdep): Initialize new target descriptions that
5625 include registers for guarded-storage support.
5626 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
5627 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
5628 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
5629 (S390_NUM_REGS): Adjust macro definition.
5630 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
5631 (tdesc_s390x_gs_linux64): New declarations.
5632
96235dc1
AA
56332017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5634
5635 * features/s390-gs-linux64.xml: New file.
5636 * features/s390-gs.xml: New file.
5637 * features/s390-gsbc.xml: New file.
5638 * features/s390x-gs-linux64.xml: New file.
5639 * features/Makefile (WHICH): Add s390-gs-linux64 and
5640 s390x-gs-linux64.
5641 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
5642 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
5643 * features/s390-gs-linux64.c: New generated file.
5644 * features/s390x-gs-linux64.c: New file.
5645 * regformats/s390-gs-linux64.dat: New file.
5646 * regformats/s390x-gs-linux64.dat: New file.
5647
b4a7c699
TT
56482017-09-23 Tom Tromey <tom@tromey.com>
5649
5650 * defs.h (make_cleanup_override_quit_handler): Don't declare.
5651
c2f97536
TT
56522017-09-22 Tom Tromey <tom@tromey.com>
5653
5654 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
5655 type to scoped_restore_tmpl.
5656 <scoped_input_handler>: Initialize m_quit_handler directly.
5657
43573013
SDJ
56582017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5659
5660 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
5661 (cd_command): Likewise. Free "current_directory" before
5662 assigning to it.
5663 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
5664 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
5665 * top.c (gdb_dirbuf): Remove global declaration.
5666 * top.h (gdb_dirbuf): Likewise.
5667
6ec2e0f5
SDJ
56682017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5669
5670 * gnulib/aclocal.m4: Regenerate.
5671 * gnulib/config.in: Regenerate.
5672 * gnulib/configure: Regenerate.
5673 * gnulib/import/Makefile.am: Regenerate.
5674 * gnulib/import/Makefile.in: Regenerate.
5675 * gnulib/import/assure.h: New file.
5676 * gnulib/import/at-func.c: Likewise
5677 * gnulib/import/chdir-long.c: New file.
5678 * gnulib/import/chdir-long.h: New file.
5679 * gnulib/import/cloexec.c: New file.
5680 * gnulib/import/cloexec.h: New file.
5681 * gnulib/import/close.c: New file.
5682 * gnulib/import/closedir.c: New file.
5683 * gnulib/import/dirent-private.h: New file.
5684 * gnulib/import/dup-safer.c: New file.
5685 * gnulib/import/dup.c: New file.
5686 * gnulib/import/dup2.c: New file.
5687 * gnulib/import/error.c: New file.
5688 * gnulib/import/error.h: New file.
5689 * gnulib/import/exitfail.c: New file.
5690 * gnulib/import/exitfail.h: New file.
5691 * gnulib/import/fchdir.c: New file.
5692 * gnulib/import/fcntl.c: New file.
5693 * gnulib/import/fcntl.in.h: New file.
5694 * gnulib/import/fd-hook.c: New file.
5695 * gnulib/import/fd-hook.h: New file.
5696 * gnulib/import/fd-safer.c: New file.
5697 * gnulib/import/fdopendir.c: New file.
5698 * gnulib/import/filename.h: New file.
5699 * gnulib/import/filenamecat-lgpl.c: New file.
5700 * gnulib/import/filenamecat.h: New file.
5701 * gnulib/import/fstat.c: New file.
5702 * gnulib/import/fstatat.c: New file.
5703 * gnulib/import/getcwd-lgpl.c: New file.
5704 * gnulib/import/getcwd.c: New file.
5705 * gnulib/import/getdtablesize.c: New file.
5706 * gnulib/import/getlogin_r.c: New file.
5707 * gnulib/import/getprogname.c: New file.
5708 * gnulib/import/getprogname.h: New file.
5709 * gnulib/import/gettext.h: New file.
5710 * gnulib/import/glob-libc.h: New file.
5711 * gnulib/import/glob.c: New file.
5712 * gnulib/import/glob.in.h: New file.
5713 * gnulib/import/intprops.h: New file.
5714 * gnulib/import/m4/chdir-long.m4: New file.
5715 * gnulib/import/m4/close.m4: New file.
5716 * gnulib/import/m4/closedir.m4: New file.
5717 * gnulib/import/m4/d-ino.m4: New file.
5718 * gnulib/import/m4/d-type.m4: New file.
5719 * gnulib/import/m4/dup.m4: New file.
5720 * gnulib/import/m4/dup2.m4: New file.
5721 * gnulib/import/m4/error.m4: New file.
5722 * gnulib/import/m4/fchdir.m4: New file.
5723 * gnulib/import/m4/fcntl.m4: New file.
5724 * gnulib/import/m4/fcntl_h.m4: New file.
5725 * gnulib/import/m4/fdopendir.m4: New file.
5726 * gnulib/import/m4/filenamecat.m4: New file.
5727 * gnulib/import/m4/fstat.m4: New file.
5728 * gnulib/import/m4/fstatat.m4: New file.
5729 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
5730 * gnulib/import/m4/getcwd-path-max.m4: New file.
5731 * gnulib/import/m4/getcwd.m4: New file.
5732 * gnulib/import/m4/getdtablesize.m4: New file.
5733 * gnulib/import/m4/getlogin_r.m4: New file.
5734 * gnulib/import/m4/getprogname.m4: New file.
5735 * gnulib/import/m4/glob.m4: New file.
5736 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5737 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5738 * gnulib/import/m4/mempcpy.m4: New file.
5739 * gnulib/import/m4/memrchr.m4: New file.
5740 * gnulib/import/m4/mode_t.m4: New file.
5741 * gnulib/import/m4/msvc-inval.m4: New file.
5742 * gnulib/import/m4/msvc-nothrow.m4: New file.
5743 * gnulib/import/m4/open.m4: New file.
5744 * gnulib/import/m4/openat.m4: New file.
5745 * gnulib/import/m4/opendir.m4: New file.
5746 * gnulib/import/m4/readdir.m4: New file.
5747 * gnulib/import/m4/realloc.m4: New file.
5748 * gnulib/import/m4/rewinddir.m4: New file.
5749 * gnulib/import/m4/save-cwd.m4: New file.
5750 * gnulib/import/m4/strdup.m4: New file.
5751 * gnulib/import/m4/strerror.m4: New file.
5752 * gnulib/import/m4/unistd-safer.m4: New file.
5753 * gnulib/import/mempcpy.c: New file.
5754 * gnulib/import/memrchr.c: New file.
5755 * gnulib/import/msvc-inval.c: New file.
5756 * gnulib/import/msvc-inval.h: New file.
5757 * gnulib/import/msvc-nothrow.c: New file.
5758 * gnulib/import/msvc-nothrow.h: New file.
5759 * gnulib/import/open.c: New file.
5760 * gnulib/import/openat-die.c: New file.
5761 * gnulib/import/openat-priv.h: New file.
5762 * gnulib/import/openat-proc.c: New file.
5763 * gnulib/import/openat.c: New file.
5764 * gnulib/import/openat.h: New file.
5765 * gnulib/import/opendir.c: New file.
5766 * gnulib/import/pipe-safer.c: New file.
5767 * gnulib/import/readdir.c: New file.
5768 * gnulib/import/realloc.c: New file.
5769 * gnulib/import/rewinddir.c: New file.
5770 * gnulib/import/save-cwd.c: New file.
5771 * gnulib/import/save-cwd.h: New file.
5772 * gnulib/import/strdup.c: New file.
5773 * gnulib/import/strerror-override.c: New file.
5774 * gnulib/import/strerror-override.h: New file.
5775 * gnulib/import/strerror.c: New file.
5776 * gnulib/import/unistd--.h: New file.
5777 * gnulib/import/unistd-safer.h: New file.
5778 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
5779 "getcwd" and "glob".
5780 * ser-tcp.c: Undefine "close" before redefining it.
5781
432ae719
SM
57822017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5783
5784 * guile/scm-value.c (gdbscm_value_address): Initialize address,
5785 get rid of res_val.
5786
4fa7574e
RO
57872017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5788
5789 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
5790 <sol2,sparc>: Likewise.
5791 <sol2-64,i386>: Likewise.
5792
5793 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
5794 -Wdeprecated-declarations on *-*-solaris*.
5795 * configure: Regenerate.
5796
5797 * procfs.c: Include "nat/inferior.h".
5798 (procfs_info_proc): Fix typo.
5799
f6327dcb
KB
58002017-09-21 Kevin Buettner <kevinb@redhat.com>
5801
5802 * remote.c (vector): Include.
5803 (struct private_thread_info): Add field, thread_handle.
5804 (free_private_thread_info): Deallocate storage associated with
5805 thread handle.
5806 (get_private_info_thread): Initialize `thread_handle' field.
5807 (struct thread_item): Add field, thread_handle.
5808 (clear_threads_listing_context): Deallocate storage associated
5809 with thread handle.
5810 (start_thread): Add support for "handle" attribute.
5811 (thread_attributes): Add "handle".
5812 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
5813 field.
5814 (remote_update_thread_list): Update thread_handle.
5815 (remote_thread_handle_to_thread_info): New function.
5816 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
5817
fbbe5337
KB
58182017-09-21 Kevin Buettner <kevinb@redhat.com>
5819
5820 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
5821 function.
5822 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
5823 * python/python-internal.h (thread_object_type): Declare.
5824
e04ee09e
KB
58252017-09-21 Kevin Buettner <kevinb@redhat.com>
5826
5827 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
5828 (target_thread_handle_to_thread_info): Declare.
5829 * target.c (target_thread_handle_to_thread_info): New function.
5830 * target-delegates.c: Regenerate.
5831 * gdbthread.h (find_thread_by_handle): Declare.
5832 * thread.c (find_thread_by_handle): New function.
5833 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
5834 function.
5835 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
5836
1e5b66ed
SM
58372017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5838
5839 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
5840
ebe48ba0
SM
58412017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5842
5843 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
5844
0a0bf5dc
YQ
58452017-09-21 Yao Qi <yao.qi@linaro.org>
5846
5847 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
5848 to gdb_target_obs.
5849
d1b0a7bf
TT
58502017-09-20 Tom Tromey <tom@tromey.com>
5851
5852 * breakpoint.c (struct counted_command_line): Remove.
5853 (breakpoint_commands): Update.
5854 (alloc_counted_command_line, incref_counted_command_line)
5855 (decref_counted_command_line, do_cleanup_counted_command_line)
5856 (make_cleanup_decref_counted_command_line): Remove.
5857 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
5858 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
5859 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
5860 (save_breakpoints): Update.
5861 * breakpoint.h (counted_command_line): Now a typedef to
5862 shared_ptr.
5863 (struct breakpoint) <commands>: Now a counted_command_line.
5864 (struct bpstats) <command>: Likewise.
5865
48649e1b
TT
58662017-09-20 Tom Tromey <tom@tromey.com>
5867
5868 * breakpoint.c (struct commands_info, do_map_commands_command):
5869 Remove.
5870 (commands_command_1): Update.
5871 (iterate_over_related_breakpoints): Take a function_view.
5872 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
5873 (delete_command): Update.
5874 (map_breakpoint_numbers): Take a function_view.
5875 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
5876 (disable_command): Update.
5877 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
5878 (enable_command): Update.
5879 (struct disp_data, do_enable_breakpoint_disp)
5880 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
5881 (do_map_enable_delete_breakpoint): Remove.
5882 (enable_once_command, enable_count_command, enable_delete_command)
5883 (delete_trace_variable_command): Update.
5884
04afa70c
TT
58852017-09-20 Tom Tromey <tom@tromey.com>
5886
5887 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
5888 (bpstat_clear): Use delete.
5889 (bpstats): New constructors.
5890 (bpstat_copy, bpstat_stop_status): Use new.
5891 (dprintf_after_condition_true): Update.
5892 * breakpoint.h (bpstats::bpstats): Add constructors.
5893 (bpstats::~bpstats): Add destructor.
5894
c83833f4
PA
58952017-09-20 Pedro Alves <palves@redhat.com>
5896
5897 * eval.c (make_params): Delete, refactored as ...
5898 (class fake_method): ... this new type's ctor.
5899 (fake_method::~fake_method): New.
5900 (evaluate_subexp_standard): Use 'fake_method'.
5901
223ffa71
TT
59022017-09-20 Tom Tromey <tom@tromey.com>
5903
5904 * windows-nat.c (get_windows_debug_event, windows_wait)
5905 (do_initial_windows_stuff, windows_attach): Update.
5906 * utils.c (vwarning, internal_vproblem): Update.
5907 (ui_unregister_input_event_handler_cleanup)
5908 (prepare_to_handle_input): Remove.
5909 (class scoped_input_handler): New.
5910 (defaulted_query, prompt_for_continue): Update.
5911 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
5912 Update.
5913 * top.c (undo_terminal_modifications_before_exit): Update.
5914 * target/target.h (target_terminal_init, target_terminal_inferior)
5915 (target_terminal_ours): Don't declare.
5916 (class target_terminal): New.
5917 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
5918 (target_terminal_ours_for_output)
5919 (make_cleanup_restore_target_terminal): Don't declare.
5920 (target_terminal_info): Remove.
5921 * target.c (enum terminal_state, terminal_state): Remove.
5922 (target_terminal::terminal_state): Define.
5923 (target_terminal::init): Rename from target_terminal_init.
5924 (target_terminal::inferior): Rename from
5925 target_terminal_inferior.
5926 (target_terminal::ours): Rename from target_terminal_ours.
5927 (target_terminal::ours_for_output): Rename from
5928 target_terminal_ours_for_output.
5929 (target_terminal::info): New method.
5930 (cleanup_restore_target_terminal)
5931 (make_cleanup_restore_target_terminal): Remove.
5932 * solib.c (handle_solib_event): Update.
5933 * remote.c (remote_serial_quit_handler): Update.
5934 (remote_terminal_inferior, remote_wait_as): Update.
5935 * record-full.c (record_full_wait_1): Update.
5936 * nto-procfs.c (procfs_create_inferior): Update.
5937 * nat/fork-inferior.c (startup_inferior): Update.
5938 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
5939 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
5940 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
5941 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
5942 (mi_breakpoint_created, mi_breakpoint_deleted)
5943 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
5944 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5945 (mi_user_selected_context_changed, report_initial_inferior):
5946 Update.
5947 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
5948 (linux_nat_terminal_inferior): Update.
5949 * infrun.c (follow_fork_inferior)
5950 (handle_vfork_child_exec_or_exit, do_target_resume)
5951 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
5952 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
5953 Update.
5954 * inflow.c (child_terminal_init, info_terminal_command): Update.
5955 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
5956 (attach_command): Update.
5957 * infcall.c (call_thread_fsm_should_stop): Update.
5958 * gnu-nat.c (gnu_attach): Update.
5959 * extension.c (struct active_ext_lang_state)
5960 (restore_active_ext_lang): Update.
5961 * exceptions.c (print_flush): Update.
5962 * event-top.c (async_enable_stdin, default_quit_handler): Update.
5963 (struct quit_handler_cleanup_data, restore_quit_handler)
5964 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
5965 Remove.
5966 * cp-support.c (gdb_demangle): Update.
5967 * breakpoint.c (update_inserted_breakpoint_locations)
5968 (insert_breakpoint_locations, handle_jit_event)
5969 (disable_breakpoints_in_unloaded_shlib): Update.
5970 * annotate.c (annotate_breakpoints_invalid)
5971 (annotate_frames_invalid): Update.
5972
013af3fc
TT
59732017-09-20 Tom Tromey <tom@tromey.com>
5974
5975 * main.c (catch_command_errors): Rename from
5976 catch_command_errors_const.
5977 (captured_main_1): Update.
5978
06871ae8
PA
59792017-09-20 Pedro Alves <palves@redhat.com>
5980
5981 * cli/cli-cmds.c (list_command): Use print_sal_location.
5982 (print_sal_location): New function.
5983 (ambiguous_line_spec): Use print_sal_location.
5984 * linespec.c (symbol_to_sal): Record the symbol in the sal.
5985 * symtab.c (find_function_start_sal): Likewise.
5986 * symtab.h (symtab_and_line::symbol): New field.
5987
e5f25bc5
PA
59882017-09-20 Pedro Alves <palves@redhat.com>
5989
5990 * linespec.c (minsym_found): Handle non-text minsyms.
5991 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
5992
1b7fa39e
WT
59932017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
5994
5995 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
5996 backslash.
5997
37dd0825
WT
59982017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
5999
6000 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
6001 vmovups instead vmovaps.
6002 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
6003
4e5a4f58
JB
60042017-09-19 John Baldwin <jhb@FreeBSD.org>
6005
6006 * NEWS (Changes since GDB 8.0): Add starti.
6007 * infcmd.c (enum run_break): New.
6008 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
6009 case.
6010 (run_command): Use enum run_how.
6011 (start_command): Likewise.
6012 (starti_command): New function.
6013 (RUN_ARGS_HELP): New macro.
6014 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
6015 commands. Add starti command.
6016
aa70c9f1
YQ
60172017-09-19 Yao Qi <yao.qi@linaro.org>
6018
6019 * Makefile.in (monitor.o): Remove the rule.
6020
d6541620
YQ
60212017-09-19 Yao Qi <yao.qi@linaro.org>
6022
6023 * annotate.h (struct annotate_arg_emitter): Use
6024 DISABLE_COPY_AND_ASSIGN.
6025 * common/refcounted-object.h (refcounted_object): Likewise.
6026 * completer.h (struct completion_result): Likewise.
6027 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
6028 * filename-seen-cache.h (filename_seen_cache): Likewise.
6029 * gdbcore.h (thread_section_name): Likewise.
6030 * gdb_regex.h (compiled_regex): Likewise.
6031 * gdbthread.h (scoped_restore_current_thread): Likewise.
6032 * inferior.h (scoped_restore_current_inferior): Likewise.
6033 * jit.c (jit_reader): Likewise.
6034 * linespec.h (struct linespec_result): Likewise.
6035 * mi/mi-parse.h (struct mi_parse): Likewise.
6036 * nat/fork-inferior.c (execv_argv): Likewise.
6037 * progspace.h (scoped_restore_current_program_space): Likewise.
6038 * python/python-internal.h (class gdbpy_enter): Likewise.
6039 * regcache.h (regcache): Likewise.
6040 * target-descriptions.c (struct tdesc_reg): Likewise.
6041 (struct tdesc_type): Likewise.
6042 (struct tdesc_feature): Likewise.
6043 * ui-out.h (ui_out_emit_type): Likewise.
6044
0615127c
SM
60452017-09-18 Simon Marchi <simon.marchi@ericsson.com>
6046
6047 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
6048 label abort_expression.
6049
5e187554
SM
60502017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6051
6052 * common/buffer.c (buffer_xml_printf): Adjust.
6053 * common/xml-utils.c (xml_escape_text): Change return type to
6054 std::string, update code accordingly.
6055 * common/xml-utils.h (xml_escape_text): Change return type to
6056 std::string.
6057 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
6058 * windows-tdep.c (windows_xfer_shared_library): Adjust.
6059 * unittests/xml-utils-selftests.c (test_xml_escape_text):
6060 Adjust.
6061
c3d7b541
SM
60622017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6063
6064 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
6065 (SUBDIR_UNITTESTS_OBS): Add new object file.
6066 * unittests/xml-utils-selftests.c: New file.
6067
1526853e
SM
60682017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6069
6070 * common/selftest.h (selftest): New struct/interface.
6071 (register_test): Add name parameter, add new overload.
6072 (run_tests): Add filter parameter.
6073 (for_each_selftest_ftype): New typedef.
6074 (for_each_selftest): New declaration.
6075 * common/selftest.c (tests): Change type to
6076 map<string, unique_ptr<selftest>>.
6077 (simple_selftest): New struct.
6078 (register_test): New function.
6079 (register_test): Add name parameter and use it.
6080 (run_tests): Add filter parameter and use it. Add prints.
6081 Adjust to vector -> map change.
6082 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
6083 registering selftests.
6084 * arm-tdep.c (_initialize_arm_tdep): Likewise.
6085 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
6086 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
6087 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
6088 * findvar.c (_initialize_findvar): Likewise.
6089 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
6090 * maint.c (maintenance_selftest): Update call to run_tests.
6091 (maintenance_info_selftests): New function.
6092 (_initialize_maint_cmds): Register "maintenance info selftests"
6093 command. Update "maintenance selftest" doc.
6094 * regcache.c (_initialize_regcache): Add names when registering
6095 selftests.
6096 * rust-exp.y (_initialize_rust_exp): Likewise.
6097 * selftest-arch.c (gdbarch_selftest): New struct.
6098 (gdbarch_tests): Remove.
6099 (register_test_foreach_arch): Add name parameter. Call
6100 register_test.
6101 (tests_with_arch): Remove, move most content to
6102 gdbarch_selftest::operator().
6103 (_initialize_selftests_foreach_arch): Remove.
6104 * selftest-arch.h (register_test_foreach_arch): Add name
6105 parameter.
6106 (run_tests_with_arch): New declaration.
6107 * utils-selftests.c (_initialize_utils_selftests): Add names
6108 when registering selftests.
6109 * utils.c (_initialize_utils): Likewise.
6110 * unittests/array-view-selftests.c
6111 (_initialize_array_view_selftests): Likewise.
6112 * unittests/environ-selftests.c (_initialize_environ_selftests):
6113 Likewise.
6114 * unittests/function-view-selftests.c
6115 (_initialize_function_view_selftests): Likewise.
6116 * unittests/offset-type-selftests.c
6117 (_initialize_offset_type_selftests): Likewise.
6118 * unittests/optional-selftests.c
6119 (_initialize_optional_selftests): Likewise.
6120 * unittests/scoped_restore-selftests.c
6121 (_initialize_scoped_restore_selftests): Likewise.
6122 * NEWS: Document "maintenance selftest" and "maint info
6123 selftests".
6124
5846367a
SM
61252017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6126
6127 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
6128 scoped_restore.
6129
bd77e8ff
SM
61302017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6131
6132 * mi/mi-main.c (mi_load_progress): Make uiout variable
6133 a unique_ptr.
6134
26a67918
PA
61352017-09-15 Pedro Alves <palves@redhat.com>
6136
6137 * compile/compile-c-types.c (convert_enum, convert_int)
6138 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
6139
3f8a7804
SM
61402017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6141
6142 * dwarf2read.c (copy_string): Remove.
6143 (parse_macro_definition): Replace copy_string with savestring.
6144
8d200706
YQ
61452017-09-15 Yao Qi <yao.qi@linaro.org>
6146
6147 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
6148 gdb_target_obs.
6149 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
6150 Likewise.
6151 (i[34567]86-*-linux*): Likewise.
6152
d185219d
SM
61532017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6154
6155 * dwarf2expr.h (dwarf_stack_value): Add constructor.
6156 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
6157 <stack>: Change type to std::vector.
6158 <stack_len, stack_allocated>: Remove.
6159 <grow_stack>: Remove.
6160 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6161 (dwarf_expr_context::~dwarf_expr_context): Remove.
6162 (dwarf_expr_context::grow_stack): Remove.
6163 (dwarf_expr_context::push): Adjust.
6164 (dwarf_expr_context::pop): Adjust.
6165 (dwarf_expr_context::fetch): Adjust.
6166 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
6167 (dwarf_expr_context::stack_empty_p): Adjust.
6168 (dwarf_expr_context::execute_stack_op): Adjust.
6169
eccd80d6
SM
61702017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6171
6172 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
6173 return type to bool.
6174 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
6175
69009882
SM
61762017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6177
6178 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
6179 Change type to bool.
6180 (dwarf_stack_value) <in_stack_memory>: Likewise.
6181 (dwarf_expr_context) <push_address>: Change parameter type to
6182 bool.
6183 <fetch_in_stack_memory>: Change return type to bool.
6184 <push>: Change parameter type to bool.
6185 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
6186 to bool.
6187 (dwarf_expr_context::push_address): Likewise.
6188 (dwarf_expr_context::fetch_in_stack_memory): Change return type
6189 to bool.
6190 (dwarf_expr_context::execute_stack_op): Adjust.
6191 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
6192
1e467161
SM
61932017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6194
6195 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
6196 (struct dwarf_expr_context) <n_pieces>: Remove.
6197 <pieces>: Change type to std::vector.
6198 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6199 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
6200 pieces.
6201 (dwarf_expr_context::add_piece): Adjust.
6202 * dwarf2loc.c (struct piece_closure): Initialize fields.
6203 <n_pieces>: Remove.
6204 <pieces>: Change type to std::vector.
6205 (allocate_piece_closure): Adjust, change parameter to
6206 std::vector rvalue and std::move it to piece_closure.
6207 (rw_pieced_value): Adjust.
6208 (check_pieced_synthetic_pointer): Adjust.
6209 (indirect_synthetic_pointer): Adjust.
6210 (coerce_pieced_ref): Adjust.
6211 (free_pieced_value_closure): Adjust. Use delete to free
6212 piece_closure.
6213 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
6214 to allocate_piece_closure.
6215 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
6216
0782db84
SM
62172017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6218
6219 * probe.h (probe_ops_cp): Remove typedef.
6220 (DEF_VEC_P (probe_ops_cp)): Remove.
6221 (all_probe_ops): Change type to std::vector.
6222 * probe.c (info_probes_for_ops): Adjust to vector change.
6223 (probe_linespec_to_ops): Likewise.
6224 (all_probe_ops): Change type to std::vector.
6225 (_initialize_probe): Adjust to vector change.
6226 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
6227 * elfread.c (elf_get_probes): Likewise.
6228 * stap-probe.c (_initialize_stap_probe): Likewise.
6229
1eac6bea
SM
62302017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6231
6232 * probe.h (struct bound_probe): Define constructors.
6233 * probe.c (bound_probe_s): Remove typedef.
6234 (DEF_VEC_O (bound_probe_s)): Remove VEC.
6235 (collect_probes): Change return type to std::vector, remove
6236 cleanup.
6237 (compare_probes): Return bool, change parameter type. Change
6238 semantic to "less than".
6239 (gen_ui_out_table_header_info): Change parameter to std::vector
6240 and update.
6241 (exists_probe_with_pops): Likewise.
6242 (info_probes_for_ops): Update to std::vector change.
6243 (enable_probes_command): Likewise.
6244 (disable_probes_command): Likewise.
6245
aaa63a31
SM
62462017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6247
6248 * probe.h (struct probe_ops) <get_probes>: Change parameter from
6249 vec to std::vector.
6250 * probe.c (parse_probes_in_pspace): Update.
6251 (find_probes_in_objfile): Update.
6252 (find_probe_by_pc): Update.
6253 (collect_probes): Update.
6254 (probe_any_get_probes): Update.
6255 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
6256 return type to reference to std::vector.
6257 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
6258 std::vector and update.
6259 (dtrace_process_dof): Likewise.
6260 (dtrace_get_probes): Likewise.
6261 * elfread.c (elf_get_probes): Change return type to std::vector,
6262 store an std::vector in bfd_data.
6263 (probe_key_free): Update to std::vector.
6264 * stap-probe.c (handle_stap_probe): Change parameter to
6265 std::vector and update.
6266 (stap_get_probes): Likewise.
6267 * symfile-debug.c (debug_sym_get_probes): Change return type to
6268 std::vector and update.
6269
cb85b21b
TT
62702017-09-11 Tom Tromey <tom@tromey.com>
6271
6272 * breakpoint.c (program_breakpoint_here_p): Update.
6273 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
6274 from make_show_memory_breakpoints_cleanup. Return a
6275 scoped_restore_tmpl<int>.
6276 (restore_show_memory_breakpoints): Remove.
6277 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
6278 * mem-break.c (memory_validate_breakpoint): Update.
6279 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
6280 (ia64_memory_remove_breakpoint): Update.
6281 (ia64_breakpoint_from_pc): Update.
6282 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
6283 from make_show_memory_breakpoints_cleanup.
6284
8fbc99ef
TT
62852017-09-11 Tom Tromey <tom@tromey.com>
6286
6287 * d-namespace.c (d_lookup_symbol): Use std::string.
6288 (find_symbol_in_baseclass): Likewise.
6289
50feb4bd
TT
62902017-09-11 Tom Tromey <tom@tromey.com>
6291
6292 * ctf.c (ctf_start): Use std::string.
6293
c6dc63a1
TT
62942017-09-11 Tom Tromey <tom@tromey.com>
6295
6296 * ada-lang.c (is_known_support_routine): Update.
6297 (ada_unhandled_exception_name_addr_from_raise): Update.
6298 * guile/scm-frame.c (gdbscm_frame_name): Update.
6299 * python/py-frame.c (frapy_name): Update.
6300 (frapy_function): Update.
6301 * stack.h (find_frame_funname): Update.
6302 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
6303 (print_frame): Update.
6304
d6b9b80f
TT
63052017-09-11 Tom Tromey <tom@tromey.com>
6306
6307 * findcmd.c (put_bits): Take a gdb::byte_vector.
6308 (parse_find_args): Return gdb::byte_vector. "args" now const.
6309 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
6310 cleanups.
6311 (find_command): Update.
6312
a9921622
TT
63132017-09-11 Tom Tromey <tom@tromey.com>
6314
6315 * cli/cli-script.c (class scoped_restore_hook_in): New.
6316 (clear_hook_in_cleanup): Remove.
6317 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
6318 scoped_restore_hook_in.
6319
be0d7abb
TT
63202017-09-11 Tom Tromey <tom@tromey.com>
6321
6322 * cli/cli-script.c (restore_interp): Remove.
6323 (read_command_lines): Use scoped_restore_interp.
6324 * interps.c (scoped_restore_interp::set_temp): Rename from
6325 interp_set_temp.
6326 * interps.h (class scoped_restore_interp): New.
6327 (interp_set_temp): Remove.
6328
00f675ff
TT
63292017-09-11 Tom Tromey <tom@tromey.com>
6330
6331 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6332 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
6333 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
6334 scoped_restore.
6335 (mi_cmd_break_insert_1): Update.
6336 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
6337 scoped_restore.
6338
cb791d59
TT
63392017-09-11 Tom Tromey <tom@tromey.com>
6340
6341 * demangle.c (demangle_command): Update.
6342 * breakpoint.c (disable_command): Update.
6343 (enable_command): Update.
6344 (find_location_by_number): Make "number" const. Use
6345 get_number_trailer.
6346 * cli/cli-utils.c (extract_arg): Return std::string.
6347 * probe.c (parse_probe_linespec): Update. Change types.
6348 (collect_probes): Take string arguments.
6349 (parse_probe_linespec): Likewise.
6350 (info_probes_for_ops): Update.
6351 (enable_probes_command): Update.
6352 (disable_probes_command): Update.
6353 * break-catch-sig.c (catch_signal_split_args): Update.
6354 * mi/mi-parse.c (mi_parse): Update.
6355
2039bd9f
TT
63562017-09-11 Tom Tromey <tom@tromey.com>
6357
6358 * language.h (language_enum): Make argument const.
6359 * language.c (language_enum): Make argument const.
6360
f1735a53
TT
63612017-09-11 Tom Tromey <tom@tromey.com>
6362
6363 * common/common-utils.h (skip_to_space): Remove macro, redeclare
6364 as function.
6365 (skip_to_space): Rename from skip_to_space_const.
6366 * common/common-utils.c (skip_to_space): New function.
6367 (skip_to_space): Rename from skip_to_space_const.
6368 * cli/cli-utils.h (get_number): Rename from get_number_const.
6369 (extract_arg): Rename from extract_arg_const.
6370 * cli/cli-utils.c (get_number): Rename from get_number_const.
6371 (extract_arg): Rename from extract_arg_const.
6372 (number_or_range_parser::get_number): Use ::get_number.
6373 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
6374 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
6375 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
6376 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
6377 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
6378 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
6379 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
6380 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
6381
7d221d74
TT
63822017-09-11 Tom Tromey <tom@tromey.com>
6383
6384 * python/python.c (do_start_initialization): Use
6385 py-event-types.def to initialize types.
6386 Define all object type structures.
6387 * python/python-internal.h: Don't declare event initialization
6388 functions.
6389 * python/py-threadevent.c (thread_event_object_type): Don't
6390 define.
6391 * python/py-stopevent.c (stop_event_object_type): Don't define.
6392 * python/py-signalevent.c (signal_event_object_type): Don't
6393 declare or define.
6394 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6395 (clear_objfiles_event_object_type): Don't declare or define.
6396 * python/py-infevents.c (inferior_call_pre_event_object_type)
6397 (inferior_call_post_event_object_type)
6398 (register_changed_event_object_type)
6399 (memory_changed_event_object_type): Don't declare or define.
6400 * python/py-inferior.c (new_thread_event_object_type)
6401 (new_inferior_event_object_type)
6402 (inferior_deleted_event_object_type): Don't declare or define.
6403 * python/py-exitedevent.c (exited_event_object_type): Don't
6404 declare or define.
6405 * python/py-evts.c (gdbpy_initialize_py_events): Use
6406 py-all-events.def.
6407 * python/py-events.h (thread_event_object_type): Don't declare.
6408 (events_object): Use py-all-events.def.
6409 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
6410 py-event-types.def.
6411 * python/py-event-types.def: New file.
6412 * python/py-continueevent.c (create_continue_event_object): Don't
6413 declare or define.
6414 * python/py-bpevent.c (breakpoint_event_object_type): Don't
6415 declare or define.
6416 * python/py-all-events.def: New file.
6417
35c61a1d
TT
64182017-09-11 Tom Tromey <tom@tromey.com>
6419
6420 * python/py-threadevent.c (create_thread_event_object): Return
6421 gdbpy_ref.
6422 * python/py-stopevent.h (create_stop_event_object)
6423 (create_breakpoint_event_object, create_signal_event_object):
6424 Update.
6425 * python/py-stopevent.c (create_stop_event_object): Return
6426 gdbpy_ref.
6427 (emit_stop_event): Update.
6428 * python/py-signalevent.c (create_signal_event_object): Return
6429 gdbpy_ref.
6430 * python/py-infevents.c (create_inferior_call_event_object):
6431 Update.
6432 * python/py-event.h (create_event_object)
6433 (create_thread_event_object): Update.
6434 * python/py-event.c (create_event_object): Return gdbpy_ref.
6435 * python/py-continueevent.c: Return gdbpy_ref.
6436 * python/py-bpevent.c (create_breakpoint_event_object): Return
6437 gdbpy_ref.
6438
7c96f8c1
TT
64392017-09-11 Tom Tromey <tom@tromey.com>
6440
6441 PR python/15622:
6442 * NEWS: Add entry.
6443 * python/python.c (do_start_initialization): Initialize new event
6444 types.
6445 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
6446 (gdbpy_initialize_inferior_deleted_event)
6447 (gdbpy_initialize_new_thread_event): Declare.
6448 * python/py-threadevent.c (create_thread_event_object): Add option
6449 "thread" parameter.
6450 * python/py-inferior.c (new_thread_event_object_type)
6451 (new_inferior_event_object_type)
6452 (inferior_deleted_event_object_type): Declare.
6453 (python_new_inferior, python_inferior_deleted): New functions.
6454 (add_thread_object): Emit new_thread event.
6455 (gdbpy_initialize_inferior): Attach new functions to corresponding
6456 observers.
6457 (new_thread, new_inferior, inferior_deleted): Define new event
6458 types.
6459 * python/py-evts.c (gdbpy_initialize_py_events): Add new
6460 registries.
6461 * python/py-events.h (events_object) <new_inferior,
6462 inferior_deleted, new_thread>: New fields.
6463 * python/py-event.h (create_thread_event_breakpoint): Add optional
6464 "thread" parameter.
6465
72542b8e
AB
64662017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
6467
6468 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
6469 check current_ui instead.
6470 (internal_vproblem): Likewise.
6471
0d64823e
SM
64722017-09-09 Simon Marchi <simon.marchi@ericsson.com>
6473
6474 * thread.c (print_thread_info_1): Remove unnecessary calls to
6475 uiout->is_mi_like_p.
6476
eb1e02fd
TT
64772017-09-09 Tom Tromey <tom@tromey.com>
6478
6479 * namespace.h (add_using_directive): Update.
6480 * namespace.c (add_using_directive): Change type of excludes to
6481 std::vector.
6482 * dwarf2read.c (read_import_statement): Use std::vector.
6483 (read_namespace): Update.
6484 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6485
0fc21fd8
TT
64862017-09-09 Tom Tromey <tom@tromey.com>
6487
6488 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
6489
49663d05
TT
64902017-09-09 Tom Tromey <tom@tromey.com>
6491
6492 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
6493
0b868b60
TT
64942017-09-09 Tom Tromey <tom@tromey.com>
6495
6496 * stack.c (func_command): Use gdb::def_vector.
6497
c0470d48
TT
64982017-09-09 Tom Tromey <tom@tromey.com>
6499
6500 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
6501 ui_out_emit_list, ui_out_emit_tuple.
6502 (mi_cmd_var_update): Likewise.
6503
ca5909c7
TT
65042017-09-09 Tom Tromey <tom@tromey.com>
6505
6506 * mi/mi-interp.c (mi_user_selected_context_changed): Use
6507 ui_out_redirect_pop.
6508 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
6509 ui_out_redirect_pop.
6510 * utils.c (do_ui_out_redirect_pop)
6511 (make_cleanup_ui_out_redirect_pop): Remove.
6512 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
6513 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
6514 * ui-out.h (ui_out_redirect_pop): New class.
6515
e6a2252a
TT
65162017-09-09 Tom Tromey <tom@tromey.com>
6517
6518 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
6519 (list_available_thread_groups, mi_cmd_list_thread_groups)
6520 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
6521 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
6522 Likewise.
6523
393702cd
TT
65242017-09-09 Tom Tromey <tom@tromey.com>
6525
6526 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6527 ui_out_emit_tuple.
6528
76f9c9cf
TT
65292017-09-09 Tom Tromey <tom@tromey.com>
6530
6531 * target.c (flash_erase_command): Use ui_out_emit_tuple.
6532 * stack.c (print_frame): Use ui_out_emit_tuple.
6533 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
6534 (info_spu_mailbox_command, info_spu_dma_command)
6535 (info_spu_proxydma_command): Likewise.
6536 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
6537 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
6538 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6539 ui_out_emit_tuple.
6540 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
6541
dc9fe180
TT
65422017-09-09 Tom Tromey <tom@tromey.com>
6543
6544 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
6545 (class ui_out_emit_table): Update comment.
6546 * ui-out.c (do_cleanup_table_end)
6547 (make_cleanup_ui_out_table_begin_end): Remove.
6548 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
6549 (info_spu_dma_cmdlist): Likewise.
6550 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
6551 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
6552 ui_out_emit_table.
6553
f8cc3da6
TT
65542017-09-09 Tom Tromey <tom@tromey.com>
6555
6556 * thread.c (print_thread_info_1): Use ui_out_emit_table,
6557 ui_out_emit_list, gdb::optional.
6558
481695ed
JB
65592017-09-09 John Baldwin <jhb@FreeBSD.org>
6560
6561 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
6562 prototype.
6563 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
6564 prototype.
6565 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
6566 prototype.
6567 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
6568 * ada-exp.y: Remove _initialize_ada_exp prototype.
6569 * ada-lang.c: Remove _initialize_ada_language prototype.
6570 * ada-tasks.c: Remove _initialize_tasks prototype.
6571 * addrmap.c: Remove _initialize_addrmap prototype.
6572 * agent.c: Remove _initialize_agent prototype.
6573 * aix-thread.c: Remove _initialize_aix_thread prototype.
6574 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
6575 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
6576 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
6577 prototype.
6578 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
6579 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
6580 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
6581 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
6582 prototype.
6583 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
6584 prototype.
6585 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
6586 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
6587 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
6588 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
6589 prototype.
6590 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
6591 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
6592 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
6593 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
6594 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
6595 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
6596 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
6597 prototype.
6598 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
6599 prototype.
6600 * annotate.c: Remove _initialize_annotate prototype.
6601 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
6602 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
6603 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
6604 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
6605 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
6606 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
6607 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
6608 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
6609 prototype.
6610 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
6611 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
6612 * auto-load.c: Remove _initialize_auto_load prototype.
6613 * auxv.c: Remove _initialize_auxv prototype.
6614 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
6615 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
6616 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
6617 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
6618 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
6619 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
6620 prototype.
6621 * break-catch-throw.c: Remove _initialize_break_catch_throw
6622 prototype.
6623 * breakpoint.c: Remove _initialize_breakpoint prototype.
6624 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
6625 * btrace.c: Remove _initialize_btrace prototype.
6626 * charset.c: Remove _initialize_charset prototype.
6627 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
6628 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
6629 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
6630 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
6631 * cli/cli-script.c: Remove _initialize_cli_script prototype.
6632 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
6633 * coffread.c: Remove _initialize_coffread prototype.
6634 * compile/compile.c: Remove _initialize_compile prototype.
6635 * complaints.c: Remove _initialize_complaints prototype.
6636 * completer.c: Remove _initialize_completer prototype.
6637 * copying.awk: Remove _initialize_copying prototype.
6638 * copying.c: Regenerate.
6639 * core-regset.c: Remove _initialize_core_regset prototype.
6640 * corefile.c: Remove _initialize_core prototype.
6641 * corelow.c: Remove _initialize_corelow prototype.
6642 * cp-abi.c: Remove _initialize_cp_abi prototype.
6643 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
6644 * cp-support.c: Remove _initialize_cp_support prototype.
6645 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
6646 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
6647 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
6648 * ctf.c: Remove _initialize_ctf prototype.
6649 * d-lang.c: Remove _initialize_d_language prototype.
6650 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
6651 prototype.
6652 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
6653 * dbxread.c: Remove _initialize_dbxread prototype.
6654 * dcache.c: Remove _initialize_dcache prototype.
6655 * demangle.c: Remove _initialize_demangler prototype.
6656 * disasm-selftests.c: Remove _initialize_disasm_selftests
6657 prototype.
6658 * disasm.c: Remove _initialize_disasm prototype.
6659 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
6660 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
6661 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
6662 prototype.
6663 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
6664 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
6665 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
6666 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
6667 * elfread.c: Remove _initialize_elfread prototype.
6668 * exec.c: Remove _initialize_exec prototype.
6669 * extension.c: Remove _initialize_extension prototype.
6670 * f-lang.c: Remove _initialize_f_language prototype.
6671 * f-valprint.c: Remove _initialize_f_valprint prototype.
6672 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
6673 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
6674 * filesystem.c: Remove _initialize_filesystem prototype.
6675 * findcmd.c: Remove _initialize_mem_search prototype.
6676 * fork-child.c: Remove _initialize_fork_child prototype.
6677 * frame-base.c: Remove _initialize_frame_base prototype.
6678 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
6679 * frame.c: Remove _initialize_frame prototype.
6680 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
6681 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
6682 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
6683 * gcore.c: Remove _initialize_gcore prototype.
6684 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
6685 * gdbarch.c: Regenerate.
6686 * gdbarch.sh: Remove _initialize_gdbarch prototype.
6687 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
6688 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
6689 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
6690 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
6691 * go-lang.c: Remove _initialize_go_language prototype.
6692 * go32-nat.c: Remove _initialize_go32_nat prototype.
6693 * guile/guile.c: Remove _initialize_guile prototype.
6694 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
6695 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
6696 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
6697 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
6698 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
6699 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
6700 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
6701 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
6702 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
6703 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
6704 prototype.
6705 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
6706 prototype.
6707 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
6708 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
6709 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
6710 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
6711 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
6712 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
6713 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
6714 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
6715 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
6716 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
6717 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
6718 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
6719 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
6720 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
6721 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
6722 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
6723 prototype.
6724 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
6725 prototype.
6726 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
6727 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
6728 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
6729 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
6730 * infcall.c: Remove _initialize_infcall prototype.
6731 * infcmd.c: Remove _initialize_infcmd prototype.
6732 * inferior.c: Remove _initialize_inferiors prototype.
6733 * inflow.c: Remove _initialize_inflow prototype.
6734 * infrun.c: Remove _initialize_infrun prototype.
6735 * interps.c: Remove _initialize_interpreter prototype.
6736 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
6737 * jit.c: Remove _initialize_jit prototype.
6738 * language.c: Remove _initialize_language prototype.
6739 * linux-fork.c: Remove _initialize_linux_fork prototype.
6740 * linux-nat.c: Remove _initialize_linux_nat prototype.
6741 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
6742 * linux-thread-db.c: Remove _initialize_thread_db prototype.
6743 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
6744 * m2-lang.c: Remove _initialize_m2_language prototype.
6745 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
6746 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
6747 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
6748 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
6749 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
6750 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
6751 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
6752 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
6753 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
6754 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
6755 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
6756 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
6757 * machoread.c: Remove _initialize_machoread prototype.
6758 * macrocmd.c: Remove _initialize_macrocmd prototype.
6759 * macroscope.c: Remove _initialize_macroscope prototype.
6760 * maint.c: Remove _initialize_maint_cmds prototype.
6761 * mdebugread.c: Remove _initialize_mdebugread prototype.
6762 * memattr.c: Remove _initialize_mem prototype.
6763 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
6764 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
6765 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
6766 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
6767 * mi/mi-main.c: Remove _initialize_mi_main prototype.
6768 * microblaze-linux-tdep.c: Remove
6769 _initialize_microblaze_linux_tdep prototype.
6770 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
6771 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
6772 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
6773 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
6774 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
6775 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
6776 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
6777 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
6778 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
6779 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
6780 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
6781 prototype.
6782 * mipsread.c: Remove _initialize_mipsread prototype.
6783 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
6784 prototype.
6785 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
6786 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
6787 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
6788 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
6789 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
6790 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
6791 prototype.
6792 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
6793 * nto-procfs.c: Remove _initialize_procfs prototype.
6794 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
6795 * objc-lang.c: Remove _initialize_objc_language prototype.
6796 * objfiles.c: Remove _initialize_objfiles prototype.
6797 * observer.c: Remove observer_test_first_notification_function,
6798 observer_test_second_notification_function,
6799 observer_test_third_notification_function, and
6800 _initialize_observer prototypes.
6801 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
6802 * osabi.c: Remove _initialize_gdb_osabi prototype.
6803 * osdata.c: Remove _initialize_osdata prototype.
6804 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
6805 * parse.c: Remove _initialize_parse prototype.
6806 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
6807 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
6808 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
6809 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
6810 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
6811 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
6812 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
6813 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
6814 * printcmd.c: Remove _initialize_printcmd prototype.
6815 * probe.c: Remove _initialize_probe prototype.
6816 * proc-api.c: Remove _initialize_proc_api prototype.
6817 * proc-events.c: Remove _initialize_proc_events prototype.
6818 * proc-service.c: Remove _initialize_proc_service prototype.
6819 * procfs.c: Remove _initialize_procfs prototype.
6820 * psymtab.c: Remove _initialize_psymtab prototype.
6821 * python/python.c: Remove _initialize_python prototype.
6822 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
6823 * record-btrace.c: Remove _initialize_record_btrace prototype.
6824 * record-full.c: Remove _initialize_record_full prototype.
6825 * record.c: Remove _initialize_record prototype.
6826 * regcache.c: Remove _initialize_regcache prototype.
6827 * reggroups.c: Remove _initialize_reggroup prototype.
6828 * remote-notif.c: Remove _initialize_notif prototype.
6829 * remote-sim.c: Remove _initialize_remote_sim prototype.
6830 * remote.c: Remove _initialize_remote prototype.
6831 * reverse.c: Remove _initialize_reverse prototype.
6832 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
6833 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
6834 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
6835 prototype.
6836 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
6837 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
6838 * rust-exp.y: Remove _initialize_rust_exp prototype.
6839 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
6840 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
6841 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
6842 * score-tdep.c: Remove _initialize_score_tdep prototype.
6843 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
6844 prototype.
6845 * ser-go32.c: Remove _initialize_ser_dos prototype.
6846 * ser-mingw.c: Remove _initialize_ser_windows prototype.
6847 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
6848 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
6849 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
6850 * serial.c: Remove _initialize_serial prototype.
6851 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
6852 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
6853 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
6854 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
6855 * skip.c: Remove _initialize_step_skip prototype.
6856 * sol-thread.c: Remove _initialize_sol_thread prototype.
6857 * solib-aix.c: Remove _initialize_solib_aix prototype.
6858 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
6859 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
6860 * solib-frv.c: Remove _initialize_frv_solib prototype.
6861 * solib-spu.c: Remove _initialize_spu_solib prototype.
6862 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
6863 * solib-target.c: Remove _initialize_solib_target prototype.
6864 * solib.c: Remove _initialize_solib prototype.
6865 * source.c: Remove _initialize_source prototype.
6866 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
6867 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
6868 prototype.
6869 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
6870 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
6871 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
6872 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
6873 prototype.
6874 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
6875 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
6876 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
6877 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
6878 prototype.
6879 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
6880 prototype.
6881 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
6882 prototype.
6883 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
6884 prototype.
6885 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
6886 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
6887 prototype.
6888 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
6889 prototype.
6890 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
6891 prototype.
6892 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
6893 prototype.
6894 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
6895 prototype.
6896 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
6897 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
6898 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
6899 * stabsread.c: Remove _initialize_stabsread prototype.
6900 * stack.c: Remove _initialize_stack prototype.
6901 * stap-probe.c: Remove _initialize_stap_probe prototype.
6902 * std-regs.c: Remove _initialize_frame_reg prototype.
6903 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
6904 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
6905 * symfile.c: Remove _initialize_symfile prototype.
6906 * symmisc.c: Remove _initialize_symmisc prototype.
6907 * symtab.c: Remove _initialize_symtab prototype.
6908 * target-dcache.c: Remove _initialize_target_dcache prototype.
6909 * target-descriptions.c: Remove _initialize_target_descriptions
6910 prototype.
6911 * thread.c: Remove _initialize_thread prototype.
6912 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
6913 prototype.
6914 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
6915 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
6916 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
6917 prototype.
6918 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
6919 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
6920 * tracefile.c: Remove _initialize_tracefile prototype.
6921 * tracepoint.c: Remove _initialize_tracepoint prototype.
6922 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
6923 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
6924 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
6925 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
6926 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
6927 * tui/tui-win.c: Remove _initialize_tui_win prototype.
6928 * tui/tui.c: Remove _initialize_tui prototype.
6929 * typeprint.c: Remove _initialize_typeprint prototype.
6930 * user-regs.c: Remove _initialize_user_regs prototype.
6931 * utils.c: Remove _initialize_utils prototype.
6932 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
6933 * valarith.c: Remove _initialize_valarith prototype.
6934 * valops.c: Remove _initialize_valops prototype.
6935 * valprint.c: Remove _initialize_valprint prototype.
6936 * value.c: Remove _initialize_values prototype.
6937 * varobj.c: Remove _initialize_varobj prototype.
6938 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
6939 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
6940 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
6941 * windows-nat.c: Remove _initialize_windows_nat,
6942 _initialize_check_for_gdb_ini, and _initialize_loadable
6943 prototypes.
6944 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
6945 * xcoffread.c: Remove _initialize_xcoffread prototype.
6946 * xml-support.c: Remove _initialize_xml_support prototype.
6947 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
6948 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
6949 prototype.
6950 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
6951 prototype.
6952 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
6953
a611b5cb
KS
69542017-09-08 Keith Seitz <keiths@redhat.com>
6955
6956 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
6957 field.
6958
469412dd
CW
69592017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
6960
6961 * f-valprint.c (f_val_print): Remove check for one byte
6962 sized integers. Remove printing of character type.
6963
a5ad232b
FP
69642017-09-08 Frank Penczek <frank.penczek@intel.com>
6965 Christoph Weinmann <christoph.t.weinmann@intel.com>
6966 Bernhard Heckel <bernhard.heckel@intel.com>
6967
6968 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
6969 to maintain proper indentation when printing pointers/refs.
6970
e5014227
JB
69712017-09-07 Joel Brobecker <brobecker@adacore.com>
6972
6973 GDB 8.0.1 released.
6974
63c99141
JB
69752017-09-07 Joel Brobecker <brobecker@adacore.com>
6976
6977 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
6978
69c1e056
TT
69792017-09-05 Tom Tromey <tom@tromey.com>
6980
6981 * parse.c (funcall_chain): Now a std::vector.
6982 (start_arglist, end_arglist): Simplify.
6983 (free_funcalls): Remove.
6984 (parse_exp_in_context_1): Remove cleanup.
6985
fef704bf
TT
69862017-09-05 Tom Tromey <tom@tromey.com>
6987
6988 * go-exp.y (go_parse): Don't create a cleanup.
6989
5613c585
TT
69902017-09-05 Tom Tromey <tom@tromey.com>
6991
6992 * d-exp.y (PrimaryExpression): Use std::string.
6993 (d_parse): Don't create a cleanup.
6994
eae49211
TT
69952017-09-05 Tom Tromey <tom@tromey.com>
6996
6997 * utils.c (do_clear_parser_state): Remove.
6998 (make_cleanup_clear_parser_state): Remove.
6999 * p-exp.y (pascal_parse): Use scoped_restore.
7000 * m2-exp.y (m2_parse): Use scoped_restore.
7001 * f-exp.y (f_parse): Use scoped_restore.
7002 * d-exp.y (d_parse): Use scoped_restore.
7003 * c-exp.y (c_parse): Use scoped_restore.
7004 * ada-exp.y (ada_parse): Use scoped_restore.
7005 * utils.h (make_cleanup_clear_parser_state): Remove.
7006
73b9be8b
KS
70072017-09-06 Keith Seitz <keiths@redhat.com>
7008
7009 * dwarf2read.c (dw2_linkage_name_attr): New function.
7010 (dw2_linkage_name): New function.
7011 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
7012 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
7013 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
7014
a102602b
KR
70152017-09-06 Kamil Rytarowski <n54@gmx.com>
7016
7017 * config/djgpp/djconfig.sh: Correct shell portability issue.
7018
28ad437d
KR
70192017-09-06 Kamil Rytarowski <n54@gmx.com>
7020
7021 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
7022
351787dd
JB
70232017-09-06 John Baldwin <jhb@FreeBSD.org>
7024
7025 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
7026 * NEWS: Mention new FreeBSD/mips native configuration.
7027 * configure.host: Add aarch64*-*-freebsd*.
7028 * configure.nat: Likewise.
7029 * aarch64-fbsd-nat.c: New file.
7030
c0f84956
JB
70312017-09-06 John Baldwin <jhb@FreeBSD.org>
7032
7033 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
7034 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
7035 * NEWS: Mention new FreeBSD/aarch64 target.
7036 * configure.tgt: Add aarch64*-*-freebsd*.
7037 * aarch64-fbsd-tdep.c: New file.
7038 * aarch64-fbsd-tdep.h: New file.
7039
7610297a
KR
70402017-09-06 Kamil Rytarowski <n54@gmx.com>
7041
7042 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
7043
fbd1b771
JK
70442017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7045
7046 * parse.c (find_minsym_type_and_address): Don't relocate addresses
7047 of TLS symbols.
7048
5ca79eae
PW
70492017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7050
7051 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
7052 call.
7053
bf93d7ba
SM
70542017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7055
7056 * infrun.c (follow_exec): Call add_thread after
7057 target_find_description.
7058
1bb7c059
SM
70592017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7060
7061 * infrun.c (handle_inferior_event_1): When exec'ing, read
7062 stop_pc after follow_exec.
7063
fc809827
SM
70642017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7065
7066 * remote.c (process_g_packet): Update error message.
7067
d2fcdd85
YQ
70682017-09-05 Yao Qi <yao.qi@linaro.org>
7069
7070 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
7071 targets.
7072
e69570ee
PA
70732017-09-05 Pedro Alves <palves@redhat.com>
7074
7075 * eval.c (eval_call, evaluate_funcall): New functions, factored
7076 out from ...
7077 (evaluate_subexp_standard): ... this.
7078
22916b07
YQ
70792017-09-05 Yao Qi <yao.qi@linaro.org>
7080
7081 * amd64-tdep.c (amd64_target_description): Create target
7082 descriptions.
7083 (_initialize_amd64_tdep): Don't call functions
7084 initialize_tdesc_amd64_*. Add self tests.
7085 * arch/amd64.c (amd64_create_target_description): Add parameter
7086 is_linux. Call set_tdesc_osabi if is_linux is true.
7087 * arch/amd64.h (amd64_create_target_description): Update the
7088 declaration.
7089 * arch/i386.c (i386_create_target_description): Add parameter
7090 is_linux. Call set_tdesc_osabi if is_linux is true.
7091 * arch/i386.h (i386_create_target_description): Update
7092 declaration.
7093 * configure.tgt: Add i386.o to gdb_target_obs.
7094 * features/Makefile (XMLTOC): Remove i386/*.xml.
7095 * features/i386/amd64-avx-avx512.c: Remove.
7096 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
7097 * features/i386/amd64-avx-mpx.c: Remove.
7098 * features/i386/amd64-avx.c: Remove.
7099 * features/i386/amd64-mpx.c: Remove.
7100 * features/i386/amd64.c: Remove.
7101 * features/i386/i386-avx-avx512.c: Remove.
7102 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
7103 * features/i386/i386-avx-mpx.c: Remove.
7104 * features/i386/i386-avx.c: Remove.
7105 * features/i386/i386-mmx.c: Remove.
7106 * features/i386/i386-mpx.c: Remove.
7107 * features/i386/i386.c: Remove.
7108 * i386-tdep.c: Don't include features/i386/i386*.c., include
7109 target-descriptions.h and arch/i386.h.
7110 (i386_target_description): Create target descriptions.
7111 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
7112 functions. Do self tests.
7113
0854b7b1
YQ
71142017-09-05 Yao Qi <yao.qi@linaro.org>
7115
7116 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
7117 * features/i386/amd64-avx-avx512-linux.c: Removed.
7118 * features/i386/amd64-avx-linux.c: Removed.
7119 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
7120 * features/i386/amd64-avx-mpx-linux.c: Removed.
7121 * features/i386/amd64-linux.c: Removed.
7122 * features/i386/amd64-mpx-linux.c: Removed.
7123 * features/i386/x32-avx-avx512-linux.c: Removed.
7124 * features/i386/x32-avx-linux.c: Removed.
7125 * features/i386/x32-linux.c: Removed.
7126
b4570e4b
YQ
71272017-09-05 Yao Qi <yao.qi@linaro.org>
7128
7129 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
7130 features/i386/*.c.
7131 (amd64_linux_read_description): Call
7132 amd64_create_target_description.
7133 * arch/amd64.c: New file.
7134 * arch/amd64.h: New file.
7135 * configure.tgt (x86_64-*-linux*): Append amd64.o.
7136 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
7137
6c73f67f
YQ
71382017-09-05 Yao Qi <yao.qi@linaro.org>
7139
7140 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
7141 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
7142 (amd64_linux_read_description): Create target descriptions.
7143 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
7144 functions. Add unit tests.
7145 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
7146 x32-core.xml.
7147 * features/i386/64bit-avx.c: Generated.
7148 * features/i386/64bit-avx512.c: Generated.
7149 * features/i386/64bit-core.c: Generated.
7150 * features/i386/64bit-linux.c: Generated.
7151 * features/i386/64bit-mpx.c: Generated.
7152 * features/i386/64bit-pkeys.c: Generated.
7153 * features/i386/64bit-segments.c: Generated.
7154 * features/i386/64bit-sse.c: Generated.
7155 * features/i386/x32-core.c: Generated.
7156 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
7157 c files for amd64-linux and x32-linux.
7158
9d3d478b
YQ
71592017-09-05 Yao Qi <yao.qi@linaro.org>
7160
7161 * amd64-linux-tdep.c (amd64_linux_read_description): New
7162 function.
7163 (amd64_linux_core_read_description): Call
7164 amd64_linux_read_description.
7165 (amd64_linux_init_abi): Likewise.
7166 (amd64_x32_linux_init_abi): Likewise.
7167 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
7168 * x86-linux-nat.c (x86_linux_read_description): Call
7169 amd64_linux_read_description.
7170
b9f1d50f
YQ
71712017-09-05 Yao Qi <yao.qi@linaro.org>
7172
7173 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
7174 comments.
7175
188c9e6d
YQ
71762017-09-05 Yao Qi <yao.qi@linaro.org>
7177
7178 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
7179 * features/i386/i386-avx-avx512-linux.c: Remove.
7180 * features/i386/i386-avx-linux.c: Remove.
7181 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
7182 * features/i386/i386-avx-mpx-linux.c: Remove.
7183 * features/i386/i386-linux.c: Remove.
7184 * features/i386/i386-mmx-linux.c: Remove.
7185 * features/i386/i386-mpx-linux.c: Remove.
7186
5f035c07
YQ
71872017-09-05 Yao Qi <yao.qi@linaro.org>
7188
7189 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
7190 (SFILES): Add arch/i386.c.
7191 (HFILES_NO_SRCDIR): Add arch/i386.h.
7192 * arch/i386.c: New file.
7193 * arch/i386.h: New file.
7194 * arch/tdesc.h (allocate_target_description): Declare.
7195 (set_tdesc_architecture): Declare.
7196 (set_tdesc_osabi): Declare.
7197 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
7198 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
7199 include arch/i386.h.
7200 (i386_linux_read_description): Remove code and call
7201 i386_create_target_description.
7202 (set_tdesc_architecture): New function.
7203 (set_tdesc_osabi): New function.
7204 * target-descriptions.h (allocate_target_description): Remove.
7205
0abe8a89
YQ
72062017-09-05 Yao Qi <yao.qi@linaro.org>
7207
7208 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
7209 * target-descriptions.c (tdesc_create_feature): Likewise, and
7210 adjust code.
7211 * features/i386/32bit-avx.c: Re-generated.
7212 * features/i386/32bit-avx512.c: Re-generated.
7213 * features/i386/32bit-core.c: Re-generated.
7214 * features/i386/32bit-linux.c: Re-generated.
7215 * features/i386/32bit-mpx.c: Re-generated.
7216 * features/i386/32bit-pkeys.c: Re-generated.
7217 * features/i386/32bit-sse.c: Re-generated.
7218
0a188386
YQ
72192017-09-05 Yao Qi <yao.qi@linaro.org>
7220
7221 * regformats/regdef.h (struct reg): Override operator == and !=.
7222
f49ff000
YQ
72232017-09-05 Yao Qi <yao.qi@linaro.org>
7224
7225 * arch/tdesc.h: New file.
7226 * regformats/regdat.sh: Generate code using tdesc_create_reg.
7227 * target-descriptions.c: Update comments.
7228 * target-descriptions.h: Include "arch/tdesc.h". Remove the
7229 declarations.
7230 * features/i386/32bit-avx.c: Re-generated.
7231 * features/i386/32bit-avx512.c: Re-generated.
7232 * features/i386/32bit-core.c: Re-generated.
7233 * features/i386/32bit-linux.c: Re-generated.
7234 * features/i386/32bit-mpx.c: Re-generated.
7235 * features/i386/32bit-pkeys.c: Re-generated.
7236 * features/i386/32bit-sse.c: Re-generated.
7237
f7000548
YQ
72382017-09-05 Yao Qi <yao.qi@linaro.org>
7239
7240 * regformats/regdat.sh: Update generated code.
7241
c9a5e2a5
YQ
72422017-09-05 Yao Qi <yao.qi@linaro.org>
7243
7244 * regformats/regdat.sh: Adjust code order.
7245
d6b687ac
SM
72462017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7247
7248 * expprint.c (dump_subexp_body_standard): Use constant format
7249 string in fprintf_filtered call.
7250
a379bfd0
JB
72512017-09-04 John Baldwin <jhb@FreeBSD.org>
7252
7253 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
7254 NetBSD/i386.
7255 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
7256
f7efc967
JB
72572017-09-04 John Baldwin <jhb@FreeBSD.org>
7258
7259 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
7260
c49fbc6c
JB
72612017-09-04 John Baldwin <jhb@FreeBSD.org>
7262
7263 * bsd-kvm.o: Define _KMEMUSER.
7264 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
7265 * configure: Regenerate.
7266
26562e73
JB
72672017-09-04 John Baldwin <jhb@FreeBSD.org>
7268
7269 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
7270 * i386-fbsd-nat.c: Likewise.
7271
31cf1487
JB
72722017-09-04 John Baldwin <jhb@FreeBSD.org>
7273
7274 * unittests/array-view-selftests.c: Add include of <array>.
7275
5b9f8a7c
JB
72762017-09-04 John Baldwin <jhb@FreeBSD.org>
7277
7278 * spu-tdep.c (flush_ea_cache): Add missing argument to
7279 call_function_by_hand.
7280
d69cf9b2
PA
72812017-09-04 Pedro Alves <palves@redhat.com>
7282
7283 * NEWS (Safer support for debugging with no debug info): New.
7284
3693fdb3
PA
72852017-09-04 Pedro Alves <palves@redhat.com>
7286
7287 * c-exp.y (function_method, function_method_void): Add current
7288 instance flags to TYPE_INSTANCE.
7289 * dwarf2read.c (check_modifier): New.
7290 (compute_delayed_physnames): Assert that only C++ adds delayed
7291 physnames. Mark fn_fields as const/volatile depending on
7292 physname.
7293 * eval.c (make_params): New type_instance_flags parameter. Use
7294 it as the new type's instance flags.
7295 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
7296 flags element and pass it to make_params.
7297 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
7298 instance flags element.
7299 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
7300 * gdbtypes.h: Include "enum-flags.h".
7301 (type_instance_flags): New enum-flags type.
7302 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
7303 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
7304 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
7305 (follow_type_instance_flags): New function.
7306 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
7307 * parser-defs.h (follow_type_instance_flags): Declare.
7308 * valops.c (value_struct_elt_for_reference): const/volatile must
7309 match too.
7310
e68cb8e0
PA
73112017-09-04 Pedro Alves <palves@redhat.com>
7312
7313 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
7314 function/method scopes; lookup the nested name as a function local
7315 static variable.
7316
858be34c
PA
73172017-09-04 Pedro Alves <palves@redhat.com>
7318
7319 (%type <voidval>): Add function_method.
7320 * c-exp.y (exp): New production for calls with no arguments.
7321 (function_method, function_method_void_or_typelist): New
7322 productions.
7323 (exp): New production for "method()::static_var".
7324 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
7325 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7326 Handle OP_FUNC_STATIC_VAR.
7327 * parse.c (operator_length_standard):
7328 Handle OP_FUNC_STATIC_VAR.
7329
dd5901a6
PA
73302017-09-04 Pedro Alves <palves@redhat.com>
7331
7332 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
7333 handling.
7334 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7335 Ditto.
7336 * parse.c (operator_length_standard, operator_check_standard):
7337 Ditto.
7338 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
7339
46a4882b
PA
73402017-09-04 Pedro Alves <palves@redhat.com>
7341
7342 * ax-gdb.c: Include "typeprint.h".
7343 (gen_expr_for_cast): New function.
7344 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
7345 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
7346 type is unknown.
7347 * dwarf2read.c (new_symbol_full): Fallback to int instead of
7348 nodebug_data_symbol.
7349 * eval.c: Include "typeprint.h".
7350 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
7351 Error out if symbol has unknown type.
7352 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
7353 evaluate_subexp_for_cast.
7354 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
7355 OP_VAR_MSYM_VALUE.
7356 (evaluate_subexp_for_cast): New function.
7357 * gdbtypes.c (init_nodebug_var_type): New function.
7358 (objfile_type): Use it to initialize types of variables with no
7359 debug info.
7360 * typeprint.c (error_unknown_type): New.
7361 * typeprint.h (error_unknown_type): New declaration.
7362 * compile/compile-c-types.c (convert_type_basic): Handle
7363 TYPE_CODE_ERROR; warn and fallback to int for variables with
7364 unknown type.
7365
fe13dfec
PA
73662017-09-04 Pedro Alves <palves@redhat.com>
7367
7368 * eval.c (evaluate_var_value): New function, factored out from ...
7369 (evaluate_subexp_standard): ... here.
7370
d008ee21
PA
73712017-09-04 Pedro Alves <palves@redhat.com>
7372
7373 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
7374 Remove useless assignments to 'op'.
7375
827d0c51
PA
73762017-09-04 Pedro Alves <palves@redhat.com>
7377
7378 * eval.c (eval_skip_value): New function.
7379 (evaluate_subexp_standard): Use it.
7380
2c5a2be1
PA
73812017-09-04 Pedro Alves <palves@redhat.com>
7382
7383 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
7384 function name from symbol/minsym and pass it to
7385 error_call_unknown_return_type.
7386
74ea4be4
PA
73872017-09-04 Pedro Alves <palves@redhat.com>
7388
7389 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
7390 * ax-gdb.c (gen_msym_var_ref): New function.
7391 (gen_expr): Handle OP_VAR_MSYM_VALUE.
7392 * eval.c (evaluate_var_msym_value): New function.
7393 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
7394 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
7395 to call_function_by_hand.
7396 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7397 Handle OP_VAR_MSYM_VALUE.
7398 (union exp_element) <msymbol>: New field.
7399 * minsyms.h (struct type): Forward declare.
7400 (find_minsym_type_and_address): Declare.
7401 * parse.c (write_exp_elt_msym): New function.
7402 (write_exp_msymbol): Delete, refactored as ...
7403 (find_minsym_type_and_address): ... this new function.
7404 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
7405 (operator_length_standard, operator_check_standard): Handle
7406 OP_VAR_MSYM_VALUE.
7407 * std-operator.def (OP_VAR_MSYM_VALUE): New.
7408
7022349d
PA
74092017-09-04 Pedro Alves <palves@redhat.com>
7410
7411 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
7412 TYPE_GNU_IFUNC specially here. Throw error if return type is
7413 unknown.
7414 * ada-typeprint.c (print_func_type): Handle functions with unknown
7415 return type.
7416 * c-typeprint.c (c_type_print_base): Handle functions and methods
7417 with unknown return type.
7418 * compile/compile-c-symbols.c (convert_symbol_bmsym)
7419 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
7420 * compile/compile-c-types.c: Include "objfiles.h".
7421 (convert_func): For functions with unknown return type, warn and
7422 default to int.
7423 * compile/compile-object-run.c (compile_object_run): Adjust call
7424 to call_function_by_hand_dummy.
7425 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
7426 call_function_by_hand.
7427 * eval.c (evaluate_subexp_standard): Adjust calls to
7428 call_function_by_hand. Handle functions and methods with unknown
7429 return type. Pass expect_type to call_function_by_hand.
7430 * f-typeprint.c (f_type_print_base): Handle functions with unknown
7431 return type.
7432 * gcore.c (call_target_sbrk): Adjust call to
7433 call_function_by_hand.
7434 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
7435 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
7436 an integer address type instead of nodebug.
7437 * guile/scm-value.c (gdbscm_value_call): Adjust call to
7438 call_function_by_hand.
7439 * infcall.c (error_call_unknown_return_type): New function.
7440 (call_function_by_hand): New "default_return_type" parameter.
7441 Pass it down.
7442 (call_function_by_hand_dummy): New "default_return_type"
7443 parameter. Use it instead of defaulting to int. If there's no
7444 default and the return type is unknown, throw an error. If
7445 there's a default return type, and the called function has no
7446 debug info, then assume the function is prototyped.
7447 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
7448 New "default_return_type" parameter.
7449 (error_call_unknown_return_type): New declaration.
7450 * linux-fork.c (call_lseek): Cast return type of lseek.
7451 (inferior_call_waitpid, checkpoint_command): Adjust calls to
7452 call_function_by_hand.
7453 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
7454 calls to call_function_by_hand.
7455 * m2-typeprint.c (m2_procedure): Handle functions with unknown
7456 return type.
7457 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7458 (value_nsstring, print_object_command): Adjust calls to
7459 call_function_by_hand.
7460 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
7461 functions with unknown return type.
7462 (pascal_type_print_func_varspec_suffix): New function.
7463 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
7464 TYPE_CODE_METHOD>: Use it.
7465 * python/py-value.c (valpy_call): Adjust call to
7466 call_function_by_hand.
7467 * rust-lang.c (rust_evaluate_funcall): Adjust call to
7468 call_function_by_hand.
7469 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
7470 call_function_by_hand.
7471 * valops.c (value_allocate_space_in_inferior): Adjust call to
7472 call_function_by_hand.
7473 * typeprint.c (type_print_unknown_return_type): New function.
7474 * typeprint.h (type_print_unknown_return_type): New declaration.
7475
54990598
PA
74762017-09-04 Pedro Alves <palves@redhat.com>
7477
7478 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
7479 types with more than one parameter as prototyped.
7480
9a24775b
PA
74812017-09-04 Pedro Alves <palves@redhat.com>
7482
7483 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
7484 (disassemble_command): Use gdb_disassembly_flags instead of bare
7485 int.
7486 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
7487 (dump_insns, do_mixed_source_and_assembly_deprecated)
7488 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
7489 Use gdb_disassembly_flags instead of bare int.
7490 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
7491 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
7492 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
7493 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
7494 (enum gdb_disassembly_flag): ... values of this new enumeration.
7495 (gdb_disassembly_flags): Define.
7496 (gdb_disassembly)
7497 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
7498 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
7499 gdb_disassembly_flags instead of bare int.
7500 * record-btrace.c (btrace_insn_history)
7501 (record_btrace_insn_history, record_btrace_insn_history_range)
7502 (record_btrace_insn_history_from): Use gdb_disassembly_flags
7503 instead of bare int.
7504 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
7505 Use gdb_disassembly_flags instead of bare int.
7506 * target-debug.h (target_debug_print_gdb_disassembly_flags):
7507 Define.
7508 * target-delegates.c: Regenerate.
7509 * target.c (target_insn_history, target_insn_history_from)
7510 (target_insn_history_range): Use gdb_disassembly_flags instead of
7511 bare int.
7512 * target.h: Include "disasm.h".
7513 (struct target_ops) <to_insn_history, to_insn_history_from,
7514 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
7515 int.
7516 (target_insn_history, target_insn_history_from)
7517 (target_insn_history_range): Use gdb_disassembly_flags instead of
7518 bare int.
7519
80a65e9b
SM
75202017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7521
7522 * cli/cli-script.c (build_command_line): For if/while commands,
7523 check whether args is empty.
7524
6b66338c
SM
75252017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7526
7527 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
7528 (enum command_control_type): Likewise.
7529 (struct command_line): Likewise.
7530 (free_command_lines): Likewise.
7531 (struct command_lines_deleter): Likewise.
7532 (command_line_up): Likewise.
7533 (read_command_lines): Likewise.
7534 (read_command_lines_1): Likewise.
7535 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
7536 (enum command_control_type): Likewise.
7537 (struct command_line): Likewise.
7538 (free_command_lines): Likewise.
7539 (struct command_lines_deleter): Likewise.
7540 (command_line_up): Likewise.
7541 (read_command_lines): Likewise.
7542 (read_command_lines_1): Likewise.
7543 * breakpoint.h: Include cli/cli-script.h.
7544 * extension-priv.h: Likewise.
7545 * gdbcmd.h: Likewise.
7546
51abb421
PA
75472017-09-04 Pedro Alves <palves@redhat.com>
7548
7549 * ada-lang.c (is_known_support_routine): Move sal declaration to
7550 where it is initialized.
7551 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
7552 (parse_breakpoint_sals, decode_static_tracepoint_spec)
7553 (clear_command, update_static_tracepoint): Remove init_sal
7554 references. Move declarations closer to initializations.
7555 * cli/cli-cmds.c (list_command): Move sal declarations closer to
7556 initializations.
7557 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
7558 references. Move sal declarations closer to initializations.
7559 * frame.c (find_frame_sal): Return a symtab_and_line via function
7560 return instead of output parameter. Remove init_sal references.
7561 * frame.h (find_frame_sal): Return a symtab_and_line via function
7562 return instead of output parameter.
7563 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
7564 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
7565 instead of memset.
7566 (gdbscm_find_pc_line): Remove init_sal reference.
7567 * infcall.c (call_function_by_hand_dummy): Remove init_sal
7568 references. Move declarations closer to initializations.
7569 * infcmd.c (set_step_frame): Update. Move declarations closer to
7570 initializations.
7571 (finish_backward): Remove init_sal references. Move declarations
7572 closer to initializations.
7573 * infrun.c (process_event_stop_test, handle_step_into_function)
7574 (insert_hp_step_resume_breakpoint_at_frame)
7575 (insert_step_resume_breakpoint_at_caller): Likewise.
7576 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
7577 (symbol_to_sal): Likewise.
7578 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
7579 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
7580 to its initialization.
7581 * reverse.c (save_bookmark_command): Use new/delete. Remove
7582 init_sal references. Move declarations closer to initializations.
7583 * source.c (get_current_source_symtab_and_line): Remove brace
7584 initialization.
7585 (set_current_source_symtab_and_line): Now takes the sal by const
7586 reference. Remove brace initialization.
7587 (line_info): Remove init_sal reference.
7588 * source.h (set_current_source_symtab_and_line): Now takes a
7589 symtab_and_line via const reference.
7590 * stack.c (set_current_sal_from_frame): Adjust.
7591 (print_frame_info): Adjust.
7592 (get_last_displayed_sal): Return the sal via function return
7593 instead of via output parameter. Simplify.
7594 (frame_info): Adjust.
7595 * stack.h (get_last_displayed_sal): Return the sal via function
7596 return instead of via output parameter.
7597 * symtab.c (init_sal): Delete.
7598 (find_pc_sect_line): Remove init_sal references. Move
7599 declarations closer to initializations.
7600 (find_function_start_sal): Remove init_sal references. Move
7601 declarations closer to initializations.
7602 * symtab.h (struct symtab_and_line): In-class initialize all
7603 fields.
7604 * tracepoint.c (set_traceframe_context)
7605 (print_one_static_tracepoint_marker): Remove init_sal references.
7606 Move declarations closer to initializations.
7607 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
7608 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
7609 declarations closer to initializations.
7610 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
7611 init_sal references. Adjust.
7612
6c5b2ebe
PA
76132017-09-04 Pedro Alves <palves@redhat.com>
7614
7615 * ax-gdb.c (agent_command_1): Use range-for.
7616 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7617 * breakpoint.c: Include "common/array-view.h".
7618 (init_breakpoint_sal, create_breakpoint_sal): Change sals
7619 parameter from struct symtabs_and_lines to
7620 array_view<symtab_and_line>. Adjust. Use range-for. Update.
7621 (breakpoint_sals_to_pc): Change sals parameter from struct
7622 symtabs_and_lines to std::vector reference.
7623 (check_fast_tracepoint_sals): Change sals parameter from struct
7624 symtabs_and_lines to std::array_view. Use range-for.
7625 (decode_static_tracepoint_spec): Return a std::vector instead of
7626 symtabs_and_lines. Update.
7627 (create_breakpoint): Update.
7628 (break_range_command, until_break_command, clear_command): Update.
7629 (base_breakpoint_decode_location, bkpt_decode_location)
7630 (bkpt_probe_create_sals_from_location)
7631 (bkpt_probe_decode_location, tracepoint_decode_location)
7632 (tracepoint_probe_decode_location)
7633 (strace_marker_create_sals_from_location): Return a std::vector
7634 instead of symtabs_and_lines.
7635 (strace_marker_create_breakpoints_sal): Update.
7636 (strace_marker_decode_location): Return a std::vector instead of
7637 symtabs_and_lines. Update.
7638 (update_breakpoint_locations): Change struct symtabs_and_lines
7639 parameters to gdb::array_view. Adjust.
7640 (location_to_sals): Return a std::vector instead of
7641 symtabs_and_lines. Update.
7642 (breakpoint_re_set_default): Use std::vector instead of struct
7643 symtabs_and_lines.
7644 (decode_location_default): Return a std::vector instead of
7645 symtabs_and_lines. Update.
7646 * breakpoint.h: Include "common/array-view.h".
7647 (struct breakpoint_ops) <decode_location>: Now returns a
7648 std::vector instead of returning a symtabs_and_lines via output
7649 parameter.
7650 (update_breakpoint_locations): Change sals parameters to use
7651 gdb::array_view.
7652 * cli/cli-cmds.c (edit_command, list_command): Update to use
7653 std::vector and gdb::array_view.
7654 (ambiguous_line_spec): Adjust to use gdb::array_view and
7655 range-for.
7656 (compare_symtabs): Rename to ...
7657 (cmp_symtabs): ... this. Change parameters to symtab_and_line
7658 const reference and adjust.
7659 (filter_sals): Rewrite using std::vector and standard algorithms.
7660 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
7661 (jump_command): Update to use std::vector.
7662 * linespec.c (struct linespec_state) <canonical_names>: Update
7663 comment.
7664 (add_sal_to_sals_basic): Delete.
7665 (add_sal_to_sals, filter_results, convert_results_to_lsals)
7666 (decode_line_2, create_sals_line_offset)
7667 (convert_address_location_to_sals, convert_linespec_to_sals)
7668 (convert_explicit_location_to_sals, parse_linespec)
7669 (event_location_to_sals, decode_line_full, decode_line_1)
7670 (decode_line_with_current_source)
7671 (decode_line_with_last_displayed, decode_objc)
7672 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
7673 (linespec_result::~linespec_result): Adjust to use std::vector
7674 instead of symtabs_and_lines.
7675 * linespec.h (linespec_sals::sals): Now a std::vector.
7676 (struct linespec_result): Use std::vector, bool, and in-class
7677 initialization.
7678 (decode_line_1, decode_line_with_current_source)
7679 (decode_line_with_last_displayed): Return std::vector.
7680 * macrocmd.c (info_macros_command): Use std::vector.
7681 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
7682 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
7683 std::vector.
7684 * probe.h (parse_probes): Return a std::vector.
7685 * python/python.c (gdbpy_decode_line): Use std::vector and
7686 gdb::array_view.
7687 * source.c (select_source_symtab, line_info): Use std::vector.
7688 * stack.c (func_command): Use std::vector.
7689 * symtab.h (struct symtabs_and_lines): Delete.
7690 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
7691
7c44b49c
PA
76922017-09-04 Pedro Alves <palves@redhat.com>
7693
7694 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7695 unittests/array-view-selftests.c.
7696 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
7697 * common/array-view.h: New file.
7698 * unittests/array-view-selftests.c: New file.
7699
e439fa14
PA
77002017-09-04 Pedro Alves <palves@redhat.com>
7701
7702 * cli/cli-cmds.c (edit_command): Pass message to
7703 ambiguous_line_spec.
7704 (list_command): Pass message to ambiguous_line_spec. Say
7705 "first"/"last" instead of "start" and "end" to be consistent with
7706 the manual.
7707 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
7708 them to print formatted message.
7709
7525b645
PA
77102017-09-04 Pedro Alves <palves@redhat.com>
7711
7712 * btrace.c (ftrace_add_pt): Pass btrace_insn to
7713 ftrace_update_insns by reference instead of pointer.
7714
badc0020
YQ
77152017-09-04 Yao Qi <yao.qi@linaro.org>
7716
7717 * i386-go32-tdep.c: Include x86-xstate.h.
7718 (i386_go32_init_abi): Call i386_target_description.
7719 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
7720 if xcr0 is X86_XSTATE_X87_MASK.
7721 * i386-tdep.h (tdesc_i386): Remove the declaration.
7722 (tdesc_i386_mmx): Likewise.
7723
d78bdb54
YQ
77242017-09-04 Yao Qi <yao.qi@linaro.org>
7725
7726 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
7727 X86_XSTATE_SSE_MASK instead of 0.
7728
ca1fa5ee
YQ
77292017-09-04 Yao Qi <yao.qi@linaro.org>
7730
7731 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
7732 i386_target_description.
7733 * i386-fbsd-nat.c (i386fbsd_read_description): Call
7734 i386_target_description.
7735 * i386-tdep.c (i386_gdbarch_init): Likewise.
7736
2434b019
YQ
77372017-09-04 Yao Qi <yao.qi@linaro.org>
7738
7739 * amd64-darwin-tdep.c: Include "x86-xstate.h".
7740 (x86_darwin_init_abi_64): Call amd64_target_description.
7741 * amd64-dicos-tdep.c: Likewise.
7742 * amd64-fbsd-nat.c: Likewise.
7743 * amd64-fbsd-tdep.c: Likewise.
7744 * amd64-nbsd-tdep.c: Likewise.
7745 * amd64-obsd-tdep.c: Likewise.
7746 * amd64-sol2-tdep.c: Likewise.
7747 * amd64-windows-tdep.c: Likewise.
7748 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
7749
0860c437
SM
77502017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7751
7752 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
7753 (btrace_function) <insn>: Change type to use std::vector.
7754 * btrace.c (ftrace_debug, ftrace_call_num_insn,
7755 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
7756 ftrace_update_insns, ftrace_compute_global_level_offset,
7757 btrace_stitch_bts, btrace_clear, btrace_insn_get,
7758 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
7759 change to std::vector.
7760 (ftrace_update_insns): Adjust to change to std::vector, change
7761 type of INSN parameter.
7762 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
7763 * record-btrace.c (btrace_call_history_insn_range,
7764 btrace_compute_src_line_range,
7765 record_btrace_frame_prev_register): Adjust to change to
7766 std::vector.
7767 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
7768 to change to std::vector.
7769
0638b7f9
TT
77702017-09-03 Tom Tromey <tom@tromey.com>
7771
7772 * corefile.c (reopen_exec_file): Use std::string.
7773
8f84fb0e
TT
77742017-09-03 Tom Tromey <tom@tromey.com>
7775
7776 * compile/compile.c (compile_register_name_mangled): Return
7777 std::string.
7778 * compile/compile-loc2c.c (pushf_register_address): Update.
7779 (pushf_register): Update.
7780 * compile/compile-c-types.c (convert_array): Update.
7781 * compile/compile-c-symbols.c (generate_vla_size): Update.
7782 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
7783 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
7784 (convert_one_symbol): Update.
7785 (generate_c_for_for_one_variable): Update.
7786 * compile/compile-c-support.c (c_get_range_decl_name): Return a
7787 std::string.
7788 (generate_register_struct): Update.
7789 * compile/compile-internal.h (c_get_range_decl_name): Return a
7790 std::string.
7791 (compile_register_name_mangled): Return std::string.
7792
18e9961f
TT
77932017-09-03 Tom Tromey <tom@tromey.com>
7794
7795 * utils.c (perror_string): Return a std::string.
7796 (throw_perror_with_name, perror_warning_with_name): Update.
7797
45343786
TT
77982017-09-03 Tom Tromey <tom@tromey.com>
7799
7800 * demangle.c (demangle_command): Use std::string,
7801 unique_xmalloc_ptr.
7802
b57af503
TT
78032017-09-03 Tom Tromey <tom@tromey.com>
7804
7805 * cli/cli-setshow.c (do_set_command): Use std::string.
7806
6eecf35f
TT
78072017-09-03 Tom Tromey <tom@tromey.com>
7808
7809 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
7810
56496dd4
TT
78112017-09-03 Tom Tromey <tom@tromey.com>
7812
7813 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
7814
e91a1fa7
TT
78152017-09-03 Tom Tromey <tom@tromey.com>
7816
7817 * mi/mi-cmd-env.c (env_execute_cli_command): Use
7818 gdb::unique_xmalloc_ptr.
7819
7ffd83d7
TT
78202017-09-03 Tom Tromey <tom@tromey.com>
7821
7822 * thread.c (print_thread_info_1): Use string_printf.
7823 (thread_apply_command, thread_apply_all_command): Use
7824 std::string.
7825
1ccbe998
TT
78262017-09-03 Tom Tromey <tom@tromey.com>
7827
7828 * valprint.c (val_print_string): Update.
7829 * gdbcore.h (memory_error_message): Return std::string.
7830 * corefile.c (memory_error_message): Return std::string.
7831 (memory_error): Update.
7832 * breakpoint.c (insert_bp_location): Update.
7833
23fdd69e
SM
78342017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7835
7836 * target/waitstatus.h (target_waitstatus_to_string): Change
7837 return type to std::string.
7838 * target/waitstatus.c (target_waitstatus_to_string): Return
7839 std::string.
7840 * target.h (target_waitstatus_to_string): Remove declaration.
7841 * infrun.c (resume, clear_proceed_status_thread,
7842 print_target_wait_results, do_target_wait, save_waitstatus,
7843 stop_all_threads): Adjust.
7844 * record-btrace.c (record_btrace_wait): Adjust.
7845 * target-debug.h
7846 (target_debug_print_struct_target_waitstatus_p): Adjust.
7847
5c811d30
JK
78482017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7849
7850 PR gdb/22046
7851 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
7852 detection.
7853
0a2dde4a
SDJ
78542017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7855
7856 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
7857 for setting/unsetting environment variables on the remote target.
7858 (New remote packets): Add entries for QEnvironmentHexEncoded,
7859 QEnvironmentUnset and QEnvironmentReset.
7860 * common/environ.c (gdb_environ::operator=): Extend method to
7861 handle m_user_set_env_list and m_user_unset_env_list.
7862 (gdb_environ::clear): Likewise.
7863 (match_var_in_string): Change type of first parameter from 'char
7864 *' to 'const char *'.
7865 (gdb_environ::set): Extend method to handle
7866 m_user_set_env_list and m_user_unset_env_list.
7867 (gdb_environ::unset): Likewise.
7868 (gdb_environ::clear_user_set_env): New method.
7869 (gdb_environ::user_set_envp): Likewise.
7870 (gdb_environ::user_unset_envp): Likewise.
7871 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
7872 m_user_unset_env_list on move constructor/assignment.
7873 (unset): Add new default parameter 'update_unset_list = true'.
7874 (clear_user_set_env): New method.
7875 (user_set_envp): Likewise.
7876 (user_unset_envp): Likewise.
7877 (m_user_set_env_list): New std::set.
7878 (m_user_unset_env_list): Likewise.
7879 * common/rsp-low.c (hex2str): New function.
7880 (bin2hex): New overload for bin2hex function.
7881 * common/rsp-low.c (hex2str): New prototype.
7882 (str2hex): New overload prototype.
7883 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
7884 QEnvironmentUnset and QEnvironmentReset.
7885 (remote_protocol_features): Add QEnvironmentHexEncoded,
7886 QEnvironmentUnset and QEnvironmentReset packets.
7887 (send_environment_packet): New function.
7888 (extended_remote_environment_support): Likewise.
7889 (extended_remote_create_inferior): Call
7890 extended_remote_environment_support.
7891 (_initialize_remote): Add QEnvironmentHexEncoded,
7892 QEnvironmentUnset and QEnvironmentReset packet configs.
7893 * unittests/environ-selftests.c (gdb_selftest_env_var):
7894 New variable.
7895 (test_vector_initialization): New function.
7896 (test_init_from_host_environ): Likewise.
7897 (test_reinit_from_host_environ): Likewise.
7898 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
7899 Likewise.
7900 (test_unset_set_empty_vector): Likewise.
7901 (test_vector_clear): Likewise.
7902 (test_std_move): Likewise.
7903 (test_move_constructor):
7904 (test_self_move): Likewise.
7905 (test_set_unset_reset): Likewise.
7906 (run_tests): Rewrite in terms of the functions above.
7907
654670a4
WP
79082017-08-31 Weimin Pan <weimin.pan@oracle.com>
7909
7910 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
7911 (adi_available): Use a temp variable of type CORE_ADDR as argument
7912 3 when calling target_auxv_search.
7913 (adi_normalize_address): Use masks and xor operators to calculate
7914 normalized address.
7915 (adi_read_versions, adi_write_versions, adi_print_versions)
7916 (do_examine, do_assign): Use paddress.
7917
7755ddb7
JB
79182017-08-29 John Baldwin <jhb@FreeBSD.org>
7919
7920 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
7921 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
7922 out of loop and add supply of FIR.
7923 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
7924 add collect of FIR.
7925
fd437cbc
SM
79262017-08-28 Simon Marchi <simon.marchi@ericsson.com>
7927
3804a343 7928 PR gdb/21827
fd437cbc
SM
7929 * cli/cli-script.c (define_command): Don't convert command name
7930 to lower case.
7931
988f6b3d
JB
79322017-08-25 Joel Brobecker <brobecker@adacore.com>
7933
7934 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
7935 Update all callers accordingly. Remove all code blocks handling
7936 the case where DISPP is not NULL.
7937
663c44ac
JK
79382017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7939
7940 PR symtab/22003
7941 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
7942 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7943 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
7944
f1902523
JK
79452017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7946
7947 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
7948 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
7949 (read_comp_units_from_section): New parameter abbrev_section, use
7950 read_and_check_comp_unit_head, allocate signatured_type if needed.
7951 (create_all_comp_units): Update read_comp_units_from_section caller.
7952
87215ad1
SDJ
79532017-08-23 Pedro Alves <palves@redhat.com>
7954
7955 PR remote/21852
7956 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
7957 to null_ptid and switch to thread without reading the registers
7958 after adding the inferior.
7959
6e41ddec
JK
79602017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7961
7962 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
7963 compile-gcc.
7964 * compile/compile.c (compile_gcc, show_compile_gcc): New.
7965 (compile_to_object): Implement compile_gcc.
7966 (_initialize_compile): Install "set compile-gcc". Initialize
7967 compile_gcc.
7968
e68c32d5
JK
79692017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7970
7971 * compile/compile.c (compile_to_object): Conditionally call
7972 set_verbose. Conditionally call compile or compile_v0.
7973
58afddc6
WP
79742017-08-07 Weimin Pan <weimin.pan@oracle.com>
7975
7976 * sparc64-tdep.h: (adi_normalize_address): New export.
7977 * sparc-nat.h: (open_adi_tag_fd): New export.
7978 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
7979 * sparc64-linux-tdep.c:
7980 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
7981 (sparc64_linux_handle_segmentation_fault): New function.
7982 (sparc64_linux_init_abi): Register
7983 sparc64_linux_handle_segmentation_fault
7984 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
7985 (sparc64_addr_bits_remove): New function.
7986 (sparc64_init_abi): Register sparc64_addr_bits_remove.
7987 (MAX_PROC_NAME_SIZE): New macro.
7988 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
7989 (sparc64adilist): New variable.
7990 (adi_proc_list): New variable.
7991 (find_adi_info): New function.
7992 (add_adi_info): New function.
7993 (get_adi_info_proc): New function.
7994 (get_adi_info): New function.
7995 (info_adi_command): New function.
7996 (read_maps_entry): New function.
7997 (adi_available): New function.
7998 (adi_normalize_address): New function.
7999 (adi_align_address): New function.
8000 (adi_convert_byte_count): New function.
8001 (adi_tag_fd): New function.
8002 (adi_is_addr_mapped): New function.
8003 (adi_read_versions): New function.
8004 (adi_write_versions): New function.
8005 (adi_print_versions): New function.
8006 (do_examine): New function.
8007 (do_assign): New function.
8008 (adi_examine_command): New function.
8009 (adi_assign_command): New function.
8010 (_initialize_sparc64_adi_tdep): New function.
8011
11db9430
SM
80122017-08-22 Simon Marchi <simon.marchi@ericsson.com>
8013
8014 * breakpoint.c (breakpoints_info): Rename to ...
8015 (info_breakpoints_command): ... this.
8016 (watchpoints_info): Rename to ...
8017 (info_watchpoints_command): ... this.
8018 (tracepoints_info): Rename to ...
8019 (info_tracepoints_command): ... this.
8020 (_initialize_breakpoint): Adjust.
8021 * dcache.c (dcache_info): Rename to ...
8022 (info_display_command): ... this.
8023 (_initialize_dcache): Adjust.
8024 * frame.h (args_info): Rename to ...
8025 (info_args_command): ... this.
8026 (locals_info): Rename to ...
8027 (info_locals_command): ... this.
8028 * infcmd.c (nofp_registers_info): Rename to ...
8029 (info_registers_command): ... this.
8030 (float_info): Rename to ...
8031 (info_float_command): ... this.
8032 (program_info): Rename to ...
8033 (info_program_command): ... this.
8034 (all_registers_info): Rename to ...
8035 (info_all_registers_command): ... this.
8036 (vector_info): Rename to ...
8037 (info_vector_command): ... this.
8038 (float_info): Rename to ...
8039 (info_float_command): ... this.
8040 (_initialize_infcmd): Adjust.
8041 * inferior.h (term_info): Rename to ...
8042 (info_terminal_command): ... this.
8043 * inflow.c (term_info): Rename to ...
8044 (info_terminal_command): ... this.
8045 (_initialize_inflow): Adjust.
8046 * infrun.c (signals_info): Rename to ...
8047 (info_signals_command): ... this.
8048 (_initialize_infrun): Adjust.
8049 * objc-lang.c (classes_info): Rename to ...
8050 (info_classes_command): ... this.
8051 (selectors_info): Rename to ...
8052 (info_selectors_command): ... this.
8053 (_initialize_objc_language): Adjust.
8054 * printcmd.c (sym_info): Rename to ...
8055 (info_symbol_command): ... this.
8056 (address_info): Rename to ...
8057 (info_address_command): ... this.
8058 (display_info): Rename to ...
8059 (info_display_command): ... this.
8060 (_initialize_printcmd): Adjust.
8061 * reverse.c (bookmarks_info): Rename to ...
8062 (info_breakpoints_command): ... this.
8063 (_initialize_reverse): Adjust.
8064 * ser-go32.c (dos_info): Rename to ...
8065 (info_serial_command): ... this.
8066 (_initialize_ser_dos): Adjust.
8067 * skip.c (skip_info): Rename to ...
8068 (info_skip_command): ... this.
8069 (_initialize_step_skip): Adjust.
8070 * source.c (line_info): Rename to ...
8071 (info_line_command): ... this.
8072 (source_info): Rename to ...
8073 (info_source_command)
8074 * stack.c (frame_info): Rename to ...
8075 (info_frame_command): ... this.
8076 (locals_info): Rename to ...
8077 (info_locals_command): ... this.
8078 (args_info): Rename to ...
8079 (info_args_command): ... this.
8080 (_initialize_stack): Adjust.
8081 * symtab.c (sources_info): Rename to ...
8082 (info_sources_command): ... this.
8083 (variables_info): Rename to ...
8084 (info_variables_command): ... this.
8085 (functions_info): Rename to ...
8086 (info_functions_command): ... this.
8087 (types_info): Rename to ...
8088 (info_types_command): ... this.
8089 (_initialize_symtab): Adjust.
8090 * target.c (target_info): Rename to ...
8091 (info_target_command): ... this.
8092 (initialize_targets): Adjust.
8093 * tracepoint.c (tvariables_info): Rename to ...
8094 (info_tvariables_command): ... this.
8095 (scope_info): Rename to ...
8096 (info_scope_command): ... this.
8097 (trace_dump_actions): Adjust.
8098 (_initialize_tracepoint): Adjust.
8099
b270e6f9
TT
81002017-08-22 Tom Tromey <tom@tromey.com>
8101
8102 * breakpoint.h (install_breakpoint): Update.
8103 * breakpoint.c (add_solib_catchpoint): Update.
8104 (install_breakpoint): Change argument to a std::unique_ptr.
8105 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
8106 (create_breakpoint_sal, create_breakpoint): Update.
8107 (watch_command_1, catch_exec_command_1)
8108 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
8109 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
8110 Return the breakpoint.
8111 (set_raw_breakpoint_without_location, set_raw_breakpoint)
8112 (new_single_step_breakpoint): Update.
8113 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
8114 std::unique_ptr.
8115 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8116 std::unique_ptr.
8117 * break-catch-sig.c (create_signal_catchpoint): Use
8118 std::unique_ptr.
8119 * ada-lang.c (create_ada_exception_catchpoint): Use
8120 std::unique_ptr.
8121
36bd8eaa
TT
81222017-08-22 Tom Tromey <tom@tromey.com>
8123
8124 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
8125
56f37645
TT
81262017-08-22 Tom Tromey <tom@tromey.com>
8127
8128 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
8129 (lookup_partial_symbol): Update.
8130
0b581c69
TT
81312017-08-22 Tom Tromey <tom@tromey.com>
8132
8133 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
8134 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
8135 (find_and_open_source, symtab_to_fullname): Update.
8136 * psymtab.c (psymtab_to_fullname): Update.
8137
14278e1f
TT
81382017-08-22 Tom Tromey <tom@tromey.com>
8139
8140 * exec.c (exec_file_attach): Update.
8141 * linux-thread-db.c (try_thread_db_load): Update.
8142 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
8143 * utils.c (gdb_realpath): Change return type.
8144 (gdb_realpath_keepfile): Update.
8145 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
8146 (_initialize_utils): Register the new self test.
8147 * source.c (openp): Update.
8148 (find_and_open_source): Update.
8149 * nto-tdep.c (nto_find_and_open_solib): Update.
8150 * main.c (set_gdb_data_directory): Update.
8151 (captured_main_1): Update.
8152 * dwarf2read.c (dwarf2_get_dwz_file): Update
8153 (dw2_map_symbol_filenames): Update.
8154 * auto-load.c (auto_load_safe_path_vec_update): Update.
8155 (filename_is_in_auto_load_safe_path_vec): Change type of
8156 "filename_realp".
8157 (auto_load_objfile_script): Update.
8158 (file_is_auto_load_safe): Update. Use std::string.
8159 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
8160
4971c9a7
TT
81612017-08-22 Tom Tromey <tom@tromey.com>
8162
8163 * utils.c (gdb_realpath_keepfile): Return a
8164 gdb::unique_xmalloc_ptr.
8165 * exec.c (exec_file_attach): Update.
8166 * utils.h (gdb_realpath_keepfile): Return a
8167 gdb::unique_xmalloc_ptr.
8168
e3e41d58
TT
81692017-08-22 Tom Tromey <tom@tromey.com>
8170
8171 * compile/compile.c (compile_file_command): Use
8172 gdb::unique_xmalloc_ptr, std::string.
8173 * utils.c (gdb_abspath): Change return type.
8174 * source.c (openp): Update.
8175 * objfiles.c (allocate_objfile): Update.
8176 * main.c (set_gdb_data_directory): Update.
8177 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
8178
0d999a6e
ZZ
81792017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
8180
8181 * cli-cmds.c (list_commands): List actual code around more than
8182 one location.
8183
329d5e7e
JB
81842017-08-21 John Baldwin <jhb@FreeBSD.org>
8185
8186 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
8187
bf223d3e
PA
81882017-08-21 Pedro Alves <palves@redhat.com>
8189
8190 PR gdb/19487
8191 * c-exp.y (variable production): Handle function aliases.
8192 * minsyms.c (msymbol_is_text): New function.
8193 * minsyms.h (msymbol_is_text): Declare.
8194 * symtab.c (find_function_alias_target): New function.
8195 * symtab.h (find_function_alias_target): Declare.
8196
c973d0aa
PA
81972017-08-21 Pedro Alves <palves@redhat.com>
8198
8199 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
8200 typedefs.
8201 * typeprint.c (whatis_exp): If handling "whatis", and expression
8202 is OP_TYPE, strip one typedef level. Otherwise don't strip
8203 typedefs here.
8204 * valops.c (value_cast): Save "to" type before resolving
8205 stubs/typedefs. Use that type as resulting value's type.
8206
2989a365
TT
82072017-08-18 Tom Tromey <tom@tromey.com>
8208 Pedro Alves <palves@redhat.com>
8209
8210 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
8211 * sol-thread.c (sol_thread_resume, sol_thread_wait)
8212 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
8213 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
8214 * proc-service.c (ps_xfer_memory): Use scoped_restore.
8215 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
8216 (linux_get_siginfo_data): Add "thread" argument. Use
8217 scoped_restore.
8218 * linux-nat.c (linux_child_follow_fork)
8219 (check_stopped_by_watchpoint): Use scoped_restore.
8220 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
8221 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
8222 (restore_inferior_ptid, save_inferior_ptid): Remove.
8223 * btrace.c (btrace_fetch): Use scoped_restore.
8224 * bsd-uthread.c (bsd_uthread_fetch_registers)
8225 (bsd_uthread_store_registers): Use scoped_restore.
8226 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
8227 scoped_restore.
8228 * aix-thread.c (aix_thread_resume, aix_thread_wait)
8229 (aix_thread_xfer_partial): Use scoped_restore.
8230 * inferior.h (save_inferior_ptid): Remove.
8231
e60eb288
YQ
82322017-08-18 Yao Qi <yao.qi@linaro.org>
8233
8234 PR tdep/21818
8235 * arm-tdep.c (gdb_print_insn_arm): Mark
8236 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
8237
6d580b63
YQ
82382017-08-18 Yao Qi <yao.qi@linaro.org>
8239
8240 * NEWS: Mention GDBserver's new option "--selftest".
8241 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
8242 * selftest.c: Move it to common/selftest.c.
8243 * selftest.h: Move it to common/selftest.h.
8244 * selftest-arch.c (reset): New function.
8245 (tests_with_arch): Call reset.
8246
86dcbf50
YQ
82472017-08-18 Yao Qi <yao.qi@linaro.org>
8248
8249 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
8250 instead of exception_fprintf and printf_filtered.
8251
7649770c
YQ
82522017-08-18 Yao Qi <yao.qi@linaro.org>
8253
8254 * selftest.c (register_self_test): Rename it to
8255 selftests::register_test.
8256 (run_self_tests): selftest::run_tests.
8257 * selftest.h: Update declarations.
8258 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
8259 selftests::register_test_foreach_arch.
8260 * selftest-arch.h: Update declaration.
8261 * aarch64-tdep.c: Update.
8262 * arm-tdep.c: Likewise.
8263 * disasm-selftests.c: Likewise.
8264 * dwarf2loc.c: Likewise.
8265 * dwarf2-frame.c: Likewise.
8266 * findvar.c: Likewise.
8267 * gdbarch-selftests.c: Likewise.
8268 * maint.c (maintenance_selftest): Likewise.
8269 * regcache.c: Likewise.
8270 * rust-exp.y: Likewise.
8271 * selftest-arch.c: Likewise.
8272 * unittests/environ-selftests.c: Likewise.
8273 * unittests/function-view-selftests.c: Likewise.
8274 * unittests/offset-type-selftests.c: Likewise.
8275 * unittests/optional-selftests.c: Likewise.
8276 * unittests/scoped_restore-selftests.c: Likewise.
8277 * utils-selftests.c: Likewise.
8278
b0cba12e
PA
82792017-08-17 Pedro Alves <palves@redhat.com>
8280
8281 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
8282 local.
8283
4c8aa72d
PA
82842017-08-17 Pedro Alves <palves@redhat.com>
8285
8286 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
8287 field.
8288 (reset_die_in_process): Delete, replaced by ...
8289 (process_die_scope): ... this new class. Make it responsible for
8290 freeing cu->line_header too.
8291 (process_die): Use process_die_scope.
8292 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
8293 cu->line_header_die_owner. Don't release the line header if it's
8294 owned by the CU.
8295 (setup_type_unit_groups): Make the CU/DIE own the line header.
8296 Don't release the line header here.
8297
ba713918
AL
82982017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
8299
8300 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
8301
44d0fb3a
RK
83022017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
8303
8304 * NEWS: Mention new shortcuts for nexti and stepi in TUI
8305 Single-Key mode
8306
a5afdb16
RK
83072017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
8308
8309 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
8310 mode command list.
8311
47613aeb
SH
83122017-08-15 Stafford Horne <shorne@gmail.com>
8313
8314 * MAINTAINERS (Write After Approval): Add Stafford Horne.
8315
9c3cc999
SH
83162017-08-15 Stafford Horne <shorne@gmail.com>
8317
8318 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
8319
206726fb
SDJ
83202017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
8321
8322 PR gdb/21954
8323 * infcmd.c (unset_environment_command): Use the 'clear' method on
8324 the environment instead of resetting it.
8325
0335ac6d
JB
83262017-08-15 John Baldwin <jhb@FreeBSD.org>
8327
8328 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
8329 platforms.
8330
d3abe1c8
TT
83312017-08-14 Tom Tromey <tom@tromey.com>
8332
8333 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
8334 (print_binary_chars): Likewise.
8335 (BITS_IN_BYTES): Remove.
8336
d6382fff
TT
83372017-08-14 Tom Tromey <tom@tromey.com>
8338
8339 PR gdb/21675
8340 * valprint.c (LOW_ZERO): Change value to 034.
8341 (print_octal_chars): Add static_asserts for octal constants.
8342 * printcmd.c (print_scalar_formatted): Add 'd' case.
8343
f978cb06
TT
83442017-08-11 Tom Tromey <tom@tromey.com>
8345
8346 * symfile.c (add_symbol_file_command): Use std::vector.
8347
2f5404b3
TT
83482017-08-14 Tom Tromey <tom@tromey.com>
8349
8350 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
8351 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8352 std::move.
8353 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
8354
de7985c3
PA
83552017-08-11 Pedro Alves <palves@redhat.com>
8356
8357 * infrun.c (process_event_stop_test): Adjust
8358 function_name_is_marked_for_skip call.
8359 * skip.c: Include <list>.
8360 (skiplist_entry): Make it a class with private fields, and
8361 getters/setters.
8362 (skiplist_entry_chain): Delete.
8363 (skiplist_entries): New.
8364 (skiplist_entry_count): Delete.
8365 (highest_skiplist_entry_num): New.
8366 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
8367 (add_skiplist_entry): Delete.
8368 (skiplist_entry::skiplist_entry): New.
8369 (skiplist_entry::add_entry): New.
8370 (skip_file_command, skip_function): Adjust.
8371 (compile_skip_regexp): Delete.
8372 (skip_command): Don't compile regexp here. Adjust to use
8373 skiplist_entry::add_entry.
8374 (skip_info): Adjust to use range-for and getters.
8375 (skip_enable_command, skip_disable_command): Adjust to use
8376 range-for and setters.
8377 (skip_delete_command): Adjust to use std::list.
8378 (add_skiplist_entry): Delete.
8379 (skip_file_p): Delete, refactored as ...
8380 (skiplist_entry::do_skip_file_p): ... this new method.
8381 (skip_gfile_p): Delete, refactored as ...
8382 (skiplist_entry::do_gskip_file_p): ... this new method.
8383 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
8384 (skiplist_entry::skip_function_p): ... this new method.
8385 (function_name_is_marked_for_skip): Now returns bool, and takes
8386 the function sal by const reference. Adjust to use range-for and
8387 skiplist_entry methods.
8388 (_initialize_step_skip): Remove references to
8389 skiplist_entry_chain, skiplist_entry_count.
8390 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
8391 takes the function sal by const reference.
8392
be7d3cd5
YQ
83932017-08-11 Yao Qi <yao.qi@linaro.org>
8394
8395 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
8396 (dwarf2_frame_cache): Remove reset_cache_cleanup.
8397 (dwarf2_frame_cache):
8398 * frame-unwind.c (frame_unwind_try_unwinder): Catch
8399 RETURN_MASK_ALL and set *this_case to NULL.
8400 * frame-unwind.h: Update comments.
8401
1c90d9f0
YQ
84022017-08-11 Yao Qi <yao.qi@linaro.org>
8403
8404 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
8405 (dwarf2_frame_state_copy_regs): Remove.
8406 (dwarf2_frame_state_free_regs): Remove.
8407 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
8408 (dwarf2_restore_rule): Call method .alloc_regs instead of
8409 dwarf2_frame_state_alloc_regs.
8410 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
8411 constructor. Call std::move.
8412 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
8413 (dwarf2_frame_cache): Likewise.
8414
8415 [GDB_SELF_TEST]: Include selftest.h and
8416 selftest-arch.h.
8417 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
8418 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
8419 execute_cfa_program_test.
8420
8421 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
8422 copy ctor, assignment operator, move assignment.
8423 <alloc_regs>: New method.
8424 <swap>: New method.
8425 (struct dwarf2_frame_state): Delete dtor.
8426 (dwarf2_frame_state_alloc_regs): Remove declaration.
8427 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
8428 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
8429
afe37d6b
YQ
84302017-08-11 Yao Qi <yao.qi@linaro.org>
8431
8432 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
8433 (dwarf2_frame_state::dwarf2_frame_state): New.
8434 (dwarf2_frame_state::~dwarf2_frame_state): New.
8435 (dwarf2_fetch_cfa_info): Update.
8436 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
8437 rather than a pointer. Update code.
8438 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
8439 dtor.
8440 <data_align, code_align, retaddr_column>: Change them to const.
8441 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
8442 to bool.
8443
b348037f
YQ
84442017-08-11 Yao Qi <yao.qi@linaro.org>
8445
8446 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
8447 <loc.exp>: New field.
8448 * dwarf2-frame.c (execute_cfa_program): Update.
8449 (dwarf2_frame_prev_register): Update.
8450
e7c9de26
PA
84512017-08-10 Pedro Alves <palves@redhat.com>
8452
8453 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
8454
e8c6b620
JB
84552017-08-09 John Baldwin <jhb@FreeBSD.org>
8456
8457 * fbsd-nat.c (struct fbsd_fork_info): Remove.
8458 (fbsd_pending_children): Use std::list.
8459 (fbsd_remember_child): Likewise.
8460 (fbsd_is_child_pending): Likewise.
8461 (fbsd_pending_vfork_done): Use std::forward_list.
8462 (fbsd_add_vfork_done): Likewise.
8463 (fbsd_is_vfork_done_pending): Likewise.
8464 (fbsd_next_vfork_done): Likewise.
8465
e4a26669
JB
84662017-08-09 John Baldwin <jhb@FreeBSD.org>
8467
8468 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
8469 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
8470 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
8471 for `mapfilename'.
8472 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 8473 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 8474
142311d3
JB
84752017-08-09 John Baldwin <jhb@FreeBSD.org>
8476
8477 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
8478 "filestuff.h".
8479 (fbsd_find_memory_regions): Fix `mapfile' initialization.
8480
42fa2e0e
TT
84812017-08-09 Tom Tromey <tom@tromey.com>
8482
8483 * skip.c (skiplist_entry): New constructor.
8484 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
8485 (skiplist_entry::file_is_glob): Now bool.
8486 (skiplist_entry::file, skiplist_entry::function): Now
8487 std::string.
8488 (make_skip_entry): Return a unique_ptr. Use new.
8489 (free_skiplist_entry, free_skiplist_entry_cleanup)
8490 (make_free_skiplist_entry_cleanup): Remove.
8491 (skip_command, skip_disable_command, add_skiplist_entry)
8492 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
8493 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
8494 (function_name_is_marked_for_skip): Update.
8495 (skip_delete_command): Update. Use delete.
8496
cd3af38d
JW
84972017-08-09 Jiong Wang <jiong.wang@arm.com>
8498
8499 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
8500 (aarch64_linux_core_read_description): New function.
8501 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
8502
29592bde
PA
85032017-08-09 Pedro Alves <palves@redhat.com>
8504
8505 * cp-name-parser.y (cp_comp_to_string): Return a
8506 gdb::unique_xmalloc_ptr<char>.
8507 * cp-support.c (replace_typedefs_qualified_name)
8508 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
8509 (cp_canonicalize_string_full): Use op= instead of explicit
8510 convertion.
8511 (cp_class_name_from_physname, method_name_from_physname)
8512 (cp_func_name, cp_remove_params): Adjust to use
8513 gdb::unique_xmalloc_ptr<char>.
8514 * cp-support.h (cp_comp_to_string): Return a
8515 gdb::unique_xmalloc_ptr<char>.
8516 * python/py-type.c (typy_lookup_type): Adjust to use
8517 gdb::unique_xmalloc_ptr<char>.
8518
b3340438
L
85192017-08-09 H.J. Lu <hongjiu.lu@intel.com>
8520
8521 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
8522
e88e8651
YQ
85232017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
8524 Yao Qi <yao.qi@linaro.org>
8525
8526 * cp-support.c (cp_canonicalize_string_full): Use
8527 gdb::unique_xmalloc_ptr<char>.
8528 (cp_canonicalize_string): Likewise.
8529
f5a29eb0
YQ
85302017-08-09 Yao Qi <yao.qi@linaro.org>
8531
8532 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
8533 * regformats/i386/amd64-avx-avx512.dat: Remove.
8534 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
8535 * regformats/i386/amd64-avx-mpx.dat:Remove.
8536 * regformats/i386/amd64-avx.dat: Remove.
8537 * regformats/i386/amd64-mpx.dat: Remove.
8538 * regformats/i386/i386-avx-avx512.dat: Remove.
8539 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
8540 * regformats/i386/i386-avx-mpx.dat: Remove.
8541 * regformats/i386/i386-mmx.dat: Remove.
8542 * regformats/i386/i386-mpx.dat: Remove.
8543
57757c2f
YQ
85442017-08-09 Yao Qi <yao.qi@linaro.org>
8545
8546 * amd64-tdep.h (tdesc_x32): Remove the declaration.
8547 * amd64-tdep.c: Don't include features/i386/x32*.c.
8548 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
8549 functions.
8550 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
8551 and i386/x32-avx-avx512.
8552 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
8553 and i386/x32.xml.
8554 * features/i386/x32-avx-avx512.c: Removed.
8555 * features/i386/x32-avx-avx512.xml: Removed.
8556 * features/i386/x32-avx.c: Removed.
8557 * features/i386/x32-avx.xml: Removed.
8558 * features/i386/x32.c: Removed.
8559 * features/i386/x32.xml: Removed.
8560 * regformats/i386/x32-avx-avx512.dat: Removed.
8561 * regformats/i386/x32-avx.dat: Removed.
8562 * regformats/i386/x32.dat: Removed.
8563
ba7b109b
MR
85642017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8565
8566 PR breakpoints/21886
8567 * mem-break.c (default_memory_insert_breakpoint): Use
8568 `->placed_address' rather than `->reqstd_address' for the
8569 breakpoint location.
8570
e347efc3
MR
85712017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8572
8573 * arch-utils.c (default_print_insn): Remove arch/mach/endian
8574 assertions.
8575
0dba2a6c
MR
85762017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8577
8578 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
8579 a union of `tdep_info', `tdesc_data' and `id'.
8580 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
8581 rather than `info.tdep_info'.
8582 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
8583 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8584 * i386-tdep.c (i386_gdbarch_init): Likewise.
8585 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
8586 * mips-tdep.c (mips_gdbarch_init): Likewise.
8587 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8588 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8589 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
8590 `info.tdep_info'.
8591 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
8592 `info.tdep_info'.
8593 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8594 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
8595 `info.tdep_info'.
8596 * spu-tdep.c (spu_gdbarch_init): Likewise.
8597 * gdbarch.h: Regenerate.
8598
16eb6b2d
LS
85992017-08-07 Leszek Swirski <leszeks@google.com>
8600
7b005726 8601 PR symtab/20899
16eb6b2d
LS
8602 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
8603
74cbb09e
SM
86042017-08-07 Simon Marchi <simon.marchi@ericsson.com>
8605
8606 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
8607 (gdbsim_open): Rename gdb_argv args object to argv.
8608
ee0c3293
TT
86092017-08-05 Tom Tromey <tom@tromey.com>
8610
8611 * compile/compile-object-load.c (compile_object_load): Use
8612 gdb::unique_xmalloc_ptr.
8613 * cli/cli-dump.c (scan_filename): Rename from
8614 scan_filename_with_cleanup. Change return type.
8615 (scan_expression): Rename from scan_expression_with_cleanup.
8616 Change return type.
8617 (dump_memory_to_file, dump_value_to_file, restore_command):
8618 Use gdb::unique_xmalloc_ptr. Update.
8619 * cli/cli-cmds.c (find_and_open_script): Use
8620 gdb::unique_xmalloc_ptr.
8621 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
8622 * symmisc.c (maintenance_print_symbols)
8623 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
8624 * symfile.c (symfile_bfd_open, generic_load)
8625 (add_symbol_file_command, remove_symbol_file_command): Use
8626 gdb::unique_xmalloc_ptr.
8627 * source.c (openp): Use gdb::unique_xmalloc_ptr.
8628 * psymtab.c (maintenance_print_psymbols): Use
8629 gdb::unique_xmalloc_ptr.
8630 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
8631 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
8632 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
8633 (reload_shared_libraries_1): Likewise.
8634
3232fabd
TT
86352017-08-05 Tom Tromey <tom@tromey.com>
8636
8637 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
8638 (rust_op_vector, rust_set_vector): New typedefs.
8639 (current_parser): New global.
8640 (work_obstack): Change to pointer type. Update all users.
8641 (rust_ast, pstate): Remove globals.
8642 (struct rust_parser): New.
8643 (%union) <params, field_inits>: Change type.
8644 (start, tuple_expr, unit_expr, struct_expr_list, literal)
8645 (field_expr, expr_list, maybe_expr_list, type_list): Update.
8646 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
8647 (convert_params_to_types, convert_params_to_expression): Change
8648 type of "params".
8649 (ast_string): Change type of "fields".
8650 (rust_parse): Make a rust_parser. Remove cleanups.
8651 (rust_lex_tests): Make and install an auto_obstack.
8652
f02fd774
YQ
86532017-08-04 Yao Qi <yao.qi@linaro.org>
8654
8655 * configure.srv (ipa_x32_linux_regobj): New.
8656 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
8657 instead of X86_TDESC_AVX512.
8658 (initialize_low_tracepoint): Call
8659 init_registers_x32_avx_avx512_linux.
8660
91975afd
YQ
86612017-08-04 Yao Qi <yao.qi@linaro.org>
8662
8663 * utils.h (gdb_argv): Add namespace std for nullptr_t.
8664
2331fa3a
RK
86652017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
8666
8667 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
8668
744e4fe1
TT
86692017-08-03 Tom Tromey <tom@tromey.com>
8670
8671 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
8672 Remove.
8673 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
8674
1c034b67
TT
86752017-08-03 Tom Tromey <tom@tromey.com>
8676
8677 * python/py-param.c (compute_enum_values): Use gdb_argv.
8678
773a1edc
TT
86792017-08-03 Tom Tromey <tom@tromey.com>
8680
8681 * utils.h (struct gdb_argv_deleter): New.
8682 (gdb_argv): New class.
8683 * utils.c (gdb_argv::reset): New method.
8684 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
8685 * tracefile.c (tsave_command): Use gdb_argv.
8686 * top.c (new_ui_command): Use gdb_argv.
8687 * symmisc.c (maintenance_print_symbols)
8688 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
8689 * symfile.c (symbol_file_command, generic_load)
8690 (remove_symbol_file_command): Use gdb_argv.
8691 * stack.c (backtrace_command): Use gdb_argv.
8692 * source.c (add_path, show_substitute_path_command)
8693 (unset_substitute_path_command, set_substitute_path_command):
8694 Use gdb_argv.
8695 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
8696 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
8697 * remote.c (extended_remote_run, remote_put_command)
8698 (remote_get_command, remote_delete_command): Use gdb_argv.
8699 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
8700 (gdbsim_open): Use gdb_argv.
8701 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
8702 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
8703 * procfs.c (procfs_info_proc): Use gdb_argv.
8704 * interps.c (interpreter_exec_cmd): Use gdb_argv.
8705 * infrun.c (handle_command): Use gdb_argv.
8706 * inferior.c (add_inferior_command, clone_inferior_command):
8707 Use gdb_argv.
8708 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
8709 * exec.c (exec_file_command): Use gdb_argv.
8710 * cli/cli-cmds.c (alias_command): Use gdb_argv.
8711 * compile/compile.c (build_argc_argv): Use gdb_argv.
8712
0d50bde3
TT
87132017-08-03 Tom Tromey <tom@tromey.com>
8714
8715 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
8716
7f968c89
TT
87172017-08-03 Tom Tromey <tom@tromey.com>
8718
8719 * python/python.c (compute_python_string): Return std::string.
8720 (gdbpy_eval_from_control_command): Update.
8721 (do_start_initialization): Use std::string.
8722 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
8723 xstrprintf.
8724 * python/py-breakpoint.c (local_setattro): Use string_printf, not
8725 xstrprintf.
8726
3c9ebddd
TT
87272017-08-03 Tom Tromey <tom@tromey.com>
8728
8729 * top.h (do_restore_instream_cleanup): Remove.
8730 * top.c (do_restore_instream_cleanup): Remove.
8731 (read_command_file): Use scoped_restore.
8732 * cli/cli-script.c (execute_user_command): Use scoped_restore.
8733
b51b225e
TT
87342017-08-03 Tom Tromey <tom@tromey.com>
8735
8736 * cli/cli-script.c (execute_user_command)
8737 (execute_control_command): Use scoped_restore.
8738
ac991630
TT
87392017-08-03 Tom Tromey <tom@tromey.com>
8740
8741 * cli/cli-script.c (do_restore_user_call_depth): Remove.
8742 (execute_user_command): Remove user_call_depth; use
8743 user_args_stack's size instead.
8744
898e0c8e
TT
87452017-08-03 Tom Tromey <tom@tromey.com>
8746
8747 * top.h (in_user_command): Remove.
8748 * top.c (in_user_command): Remove.
8749 * cli/cli-script.c (do_restore_user_call_depth)
8750 (execute_user_command): Update.
8751
26fcd5d7
TT
87522017-08-03 Tom Tromey <tom@tromey.com>
8753
8754 * valops.c (search_struct_method): Use gdb::byte_vector.
8755 * valarith.c (value_concat): Use std::vector.
8756 * target.c (memory_xfer_partial): Use gdb::byte_vector.
8757 (simple_search_memory): Likewise.
8758 * printcmd.c (find_string_backward): Use gdb::byte_vector.
8759 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
8760 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
8761 * elfread.c (elf_rel_plt_read): Use std::string.
8762 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
8763 * cli/cli-dump.c (restore_section_callback): Use
8764 gdb::byte_vector.
8765
7c218e6c
TT
87662017-08-03 Tom Tromey <tom@tromey.com>
8767
8768 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
8769
31b68d4a
TT
87702017-08-03 Tom Tromey <tom@tromey.com>
8771
8772 * tui/tui-regs.c (tui_restore_gdbout): Remove.
8773 (tui_register_format): Use scoped_restore.
8774
2ec845e7
TT
87752017-08-03 Tom Tromey <tom@tromey.com>
8776
8777 * reverse.c (exec_direction_default): Remove.
8778 (exec_reverse_once): Use scoped_restore.
8779 * remote.c (restore_remote_timeout): Remove.
8780 (remote_flash_erase, remote_flash_write, remote_flash_done)
8781 (readchar, remote_serial_write): Use scoped_restore.
8782 * cli/cli-script.c (struct source_cleanup_lines_args)
8783 (source_cleanup_lines): Remove.
8784 (script_from_file): Use scoped_restore.
8785 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
8786 (source_command): Use scoped_restore.
8787
b3bc8453
TT
87882017-08-03 Tom Tromey <tom@tromey.com>
8789
8790 * utils.h (make_cleanup_free_so): Remove.
8791 * utils.c (do_free_so, make_cleanup_free_so): Remove.
8792 * solist.h (struct so_deleter): New.
8793 (so_list_up): New typedef.
8794 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
8795
e3ad2841
TT
87962017-08-03 Tom Tromey <tom@tromey.com>
8797
8798 * utils.h (make_cleanup_restore_current_language): Remove.
8799 * utils.c (do_restore_current_language)
8800 (make_cleanup_restore_current_language): Remove.
8801 * parse.c (parse_exp_in_context_1)
8802 (parse_expression_with_language): Use
8803 scoped_restore_current_language.
8804 * mi/mi-main.c (mi_cmd_execute): Use
8805 scoped_restore_current_language.
8806 * language.h (scoped_restore_current_language): New class.
8807
b80cf838
TT
88082017-08-03 Tom Tromey <tom@tromey.com>
8809
8810 * compile/compile.c (cleanup_unlink_file): Remove.
8811 (compile_to_object): Use gdb::unlinker.
8812 (eval_compile_command): Likewise.
8813
fad0444a
TT
88142017-08-03 Tom Tromey <tom@tromey.com>
8815
8816 * utils.h (make_cleanup_fclose): Remove.
8817 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
8818
6e7bc05c
TT
88192017-08-03 Tom Tromey <tom@tromey.com>
8820
8821 * top.c (open_terminal_stream): Return gdb_file_up.
8822 (new_ui_command): Update.
8823
4a45905b
TT
88242017-08-03 Tom Tromey <tom@tromey.com>
8825
8826 * source.c (print_source_lines_base, forward_search_command)
8827 (reverse_search_command): Use gdb_file_up.
8828
7cd06d6e
TT
88292017-08-03 Tom Tromey <tom@tromey.com>
8830
8831 * fbsd-nat.c (fbsd_find_memory_regions): Update.
8832
ed166945
TT
88332017-08-03 Tom Tromey <tom@tromey.com>
8834
8835 * cli/cli-cmds.c (find_and_open_script): Change return type.
8836 Remove "streamp" and "full_path" parameters.
8837 (source_script_with_search): Update.
8838 * auto-load.c (source_script_file): Update.
8839 * cli/cli-cmds.h (find_and_open_script): Change type.
8840 (open_script): New struct.
8841
d419f42d
TT
88422017-08-03 Tom Tromey <tom@tromey.com>
8843
8844 * xml-support.c (xml_fetch_content_from_file): Update.
8845 * ui-file.c (stdio_file::open): Update.
8846 * tracefile-tfile.c (tfile_start): Update.
8847 * remote.c (remote_file_put, remote_file_get): Update.
8848 * nat/linux-procfs.c (linux_proc_get_int)
8849 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
8850 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
8851 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
8852 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8853 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
8854 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
8855 * linux-nat.c (linux_proc_pending_signals): Update.
8856 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
8857 (file_closer): Remove.
8858 * compile/compile.c (compile_to_object): Update.
8859 * common/filestuff.h (struct gdb_file_deleter): New.
8860 (gdb_file_up): New typedef.
8861 (gdb_fopen_cloexec): Change return type.
8862 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
8863 * cli/cli-dump.c (fopen_with_cleanup): Remove.
8864 (dump_binary_file, restore_binary_file): Update.
8865 * auto-load.c (auto_load_objfile_script_1): Update.
8866
4a2b031d
TT
88672017-08-03 Tom Tromey <tom@tromey.com>
8868
8869 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
8870 (info_static_tracepoint_markers_command): Likewise.
8871 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
8872 * skip.c (skip_info): Use ui_out_emit_table.
8873 * progspace.c (print_program_space): Use ui_out_emit_table.
8874 * osdata.c (info_osdata): Use ui_out_emit_table.
8875 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
8876 ui_out_emit_table.
8877 * linux-thread-db.c (info_auto_load_libthread_db): Use
8878 ui_out_emit_table.
8879 * inferior.c (print_inferior): Use ui_out_emit_table.
8880 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
8881 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
8882 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
8883 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
8884 * ui-out.h (class ui_out_emit_table): New.
8885
a4f320fd
MR
88862017-08-02 Maciej W. Rozycki <macro@imgtec.com>
8887
8888 * mips-tdep.c (mips_fpu_type_str): New function.
8889 (mips_dump_tdep): Call it.
8890
a2f1f308
MR
88912017-08-01 Maciej W. Rozycki <macro@imgtec.com>
8892
8893 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
8894 `->mips_fpu_type'.
8895
7e5ed83b
XR
88962017-07-31 Xavier Roirand <roirand@adacore.com>
8897
8898 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8899
4c9dc811
XR
89002017-07-27 Xavier Roirand <roirand@adacore.com>
8901
8902 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
8903
27d41eac
YQ
89042017-07-26 Yao Qi <yao.qi@linaro.org>
8905
8906 * cli/cli-cmds.c (maintenancechecklist): New variable.
8907 * gdbcmd.h (maintenancechecklist): Declare it.
8908 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
8909 Call i386_linux_read_description with different masks.
8910 * maint.c (maintenance_check_command): New function.
8911 (_initialize_maint_cmds): Call add_prefix_cmd.
8912 * target-descriptions.c (tdesc_reg): override operator != and ==.
8913 (tdesc_type): Likewise.
8914 (tdesc_feature): Likewise.
8915 (target_desc): Likewise.
8916 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
8917 (maintenance_check_xml_descriptions): New function.
8918 (_initialize_target_descriptions) Add command "xml-descriptions".
8919 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
8920
ea03d0d3
YQ
89212017-07-26 Yao Qi <yao.qi@linaro.org>
8922
8923 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
8924 Include features/i386/32bit-*.c.
8925 (i386_linux_read_description): Generate target description if it
8926 doesn't exist.
8927 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
8928 functions.
8929 * features/i386/32bit-linux.c: Re-generated.
8930 * features/i386/32bit-sse.c: Likewise.
8931 * target-descriptions.c (print_c_feature::visit): Print code to
8932 set register number if needed.
8933 (print_c_feature) <m_next_regnum>: New field.
8934
25aa13e5
YQ
89352017-07-26 Yao Qi <yao.qi@linaro.org>
8936
8937 * features/Makefile (CFILES): Rename with TDESC_CFILES.
8938 (FEATURE_XMLFILES): New.
8939 (FEATURE_CFILES): New.
8940 New rules.
8941 (clean-cfiles): Remove generated c files.
8942 * features/i386/32bit-avx.c: Generated.
8943 * features/i386/32bit-avx512.c: Generated.
8944 * features/i386/32bit-core.c: Generated.
8945 * features/i386/32bit-linux.c: Generated.
8946 * features/i386/32bit-mpx.c: Generated.
8947 * features/i386/32bit-pkeys.c: Generated.
8948 * features/i386/32bit-sse.c: Generated.
8949 * target-descriptions.c: Include algorithm.
8950 (tdesc_element_visitor): Add method visit_end.
8951 (print_c_tdesc): Implement visit_end.
8952 (print_c_tdesc:: m_filename_after_features): Move it to
8953 protected.
8954 (print_c_feature): New class.
8955 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
8956 name starts with "i386/32bit-".
8957
6eb1e6a8
YQ
89582017-07-26 Yao Qi <yao.qi@linaro.org>
8959
8960 * target-descriptions.c (tdesc_element_visitor): New class.
8961 (tdesc_element): New class.
8962 (tdesc_reg): Inherit from tdesc_element.
8963 (tdesc_reg::accept): New function.
8964 (tdesc_type): Inherit from tdesc_element.
8965 (tdesc_type::accept): New function.
8966 (tdesc_feature): Inherit from tdesc_element.
8967 (tdesc_feature::accept): New function.
8968 (target_desc): Inherit from tdesc_element.
8969 (target_desc::target_desc): New.
8970 (target_desc::~target_desc): New.
8971 (target_desc::accept): New.
8972 (allocate_target_description): Use new.
8973 (free_target_description): Use delete.
8974 (print_c_tdesc): New class.
8975 (maint_print_c_tdesc_cmd): Adjust.
8976
8977 * features/aarch64.c: Re-generated.
8978 * features/arc-arcompact.c: Re-generated.
8979 * features/arc-v2.c: Re-generated.
8980 * features/arm/arm-with-iwmmxt.c: Re-generated.
8981 * features/arm/arm-with-m.c: Re-generated.
8982 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
8983 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
8984 * features/arm/arm-with-neon.c: Re-generated.
8985 * features/arm/arm-with-vfpv2.c: Re-generated.
8986 * features/arm/arm-with-vfpv3.c: Re-generated.
8987 * features/i386/amd64-avx-avx512.c: Re-generated.
8988 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
8989 * features/i386/amd64-avx.c: Re-generated.
8990 * features/i386/amd64-avx-linux.c: Re-generated.
8991 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
8992 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
8993 * features/i386/amd64-avx-mpx.c: Re-generated.
8994 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
8995 * features/i386/amd64.c: Re-generated.
8996 * features/i386/amd64-linux.c: Re-generated.
8997 * features/i386/amd64-mpx.c: Re-generated.
8998 * features/i386/amd64-mpx-linux.c: Re-generated.
8999 * features/i386/i386-avx-avx512.c: Re-generated.
9000 * features/i386/i386-avx-avx512-linux.c: Re-generated.
9001 * features/i386/i386-avx.c: Re-generated.
9002 * features/i386/i386-avx-linux.c: Re-generated.
9003 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
9004 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
9005 * features/i386/i386-avx-mpx.c: Re-generated.
9006 * features/i386/i386-avx-mpx-linux.c: Re-generated.
9007 * features/i386/i386.c: Re-generated.
9008 * features/i386/i386-linux.c: Re-generated.
9009 * features/i386/i386-mmx.c: Re-generated.
9010 * features/i386/i386-mmx-linux.c: Re-generated.
9011 * features/i386/i386-mpx.c: Re-generated.
9012 * features/i386/i386-mpx-linux.c: Re-generated.
9013 * features/i386/x32-avx-avx512.c: Re-generated.
9014 * features/i386/x32-avx-avx512-linux.c: Re-generated.
9015 * features/i386/x32-avx.c: Re-generated.
9016 * features/i386/x32-avx-linux.c: Re-generated.
9017 * features/i386/x32.c: Re-generated.
9018 * features/i386/x32-linux.c: Re-generated.
9019 * features/microblaze.c: Re-generated.
9020 * features/microblaze-with-stack-protect.c: Re-generated.
9021 * features/mips64-dsp-linux.c: Re-generated.
9022 * features/mips64-linux.c: Re-generated.
9023 * features/mips-dsp-linux.c: Re-generated.
9024 * features/mips-linux.c: Re-generated.
9025 * features/nds32.c: Re-generated.
9026 * features/nios2.c: Re-generated.
9027 * features/nios2-linux.c: Re-generated.
9028 * features/rs6000/powerpc-32.c: Re-generated.
9029 * features/rs6000/powerpc-32l.c: Re-generated.
9030 * features/rs6000/powerpc-403.c: Re-generated.
9031 * features/rs6000/powerpc-403gc.c : Re-generated.
9032 * features/rs6000/powerpc-405.c: Re-generated.
9033 * features/rs6000/powerpc-505.c: Re-generated.
9034 * features/rs6000/powerpc-601.c: Re-generated.
9035 * features/rs6000/powerpc-602.c: Re-generated.
9036 * features/rs6000/powerpc-603.c: Re-generated.
9037 * features/rs6000/powerpc-604.c: Re-generated.
9038 * features/rs6000/powerpc-64.c: Re-generated.
9039 * features/rs6000/powerpc-64l.c: Re-generated.
9040 * features/rs6000/powerpc-7400.c: Re-generated.
9041 * features/rs6000/powerpc-750.c: Re-generated.
9042 * features/rs6000/powerpc-860.c: Re-generated.
9043 * features/rs6000/powerpc-altivec32.c: Re-generated.
9044 * features/rs6000/powerpc-altivec32l.c: Re-generated.
9045 * features/rs6000/powerpc-altivec64.c: Re-generated.
9046 * features/rs6000/powerpc-altivec64l.c: Re-generated.
9047 * features/rs6000/powerpc-cell32l.c: Re-generated.
9048 * features/rs6000/powerpc-cell64l.c: Re-generated.
9049 * features/rs6000/powerpc-e500.c: Re-generated.
9050 * features/rs6000/powerpc-e500l.c: Re-generated.
9051 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
9052 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
9053 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
9054 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
9055 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
9056 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
9057 * features/rs6000/powerpc-vsx32.c: Re-generated.
9058 * features/rs6000/powerpc-vsx32l.c: Re-generated.
9059 * features/rs6000/powerpc-vsx64.c: Re-generated.
9060 * features/rs6000/powerpc-vsx64l.c: Re-generated.
9061 * features/rs6000/rs6000.c: Re-generated.
9062 * features/s390-linux32.c: Re-generated.
9063 * features/s390-linux32v1.c: Re-generated.
9064 * features/s390-linux32v2.c: Re-generated.
9065 * features/s390-linux64.c: Re-generated.
9066 * features/s390-linux64v1.c: Re-generated.
9067 * features/s390-linux64v2.c: Re-generated.
9068 * features/s390-te-linux64.c: Re-generated.
9069 * features/s390-tevx-linux64.c: Re-generated.
9070 * features/s390-vx-linux64.c: Re-generated.
9071 * features/s390x-linux64.c: Re-generated.
9072 * features/s390x-linux64v1.c: Re-generated.
9073 * features/s390x-linux64v2.c: Re-generated.
9074 * features/s390x-te-linux64.c: Re-generated.
9075 * features/s390x-tevx-linux64.c: Re-generated.
9076 * features/s390x-vx-linux64.c: Re-generated.
9077 * features/sparc/sparc32-solaris.c: Re-generated.
9078 * features/sparc/sparc64-solaris.c: Re-generated.
9079 * features/tic6x-c62x.c: Re-generated.
9080 * features/tic6x-c62x-linux.c: Re-generated.
9081 * features/tic6x-c64x.c: Re-generated.
9082 * features/tic6x-c64x-linux.c: Re-generated.
9083 * features/tic6x-c64xp.c: Re-generated.
9084 * features/tic6x-c64xp-linux.c: Re-generated.
9085
35b4818d
YQ
90862017-07-26 Yao Qi <yao.qi@linaro.org>
9087
9088 * i386-linux-tdep.c (i386_linux_read_description): New function.
9089 (i386_linux_core_read_description): Call
9090 i386_linux_read_description.
9091 * i386-linux-tdep.h (i386_linux_read_description): Declare.
9092 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
9093 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
9094 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
9095 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
9096 * x86-linux-nat.c (x86_linux_read_description): Call
9097 i386_linux_read_description.
9098
8e2141c6
YQ
90992017-07-26 Yao Qi <yao.qi@linaro.org>
9100
9101 * NEWS: Mention it.
9102 * features/Makefile (%.c: %.xml): Pass the xml file name to
9103 command "maint print c-tdesc".
9104 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
9105 name from 'arg'.
9106
b468ff4c
YQ
91072017-07-26 Yao Qi <yao.qi@linaro.org>
9108
9109 * target-descriptions.c (target_desc): Add ctor and dtor. Do
9110 in-class initialization.
9111 (tdesc_create_feature): Call new instead of XCNEW.
9112 (free_target_description): Ue delete.
9113
b9c0e1b4
JB
91142017-07-25 John Baldwin <jhb@FreeBSD.org>
9115
9116 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
9117
a04b5337
YQ
91182017-07-25 Yao Qi <yao.qi@linaro.org>
9119
9120 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
9121 constant.
9122 (amd64_x32_init_abi): Likewise.
9123 * amd64-tdep.h (amd64_init_abi): Update declaration.
9124 (amd64_x32_init_abi): Likewise.
9125
02ad7fc2
YQ
91262017-07-25 Yao Qi <yao.qi@linaro.org>
9127
9128 PR tdep/21717
9129 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
9130 condition for FPSCR.
9131 (arm_linux_store_inferior_registers): Likewise.
9132
b6f48cb0
TT
91332017-07-22 Tom Tromey <tom@tromey.com>
9134
9135 * break-catch-syscall.c (struct catch_syscall_inferior_data)
9136 <syscalls_counts>: Now a std::vector.
9137 (get_catch_syscall_inferior_data): Use "new".
9138 (catch_syscall_inferior_data_cleanup): Use "delete".
9139 (insert_catch_syscall, remove_catch_syscall)
9140 (clear_syscall_counts): Update.
9141
e12c9b7a
TT
91422017-07-22 Tom Tromey <tom@tromey.com>
9143
9144 * break-catch-syscall.c (syscall_catchpoint)
9145 <syscalls_to_be_caught>: Now a std::vector<int>
9146 (~syscall_catchpoint): Remove.
9147 (insert_catch_syscall, remove_catch_syscall)
9148 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
9149 (print_mention_catch_syscall, print_recreate_catch_syscall):
9150 Update.
9151 (create_syscall_event_catchpoint): Change type of "filter"
9152 parameter.
9153 (catch_syscall_split_args): Return a std::vector.
9154 (catch_syscall_command_1, catching_syscall_number_1): Update.
9155
4fa8aeac
TT
91562017-07-22 Tom Tromey <tom@tromey.com>
9157
9158 * break-catch-throw.c (struct exception_catchpoint)
9159 <exception_rx>: Now a std::string.
9160 (~exception_catchpoint): Remove.
9161 (print_one_detail_exception_catchpoint): Update.
9162 (handle_gnu_v3_exceptions): Change type of except_rx.
9163 (extract_exception_regexp): Return a std::string.
9164 (catch_exception_command_1): Update.
9165
f746a154
TT
91662017-07-22 Tom Tromey <tom@tromey.com>
9167
9168 * break-catch-sig.c (gdb_signal_type): Remove typedef.
9169 (struct signal_catchpoint) <signals_to_be_caught>: Now a
9170 std::vector.
9171 <catch_all>: Now a bool.
9172 (~signal_catchpoint): Remove.
9173 (signal_catchpoint_insert_location)
9174 (signal_catchpoint_remove_location)
9175 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
9176 (signal_catchpoint_print_mention)
9177 (signal_catchpoint_print_recreate)
9178 (signal_catchpoint_explains_signal): Update.
9179 (create_signal_catchpoint): Change type of "filter" and
9180 "catch_all".
9181 (catch_signal_split_args): Return a std::vector. Change type of
9182 "catch_all".
9183 (catch_signal_command): Update.
9184
47e77640
PA
91852017-07-20 Pedro Alves <palves@redhat.com>
9186
9187 * ada-lang.c (ada_language_defn): Make extern.
9188 (_initialize_ada_language): Remove add_language call.
9189 * c-lang.c (c_language_defn, cplus_language_defn)
9190 (asm_language_defn, minimal_language_defn): Make extern.
9191 (_initialize_c_language): Delete.
9192 * completer.c (compare_cstrings): Delete, moved to utils.h.
9193 * d-lang.c (d_language_defn): Make extern.
9194 (_initialize_d_language): Remove add_language calls.
9195 * defs.h (enum language): Add comment.
9196 * f-lang.c (f_language_defn): Make extern.
9197 (_initialize_f_language): Remove add_language call.
9198 * go-lang.c (go_language_defn): Make extern.
9199 (_initialize_go_language): Remove add_language call.
9200 * language.c: Include <algorithm>.
9201 (languages): Redefine as const array.
9202 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
9203 (set_language_command): Handle "local". Use for-range loop.
9204 (set_language): Remove loop.
9205 (language_enum): Rewrite.
9206 (language_def, language_str): Remove loops.
9207 (add_language): Delete.
9208 (add_set_language_command): New, based on add_languages.
9209 (skip_language_trampoline): Adjust.
9210 (local_language_defn): Delete.
9211 (language_gdbarch_post_init): Adjust.
9212 (_initialize_language): Remove add_language calls. Call
9213 add_set_language_command.
9214 * language.h (add_language): Delete.
9215 (auto_language_defn)
9216 (unknown_language_defn, minimal_language_defn, ada_language_defn)
9217 (asm_language_defn, c_language_defn, cplus_language_defn)
9218 (d_language_defn, f_language_defn, go_language_defn)
9219 (m2_language_defn, objc_language_defn, opencl_language_defn)
9220 (pascal_language_defn, rust_language_defn): Declare.
9221 * m2-lang.c (m2_language_defn): Make extern.
9222 (_initialize_m2_language): Remove add_language call.
9223 * objc-lang.c (objc_language_defn): Make extern.
9224 (_initialize_objc_language): Remove add_language call.
9225 * opencl-lang.c (opencl_language_defn): Make extern.
9226 (_initialize_opencl_language): Remove add_language call.
9227 * p-lang.c (pascal_language_defn): Make extern.
9228 (_initialize_pascal_language): Delete.
9229 * rust-lang.c (rust_language_defn): Make extern.
9230 (_initialize_rust_language): Delete.
9231 * utils.h (compare_cstrings): New static inline function.
9232
edb0c9cb
PA
92332017-07-20 Pedro Alves <palves@redhat.com>
9234
9235 * ada-lang.c (ada_to_fixed_type_1): Adjust.
9236 (get_var_value): Constify parameters.
9237 (get_int_var_value): Change prototype.
9238 (to_fixed_range_type): Adjust.
9239 * ada-lang.h (get_int_var_value): Change prototype.
9240
a778f165
PA
92412017-07-20 Pedro Alves <palves@redhat.com>
9242
9243 * dwarf2read.c (dw2_lookup_symbol): Use
9244 SYMBOL_MATCHES_SEARCH_NAME.
9245 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
9246
42edd901
PA
92472017-07-20 Pedro Alves <palves@redhat.com>
9248
9249 * block.c (block_iter_name_step, block_iter_name_first)
9250 (block_iter_name_next): Delete.
9251 (block_lookup_symbol_primary): Adjust to use
9252 dict_iter_match_first/dict_iter_match_next.
9253 * block.h (block_iter_name_first, block_iter_name_next): Delete
9254 declarations.
9255 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
9256 dict_iter_match_first/dict_iter_match_next.
9257
cf325299
PA
92582017-07-20 Pedro Alves <palves@redhat.com>
9259
9260 * cp-support.c (cp_find_first_component_aux): Add missing case for
9261 end of string.
9262
c5ed0576
DB
92632017-07-18 David Blaikie <dblaikie@gmail.com>
9264
9265 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
9266 of dwo_cu's dwo_file.
9267
27841e76
YQ
92682017-07-18 Yao Qi <yao.qi@linaro.org>
9269
9270 * remote.c (store_registers_using_G): Remove one line comment.
9271
cfb7e58b
YQ
92722017-07-18 Yao Qi <yao.qi@linaro.org>
9273
9274 * regcache.c (regcache_cpy): Simplify it.
9275 (regcache::cpy_no_passthrough): Remove it.
9276 * regcache.h (cpy_no_passthrough): Remove it.
9277 (regcache_dup, regcache_cpy): Update comments.
9278
386535dd
PA
92792017-07-18 Pedro Alves <palves@redhat.com>
9280
9281 * remote-sim.c (sim_command_completer): Adjust to work with a
9282 completion_tracker instead of a VEC.
9283
c45ec17c
PA
92842017-07-17 Pedro Alves <palves@redhat.com>
9285
9286 * completer.c (complete_source_filenames): New function.
9287 (complete_address_and_linespec_locations): New function.
9288 (location_completer): Use complete_address_and_linespec_locations.
9289 (completion_tracker::build_completion_result): Honor the tracker's
9290 request to suppress append.
9291 * completer.h (completion_tracker::suppress_append_ws)
9292 (completion_tracker::set_suppress_append_ws): New methods.
9293 (completion_tracker::m_suppress_append_ws): New field.
9294 (complete_source_filenames): New declaration.
9295 * linespec.c (linespec_complete_what): New.
9296 (struct ls_parser) <complete_what, completion_word,
9297 completion_quote_char, completion_quote_end, completion_tracker>:
9298 New fields.
9299 (string_find_incomplete_keyword_at_end): New.
9300 (linespec_lexer_lex_string): Record quote char. If in completion
9301 mode, don't throw.
9302 (linespec_lexer_consume_token): Advance the completion word point.
9303 (linespec_lexer_peek_token): Save/restore completion info.
9304 (save_stream_and_consume_token): New.
9305 (set_completion_after_number): New.
9306 (linespec_parse_basic): Set what to complete next depending on
9307 token. Handle function and label completions specially.
9308 (parse_linespec): Disable objc shortcut in completion mode. Set
9309 what to complete next depending on token type. Skip keyword if in
9310 completion mode.
9311 (complete_linespec_component, linespec_complete): New.
9312 * linespec.h (linespec_complete): Declare.
9313
be966d42
PA
93142017-07-17 Pedro Alves <palves@redhat.com>
9315
9316 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
9317 Handle 'operator<' / 'operator<<'.
9318
a2459270
PA
93192017-07-17 Pedro Alves <palves@redhat.com>
9320
9321 * completer.c (collect_explicit_location_matches): Handle
9322 MATCH_LABEL.
9323 (convert_explicit_location_to_linespec): New, factored out from
9324 ...
9325 (convert_explicit_location_to_sals): ... this.
9326 (complete_label): New.
9327 (linespec_complete_label, find_label_symbols_in_block): New.
9328 (find_label_symbols): Add completion_mode parameter and adjust to
9329 call find_label_symbols_in_block.
9330 * linespec.h (linespec_complete_label): Declare.
9331
c6756f62
PA
93322017-07-17 Pedro Alves <palves@redhat.com>
9333
9334 * ada-lang.c (ada_collect_symbol_completion_matches): Add
9335 complete_symbol_mode parameter.
9336 * cli/cli-cmds.c (complete_command): Get the completion result out
9337 of the handle_brkchars tracker if used a custom word point.
9338 * completer.c: Include "linespec.h".
9339 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
9340 (advance_to_expression_complete_word_point): New.
9341 (completion_tracker::completes_to_completion_word): New.
9342 (complete_files_symbols): Pass down
9343 complete_symbol_mode::EXPRESSION.
9344 (explicit_options, probe_options): New.
9345 (collect_explicit_location_matches): Complete on the
9346 explictit_loc->foo instead of word. Use
9347 linespec_complete_function. Handle MATCH_LINE. Handle offering
9348 keyword and options completions.
9349 (backup_text_ptr): Delete.
9350 (skip_keyword): New.
9351 (complete_explicit_location): Remove 'word' parameter. Add
9352 language, quoted_arg_start and quoted_arg_end parameters.
9353 Rewrite, parsing left to right.
9354 (location_completer): Rewrite.
9355 (location_completer_handle_brkchars): New function.
9356 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
9357 (enum complete_line_internal_reason): Adjust comments.
9358 (completion_tracker::discard_completions): New.
9359 (completer_handle_brkchars_func_for_completer): Handle
9360 location_completer.
9361 (gdb_custom_word_point_brkchars)
9362 (gdb_org_rl_basic_quote_characters): New.
9363 (gdb_completion_word_break_characters_throw)
9364 (completion_find_completion_word): Handle trackers that use a
9365 custom word point.
9366 (completion_tracker::advance_custom_word_point_by): New.
9367 (completion_tracker::build_completion_result): Don't rely on
9368 readline appending the quote char.
9369 (gdb_rl_attempted_completion_function_throw): Handle trackers that
9370 use a custom word point.
9371 (gdb_rl_attempted_completion_function): Restore
9372 rl_basic_quote_characters.
9373 * completer.h (class completion_tracker): Extend intro comment.
9374 (completion_tracker::set_quote_char)
9375 (completion_tracker::quote_char)
9376 (completion_tracker::set_use_custom_word_point)
9377 (completion_tracker::use_custom_word_point)
9378 (completion_tracker::custom_word_point)
9379 (completion_tracker::set_custom_word_point)
9380 (completion_tracker::advance_custom_word_point_by)
9381 (completion_tracker::completes_to_completion_word)
9382 (completion_tracker::discard_completions): New methods.
9383 (completion_tracker::m_quote_char)
9384 (completion_tracker::m_use_custom_word_point)
9385 (completion_tracker::m_custom_word_point): New fields.
9386 (advance_to_expression_complete_word_point): Declare.
9387 * f-lang.c (f_collect_symbol_completion_matches): Add
9388 complete_symbol_mode parameter.
9389 * language.h (struct language_defn)
9390 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
9391 parameter.
9392 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
9393 (linespec_complete_function): New function.
9394 (linespec_lexer_lex_keyword): Adjust.
9395 * linespec.h (linespec_keywords, linespec_complete_function): New
9396 declarations.
9397 * location.c (find_end_quote): New function.
9398 (explicit_location_lex_one): Add explicit_completion_info
9399 parameter. Save quoting info. Don't throw if being called for
9400 completion. Don't handle Ada operators here.
9401 (is_cp_operator, skip_op_false_positives, first_of)
9402 (explicit_location_lex_one_function): New function.
9403 (string_to_explicit_location): Replace 'dont_throw' parameter with
9404 an explicit_completion_info pointer parameter. Handle it. Don't
9405 use explicit_location_lex_one to lex function names. Use
9406 explicit_location_lex_one_function instead.
9407 * location.h (struct explicit_completion_info): New.
9408 (string_to_explicit_location): Replace 'dont_throw' parameter with
9409 an explicit_completion_info pointer parameter.
9410 * symtab.c (default_collect_symbol_completion_matches_break_on):
9411 Add complete_symbol_mode parameter. Handle LINESPEC mode.
9412 (default_collect_symbol_completion_matches)
9413 (collect_symbol_completion_matches): Add complete_symbol_mode
9414 parameter.
9415 (collect_symbol_completion_matches_type): Pass down
9416 complete_symbol_mode::EXPRESSION.
9417 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9418 parameter. Handle LINESPEC mode.
9419 * symtab.h (complete_symbol_mode): New.
9420 (default_collect_symbol_completion_matches_break_on)
9421 (default_collect_symbol_completion_matches)
9422 (collect_symbol_completion_matches)
9423 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9424 parameter.
9425
1d550c82
PA
94262017-07-17 Pedro Alves <palves@redhat.com>
9427
9428 * utils.c (enum class strncmp_iw_mode): New.
9429 (strcmp_iw): Rename to ...
9430 (strncmp_iw_with_mode): ... this. Add string2_len and mode
9431 parameters. Handle them.
9432 (strncmp_iw): New.
9433 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
9434 * utils.h (strncmp_iw): Declare.
9435 (strcmp_iw): Move describing comments here.
9436
8090b426
PA
94372017-07-17 Pedro Alves <palves@redhat.com>
9438
9439 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
9440 CP_OPERATOR_STR.
9441 * c-typeprint.c (is_type_conversion_operator): Use
9442 CP_OPERATOR_STR.
9443 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
9444 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
9445 CP_OPERATOR_LEN.
9446 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
9447 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
9448 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
9449 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
9450 CP_OPERATOR_STR.
9451 * location.c: Include "cp-support.h".
9452 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
9453 CP_OPERATOR_STR.
9454 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
9455 CP_OPERATOR_LEN.
9456
6a2c1b87
PA
94572017-07-17 Pedro Alves <palves@redhat.com>
9458
9459 * cli/cli-cmds.c (complete_command): Use a completion tracker
9460 along with completion_find_completion_word for handle_brkchars
9461 phase.
9462 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
9463 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
9464 (struct gdb_rl_completion_word_info): New.
9465 (gdb_rl_find_completion_word): New.
9466 (completion_find_completion_word): New.
9467 * completer.h (completion_find_completion_word): Declare.
9468
eb3ff9a5
PA
94692017-07-17 Pedro Alves <palves@redhat.com>
9470
9471 * ada-lang.c (symbol_completion_match): Adjust comments.
9472 (symbol_completion_add): Replace vector parameter with
9473 completion_tracker parameter. Use it.
9474 (ada_make_symbol_completion_list): Rename to...
9475 (ada_collect_symbol_completion_matches): ... this. Add
9476 completion_tracker parameter and use it.
9477 (ada_language_defn): Adjust.
9478 * break-catch-syscall.c (catch_syscall_completer): Adjust
9479 prototype and work with completion_tracker instead of VEC.
9480 * breakpoint.c (condition_completer): Adjust prototype and work
9481 with completion_tracker instead of VEC.
9482 * c-lang.c (c_language_defn, cplus_language_defn)
9483 (asm_language_defn, minimal_language_defn): Adjust to renames.
9484 * cli/cli-cmds.c (complete_command): Rework using
9485 completion_tracker. Catch exceptions when completing.
9486 * cli/cli-decode.c (integer_unlimited_completer)
9487 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
9488 with completion_tracker instead of VEC.
9489 * command.h (struct completion_tracker): Forward declare.
9490 (completer_ftype, completer_handle_brkchars_ftype): Change
9491 types.
9492 (complete_on_cmdlist, complete_on_enum): Adjust.
9493 * completer.c: Include <algorithm>.
9494 (struct gdb_completer_state): New.
9495 (current_completion): New global.
9496 (readline_line_completion_function): Delete.
9497 (noop_completer, filename_completer)
9498 (filename_completer_handle_brkchars, complete_files_symbols)
9499 (linespec_location_completer): Adjust to work with a
9500 completion_tracker instead of a VEC.
9501 (string_or_empty): New.
9502 (collect_explicit_location_matches): Adjust to work with a
9503 completion_tracker instead of a VEC.
9504 (explicit_location_completer): Rename to ...
9505 (complete_explicit_location): ... this and adjust to work with a
9506 completion_tracker instead of a VEC.
9507 (location_completer): Adjust to work with a completion_tracker
9508 instead of a VEC.
9509 (add_struct_fields): Adjust to work with a completion_list instead
9510 of VEC.
9511 (expression_completer): Rename to ...
9512 (complete_expression): ... this and adjust to work with a
9513 completion_tracker instead of a VEC. Use complete_files_symbols.
9514 (expression_completer): Reimplement on top of complete_expression.
9515 (symbol_completer): Adjust to work with a completion_tracker
9516 instead of a VEC.
9517 (enum complete_line_internal_reason): Add describing comments.
9518 (complete_line_internal_normal_command): Adjust to work with a
9519 completion_tracker instead of a VEC.
9520 (complete_line_internal): Rename to ...
9521 (complete_line_internal_1): ... this and adjust to work with a
9522 completion_tracker instead of a VEC. Assert TEXT is NULL in the
9523 handle_brkchars phase.
9524 (new_completion_tracker): Delete.
9525 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
9526 complete_line_internal_1.
9527 (free_completion_tracker): Delete.
9528 (INITIAL_COMPLETION_HTAB_SIZE): New.
9529 (completion_tracker::completion_tracker)
9530 (completion_tracker::~completion_tracker): New.
9531 (maybe_add_completion): Delete.
9532 (completion_tracker::maybe_add_completion)
9533 (completion_tracker::add_completion)
9534 (completion_tracker::add_completions): New.
9535 (throw_max_completions_reached_error): Delete.
9536 (complete_line): Adjust to work with a completion_tracker instead
9537 of a VEC. Don't create a completion_tracker_t or check for max
9538 completions here.
9539 (command_completer, command_completer_handle_brkchars)
9540 (signal_completer, reg_or_group_completer_1)
9541 (reg_or_group_completer, default_completer_handle_brkchars):
9542 Adjust to work with a completion_tracker.
9543 (gdb_completion_word_break_characters_throw): New.
9544 (gdb_completion_word_break_characters): Reimplement.
9545 (line_completion_function): Delete.
9546 (completion_tracker::recompute_lowest_common_denominator)
9547 (expand_preserving_ws)
9548 (completion_tracker::build_completion_result)
9549 (completion_result::completion_result)
9550 (completion_result::completion_result)
9551 (completion_result::~completion_result)
9552 (completion_result::completion_result)
9553 (completion_result::release_match_list, compare_cstrings)
9554 (completion_result::sort_match_list)
9555 (completion_result::reset_match_list)
9556 (gdb_rl_attempted_completion_function_throw)
9557 (gdb_rl_attempted_completion_function): New.
9558 * completer.h (completion_list, struct completion_result)
9559 (class completion_tracker): New.
9560 (complete_line): Add completion_tracker parameter.
9561 (readline_line_completion_function): Delete.
9562 (gdb_rl_attempted_completion_function): New.
9563 (noop_completer, filename_completer, expression_completer)
9564 (location_completer, symbol_completer, command_completer)
9565 (signal_completer, reg_or_group_completer): Update prototypes.
9566 (completion_tracker_t, new_completion_tracker)
9567 (make_cleanup_free_completion_tracker): Delete.
9568 (enum maybe_add_completion_enum): Delete.
9569 (maybe_add_completion): Delete.
9570 (throw_max_completions_reached_error): Delete.
9571 * corefile.c (complete_set_gnutarget): Adjust to work with a
9572 completion_tracker instead of a VEC.
9573 * cp-abi.c (cp_abi_completer): Adjust to work with a
9574 completion_tracker instead of a VEC.
9575 * d-lang.c (d_language_defn): Adjust.
9576 * disasm.c (disassembler_options_completer): Adjust to work with a
9577 completion_tracker instead of a VEC.
9578 * f-lang.c (f_make_symbol_completion_list): Rename to ...
9579 (f_collect_symbol_completion_matches): ... this. Adjust to work
9580 with a completion_tracker instead of a VEC.
9581 (f_language_defn): Adjust.
9582 * go-lang.c (go_language_defn): Adjust.
9583 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
9584 Adjust to work with a completion_tracker instead of a VEC.
9585 * infrun.c (handle_completer): Likewise.
9586 * interps.c (interpreter_completer): Likewise.
9587 * interps.h (interpreter_completer): Likewise.
9588 * language.c (unknown_language_defn, auto_language_defn)
9589 (local_language_defn): Adjust.
9590 * language.h (language_defn::la_make_symbol_completion_list):
9591 Rename to ...
9592 (language_defn::la_collect_symbol_completion_matches): ... this
9593 and adjust to work with a completion_tracker instead of a VEC.
9594 * m2-lang.c (m2_language_defn): Adjust.
9595 * objc-lang.c (objc_language_defn): Adjust.
9596 * opencl-lang.c (opencl_language_defn): Adjust.
9597 * p-lang.c (pascal_language_defn): Adjust.
9598 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
9599 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
9600 with a completion_tracker.
9601 * rust-lang.c (rust_language_defn): Adjust.
9602 * symtab.c (free_completion_list, do_free_completion_list)
9603 (return_val, completion_tracker): Delete.
9604 (completion_list_add_name, completion_list_add_symbol)
9605 (completion_list_add_msymbol, completion_list_objc_symbol)
9606 (completion_list_add_fields, add_symtab_completions): Add
9607 completion_tracker parameter and use it.
9608 (default_make_symbol_completion_list_break_on_1): Rename to...
9609 (default_collect_symbol_completion_matches_break_on): ... this.
9610 Add completion_tracker parameter and use it instead of allocating
9611 a completion tracker here.
9612 (default_make_symbol_completion_list_break_on): Delete old
9613 implementation.
9614 (default_make_symbol_completion_list): Delete.
9615 (default_collect_symbol_completion_matches): New.
9616 (make_symbol_completion_list): Delete.
9617 (collect_symbol_completion_matches): New.
9618 (make_symbol_completion_type): Rename to ...
9619 (collect_symbol_completion_matches_type): ... this. Add
9620 completion_tracker parameter and use it instead of VEC.
9621 (make_file_symbol_completion_list_1): Rename to...
9622 (collect_file_symbol_completion_matches): ... this. Add
9623 completion_tracker parameter and use it instead of VEC.
9624 (make_file_symbol_completion_list): Delete.
9625 (add_filename_to_list): Use completion_list instead of a VEC.
9626 (add_partial_filename_data::list): Now a completion_list.
9627 (make_source_files_completion_list): Work with a completion_list
9628 instead of a VEC.
9629 * symtab.h: Include "completer.h".
9630 (default_make_symbol_completion_list_break_on)
9631 (default_make_symbol_completion_list, make_symbol_completion_list)
9632 (make_symbol_completion_type, make_file_symbol_completion_list)
9633 (make_source_files_completion_list): Delete.
9634 (default_collect_symbol_completion_matches_break_on)
9635 (default_collect_symbol_completion_matches)
9636 (collect_symbol_completion_matches)
9637 (collect_symbol_completion_matches_type)
9638 (collect_file_symbol_completion_matches)
9639 (make_source_files_completion_list): New.
9640 * top.c (init_main): Don't install a rl_completion_entry_function
9641 hook. Install a rl_attempted_completion_function hook instead.
9642 * tui/tui-layout.c (layout_completer): Adjust to work with a
9643 completion_tracker.
9644 * tui/tui-regs.c (tui_reggroup_completer):
9645 * tui/tui-win.c (window_name_completer, focus_completer)
9646 (winheight_completer): Adjust to work with a completion_tracker.
9647 * value.c: Include "completer.h".
9648 (complete_internalvar): Adjust to work with a completion_tracker.
9649 * value.h (complete_internalvar): Likewise.
9650
6e1dbf8c
PA
96512017-07-17 Pedro Alves <palves@redhat.com>
9652
9653 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
9654 renames.
9655 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
9656 comments to completer_ftype's declaration.
9657 <completer_handle_brkchars>: Change type to
9658 completer_handle_brkchars_ftype.
9659 * command.h (completer_ftype): Add describing comment and give
9660 names to parameters.
9661 (completer_ftype_void): Rename to ...
9662 (completer_handle_brkchars_ftype) ... this. Add describing comment.
9663 (set_cmd_completer_handle_brkchars): Adjust.
9664 * completer.c (filename_completer_handle_brkchars): New function.
9665 (complete_line_internal_normal_command): New function, factored
9666 out from ...
9667 (complete_line_internal): ... here.
9668 (command_completer_handle_brkchars)
9669 (default_completer_handle_brkchars)
9670 (completer_handle_brkchars_func_for_completer): New functions.
9671 * completer.h (set_gdb_completion_word_break_characters): Delete
9672 declaration.
9673 (completer_handle_brkchars_func_for_completer): New declaration.
9674 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
9675 completer_handle_brkchars_func_for_completer.
9676
78b13106
PA
96772017-07-17 Pedro Alves <palves@redhat.com>
9678
9679 * completer.c (symbol_completer): New function, based on
9680 make_symbol_completion_list_fn.
9681 * completer.h (symbol_completer): New declaration.
9682 * guile/scm-cmd.c (cmdscm_completers): Adjust.
9683 * python/py-cmd.c (completers): Adjust.
9684 * symtab.c (make_symbol_completion_list_fn): Delete.
9685 * symtab.h (make_symbol_completion_list_fn): Delete.
9686 * cli/cli-decode.c (add_cmd): Adjust.
9687
bbf2f4df
PA
96882017-07-17 Pedro Alves <palves@redhat.com>
9689
9690 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
9691 * dwarf2read.c: Include "filename-seen-cache.h".
9692 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
9693 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
9694 * filename-seen-cache.c: New file.
9695 * filename-seen-cache.h: New file.
9696 * symtab.c: Include "filename-seen-cache.h".
9697 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
9698 (create_filename_seen_cache, clear_filename_seen_cache)
9699 (delete_filename_seen_cache, filename_seen): Delete, parts moved
9700 to filename-seen-cache.h/filename-seen-cache.c.
9701 (output_source_filename, sources_info)
9702 (maybe_add_partial_symtab_filename)
9703 (make_source_files_completion_list): Adjust to use
9704 filename_seen_cache.
9705
330cdd98
PA
97062017-07-17 Pedro Alves <palves@redhat.com>
9707
9708 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
9709 fields.
9710 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
9711 dwarf2_debug_sections*)): New.
9712 (dwarf2_per_objfile::dwarf2_per_objfile(const
9713 dwarf2_per_objfile&)): Declare as deleted.
9714 (dwarf2_per_objfile::operator=): Declare as deleted.
9715 (dwarf2_per_objfile::dwarf2_per_objfile)
9716 (dwarf2_per_objfile::~dwarf2_per_objfile)
9717 (dwarf2_per_objfile::free_cached_comp_units): New.
9718 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
9719 ctor. Call dwarf2_per_objfile's ctor manually.
9720 (dwarf2_locate_sections): Deleted/refactored as ...
9721 (dwarf2_per_objfile::locate_sections): ... this new method.
9722 (free_cached_comp_units): Defer to
9723 dwarf2_per_objfile::free_cached_comp_units.
9724 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
9725
8880f2a9
TT
97262017-07-14 Tom Tromey <tom@tromey.com>
9727
9728 PR rust/21764:
9729 * rust-exp.y (convert_ast_to_expression): Add "want_type"
9730 parameter.
9731 <UNOP_SIZEOF>: Split into separate case.
9732 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
9733
65547233
TT
97342017-07-14 Tom Tromey <tom@tromey.com>
9735
9736 PR rust/21763:
9737 * symtab.c (symbol_matches_domain): Add language_rust to special
9738 case.
9739 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
9740 treat LOC_TYPEDEF symbols as variables.
9741
8f14146e
PA
97422017-07-14 Pedro Alves <palves@redhat.com>
9743
9744 * symtab.c (make_file_symbol_completion_list_1): Iterate over
9745 symtabs matching all symtabs with SRCFILE as file name instead of
9746 only considering the first hit, with lookup_symtab.
9747
2347965c
SM
97482017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9749
9750 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
9751 operator_name parameters.
9752 (gen_expr): Update function call.
9753
40f4af28
SM
97542017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9755
9756 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
9757 parameter.
9758 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
9759 Likewise.
9760 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
9761 parameter, use agent_expr::gdbarch instead, update function
9762 calls.
9763 (locexpr_tracepoint_var_ref): Likewise.
9764 (loclist_tracepoint_var_ref): Likewise.
9765 * ax-gdb.c (gen_trace_static_fields): Likewise.
9766 (gen_traced_pop): Likewise.
9767 (gen_frame_args_address): Likewise.
9768 (gen_frame_locals_address): Likewise.
9769 (gen_var_ref): Likewise.
9770 (gen_struct_ref_recursive): Likewise.
9771 (gen_static_field): Likewise.
9772 (gen_maybe_namespace_elt): Likewise.
9773 (gen_expr): Likewise.
9774 (gen_trace_for_var): Likewise.
9775 (gen_trace_for_expr): Likewise.
9776 (gen_trace_for_return_address): Likewise.
9777
053f8057
SM
97782017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9779
9780 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
9781 parameter.
9782 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
9783
6661ad48
SM
97842017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9785
9786 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
9787 from ax, update calls.
9788 (gen_usual_arithmetic): Likewise.
9789 (gen_integral_promotions): Likewise.
9790 (gen_bitfield_ref): Likewise.
9791 (gen_primitive_field): Likewise.
9792 (gen_struct_ref_recursive): Likewise.
9793 (gen_struct_ref): Likewise.
9794 (gen_maybe_namespace_elt): Likewise.
9795 (gen_struct_elt_for_reference): Likewise.
9796 (gen_namespace_elt): Likewise.
9797 (gen_aggregate_elt_ref): Likewise.
9798 (gen_expr): Get gdbarch from ax, update calls.
9799 (gen_expr_binop_rest): Likewise.
9800
c55a47e7
PA
98012017-07-13 Pedro Alves <palves@redhat.com>
9802
9803 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
9804 as default tdesc.
9805 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
9806 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
9807 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
9808 tdesc_amd64_linux as default tdesc. Get final tdesc from the
9809 tdep.
9810 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
9811 Get final tdesc from the tdep.
9812 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
9813 default tdesc.
9814 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
9815 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
9816 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
9817 Use it as default tdesc.
9818 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
9819 down to amd_init_abi. No longer handle fallback tdesc here.
9820 * amd64-tdep.h (tdesc_x32): Declare.
9821 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
9822 parameter.
9823 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
9824 as default tdesc.
9825
55efceab
AA
98262017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9827
9828 * s390-linux-tdep.c (s390_process_record): Add support for
9829 instructions new in arch12.
9830
0aa37b65
JB
98312017-07-11 John Baldwin <jhb@FreeBSD.org>
9832
9833 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9834 PT_GETFSBASE and PT_GETGSBASE.
9835 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
9836 PT_SETGSBASE.
9837
48aeef91
JB
98382017-07-11 John Baldwin <jhb@FreeBSD.org>
9839
9840 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
9841 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
9842 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
9843 those rules.
9844 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
9845 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
9846 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
9847 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
9848 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
9849 * features/i386/amd64.xml: Add 64bit-segments.xml.
9850 * features/i386/amd64-avx-avx512.c: Regenerated.
9851 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
9852 * features/i386/amd64-avx-mpx.c: Regenerated.
9853 * features/i386/amd64-avx.c: Regenerated.
9854 * features/i386/amd64-mpx.c: Regenerated.
9855 * features/i386/amd64.c: Regenerated.
9856 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
9857 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
9858 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
9859 * regformats/i386/amd64-avx.dat: Regenerated.
9860 * regformats/i386/amd64-mpx.dat: Regenerated.
9861 * regformats/i386/amd64.dat: Regenerated.
9862
77c501bc
YQ
98632017-07-10 Yao Qi <yao.qi@linaro.org>
9864
9865 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9866 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9867
6dc8d757
AK
98682017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
9869
9870 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
9871 unsetenv.
9872 * gnulib/aclocal.m4: Regenerate.
9873 * gnulib/config.in: Regenerate.
9874 * gnulib/configure: Regenerate.
9875 * gnulib/import/Makefile.am: Regenerate.
9876 * gnulib/import/Makefile.in: Regenerate.
9877 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
9878 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
9879 * gnulib/import/m4/environ.m4: New file.
9880 * gnulib/import/m4/setenv.m4: New file.
9881 * gnulib/import/setenv.c: New file.
9882 * gnulib/import/unsetenv.c: New file.
9883
266934d1
SM
98842017-07-09 Simon Marchi <simon.marchi@ericsson.com>
9885
9886 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
9887 address when op is DW_OP_addr.
9888
03278692
TT
98892017-07-09 Tom Tromey <tom@tromey.com>
9890
9891 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
9892 check and apply to outer type.
9893
4b654465
JB
98942017-07-07 John Baldwin <jhb@FreeBSD.org>
9895
9896 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
9897 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
9898 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
9899 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
9900
2af9fc44
JB
99012017-07-07 John Baldwin <jhb@FreeBSD.org>
9902
9903 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
9904
382b69bb
JB
99052017-07-07 John Baldwin <jhb@FreeBSD.org>
9906
9907 * corelow.c (get_core_siginfo): Remove.
9908 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
9909 instead of get_core_siginfo.
9910 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
9911 * gdbarch.h: Re-generate.
9912 * gdbarch.c: Re-generate.
9913 * linux-tdep.c (linux_core_xfer_siginfo): New.
9914 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
9915
6e5eab33
JB
99162017-07-07 John Baldwin <jhb@FreeBSD.org>
9917
9918 * corelow.c (thread_section_name): Move to ...
9919 * gdbcore.h (thread_section_name): ... here.
9920
929edea9
JB
99212017-07-07 John Baldwin <jhb@FreeBSD.org>
9922
9923 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
9924 (struct siginfo32): New.
9925 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
9926 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
9927 via ptrace(PT_LWPINFO).
9928
762c974a
JB
99292017-07-07 John Baldwin <jhb@FreeBSD.org>
9930
9931 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
9932 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
9933 (fbsd_get_siginfo_type): New.
9934 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
9935 (_initialize_fbsd_tdep): New.
9936
33c5cd75
DB
99372017-07-06 David Blaikie <dblaikie@gmail.com>
9938
9939 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
9940 a singular dwo_unit*) to support multiple CUs in the same way that
9941 multiple TUs are supported.
9942 (create_cus_hash_table): Replace create_dwo_cu with a function for
9943 parsing multiple CUs from a DWO file.
9944 (open_and_init_dwo_file): Use create_cus_hash_table rather than
9945 create_dwo_cu.
9946 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
9947 htab_find, rather than comparing the signature to a singleton CU in
9948 the dwo_file.
9949
8455d262
PA
99502017-07-06 Pedro Alves <palves@redhat.com>
9951
9952 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
9953
4da3eb35
PA
99542017-07-04 Pedro Alves <palves@redhat.com>
9955
9956 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
9957 * gdbtypes.h (TYPE_STATIC): Delete.
9958 (struct fn_field) <is_public, is_abstract, is_static, is_final,
9959 is_synchronized, is_native>: Delete.
9960 <dummy>: Bump.
9961 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
9962 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
9963 (TYPE_FN_FIELD_ABSTRACT): Delete.
9964
5bfd255c
SM
99652017-07-03 Simon Marchi <simon.marchi@ericsson.com>
9966
9967 * buffer.h (buffer_finish): Fix spelling mistakes.
9968
25c54127
EZ
99692017-07-01 Eli Zaretskii <eliz@gnu.org>
9970
9971 * .dir-locals.el: Automatically switch to C-style comments in
9972 versions of Emacs that support the feature.
9973
dc4bde35
SDJ
99742017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
9975 Pedro Alves <palves@redhat.com>
9976
9977 PR cli/21688
9978 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
9979 (process_next_line): New variable 'inline_cmd'.
9980 Adjust 'if' clauses for "python", "compile" and "guile" to use
9981 'command_name_equals' and check for '!inline_cmd'.
9982
51ed89aa
SDJ
99832017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
9984
9985 PR cli/21688
9986 * cli/cli-script.c (command_name_equals_not_inline): New function.
9987 (process_next_line): Adjust 'if' clauses for "python", "compile"
9988 and "guile" to use command_name_equals_not_inline.
9989
eb17d413
PA
99902017-06-29 Pedro Alves <palves@redhat.com>
9991
9992 * completer.c (expression_completer): Call
9993 linespec_location_completer instead of location_completer.
9994
195bcdd5
PA
99952017-06-29 Pedro Alves <palves@redhat.com>
9996
9997 * completer.c (expression_completer): Remove code that recomputes
9998 'text' from 'word'.
9999
adc764e7
YQ
100002017-06-29 Yao Qi <yao.qi@linaro.org>
10001
10002 * regformats/regdat.sh: Generate code with
10003 "ifndef IN_PROCESS_AGENT".
10004
6e75794e
PA
100052017-06-28 Pedro Alves <palves@redhat.com>
10006
10007 * command.h: Include "common/scoped_restore.h".
10008
bc491f2e
YQ
100092017-06-28 Yao Qi <yao.qi@linaro.org>
10010
10011 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
10012 instead of obstack_grow.
10013
41664b45
DG
100142017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
10015
10016 PR gdb/21337
10017 * symfile.c (reread_symbols): Call objfiles_changed just before
10018 read_symbols.
10019
6da67eb1
PA
100202017-06-27 Pedro Alves <palves@redhat.com>
10021
10022 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
10023 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
10024 (completion_list_add_symbol, completion_list_add_msymbol):
10025 ... these new functions.
10026 (add_symtab_completions)
10027 (default_make_symbol_completion_list_break_on_1): Adjust.
10028
23732b1e
PA
100292017-06-27 Pedro Alves <palves@redhat.com>
10030
10031 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
10032 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
10033 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
10034 dtor.
10035 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
10036 'storage_obstack' field an auto_obstack. In-class initialize all
10037 non-bitfield fields. Make minsyms_read bool.
10038 * symfile.c (read_symbols): Adjust.
10039
a4d1e79a
AH
100402017-06-27 Alan Hayward <alan.hayward@arm.com>
10041
10042 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
10043 (gdbsim_store_register): Likewise.
10044
8268c778
PA
100452017-06-27 Pedro Alves <palves@redhat.com>
10046
10047 * c-exp.y (name_obstack): Now an auto_obstack.
10048 (yylex): Use auto_obstack::clear.
10049 (c_parse): Use auto_obstack::clear instead of reinitializing and
10050 freeing the obstack.
10051 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
10052 * d-exp.y (name_obstack): Now an auto_obstack.
10053 (yylex): Use auto_obstack::clear.
10054 (d_parse): Use auto_obstack::clear instead of reinitializing and
10055 freeing the obstack.
10056 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
10057 auto_obstack.
10058 * dwarf2read.c (create_addrmap_from_index)
10059 (dwarf2_build_psymtabs_hard)
10060 (update_enumeration_type_from_children): Likewise.
10061 * gdb_obstack.h (auto_obstack): New type.
10062 * go-exp.y (name_obstack): Now an auto_obstack.
10063 (build_packaged_name): Use auto_obstack::clear.
10064 (go_parse): Use auto_obstack::clear instead of reinitializing and
10065 freeing the obstack.
10066 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
10067 auto_obstack.
10068 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
10069 * rust-exp.y (work_obstack): Now an auto_obstack.
10070 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
10071 reinitializing and freeing the obstack.
10072 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
10073 (host_char_to_target): Use auto_obstack.
10074 * utils.h (make_cleanup_obstack_free): Delete declaration.
10075 * valprint.c (generic_emit_char, generic_printstr): Use
10076 auto_obstack.
10077
db665f42
SM
100782017-06-27 Simon Marchi <simon.marchi@ericsson.com>
10079
10080 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
10081 thread.
10082 (darwin_init_thread_list): Don't update dummy thread.
10083 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
10084
873c0814
SM
100852017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10086
10087 * record-full.c (netorder16): Remove.
10088
8b5a7a6e
SM
100892017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10090
10091 * common/diagnostics.h: Define macros for GCC.
10092 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
10093 * common/vec.h: Include diagnostics.h.
10094 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
10095 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
10096 warning.
10097
d1435379
SM
100982017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10099
10100 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
10101 New macro.
10102 * ada-lex.l: Ignore deprecated register warnings.
10103
cc75e0fd
SM
101042017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10105
10106 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
10107 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
10108
07809eaf
SM
101092017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10110
10111 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
10112 its own line.
10113
f076f034
SM
101142017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10115
10116 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
10117
0dd5cbc5
AH
101182017-06-23 Alan Hayward <alan.hayward@arm.com>
10119
10120 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
10121 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
10122 (xtensa_register_read_masked): Likewise.
10123
d4c6ce5b
SDJ
101242017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
10125
10126 * common/environ.c (gdb_environ::unset): Update comment.
10127
16892a03
AH
101282017-06-22 Alan Hayward <alan.hayward@arm.com>
10129
10130 * python/py-unwind.c (pyuw_sniffer): Allocate space for
10131 registers.
10132
d7dcbefc
AH
101332017-06-22 Alan Hayward <alan.hayward@arm.com>
10134
10135 * record-full.c (record_full_exec_insn): Use byte_vector.
10136
b30ff123
YQ
101372017-06-22 Yao Qi <yao.qi@linaro.org>
10138
10139 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
10140 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10141
4fa847d7
AH
101422017-06-22 Alan Hayward <alan.hayward@arm.com>
10143
10144 * remote.c (cached_reg): Move from here...
10145 * regcache.h (cached_reg): ...to here.
10146 * python/py-unwind.c (struct reg_info): Remove.
10147 (cached_frame_info): Use cached_reg_t.
10148 (pyuw_prev_register): Likewise.
10149 (pyuw_sniffer): Use cached_reg_t and allocate registers.
10150 (pyuw_dealloc_cache): Free all registers.
10151
f4906a9a
PA
101522017-06-22 Pedro Alves <palves@redhat.com>
10153 Simon Marchi <simon.marchi@ericsson.com>
10154
10155 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
10156 warning.
10157 * common/diagnostics.h: New file.
10158
b45a1208
PA
101592017-06-22 Pedro Alves <palves@redhat.com>
10160
10161 * common/agent.h: Add include guards.
10162
e4da2c61
SM
101632017-06-21 Simon Marchi <simon.marchi@ericsson.com>
10164
10165 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
10166 talk about addressable units instead of bytes.
10167
96160d60
SDJ
101682017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10169
10170 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
10171 of '::const_iterator'.
10172
9a6c7d9c
SDJ
101732017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10174
10175 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10176 'unittests/environ-selftests.c'.
10177 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
10178 * charset.c (find_charset_names): Declare object 'iconv_env'.
10179 Update code to use 'iconv_env' object. Remove call to
10180 'free_environ'.
10181 * common/environ.c: Include <utility>.
10182 (make_environ): Delete function.
10183 (free_environ): Delete function.
10184 (gdb_environ::clear): New function.
10185 (gdb_environ::operator=): New function.
10186 (gdb_environ::get): Likewise.
10187 (environ_vector): Delete function.
10188 (set_in_environ): Delete function.
10189 (gdb_environ::set): New function.
10190 (unset_in_environ): Delete function.
10191 (gdb_environ::unset): New function.
10192 (gdb_environ::envp): Likewise.
10193 * common/environ.h: Include <vector>.
10194 (struct gdb_environ): Delete; transform into...
10195 (class gdb_environ): ... this class.
10196 (free_environ): Delete prototype.
10197 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
10198 environ_vector): Likewise.
10199 * infcmd.c (run_command_1): Update code to call
10200 'envp' from 'gdb_environ' class.
10201 (environment_info): Update code to call methods from 'gdb_environ'
10202 class.
10203 (unset_environment_command): Likewise.
10204 (path_info): Likewise.
10205 (path_command): Likewise.
10206 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
10207 (inferior::inferior): Initialize 'environment' using the host's
10208 information.
10209 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
10210 Include "environ.h".
10211 (class inferior) <environment>: Change type from 'struct
10212 gdb_environ' to 'gdb_environ'.
10213 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
10214 methods from 'gdb_environ' class.
10215 * solib.c (solib_find_1): Likewise
10216 * unittests/environ-selftests.c: New file.
10217
75c554cf
YQ
102182017-06-20 Yao Qi <yao.qi@linaro.org>
10219
10220 * features/i386/i386-linux.xml: Exchange the order of including
10221 32bit-linux.xml and 32bit-sse.xml.
10222 * features/i386/i386-linux.c: Regenerated.
10223
72ddacb7
YQ
102242017-06-20 Yao Qi <yao.qi@linaro.org>
10225
10226 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
10227 Delete copy ctor and assignment operator.
10228 (tdesc_type): Likewise.
10229 (tdesc_feature): Likewise.
10230 (tdesc_free_reg): Remove.
10231 (tdesc_create_reg): Use new.
10232 (tdesc_free_type): Remove.
10233 (tdesc_create_vector): Use new.
10234 (tdesc_create_union): Likewise.
10235 (tdesc_create_flags): Likewise.
10236 (tdesc_create_enum): Likewise.
10237 (tdesc_free_feature): Delete.
10238 (free_target_description): Use delete.
10239
325c9fd4
JB
102402017-06-19 John Baldwin <jhb@FreeBSD.org>
10241
10242 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
10243 registers.
10244
16b7a719
PA
102452017-06-19 Pedro Alves <palves@redhat.com>
10246
10247 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
10248 after gdb::unlinker.
10249
1c8e01c9
SDJ
102502017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
10251
10252 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
10253 gdb_environ to access an environment variable.
10254
ffce45d2
TP
102552017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10256
10257 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
10258 gdb_byte*.
10259
1d4fbac9
SM
102602017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10261
10262 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
10263
8465943a
SM
102642017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10265
10266 * configure: Re-generate.
10267 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
10268
3e019bdc
SM
102692017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10270
10271 * configure: Re-generate.
10272 * warning.m4: Pass -Werror to compiler when checking for
10273 supported warning flags.
10274
cf0dd6f0
SM
102752017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10276
10277 * Makefile.in (COMPILE.pre): Add "-x c++".
10278
6f98355c
YQ
102792017-06-16 Alan Hayward <alan.hayward@arm.com>
10280 Pedro Alves <palves@redhat.com>
10281 Yao Qi <yao.qi@linaro.org>
10282
10283 * defs.h (RequireLongest): New.
10284 (extract_integer): Declare function template.
10285 (extract_signed_integer): Remove the declaration, but define it
10286 static inline.
10287 (extract_unsigned_integer): Likewise.
10288 (store_integer): Declare function template.
10289 (store_signed_integer): Remove the declaration, but define it
10290 static inline.
10291 (store_unsigned_integer): Likewise.
10292 * findvar.c (extract_integer): New function template.
10293 (extract_signed_integer): Remove.
10294 (extract_unsigned_integer): Remove.
10295 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
10296 instantiations.
10297 (store_integer): New function template.
10298 (store_signed_integer): Remove.
10299 (store_unsigned_integer): Remove.
10300 (store_integer): Explicit instantiations.
10301 * regcache.c (regcache_raw_read_signed): Update.
10302 (regcache::raw_read): New function.
10303 (regcache::raw_read_signed): Remove.
10304 (regcache::raw_read_unsigned): Remove.
10305 (regcache_raw_read_unsigned): Update.
10306 (regcache_raw_write_unsigned): Update.
10307 (regcache::raw_write_signed): Remove.
10308 (regcache::raw_write): New function.
10309 (regcache_cooked_read_signed): Update.
10310 (regcache::raw_write_unsigned): Remove.
10311 (regcache::cooked_read_signed): Remove.
10312 (regcache_cooked_read_unsigned): Update.
10313 (regcache::cooked_read_unsigned): Remove.
10314 (regcache_cooked_write_signed): Update.
10315 (regcache_cooked_write_unsigned): Update.
10316 * regcache.h (regcache) <raw_read_signed>: Remove.
10317 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
10318 <raw_read, raw_write>: New.
10319 <cooked_read_signed, cooked_write_signed>: Remove.
10320 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
10321 <cooked_read, cooked_write>: New.
10322 * sh64-tdep.c (sh64_pseudo_register_read): Update.
10323 (sh64_pseudo_register_write): Update.
10324
a87dc45a
AK
103252017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
10326
10327 * arc-tdep.c (arc_disassembler_options): New variable.
10328 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
10329 of default_print_insn.
10330 (arc_delayed_print_insn): Set info->section when needed,
10331 use default_print_insn to retrieve a disassembler.
10332
45159d6a
SDJ
103332017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
10334
10335 PR gdb/21574
10336 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
10337 to mention $SHELL and startup-with-shell.
10338
b46c4cf0
MF
103392017-06-14 Max Filippov <jcmvbkbc@gmail.com>
10340
10341 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
10342
6394c606
YQ
103432017-06-14 Yao Qi <yao.qi@linaro.org>
10344
10345 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
10346 default_print_insn instead of print_insn_aarch64.
10347 * arm-tdep.c (gdb_print_insn_arm): Call
10348 default_print_insn instead of print_insn_big_arm
10349 and print_insn_little_arm.
10350 * i386-tdep.c (i386_print_insn): Call default_print_insn
10351 instead of print_insn_i386.
10352 * ia64-tdep.c (ia64_print_insn): Call
10353 default_print_insn instead of print_insn_ia64.
10354 * mips-tdep.c (gdb_print_insn_mips): Call
10355 default_print_insn instead of print_insn_big_mips
10356 and print_insn_little_mips.
10357 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
10358 instead of print_insn_spu.
10359
d5722aa2
PA
103602017-06-14 Pedro Alves <palves@redhat.com>
10361
10362 * ada-lang.c: Include "common/byte-vector.h".
10363 (ada_value_primitive_packed_val): Use gdb::byte_vector.
10364 * charset.c (wchar_iterator::iterate): Resize the vector instead
10365 of reserving it.
10366 * common/byte-vector.h: Include "common/def-vector.h".
10367 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
10368 * cli/cli-dump.c: Include "common/byte-vector.h".
10369 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
10370 * common/byte-vector.h: New file.
10371 * common/def-vector.h: New file.
10372 * common/default-init-alloc.h: New file.
10373 * dwarf2loc.c: Include "common/byte-vector.h".
10374 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
10375 instead of reserving it.
10376 * dwarf2read.c: Include "common/byte-vector.h".
10377 (data_buf::m_vec): Now a gdb::byte_vector.
10378 * gdb_regex.c: Include "common/def-vector.h".
10379 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
10380 * mi/mi-main.c: Include "common/byte-vector.h".
10381 (mi_cmd_data_read_memory): Use gdb::byte_vector.
10382 * printcmd.c: Include "common/byte-vector.h".
10383 (print_scalar_formatted): Use gdb::byte_vector.
10384 * valprint.c: Include "common/byte-vector.h".
10385 (maybe_negate_by_bytes, print_decimal_chars): Use
10386 gdb::byte_vector.
10387
01ec7a27
SM
103882017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10389
10390 * darwin-nat.c: Include "nat/fork-inferior.h".
10391
848d9074
SM
103922017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10393
10394 * configure.nat: Factor out Darwin bits that are not
10395 architecture-specific. Add fork-inferior.o.
10396
3b912944
SM
103972017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10398
10399 * configure.nat: Factor out AIX bits that are not
10400 architecture-specific. Add fork-inferior.o.
10401
55acdf22
AA
104022017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10403
10404 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
10405 (read_pieced_value, write_pieced_value): ...here. Reduce to
10406 wrappers that just call rw_pieced_value.
10407
f65e2044
AA
104082017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10409
10410 * dwarf2loc.c (write_pieced_value): When writing the data for a
10411 memory piece, use write_memory_with_notification instead of
10412 write_memory.
10413
23f945bf
AA
104142017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10415
10416 * valops.c (read_value_memory): Change embedded_offset to
10417 represent a bit offset instead of a byte offset.
10418 * value.h (read_value_memory): Adjust comment.
10419
f236533e
AA
104202017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10421
10422 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
10423 dest_offset_bits and source_offset_bits.
10424 (write_pieced_value): Likewise.
10425
65d84b76
AA
104262017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10427
10428 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
10429 given by DW_OP_bit_piece.
10430 (write_pieced_value): Likewise.
10431
242d31ab
AA
104322017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10433
10434 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
10435 some other preparations to the places where sufficient information
10436 is available.
10437 (write_pieced_value): Likewise.
10438
03c8af18
AA
104392017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10440
10441 * dwarf2loc.c (bits_to_bytes): New function.
10442 (read_pieced_value): Fix offset calculations for register pieces
10443 on big-endian targets.
10444 (write_pieced_value): Likewise.
10445
840989c1
AA
104462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10447
10448 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
10449 (write_pieced_value): Likewise.
10450
359b19bb
AA
104512017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10452
10453 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
10454 transfer the source value's least significant bits, instead of its
10455 lowest-addressed ones. Rename type_len to max_offset.
10456 (read_pieced_value): Mirror above changes to write_pieced_value as
10457 applicable.
10458
07c9ca3b
AA
104592017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10460
10461 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
10462 truncate full bytes from dest_offset_bits before using it as an
10463 offset into the buffer.
10464
f1cc9874
AA
104652017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10466
10467 * dwarf2loc.c (write_pieced_value): Include transfer size in
10468 byte-wise check.
10469
cdaac320
AA
104702017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10471
10472 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
10473 calculation of this_size.
10474
af547a96
AA
104752017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10476
10477 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
10478 when targeting a bit-field.
10479 (write_pieced_value): Likewise.
10480
ddd7882a
AA
104812017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10482
10483 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
10484 (allocate_piece_closure): Drop addr_size parameter.
10485 (dwarf2_evaluate_loc_desc_full): Adjust call to
10486 allocate_piece_closure.
10487
e9352324
AA
104882017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10489
10490 PR gdb/21226
10491 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
10492 the LSB end, independent of endianness.
10493
d5d1163e
AA
104942017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10495
10496 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
10497 size capping.
10498
032bb6ea
YQ
104992017-06-13 Yao Qi <yao.qi@linaro.org>
10500
10501 * mips-linux-nat.c: Move include features/mips*-linux.c to
10502 mips-linux-tdep.c.
10503 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
10504 to mips-linux-tdep.c.
10505 * mips-linux-tdep.c: Include features/mips*-linux.c
10506 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
10507 functions.
10508 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
10509 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
10510 (tdesc_mips64_dsp_linux): Declare.
10511
f12f6bad
TT
105122017-06-12 Tom Tromey <tom@tromey.com>
10513
10514 * valprint.h (val_print_type_code_int): Remove.
10515 * valprint.c (generic_val_print_int): Always call
10516 val_print_scalar_formatted.
10517 (val_print_type_code_int): Remove.
10518 * printcmd.c (print_scalar_formatted): Handle options->format==0.
10519 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
10520 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
10521 * ada-valprint.c (ada_val_print_num): Use
10522 val_print_scalar_formatted.
10523
d9109c80
TT
105242017-06-12 Tom Tromey <tom@tromey.com>
10525
10526 * printcmd.c (print_scalar_formatted): Unify the two switches.
10527 Don't convert scalars to LONGEST.
10528
4ac0cb1c
TT
105292017-06-12 Tom Tromey <tom@tromey.com>
10530
10531 PR exp/16225:
10532 * valprint.h (print_decimal_chars): Update.
10533 * valprint.c (maybe_negate_by_bytes): New function.
10534 (print_decimal_chars): Add "is_signed" argument.
10535 * printcmd.c (print_scalar_formatted): Update.
10536
30a25466
TT
105372017-06-12 Tom Tromey <tom@tromey.com>
10538
10539 PR exp/16225:
10540 * valprint.h (print_binary_chars, print_hex_chars): Update.
10541 * valprint.c (val_print_type_code_int): Update.
10542 (print_binary_chars): Add "zero_pad" argument.
10543 (emit_octal_digit): New function.
10544 (print_octal_chars): Don't zero-pad.
10545 (print_decimal_chars): Likewise.
10546 (print_hex_chars): Add "zero_pad" argument.
10547 * sh64-tdep.c (sh64_do_fp_register): Update.
10548 * regcache.c (regcache::dump): Update.
10549 * printcmd.c (print_scalar_formatted): Update.
10550 * infcmd.c (default_print_one_register_info): Update.
10551
b3464d03
PA
105522017-06-12 Pedro Alves <palves@redhat.com>
10553 Alan Hayward <alan.hayward@arm.com>
10554
10555 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
10556 (mips_eabi_push_dummy_call): Rename local 'regsize' to
10557 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
10558 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
10559 Assert that abi_regsize bytes fit in 'ref_valbuf'.
10560
4b76cda9
PA
105612017-06-12 Pedro Alves <palves@redhat.com>
10562
10563 * dwarf2read.c (mapped_symtab::data): Now a vector of
10564 symtab_index_entry instead of vector of
10565 std::unique_ptr<symtab_index_entry>. All users adjusted to check
10566 whether an element's name is NULL instead of checking whether the
10567 element itself is NULL.
10568 (find_slot): Change return type. Adjust.
10569 (hash_expand, , add_index_entry, uniquify_cu_indices)
10570 (write_hash_table): Adjust.
10571
e8f8bcb3
PA
105722017-06-12 Pedro Alves <palves@redhat.com>
10573
10574 * dwarf2read.c (recursively_count_psymbols): New function.
10575 (write_psymtabs_to_index): Call it to compute number of psyms and
10576 pass estimate size of psyms_seen to unordered_set's ctor.
10577
70a1152b
PA
105782017-06-12 Pedro Alves <palves@redhat.com>
10579
10580 * dwarf2read.c (write_hash_table): Check if key already exists
10581 before emplacing.
10582
c2f134ac
PA
105832017-06-12 Pedro Alves <palves@redhat.com>
10584
10585 * dwarf2read.c (data_buf::append_space): Rename to...
10586 (data_buf::grow): ... this, and make private. Adjust all callers.
10587 (data_buf::append_uint): New method.
10588 (add_address_entry, write_one_signatured_type)
10589 (write_psymtabs_to_index): Use it.
10590
a81e6d4d
PA
105912017-06-12 Pedro Alves <palves@redhat.com>
10592
10593 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
10594 (file_write (FILE *, const std::vector<Elem>&)): Delete.
10595 (data_buf::file_write): Call ::fwrite directly.
10596
6fd931f2
PA
105972017-06-12 Pedro Alves <palves@redhat.com>
10598
10599 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
10600 std::vector::erase.
10601
bc8f2430
JK
106022017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10603
10604 Code cleanup: C++ify .gdb_index producer.
10605 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
10606 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
10607 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
10608 (create_strtab, add_string): Remove.
10609 (file_write, data_buf): New.
10610 (struct symtab_index_entry): Use std::vector for cu_indices.
10611 (struct mapped_symtab): Use std::vector for data.
10612 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
10613 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
10614 Remove.
10615 (find_slot): Change return type. Update it to the new data structures.
10616 (hash_expand, add_index_entry): Update it to the new data structures.
10617 (offset_type_compare): Remove.
10618 (uniquify_cu_indices): Update it to the new data structures.
10619 (c_str_view, c_str_view_hasher, vector_hasher): New.
10620 (add_indices_to_cpool): Remove.
10621 (write_hash_table): Update it to the new data structures.
10622 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
10623 (eq_psymtab_cu_index): Remove.
10624 (psym_index_map): New typedef.
10625 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
10626 reference and std::unordered_map for cu_index_htab.
10627 (add_address_entry, add_address_entry_worker, write_address_map)
10628 (write_psymbols): Update it to the new data structures.
10629 (write_obstack): Remove.
10630 (struct signatured_type_index_data): Change types_list to a data_buf
10631 reference and psyms_seen to a std::unordered_set reference.
10632 (write_one_signatured_type, recursively_write_psymbols)
10633 (write_psymtabs_to_index): Update it to the new data structures.
10634
c4dcb155
SM
106352017-06-11 Simon Marchi <simon.marchi@ericsson.com>
10636
10637 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
10638 separate-debug-file commands.
10639 * symfile.h (separate_debug_file_debug): New global.
10640 * symfile.c (separate_debug_file_debug): New global.
10641 (separate_debug_file_exists, find_separate_debug_file): Add
10642 debug output.
10643 (_initialize_symfile): Add "set debug separate-debug-file"
10644 command.
10645 * build-id.c (build_id_to_debug_bfd,
10646 find_separate_debug_file_by_buildid): Add debug output.
10647
6d45d4b4
SM
106482017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
10649
10650 * gdbarch.sh (displaced_step_free_closure): Remove.
10651 * gdbarch.h, gdbarch.c: Re-generate.
10652 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
10653 displaced_step_free_closure.
10654 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
10655 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10656 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10657 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10658 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10659 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10660 * arch-utils.h (simple_displaced_step_free_closure): Remove.
10661 * arch-utils.c (simple_displaced_step_free_closure): Remove.
10662 * infrun.c (displaced_step_clear): Call xfree instead of
10663 gdbarch_displaced_step_free_closure.
10664
2f91880f
SDJ
106652017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
10666
10667 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
10668 NULL".
10669
b8b6e72f
AH
106702017-06-08 Alan Hayward <alan.hayward@arm.com>
10671
10672 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
10673 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
10674 (mn10300_push_dummy_call): Likewise.
10675
5369082e
AH
106762017-06-08 Alan Hayward <alan.hayward@arm.com>
10677
10678 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
10679
ff4ca5ac
AH
106802017-06-08 Alan Hayward <alan.hayward@arm.com>
10681
10682 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
10683
aefd8b33
SDJ
106842017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10685
10686 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
10687 able to start inferiors using a shell.
10688 (New remote packets): Announce new packet "QStartupWithShell".
10689 * remote.c: Add PACKET_QStartupWithShell.
10690 (extended_remote_create_inferior): Handle new
10691 PACKET_QStartupWithShell.
10692 (remote_protocol_features) <QStartupWithShell>: New entry for
10693 PACKET_QStartupWithShell.
10694 (_initialize_remote): Call "add_packet_config_cmd" for
10695 QStartupShell.
10696
2090129c
SDJ
106972017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10698 Pedro Alves <palves@redhat.com>
10699
10700 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
10701 and "nat/fork-inferior.h".
10702 * common/common-inferior.h: New file, with contents from
10703 "gdb/inferior.h".
10704 * commom/common-utils.c: Include "common-utils.h".
10705 (stringify_argv): New function.
10706 * common/common-utils.h (stringify_argv): New prototype.
10707 * configure.nat: Add "fork-inferior.o" as a dependency for
10708 "*linux*", "fbsd*" and "nbsd*" hosts.
10709 * corefile.c (get_exec_file): Update comment.
10710 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
10711 instead of "startup_inferior".
10712 (darwin_create_inferior): Call "add_thread_silent" after
10713 "fork_inferior".
10714 * fork-child.c: Cleanup unnecessary includes.
10715 (SHELL_FILE): Move to "common/common-fork-child.c".
10716 (environ): Likewise.
10717 (exec_wrapper): Initialize.
10718 (get_exec_wrapper): New function.
10719 (breakup_args): Move to "common/common-fork-child.c"; rename to
10720 "breakup_args_for_exec".
10721 (escape_bang_in_quoted_argument): Move to
10722 "common/common-fork-child.c".
10723 (saved_ui): New variable.
10724 (prefork_hook): New function.
10725 (postfork_hook): Likewise.
10726 (postfork_child_hook): Likewise.
10727 (gdb_startup_inferior): Likewise.
10728 (fork_inferior): Move to "common/common-fork-child.c". Update
10729 function to support gdbserver.
10730 (startup_inferior): Likewise.
10731 * gdbcore.h (get_exec_file): Remove declaration.
10732 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
10733 instead of "startup_inferior". Call "add_thread_silent" after
10734 "fork_inferior".
10735 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
10736 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
10737 instead of "startup_inferior". Call "add_thread_silent" after
10738 "fork_inferior".
10739 * inferior.h: Include "common-inferior.h".
10740 (trace_start_error): Move to "common/common-utils.h".
10741 (trace_start_error_with_name): Likewise.
10742 (fork_inferior): Move prototype to "nat/fork-inferior.h".
10743 (startup_inferior): Likewise.
10744 (gdb_startup_inferior): New prototype.
10745 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
10746 * nat/fork-inferior.h: New file.
10747 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
10748 instead of "startup_inferior". Call "add_thread_silent" after
10749 "fork_inferior".
10750 * target.h (target_terminal_init): Move prototype to
10751 "target/target.h".
10752 (target_terminal_inferior): Likewise.
10753 (target_terminal_ours): Likewise.
10754 * target/target.h (target_terminal_init): New prototype, moved
10755 from "target.h".
10756 (target_terminal_inferior): Likewise.
10757 (target_terminal_ours): Likewise.
10758 * utils.c (gdb_flush_out_err): New function.
10759
043a4934
SDJ
107602017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10761
10762 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
10763 * common/common-gdbthread.h: New file, with parts from
10764 "gdb/gdbthread.h".
10765 * gdbthread.h: Include "common-gdbthread.h".
10766 (switch_to_thread): Moved to "common/common-gdbthread.h".
10767
15652511
SDJ
107682017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10769
10770 * Makefile.in (SFILES): Add "common/job-control.c".
10771 (HFILES_NO_SRCDIR): Add "common/job-control.h".
10772 (COMMON_OBS): Add "job-control.o".
10773 * common/job-control.c: New file, with contents from
10774 "gdb/inflow.c".
10775 * common/job-control.h: New file, with contents from "terminal.h".
10776 * fork-child.c: Include "job-control.h".
10777 * inflow.c: Include "job-control.h".
10778 (gdb_setpgid): Move to "common/common-inflow.c".
10779 (_initialize_inflow): Move setting of "job_control" to
10780 "handle_job_control".
10781 * terminal.h (job_control): Moved to "common/common-terminal.h".
10782 (gdb_setpgid): Likewise.
10783 * top.c: Include "job_control.h".
10784 * utils.c: Likewise.
10785 (job_control): Moved to "job-control.c".
10786
2d7cc5c7
PA
107872017-06-07 Pedro Alves <palves@redhat.com>
10788
10789 * Makefile.in (SFILES): Add gdb_regex.c.
10790 (COMMON_OBS): Add gdb_regex.o.
10791 * ada-lang.c (ada_add_standard_exceptions)
10792 (ada_add_exceptions_from_frame, name_matches_regex)
10793 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
10794 parameter type to compiled_regex. Adjust.
10795 (ada_exceptions_list): Use compiled_regex.
10796 * break-catch-throw.c (exception_catchpoint::pattern): Now a
10797 std::unique_ptr<compiled_regex>.
10798 (exception_catchpoint::~exception_catchpoint): Remove regfree
10799 call.
10800 (check_status_exception_catchpoint): Adjust to use compiled_regex.
10801 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
10802 * breakpoint.c (solib_catchpoint::compiled): Now a
10803 std::unique_ptr<compiled_regex>.
10804 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
10805 (check_status_catch_solib): Adjust to use compiled_regex.
10806 (add_solib_catchpoint): Adjust to use compiled_regex.
10807 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
10808 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
10809 compiled_regex reference. Adjust to use it.
10810 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
10811 declaration. Include "gdb_regex.h".
10812 (apropos_cmd): Change regex parameter to compiled_regex reference.
10813 * gdb_regex.c: New file.
10814 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
10815 declarations.
10816 (class compiled_regex): New.
10817 * linux-tdep.c: Include "common/gdb_optional.h".
10818 (struct mapping_regexes): New, factored out from
10819 mapping_is_anonymous_p, and adjusted to use compiled_regex.
10820 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
10821 gdb::optional and remove cleanups. Adjust to compiled_regex.
10822 * probe.c: Include "common/gdb_optional.h".
10823 (collect_probes): Use compiled_regex and gdb::optional and remove
10824 cleanups.
10825 * skip.c: Include "common/gdb_optional.h".
10826 (skiplist_entry::compiled_function_regexp): Now a
10827 gdb::optional<compiled_regex>.
10828 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
10829 (free_skiplist_entry): Remove regfree call.
10830 (compile_skip_regexp, skip_rfunction_p): Adjust to use
10831 compiled_regex and gdb::optional.
10832 * symtab.c: Include "common/gdb_optional.h".
10833 (search_symbols): Use compiled_regex and gdb::optional.
10834 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
10835 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
10836 to gdb_regex.c.
10837
50d6adef
AH
108382017-06-07 Alan Hayward <alan.hayward@arm.com>
10839
10840 * regcache.c (regcache::save): Avoid buffer use.
10841 (regcache::dump): Likewise.
10842
4a8a33c8
AH
108432017-06-07 Alan Hayward <alan.hayward@arm.com>
10844
10845 * sh-tdep.c (sh_pseudo_register_read): Remove
10846 MAX_REGISTER_SIZE.
10847 (sh_pseudo_register_write): Likewise.
10848 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
10849 (sh64_pseudo_register_write): Likewise
10850
d1be909e
AH
108512017-06-07 Alan Hayward <alan.hayward@arm.com>
10852
10853 * aarch64-tdep.c (aarch64_store_return_value): Use
10854 V_REGISTER_SIZE.
10855 (aarch64_pseudo_read_value): Likewise.
10856 (aarch64_pseudo_write): Likewise.
10857
f4a65042
YQ
108582017-06-06 Yao Qi <yao.qi@linaro.org>
10859
10860 * regformats/regdef.h (set_register_cache): Remove the
10861 declaration.
10862
9f7fb0aa
AH
108632017-06-06 Alan Hayward <alan.hayward@arm.com>
10864
10865 * frame.c (frame_unwind_register_signed): Use
10866 frame_unwind_register_value.
10867
e1e01040
PA
108682017-06-06 Pedro Alves <palves@redhat.com>
10869
10870 PR breakpoints/21553
10871 * breakpoint.c (create_breakpoints_sal_default)
10872 (init_breakpoint_sal, create_breakpoint_sal): Use
10873 gdb::unique_xmalloc_ptr for string parameters.
10874 (create_breakpoint): Constify 'extra_string' and 'cond_string'
10875 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
10876 (base_breakpoint_create_breakpoints_sal)
10877 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
10878 (strace_marker_create_breakpoints_sal)
10879 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
10880 string parameters.
10881 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
10882 gdb::unique_xmalloc_ptr for string parameters.
10883 (create_breakpoint): Constify 'extra_string' and 'cond_string'
10884 parameters.
10885
fbe654c8
AH
108862017-06-06 Alan Hayward <alan.hayward@arm.com>
10887
10888 * alpha-tdep.c (alpha_register_to_value): Use
10889 get_frame_register_value.
10890 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
10891
ae0d01d6
AH
108922017-06-06 Alan Hayward <alan.hayward@arm.com>
10893
10894 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
10895 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
10896 (ia64_value_to_register): Likewise.
10897 (ia64_extract_return_value): Likewise.
10898 (ia64_store_return_value): Likewise.
10899 (ia64_push_dummy_call): Likewise.
10900
49cf576c
JB
109012017-06-04 Joel Brobecker <brobecker@adacore.com>
10902
10903 GDB 8.0 released.
10904
26b6a6ab
SM
109052017-06-03 Simon Marchi <simon.marchi@ericsson.com>
10906
10907 * x86-linux-nat.c (struct arch_lwp_info): Remove.
10908
22827c51
SM
109092017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
10910
10911 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
10912 parameter.
10913 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
10914
0e05cf3a
SM
109152017-06-02 Simon Marchi <simon.marchi@ericsson.com>
10916
10917 * event-loop.c (poll_timers): Unallocate timer using delete
10918 instead of xfree.
10919
c1fc2657
SM
109202017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
10921
10922 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
10923 (struct breakpoint) <~breakpoint>: New.
10924 (struct watchpoint): Inherit from breakpoint.
10925 <~watchpoint>: New.
10926 <base>: Remove.
10927 (struct tracepoint): Inherit from breakpoint.
10928 <base>: Remove.
10929 * breakpoint.c (longjmp_breakpoint_ops): Remove.
10930 (struct longjmp_breakpoint): Inherit from breakpoint.
10931 <~longjmp_breakpoint>: New.
10932 <base>: Remove.
10933 (new_breakpoint_from_type): Remove casts.
10934 (watchpoint_in_thread_scope): Remove reference to base field.
10935 (watchpoint_del_at_next_stop): Likewise.
10936 (update_watchpoint): Likewise.
10937 (watchpoint_check): Likewise.
10938 (bpstat_check_watchpoint): Likewise.
10939 (set_longjmp_breakpoint): Likewise.
10940 (struct fork_catchpoint): Inherit from breakpoint.
10941 <base>: Remove.
10942 (struct solib_catchpoint): Inherit from breakpoint.
10943 <~solib_catchpoint>: New.
10944 <base>: Remove.
10945 (dtor_catch_solib): Change to ...
10946 (solib_catchpoint::~solib_catchpoint): ... this.
10947 (breakpoint_hit_catch_solib): Remove reference to base field.
10948 (add_solib_catchpoint): Likewise.
10949 (create_fork_vfork_event_catchpoint): Likewise.
10950 (struct exec_catchpoint): Inherit from breakpoint.
10951 <~exec_catchpoint>: New.
10952 <base>: Remove.
10953 (dtor_catch_exec): Change to ...
10954 (exec_catchpoint::~exec_catchpoint): ... this.
10955 (dtor_watchpoint): Change to ...
10956 (watchpoint::~watchpoint): ... this.
10957 (watch_command_1): Remove reference to base field.
10958 (catch_exec_command_1): Likewise.
10959 (base_breakpoint_dtor): Change to ...
10960 (breakpoint::~breakpoint): ... this.
10961 (base_breakpoint_ops): Remove dtor field value.
10962 (longjmp_bkpt_dtor): Change to ...
10963 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
10964 (strace_marker_create_breakpoints_sal): Remove reference to base
10965 field.
10966 (delete_breakpoint): Don't manually call breakpoint destructor.
10967 (create_tracepoint_from_upload): Remove reference to base field.
10968 (trace_pass_set_count): Likewise.
10969 (initialize_breakpoint_ops): Don't initialize
10970 momentary_breakpoint_ops, don't set dtors.
10971 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
10972 <~ada_catchpoint>: New.
10973 <base>: Remove.
10974 (create_excep_cond_exprs): Remove reference to base field.
10975 (dtor_exception): Change to ...
10976 (ada_catchpoint::~ada_catchpoint): ... this.
10977 (dtor_catch_exception): Remove.
10978 (dtor_catch_exception_unhandled): Remove.
10979 (dtor_catch_assert): Remove.
10980 (create_ada_exception_catchpoint): Remove reference to base
10981 field.
10982 (initialize_ada_catchpoint_ops): Don't set dtors.
10983 * break-catch-sig.c (struct signal_catchpoint): Inherit from
10984 breakpoint.
10985 <~signal_catchpoint>: New.
10986 <base>: Remove.
10987 (signal_catchpoint_dtor): Change to ...
10988 (signal_catchpoint::~signal_catchpoint): ... this.
10989 (create_signal_catchpoint): Remove reference to base field.
10990 (initialize_signal_catchpoint_ops): Don't set dtor.
10991 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
10992 from breakpoint.
10993 <~syscall_catchpoint>: New.
10994 <base>: Remove.
10995 (dtor_catch_syscall): Change to ...
10996 (syscall_catchpoint::~syscall_catchpoint): ... this.
10997 (create_syscall_event_catchpoint): Remove reference to base
10998 field.
10999 (initialize_syscall_catchpoint_ops): Don't set dtor.
11000 * break-catch-throw.c (struct exception_catchpoint): Inherit
11001 from breakpoint.
11002 <~exception_catchpoint>: New.
11003 <base>: Remove.
11004 (dtor_exception_catchpoint): Change to ...
11005 (exception_catchpoint::~exception_catchpoint): ... this.
11006 (handle_gnu_v3_exceptions): Remove reference to base field.
11007 (initialize_throw_catchpoint_ops): Don't set dtor.
11008 * ctf.c (ctf_get_traceframe_address): Remove reference to base
11009 field.
11010 * remote.c (remote_get_tracepoint_status): Likewise.
11011 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
11012 * tracefile.c (tracefile_fetch_registers): Likewise.
11013 * tracepoint.c (actions_command): Likewise.
11014 (validate_actionline): Likewise.
11015 (tfind_1): Likewise.
11016 (get_traceframe_location): Likewise.
11017 (find_matching_tracepoint_location): Likewise.
11018 (parse_tracepoint_status): Likewise.
11019 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
11020
3b0871f4
SM
110212017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11022
11023 * breakpoint.c (struct longjmp_breakpoint): New struct.
11024 (is_tracepoint_type): Change return type to bool.
11025 (is_longjmp_type): New function.
11026 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
11027 (set_raw_breakpoint_without_location): Use
11028 new_breakpoint_from_type.
11029 (set_raw_breakpoint): Likewise.
11030
a5e364af
SM
110312017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11032
11033 * breakpoint.c (new_breakpoint_from_type): New function.
11034 (create_breakpoint_sal): Use new_breakpoint_from_type and
11035 unique_ptr.
11036 (create_breakpoint): Likewise.
11037
ae3b3f34
SM
110382017-05-31 Simon Marchi <simon.marchi@ericsson.com>
11039
11040 * memattr.c (mem_info_command): Rename to ...
11041 (info_mem_command): ... this.
11042 (mem_enable_command): Rename to ...
11043 (enable_mem_command): ... this.
11044 (mem_disable_command): Rename to ...
11045 (disable_mem_command): ... this.
11046 (mem_delete_command): Rename to ...
11047 (delete_mem_command): ... this.
11048 (_initialize_mem): Adjust function names.
11049
13ace077
MM
110502017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11051
11052 * btrace.c (handle_pt_insn_events): New.
11053 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
11054 STATUS. Split into this and ...
11055 (handle_pt_insn_event_flags): ... this.
11056
c56ccc05
MM
110572017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11058
11059 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
11060 and struct pt_insn.resynced.
11061 * configure: Regenerated.
11062 * config.in: Regenerated.
11063
08c3f6d2
TW
110642017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11065
11066 * btrace.c (ftrace_find_call_by_number): New function.
11067 (ftrace_new_function): Store objects, not pointers.
11068 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
11069 ftrace_new_gap, ftrace_update_function,
11070 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
11071 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
11072 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
11073 btrace_ends_with_single_insn, btrace_call_get): Account for
11074 btrace_thread_info::functions now storing objects.
11075 * btrace.h (struct btrace_thread_info): Add constructor.
11076 (struct btrace_thread_info) <functions>: Make std::vector.
11077 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
11078 Initialize with default values.
11079 * record-btrace.c (record_btrace_frame_sniffer): Account for
11080 btrace_thread_info::functions now storing objects.
11081
8ffd39f2
TW
110822017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11083
11084 * btrace.c: Remove typedef bfun_s.
11085 (ftrace_new_gap): Directly add gaps to the list of gaps.
11086 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
11087 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
11088 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
11089 instead of gdb VEC.
11090
4aeb0dfc
TW
110912017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11092
11093 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
11094 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
11095 with btrace_thread_info::next_segment and
11096 btrace_thread_info::prev_segment.
11097 * btrace.h: Remove struct btrace_func_link.
11098 (struct btrace_function): Replace pair of function segment pointers
11099 with pair of indices.
11100 * python/py-record-btrace.c (btpy_call_prev_sibling,
11101 btpy_call_next_sibling): Replace references to
11102 btrace_thread_info::segment with btrace_thread_info::next_segment and
11103 btrace_thread_info::prev_segment.
11104 * record-btrace.c (record_btrace_frame_this_id): Use
11105 btrace_find_call_by_number.
11106
eb8f2b9c
TW
111072017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11108
11109 * btrace.c (ftrace_new_function, ftrace_fixup_level,
11110 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
11111 btrace_insn_next, btrace_insn_prev): Remove references to
11112 btrace_thread_info::flow.
11113 * btrace.h (struct btrace_function): Remove FLOW.
11114
42bfe59e
TW
111152017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11116
11117 * btrace.c (ftrace_find_call_by_number): New function.
11118 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
11119 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
11120 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
11121 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
11122 index.
11123 * btrace.h (struct btrace_function): Turn UP into an index.
11124 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
11125 as an index.
11126 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
11127 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
11128 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
11129
b54b03bd
TW
111302017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11131
11132 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11133 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11134 ftrace_update_function, ftrace_compute_global_level_offset,
11135 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
11136 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
11137 btrace_insn_end, btrace_is_empty): Remove references to
11138 btrace_thread_info::begin and btrace_thread_info::end.
11139 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
11140 (struct btrace_thread_info) <functions>: Adjust comment.
11141 * record-btrace.c (record_btrace_start_replaying): Remove reference to
11142 btrace_thread_info::begin.
11143
8286623c
TW
111442017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11145
11146 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11147 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11148 ftrace_update_function): Remove arguments that implicitly were always
11149 BTINFO->END.
11150 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
11151 Don't pass BTINFO->END.
11152
a0f1b963
TW
111532017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11154
11155 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
11156 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
11157 btrace_find_insn_by_number): Replace function segment pointer with
11158 index.
11159 (btrace_insn_cmp): Simplify.
11160 * btrace.h: (struct btrace_insn_iterator) Rename index to
11161 insn_index. Replace function segment pointer with index into function
11162 segment vector.
11163 * record-btrace.c (record_btrace_call_history): Replace function
11164 segment pointer use with index.
11165 (record_btrace_frame_sniffer): Retrieve function call segment through
11166 vector.
11167 (record_btrace_set_replay): Remove defunc't safety check.
11168
f158f208
TW
111692017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11170
11171 * btrace.c (btrace_ends_with_single_insn): New function.
11172 (btrace_call_get, btrace_call_number, btrace_call_begin,
11173 btrace_call_end, btrace_call_next, btrace_call_prev,
11174 btrace_find_call_by_number): Use index into call segment vector
11175 instead of pointer.
11176 (btrace_call_cmp): Simplify.
11177 * btrace.h (struct btrace_call_iterator): Replace function call segment
11178 pointer with index into vector.
11179 * record-btrace.c (record_btrace_call_history): Use index instead of
11180 pointer.
11181
521103fd
TW
111822017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11183
11184 * btrace.c (btrace_insn_begin, btrace_insn_end,
11185 btrace_find_insn_by_number): Add btinfo to iterator.
11186 * btrace.h (struct btrace_insn_iterator): Add btinfo.
11187
17b89b34
TW
111882017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11189
11190 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
11191 and save pointers directly.
11192 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
11193 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
11194 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
11195 changed signature of functions.
11196 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
11197 (btrace_fetch): Remove code that adds btrace_function pointers to
11198 vector of btrace_functions.
11199 (btrace_clear): Simplify freeing vector of btrace_functions.
11200
2b51eddc
TW
112012017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11202
11203 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
11204 Replace VEC_* with std::vector functions.
11205 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
11206 (struct btrace_thread_info)<functions>: Change type to std::vector.
11207
db6be0d5
SM
112082017-05-30 Simon Marchi <simon.marchi@ericsson.com>
11209
11210 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
11211 "Removed targets and native configurations" up. Merge duplicate
11212 "New commands" sub-sections. Add "New options" sub-sections.
11213
b057297a
AH
112142017-05-26 Alan Hayward <alan.hayward@arm.com>
11215
11216 * defs.h (copy_integer_to_size): New declaration.
11217 * findvar.c (copy_integer_to_size): New function.
11218 (do_cint_test): New selftest function.
11219 (copy_integer_to_size_test): Likewise.
11220 (_initialize_findvar): Likewise.
11221 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
11222 (mips_fbsd_collect_reg): Use raw_collect_integer.
11223 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
11224 (mips64_fill_gregset): Use raw_collect_integer
11225 (mips64_fill_fpregset): Use raw_supply_integer.
11226 * regcache.c (regcache::raw_supply_integer): New function.
11227 (regcache::raw_collect_integer): Likewise.
11228 * regcache.h: (regcache::raw_supply_integer): New declaration.
11229 (regcache::raw_collect_integer): Likewise.
11230
b77b02a5
YQ
112312017-05-24 Yao Qi <yao.qi@linaro.org>
11232
11233 * Makefile.in (SFILES): Add gdbarch-selftests.c.
11234 (COMMON_OBS): Add gdbarch-selftests.o.
11235 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
11236 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
11237 * gdbarch-selftests.c: New file.
11238 * regcache.h (regcache) <~regcache>: Mark it virtual if
11239 GDB_SELF_TEST.
11240 <raw_write>: Likewise.
11241
e521e87e
YQ
112422017-05-24 Yao Qi <yao.qi@linaro.org>
11243
11244 * regcache.c (current_regcache): Change it to
11245 regcache::current_regcache.
11246 (regcache_observer_target_changed): Update.
11247 (regcache_thread_ptid_changed): Make it a regcache static
11248 method.
11249 (regcache_thread_ptid_changed): Update.
11250 (class regcache_access): New.
11251 (current_regcache_test): Update.
11252 (_initialize_regcache): Update.
11253 * regcache.h: Include forward_list.
11254 (regcache): Declare regcache_thread_ptid_changed and declare
11255 registers_changed_ptid as friend.
11256
d8e07dda
YQ
112572017-05-24 Yao Qi <yao.qi@linaro.org>
11258
11259 * i387-tdep.c (i387_register_to_value): Use register_size
11260 instead of TYPE_LENGTH.
11261 * m68k-tdep.c (m68k_register_to_value): Likewise.
11262
8c8f9122
YQ
112632017-05-24 Yao Qi <yao.qi@linaro.org>
11264
11265 * i387-tdep.c (i387_convert_register_p): Return false if type
11266 code isn't TYPE_CODE_FLT.
11267
68fce50f
YQ
112682017-05-24 Yao Qi <yao.qi@linaro.org>
11269
11270 * alpha-tdep.c (alpha_convert_register_p): Return true if type
11271 length is 4.
11272 (alpha_register_to_value): Remove type length check.
11273 (alpha_value_to_register): Likewise.
11274
88954b49
YQ
112752017-05-24 Yao Qi <yao.qi@linaro.org>
11276
11277 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
11278 TYPE_CODE_FLT.
11279
e3ec9b69
YQ
112802017-05-24 Yao Qi <yao.qi@linaro.org>
11281
11282 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
11283 TYPE_CODE_FLT or not.
11284
cdd238da
YQ
112852017-05-24 Yao Qi <yao.qi@linaro.org>
11286
11287 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
11288 * avr-tdep.c (avr_gdbarch_init): Likewise.
11289 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11290 * cris-tdep.c (cris_gdbarch_init): Likewise.
11291 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11292 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11293 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11294 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11295 * mep-tdep.c (mep_gdbarch_init): Likewise.
11296 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11297 * mips-tdep.c (mips_gdbarch_init): Likewise.
11298 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11299 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11300 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11301 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11302 * v850-tdep.c (v850_gdbarch_init): Likewise.
11303
7a3929c4
YQ
113042017-05-24 Yao Qi <yao.qi@linaro.org>
11305
11306 * selftest-arch.c (tests_with_arch): Call registers_changed
11307 and reinit_frame_cache.
11308 * selftest.c (run_self_tests): Likewise.
11309
f4985dba
YQ
113102017-05-24 Yao Qi <yao.qi@linaro.org>
11311
11312 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
11313 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
11314
ab20fa4a
YQ
113152017-05-24 Yao Qi <yao.qi@linaro.org>
11316
11317 * rl78-tdep.c (rl78_gdbarch_init): Don't call
11318 set_gdbarch_print_insn.
11319
f532ab94
YQ
113202017-05-24 Yao Qi <yao.qi@linaro.org>
11321
11322 * h8300-tdep.c (h8300_gdbarch_init): Don't call
11323 set_gdbarch_print_insn.
11324
39503f82
YQ
113252017-05-24 Yao Qi <yao.qi@linaro.org>
11326
11327 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11328 set_gdbarch_print_insn.
11329 * arc-tdep.c (arc_gdbarch_init): Likewise.
11330 * arch-utils.c: include dis-asm.h.
11331 (default_print_insn): New function.
11332 * arch-utils.h (default_print_insn): Declare.
11333 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
11334 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11335 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
11336 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
11337 * frv-tdep.c (frv_gdbarch_init): Likewise.
11338 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11339 * gdbarch.sh (print_insn): Use default_print_insn.
11340 * gdbarch.c: Regenerated.
11341 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11342 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
11343 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11344 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
11345 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11346 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
11347 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
11348 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11349 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
11350 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11351 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11352 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11353 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11354 * mt-tdep.c (mt_gdbarch_init): Likewise.
11355 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11356 * nios2-tdep.c (nios2_print_insn): Remove.
11357 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
11358 * rx-tdep.c (rx_gdbarch_init): Likewise.
11359 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11360 * score-tdep.c (score_print_insn): Remove.
11361 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
11362 * sh-tdep.c (sh_gdbarch_init): Likewise.
11363 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11364 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11365 * tic6x-tdep.c (tic6x_print_insn): Remove.
11366 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
11367 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
11368 * v850-tdep.c (v850_gdbarch_init): Likewise.
11369 * vax-tdep.c (vax_gdbarch_init): Likewise.
11370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11371 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
11372
f7241d4f
JB
113732017-05-23 John Baldwin <jhb@FreeBSD.org>
11374
11375 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
11376 (MIPS_FP0_REGNUM): Remove.
11377 (MIPS_FSR_REGNUM): Remove.
11378 (mips_fbsd_supply_fpregs): Use mips_regnum.
11379 (mips_fbsd_supply_gregs): Likewise.
11380 (mips_fbsd_collect_fpregs): Likewise.
11381 (mips_fbsd_collect_gregs): Likewise.
11382
d489d81d
JB
113832017-05-23 John Baldwin <jhb@FreeBSD.org>
11384
11385 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
11386 (getpfpregs_supplies): New function.
11387 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
11388 getfpregs_supplies.
11389 (mips_fbsd_store_inferior_registers): Likewise.
11390
e11b3cdc
PA
113912017-05-22 Pedro Alves <palves@redhat.com>
11392
11393 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
11394 maintainer.
11395
0f068fb5
AH
113962017-05-22 Alan Hayward <alan.hayward@arm.com>
11397
11398 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
11399 (store_register): Likewise.
11400 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
11401 (get_decimal_float_return_value): Likewise.
11402 (do_ppc_sysv_return_value): Likewise.
11403 (ppc64_sysv_abi_push_integer): Likewise.
11404 (ppc64_sysv_abi_push_freg): Likewise.
11405 (ppc64_sysv_abi_return_value_base): Likewise.
11406 (ppc64_sysv_abi_return_value): Likewise.
11407 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
11408 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
11409 * rs6000-nat.c: Likewise.
11410 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
11411 (rs6000_value_to_register): Likewise.
11412 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
11413
e6cf65f2
TT
114142017-05-21 Tom Tromey <tom@tromey.com>
11415
11416 PR rust/21466:
11417 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
11418 arrays as "[T]", not "[T; ]".
11419
43cc5389
TT
114202017-05-19 Tom Tromey <tom@tromey.com>
11421
11422 PR rust/21484:
11423 * rust-lang.c (exp_descriptor_rust): New function.
11424 (rust_language_defn): Use it.
11425 * p-lang.c (pascal_language_defn): Update.
11426 * opencl-lang.c (opencl_language_defn): Update.
11427 * objc-lang.c (objc_language_defn): Update.
11428 * m2-lang.c (m2_language_defn): Update.
11429 * language.h (struct language_defn)
11430 <la_watch_location_expression>: New member.
11431 * language.c (unknown_language_defn, auto_language_defn)
11432 (local_language_defn): Update.
11433 * go-lang.c (go_language_defn): Update.
11434 * f-lang.c (f_language_defn): Update.
11435 * d-lang.c (d_language_defn): Update.
11436 * c-lang.h (c_watch_location_expression): Declare.
11437 * c-lang.c (c_watch_location_expression): New function.
11438 (c_language_defn, cplus_language_defn, asm_language_defn)
11439 (minimal_language_defn): Use it.
11440 * breakpoint.c (watch_command_1): Call
11441 la_watch_location_expression.
11442 * ada-lang.c (ada_language_defn): Update.
11443
7a6e7fcc
RO
114442017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11445
6e7e1744
RO
11446 PR tui/21482
11447 * gdb_curses.h (NOMACROS): Define.
11448 (NCURSES_NOMACROS): Define.
11449
114502017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11451
11452 PR tui/21482
7a6e7fcc
RO
11453 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
11454 arg to char *.
11455 * tui/tui-wingeneral.c (box_win): Likewise.
11456 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
11457 (tui_show_source_line): Likewise.
11458 (tui_show_exec_info_content): Likewise.
11459
1933fd8e
VM
114602017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
11461
11462 * sparc-tdep.c (sparc_structure_return_p)
11463 (sparc_arg_on_registers_p): New functions.
11464 (sparc32_store_arguments): Use them.
11465 * sparc64-tdep.c (sparc64_16_byte_align_p)
11466 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
11467 Handle TYPE_CODE_ARRAY.
11468
21873064
YQ
114692017-05-17 Yao Qi <yao.qi@linaro.org>
11470
11471 * cli/cli-decode.c (add_alias_cmd): New function.
11472 * command.h (add_alias_cmd): Declare.
11473 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
11474 instead call add_alias_cmd.
11475
2b351b19
PA
114762017-05-17 Pedro Alves <palves@redhat.com>
11477
11478 * Makefile.in (nat_extra_makefile_frag): Rename to ...
11479 (nat_makefile_frag): ... this. All references updated.
11480 * configure.ac: Likewise.
11481 * configure.nat: Likewise. Enhance comments.
11482 * configure: Regenerate.
11483
5f2ad7a3
RO
114842017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11485
11486 * procfs.c (procfs_create_inferior): Change prototype to match
11487 definition.
11488
adf3dde5
EZ
114892017-05-13 Eli Zaretskii <eliz@gnu.org>
11490
11491 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
11492 C++ compiler warning.
11493
6830f270
TT
114942017-05-12 Tom Tromey <tom@tromey.com>
11495
11496 PR rust/21483:
11497 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
11498 recurse, just call value_struct_elt directly.
11499
68f2f2e3
TT
115002017-05-12 Tom Tromey <tom@tromey.com>
11501
11502 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
11503 OP_RUST_ARRAY>: Fix.
11504
256afbc2
TT
115052017-05-12 Tom Tromey <tom@tromey.com>
11506
11507 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
11508
94bb8dfe
YQ
115092017-05-09 Yao Qi <yao.qi@linaro.org>
11510
11511 * regcache.c: Include <forward_list>.
11512 (struct regcache_list): Remove.
11513 (current_regcache): Update.
11514 (get_thread_arch_aspace_regcache): Update for std::forward_list.
11515 (regcache_thread_ptid_changed): Likewise.
11516 (registers_changed_ptid): Likewise.
11517 (current_regcache_size): Likewise.
11518
8248946c
YQ
115192017-05-09 Yao Qi <yao.qi@linaro.org>
11520
11521 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
11522 (current_regcache_size): New function.
11523 (current_regcache_test): New function.
11524 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
11525
313c5961
AH
115262017-05-08 Alan Hayward <alan.hayward@arm.com>
11527
11528 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
11529 (print_gp_register_row): Use get_frame_register_value.
11530
27bfc1d1
AH
115312017-05-08 Alan Hayward <alan.hayward@arm.com>
11532
11533 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
11534 (mips_supply_fpregset): Likewise.
11535 (mips64_supply_gregset): Likewise.
11536
146e6c5c
AH
115372017-05-08 Alan Hayward <alan.hayward@arm.com>
11538
11539 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
11540 regcache->raw_supply_zeroed.
11541
e50f25ec
SDJ
115422017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11543
11544 * configure.nat: Rearrange 'case' statements to match
11545 host before cpu.
11546
21ea5acd
SDJ
115472017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11548
11549 * Makefile.in: Remove "@host_makefile_frag@". Add variables
11550 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
11551 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
11552 "@nat_extra_makefile_frag@".
11553 (Makefile): Remove dependency on "@frags@".
11554 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
11555 (data-directory/Makefile): Likewise.
11556 * config/aarch64/linux.mh: Deleted; moved contents to
11557 "gdb/configure.nat".
11558 * config/alpha/alpha-linux.mh: Likewise.
11559 * config/alpha/nbsd.mh: Likewise.
11560 * config/arm/linux.mh: Likewise.
11561 * config/arm/nbsdelf.mh: Likewise.
11562 * config/i386/cygwin.mh: Likewise.
11563 * config/i386/cygwin64.mh: Likewise.
11564 * config/i386/darwin.mh: Likewise.
11565 * config/i386/fbsd.mh: Likewise.
11566 * config/i386/fbsd64.mh: Likewise.
11567 * config/i386/go32.mh: Likewise.
11568 * config/i386/i386gnu.mh: Likewise.
11569 * config/i386/i386sol2.mh: Likewise.
11570 * config/i386/linux.mh: Likewise.
11571 * config/i386/linux64.mh: Likewise.
11572 * config/i386/mingw.mh: Likewise.
11573 * config/i386/mingw64.mh: Likewise.
11574 * config/i386/nbsd64.mh: Likewise.
11575 * config/i386/nbsdelf.mh: Likewise.
11576 * config/i386/nto.mh: Likewise.
11577 * config/i386/obsd.mh: Likewise.
11578 * config/i386/obsd64.mh: Likewise.
11579 * config/i386/sol2-64.mh: Likewise.
11580 * config/ia64/linux.mh: Likewise.
11581 * config/m32r/linux.mh: Likewise.
11582 * config/m68k/linux.mh: Likewise.
11583 * config/m68k/nbsdelf.mh: Likewise.
11584 * config/m68k/obsd.mh: Likewise.
11585 * config/m88k/obsd.mh: Likewise.
11586 * config/mips/fbsd.mh: Likewise.
11587 * config/mips/linux.mh: Likewise.
11588 * config/mips/nbsd.mh: Likewise.
11589 * config/mips/obsd64.mh: Likewise.
11590 * config/pa/linux.mh: Likewise.
11591 * config/pa/nbsd.mh: Likewise.
11592 * config/pa/obsd.mh: Likewise.
11593 * config/powerpc/aix.mh: Likewise.
11594 * config/powerpc/fbsd.mh: Likewise.
11595 * config/powerpc/linux.mh: Likewise.
11596 * config/powerpc/nbsd.mh: Likewise.
11597 * config/powerpc/obsd.mh: Likewise.
11598 * config/powerpc/ppc64-linux.mh: Likewise.
11599 * config/powerpc/spu-linux.mh: Likewise.
11600 * config/s390/linux.mh: Likewise.
11601 * config/sh/nbsd.mh: Likewise.
11602 * config/sparc/fbsd.mh: Likewise.
11603 * config/sparc/linux.mh: Likewise.
11604 * config/sparc/linux64.mh: Likewise.
11605 * config/sparc/nbsd64.mh: Likewise.
11606 * config/sparc/nbsdelf.mh: Likewise.
11607 * config/sparc/obsd64.mh: Likewise.
11608 * config/sparc/sol2.mh: Likewise.
11609 * config/tilegx/linux.mh: Likewise.
11610 * config/vax/nbsdelf.mh: Likewise.
11611 * config/vax/obsd.mh: Likewise.
11612 * config/xtensa/linux.mh: Likewise.
11613 * config/i386/i386gnu.mn: New file, with excerpts from
11614 "config/i386/i386gnu.mh".
11615 * configure: Regenerate.
11616 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
11617 *.mh files under "gdb/config".
11618 * configure.nat: New file, with contents from the
11619 "gdb/config/*/*.mh" files.
11620
7ed1acaf
TW
116212017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
11622
11623 * btrace.c (btrace_clear): Free insn vector.
11624
e13cb306
PA
116252017-05-05 Pedro Alves <palves@redhat.com>
11626
11627 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
11628 * configure: Regenerate.
11629
5ed8105e
PA
116302017-05-04 Pedro Alves <palves@redhat.com>
11631
11632 * Makefile.in (SFILES): Add progspace-and-thread.c.
11633 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
11634 (COMMON_OBS): Add progspace-and-thread.o.
11635 * breakpoint.c: Include "progspace-and-thread.h".
11636 (update_inserted_breakpoint_locations)
11637 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
11638 Use scoped_restore_current_pspace_and_thread.
11639 (create_std_terminate_master_breakpoint): Use
11640 scoped_restore_current_program_space.
11641 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
11642 (print_breakpoint_location): Use
11643 scoped_restore_current_program_space.
11644 (bp_loc_is_permanent): Use
11645 scoped_restore_current_pspace_and_thread.
11646 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
11647 (download_tracepoint_locations): Use
11648 scoped_restore_current_pspace_and_thread.
11649 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
11650 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
11651 (enum step_over_calls_kind): Moved from inferior.h.
11652 (class scoped_restore_current_thread): New class.
11653 * gdbthread.h (make_cleanup_restore_current_thread): Delete
11654 declaration.
11655 (scoped_restore_current_thread): New class.
11656 * infcmd.c: Include "common/gdb_optional.h".
11657 (continue_1, proceed_after_attach): Use
11658 scoped_restore_current_thread.
11659 (notice_new_inferior): Use scoped_restore_current_thread.
11660 * inferior.c: Include "progspace-and-thread.h".
11661 (restore_inferior, save_current_inferior): Delete.
11662 (add_inferior_command, clone_inferior_command): Use
11663 scoped_restore_current_pspace_and_thread.
11664 * inferior.h (scoped_restore_current_inferior): New class.
11665 * infrun.c: Include "progspace-and-thread.h" and
11666 "common/gdb_optional.h".
11667 (follow_fork_inferior): Use
11668 scoped_restore_current_pspace_and_thread.
11669 (scoped_restore_exited_inferior): New class.
11670 (handle_vfork_child_exec_or_exit): Use
11671 scoped_restore_exited_inferior,
11672 scoped_restore_current_pspace_and_thread,
11673 scoped_restore_current_thread and scoped_restore.
11674 (fetch_inferior_event): Use scoped_restore_current_thread.
11675 * linespec.c (decode_line_full, decode_line_1): Use
11676 scoped_restore_current_program_space.
11677 * mi/mi-main.c: Include "progspace-and-thread.h".
11678 (exec_continue): Use scoped_restore_current_thread.
11679 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
11680 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
11681 * proc-service.c (ps_pglobal_lookup): Use
11682 scoped_restore_current_program_space.
11683 * progspace-and-thread.c: New file.
11684 * progspace-and-thread.h: New file.
11685 * progspace.c (release_program_space, clone_program_space): Use
11686 scoped_restore_current_program_space.
11687 (restore_program_space, save_current_program_space)
11688 (save_current_space_and_thread): Delete.
11689 (switch_to_program_space_and_thread): Moved to
11690 progspace-and-thread.c.
11691 * progspace.h (save_current_program_space)
11692 (save_current_space_and_thread): Delete declarations.
11693 (scoped_restore_current_program_space): New class.
11694 * remote.c (remote_btrace_maybe_reopen): Use
11695 scoped_restore_current_thread.
11696 * symtab.c: Include "progspace-and-thread.h".
11697 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
11698 * thread.c (print_thread_info_1): Use
11699 scoped_restore_current_thread.
11700 (struct current_thread_cleanup): Delete.
11701 (do_restore_current_thread_cleanup)
11702 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
11703 (scoped_restore_current_thread::~scoped_restore_current_thread):
11704 ... this new dtor.
11705 (make_cleanup_restore_current_thread): Rename/convert to ...
11706 (scoped_restore_current_thread::scoped_restore_current_thread):
11707 ... this new ctor.
11708 (thread_apply_all_command): Use scoped_restore_current_thread.
11709 (thread_apply_command): Use scoped_restore_current_thread.
11710 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
11711 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
11712
f6223dbb
PA
117132017-05-04 Pedro Alves <palves@redhat.com>
11714
11715 * thread.c (make_cleanup_restore_current_thread): Move
11716 find_thread_ptid call before the is_stopped call. Assert that the
11717 thread is found. Replace is_stopped call by checking the thread's
11718 state directly. Remove unnecessary NULL-thread check.
11719
3c3ae77e
PA
117202017-05-04 Pedro Alves <palves@redhat.com>
11721
11722 * corelow.c (thread_section_name): New class.
11723 (get_core_register_section, get_core_siginfo): Use it.
11724
45eba0ab
AA
117252017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11726
11727 * corelow.c (sniff_core_bfd): Remove extra semicolon.
11728 (get_core_register_section): Remove xfree of NULL pointer.
11729
f81fdd35
AH
117302017-05-03 Alan Hayward <alan.hayward@arm.com>
11731
11732 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
11733 * regcache.c (regcache::raw_supply_zeroed): New function.
11734 * regcache.h (regcache::raw_supply_zeroed): New declaration.
11735
35837774
SM
117362017-05-03 Simon Marchi <simon.marchi@ericsson.com>
11737
11738 * gdbarch.sh: Remove commented out definition of
11739 TARGET_CHAR_BIT.
11740 * gdbarch.h: Re-generate.
11741
c94fee56
SDJ
117422017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
11743
11744 * configure: Regenerate.
11745
d17f7b36
SM
117462017-05-02 Simon Marchi <simon.marchi@ericsson.com>
11747
11748 * solib-target.c (solib_target_relocate_section_addresses):
11749 Remove num_section_bases, num_bases, segment_bases variables.
11750
b560ebd6
SM
117512017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11752
11753 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
11754
f2f46dfc
SM
117552017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11756
11757 * solib-target.c: Include <vector>
11758 (struct lm_info_target) <~lm_info_target>: Remove.
11759 <segment_bases, section_bases>: Change type to
11760 std::vector<CORE_ADDR>.
11761 (library_list_start_segment, library_list_start_section,
11762 library_list_end_library,
11763 solib_target_relocate_section_addresses): Adjust.
11764
a0ff9e1a
SM
117652017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11766
11767 * gdbarch.sh (software_single_step): Change return type to
11768 std::vector<CORE_ADDR>.
11769 * gdbarch.c, gdbarch.h: Re-generate.
11770 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
11771 Adjust.
11772 (arm_deal_with_atomic_sequence_raw): Adjust.
11773 (thumb_get_next_pcs_raw): Adjust.
11774 (arm_get_next_pcs_raw): Adjust.
11775 (arm_get_next_pcs): Adjust.
11776 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
11777 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
11778 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
11779 (alpha_software_single_step): Adjust.
11780 * alpha-tdep.h (alpha_software_single_step): Adjust.
11781 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
11782 * arm-tdep.c (arm_software_single_step): Adjust.
11783 (arm_breakpoint_kind_from_current_state): Adjust.
11784 * arm-tdep.h (arm_software_single_step): Adjust.
11785 * breakpoint.c (insert_single_step_breakpoint): Adjust.
11786 * cris-tdep.c (cris_software_single_step): Adjust.
11787 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
11788 (micromips_deal_with_atomic_sequence): Adjust.
11789 (deal_with_atomic_sequence): Adjust.
11790 (mips_software_single_step): Adjust.
11791 * mips-tdep.h (mips_software_single_step): Adjust.
11792 * moxie-tdep.c (moxie_software_single_step): Adjust.
11793 * nios2-tdep.c (nios2_software_single_step): Adjust.
11794 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
11795 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
11796 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
11797 * s390-linux-tdep.c (s390_software_single_step): Adjust.
11798 * sparc-tdep.c (sparc_software_single_step): Adjust.
11799 * spu-tdep.c (spu_software_single_step): Adjust.
11800 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
11801
ea480a30
SM
118022017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11803
11804 * gdbarch.sh: Use semi-colon as field separator instead of colon.
11805 * gdbarch.h: Re-generate.
11806
d050f7d7
TW
118072017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11808
11809 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
11810 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
11811 * python/py-instruction.c, python/py-instruction.h: New file.
11812 * python/py-record.c: Add py-instruction.h include.
11813 (gdbpy_initialize_record): Make gdb.Instruction a super class of
11814 gdb.RecordInstruction.
11815 * python/python-internal.h: Add gdbpy_initialize_instruction
11816 declaration.
11817 * python/python.c (do_start_initialization): Add
11818 gdbpy_initialize_instruction.
11819
14f819c8
TW
118202017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11821
11822 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
11823 Remove.
11824 (btrace_func_from_recpy_func): New function.
11825 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
11826 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
11827 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
11828 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
11829 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
11830 Also, use new helper functions.
11831 (btpy_list_item): Use new helper functions.
11832 (recpy_bt_function_call_history): Use new type name.
11833 (btpy_call_getset): Remove.
11834 (gdbpy_initialize_btrace): Remove code to initialize
11835 gdb.BtraceFunctionCall.
11836 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
11837 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
11838 recpy_bt_func_prev, recpy_bt_func_next): New export.
11839 * python/py-record.c (recpy_func_type): New static object.
11840 (recpy_func_new, recpy_func_level, recpy_func_symbol,
11841 recpy_func_instructions, recpy_func_up, recpy_func_prev,
11842 recpy_func_next): New function.
11843 (recpy_element_hash, recpy_element_richcompare): Updated comment.
11844 (recpy_func_getset): New static object.
11845 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
11846 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
11847
0ed5da75
TW
118482017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11849
11850 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
11851 (btpy_object, btpy_insn_type, btpy_new): Remove.
11852 (btpy_list_object): Use gdb.RecordInstruction type instead of
11853 gdb.BtraceInstruction type.
11854 (btrace_insn_from_recpy_insn): New function.
11855 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
11856 btpy_new.
11857 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
11858 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
11859 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
11860 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
11861 instead of btpy_object.
11862 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
11863 btpy_insn_data, btpy_insn_decode): Rename to ...
11864 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
11865 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
11866 recpy_bt_insn_decode): This. Also, use new helper functions.
11867 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
11868 recpy_insn_type.
11869 (btpy_insn_getset): Remove.
11870 (gdbpy_initialize_btrace): Remove code to initialize
11871 gdb.BtraceInstruction. Use recpy_element_object.
11872 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
11873 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
11874 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
11875 * python/py-record.c (recpy_insn_type): New static object.
11876 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
11877 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
11878 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
11879 New function.
11880 (recpy_insn_getset): New static object.
11881 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
11882 * python/py-record.h (recpy_element_object): New typedef.
11883 (recpy_insn_type, recpy_insn_new): New export.
11884
913aeadd
TW
118852017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11886
11887 * py-record-btrace.c (btpy_insn_new): Removed.
11888 (btpy_insn_or_gap_new): New function.
11889 (btpy_insn_error): Removed.
11890 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
11891 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
11892 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
11893 btpy_insn_or_gap_new instead of btpy_insn_new.
11894 (btpy_insn_getset): Remove btpy_insn_error.
11895 * py-record.c (recpy_gap_type): New static object.
11896 (recpy_gap_object): New typedef.
11897 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
11898 recpy_gap_reason_string): New function.
11899 (recpy_gap_getset): New static object.
11900 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
11901 * py-record.h (recpy_gap_new): New export.
11902
a3be24ad
TW
119032017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11904
11905 * python/py-record.c (recpy_ptid): Remove.
11906 (recpy_record_getset): Remove recpy_ptid.
11907
ae20e79a
TW
119082017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11909
11910 * btrace.c (btrace_fetch): Set inferior_ptid.
11911 * python/py-record-btrace.c: Add "py-record.h" include.
11912 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
11913 recpy_bt_end, recpy_bt_instruction_history,
11914 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
11915 in gdb.Record object instead of current ptid.
11916 * python/py-record.c: Include new "py-record.h" file.
11917 (recpy_record_object): Moved to py-record.h.
11918 * python/py-record.h: New file.
11919
8d0050ea
TW
119202017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11921
11922 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
11923 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
11924 indentation.
11925
3f380b50
JB
119262017-05-01 Joel Brobecker <brobecker@adacore.com>
11927
11928 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
11929 the past maintainers section.
11930
07495424
YQ
119312017-04-28 Yao Qi <yao.qi@linaro.org>
11932
11933 * infcmd.c (get_return_value): Use regcache ctor, and remove
11934 cleanup.
11935
deb1fa3e
YQ
119362017-04-28 Yao Qi <yao.qi@linaro.org>
11937 Pedro Alves <palves@redhat.com>
11938
11939 * regcache.c (regcache::regcache): New tag dispatch ctor.
11940 (do_cooked_read): Moved above.
11941 (regcache_dup): Use the tag dispatch ctor..
11942 * regcache.h (regcache): Declare ctor, delete copy ctor and
11943 assignment operator, remove friend regcache_dup.
11944
b421c83c
YQ
119452017-04-28 Yao Qi <yao.qi@linaro.org>
11946
11947 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
11948 call method save instead of regcache_cpy.
11949 * regcache.h (struct regcache): Make regcache_dup a friend.
11950
ef79d9a3
YQ
119512017-04-28 Yao Qi <yao.qi@linaro.org>
11952
11953 * regcache.c (struct regcache): Move to regcache.h
11954 (regcache::arch): New method.
11955 (regcache_get_ptid): Update.
11956 (get_regcache_arch): Call arch method.
11957 (get_regcache_aspace): Call method aspace.
11958 (register_buffer): Change it to method.
11959 (regcache_save): Change it to regcache::save.
11960 (regcache_restore): Likewise.
11961 (regcache_cpy_no_passthrough): Remove the declaration.
11962 (regcache_cpy): Call methods restore and cpy_no_passthrough.
11963 (regcache_cpy_no_passthrough): Change it to method
11964 cpy_no_passthrough.
11965 (regcache_register_status): Change it to method
11966 get_register_status.
11967 (regcache_invalidate): Change it to method invalidate.
11968 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
11969 (regcache_raw_update): Change it to method raw_update.
11970 (regcache_raw_read): Likewise.
11971 (regcache_raw_read_signed): Likewise.
11972 (regcache_raw_read_unsigned): Likewise.
11973 (regcache_raw_write_signed): Likewise.
11974 (regcache_raw_write_unsigned): Likewise.
11975 (regcache_cooked_read): Likewise.
11976 (regcache_cooked_read_value): Likewise.
11977 (regcache_cooked_read_signed): Likewise.
11978 (regcache_cooked_read_unsigned): Likewise.
11979 (regcache_cooked_write_signed): Likewise.
11980 (regcache_cooked_write_unsigned): Likewise.
11981 (regcache_raw_set_cached_value): Likewise.
11982 (regcache_raw_write): Likewise.
11983 (regcache_cooked_write): Likewise.
11984 (regcache_xfer_part): Likewise.
11985 (regcache_raw_read_part): Likewise.
11986 (regcache_raw_write_part): Likewise.
11987 (regcache_cooked_read_part): Likewise.
11988 (regcache_cooked_write_part): Likewise.
11989 (regcache_raw_supply): Likewise.
11990 (regcache_raw_collect): Likewise.
11991 (regcache_transfer_regset): Likewise.
11992 (regcache_supply_regset): Likewise.
11993 (regcache_collect_regset): Likewise.
11994 (regcache_debug_print_register): Likewise.
11995 (enum regcache_dump_what): Move it to regcache.h.
11996 (regcache_dump): Change it to method dump.
11997 * regcache.h (enum regcache_dump_what): New.
11998 (class regcache): New.
11999 * target.c (target_fetch_registers): Call method
12000 debug_print_register.
12001 (target_store_registers): Likewise.
12002
f8fdb78e
SM
120032017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12004
12005 * windows-nat.c (struct lm_info_windows): Initialize field.
12006 (windows_make_so): Allocate lm_info_windows with new.
12007 (windows_free_so): Free lm_info_windows with delete.
12008
9ccbfd7b
SM
120092017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12010
12011 * solib-darwin.c (struct lm_info_darwin): Initialize field.
12012 (darwin_current_sos): Allocate lm_info_darwin with new, remove
12013 cleanup.
12014 (darwin_free_so): Free lm_info_darwin with delete.
12015
76e75227
SM
120162017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12017
12018 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
12019 <l_addr_p>: Change type to bool.
12020 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
12021 (svr4_free_so): Free lm_info_svr4 with delete.
12022 (svr4_copy_library_list): Replace memcpy with call to copy
12023 constructor.
12024 (library_list_start_library, svr4_default_sos): Allocate
12025 lm_info_svr4 with new.
12026
51046d9e
SM
120272017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12028
12029 * solib-target.c (struct lm_info_target): Add destructor,
12030 initialize fields.
12031 <name>: Change type to std::string.
12032 (library_list_start_library): Allocate lm_info_target with new.
12033 (solib_target_free_library_list): Free lm_info_target with
12034 delete.
12035 (solib_target_current_sos): Adapt to std::string.
12036 (solib_target_free_so): Free lm_info_target with delete.
12037
4023ae76
SM
120382017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12039
12040 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
12041 fields.
12042 (frv_current_sos): Allocate lm_info_frv with new.
12043 (frv_relocate_main_executable): Free lm_info_frv with delete,
12044 allocate with new.
12045 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
12046
af43057b
SM
120472017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12048
12049 * solib-frv.c (struct lm_info_frv): Fix indentation.
12050
b0911207
SM
120512017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12052
12053 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
12054 map field.
12055 (dsbt_current_sos): Allocate lm_info_dsbt with new.
12056 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
12057 and allocate with new.
12058 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
12059
6c401f72
SM
120602017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12061
12062 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
12063 <filename, member_name>: Change type to std::string.
12064 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
12065 (library_list_start_library): Allocate lm_info_aix with new.
12066 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
12067 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
12068 with copy constructor.
12069
d0e449a1
SM
120702017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12071
12072 * solist.h (struct lm_info): Remove.
12073 (struct lm_info_base): New class.
12074 (struct so_list) <lm_info>: Change type to lm_info_base *.
12075 * nto-tdep.c (struct lm_info): Remove.
12076 (lm_addr): Adjust.
12077 * solib-aix.c (struct lm_info): Rename to ...
12078 (struct lm_info_aix): ... this. Extend lm_info_base.
12079 (lm_info_p): Rename to ...
12080 (lm_info_aix_p): ... this, and adjust.
12081 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
12082 solib_aix_parse_libraries, library_list_start_library,
12083 solib_aix_free_library_list, solib_aix_parse_libraries,
12084 solib_aix_get_library_list,
12085 solib_aix_relocate_section_addresses, solib_aix_free_so,
12086 solib_aix_get_section_offsets,
12087 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
12088 Adjust.
12089 (struct solib_aix_inferior_data) <library_list>: Adjust.
12090 * solib-darwin.c (struct lm_info): Rename to ...
12091 (struct lm_info_darwin): ... this. Extend lm_info_base.
12092 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
12093 * solib-dsbt.c (struct lm_info): Rename to ...
12094 (struct lm_info_dsbt): ... this. Extend lm_info_base.
12095 (struct dsbt_info) <main_executable_lm_info): Adjust.
12096 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
12097 dsbt_relocate_section_addresses): Adjust.
12098 * solib-frv.c (struct lm_info): Rename to ...
12099 (struct lm_info_frv): ... this. Extend lm_info_base.
12100 (main_executable_lm_info): Adjust.
12101 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
12102 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
12103 find_canonical_descriptor_in_load_object,
12104 frv_fdpic_find_canonical_descriptor): Adjust.
12105 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
12106 to lm_info_svr4.
12107 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
12108 svr4_clear_so, svr4_copy_library_list,
12109 library_list_start_library, svr4_default_sos, svr4_read_so_list,
12110 svr4_current_sos, svr4_fetch_objfile_link_map,
12111 solist_update_incremental): Adjust.
12112 * solib-svr4.h (struct lm_info_svr4): Move here from
12113 solib-svr4.c.
12114 * solib-target.c (struct lm_info): Rename to ...
12115 (struct lm_info_target): ... this. Extend lm_info_base.
12116 (lm_info_p): Rename to ...
12117 (lm_info_target_p): ... this.
12118 (solib_target_parse_libraries, library_list_start_segment,
12119 library_list_start_section, library_list_start_library,
12120 library_list_end_library, solib_target_free_library_list,
12121 solib_target_current_sos, solib_target_free_so,
12122 solib_target_relocate_section_addresses): Adjust.
12123 * windows-nat.c (struct lm_info): Rename to ...
12124 (struct lm_info_windows): ... this. Extend lm_info_base.
12125 (windows_make_so, handle_load_dll, handle_unload_dll,
12126 windows_xfer_shared_libraries): Adjust.
12127
434a4023
SM
121282017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12129
12130 * solib-darwin.c (struct darwin_so_list): Remove.
12131 (darwin_current_sos): Allocate an so_list object instead of a
12132 darwin_so_list, separately allocate an lm_info object.
12133 (darwin_free_so): Free lm_info.
12134
428544e8
JB
121352017-04-28 John Baldwin <jhb@FreeBSD.org>
12136
12137 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
12138 with fprintf_filtered.
12139
4621115f
YQ
121402017-04-28 Yao Qi <yao.qi@linaro.org>
12141
12142 * regcache.c (regcache::regcache): New function.
12143 (regcache::~regcache): New function.
12144 (regcache_xmalloc_1): Remove.
12145 (regcache_xmalloc): Call new regcache.
12146 (regcache_xfree): Call delete regcache.
12147 (get_thread_arch_aspace_regcache): Call new regcache.
12148
339053c2
YQ
121492017-04-28 Yao Qi <yao.qi@linaro.org>
12150
12151 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
12152 lwp instead of ptid_get_lwp.
12153
7974a605
YQ
121542017-04-28 Yao Qi <yao.qi@linaro.org>
12155
12156 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
12157 lwp_info instead of getting from inferior_ptid.
12158
e15c3eb4
KS
121592017-04-27 Keith Seitz <keiths@redhat.com>
12160
12161 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
12162 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
12163 (CV_CONVERSION_BADNESS): Define.
12164 (rank_one_type): Remove overly restrictive rvalue reference
12165 rank checks.
12166 Add cv-qualifier checks and subranks for type equality.
12167 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
12168 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
12169 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
12170
72bc1d24
SM
121712017-04-27 Simon Marchi <simon.marchi@ericsson.com>
12172
12173 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
12174 count when creating the object.
12175
55bcecda
UW
121762017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
12177 Ulrich Weigand <uweigand@de.ibm.com>
12178
12179 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
12180 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
12181 is used in AIX.
12182 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
12183 (process_xcoff_symbol): Likewise.
12184 (scan_xcoff_symtab): Likewise.
12185
5c99fcf8
AH
121862017-04-26 Alan Hayward <alan.hayward@arm.com>
12187
12188 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
12189 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
12190 (ia64_access_reg): Use get_frame_register_unsigned.
12191 (ia64_access_rse_reg): Likewise.
12192 (ia64_libunwind_frame_prev_register): Likewise.
12193
b41c5a85
JW
121942017-04-26 Jiong Wang <jiong.wang@arm.com>
12195
12196 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
12197 * gdbarch.c: Regenerated.
12198 * gdbarch.h: Regenerated.
12199 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
12200 visibility external.
12201 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
12202 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
12203 (enum cfa_how_kind): Move to ...
12204 (struct dwarf2_frame_state_reg_info): Likewise.
12205 (struct dwarf2_frame_state): Likewise.
12206 * dwarf2-frame.h: ... here.
12207 (dwarf2_frame_state_alloc_regs): New declaration.
12208 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
12209 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
12210
c185f580
AH
122112017-04-26 Alan Hayward <alan.hayward@arm.com>
12212
12213 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
12214 regcache_raw_read_unsigned.
12215 (xtensa_pseudo_register_write): Likewise.
12216
19c45594
AH
122172017-04-26 Alan Hayward <alan.hayward@arm.com>
12218
12219 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
12220 (nds32_pseudo_register_write): Likewise.
12221
4658f12e
YQ
122222017-04-25 Yao Qi <yao.qi@linaro.org>
12223
12224 * regcache.c (struct regcache) <readonly_p>: Change its type
12225 to bool.
12226 (regcache_xmalloc_1): Update parameter type and callers update.
12227
d581dda8
YQ
122282017-04-25 Yao Qi <yao.qi@linaro.org>
12229
12230 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
12231 set_gdbarch_wchar_bit.
12232 * arm-tdep.c (arm_gdbarch_init): Likewise.
12233
debed3db
PA
122342017-04-25 Pedro Alves <palves@redhat.com>
12235
12236 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
12237 (BothAreRelocatable, memcopy, memmove): Don't define.
12238 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
12239 macros.
12240
b0b92aeb
PA
122412017-04-25 Pedro Alves <palves@redhat.com>
12242
12243 * common/common-defs.h: Include "common/poison.h".
12244 * common/function-view.h: (Not, Or, Requires): Move to traits.h
12245 and adjust.
12246 * common/poison.h: New file.
12247 * common/traits.h: Include <type_traits>.
12248 (Not, Or, Requires): New, moved from common/function-view.h.
12249
16c4d54a
PA
122502017-04-25 Pedro Alves <palves@redhat.com>
12251
12252 * breakpoint.h (struct breakpoint): In-class initialize all
12253 fields. Make boolean fields "bool".
12254 * breakpoint.c (init_raw_breakpoint_without_location): Remove
12255 memset call and initializations no longer necessary.
12256
b5c36682
PA
122572017-04-25 Pedro Alves <palves@redhat.com>
12258
12259 * btrace.c (pt_btrace_insn_flags): Change parameter type to
12260 reference.
12261 (pt_btrace_insn): New function.
12262 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
12263
5625a286
PA
122642017-04-25 Pedro Alves <palves@redhat.com>
12265
12266 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
12267 "base" field and inherit from "bp_location" instead. Add
12268 non-default ctor.
12269 (allocate_location_exception): Use new non-default ctor.
12270 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
12271 (init_bp_location): Convert to ...
12272 (bp_location::bp_location): ... this new ctor, and remove memset
12273 call.
12274 (base_breakpoint_allocate_location): Use the new non-default ctor.
12275 * breakpoint.h (bp_location): Now a class. Declare default and
12276 non-default ctors. In-class initialize all members.
12277 (init_bp_location): Remove declaration.
12278
23bcc18f
PA
122792017-04-25 Pedro Alves <palves@redhat.com>
12280
12281 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
12282 assignment operator.
12283
e1ba3053
YQ
122842017-04-24 Yao Qi <yao.qi@linaro.org>
12285
12286 * doublest.c (convert_doublest_to_floatformat): Call
12287 floatformat_totalsize_bytes.
12288
10f489e5
TT
122892017-04-22 Tom Tromey <tom@tromey.com>
12290
12291 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
12292 ui_out_emit_list.
12293 * stack.c (print_frame): Use ui_out_emit_list.
12294 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12295 ui_out_emit_list.
12296 * mi/mi-main.c (print_one_inferior)
12297 (mi_cmd_data_list_register_names)
12298 (mi_cmd_data_list_register_values, mi_cmd_list_features)
12299 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
12300 ui_out_emit_list.
12301 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
12302 (mi_output_solib_attribs): Use ui_out_emit_list,
12303 ui_out_emit_tuple.
12304 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
12305 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
12306 (mi_cmd_stack_list_args, list_args_or_locals): Use
12307 ui_out_emit_list.
12308 * disasm.c (do_assembly_only): Use ui_out_emit_list.
12309 * breakpoint.c (print_solib_event, output_thread_groups): Use
12310 ui_out_emit_list.
12311
0092b74d
TT
123122017-04-22 Tom Tromey <tom@tromey.com>
12313
12314 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
12315 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
12316 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
12317
a14a62dd
TT
123182017-04-22 Tom Tromey <tom@tromey.com>
12319
12320 * tracepoint.c (tvariables_info_1)
12321 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
12322
46b9c129
TT
123232017-04-22 Tom Tromey <tom@tromey.com>
12324
12325 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
12326 annotate_arg_emitter.
12327 * breakpoint.c (print_mention_watchpoint)
12328 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
12329 * annotate.h (struct annotate_arg_emitter): New.
12330
2e783024
TT
123312017-04-22 Tom Tromey <tom@tromey.com>
12332
12333 * record-btrace.c (record_btrace_insn_history)
12334 (record_btrace_insn_history_range, record_btrace_call_history)
12335 (record_btrace_call_history_range): Use ui_out_emit_tuple.
12336 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
12337 ui_out_emit_tuple.
12338 * stack.c (print_frame_info): Use ui_out_emit_tuple.
12339 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
12340 * skip.c (skip_info): Use ui_out_emit_tuple.
12341 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
12342 * progspace.c (print_program_space): Use ui_out_emit_tuple.
12343 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
12344 * osdata.c (info_osdata): Use ui_out_emit_tuple.
12345 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12346 ui_out_emit_tuple.
12347 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
12348 (output_register, mi_cmd_data_read_memory)
12349 (mi_cmd_data_read_memory_bytes, mi_load_progress)
12350 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
12351 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
12352 Use ui_out_emit_tuple.
12353 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
12354 ui_out_emit_tuple.
12355 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12356 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
12357 * linux-thread-db.c (info_auto_load_libthread_db): Use
12358 ui_out_emit_tuple.
12359 * inferior.c (print_inferior): Use ui_out_emit_tuple.
12360 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
12361 * disasm.c (do_mixed_source_and_assembly_deprecated)
12362 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
12363 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
12364 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
12365 * breakpoint.c (print_one_breakpoint_location)
12366 (print_one_breakpoint): Use ui_out_emit_tuple.
12367 * auto-load.c (print_script, info_auto_load_cmd): Use
12368 ui_out_emit_tuple.
12369 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
12370
9be21bb4
SM
123712017-04-21 Simon Marchi <simon.marchi@ericsson.com>
12372
12373 * thread.c (print_thread_info_1): Remove dead code.
12374
0d4c07af
JK
123752017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12376
12377 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
12378 GDB_SELF_TEST.
12379 * arm-tdep.c (selftests::arm_record_test): Likewise.
12380
4daf993d
YQ
123812017-04-21 Yao Qi <yao.qi@linaro.org>
12382
12383 * regcache.c (regcache_restore): Remove argument 2. Replace
12384 argument 3 with regcache. Get register status from
12385 src->register_status and get register contents from
12386 register_buffer (src, regnum).
12387 (regcache_cpy): Update.
12388
a6c21d4a
PA
123892017-04-19 Pedro Alves <palves@redhat.com>
12390
12391 * gdbthread.h (thread): Add missing closing parenthesis in
12392 comment.
12393
3a3fd0fd
PA
123942017-04-19 Pedro Alves <palves@redhat.com>
12395
12396 * common/refcounted-object.h: New file.
12397 * gdbthread.h: Include "common/refcounted-object.h".
12398 (thread_info): Inherit from refcounted_object and add comments.
12399 (thread_info::incref, thread_info::decref)
12400 (thread_info::m_refcount): Delete.
12401 (thread_info::deletable): Use the refcounted_object::refcount()
12402 method.
12403 * inferior.c (current_inferior_): Add comment.
12404 (set_current_inferior): Increment/decrement refcounts.
12405 (prune_inferiors, remove_inferior_command): Skip inferiors marked
12406 not-deletable instead of comparing with the current inferior.
12407 (initialize_inferiors): Increment the initial inferior's refcount.
12408 * inferior.h (struct inferior): Forward declare.
12409 Include "common/refcounted-object.h".
12410 (current_inferior, set_current_inferior): Move declaration to
12411 before struct inferior's definition, and fix comment.
12412 (inferior): Inherit from refcounted_object. Add comments.
12413 * thread.c (switch_to_thread_no_regs): Reference the thread's
12414 inferior pointer directly instead of doing a ptid lookup.
12415 (switch_to_no_thread): New function.
12416 (switch_to_thread(thread_info *)): New function, factored out
12417 from ...
12418 (switch_to_thread(ptid_t)): ... this.
12419 (restore_current_thread): Delete.
12420 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
12421 fields, and add 'inf' field.
12422 (do_restore_current_thread_cleanup): Check whether old->inf is
12423 alive instead of looking up an inferior by ptid. Use
12424 switch_to_thread and switch_to_no_thread.
12425 (restore_current_thread_cleanup_dtor): Use old->inf directly
12426 instead of lookup up an inferior by id. Decref the inferior.
12427 Don't restore 'removable'.
12428 (make_cleanup_restore_current_thread): Same the inferior pointer
12429 in old, instead of the inferior number. Incref the inferior.
12430 Don't save/clear 'removable'.
12431
9bcb1f16
PA
124322017-04-19 Pedro Alves <palves@redhat.com>
12433
12434 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12435 unittests/scoped_restore-selftests.c.
12436 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
12437 * common/scoped_restore.h (scoped_restore_base): Make "class".
12438 (scoped_restore_base::release): New public method.
12439 (scoped_restore_base::scoped_restore_base): New protected ctor.
12440 (scoped_restore_base::m_saved_var): New protected field.
12441 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
12442 scoped_restore_base base class instead of m_saved_var directly.
12443 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
12444 (scoped_restore_tmpl::scoped_restore_tmpl(const
12445 scoped_restore_tmpl<T>&)): Likewise.
12446 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
12447 method.
12448 (scoped_restore_tmpl::saved_var): New method.
12449 (scoped_restore_tmpl::m_saved_var): Delete.
12450 * inferior.h (inferior::detaching): Now a bool.
12451 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
12452 cleanup.
12453 * unittests/scoped_restore-selftests.c: New file.
12454
26fcd539
PA
124552017-04-19 Pedro Alves <palves@redhat.com>
12456
12457 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
12458 Re-sort in alphabetic order.
12459
fdd243b0
PA
124602017-04-18 Pedro Alves <palves@redhat.com>
12461
12462 * xml-support.c (obstack_xml_printf): Delete.
12463 * xml-support.h (obstack_xml_printf): Delete.
12464
4895cde2
PA
124652017-04-18 Pedro Alves <palves@redhat.com>
12466
12467 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
12468 vdebug, verror, body_text, start_element, end_element, name,
12469 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
12470 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
12471 is_xinclude>: Make private and add m_ prefix.
12472 (gdb_xml_parser::body_text): New method, based on ...
12473 (gdb_xml_body_text): ... this. Adjust.
12474 (gdb_xml_parser::vdebug): New method, based on ...
12475 (gdb_xml_debug): ... this. Adjust.
12476 (gdb_xml_parser::verror): New method, based on ...
12477 (gdb_xml_error): ... this. Adjust.
12478 (gdb_xml_parser::start_element): New method, based on ...
12479 (gdb_xml_start_element): ... this. Adjust.
12480 (gdb_xml_start_element_wrapper): Defer to
12481 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
12482 (gdb_xml_parser::end_element): New method, based on ...
12483 (gdb_xml_end_element_wrapper): ... this. Adjust.
12484 (gdb_xml_parser::~gdb_xml_parser): Adjust.
12485 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
12486 (gdb_xml_parser::use_dtd): New method, based on ...
12487 (gdb_xml_use_dtd): ... this. Adjust.
12488 (gdb_xml_parser::parse): New method, based on ...
12489 (gdb_xml_parse): ... this. Adjust.
12490 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
12491 (xinclude_start_include): Adjust to call the parser's name method.
12492 (xml_xinclude_default, xml_xinclude_start_doctype)
12493 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
12494 method.
12495 (xml_process_xincludes): Adjust to call parser methods.
12496 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
12497 declarations.
12498
bd8a901f
PA
124992017-04-18 Pedro Alves <palves@redhat.com>
12500
12501 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
12502 gdb::optional<std::string>.
12503 * xml-support.c: Include <string>.
12504 (scope_level::scope_level(scope_level &&))
12505 (scope_level::~scope_level): Delete.
12506 (scope_level::body): Now a std::string.
12507 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
12508 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
12509 parameter.
12510 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
12511 (xinclude_parsing_data::output): Now a std::string reference.
12512 (xinclude_start_include): Adjust.
12513 (xml_xinclude_default): Adjust.
12514 (xml_process_xincludes): Add 'output' parameter, and return bool.
12515 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
12516 and return bool.
12517 * xml-tdesc.c: Include <unordered_map> and <string>.
12518 (tdesc_xml_cache): Delete.
12519 (tdesc_xml_cache_s): Delete.
12520 (xml_cache): Now an std::unordered_map.
12521 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
12522 (target_fetch_description_xml): Change return type to
12523 gdb::optional<std::string>, and adjust.
12524 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
12525 (target_fetch_description_xml): Change return type to
12526 gdb::optional<std::string>.
12527
d35d1958
PA
125282017-04-18 Pedro Alves <palves@redhat.com>
12529
12530 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12531 unittests/optional-selftests.c.
12532 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
12533 * unittests/optional-selftests.c: New file.
12534 * unittests/optional/assignment/1.cc: New file.
12535 * unittests/optional/assignment/2.cc: New file.
12536 * unittests/optional/assignment/3.cc: New file.
12537 * unittests/optional/assignment/4.cc: New file.
12538 * unittests/optional/assignment/5.cc: New file.
12539 * unittests/optional/assignment/6.cc: New file.
12540 * unittests/optional/assignment/7.cc: New file.
12541 * unittests/optional/cons/copy.cc: New file.
12542 * unittests/optional/cons/default.cc: New file.
12543 * unittests/optional/cons/move.cc: New file.
12544 * unittests/optional/cons/value.cc: New file.
12545 * unittests/optional/in_place.cc: New file.
12546 * unittests/optional/observers/1.cc: New file.
12547 * unittests/optional/observers/2.cc: New file.
12548
22796e97
PA
125492017-04-18 Pedro Alves <palves@redhat.com>
12550
12551 * common/gdb_optional.h: Include common/traits.h.
12552 (in_place_t): New type.
12553 (in_place): New constexpr variable.
12554 (optional::optional): Remove member initialization of
12555 m_instantiated.
12556 (optional::optional(in_place_t...)): New constructor.
12557 (optional::~optional): Use reset.
12558 (optional::optional(const optional&)): New.
12559 (optional::optional(const optional&&)): New.
12560 (optional::optional(T &)): New.
12561 (optional::optional(T &&)): New.
12562 (operator::operator=(const optional &)): New.
12563 (operator::operator=(optional &&)): New.
12564 (operator::operator= (const T &))
12565 (operator::operator= (T &&))
12566 (operator::emplace (Args &&... args)): Return a T&. Use reset.
12567 (operator::reset): New.
12568 (operator::m_instantiated):: Add in-class initializer.
12569 * common/traits.h: Include <type_traits>.
12570 (struct And): New types.
12571
a7fc9b61
PA
125722017-04-18 Pedro Alves <palves@redhat.com>
12573
12574 * xml-support.c: Include <vector>.
12575 (scope_level::scope_level(const gdb_xml_element *))
12576 (scope_level::scope_level(scope_level&&)): New.
12577 (scope_level::~scope_level): New.
12578 (scope_level_s): Delete.
12579 (gdb_xml_parser::scopes): Now a std::vector.
12580 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
12581 Use std::vector.
12582 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
12583 scope cleanup code.
12584 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
12585 of the scopes member. Use std::vector::emplace_back.
12586
010151c9
PA
125872017-04-18 Pedro Alves <palves@redhat.com>
12588
12589 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
12590 a bool.
12591 (gdb_xml_end_element): Change type of first parameter.
12592 (gdb_xml_cleanup): Rename to ...
12593 (gdb_xml_parser::~gdb_xml_parser): ... this.
12594 (gdb_xml_create_parser_and_cleanup): Delete with ...
12595 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
12596 to this new ctor.
12597 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
12598 using gdb_xml_create_parser_and_cleanup.
12599 (xinclude_parsing_data): Add ctor/dtor.
12600 (xml_xinclude_cleanup): Delete.
12601 (xml_process_xincludes): Create a local xinclude_parsing_data
12602 instead of heap-allocating one. Create a local gdb_xml_parser
12603 instead of heap-allocating one with
12604 gdb_xml_create_parser_and_cleanup.
12605
d56060f0
JB
126062017-04-18 John Baldwin <jhb@FreeBSD.org>
12607
12608 PR threads/20743
12609 * fbsd-nat.c (resume_one_thread_cb): Remove.
12610 (resume_all_threads_cb): Remove.
12611 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
12612 iterate_over_threads.
12613
305d16a9
JB
126142017-04-17 Joel Brobecker <brobecker@adacore.com>
12615
12616 * NEWS: Create a new section for the next release branch.
12617 Rename the section of the current branch, now that it has
12618 been cut.
12619
8bb57231
JB
126202017-04-17 Joel Brobecker <brobecker@adacore.com>
12621
12622 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
12623 * version.in: Bump version to 8.0.50.DATE-git.
12624
096c92dd
SDJ
126252017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
12626
12627 PR gdb/21385
12628 * windows-nat.c (windows_create_inferior): Declare 'allargs'
12629 independently of the host, and fix build breakage on Cygwin.
12630
0550c955
PA
126312017-04-13 Pedro Alves <palves@redhat.com>
12632
12633 * inferior.c (free_inferior): Convert to ...
12634 (inferior::~inferior): ... this dtor.
12635 (inferior::inferior): New ctor, factored out from ...
12636 (add_inferior_silent): ... here. Allocate the inferior with a new
12637 expression.
12638 (delete_inferior): Call delete instead of free_inferior.
12639 * inferior.h (gdb_environ, continuation): Forward declare.
12640 (inferior): Now a class. Add in-class initialization to all
12641 members. Make boolean fields bool, except 'detaching'.
12642 (inferior::inferior): New explicit ctor.
12643 (inferior::~inferior): New.
12644
e3d60dfc
PA
126452017-04-13 Pedro Alves <palves@redhat.com>
12646
12647 * inferior.c (init_inferior_list): Delete.
12648 * inferior.h (init_inferior_list): Delete.
12649
5fd69d0a
PA
126502017-04-13 Pedro Alves <palves@redhat.com>
12651
12652 PR threads/13217
12653 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
12654 (top level): Call it twice, with different thread sets.
12655
c6609450
PA
126562017-04-13 Pedro Alves <palves@redhat.com>
12657
12658 * thread.c: Include <algorithm>.
12659 (thread_array_cleanup): Delete.
12660 (scoped_inc_dec_ref): New class.
12661 (live_threads_count): New function.
12662 (set_thread_refcount): Delete.
12663 (tp_array_compar_ascending): Now a bool.
12664 (tp_array_compar): Convert to a std::sort comparison function.
12665 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
12666 and live_threads_count.
12667
2a00d7ce
PA
126682017-04-13 Pedro Alves <palves@redhat.com>
12669
12670 * infrun.c (follow_fork_inferior): Also switch the current
12671 inferior.
12672
441d7c93
PA
126732017-04-13 Pedro Alves <palves@redhat.com>
12674
12675 * breakpoint.c (watch_command_1): Save watchpoint-frame info
12676 before calling create_internal_breakpoint.
12677
808480f6
PA
126782017-04-13 Pedro Alves <palves@redhat.com>
12679
12680 * fork-child.c (execv_argv): New class.
12681 (breakup_args): Refactored as ...
12682 (execv_argv::init_for_no_shell): .. this method of execv_argv.
12683 Copy arguments to storage and replace separators with NULL
12684 terminators in place.
12685 (escape_bang_in_quoted_argument): Adjust to return bool.
12686 (execv_argv::execv_argv): New ctor.
12687 (execv_argv::init_for_shell): New method, factored out from
12688 fork_inferior. Don't strdup strings into the vector.
12689 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
12690 Remove free_vector_argv call.
12691
ad3d022a
YQ
126922017-04-13 Yao Qi <yao.qi@linaro.org>
12693
12694 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
12695 tdep->rx_psw_type.
12696
e6ddc3bf
YQ
126972017-04-13 Yao Qi <yao.qi@linaro.org>
12698
12699 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
12700 * rx-tdep.c (rx_gdbarch_init): Likewise.
12701
bfb8cf90
PA
127022017-04-13 Pedro Alves <palves@redhat.com>
12703
12704 * breakpoint.h (struct breakpoint): Reindent.
12705
f5336ca5
PA
127062017-04-13 Pedro Alves <palves@redhat.com>
12707
12708 * breakpoint.c (bp_location): Rename to ...
12709 (bp_locations): ... this. All references updated.
12710 (bp_location_count): Rename to ...
12711 (bp_locations_count): ... this. All references updated.
12712 (bp_location_placed_address_before_address_max): Rename to ...
12713 (bp_locations_placed_address_before_address_max): ... this. All
12714 references updated.
12715 (bp_location_shadow_len_after_address_max): Rename to ...
12716 (bp_locations_shadow_len_after_address_max): ... this. All
12717 references updated.
12718 (bp_location_compare_addrs): Rename to ...
12719 (bp_locations_compare_addrs): ... this. All references updated.
12720 (bp_location_compare):Rename to ...
12721 (bp_locations_compare): ... this. All references updated.
12722 (bp_location_target_extensions_update): Rename to ...
12723 (bp_locations_target_extensions_update): ... this. All references
12724 updated.
12725
be628ab8
SDJ
127262017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
12727
12728 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
12729 * common/common.m4: Check headers 'termios.h', 'termio.h' and
12730 'sgtty.h'.
12731 * common/gdb_termios.h: New file, with parts of "terminal.h".
12732 * inflow.c: Include "gdb_termios.h".
12733 * ser-unix.c: Include "gdb_termios.h".
12734 * terminal.h: Move terminal-related defines to
12735 "common/gdb_termios.h".
12736
8e9e35b1
TT
127372017-04-12 Tom Tromey <tom@tromey.com>
12738
12739 * probe.c (parse_probes): Update.
12740 * location.h (delete_event_location): Don't declare.
12741 (event_location_deleter::operator()): Update.
12742 * location.c (event_location_deleter::operator()): Rename from
12743 delete_event_location.
12744 * linespec.h (linespec_result) <location>: Change type to
12745 event_location_up.
12746 * linespec.c (canonicalize_linespec, event_location_to_sals)
12747 (decode_objc): Update.
12748 (linespec_result): Don't call delete_event_location.
12749 * breakpoint.c (create_breakpoints_sal)
12750 (bkpt_probe_create_sals_from_location)
12751 (strace_marker_create_sals_from_location): Update.
12752
16e802b9
TT
127532017-04-12 Tom Tromey <tom@tromey.com>
12754
12755 * linespec.h (struct linespec_result): Add constructor and
12756 destructor.
12757 (init_linespec_result, destroy_linespec_result)
12758 (make_cleanup_destroy_linespec_result): Don't declare.
12759 * linespec.c (init_linespec_result): Remove.
12760 (linespec_result::~linespec_result): Rename from
12761 destroy_linespec_result. Update.
12762 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
12763 Remove.
12764 * breakpoint.c (create_breakpoint, break_range_command)
12765 (decode_location_default): Update.
12766 * ax-gdb.c (agent_command_1): Update.
12767
d28cd78a
TT
127682017-04-12 Tom Tromey <tom@tromey.com>
12769
12770 * remote.c (remote_download_tracepoint): Update.
12771 * python/py-breakpoint.c (bppy_get_location): Update.
12772 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
12773 (gdbscm_breakpoint_location): Update.
12774 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
12775 * breakpoint.h (struct breakpoint) <location, location_range_end>:
12776 Change type to event_location_up.
12777 * breakpoint.c (create_overlay_event_breakpoint)
12778 (create_longjmp_master_breakpoint)
12779 (create_std_terminate_master_breakpoint)
12780 (create_exception_master_breakpoint)
12781 (breakpoint_event_location_empty_p, print_breakpoint_location)
12782 (print_one_breakpoint_location, create_thread_event_breakpoint)
12783 (init_breakpoint_sal, create_breakpoint)
12784 (print_recreate_ranged_breakpoint, break_range_command)
12785 (init_ada_exception_breakpoint, say_where): Update.
12786 (base_breakpoint_dtor): Don't call delete_event_location.
12787 (bkpt_print_recreate, tracepoint_print_recreate)
12788 (dprintf_print_recreate, update_static_tracepoint)
12789 (breakpoint_re_set_default): Update.
12790
711799d5
TT
127912017-04-12 Tom Tromey <tom@tromey.com>
12792
12793 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
12794 type of "to_do". Update.
12795 (compute_stack_depth): Use std::vector.
12796
52d214d3
TT
127972017-04-12 Tom Tromey <tom@tromey.com>
12798
12799 * printcmd.c (find_instruction_backward): Use std::vector.
12800
4c404b8b
TT
128012017-04-12 Tom Tromey <tom@tromey.com>
12802
12803 * symfile.c (objfilep): Remove typedef.
12804 (reread_symbols): Use a std::vector.
12805
156d9eab
TT
128062017-04-12 Tom Tromey <tom@tromey.com>
12807
12808 * mi/mi-main.c (exec_direction_forward): Remove.
12809 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
12810 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
12811 scoped_restore.
12812 * guile/guile.c (guile_repl_command, guile_command)
12813 (gdbscm_execute_gdb_command): Use scoped_restore.
12814 * go-exp.y (go_parse): Use scoped_restore.
12815 * d-exp.y (d_parse): Use scoped_restore.
12816 * cli/cli-decode.c (cmd_func): Use scoped_restore.
12817 * c-exp.y (c_parse): Use scoped_restore.
12818
4d89769a
TT
128192017-04-12 Tom Tromey <tom@tromey.com>
12820
12821 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
12822 (mi_parse): Update return type.
12823 (mi_parse_free): Remove.
12824 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
12825 (mi_parse::~mi_parse): Rename from mi_parse_free.
12826 (mi_parse_cleanup): Remove.
12827 (mi_parse): Return a unique_ptr. Use new.
12828 * mi/mi-main.c (mi_execute_command): Update.
12829
4b217cc7
TT
128302017-04-12 Tom Tromey <tom@tromey.com>
12831
12832 * location.c (explicit_location_lex_one): Return a
12833 unique_xmalloc_ptr.
12834 (string_to_explicit_location): Update. Remove cleanups.
12835
59d3651b
TT
128362017-04-12 Tom Tromey <tom@tromey.com>
12837
12838 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
12839 (compare_value_and_voffset): Change type. Update.
12840 (compute_vtable_size): Change type of "offset_vec".
12841 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
12842 (gnuv3_get_typeid): Remove extraneous declaration.
12843
b24b0d6c
TT
128442017-04-12 Tom Tromey <tom@tromey.com>
12845
12846 * charset.h (wchar_iterator): Fix comment.
12847
80a3b8c5
TT
128482017-04-12 Tom Tromey <tom@tromey.com>
12849
12850 * charset.c (iconv_wrapper): New class.
12851 (cleanup_iconv): Remove.
12852 (convert_between_encodings): Use it.
12853
c83dd867
TT
128542017-04-12 Tom Tromey <tom@tromey.com>
12855
12856 * symfile.h (increment_reading_symtab): Update type.
12857 * symfile.c (decrement_reading_symtab): Remove.
12858 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
12859 * psymtab.c (psymtab_to_symtab): Update.
12860 * dwarf2read.c (dw2_instantiate_symtab): Update.
12861
0e8621a0
TT
128622017-04-12 Tom Tromey <tom@tromey.com>
12863
12864 * jit.c (struct jit_reader): Declare separately. Add constructor
12865 and destructor. Change type of "handle".
12866 (loaded_jit_reader): Define separately.
12867 (jit_reader_load): Update. New "new".
12868 (jit_reader_unload_command): Use "delete".
12869 * gdb-dlfcn.h (struct dlclose_deleter): New.
12870 (gdb_dlhandle_up): New typedef.
12871 (gdb_dlopen, gdb_dlsym): Update types.
12872 (gdb_dlclose): Remove.
12873 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
12874 (gdb_dlsym): Change type of "handle".
12875 (make_cleanup_dlclose): Remove.
12876 (dlclose_deleter::operator()): Rename from gdb_dlclose.
12877 * compile/compile-c-support.c (load_libcc): Update.
12878
67d89901
TT
128792017-04-12 Tom Tromey <tom@tromey.com>
12880
12881 * symtab.h (find_pcs_for_symtab_line): Change return type.
12882 * symtab.c (find_pcs_for_symtab_line): Change return type.
12883 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
12884 type of "vec". Update.
12885 (ltpy_get_pcs_for_line): Update.
12886 * linespec.c (decode_digits_ordinary): Update.
12887
93921405
TT
128882017-04-12 Tom Tromey <tom@tromey.com>
12889
12890 * tracepoint.c (actions_command): Update.
12891 * python/python.c (python_command, python_interactive_command):
12892 Update.
12893 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
12894 * guile/guile.c (guile_command): Update.
12895 * defs.h (read_command_lines, read_command_lines_1): Return
12896 command_line_up.
12897 (command_lines_deleter): New struct.
12898 (command_line_up): New typedef.
12899 * compile/compile.c (compile_code_command)
12900 (compile_print_command): Update.
12901 * cli/cli-script.h (get_command_line, copy_command_lines): Return
12902 command_line_up.
12903 (make_cleanup_free_command_lines): Remove.
12904 * cli/cli-script.c (get_command_line, read_command_lines_1)
12905 (copy_command_lines): Return command_line_up.
12906 (while_command, if_command, read_command_lines, define_command)
12907 (document_command): Update.
12908 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
12909 Remove.
12910 * breakpoint.h (breakpoint_set_commands): Change type of
12911 "commands".
12912 * breakpoint.c (breakpoint_set_commands): Change type of
12913 "commands". Update.
12914 (do_map_commands_command, update_dprintf_command_list)
12915 (create_tracepoint_from_upload): Update.
12916
ffc2605c
TT
129172017-04-12 Tom Tromey <tom@tromey.com>
12918
12919 * tracepoint.c (scope_info): Update.
12920 * spu-tdep.c (spu_catch_start): Update.
12921 * python/python.c (gdbpy_decode_line): Update.
12922 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
12923 * python/py-breakpoint.c (bppy_init): Update.
12924 * probe.c (parse_probes): Update.
12925 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
12926 * location.h (event_location_deleter): New struct.
12927 (event_location_up): New typedef.
12928 (new_linespec_location, new_address_location, new_probe_location)
12929 (new_explicit_location, copy_event_location)
12930 (string_to_event_location, string_to_event_location_basic)
12931 (string_to_explicit_location): Update return type.
12932 (make_cleanup_delete_event_location): Remove.
12933 * location.c (new_linespec_location, new_address_location)
12934 (new_probe_location, new_explicit_location, copy_event_location):
12935 Return event_location_up.
12936 (delete_event_location_cleanup)
12937 (make_cleanup_delete_event_location): Remove.
12938 (string_to_explicit_location, string_to_event_location_basic)
12939 (string_to_event_location): Return event_location_up.
12940 * linespec.c (canonicalize_linespec, event_location_to_sals)
12941 (decode_line_with_current_source)
12942 (decode_line_with_last_displayed, decode_objc): Update.
12943 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
12944 * completer.c (location_completer): Update.
12945 * cli/cli-cmds.c (edit_command, list_command): Update.
12946 * breakpoint.c (create_overlay_event_breakpoint)
12947 (create_longjmp_master_breakpoint)
12948 (create_std_terminate_master_breakpoint)
12949 (create_exception_master_breakpoint)
12950 (create_thread_event_breakpoint): Update.
12951 (init_breakpoint_sal): Update. Remove some dead code.
12952 (create_breakpoint_sal): Change type of "location". Update.
12953 (create_breakpoints_sal, create_breakpoint, break_command_1)
12954 (dprintf_command, break_range_command, until_break_command)
12955 (init_ada_exception_breakpoint)
12956 (strace_marker_create_sals_from_location)
12957 (update_static_tracepoint, trace_command, ftrace_command)
12958 (strace_command, create_tracepoint_from_upload): Update.
12959 * break-catch-throw.c (re_set_exception_catchpoint): Update.
12960 * ax-gdb.c (agent_command_1): Update.
12961
8f10c932
PA
129622017-04-12 Pedro Alves <palves@redhat.com>
12963
12964 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
12965 * configure.tgt: Handle i[34567]86-*-go32* and
12966 i[34567]86-*-msdosdjgpp*.
12967 * i386-tdep.c (i386_svr4_reg_to_regnum):
12968 Make extern.
12969 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
12970 i386-go32-tdep.c.
12971 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
12972 * i386-go32-tdep.c: New file.
12973 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
12974 declarations.
12975
0a31ccfb
SM
129762017-04-12 Simon Marchi <simon.marchi@ericsson.com>
12977
12978 * aix-thread.c (pd_status2str): Change return type to const char *.
12979
e9bb3fbb
PA
129802017-04-12 Pedro Alves <palves@redhat.com>
12981
12982 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
12983 calls to set_gdbarch_gnu_triplet_regexp.
12984
53375380
PA
129852017-04-12 Pedro Alves <palves@redhat.com>
12986
12987 PR gdb/21323
12988 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
12989 New enum value.
12990 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
12991 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
12992 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
12993 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
12994 * gdbarch.h, gdbarch.c: Regenerate.
12995 * aarch64-tdep.c (aarch64_gdbarch_init): Override
12996 gdbarch_wchar_bit and gdbarch_wchar_signed.
12997 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
12998 * arm-tdep.c (arm_gdbarch_init): Likewise.
12999 * avr-tdep.c (avr_gdbarch_init): Likewise.
13000 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13001 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
13002 * i386-tdep.c (i386_go32_init_abi): Likewise.
13003 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13004 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13005 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
13006 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
13007 * sh-tdep.c (sh_gdbarch_init): Likewise.
13008 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13009 * sparc64-tdep.c (sparc64_init_abi): Likewise.
13010 * windows-tdep.c (windows_init_abi): Likewise.
13011 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13012
53e710ac
PA
130132017-04-12 Pedro Alves <palves@redhat.com>
13014
13015 PR c++/21323
13016 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
13017 cplus_primitive_type_char32_t>: New enum values.
13018 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
13019 and cplus_primitive_type_char32_t.
13020 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
13021 32, use the archtecture's built-in type for char16_t and char32_t,
13022 respectively. Otherwise, fallback to init_integer_type as before,
13023 but make the type unsigned, and issue a complaint.
13024 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
13025
ab0538b8
AH
130262017-04-12 Alan Hayward <alan.hayward@arm.com>
13027
5e0e0422 13028 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
13029 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
13030
5430098f
SDJ
130312017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13032
13033 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
13034 'const char *'.
13035
7c5ded6a
SDJ
130362017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13037
13038 * common/common-utils.c (free_vector_argv): New function.
13039 * common/common-utils.h: Include <vector>.
13040 (free_vector_argv): New prototype.
13041 * darwin-nat.c (darwin_create_inferior): Rewrite function
13042 prototype in order to constify "exec_file" and accept a
13043 "std::string" for "allargs".
13044 * fork-child.c: Include <vector>.
13045 (breakup_args): Rewrite function, using C++.
13046 (fork_inferior): Rewrite function header, constify "exec_file_arg"
13047 and accept "std::string" for "allargs". Update the code to
13048 calculate "argv" based on "allargs". Update calls to "exec_fun"
13049 and "execvp".
13050 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
13051 order to constify "exec_file" and accept a "std::string" for
13052 "allargs".
13053 * go32-nat.c (go32_create_inferior): Likewise.
13054 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
13055 * infcmd.c (run_command_1): Constify "exec_file". Use
13056 "std::string" for inferior arguments.
13057 * inferior.h (fork_inferior): Update prototype.
13058 * linux-nat.c (linux_nat_create_inferior): Rewrite function
13059 prototype in order to constify "exec_file" and accept a
13060 "std::string" for "allargs".
13061 * nto-procfs.c (procfs_create_inferior): Likewise.
13062 * procfs.c (procfs_create_inferior): Likewise.
13063 * remote-sim.c (gdbsim_create_inferior): Likewise.
13064 * remote.c (extended_remote_run): Update code to accept
13065 "std::string" as argument.
13066 (extended_remote_create_inferior): Rewrite function prototype in
13067 order to constify "exec_file" and accept a "std::string" for
13068 "allargs".
13069 * rs6000-nat.c (super_create_inferior): Likewise.
13070 (rs6000_create_inferior): Likewise.
13071 * target.h (struct target_ops) <to_create_inferior>: Likewise.
13072 * windows-nat.c (windows_create_inferior): Likewise.
13073
ae0eee42
PA
130742017-04-11 Pedro Alves <palves@redhat.com>
13075
13076 * thread.c: Fix whitespace throughout.
13077
a6acac06
PR
130782017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
13079
13080 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
13081
64403bd1
AH
130822017-04-11 Alan Hayward <alan.hayward@arm.com>
13083
13084 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
13085
a5bef50f
SDJ
130862017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
13087
13088 PR gdb/21364
13089 * osdata.c (info_osdata): Check if 'type' is an empty string
13090 instead of NULL.
13091
9295a5a9
PA
130922017-04-10 Pedro Alves <palves@redhat.com>
13093
13094 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
13095 (ptid_to_global_thread_id, in_thread_list)
13096 (do_captured_list_thread_ids, set_resumed, set_running)
13097 (set_executing, set_stop_requested, finish_thread_state)
13098 (validate_registers_access, can_access_registers_ptid)
13099 (print_thread_info_1, switch_to_thread)
13100 (do_restore_current_thread_cleanup)
13101 (make_cleanup_restore_current_thread, thread_command)
13102 (thread_name_command): Use operator== instead of ptid_equal.
13103
996812e3
PA
131042017-04-10 Pedro Alves <palves@redhat.com>
13105
13106 * thread.c (struct current_thread_cleanup) <next>: Delete field.
13107 (current_thread_cleanup_chain): Delete.
13108 (restore_current_thread_cleanup_dtor)
13109 (make_cleanup_restore_current_thread): Remove references to
13110 current_thread_cleanup_chain.
13111
845b344f
AH
131122017-04-10 Alan Hayward <alan.hayward@arm.com>
13113
13114 * msp430-tdep.c (msp430_pseudo_register_read): Never return
13115 REG_UNKNOWN.
13116
803bdfe4
YQ
131172017-04-10 Yao Qi <yao.qi@linaro.org>
13118
13119 PR gdb/19942
13120 * gdbthread.h (thread_info::deletable): New method.
13121 (thread_info::incref): New method.
13122 (thread_info::decref): New method.
13123 (thread_info::refcount): Move it to private.
13124 * infrun.c (save_stop_context): Call inc_refcount.
13125 (release_stop_context_cleanup): Likewise.
13126 * thread.c (set_thread_exited): New function.
13127 (init_thread_list): Delete "tp" only it is deletable, otherwise
13128 call set_thread_exited.
13129 (delete_thread_1): Call set_thread_exited.
13130 (current_thread_cleanup) <inferior_pid>: Remove.
13131 <thread>: New field.
13132 (restore_current_thread_ptid_changed): Removed.
13133 (do_restore_current_thread_cleanup): Adjust.
13134 (restore_current_thread_cleanup_dtor): Don't call
13135 find_thread_ptid.
13136 (set_thread_refcount): Use dec_refcount.
13137 (make_cleanup_restore_current_thread): Adjust.
13138 (thread_apply_all_command): Call inc_refcount.
13139 (_initialize_thread): Don't call
13140 observer_attach_thread_ptid_changed.
13141
8c25b497
YQ
131422017-04-10 Yao Qi <yao.qi@linaro.org>
13143
13144 * thread.c (delete_thread_1): Hoist code on marking thread as
13145 exited.
13146
8473b447
SM
131472017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13148
13149 * windows-nat.c (windows_detach): Initialize ptid with
13150 minus_one_ptid.
13151
6670ec13
SM
131522017-04-07 Simon Marchi <simon.marchi@ericsson.com>
13153
13154 * unittests/ptid-selftests.c: Fix erroneous assert messages.
13155
ba2f91bb
AH
131562017-04-07 Alan Hayward <alan.hayward@arm.com>
13157
13158 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
13159 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
13160 (bfin_pseudo_register_write): Likewise
13161
436252de
SM
131622017-04-06 Simon Marchi <simon.marchi@ericsson.com>
13163
13164 * common/ptid.h (struct ptid): Change to...
13165 (class ptid_t): ... this.
13166 <ptid_t>: New constructors.
13167 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
13168 matches>: New methods.
13169 <make_null, make_minus_one>: New static methods.
13170 <pid>: Rename to...
13171 <m_pid>: ...this.
13172 <lwp>: Rename to...
13173 <m_lwp>: ...this.
13174 <tid>: Rename to...
13175 <m_tid>: ...this.
13176 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
13177 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
13178 as references, move comment to class ptid_t.
13179 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
13180 ptid_t static methods.
13181 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
13182 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
13183 Take ptid arguments as references, implement using ptid_t methods.
13184 * unittests/ptid-selftests.c: New file.
13185 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13186 unittests/ptid-selftests.c.
13187 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
13188
0dedf377
TP
131892017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13190
13191 * python/python.c (python_run_simple_file): Cast mode literal to
13192 non-const char pointer as expected by PyFile_FromString.
13193
4e9868d4
SM
131942017-04-05 Simon Marchi <simon.marchi@ericsson.com>
13195
13196 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
13197 minus_one_ptid and null_ptid.
13198
9bf2a700
PA
131992017-04-05 Pedro Alves <palves@redhat.com>
13200
13201 * warning.m4 (build_warnings): Remove -Wno-write-strings.
13202 * configure: Regenerate.
13203
a121b7c1
PA
132042017-04-05 Pedro Alves <palves@redhat.com>
13205
13206 * ada-exp.y (yyerror): Constify.
13207 * ada-lang.c (bound_name, get_selections)
13208 (ada_variant_discrim_type)
13209 (ada_variant_discrim_name, ada_value_struct_elt)
13210 (ada_lookup_struct_elt_type, is_unchecked_variant)
13211 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
13212 (catch_ada_exception_command_split)
13213 (catch_ada_assert_command_split, catch_assert_command)
13214 (ada_op_name): Constify.
13215 * ada-lang.h (ada_yyerror, get_selections)
13216 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
13217 * arc-tdep.c (arc_print_frame_cache): Constify.
13218 * arm-tdep.c (arm_skip_stub): Constify.
13219 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
13220 (gen_aggregate_elt_ref): Constify.
13221 * bcache.c (print_bcache_statistics): Constify.
13222 * bcache.h (print_bcache_statistics): Constify.
13223 * break-catch-throw.c (catch_exception_command_1):
13224 * breakpoint.c (struct ep_type_description::description):
13225 Constify.
13226 (add_solib_catchpoint): Constify.
13227 (catch_fork_command_1): Add cast.
13228 (add_catch_command): Constify.
13229 * breakpoint.h (add_catch_command, add_solib_catchpoint):
13230 Constify.
13231 * bsd-uthread.c (bsd_uthread_state): Constify.
13232 * buildsym.c (patch_subfile_names): Constify.
13233 * buildsym.h (next_symbol_text_func, patch_subfile_names):
13234 Constify.
13235 * c-exp.y (yyerror): Constify.
13236 (token::oper): Constify.
13237 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
13238 * c-varobj.c (cplus_describe_child): Constify.
13239 * charset.c (find_charset_names): Add cast.
13240 (find_charset_names): Constify array and add const_cast.
13241 * cli/cli-cmds.c (complete_command, cd_command): Constify.
13242 (edit_command): Constify.
13243 * cli/cli-decode.c (lookup_cmd): Constify.
13244 * cli/cli-dump.c (dump_memory_command, dump_value_command):
13245 Constify.
13246 (struct dump_context): Constify.
13247 (add_dump_command, restore_command): Constify.
13248 * cli/cli-script.c (get_command_line): Constify.
13249 * cli/cli-script.h (get_command_line): Constify.
13250 * cli/cli-utils.c (check_for_argument): Constify.
13251 * cli/cli-utils.h (check_for_argument): Constify.
13252 * coff-pe-read.c (struct read_pe_section_data): Constify.
13253 * command.h (lookup_cmd): Constify.
13254 * common/print-utils.c (decimal2str): Constify.
13255 * completer.c (gdb_print_filename): Constify.
13256 * corefile.c (set_gnutarget): Constify.
13257 * cp-name-parser.y (yyerror): Constify.
13258 * cp-valprint.c (cp_print_class_member): Constify.
13259 * cris-tdep.c (cris_register_name, crisv32_register_name):
13260 Constify.
13261 * d-exp.y (yyerror): Constify.
13262 (struct token::oper): Constify.
13263 * d-lang.h (d_yyerror): Constify.
13264 * dbxread.c (struct header_file_location::name): Constify.
13265 (add_old_header_file, add_new_header_file, last_function_name)
13266 (dbx_next_symbol_text, add_bincl_to_list)
13267 (find_corresponding_bincl_psymtab, set_namestring)
13268 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
13269 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
13270 * defs.h (command_line_input, print_address_symbolic)
13271 (deprecated_readline_begin_hook): Constify.
13272 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
13273 Constify.
13274 * event-top.c (handle_line_of_input): Constify and add cast.
13275 * exceptions.c (catch_errors): Constify.
13276 * exceptions.h (catch_errors): Constify.
13277 * expprint.c (print_subexp_standard, op_string, op_name)
13278 (op_name_standard, dump_raw_expression, dump_raw_expression):
13279 * expression.h (op_name, op_string, dump_raw_expression):
13280 Constify.
13281 * f-exp.y (yyerror): Constify.
13282 (struct token::oper): Constify.
13283 (struct f77_boolean_val::name): Constify.
13284 * f-lang.c (f_word_break_characters): Constify.
13285 * f-lang.h (f_yyerror): Constify.
13286 * fork-child.c (fork_inferior): Add cast.
13287 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
13288 (new_variant): Constify.
13289 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
13290 * gdbarch.c: Regenerate.
13291 * gdbcore.h (set_gnutarget): Constify.
13292 * go-exp.y (yyerror): Constify.
13293 (token::oper): Constify.
13294 * go-lang.h (go_yyerror): Constify.
13295 * go32-nat.c (go32_sysinfo): Constify.
13296 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
13297 * guile/scm-cmd.c (cmdscm_function): Constify.
13298 * guile/scm-param.c (pascm_param_value): Constify.
13299 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
13300 (h8300sx_register_name): Constify.
13301 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
13302 Constify.
13303 * ia64-tdep.c (ia64_register_names): Constify.
13304 * infcmd.c (construct_inferior_arguments): Constify.
13305 (path_command, attach_post_wait): Constify.
13306 * language.c (show_range_command, show_case_command)
13307 (unk_lang_error): Constify.
13308 * language.h (language_defn::la_error)
13309 (language_defn::la_name_of_this): Constify.
13310 * linespec.c (decode_line_2): Constify.
13311 * linux-thread-db.c (thread_db_err_str): Constify.
13312 * lm32-tdep.c (lm32_register_name): Constify.
13313 * m2-exp.y (yyerror): Constify.
13314 * m2-lang.h (m2_yyerror): Constify.
13315 * m32r-tdep.c (m32r_register_names): Constify and make static.
13316 * m68hc11-tdep.c (m68hc11_register_names): Constify.
13317 * m88k-tdep.c (m88k_register_name): Constify.
13318 * macroexp.c (appendmem): Constify.
13319 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
13320 (upgrade_type, parse_external, parse_partial_symbols)
13321 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
13322 (new_symbol): Constify.
13323 * memattr.c (mem_info_command): Constify.
13324 * mep-tdep.c (register_name_from_keyword): Constify.
13325 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
13326 Constify.
13327 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
13328 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
13329 * mi/mi-main.c (captured_mi_execute_command): Constify and add
13330 cast.
13331 (mi_execute_async_cli_command): Constify.
13332 * mips-tdep.c (mips_register_name): Constify.
13333 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
13334 (am33_register_name, am33_2_register_name)
13335 * moxie-tdep.c (moxie_register_names): Constify.
13336 * nat/linux-osdata.c (osdata_type): Constify fields.
13337 * nto-tdep.c (nto_parse_redirection): Constify.
13338 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
13339 (lookup_child_selector): Constify.
13340 (objc_methcall::name): Constify.
13341 * objc-lang.h (lookup_objc_class, lookup_child_selector)
13342 (lookup_struct_typedef): Constify.
13343 * objfiles.c (pc_in_section): Constify.
13344 * objfiles.h (pc_in_section): Constify.
13345 * p-exp.y (struct token::oper): Constify.
13346 (yyerror): Constify.
13347 * p-lang.h (pascal_yyerror): Constify.
13348 * parser-defs.h (op_name_standard): Constify.
13349 (op_print::string): Constify.
13350 (exp_descriptor::op_name): Constify.
13351 * printcmd.c (print_address_symbolic): Constify.
13352 * psymtab.c (print_partial_symbols): Constify.
13353 * python/py-breakpoint.c (stop_func): Constify.
13354 (bppy_get_expression): Constify.
13355 * python/py-cmd.c (cmdpy_completer::name): Constify.
13356 (cmdpy_function): Constify.
13357 * python/py-event.c (evpy_add_attribute)
13358 (gdbpy_initialize_event_generic): Constify.
13359 * python/py-event.h (evpy_add_attribute)
13360 (gdbpy_initialize_event_generic): Constify.
13361 * python/py-evts.c (add_new_registry): Constify.
13362 * python/py-finishbreakpoint.c (outofscope_func): Constify.
13363 * python/py-framefilter.c (get_py_iter_from_func): Constify.
13364 * python/py-inferior.c (get_buffer): Add cast.
13365 * python/py-param.c (parm_constant::name): Constify.
13366 * python/py-unwind.c (fprint_frame_id): Constify.
13367 * python/python.c (gdbpy_parameter_value): Constify.
13368 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
13369 * remote.c (memory_packet_config::name): Constify.
13370 (show_packet_config_cmd, remote_write_bytes)
13371 (remote_buffer_add_string):
13372 * reverse.c (exec_reverse_once): Constify.
13373 * rs6000-tdep.c (variant::name, variant::description): Constify.
13374 * rust-exp.y (rustyyerror): Constify.
13375 * rust-lang.c (rust_op_name): Constify.
13376 * rust-lang.h (rustyyerror): Constify.
13377 * serial.h (serial_ops::name): Constify.
13378 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
13379 (sh_sh3e_register_name, sh_sh2e_register_name)
13380 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
13381 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
13382 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
13383 (sh_sh4al_dsp_register_name): Constify.
13384 * sh64-tdep.c (sh64_register_name): Constify.
13385 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
13386 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
13387 * stabsread.c (patch_block_stabs, read_type_number)
13388 (ref_map::stabs, ref_add, process_reference)
13389 (symbol_reference_defined, define_symbol, define_symbol)
13390 (error_type, read_type, read_member_functions, read_cpp_abbrev)
13391 (read_one_struct_field, read_struct_fields, read_baseclasses)
13392 (read_tilde_fields, read_struct_type, read_array_type)
13393 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
13394 (read_huge_number, read_range_type, read_args, common_block_start)
13395 (find_name_end): Constify.
13396 * stabsread.h (common_block_start, define_symbol)
13397 (process_one_symbol, symbol_reference_defined, ref_add):
13398 * symfile.c (get_section_index, add_symbol_file_command):
13399 * symfile.h (get_section_index): Constify.
13400 * target-descriptions.c (tdesc_type::name): Constify.
13401 (tdesc_free_type): Add cast.
13402 * target.c (find_default_run_target):
13403 (add_deprecated_target_alias, find_default_run_target)
13404 (target_announce_detach): Constify.
13405 (do_option): Constify.
13406 * target.h (add_deprecated_target_alias): Constify.
13407 * thread.c (print_thread_info_1): Constify.
13408 * top.c (deprecated_readline_begin_hook, command_line_input):
13409 Constify.
13410 (init_main): Add casts.
13411 * top.h (handle_line_of_input): Constify.
13412 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
13413 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
13414 (tfind_command): Rename to ...
13415 (tfind_command_1): ... this and constify.
13416 (tfind_command): New function.
13417 (tfind_end_command, tfind_start_command): Adjust.
13418 (encode_source_string): Constify.
13419 * tracepoint.h (encode_source_string): Constify.
13420 * tui/tui-data.c (tui_partial_win_by_name): Constify.
13421 * tui/tui-data.h (tui_partial_win_by_name): Constify.
13422 * tui/tui-source.c (tui_set_source_content_nil): Constify.
13423 * tui/tui-source.h (tui_set_source_content_nil): Constify.
13424 * tui/tui-win.c (parse_scrolling_args): Constify.
13425 * tui/tui-windata.c (tui_erase_data_content): Constify.
13426 * tui/tui-windata.h (tui_erase_data_content): Constify.
13427 * tui/tui-winsource.c (tui_erase_source_content): Constify.
13428 * tui/tui.c (tui_enable): Add cast.
13429 * utils.c (defaulted_query): Constify.
13430 (init_page_info): Add cast.
13431 (puts_debug, subset_compare): Constify.
13432 * utils.h (subset_compare): Constify.
13433 * varobj.c (varobj_format_string): Constify.
13434 * varobj.h (varobj_format_string): Constify.
13435 * vax-tdep.c (vax_register_name): Constify.
13436 * windows-nat.c (windows_detach): Constify.
13437 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
13438 * xml-support.c (gdb_xml_end_element): Constify.
13439 * xml-tdesc.c (tdesc_start_reg): Constify.
13440 * xstormy16-tdep.c (xstormy16_register_name): Constify.
13441 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
13442 * xtensa-tdep.h (xtensa_register_t::name): Constify.
13443
995816ba
PA
134442017-04-05 Pedro Alves <palves@redhat.com>
13445
13446 * proc-api.c (struct trans): Constify.
13447 (procfs_note): Constify.
13448 * proc-events.c (struct trans, syscall_table):
13449 * proc-flags.c (struct trans): Constify.
13450 * proc-utils.h (procfs_note): Constify.
13451 * proc-why.c (struct trans): Constify.
13452 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
13453 (procfs_detach): Constify.
13454 * sol-thread.c (struct string_map): Constify.
13455 (td_err_string, td_state_string): Constify.
13456
3e83a920
PA
134572017-04-05 Pedro Alves <palves@redhat.com>
13458
13459 * proc-api.c (procfs_filename): Don't initialize
13460 procfs_filename.
13461 (prepare_to_trace): Assume procfs_filename is non-NULL.
13462 (_initialize_proc_api): Give procfs_filename a default value here.
13463
63160a43
PA
134642017-04-05 Pedro Alves <palves@redhat.com>
13465
13466 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
13467 'cond_string' parameter.
13468 (extract_exception_regexp): Constify 'string' parameter.
13469 (catch_exception_command_1): Constify.
13470 * breakpoint.c (init_catchpoint)
13471 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
13472 parameter.
13473 (ep_parse_optional_if_clause, catch_fork_command_1)
13474 (catch_exec_command_1): Constify.
13475 * breakpoint.h (init_catchpoint): Constify 'cond_string'
13476 parameter.
13477 (ep_parse_optional_if_clause): Constify.
13478 * cli/cli-utils.c (remove_trailing_whitespace)
13479 (check_for_argument): Constify.
13480 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
13481 non-const overload.
13482 (check_for_argument): Likewise.
13483
9b2eba3d
PA
134842017-04-05 Pedro Alves <palves@redhat.com>
13485
13486 * event-top.c (command_line_handler): Add cast to execute_command
13487 call.
13488 * record-btrace.c (cmd_record_btrace_bts_start)
13489 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
13490 (cmd_record_btrace_start): Add cast to execute_command call.
13491 * record-full.c (record_full_goto_insn):
13492 * record.c (record_start, record_stop): Add cast to
13493 execute_command_to_string calls.
13494 (cmd_record_start): Add cast to execute_command calls.
13495
2adadf51
PA
134962017-04-05 Pedro Alves <palves@redhat.com>
13497
13498 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
13499 static inline function.
13500 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
13501 array and use gdb_PyArg_ParseTupleAndKeywords.
13502 * python/py-cmd.c (cmdpy_init): Likewise.
13503 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
13504 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
13505 (infpy_search_memory): Likewise.
13506 * python/py-objfile.c (objfpy_add_separate_debug_file)
13507 (gdbpy_lookup_objfile): Likewise.
13508 * python/py-symbol.c (gdbpy_lookup_symbol)
13509 (gdbpy_lookup_global_symbol): Likewise.
13510 * python/py-type.c (gdbpy_lookup_type): Likewise.
13511 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
13512 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
13513 Likewise.
13514
0d1f4ceb
PA
135152017-04-05 Pedro Alves <palves@redhat.com>
13516
13517 * python/python-internal.h (gdb_PyGetSetDef): New type.
13518 * python/py-block.c (block_object_getset)
13519 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
13520 * python/py-event.c (event_object_getset)
13521 (finish_breakpoint_object_getset): Likewise.
13522 * python/py-inferior.c (inferior_object_getset): Likewise.
13523 * python/py-infthread.c (thread_object_getset): Likewise.
13524 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
13525 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
13526 * python/py-objfile.c (objfile_getset): Likewise.
13527 * python/py-progspace.c (pspace_getset): Likewise.
13528 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
13529 Likewise.
13530 * python/py-record.c (recpy_record_getset): Likewise.
13531 * python/py-symbol.c (symbol_object_getset): Likewise.
13532 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
13533 Likewise.
13534 * python/py-type.c (type_object_getset, field_object_getset):
13535 Likewise.
13536 * python/py-value.c (value_object_getset): Likewise.
13537
4d759979
PA
135382017-04-05 Pedro Alves <palves@redhat.com>
13539
13540 * python/python-internal.h (gdb_PyObject_CallMethod)
13541 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
13542 New functions.
13543 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
13544 (PySys_GetObject, PySys_SetPath): New macros.
13545
fdf9e36f
PA
135462017-04-05 Pedro Alves <palves@redhat.com>
13547
13548 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
13549 info_osdata_command.
13550 * osdata.c (info_osdata_command): Rename to ...
13551 (info_osdata): ... this. Constify 'type' parameter, and remove
13552 the 'from_tty' parameter. Accept NULL TYPE.
13553 (info_osdata_command): New function.
13554 * osdata.h (info_osdata_command): Remove declaration.
13555 (info_osdata): New declaration.
13556
9f33b8b7
PA
135572017-04-05 Pedro Alves <palves@redhat.com>
13558
13559 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
13560 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
13561 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
13562 parameter.
13563 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
13564 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
13565 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
13566 parameter.
13567 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
13568 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
13569 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
13570 (mi_cmd_file_list_exec_source_files)
13571 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
13572 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13573 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
13574 parameter.
13575 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
13576 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
13577 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
13578 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
13579 (mi_cmd_stack_info_frame): Constify 'command' parameter.
13580 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
13581 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
13582 'command' parameter.
13583 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
13584 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
13585 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
13586 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
13587 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
13588 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
13589 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
13590 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
13591 (mi_cmd_var_set_update_range): Constify 'command' parameter.
13592 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
13593 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
13594 parameter.
13595 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
13596 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
13597 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
13598 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
13599 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
13600 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
13601 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
13602 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
13603 (mi_cmd_data_list_changed_registers)
13604 (mi_cmd_data_write_register_values)
13605 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
13606 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
13607 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
13608 (mi_cmd_list_features, mi_cmd_list_target_features)
13609 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
13610 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
13611 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
13612 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
13613 (mi_cmd_trace_frame_collected): Constify 'command'
13614 parameter.
13615 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
13616 'command' parameter.
13617
67cb5b2d
PA
136182017-04-05 Pedro Alves <palves@redhat.com>
13619
13620 * ada-lang.c (ada_completer_word_break_characters): Now a const
13621 array.
13622 (ada_get_gdb_completer_word_break_characters): Constify.
13623 * completer.c (gdb_completer_command_word_break_characters)
13624 (gdb_completer_file_name_break_characters)
13625 (gdb_completer_quote_characters): Now const arrays.
13626 (get_gdb_completer_quote_characters): Constify.
13627 (set_rl_completer_word_break_characters): New function.
13628 (set_gdb_completion_word_break_characters)
13629 (complete_line_internal): Use it.
13630 * completer.h (get_gdb_completer_quote_characters): Constify.
13631 (set_rl_completer_word_break_characters): Declare.
13632 * f-lang.c (f_word_break_characters): Constify.
13633 * language.c (default_word_break_characters): Constify.
13634 * language.h (language_defn::la_word_break_characters): Constify.
13635 (default_word_break_characters): Constify.
13636 * top.c (init_main): Use set_rl_completer_word_break_characters.
13637
7a114964
PA
136382017-04-05 Pedro Alves <palves@redhat.com>
13639
13640 * aix-thread.c (aix_thread_pid_to_str)
13641 (aix_thread_extra_thread_info): Constify.
13642 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
13643 * bsd-uthread.c (bsd_uthread_extra_thread_info)
13644 (bsd_uthread_pid_to_str): Constify.
13645 * corelow.c (core_pid_to_str): Constify.
13646 * darwin-nat.c (darwin_pid_to_str): Constify.
13647 * fbsd-nat.c (fbsd_pid_to_str): Constify.
13648 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
13649 Constify.
13650 * gnu-nat.c (gnu_pid_to_str): Constify.
13651 * go32-nat.c (go32_pid_to_str): Constify.
13652 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
13653 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
13654 * inferior.c (inferior_pid_to_str): Constify.
13655 * linux-nat.c (linux_nat_pid_to_str): Constify.
13656 * linux-tdep.c (linux_core_pid_to_str): Constify.
13657 * linux-thread-db.c (thread_db_pid_to_str)
13658 (thread_db_extra_thread_info): Constify.
13659 * nto-tdep.c (nto_extra_thread_info): Constify.
13660 * nto-tdep.h (nto_extra_thread_info): Constify.
13661 * obsd-nat.c (obsd_pid_to_str): Constify.
13662 * procfs.c (procfs_pid_to_str): Constify.
13663 * ravenscar-thread.c (ravenscar_extra_thread_info)
13664 (ravenscar_pid_to_str): Constify.
13665 * remote-sim.c (gdbsim_pid_to_str): Constify.
13666 * remote.c (remote_threads_extra_info, remote_pid_to_str):
13667 Constify.
13668 * sol-thread.c (solaris_pid_to_str): Constify.
13669 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
13670 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
13671 * target.c (default_pid_to_str, target_pid_to_str)
13672 (normal_pid_to_str, default_pid_to_str): Constify.
13673 * target.h (target_ops::to_pid_to_str)
13674 (target_ops::to_extra_thread_info): Constify.
13675 (target_pid_to_str, normal_pid_to_str): Constify.
13676 * windows-nat.c (windows_pid_to_str): Constify.
13677 * gdbarch.sh (core_pid_to_str): Constify.
13678 * target-delegates.c: Regenerate.
13679 * gdbarch.h, gdbarch.c: Regenerate.
13680
69bbf465
PA
136812017-04-05 Pedro Alves <palves@redhat.com>
13682
13683 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
13684 the memory of the temporary warning_pre_print override.
13685 * utils.c (warning_pre_print): Constify.
13686 * utils.h (warning_pre_print): Constify.
13687
be47f9e8
PA
136882017-04-05 Pedro Alves <palves@redhat.com>
13689
13690 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
13691 (shell_command): New function.
13692 (make_command): Use std::string.
13693 (init_cli_cmds): Register shell_command instead of shell_escape.
13694
bde6261a
PA
136952017-04-05 Pedro Alves <palves@redhat.com>
13696
13697 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
13698 * tracepoint.c (default_collect): Don't initialize.
13699
b38ef47f
PA
137002017-04-05 Pedro Alves <palves@redhat.com>
13701
13702 * macroexp.c (macro_buffer::shared): Now a bool.
13703 (init_buffer): Update.
13704 (init_shared_buffer): Constify 'addr' parameter.
13705 (substitute_args, expand, macro_expand, macro_expand_next): Remove
13706 casts.
13707
f995bbe8
PA
137082017-04-05 Pedro Alves <palves@redhat.com>
13709
13710 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
13711 * disasm.c (set_disassembler_options): Constify local.
13712 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
13713
4a596fe2
SDJ
137142017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
13715
13716 PR gdb/21352
13717 * tracefile.c (tsave_command): Fix argument parsing for '-r'
13718 option.
13719
2cad08ea
YQ
137202017-04-05 Yao Qi <yao.qi@linaro.org>
13721
13722 * frame.c (frame_unwind_register_unsigned): Call
13723 frame_unwind_register_value.
13724
55a98976
YQ
137252017-04-05 Yao Qi <yao.qi@linaro.org>
13726
13727 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
13728 Use gdb_test_multiple, and don't match anchor.
13729
4ac40124
PA
137302017-04-05 Pedro Alves <palves@redhat.com>
13731
13732 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
13733 (Write After Approval): Remove Simon Marchi.
13734
c053b654
PA
137352017-04-05 Pedro Alves <palves@redhat.com>
13736
13737 * common/gdb_optional.h (optional::optional): Make constexpr and
13738 initialize m_dummy.
13739
4c7bf4f9
JB
137402017-04-04 John Baldwin <jhb@FreeBSD.org>
13741
13742 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
13743 (amd64fbsd_jmp_buf_reg_offset): Remove.
13744 (amd64fbsd_supply_uthread): Remove function.
13745 (amd64fbsd_collect_uthread): Remove function.
13746 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
13747 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
13748 (x86_64-*-freebsd*): Remove bsd-uthread.o.
13749 (fbsd-nat.c): Update comment.
13750 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
13751 (i386fbsd_jmp_buf_reg_offset): Remove.
13752 (i386fbsd_supply_uthread): Remove function.
13753 (i386fbsd_collect_uthread): Remove function.
13754 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
13755
1e1a8bef
JB
137562017-04-04 John Baldwin <jhb@FreeBSD.org>
13757
13758 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
13759 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
13760 * NEWS: Mention that support for FreeBSD/alpha was removed.
13761 * alpha-fbsd-tdep.c: Delete file.
13762 * config/alpha/fbsd.mh: Delete file.
13763 * configure.host: Delete alpha*-*-freebsd* and
13764 alpha*-*-kfreebsd*-gnu.
13765 * configure.tgt: Delete alpha*-*-freebsd* and
13766 alpha*-*-kfreebsd*-gnu.
13767
49907934
JB
137682017-04-04 John Baldwin <jhb@FreeBSD.org>
13769
13770 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
13771 amd64bsd_store_inferior_registers): Use ptid from regcache.
13772
6f77053d
PA
137732017-04-04 Pedro Alves <palves@redhat.com>
13774
13775 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
13776 data fields, make them private and add "m_" prefixes.
13777 (lnp_state_machine::lnp_state_machine): New ctor.
13778 (record_line, check_line_address, handle_set_discriminator)
13779 (handle_set_address, handle_advance_pc, handle_special_opcode)
13780 (handle_advance_line, handle_set_file, handle_negate_stmt)
13781 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
13782 (end_sequence, advance_line): New methods.
13783 (m_gdbarch, m_record_lines_p): New fields.
13784 (lnp_reader_state): Delete.
13785 (dwarf_record_line): Rename to ...
13786 (lnp_state_machine::record_line): ... adjust.
13787 (init_lnp_state_machine): Delete.
13788 (lnp_state_machine::lnp_state_machine): New.
13789 (check_line_address): Rename to ...
13790 (lnp_state_machine::check_line_address): This.
13791 (dwarf_decode_lines_1): Remove reference to "reader_state".
13792 Adjust lnp_state_machine having a non-default ctor. Use bool.
13793 State machine internal state manipulation moved to
13794 lnp_state_machine methods.
13795
9c541725
PA
137962017-04-04 Pedro Alves <palves@redhat.com>
13797
13798 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13799 unittests/offset-type-selftests.c.
13800 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
13801 * common/offset-type.h: New file.
13802 * common/preprocessor.h: New file.
13803 * common/traits.h: New file.
13804 * common/valid-expr.h: New file.
13805 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
13806 sect_offset and cu_offset strong typedefs throughout.
13807 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
13808 typedefs throughout.
13809 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
13810 sect_offset and cu_offset strong typedefs throughout.
13811 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
13812 typedefs throughout.
13813 * gdbtypes.h: Include "common/offset-type.h".
13814 (cu_offset): Now an offset type (strong typedef) instead of a
13815 struct.
13816 (sect_offset): Likewise.
13817 (union call_site_parameter_u): Rename "param_offset" field to
13818 "param_cu_off".
13819 * unittests/offset-type-selftests.c: New file.
13820
ecfb656c
PA
138212017-04-04 Pedro Alves <palves@redhat.com>
13822
13823 * common/underlying.h: New file.
13824 * dwarf2read.c: Include "common/gdb_optional.h" and
13825 "common/underlying.h".
13826 (dir_index, file_name_index): New types.
13827 (file_entry): Use them.
13828 (file_entry::include): Use to_underlying.
13829 (line_header::add_file_name): Use dir_index.
13830 (read_formatted_entries): Use gdb::optional. Read form before
13831 writting to file_entry.
13832 (dwarf_decode_line_header): Use dir_index.
13833 (lnp_state_machine::current_file): Use to_underlying.
13834 (lnp_state_machine::file): Change type to file_name_index.
13835 (dwarf_record_line): Use to_underlying.
13836 (init_lnp_state_machine): Use file_name_index.
13837 (dwarf_decode_lines_1): Use dir_index and file_name_index.
13838
d194f1fe
PA
138392017-04-04 Pedro Alves <palves@redhat.com>
13840
13841 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
13842 operator bool, has_value and get methods.
13843
fff8551c
PA
138442017-04-04 Pedro Alves <palves@redhat.com>
13845
13846 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
13847 fields.
13848 (line_header): Initialize all data fields. Change type of
13849 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
13850 Change type of include_dirs to std::vector<const char *>. Remove
13851 num_include_dirs, include_dirs_size. Change type of file_names to
13852 std::vector<file_entry>. Remove num_file_names, file_names_size.
13853 (line_header::line_header): New.
13854 (line_header::add_include_dir, line_header::add_file_name): New
13855 methods.
13856 (line_header::include_dir_at): Remove NULL check.
13857 (line_header::file_name_at): Add const overload.
13858 (line_header_up): New unique_ptr typedef.
13859 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
13860 std::vector. Remove free_line_header call.
13861 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
13862 free_line_header call.
13863 (free_cu_line_header): Delete.
13864 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
13865 (setup_type_unit_groups): Use line_header_up instead of cleanups.
13866 Adjust to use std::vector.
13867 (free_line_header): Delete.
13868 (free_line_header_voidp): Use delete.
13869 (add_include_dir): Replace with ...
13870 (line_header::add_include_dir): ... this method. Use std::vector.
13871 (add_file_name): Replace with ...
13872 (line_header::add_file_name): ... this method. Use std::vector.
13873 (add_include_dir_stub): Delete.
13874 (read_formatted_entries): Remove memset.
13875 (dwarf_decode_line_header): Return a line_header_up instead of a
13876 raw pointer. Remove cleanup handling. Pass lambdas to
13877 read_formatted_entries. Adjust to use line_header methods.
13878 (dwarf_decode_lines_1): Adjust to use line_header methods.
13879 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
13880 use std::vector.
13881
d62a8ae2
SM
138822017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
13883
13884 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
13885 instead of struct ptid.
13886
db3a1dc7
AH
138872017-05-04 Alan Hayward <alan.hayward@arm.com>
13888
13889 * frame.c (get_frame_register_bytes): Unwind using value.
13890 (put_frame_register_bytes): Likewise.
13891
b1b45502
IB
138922017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
13893
13894 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
13895 aggregate-like.
13896
ec13808e
JK
138972017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
13898
13899 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
13900
12316564
YQ
139012017-03-29 Yao Qi <yao.qi@linaro.org>
13902
13903 * gdbthread.h (struct thread_info): Declare constructor and
13904 destructor. Add some in-class member initializers.
13905 * thread.c (free_thread): Remove.
13906 (init_thread_list): Call delete instead of free_thread.
13907 (new_thread): Call thread_info constructor.
13908 (thread_info::thread_info): New function.
13909 (thread_info::~thread_info): New function.
13910 (delete_thread_1): Call delete instead of free_thread.
13911 (make_cleanup_restore_current_thread): Move tp and frame to
13912 inner block.
13913
fe5f7374
AK
139142017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13915
13916 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
13917 (arc_skip_prologue): Likewise.
13918 (arc_make_frame_cache): Likewise.
13919 (arc_pv_get_operand): New function.
13920 (arc_is_in_prologue): Likewise.
13921 (arc_analyze_prologue): Likewise.
13922 (arc_print_frame_cache): Likewise.
13923 (MAX_PROLOGUE_LENGTH): New constant.
13924
eea78757
AK
139252017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13926
13927 * configure.tgt: Add arc-insn.o.
13928 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
13929 (dump_arc_instruction_command): New function.
13930 (arc_fprintf_disasm): Likewise.
13931 (arc_disassemble_info): Likewise.
13932 (arc_insn_get_operand_value): Likewise.
13933 (arc_insn_get_operand_value_signed): Likewise.
13934 (arc_insn_get_memory_base_reg): Likewise.
13935 (arc_insn_get_memory_offset): Likewise.
13936 (arc_insn_get_branch_target): Likewise.
13937 (arc_insn_dump): Likewise.
13938 (arc_insn_get_linear_next_pc): Likewise.
13939 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
13940 (arc_disassemble_info): Likewise.
13941 (arc_insn_get_branch_target): Likewise.
13942 (arc_insn_get_linear_next_pc): Likewise.
13943 * NEWS: Mention new "maint print arc arc-instruction".
13944
3be78afd
AK
139452017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13946
13947 * arc-tdep (maintenance_print_arc_list): New variable.
13948 (maintenance_print_arc_command): New function.
13949
296ec4fa
AK
139502017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13951
13952 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
13953 Add "limm" and "reserved".
13954 (arc_cannot_fetch_register, arc_cannot_store_register): Add
13955 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
13956 * arc-tdep.h (arc_regnum): Likewise.
13957
f74f865e
MF
139582017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13959
13960 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
13961 for THREADPTR register.
13962 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
13963 register.
13964 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
13965 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
13966 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
13967
0d0bf81a
MF
139682017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13969
13970 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
13971 registers above gdbarch_num_regs (gdbarch) as privileged in
13972 call0 ABI.
13973
0ce4291e
MF
139742017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13975
13976 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
13977 for a single specified register or for all registers in
13978 a0_base..a0_base + C0_NREGS range.
13979 (supply_gregset_reg): Call regcache_raw_supply for a single
13980 specified register or for all registers in a0_base..a0_base +
13981 C0_NREGS range.
13982
c56054f9
MF
139832017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13984
13985 * arch/xtensa.h (C0_NREGS): Add definition.
13986 * xtensa-tdep.c (C0_NREGS): Remove definition.
13987
a4398628
MF
139882017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13989
13990 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
13991 Drop xtensa_default_isa initialization.
13992 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
13993
8c43009f
PA
139942017-03-27 Pedro Alves <palves@redhat.com>
13995
13996 * dwarf2read.c (file_entry) <dir_index>: Add comment.
13997 (file_entry::include_dir): New method.
13998 (line_header::include_dir_at, line_header::file_name_at): New
13999 methods.
14000 (setup_type_unit_groups, setup_type_unit_groups)
14001 (psymtab_include_file_name): Simplify using the new methods.
14002 (lnp_state_machine) <the_line_header>: New field.
14003 <file>: Add comment.
14004 (lnp_state_machine::current_file): New method.
14005 (dwarf_record_line): Simplify using the new methods.
14006 (init_lnp_state_machine): Initialize the "the_line_header" field.
14007 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
14008 Simplify using the new methods.
14009
a7e80b9e
PA
140102017-03-27 Pedro Alves <palves@redhat.com>
14011
14012 * cp-name-parser.y (make_empty): Delete.
14013 (demangler_special, nested_name, ptr_operator, array_indicator)
14014 (direct_declarator, declarator_1): Use fill_comp instead of
14015 make_empty.
14016
21047726
PA
140172017-03-27 Pedro Alves <palves@redhat.com>
14018
14019 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
14020 to ATTRIBUTE_PRINTF.
14021 * solib-target.c (library_list_start_list): Print "string" not
14022 "version".
14023 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
14024 gdb_xml_error call.
14025
d721ba37
PA
140262017-03-27 Pedro Alves <palves@redhat.com>
14027
14028 * dwarf2read.c (struct file_and_directory): New.
14029 (dwarf2_get_dwz_file): Adjust to use std::string.
14030 (dw2_get_file_names_reader): Adjust to use file_and_directory.
14031 (find_file_and_directory): Adjust to return a file_and_directory
14032 object.
14033 (read_file_scope): Adjust to use file_and_directory. Remove
14034 make_cleanup/do_cleanups calls.
14035 (open_and_init_dwp_file): Adjust to use std::string. Remove
14036 make_cleanup/do_cleanups calls.
14037 * python/python.c (do_start_initialization): Adjust to ldirname
14038 returning a std::string.
14039 * utils.c (ldirname): Now returns a std::string.
14040 * utils.h (ldirname): Change return type to std::string.
14041 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
14042 returning a std::string.
14043 * xml-tdesc.c (file_read_description_xml): Likewise.
14044
ed771251
AH
140452017-03-24 Alan Hayward <alan.hayward@arm.com>
14046
14047 * regcache.c (regcache_debug_print_register): New function.
14048 * regcache.h (regcache_debug_print_register): New declaration.
14049 * target.c (debug_print_register): Remove.
14050 (target_fetch_registers): Call regcache_debug_print_register.
14051 (target_store_registers): Likewise.
14052
568c1b9f
PB
140532017-03-24 Pádraig Brady <pbrady@fb.com>
14054
14055 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
14056 reference beyond the 'lh->include_dirs' array before accessing to
14057 it.
14058 (psymtab_include_file_name): Likewise.
14059 (dwarf_decode_lines_1): Likewise.
14060 (dwarf_decode_lines): Likewise.
14061 (file_file_name): Likewise.
14062
3e00d44f
SM
140632017-03-23 Simon Marchi <simon.marchi@ericsson.com>
14064
14065 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
14066 inferior_ptid.
14067 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14068 ps_lsetfpregs): Likewise.
14069 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
14070 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14071 ps_lsetfpregs): Likewise.
14072 * target.c (target_fetch_registers, target_store_registers):
14073 Remove asserts.
14074
077ae656
AH
140752017-03-23 Alan Hayward <alan.hayward@arm.com>
14076
14077 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
14078
1e2b521d
YQ
140792017-03-23 Yao Qi <yao.qi@linaro.org>
14080
14081 * aarch64-tdep.c (aarch64_process_record_test): Declare.
14082 (_initialize_aarch64_tdep): Register it.
14083 (aarch64_record_load_store): Handle PRFM instruction.
14084 (aarch64_process_record_test): New function.
14085
33877125
YQ
140862017-03-23 Yao Qi <yao.qi@linaro.org>
14087
14088 * aarch64-tdep.c (aarch64_record_load_store): Fix code
14089 indentation.
14090
a0eef940
YQ
140912017-03-23 Yao Qi <yao.qi@linaro.org>
14092
14093 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
14094
3f2a3564
PR
140952017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14096
14097 python/python.c (do_start_initialization): Fix memory leak.
14098
b67aeab0
SM
140992017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
14100
14101 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
14102 using get_ptrace_pid.
14103 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
14104 inferior_ptid.
14105 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
14106 inferior_ptid instead of pid.
14107
ffdbe864
YQ
141082017-03-22 Yao Qi <yao.qi@linaro.org>
14109
14110 * aarch64-tdep.c: Wrap locally used classes in anonymous
14111 namespace.
14112 * arm-tdep.c: Likewise.
14113 * linespec.c: Likewise.
14114 * ui-out.c: Likewise.
14115
9d736fbf
JG
141162017-03-22 Jonah Graham <jonah@kichwacoders.com>
14117
14118 PR gdb/19637
14119 * python/lib/gdb/printer/bound_registers.py: Import sys.
14120
3de88e9a
SM
141212017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14122
14123 * windows-nat.c (do_windows_fetch_inferior_registers): Add
14124 windows_thread_info parameter and use it instead of
14125 current_thread.
14126 (windows_fetch_inferior_registers): Don't set current_thread,
14127 pass the thread to do_windows_fetch_inferior_registers. Use
14128 ptid from regcache instead of inferior_ptid.
14129 (do_windows_store_inferior_registers): Add windows_thread_info
14130 parameter and use it instead of current_thread.
14131 (windows_store_inferior_registers): Don't set current_thread,
14132 pass the thread to do_windows_store_inferior_registers. Use
14133 ptid from regcache instead of inferior_ptid.
14134
0e7b8f61
SM
141352017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14136
14137 * ser-mingw.c (ser_windows_raw): Remove reference to
14138 struct serial::current_timeout.
14139
5badf10a
IR
141402017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
14141
14142 PR tdep/20928
14143 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
14144 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
14145 (sparc64_fsr_type): Fix %fsr decoding.
14146
cee59b3f
TW
141472017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
14148
14149 * python/py-record-btrace.c (btpy_insn_data): Change return type
14150 for Python 2.
14151
639a9038
SM
141522017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14153
14154 * spu-linux-nat.c (spu_fetch_inferior_registers,
14155 spu_store_inferior_registers): Use ptid from regcache, set and
14156 restore inferior_ptid.
14157 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
14158 Likewise.
14159
bcc0c096
SM
141602017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14161
14162 * i386-linux-nat.c (fetch_register, store_register,
14163 i386_linux_fetch_inferior_registers,
14164 i386_linux_store_inferior_registers): Use ptid from regcache.
14165 * ia64-linux-nat.c (ia64_linux_fetch_register,
14166 ia64_linux_store_register): Likewise.
14167 * inf-ptrace.c (inf_ptrace_fetch_register,
14168 inf_ptrace_store_register): Likewise.
14169 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
14170 m32r_linux_store_inferior_registers): Likewise.
14171 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
14172 m68kbsd_store_inferior_registers): Likewise.
14173 * m68k-linux-nat.c (fetch_register, store_register,
14174 m68k_linux_fetch_inferior_registers,
14175 m68k_linux_store_inferior_registers): Likewise.
14176 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
14177 m88kbsd_store_inferior_registers): Likewise.
14178 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
14179 mips_fbsd_store_inferior_registers): Likewise.
14180 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
14181 mips64_linux_regsets_store_registers): Likewise.
14182 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
14183 mipsnbsd_store_inferior_registers): Likewise.
14184 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
14185 mips64obsd_store_inferior_registers): Likewise.
14186 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
14187 Likewise.
14188 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
14189 ppcfbsd_store_inferior_registers): Likewise.
14190 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
14191 ppc_linux_store_inferior_registers): Likewise.
14192 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
14193 ppcnbsd_store_inferior_registers): Likewise.
14194 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
14195 ppcobsd_store_registers): Likewise.
14196 * procfs.c (procfs_fetch_registers, procfs_store_registers):
14197 Likewise.
14198 * ravenscar-thread.c (ravenscar_fetch_registers,
14199 ravenscar_store_registers, ravenscar_prepare_to_store):
14200 Likewise.
14201 * record-btrace.c (record_btrace_fetch_registers,
14202 record_btrace_store_registers, record_btrace_prepare_to_store):
14203 Likewise.
14204 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
14205 Lookup inferior using ptid from regcache, instead of
14206 current_inferior.
14207 * remote.c (remote_fetch_registers, remote_store_registers): Use
14208 ptid from regcache.
14209 * rs6000-nat.c (fetch_register, store_register): Likewise.
14210 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
14211 s390_linux_store_inferior_registers): Likewise.
14212 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
14213 shnbsd_store_inferior_registers): Likewise.
14214 * sol-thread.c (sol_thread_fetch_registers,
14215 sol_thread_store_registers): Likewise.
14216 * sparc-nat.c (sparc_fetch_inferior_registers,
14217 sparc_store_inferior_registers): Likewise.
14218 * tilegx-linux-nat.c (fetch_inferior_registers,
14219 store_inferior_registers): Likewise.
14220 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
14221 vaxbsd_store_inferior_registers): Likewise.
14222 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
14223 store_xtregs): Likewise.
14224
c0f55cc6
AV
142252017-03-20 Artemiy Volkov <artemiyv@acm.org>
14226
14227 PR gdb/14441
14228 * NEWS: Mention support for rvalue references in GDB and python.
14229 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
14230 supports both lvalue and rvalue references.
14231
15c0a2a9
AV
142322017-03-20 Artemiy Volkov <artemiyv@acm.org>
14233
14234 PR gdb/14441
14235 * gdbtypes.c (rank_one_type): Implement overloading
14236 resolution rules regarding rvalue references.
14237
aa006118
AV
142382017-03-20 Artemiy Volkov <artemiyv@acm.org>
14239
14240 PR gdb/14441
14241 * aarch64-tdep.c (aarch64_type_align)
14242 (aarch64_extract_return_value, aarch64_store_return_value): Change
14243 lvalue reference type checks to general reference type checks.
14244 * amd64-tdep.c (amd64_classify): Likewise.
14245 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
14246 Likewise.
14247 * arm-tdep.c (arm_type_align, arm_extract_return_value)
14248 (arm_store_return_value): Likewise.
14249 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
14250 * c-typeprint.c (c_print_type): Likewise.
14251 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
14252 (cplus_number_of_children, cplus_describe_child): Likewise.
14253 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
14254 * completer.c (expression_completer): Likewise.
14255 * cp-support.c (make_symbol_overload_list_adl_namespace):
14256 Likewise.
14257 * darwin-nat-info.c (info_mach_region_command): Likewise.
14258 * dwarf2loc.c (entry_data_value_coerce_ref)
14259 (value_of_dwarf_reg_entry): Likewise.
14260 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
14261 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
14262 Likewise.
14263 * findvar.c (extract_typed_address, store_typed_address):
14264 Likewise.
14265 * gdbtypes.c (rank_one_type): Likewise.
14266 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
14267 * infcall.c (value_arg_coerce): Likewise.
14268 * language.c (pointer_type): Likewise.
14269 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
14270 Likewise.
14271 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
14272 * mn10300-tdep.c (mn10300_type_align): Likewise.
14273 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
14274 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
14275 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
14276 Likewise.
14277 * printcmd.c (print_formatted, x_command): Likewise.
14278 * python/py-type.c (typy_get_composite, typy_template_argument):
14279 Likewise.
14280 * python/py-value.c (valpy_referenced_value)
14281 (valpy_get_dynamic_type, value_has_field): Likewise.
14282 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
14283 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
14284 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
14285 * spu-tdep.c (spu_scalar_value_p): Likewise.
14286 * symtab.c (lookup_symbol_aux): Likewise.
14287 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
14288 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
14289 Likewise.
14290 * valops.c (value_cast_pointers, value_cast)
14291 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
14292 (value_struct_elt, value_struct_elt_bitpos)
14293 (value_find_oload_method_list, find_overload_match)
14294 (value_rtti_indirect_type): Likewise.
14295 * valprint.c (val_print_scalar_type_p, generic_val_print):
14296 Likewise.
14297 * value.c (value_actual_type, value_as_address, unpack_long)
14298 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
14299 (coerce_ref): Likewise.
14300 * varobj.c (varobj_get_value_type): Likewise.
14301
3fcf899d
AV
143022017-03-20 Artemiy Volkov <artemiyv@acm.org>
14303
14304 PR gdb/14441
14305 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
14306 table of constants.
14307 * python/lib/gdb/command/explore.py: Support exploring values
14308 of rvalue reference types.
14309 * python/lib/gdb/types.py: Implement get_basic_type() for
14310 rvalue reference types.
14311 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
14312 constant.
14313 * python/py-value.c (valpy_getitem): Add an rvalue reference
14314 check.
14315 (valpy_reference_value): Add new parameter "refcode".
14316 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
14317 New wrappers for valpy_reference_value().
14318 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14319 (gdbpy_invoke_xmethod): Likewise.
14320
4297a3f0
AV
143212017-03-20 Artemiy Volkov <artemiyv@acm.org>
14322
14323 PR gdb/14441
14324 * dwarf2read.c (process_die, read_type_die_1): Handle the
14325 DW_TAG_rvalue_reference_type DIE.
14326 (read_tag_reference_type): Add new parameter "refcode".
14327
e1cb3213
AV
143282017-03-20 Artemiy Volkov <artemiyv@acm.org>
14329
14330 PR gdb/14441
14331 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
14332 (c_type_print_modifier, c_type_print_varspec_suffix)
14333 (c_type_print_base): Support printing rvalue reference types.
14334 * c-valprint.c (c_val_print, c_value_print): Support printing
14335 rvalue reference values.
14336
e4347c89
AV
143372017-03-20 Artemiy Volkov <artemiyv@acm.org>
14338
14339 PR gdb/14441
14340 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
14341 typename.
14342 * cp-support.c (replace_typedefs): Handle
14343 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
14344 * python/py-type.c (typy_lookup_type): Likewise.
14345
53cc15f5
AV
143462017-03-20 Artemiy Volkov <artemiyv@acm.org>
14347
14348 PR gdb/14441
14349 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
14350 * parse.c (insert_type): Change assert statement.
14351 (follow_types): Handle rvalue reference types.
14352 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
14353 constant.
14354
a65cfae5
AV
143552017-03-20 Artemiy Volkov <artemiyv@acm.org>
14356
14357 PR gdb/14441
14358 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
14359 value_ref() interface.
14360 * c-valprint.c (c_value_print): Likewise.
14361 * infcall.c (value_arg_coerce): Likewise.
14362 * python/py-value.c (valpy_reference_value): Likewise.
14363 * valops.c (value_cast, value_reinterpret_cast)
14364 (value_dynamic_cast, typecmp): Likewise.
14365 (value_ref): Parameterize by kind of return value reference type.
14366 * value.h (value_ref): Add new parameter "refcode".
14367
3b224330
AV
143682017-03-20 Artemiy Volkov <artemiyv@acm.org>
14369
14370 PR gdb/14441
14371 * dwarf2read.c (read_tag_reference_type): Use
14372 lookup_lvalue_reference_type() instead of lookup_reference_type().
14373 * eval.c (evaluate_subexp_standard): Likewise.
14374 * f-exp.y: Likewise.
14375 * gdbtypes.c (make_reference_type, lookup_reference_type):
14376 Generalize with rvalue reference types.
14377 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
14378 convenience wrappers for lookup_reference_type().
14379 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
14380 reference kind parameter.
14381 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
14382 wrappers for lookup_reference_type().
14383 * guile/scm-type.c (gdbscm_type_reference): Use
14384 lookup_lvalue_reference_type() instead of lookup_reference_type().
14385 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
14386 * parse.c (follow_types): Likewise.
14387 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
14388 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
14389 Likewise.
14390 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14391 (gdbpy_invoke_xmethod): Likewise.
14392 * stabsread.c: Provide extra argument to make_reference_type()
14393 call.
14394 * valops.c (value_ref, value_rtti_indirect_type): Use
14395 lookup_lvalue_reference_type() instead of lookup_reference_type().
14396
f9aeb8d4
AV
143972017-03-20 Artemiy Volkov <artemiyv@acm.org>
14398
14399 PR gdb/14441
14400 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
14401 (TYPE_IS_REFERENCE): New macro.
14402 (struct type): Add rvalue_reference_type field.
14403 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
14404
51457a05
MAL
144052017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14406
14407 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
14408 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
14409 New function definition.
14410 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
14411 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
14412 New function declaration.
14413 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
14414 * mi/mi-interp.h: New file.
14415 * solib.c (info_sharedlibrary_command): Replace for loop with
14416 ALL_SO_LIBS macro
14417 * solib.h (update_solib_list): New function declaration.
14418 (so_list_head): Move macro.
14419 * solist.h (ALL_SO_LIBS): New macro.
14420
e696b3ad
MAL
144212017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14422
14423 * infcmd.c (post_create_inferior): Remove unused argument in
14424 call to solib_add.
14425 * remote.c (remote_start_remote): Likewise.
14426 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
14427 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
14428 (enable_break): Likewise.
14429 * solib.c (update_solib_list): Remove unused target argument
14430 and its documentation.
14431 (solib_add): Remove unused target argument. Remove unused
14432 argument in call to update_solib_list.
14433 (info_sharedlibrary_command): Remove unused argument in call
14434 to update_solib_list.
14435 (sharedlibrary_command): Remove unused argument in call to
14436 solib_add.
14437 (handle_solib_event): Likewise.
14438 (reload_shared_libraries): Likewise.
14439 * solib.h (solib_add): Remove unused target argument.
14440
dcb84eda
AA
144412017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
14442
14443 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
14444 (s390_displaced_step_fixup): Cover relative branches with the
14445 default fixup handling. This fixes lack of support for some
14446 relative branch instructions.
14447
d9cb6cdc
SM
144482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14449
14450 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
14451 ptid from regcache.
14452
1afaf9f4
SM
144532017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14454
14455 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
14456 i386_darwin_store_inferior_registers): Use ptid from regcache.
14457
aac12e24
SM
144582017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14459
14460 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
14461 i386bsd_store_inferior_registers): Use ptid from regcache.
14462
bbe1eef1
SM
144632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14464
14465 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
14466 hppaobsd_store_registers): Use ptid from regcache.
14467
10799020
SM
144682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14469
14470 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
14471 hppanbsd_store_registers): Use ptid from regcache.
14472
00204cf7
SM
144732017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14474
14475 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
14476 from regcache. Use get_ptrace_pid.
14477
11a33714
SM
144782017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14479
14480 * corelow.c (get_core_register_section): Use ptid from regcache,
14481 update doc.
14482
317cd492
SM
144832017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14484
14485 * bsd-uthread.c (bsd_uthread_fetch_registers,
14486 bsd_uthread_store_registers): Use ptid from regcache, set and
14487 restore inferior_ptid.
14488
9ac8a7c2
SM
144892017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14490
14491 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
14492 fetch_fp_regs, store_register, store_regs, store_fp_register,
14493 store_fp_regs): Use ptid from regcache.
14494
4ac4bb6a
SM
144952017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14496
14497 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
14498 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
14499 store_vfp_regs): Use ptid from regcache.
14500
9bcbdca8
PA
145012017-03-17 Pedro Alves <palves@redhat.com>
14502
14503 PR remote/21188
14504 * ser-base.c (ser_base_wait_for): Add comment.
14505 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
14506 version.
14507 * ser-unix.c (hardwire_raw): Remove reference to
14508 scb->current_timeout.
14509 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
14510 (hardwire_ops): Install ser_base_readchar instead of
14511 hardwire_readchar.
14512 * serial.h (struct serial) <current_timeout, timeout_remaining>:
14513 Remove fields.
14514
7503099f
JG
145152017-03-17 Jonah Graham <jonah@kichwacoders.com>
14516
14517 PR gdb/19637
14518 * python/lib/gdb/printer/bound_registers.py: Add support for
14519 Python 3.
14520
7942e96e
AA
145212017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
14522
14523 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
14524 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
14525 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
14526 byte_offset to subobj_byte_offset. Fix the handling of
14527 DWARF_VALUE_STACK on big-endian targets when coming via an
14528 implicit pointer.
14529 (dwarf2_evaluate_loc_desc): Adjust call to
14530 dwarf2_evaluate_loc_desc_full.
14531 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
14532 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
14533
ba14f379
YQ
145342017-03-16 Yao Qi <yao.qi@linaro.org>
14535
14536 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
14537 and REVSH instructions.
14538
b121eeb9
YQ
145392017-03-16 Yao Qi <yao.qi@linaro.org>
14540
14541 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
14542 (arm_record_test): Declare.
14543 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
14544 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
14545 align with the manual.
14546 (thumb_record_misc): Adjust the code order to align with the
14547 manual.
14548 (thumb2_record_decode_insn_handler): Fix instruction matching.
14549 (instruction_reader_thumb): New class.
14550 (arm_record_test): New function.
14551
728a7913
YQ
145522017-03-16 Yao Qi <yao.qi@linaro.org>
14553
14554 * arm-tdep.c (abstract_memory_reader): New class.
14555 (instruction_reader): New class.
14556 (extract_arm_insn): Add argument 'reader'. Callers updated.
14557 (decode_insn): Likewise.
14558
34b43320
DE
145592017-03-16 Doug Evans <dje@google.com>
14560
a7c0469f
DE
14561 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
14562 member. Change type of TYPE member to SCM. All uses updated.
14563 (lsscm_make_lazy_string_smob): Add assert.
14564 (lsscm_make_lazy_string): Flag bad length values.
14565 (lsscm_elt_type): New function.
14566 (gdbscm_lazy_string_to_value): Rewrite to use
14567 lsscm_safe_lazy_string_to_value.
14568 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
14569 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
14570 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
14571 in incoming type.
14572 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14573 * guile/scm-type.c (tyscm_scm_to_type): New function.
14574
145752017-03-15 Doug Evans <dje@google.com>
14576
34b43320
DE
14577 PR python/17728, python/18439, python/18779
14578 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
14579 member. Change type of TYPE member to PyObject *. All uses updated.
14580 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
14581 (gdbpy_create_lazy_string_object): Flag bad length values.
14582 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
14583 Handle typedefs in incoming type.
14584 (stpy_lazy_string_elt_type): New function.
14585 (gdbpy_extract_lazy_string): Call it.
14586 * python/py-value.c (valpy_lazy_string): Flag bad length values.
14587 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
14588 typedefs in incoming type.
14589
a3a5fecc
DE
145902017-03-16 Doug Evans <dje@google.com>
14591
14592 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14593 * guile/scm-type.c (tyscm_scm_to_type): New function.
14594
28f1c605
JW
145952017-03-16 Jiong Wang <jiong.wang@arm.com>
14596
14597 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
14598 "ULONGEST" for "skip".
14599
87c336f6
AA
146002017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14601
14602 PR gdb/21220
14603 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
14604 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
14605 (inf_ptrace_peek_poke): ...here. New function. Now also loop
14606 over ptrace peek/poke until end of buffer or error.
14607
cf81cf60
SM
146082017-03-14 Simon Marchi <simon.marchi@ericsson.com>
14609
14610 * parse.c (length_of_subexp): Make static.
14611 * parser-defs.h (length_of_subexp): Remove.
14612
a379284a
AA
146132017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14614
14615 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
14616 as well.
14617
8a6200ba
PA
146182017-03-14 Pedro Alves <palves@redhat.com>
14619
14620 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
14621 (main): Use std::unique_ptr. Remove calls to
14622 cp_demangled_name_parse_free.
14623
f79ec206
SM
146242017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14625
14626 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
14627 alphabsd_store_inferior_registers): Use regcache->ptid instead
14628 of inferior_ptid.
14629
edb5fb00
SM
146302017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14631
14632 * aix-thread.c (aix_thread_fetch_registers,
14633 aix_thread_store_registers): Use regcache->ptid instead of
14634 inferior_ptid.
14635
55119686
SM
146362017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14637
14638 * aarch64-linux-nat.c (fetch_gregs_from_thread,
14639 store_gregs_to_thread, fetch_fpregs_from_thread,
14640 store_fpregs_to_thread): Use regcache->ptid instead of
14641 inferior_ptid.
14642
6a06fbb7
SM
146432017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14644
14645 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
14646 amd64_linux_fetch_inferior_registers): Use regcache->ptid
14647 instead of inferior_ptid.
14648
c6386875
SM
146492017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14650
14651 * target.c (target_fetch_registers, target_store_registers): Add
14652 assert.
14653
ddaaf0fb
SM
146542017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14655
14656 * regcache.h (regcache_get_ptid): New function.
14657 * regcache.c (regcache_get_ptid): New function.
14658
b9da89d1 146592017-03-13 Mark Wielaard <mark@klomp.org>
14660
14661 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
14662
5f4d1085
KS
146632017-03-10 Keith Seitz <keiths@redhat.com>
14664
14665 PR c++/8218
14666 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
14667
c65d6b55
PA
146682017-03-08 Pedro Alves <palves@redhat.com>
14669
14670 PR gdb/18360
14671 * infrun.c (start_step_over, do_target_resume, resume)
14672 (restart_threads): Assert we're not resuming a thread that is
14673 meant to be stopped.
14674 (infrun_thread_stop_requested_callback): Delete.
14675 (infrun_thread_stop_requested): If the thread is internally
14676 stopped, queue a pending stop event and clear the thread's
14677 inline-frame state.
14678 (handle_stop_requested): New function.
14679 (handle_syscall_event, handle_inferior_event_1): Use
14680 handle_stop_requested.
14681 (handle_stop_requested): New function.
14682 (handle_signal_stop): Set the thread's stop_signal here instead of
14683 at caller.
14684 (finish_step_over): Clear step over info unconditionally.
14685 (handle_signal_stop): If the user had interrupted the event
14686 thread, consider the stop a random signal.
14687 (handle_signal_stop) <signal arrived while stepping over
14688 breakpoint>: Don't restart threads here.
14689 (stop_waiting): Don't clear step-over info here.
14690
15c22686
PA
146912017-03-08 Pedro Alves <palves@redhat.com>
14692
14693 PR 21206
14694 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
14695 goes to argument 2, not 1.
14696
6e5d74e7
PA
146972017-03-08 Pedro Alves <palves@redhat.com>
14698
14699 PR cli/21218
14700 * top.c (gdb_readline_wrapper): Avoid passing NULL to
14701 display_gdb_prompt.
14702 (command_line_input): Add comment.
14703
9753a2f6
PA
147042017-03-08 Pedro Alves <palves@redhat.com>
14705
14706 PR tui/21216
14707 * tui/tui-file.c (tui_file::write): New.
14708 * tui/tui-file.h (tui_file): Override "write".
14709 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
14710 factored out from ...
14711 (tui_puts): ... here.
14712 (tui_putc): Use them.
14713 (tui_write): New function.
14714 * tui/tui-io.h (tui_write): Declare.
14715
1672e0d9
SDJ
147162017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
14717
14718 * Makefile.in (SFILES): Replace "environ.c" with
14719 "common/environ.c".
14720 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
14721 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
14722 to...
14723 * common/environ.c: ... here.
14724 * environ.h: Moved to...
14725 * common/environ.h: ... here.
14726
f7bb4e3a
PB
147272017-03-07 Peter Bergner <bergner@vnet.ibm.com>
14728
14729 * gdbarch.sh (pstring_ptr): New static function.
14730 (gdbarch_disassembler_options): Use it.
14731 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
14732 not valid_disassembler_option->name.
14733 * gdbarch.c: Regenerate.
14734
e45ced6c
PB
147352017-03-07 Peter Bergner <bergner@vnet.ibm.com>
14736
14737 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
14738
5f6fd321
PA
147392017-03-07 Pedro Alves <palves@redhat.com>
14740
14741 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
14742
6dbb839a 147432017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
14744
14745 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
14746 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
14747 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 14748 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 14749
d274ecf4
SM
147502017-03-06 Simon Marchi <simon.marchi@ericsson.com>
14751
14752 * xtensa-linux-nat.c (fetch_gregs): Remove const.
14753
df97be55
SM
147542017-03-03 Simon Marchi <simon.marchi@ericsson.com>
14755
14756 * remote.c (remote_add_target_side_commands): Use range-based
14757 for loop.
14758
7d45f3df
YQ
147592017-03-03 Yao Qi <yao.qi@linaro.org>
14760
14761 PR gdb/21165
14762 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
14763 value is lazy.
14764 * valprint.c (common_val_print): Likewise.
14765
65b48a81
PB
147662017-02-28 Peter Bergner <bergner@vnet.ibm.com>
14767
14768 * NEWS: Mention new set/show disassembler-options commands.
14769 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
14770 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
14771 (prospective_options): New static variable.
14772 (gdb_disassembler::gdb_disassembler): Initialize
14773 m_di.disassembler_options.
14774 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
14775 (get_disassembler_options): New function.
14776 (set_disassembler_options): Likewise.
14777 (set_disassembler_options_sfunc): Likewise.
14778 (show_disassembler_options_sfunc): Likewise.
14779 (disassembler_options_completer): Likewise.
14780 (_initialize_disasm): Likewise.
14781 * disasm.h (get_disassembler_options): New prototype.
14782 (set_disassembler_options): Likewise.
14783 * gdbarch.sh (gdbarch_disassembler_options): New variable.
14784 (gdbarch_verify_disassembler_options): Likewise.
14785 * gdbarch.c: Regenerate.
14786 * gdbarch.h: Likewise.
14787 * arm-tdep.c (num_disassembly_options): Delete.
14788 (set_disassembly_style): Likewise.
14789 (arm_disassembler_options): New static variable.
14790 (set_disassembly_style_sfunc): Convert short style name into long
14791 option name. Call set_disassembler_options.
14792 (show_disassembly_style_sfunc): New function.
14793 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
14794 set_gdbarch_verify_disassembler_options.
14795 (_initialize_arm_tdep): Delete regnames variable and update callers.
14796 (arm_disassembler_options): Initialize.
14797 (disasm_options): New variable.
14798 (num_disassembly_options): Rename from this...
14799 (num_disassembly_styles): ...to this. Compute by scanning through
14800 disasm_options.
14801 (valid_disassembly_styles): Initialize using disasm_options.
14802 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
14803 set_arm_regname_option.
14804 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
14805 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
14806 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
14807 set_gdbarch_verify_disassembler_options.
14808 * s390-tdep.c (s390_disassembler_options): New static variable.
14809 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
14810 set_gdbarch_verify_disassembler_options.
14811
d538e36d
SM
148122017-02-27 Simon Marchi <simon.marchi@ericsson.com>
14813
14814 * remote.c (remote_add_target_side_condition): Remove "struct"
14815 keyword from range-based for loop.
14816
83621223
SM
148172017-02-27 Simon Marchi <simon.marchi@ericsson.com>
14818
14819 * remote.c (remote_add_target_side_condition): Use range-based
14820 for loop. Update comment.
14821
2123df0e
YQ
148222017-02-27 Yao Qi <yao.qi@linaro.org>
14823
14824 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
14825
8e368124
AH
148262017-02-26 Alan Hayward <alan.hayward@arm.com>
14827
14828 * regcache.c (regcache_raw_update): New function.
14829 (regcache_raw_read): Move code to regcache_raw_update.
14830 * regcache.h (regcache_raw_update): New declaration.
14831 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
14832
a49dd8dd
JK
148332017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
14834
14835 * dwarf2read.c (create_debug_type_hash_table): Initialize
14836 header.signature and header.type_offset_in_tu.
14837
34e4bae9
PA
148382017-02-24 Pedro Alves <palves@redhat.com>
14839
14840 * symtab.c (make_file_symbol_completion_list_1): Use
14841 add_symtab_completions.
14842
b0e4b369
AH
148432017-02-24 Alan Hayward <alan.hayward@arm.com>
14844
14845 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
14846
975c21ab
AH
148472017-02-24 Alan Hayward <alan.hayward@arm.com>
14848
14849 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
14850 I386_MAX_REGISTER_SIZE.
14851 (i386_pseudo_register_write): Likewise.
14852 (i386_process_record): Likewise.
14853 * i387-tdep.c (i387_supply_xsave): Likewise.
14854 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
14855 (store_register): Likewise.
14856
14bc53a8
PA
148572017-02-23 Pedro Alves <palves@redhat.com>
14858
14859 * ada-lang.c: Include "common/function-view.h".
14860 (ada_iterate_over_symbols): Adjust to use function_view as
14861 callback type.
14862 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
14863 (ada_make_symbol_completion_list): Use a lambda.
14864 (ada_exc_search_name_matches): Delete.
14865 (name_matches_regex): New.
14866 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
14867 * compile/compile-c-support.c: Include "common/function-view.h".
14868 (print_one_macro): Change prototype to accept a ui_file pointer.
14869 (write_macro_definitions): Use a lambda.
14870 * dwarf2read.c: Include "common/function-view.h".
14871 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
14872 (dw2_expand_symtabs_matching): Adjust to use function_view as
14873 callback type.
14874 * language.h: Include "common/function-view.h".
14875 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
14876 function_view as callback type.
14877 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
14878 * linespec.c: Include "common/function-view.h".
14879 (collect_info::add_symbol): New method.
14880 (struct symbol_and_data_callback, iterate_inline_only, struct
14881 symbol_matcher_data, iterate_name_matcher): Delete.
14882 (iterate_over_all_matching_symtabs): Adjust to use function_view
14883 as callback type and lambdas.
14884 (iterate_over_file_blocks): Adjust to use function_view as
14885 callback type.
14886 (decode_compound_collector): Now a class with private fields.
14887 (decode_compound_collector::release_symbols): New method.
14888 (collect_one_symbol): Rename to...
14889 (decode_compound_collector::operator()): ... this and adjust.
14890 (lookup_prefix_sym): decode_compound_collector construction bits
14891 move to decode_compound_collector ctor. Pass the
14892 decode_compound_collector object directly as callback. Remove
14893 cleanups and use decode_compound_collector::release_symbols
14894 instead.
14895 (symtab_collector): Now a class with private fields.
14896 (symtab_collector::release_symtabs): New method.
14897 (add_symtabs_to_list): Rename to...
14898 (symtab_collector::operator()): ... this and adjust.
14899 (collect_symtabs_from_filename): symtab_collector construction
14900 bits move to symtab_collector ctor. Pass the symtab_collector
14901 object directly as callback. Remove cleanups and use
14902 symtab_collector::release_symtabs instead.
14903 (collect_symbols): Delete.
14904 (add_matching_symbols_to_info): Use lambdas.
14905 * macrocmd.c (print_macro_callback): Delete.
14906 (info_macro_command): Use a lambda.
14907 (info_macros_command): Pass print_macro_definition as callable
14908 directly.
14909 (print_one_macro): Remove 'ignore' parameter.
14910 (macro_list_command): Adjust.
14911 * macrotab.c (macro_for_each_data::fn): Now a function_view.
14912 (macro_for_each_data::user_data): Delete field.
14913 (foreach_macro): Adjust to call the function_view.
14914 (macro_for_each): Adjust to use function_view as callback type.
14915 (foreach_macro_in_scope): Adjust to call the function_view.
14916 (macro_for_each_in_scope): Adjust to use function_view as callback
14917 type.
14918 * macrotab.h: Include "common/function-view.h".
14919 (macro_callback_fn): Declare a prototype instead of a pointer.
14920 Remove "user_data" parameter.
14921 (macro_for_each, macro_for_each_in_scope): Adjust to use
14922 function_view as callback type.
14923 * psymtab.c (partial_map_expand_apply)
14924 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
14925 Adjust to use function_view as callback type and to return bool.
14926 (psym_expand_symtabs_matching): Adjust to use function_view as
14927 callback types.
14928 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
14929 to use function_view as callback type and to return bool.
14930 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
14931 callback types.
14932 * symfile.c (expand_symtabs_matching): Adjust to use function_view
14933 as callback types.
14934 * symfile.h: Include "common/function-view.h".
14935 (expand_symtabs_file_matcher_ftype)
14936 (expand_symtabs_symbol_matcher_ftype)
14937 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
14938 return bool.
14939 (quick_symbol_functions::map_symtabs_matching_filename)
14940 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
14941 function_view as callback type and return bool.
14942 (expand_symtabs_matching): Adjust to use function_view as callback
14943 type.
14944 (maintenance_expand_name_matcher)
14945 (maintenance_expand_file_matcher): Delete.
14946 (maintenance_expand_symtabs): Use lambdas.
14947 * symtab.c (iterate_over_some_symtabs): Adjust to use
14948 function_view as callback types and return bool.
14949 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
14950 of a cleanup.
14951 (lookup_symtab_callback): Delete.
14952 (lookup_symtab): Use a lambda.
14953 (iterate_over_symbols): Adjust to use function_view as callback
14954 type.
14955 (struct search_symbols_data, search_symbols_file_matches)
14956 (search_symbols_name_matches): Delete.
14957 (search_symbols): Use a pair of lambdas.
14958 (struct add_name_data, add_macro_name, symbol_completion_matcher)
14959 (symtab_expansion_callback): Delete.
14960 (default_make_symbol_completion_list_break_on_1): Use lambdas.
14961 * symtab.h: Include "common/function-view.h".
14962 (iterate_over_some_symtabs): Adjust to use function_view as
14963 callback type and return bool.
14964 (iterate_over_symtabs): Adjust to use function_view as callback
14965 type.
14966 (symbol_found_callback_ftype): Remove 'data' parameter and return
14967 bool.
14968 (iterate_over_symbols): Adjust to use function_view as callback
14969 type.
14970
07e253aa
PA
149712017-02-23 Pedro Alves <palves@redhat.com>
14972
14973 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
14974 (%.o) <unittests/%.c>: New pattern.
14975 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
14976 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
14977 * common/function-view.h: New file.
14978 * unittests/function-view-selftests.c: New file.
14979 * configure: Regenerate.
14980
8eaf5320
SM
149812017-02-23 Simon Marchi <simon.marchi@ericsson.com>
14982
14983 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
14984 inferior_ptid.
14985 * go32-nat.c (go32_thread_alive): Likewise.
14986
38768751
YQ
149872017-02-23 Yao Qi <yao.qi@linaro.org>
14988
14989 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
14990 delete.
14991
0a8beaba
YQ
149922017-02-23 Yao Qi <yao.qi@linaro.org>
14993
14994 * varobj.c (varobj_clear_saved_item): Use delete instead of
14995 xfree.
14996 (update_dynamic_varobj_children): Likewise.
14997
58fdfd2c
JK
149982017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14999
15000 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
15001
1b90b139
SM
150022017-02-21 Simon Marchi <simon.marchi@ericsson.com>
15003
15004 * common/enum-flags.h (enum_flags::enum_flags): Initialize
15005 m_enum_value to 0 in default constructor.
15006
2039d74e
EBM
150072017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15008
15009 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
15010 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
15011 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
15012 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
15013 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
15014 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
15015 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
15016 IS_STORE_CONDITIONAL_INSN.
15017
7814882a
JK
150182017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15019
15020 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
15021
0ae60b63
JK
150222017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15023
15024 * NEWS (Changes since GDB 7.12): Add DWARF-5.
15025
0224619f
JK
150262017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15027
15028 * dwarf2read.c (skip_one_die, read_attribute_value)
15029 (dwarf2_const_value_attr, dump_die_shallow)
15030 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
15031 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
15032
0af92d60
JK
150332017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15034
15035 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
15036 (dwarf_parse_macro_header): Accept DWARF version 5.
15037 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
15038
216f72a1
JK
150392017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15040
15041 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
15042 DW_AT_GNU_*.
15043 * common/common-exceptions.h (enum errors): Likewise.
15044 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
15045 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
15046 (dwarf_expr_context::execute_stack_op): Likewise.
15047 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
15048 Likewise.
15049 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
15050 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15051 (show_entry_values_debug, call_site_to_target_addr)
15052 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
15053 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
15054 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
15055 (value_of_dwarf_block_entry, indirect_pieced_value)
15056 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
15057 (disassemble_dwarf_expression): Likewise.
15058 * dwarf2read.c (process_die, inherit_abstract_dies)
15059 (read_call_site_scope): Likewise.
15060 * gdbtypes.h (struct func_type, struct call_site_parameter)
15061 (struct call_site): Likewise.
15062 * stack.c (read_frame_arg): Likewise.
15063 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
15064
43988095
JK
150652017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15066
15067 * defs.h (read_unsigned_leb128): New declaration.
15068 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
15069 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
15070 (dwarf2_find_location_expression): Call also
15071 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
15072 * dwarf2loc.h (dwarf2_version): New declaration.
15073 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
15074 rnglists.
15075 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
15076 .debug_rnglists.
15077 (struct dwop_section_names): Add loclists_dwo.
15078 (dwop_section_names): Add .debug_loclists.dwo.
15079 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
15080 (struct dwarf2_per_cu_data): Add dwarf_version.
15081 (struct dwo_sections): Add loclists.
15082 (struct attr_abbrev): Add implicit_const.
15083 (read_indirect_line_string): New declaration.
15084 (read_unsigned_leb128): Delete declaration.
15085 (rcuh_kind): New definition.
15086 (read_and_check_comp_unit_head): Change parameter
15087 is_debug_types_section to section_kind.
15088 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
15089 (read_comp_unit_head): Change parameter abfd to section, add parameter
15090 section_kind. Handle DWARF-5.
15091 (error_check_comp_unit_head): Accept also DWARF version 5.
15092 (read_and_check_comp_unit_head): Change parameter
15093 is_debug_types_section to section_kind.
15094 (read_and_check_type_unit_head): Delete function.
15095 (read_abbrev_offset): Handle DWARF-5.
15096 (create_debug_type_hash_table): Add parameter section_kind. Process
15097 only DW_UT_type. Use signature and type_offset_in_tu from struct
15098 comp_unit_head.
15099 (create_debug_types_hash_table): Update create_debug_type_hash_table
15100 caller.
15101 (create_all_type_units): Call create_debug_type_hash_table.
15102 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
15103 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
15104 caller.
15105 (skip_one_die): Handle DW_FORM_implicit_const.
15106 (dwarf2_rnglists_process): New function.
15107 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
15108 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
15109 (read_attribute_value): Handle DW_FORM_implicit_const,
15110 DW_FORM_line_strp.
15111 (read_attribute): Handle DW_FORM_implicit_const.
15112 (read_indirect_string_at_offset_from): New function from
15113 read_indirect_string_at_offset.
15114 (read_indirect_string_at_offset): Call
15115 read_indirect_string_at_offset_from.
15116 (read_indirect_line_string_at_offset): New function.
15117 (read_indirect_string): New function comment.
15118 (read_indirect_line_string): New function.
15119 (read_unsigned_leb128): Make it global.
15120 (dwarf2_string_attr): Handle DWARF-5.
15121 (add_include_dir_stub, read_formatted_entries): New functions.
15122 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
15123 Handle DWARF-5.
15124 (per_cu_header_read_in): Update read_comp_unit_head caller.
15125 (dwarf2_version): New function.
15126 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
15127 rnglists.
15128 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
15129 fields.
15130
22d2f3ab
JK
151312017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15132
15133 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
15134
5f46c5a5
JK
151352017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15136
15137 * dwarf2read.c (dwarf2_ranges_process): New function from
15138 dwarf2_ranges_read.
15139 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
15140 dwarf2_ranges_process.
15141
78d4d2c5
JK
151422017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15143
15144 * dwarf2read.c (create_debug_type_hash_table): New function from
15145 create_debug_types_hash_table.
15146 (create_debug_types_hash_table): Call create_debug_type_hash_table.
15147 (create_all_type_units, open_and_init_dwo_file): Update
15148 create_debug_types_hash_table callers.
15149
1b076f25
SDJ
151502017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15151
15152 PR gdb/16188
15153 * fork-child.c (trace_start_error): Fix thinko. va_end should
15154 refer to 'ap', not 'args'.
15155
0db8980c
SDJ
151562017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15157 Pedro Alves <palves@redhat.com>
15158
15159 PR gdb/16188
15160 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
15161 calls succeeded.
15162 * fork-child.c (trace_start_error): New function.
15163 (trace_start_error_with_name): Likewise.
15164 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
15165 * inf-ptrace.c (inf_ptrace_me): Likewise.
15166 * inferior.h (trace_start_error): New prototype.
15167 (trace_start_error_with_name): Likewise.
15168
99e8a4f9
SDJ
151692017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
15170
15171 PR gdb/21164
15172 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
15173 NULL before using it.
15174 * symmisc.c (maintenance_print_symbols): Likewise.
15175 (maintenance_print_msymbols): Likewise.
15176
4e746bb6
TW
151772017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15178
15179 * NEWS: Add record Python bindings entry.
15180
151812017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15182
15183 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
15184 py-record-full.o.
15185 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
15186 * python/py-record-btrace.c, python/py-record-btrace.h,
15187 python/py-record-full.c, python/py-record-full.h: New file.
15188 * python/py-record.c: Add include for py-record-btrace.h and
15189 py-record-full.h.
15190 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
15191 recpy_instruction_history, recpy_function_call_history, recpy_begin,
15192 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
15193 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
15194 New definition.
15195 (gdbpy_initialize_btrace): New export.
15196 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
15197
151982017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15199
15200 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
15201 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
15202 * python/py-record.c: New file.
15203 * python/python-internal.h (gdbpy_start_recording,
15204 gdbpy_current_recording, gdpy_stop_recording,
15205 gdbpy_initialize_record): New export.
15206 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
15207 (python_GdbMethods): Add gdbpy_start_recording,
15208 gdbpy_current_recording and gdbpy_stop_recording.
15209
152102017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15211
15212 * record-btrace.c (record_btrace_record_method): New function.
15213 (init_record_btrace_ops): Initialize to_record_method.
15214 * record-full.c (record_full_record_method): New function.
15215 (init_record_full_ops, init_record_full_core_ops): Add
15216 record_full_record_method.
15217 * record.h (enum record_method): New enum.
15218 * target-debug.h (target_debug_print_enum_record_method: New define.
15219 * target-delegates.c: Regenerate.
15220 * target.c (target_record_method): New function.
15221 * target.h: Include record.h.
15222 (struct target_ops) <to_record_method>: New field.
15223 (target_record_method): New export.
15224
152252017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15226
15227 * record.h (record_start, record_stop): New export.
15228 * record.c (record_start, record_stop): New function.
15229
152302017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15231
15232 * btrace.c (btrace_fetch): Copy function call segments pointer
15233 into a vector.
15234 (btrace_clear): Clear the vector.
15235 (btrace_find_insn_by_number): Use binary search to find the correct
15236 function call segment.
15237 * btrace.h (brace_fun_p): New typedef.
15238 (struct btrace_thread_info) <functions>: New field.
15239
152402017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15241
15242 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
15243 * btrace.c (btrace_decode_error): ... here. New function.
15244 * btrace.h (btrace_decode_error): New export.
15245
152462017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15247
15248 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
15249 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
15250 btrace_find_insn_by_number): Remove special case for gaps.
15251 * btrace.h (btrace_insn_get_error): New export.
15252 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
15253 * record-btrace.c (btrace_insn_history): Print number for gaps.
15254 (record_btrace_info, record_btrace_goto): Handle gaps.
15255
3f77c769
TT
152562017-02-14 Tom Tromey <tom@tromey.com>
15257
15258 PR python/13598:
15259 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
15260 event.
15261 * python/py-evts.c (gdbpy_initialize_py_events): Add
15262 before_prompt registry.
15263 * python/py-events.h (events_object) <before_prompt>: New field.
15264
4c2c7ac6
MM
152652017-02-14 Markus Metzger <markus.t.metzger@intel.com>
15266
15267 * btrace.c (ftrace_new_switch): Preserve up link and flags.
15268
5cf30ebf
LM
152692017-02-13 Luis Machado <lgustavo@codesourcery.com>
15270
15271 * symfile (_initialize_symfile): Add usage text to the load command's
15272 help text.
15273
26a06916
SM
152742017-02-10 Simon Marchi <simon.marchi@ericsson.com>
15275
15276 * utils.c (defaulted_query): Don't query on secondary UIs.
15277
0b145e37
TT
152782017-02-10 Tom Tromey <tom@tromey.com>
15279
15280 * rust-lang.c (rust_get_disr_info): Remove unused variable.
15281
2d8365c4
TT
152822017-02-10 Tom Tromey <tom@tromey.com>
15283
15284 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
15285 "cleanup" local.
15286 * python/py-type.c (typy_legacy_template_argument): Remove
15287 unnecessary "cleanup" local.
15288
2bb8f231
TT
152892017-02-10 Tom Tromey <tom@tromey.com>
15290
15291 * python/python.c (do_start_initialization): New function, from
15292 _initialize_python.
15293 (_initialize_python): Call do_start_initialization.
15294 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
15295 goto.
15296
1bdfaf42
TT
152972017-02-10 Tom Tromey <tom@tromey.com>
15298
15299 * python/py-prettyprint.c (pretty_print_one_value): Use
15300 gdbpy_ref.
15301
88b6faea
TT
153022017-02-10 Tom Tromey <tom@tromey.com>
15303
15304 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
15305 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
15306 gdbpy_ref.
15307 * python/py-type.c (field_new): Use gdbpy_ref.
15308 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
15309 gdbpy_ref.
15310 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
15311 (py_free_pspace): Likewise.
15312 (pspace_to_pspace_object): Likewise.
15313 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
15314 (py_free_objfile): Likewise.
15315 (objfile_to_objfile_object): Likewise.
15316 * python/py-inferior.c (delete_thread_object): Use
15317 gdbpy_ref.
15318 (infpy_read_memory): Likewise.
15319 (py_free_inferior): Likewise.
15320 * python/py-evtregistry.c (create_eventregistry_object): Use
15321 gdbpy_ref.
15322 * python/py-event.c (create_event_object): Use gdbpy_ref.
15323
7780f186
TT
153242017-02-10 Tom Tromey <tom@tromey.com>
15325
15326 * python/py-ref.h (gdbpy_ref_policy): Now a template.
15327 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
15328 used.
15329 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
15330 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
15331 python/py-exitedevent.c, python/py-finishbreakpoint.c,
15332 python/py-framefilter.c, python/py-function.c,
15333 python/py-inferior.c, python/py-infevents.c,
15334 python/py-linetable.c, python/py-newobjfileevent.c,
15335 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
15336 python/py-signalevent.c, python/py-stopevent.c,
15337 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
15338 python/py-unwind.c, python/py-utils.c, python/py-value.c,
15339 python/py-varobj.c, python/py-xmethods.c, python/python.c,
15340 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
15341
d4b0bb18
TT
153422017-02-10 Tom Tromey <tom@tromey.com>
15343
15344 * ui-out.h (ui_out_emit_type): New class.
15345 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
15346 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
15347 and ui_out_emit_tuple.
15348 (enumerate_locals): Likewise.
15349 (py_mi_print_variables, py_print_locals, py_print_args): Use
15350 ui_out_emit_list.
15351 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
15352 ui_out_emit_list.
15353 * common/gdb_optional.h: New file.
15354
f67f945c
MG
153552017-02-10 Martin Galvan <martingalvan@sourceware.org>
15356
15357 * MAINTAINERS (Write After Approval): Update my e-mail address.
15358
18da0c51
MG
153592017-02-10 Martin Galvan <martingalvan@sourceware.org>
15360
15361 PR gdb/21122
15362 * breakpoint.c (_initialize_breakpoint): Update the help description
15363 of the 'commands' command to indicate that it takes a list argument.
15364
62c14536
SM
153652017-02-09 Simon Marchi <simon.marchi@ericsson.com>
15366
15367 * interps.c (current_interp_set_logging): Remove "return".
15368
ff6fa247
GB
153692017-02-09 Gary Benson <gbenson@redhat.com>
15370
15371 * symtab.c (add_symtab_completions): Prevent NULL pointer
15372 dereference.
15373
a474bd8e
PA
153742017-02-08 Pedro Alves <palves@redhat.com>
15375
15376 * interps.c (interp::interp): Remove reference to quiet_p.
15377 (interp_set): Make static. Remove dead "Switching to" output
15378 code.
15379 (interp_quiet_p, interp_set_quiet): Delete.
15380 (interpreter_exec_cmd): Don't set the interpreter quiet.
15381 * interps.h (interp_quiet_p): Make static.
15382 (class interp) <quiet_p>: Remove field
15383
3d7b173c
JG
153842017-02-08 Jerome Guitton <guitton@adacore.com>
15385
604c4576
JG
15386 * cli/cli-decode.c (find_command_name_length): Make it extern.
15387 * cli/cli-decode.h (find_command_name_length): Declare.
15388 * cli/cli-script.c (command_name_equals, line_first_arg):
15389 New functions.
15390 (process_next_line): Use cli-decode to parse command names.
15391 (build_command_line): Make args a constant pointer.
15392
153932017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 15394
3d7b173c
JG
15395 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
15396 Remove case-insensitive search.
15397
1291063d
JM
153982017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
15399
15400 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
15401 at the end of the line. Avoids an ARI warning.
15402
20b477a7
LM
154032017-02-06 Luis Machado <lgustavo@codesourcery.com>
15404
15405 * NEWS: Mention support for record/replay of Intel 64 rdrand and
15406 rdseed instructions.
15407 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
15408
3f7b46f2
IR
154092017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
15410
15411 PR tdep/20936
15412 Provide and use sparc32 and sparc64 target description XML files.
15413 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
15414 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
15415 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
15416 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
15417 * features/sparc/sparc32-solaris.xml: New file.
15418 * features/sparc/sparc64-solaris.xml: New file.
15419 * features/sparc/sparc32-solaris.c: Generated.
15420 * features/sparc/sparc64-solaris.c: Generated.
15421 * sparc-tdep.h: Account for differences in target descriptions.
15422 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
15423 (sparc32_register_type): Use target provided registers.
15424 (validate_tdesc_registers): New function.
15425 (sparc32_gdbarch_init): Use tdesc_has_registers.
15426 Set pseudoregister functions.
15427 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
15428 (sparc64_register_type): Use target provided registers.
15429 (sparc64_init_abi): Set pseudoregister functions.
15430
f0fd41c1
TT
154312017-02-03 Tom Tromey <tom@tromey.com>
15432
15433 PR rust/21097:
15434 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
15435 with a single member.
15436
d6f9b0fb
PA
154372017-02-03 Pedro Alves <palves@redhat.com>
15438
15439 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
15440 (cli_interp_base::~cli_interp_base): New.
15441 (cli_interp): New struct.
15442 (as_cli_interp): Cast the interp itself to cli_interp.
15443 (cli_interpreter_pre_command_loop): Rename to ...
15444 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
15445 parameter.
15446 (cli_interpreter_init): Rename to ...
15447 (cli_interp::init): ... this. Remove 'self' parameter. Use
15448 boolean. Make extern.
15449 (cli_interpreter_resume): Rename to ...
15450 (cli_interp::resume): ... this. Remove 'data' parameter. Make
15451 extern.
15452 (cli_interpreter_suspend): Rename to ...
15453 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
15454 extern.
15455 (cli_interpreter_exec): Rename to ...
15456 (cli_interp::exec): ... this. Remove 'data' parameter. Make
15457 extern.
15458 (cli_interpreter_supports_command_editing): Rename to ...
15459 (cli_interp_base::supports_command_editing): ... this. Remove
15460 'interp' parameter. Make extern.
15461 (cli_ui_out): Rename to ...
15462 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
15463 Make extern.
15464 (cli_set_logging): Rename to ...
15465 (cli_interp_base::set_logging): ... this. Remove 'interp'
15466 parameter. Make extern.
15467 (cli_interp_procs): Delete.
15468 (cli_interp_factory): Adjust to use "new".
15469 * cli/cli-interp.h: Include "interps.h".
15470 (struct cli_interp_base): New struct.
15471 * interps.c (struct interp): Delete. Fields moved to interps.h.
15472 (interp_new): Delete.
15473 (interp::interp, interp::~interp): New.
15474 (interp_set): Use bool, and return void. Assume the interpreter
15475 has suspend, init and resume methods, and that the all return
15476 void.
15477 (set_top_level_interpreter): interp_set returns void.
15478 (interp_ui_out): Adapt.
15479 (current_interp_set_logging): Adapt.
15480 (interp_data): Delete.
15481 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
15482 (interp_exec): Adapt.
15483 (top_level_interpreter_data): Delete.
15484 * interps.h (interp_init_ftype, interp_resume_ftype)
15485 (interp_suspend_ftype, interp_exec_ftype)
15486 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
15487 (class interp): New.
15488 (interp_new): Delete.
15489 (interp_set): Now returns void. Use bool.
15490 (interp_data, top_level_interpreter_data): Delete.
15491 * mi/mi-common.h: Include interps.h.
15492 (class mi_interp): Inherit from interp. Define a ctor. Declare
15493 init, resume, suspect, exec, interp_ui_out, set_logging and
15494 pre_command_loop methods.
15495 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
15496 (mi_interpreter_init): Rename to ...
15497 (mi_interp::init): ... this. Remove the 'interp' parameter, use
15498 bool, return void and make extern. Adjust.
15499 (mi_interpreter_resume): ... Rename to ...
15500 (mi_interp::resume): ... this. Remove the 'data' parameter,
15501 return void and make extern. Adjust.
15502 (mi_interpreter_suspend): ... Rename to ...
15503 (mi_interp::suspend): ... this. Remove the 'data' parameter,
15504 return void and make extern. Adjust.
15505 (mi_interpreter_exec): ... Rename to ...
15506 (mi_interp::exec): ... this. Remove the 'data' parameter and make
15507 extern. Adjust.
15508 (mi_interpreter_pre_command_loop): ... Rename to ...
15509 (mi_interp::pre_command_loop): ... this. Remove the 'self'
15510 parameter and make extern.
15511 (mi_on_normal_stop_1): Adjust.
15512 (mi_ui_out): Rename to ...
15513 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
15514 parameter and make extern. Adjust.
15515 (mi_set_logging): Rename to ...
15516 (mi_interp::set_logging): ... this. Remove the 'interp'
15517 parameter and make extern. Adjust.
15518 (mi_interp_procs): Delete.
15519 (mi_interp_factory): Adjust to use 'new'.
15520 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
15521 (mi_print_exception, mi_execute_command, mi_load_progress):
15522 Adjust.
15523 * tui/tui-interp.c (tui_interp): New class.
15524 (as_tui_interp): Return a tui_interp pointer.
15525 (tui_on_normal_stop, tui_on_signal_received)
15526 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
15527 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
15528 to use interp::interp_ui_out.
15529 (tui_init): Rename to ...
15530 (tui_interp::init): ... this. Remove the 'self' parameter, use
15531 bool, return void and make extern. Adjust.
15532 (tui_resume): Rename to ...
15533 (tui_interp::resume): ... this. Remove the 'data' parameter,
15534 return void and make extern. Adjust.
15535 (tui_suspend): Rename to ...
15536 (tui_interp::suspend): ... this. Remove the 'data' parameter,
15537 return void and make extern. Adjust.
15538 (tui_ui_out): Rename to ...
15539 (tui_interp::interp_ui_out): ... this. Remove the 'self'
15540 parameter, and make extern. Adjust.
15541 (tui_exec): Rename to ...
15542 (tui_interp::exec): ... this. Remove the 'data' parameter and
15543 make extern.
15544 (tui_interp_procs): Delete.
15545 (tui_interp_factory): Use "new".
15546
65c40c95
TT
155472017-02-02 Tom Tromey <tom@tromey.com>
15548
15549 * rust-exp.y (ends_raw_string, space_then_number)
15550 (rust_identifier_start_p): Return bool.
15551 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
15552 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
15553 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
15554 (rust_chartype_p): Return bool.
15555 (val_print_struct, rust_print_struct_def, rust_print_type):
15556 Update.
15557 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
15558 Return bool.
15559
b50f188d
TT
155602017-02-02 Tom Tromey <tom@tromey.com>
15561
15562 * rust-lang.c: Reindent.
15563
03c85b11
TT
155642017-02-02 Tom Tromey <tom@tromey.com>
15565
15566 * rust-lang.h (rust_crate_for_block): Update.
15567 * rust-lang.c (rust_crate_for_block): Return std::string.
15568 (rust_get_disr_info): Use std:;string, not
15569 gdb::unique_xmalloc_ptr.
15570 * rust-exp.y (crate_name): Update.
15571
9b6da501
PA
155722017-02-02 Pedro Alves <palves@redhat.com>
15573
15574 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
15575 field out of gdb_disassembler_test and make it static.
15576
ec4cb20b
PA
155772017-02-02 Pedro Alves <palves@redhat.com>
15578
15579 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
15580 mi1_interp and mi_interp fields.
15581
5be5dbf0
PA
155822017-02-02 Pedro Alves <palves@redhat.com>
15583
616268b6
PA
15584 * cli/cli-interp.c (struct saved_output_files, saved_output):
15585 Moved from cli/cli-logging.c.
15586 (cli_set_logging): New function.
15587 (cli_interp_procs): Install cli_set_logging.
15588 * cli/cli-interp.h (make_logging_output, cli_set_logging):
15589 Declare.
15590 * cli/cli-logging.c (struct saved_output_files, saved_output):
15591 Moved to cli/cli-interp.c.
15592 (pop_output_files): Don't save outputs here.
15593 (make_logging_output): New function.
15594 (handle_redirections): Don't build tee nor save previous outputs
15595 here.
15596 * interps.c (current_interp_set_logging): Change prototype.
15597 Assume there's always a set_logging_proc method installed.
15598 * interps.h (interp_set_logging_ftype): Change prototype.
15599 (current_interp_set_logging): Change prototype and adjust comment.
15600 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
15601 use make_logging_output.
15602 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
156032017-02-02 Pedro Alves <palves@redhat.com>
15604
5be5dbf0
PA
15605 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
15606 from ...
15607 (set_logging_overwrite): ... here.
15608 (logging_no_redirect_file): Delete.
15609 (set_logging_redirect): Don't handle redirection on the fly.
15610 Instead warn that "logging off" / "logging on" is necessary.
15611 (pop_output_files): Delete references to logging_no_redirect_file.
15612 (show_logging_command): Always speak in terms of what will happen
15613 once logging is reenabled.
15614
c99cc448
PA
156152017-02-02 Pedro Alves <palves@redhat.com>
15616
15617 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
15618
8b172ce7
PA
156192017-02-02 Pedro Alves <palves@redhat.com>
15620
15621 * disasm.c (gdb_pretty_print_insn): Rename to ...
15622 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
15623 Remove gdbarch parameter. Adapt to clear the object's buffers
15624 instead of allocating new buffers, and to print using the object's
15625 gdb_disassembler instead of calling gdb_print_insn.
15626 (dump_insns): Use gdb_pretty_print_disassembler.
15627 * disasm.h (gdb_pretty_print_insn): Delete declaration.
15628 (gdb_pretty_print_disassembler): New class.
15629 * record-btrace.c (btrace_insn_history): Use
15630 gdb_pretty_print_disassembler.
15631
d7e74731
PA
156322017-02-02 Pedro Alves <palves@redhat.com>
15633
15634 * ada-lang.c (type_as_string): Use string_file.
15635 * ada-valprint.c (ada_print_floating): Use string_file.
15636 * ada-varobj.c (ada_varobj_scalar_image)
15637 (ada_varobj_get_value_image): Use string_file.
15638 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
15639 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
15640 * breakpoint.c (update_inserted_breakpoint_locations)
15641 (insert_breakpoint_locations, reattach_breakpoints)
15642 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
15643 (print_it_watchpoint): Use string_file.
15644 (save_breakpoints): Use stdio_file.
15645 * c-exp.y (oper): Use string_file.
15646 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
15647 tee_file.
15648 (pop_output_files): Use delete.
15649 (handle_redirections): Use stdio_file and tee_file.
15650 * cli/cli-setshow.c (do_show_command): Use string_file.
15651 * compile/compile-c-support.c (c_compute_program): Use
15652 string_file.
15653 * compile/compile-c-symbols.c (generate_vla_size): Take a
15654 'string_file &' instead of a 'ui_file *'.
15655 (generate_c_for_for_one_variable): Take a 'string_file &' instead
15656 of a 'ui_file *'. Use string_file.
15657 (generate_c_for_variable_locations): Take a 'string_file &'
15658 instead of a 'ui_file *'.
15659 * compile/compile-internal.h (generate_c_for_for_one_variable):
15660 Take a 'string_file &' instead of a 'ui_file *'.
15661 * compile/compile-loc2c.c (push, pushf, unary, binary)
15662 (print_label, pushf_register_address, pushf_register)
15663 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
15664 'ui_file *'. Adjust.
15665 * compile/compile.c (compile_to_object): Use string_file.
15666 * compile/compile.h (compile_dwarf_expr_to_c)
15667 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
15668 'ui_file *'.
15669 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
15670 (replace_typedefs_qualified_name): Use string_file and
15671 obstack_copy0.
15672 * disasm.c (gdb_pretty_print_insn): Use string_file.
15673 (gdb_disassembly): Adjust reference the null_stream global.
15674 (do_ui_file_delete): Delete.
15675 (gdb_insn_length): Use null_stream.
15676 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
15677 * dwarf2loc.c (dwarf2_compile_property_to_c)
15678 (locexpr_generate_c_location, loclist_generate_c_location): Take a
15679 'string_file &' instead of a 'ui_file *'.
15680 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
15681 * dwarf2read.c (do_ui_file_peek_last): Delete.
15682 (dwarf2_compute_name): Use string_file.
15683 * event-top.c (gdb_setup_readline): Use stdio_file.
15684 * gdbarch.sh (verify_gdbarch): Use string_file.
15685 * gdbtypes.c (safe_parse_type): Use null_stream.
15686 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
15687 string_file.
15688 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
15689 'string_file *' instead of a 'ui_file *'.
15690 (gdbscm_arch_disassemble): Use string_file.
15691 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
15692 * guile/scm-ports.c (class ioscm_file_port): Now a class that
15693 inherits from ui_file.
15694 (ioscm_file_port_delete, ioscm_file_port_rewind)
15695 (ioscm_file_port_put): Delete.
15696 (ioscm_file_port_write): Rename to ...
15697 (ioscm_file_port::write): ... this. Remove file_port_magic
15698 checks.
15699 (ioscm_file_port_new): Delete.
15700 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
15701 ui_file_up.
15702 * guile/scm-type.c (tyscm_type_name): Use string_file.
15703 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
15704 Use string_file.
15705 * infcmd.c (print_return_value_1): Use string_file.
15706 * infrun.c (print_target_wait_results): Use string_file.
15707 * language.c (add_language): Use string_file.
15708 * location.c (explicit_to_string_internal): Use string_file.
15709 * main.c (captured_main_1): Use null_file.
15710 * maint.c (maintenance_print_architecture): Use stdio_file.
15711 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
15712 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
15713 event_channel>: Change type to mi_console_file pointer.
15714 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
15715 (mi_console_file_delete): Delete.
15716 (struct mi_console_file): Delete.
15717 (mi_console_file_magic): Delete.
15718 (mi_console_file_new): Delete.
15719 (mi_console_file::mi_console_file): New.
15720 (mi_console_file_delete): Delete.
15721 (mi_console_file_fputs): Delete.
15722 (mi_console_file::write): New.
15723 (mi_console_raw_packet): Delete.
15724 (mi_console_file::flush): New.
15725 (mi_console_file_flush): Delete.
15726 (mi_console_set_raw): Rename to ...
15727 (mi_console_file::set_raw): ... this.
15728 * mi/mi-console.h (class mi_console_file): New class.
15729 (mi_console_file_new, mi_console_set_raw): Delete.
15730 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
15731 (mi_set_logging): Use delete and tee_file. Adjust.
15732 * mi/mi-main.c (output_register): Use string_file.
15733 (mi_cmd_data_evaluate_expression): Use string_file.
15734 (mi_cmd_data_read_memory): Use string_file.
15735 (mi_cmd_execute, print_variable_or_computed): Use string_file.
15736 * mi/mi-out.c (mi_ui_out::main_stream): New.
15737 (mi_ui_out::rewind): Use main_stream and
15738 string_file.
15739 (mi_ui_out::put): Use main_stream and string_file.
15740 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
15741 Allocate a 'string_file' instead.
15742 (mi_out_new): Don't allocate a mem_fileopen stream here.
15743 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
15744 (mi_ui_out::main_stream): Declare method.
15745 * printcmd.c (eval_command): Use string_file.
15746 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
15747 * python/py-arch.c (archpy_disassemble): Use string_file.
15748 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
15749 * python/py-frame.c (frapy_str): Use string_file.
15750 * python/py-framefilter.c (py_print_type, py_print_single_arg):
15751 Use string_file.
15752 * python/py-type.c (typy_str): Use string_file.
15753 * python/py-unwind.c (unwind_infopy_str): Use string_file.
15754 * python/py-value.c (valpy_str): Use string_file.
15755 * record-btrace.c (btrace_insn_history): Use string_file.
15756 * regcache.c (regcache_print): Use stdio_file.
15757 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
15758 * remote.c (escape_buffer): Use string_file.
15759 * rust-lang.c (rust_get_disr_info): Use string_file.
15760 * serial.c (serial_open_ops_1): Use stdio_file.
15761 (do_serial_close): Use delete.
15762 * stack.c (print_frame_arg): Use string_file.
15763 (print_frame_args): Remove local mem_fileopen stream, not used.
15764 (print_frame): Use string_file.
15765 * symmisc.c (maintenance_print_symbols): Use stdio_file.
15766 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
15767 Take a 'string_file *' instead of a 'ui_file *'.
15768 * top.c (new_ui): Use stdio_file and stderr_file.
15769 (free_ui): Use delete.
15770 (execute_command_to_string): Use string_file.
15771 (quit_confirm): Use string_file.
15772 * tracepoint.c (collection_list::append_exp): Use string_file.
15773 * tui/tui-disasm.c (tui_disassemble): Use string_file.
15774 * tui/tui-file.c: Don't include "ui-file.h".
15775 (enum streamtype, struct tui_stream): Delete.
15776 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
15777 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
15778 (tui_file::tui_file): New method.
15779 (tui_file_fputs): Delete.
15780 (tui_file_get_strbuf): Delete.
15781 (tui_file::puts): New method.
15782 (tui_file_adjust_strbuf): Delete.
15783 (tui_file_flush): Delete.
15784 (tui_file::flush): New method.
15785 * tui/tui-file.h: Tweak intro comment.
15786 Include ui-file.h.
15787 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
15788 (tui_file_adjust_strbuf): Delete declarations.
15789 (class tui_file): New class.
15790 * tui/tui-io.c (tui_initialize_io): Use tui_file.
15791 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
15792 (tui_register_format): Use string_stream.
15793 * tui/tui-stack.c (tui_make_status_line): Use string_file.
15794 (tui_get_function_from_frame): Use string_file.
15795 * typeprint.c (type_to_string): Use string_file.
15796 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
15797 (null_stream): New global.
15798 (ui_file_delete): Delete.
15799 (ui_file::ui_file): New.
15800 (null_file_isatty): Delete.
15801 (ui_file::~ui_file): New.
15802 (null_file_rewind): Delete.
15803 (ui_file::printf): New.
15804 (null_file_put): Delete.
15805 (null_file_flush): Delete.
15806 (ui_file::putstr): New.
15807 (null_file_write): Delete.
15808 (ui_file::putstrn): New.
15809 (null_file_read): Delete.
15810 (ui_file::putc): New.
15811 (null_file_fputs): Delete.
15812 (null_file_write_async_safe): Delete.
15813 (ui_file::vprintf): New.
15814 (null_file_delete): Delete.
15815 (null_file::write): New.
15816 (null_file_fseek): Delete.
15817 (null_file::puts): New.
15818 (ui_file_data): Delete.
15819 (null_file::write_async_safe): New.
15820 (gdb_flush, ui_file_isatty): Adjust.
15821 (ui_file_put, ui_file_rewind): Delete.
15822 (ui_file_write): Adjust.
15823 (ui_file_write_for_put): Delete.
15824 (ui_file_write_async_safe, ui_file_read): Adjust.
15825 (ui_file_fseek): Delete.
15826 (fputs_unfiltered): Adjust.
15827 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
15828 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
15829 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
15830 (set_ui_file_data): Delete.
15831 (string_file::~string_file, string_file::write)
15832 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
15833 (do_ui_file_as_string, ui_file_as_string): Delete.
15834 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
15835 (struct mem_file): Delete.
15836 (mem_file_new): Delete.
15837 (stdio_file::stdio_file): New.
15838 (mem_file_delete): Delete.
15839 (stdio_file::stdio_file): New.
15840 (mem_fileopen): Delete.
15841 (stdio_file::~stdio_file): New.
15842 (mem_file_rewind): Delete.
15843 (stdio_file::set_stream): New.
15844 (mem_file_put): Delete.
15845 (stdio_file::open): New.
15846 (mem_file_write): Delete.
15847 (stdio_file_magic, struct stdio_file): Delete.
15848 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
15849 (stdio_file::flush): New.
15850 (stdio_file_read): Rename to ...
15851 (stdio_file::read): ... this. Adjust.
15852 (stdio_file_write): Rename to ...
15853 (stdio_file::write): ... this. Adjust.
15854 (stdio_file_write_async_safe): Rename to ...
15855 (stdio_file::write_async_safe) ... this. Adjust.
15856 (stdio_file_fputs): Rename to ...
15857 (stdio_file::puts) ... this. Adjust.
15858 (stdio_file_isatty): Delete.
15859 (stdio_file_fseek): Delete.
15860 (stdio_file::isatty): New.
15861 (stderr_file_write): Rename to ...
15862 (stderr_file::write) ... this. Adjust.
15863 (stderr_file_fputs): Rename to ...
15864 (stderr_file::puts) ... this. Adjust.
15865 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
15866 (stderr_file::stderr_file): New.
15867 (tee_file_magic): Delete.
15868 (struct tee_file): Delete.
15869 (tee_file::tee_file): New.
15870 (tee_file_new): Delete.
15871 (tee_file::~tee_file): New.
15872 (tee_file_delete): Delete.
15873 (tee_file_flush): Rename to ...
15874 (tee_file::flush): ... this. Adjust.
15875 (tee_file_write): Rename to ...
15876 (tee_file::write): ... this. Adjust.
15877 (tee_file::write_async_safe): New.
15878 (tee_file_fputs): Rename to ...
15879 (tee_file::puts): ... this. Adjust.
15880 (tee_file_isatty): Rename to ...
15881 (tee_file::isatty): ... this. Adjust.
15882 * ui-file.h (struct obstack, struct ui_file): Don't
15883 forward-declare.
15884 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
15885 (ui_file_write_ftype)
15886 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
15887 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
15888 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
15889 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
15890 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
15891 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
15892 (set_ui_file_fseek): Delete.
15893 (ui_file_data, ui_file_delete, ui_file_rewind)
15894 (struct ui_file): New.
15895 (ui_file_up): New.
15896 (class null_file): New.
15897 (null_stream): Declare.
15898 (ui_file_write_for_put, ui_file_put): Delete.
15899 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
15900 Delete.
15901 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
15902 (gdb_fopen, tee_file_new): Delete.
15903 (struct string_file): New.
15904 (struct stdio_file): New.
15905 (stdio_file_up): New.
15906 (struct stderr_file): New.
15907 (class tee_file): New.
15908 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
15909 of a 'ui_file *'. Adjust.
15910 * ui-out.h (class ui_out) <field_stream>: Likewise.
15911 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
15912 (null_stream): Delete.
15913 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
15914 Adjust.
15915 * utils.h (struct ui_file): Delete forward declaration..
15916 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
15917 (error_stream): Take a 'string_file &' instead of a
15918 'ui_file *'.
15919 * varobj.c (varobj_value_get_print_value): Use string_file.
15920 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
15921 * gdbarch.c: Regenerate.
15922
187808b0
PA
159232017-02-02 Pedro Alves <palves@redhat.com>
15924
15925 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
15926 (gdb_pretty_print_insn): ... this. Now a free function. Add back
15927 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
15928 Adjust to call gdb_print_insn instead of
15929 gdb_disassembler::print_insn.
15930 (dump_insns, do_mixed_source_and_assembly_deprecated)
15931 (do_mixed_source_and_assembly, do_assembly_only): Add back a
15932 'gdbarch' parameter. Remove gdb_disassembler parameter.
15933 (gdb_disassembly): Don't allocate a gdb_disassembler here.
15934 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
15935 declaration.
15936 (gdb_pretty_print_insn): Re-add declaration.
15937 * record-btrace.c (btrace_insn_history): Don't allocate a
15938 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
15939
7a8eb317
SM
159402017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
15941
15942 * disasm.h (gdb_disassembly): Remove file_string parameter.
15943 * disasm.c (gdb_disassembly): Likewise.
15944 * cli/cli-cmds.c (print_disassembly): Adapt.
15945 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
15946 * stack.c (do_gdb_disassembly): Likewise.
15947
7346ef59
AA
159482017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
15949
15950 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
15951 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
15952 targets. And if the implicit value is longer than needed, extract
15953 the first bytes instead of the "least significant" ones.
15954
cd4007e4
MM
159552017-02-01 Markus Metzger <markus.t.metzger@intel.com>
15956
15957 * btrace.c (btrace_enable): Do not call btrace_add_pc for
15958 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
15959 (btrace_fetch): Assert can_access_registers_ptid.
15960 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
15961 validate_registers_access.
15962
cf77c34e
MM
159632017-02-01 Markus Metzger <markus.t.metzger@intel.com>
15964
15965 * gdbthread.h (can_access_registers_ptid): New.
15966 * thread.c (can_access_registers_ptid): New.
15967
be85ce7d
PA
159682017-02-01 Pedro Alves <palves@redhat.com>
15969
15970 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
15971
29b0b251
PA
159722017-01-31 Pedro Alves <palves@redhat.com>
15973
15974 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
15975 Fix typos.
15976
289b5b24
PA
159772017-01-31 Pedro Alves <palves@redhat.com>
15978
15979 * stack.c (print_frame_args): Remove local mem_fileopen stream,
15980 not used.
15981
b47413b4
PA
159822017-01-31 Pedro Alves <palves@redhat.com>
15983
15984 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
15985
60adb36c
PA
159862017-01-31 Pedro Alves <palves@redhat.com>
15987
15988 * common/scoped_restore.h
15989 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
15990 change the value's parameter type to T2.
15991 (make_scoped_restore): Likewise.
15992
2735833d
WT
159932017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
15994 Richard Henderson <rth@redhat.com>
15995
15996 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
15997 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
15998 GS_BASE for older kernels.
15999 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
16000 GS_BASE for older kernels.
16001 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
16002 and GS_BASE to the offset table.
16003 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
16004 system register group.
16005 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
16006 for older kernels.
16007 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
16008 amd64 ABI.
16009 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
16010 AMD64_GSBASE_REGNUM.
16011 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
16012 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
16013 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
16014 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
16015 i386/64bit-segments.xml in those rules.
16016 * features/i386/64bit-segments.xml: New file.
16017 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
16018 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
16019 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
16020 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
16021 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
16022 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
16023 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
16024 * features/i386/amd64-avx-linux.c: Regenerated.
16025 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
16026 * features/i386/amd64-avx-mpx.c: Regenerated.
16027 * features/i386/amd64-avx512-linux.c: Regenerated.
16028 * features/i386/amd64-linux.c: Regenerated.
16029 * features/i386/amd64-mpx-linux.c: Regenerated.
16030 * features/i386/i386-avx-mpx-linux.c: Regenerated.
16031 * features/i386/i386-avx-mpx.c: Regenerated.
16032 * features/i386/x32-avx-linux.c: Regenerated.
16033 * features/i386/x32-avx512-linux.c: Regenerated.
16034 * regformats/i386/amd64-avx-linux.dat: Regenerated.
16035 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
16036 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
16037 * regformats/i386/amd64-linux.dat: Regenerated.
16038 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
16039 * regformats/i386/x32-avx-linux.dat: Regenerated.
16040 * regformats/i386/x32-avx512-linux.dat: Regenerated.
16041 * regformats/i386/x32-linux.dat: Regenerated.
16042
8884e97e
WT
160432017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16044
16045 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
16046 Set to AMD64_NUM_REGS.
16047
7005d26a
WT
160482017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16049
16050 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
16051 that checks validity of a register number.
16052
4bd2e1b2
KC
160532017-01-27 Kees Cook <keescook@google.com>
16054
16055 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
16056 fetch_fpregs if target has fpa registers.
16057 (arm_linux_store_inferior_registers): Call store_fpregs if target
16058 has fpa registers.
16059
7cf1de6c
AA
160602017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
16061
16062 * cris-tdep.c (cris_gdbarch_init): Remove check for
16063 info.byte_order and force it to BFD_ENDIAN_LITTLE.
16064
874a1c8c
AT
160652017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
16066
16067 * corelow.c (get_core_register_section): Check for regset
16068 existence before checking for REGSET_VARIABLE_SIZE.
16069
d8b49cf0
YQ
160702017-01-26 Yao Qi <yao.qi@linaro.org>
16071 Pedro Alves <palves@redhat.com>
16072
16073 PR gdb/20939
16074 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
16075 call memory_error, save memaddr instead.
16076 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
16077 negative, cal memory_error.
16078 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
16079
658ca58c
YQ
160802017-01-26 Yao Qi <yao.qi@linaro.org>
16081
16082 * disasm-selftests.c (memory_error_test): New function.
16083 (_initialize_disasm_selftests): Register memory_error_test.
16084
79843d45
YQ
160852017-01-26 Yao Qi <yao.qi@linaro.org>
16086
16087 * Makefile.in (SFILES): Add disasm-selftests.c and
16088 selftest-arch.c.
16089 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
16090 * disasm-selftests.c: New file.
16091 * selftest-arch.c: New file.
16092 * selftest-arch.h: New file.
16093
8cafda32
YQ
160942017-01-26 Yao Qi <yao.qi@linaro.org>
16095
16096 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
16097 to bfd_arch_mep. Don't return 0 if section is not
16098 found. Call print_insn_mep.
16099
e47ad6c0
YQ
161002017-01-26 Pedro Alves <palves@redhat.com>
16101 Yao Qi <yao.qi@linaro.org>
16102
16103 * arm-tdep.c: Include "disasm.h".
16104 (gdb_print_insn_arm): Update code to get gdbarch.
16105 * disasm.c (dis_asm_read_memory): Change it to
16106 gdb_disassembler::dis_asm_read_memory.
16107 (dis_asm_memory_error): Likewise.
16108 (dis_asm_print_address): Likewise.
16109 (gdb_pretty_print_insn): Change it to
16110 gdb_disassembler::pretty_print_insn.
16111 (dump_insns): Add one argument gdb_disassemlber. All
16112 callers updated.
16113 (do_mixed_source_and_assembly_deprecated): Likewise.
16114 (do_mixed_source_and_assembly): Likewise.
16115 (do_assembly_only): Likewise.
16116 (gdb_disassembler::gdb_disassembler): New.
16117 (gdb_disassembler::print_insn): New.
16118 * disasm.h (class gdb_disassembler): New.
16119 (gdb_pretty_print_insn): Remove declaration.
16120 (gdb_disassemble_info): Likewise.
16121 * guile/scm-disasm.c (class gdbscm_disassembler): New.
16122 (gdbscm_disasm_read_memory_worker): Update.
16123 (gdbscm_disasm_read_memory): Update.
16124 (gdbscm_disasm_memory_error): Remove.
16125 (gdbscm_disasm_print_address): Remove.
16126 (gdbscm_disassembler::gdbscm_disassembler): New.
16127 (gdbscm_print_insn_from_port): Update.
16128 * mips-tdep.c: Include disasm.h.
16129 (gdb_print_insn_mips): Update code to get gdbarch.
16130 * record-btrace.c (btrace_insn_history): Update.
16131 * spu-tdep.c: Include disasm.h.
16132 (struct spu_dis_asm_data): Remove.
16133 (struct spu_dis_asm_info): New.
16134 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
16135 SPU id.
16136 (gdb_print_insn_spu): Cast disassemble_info to
16137 spu_dis_asm_info.
16138
80d75874
YQ
161392017-01-26 Yao Qi <yao.qi@linaro.org>
16140
16141 * disasm.c (do_ui_file_delete): Delete.
16142 (gdb_insn_length): Move code creating stream to ...
16143 * utils.c (null_stream): ... here. New function.
16144 * utils.h (null_stream): Declare.
16145
60685cd0
SM
161462017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16147
16148 * python/py-inferior.c (find_thread_object): Return directly
16149 from the loop. Remove "found" variable.
16150
eb1cdb62
JB
161512017-01-21 Joel Brobecker <brobecker@adacore.com>
16152
16153 GDB 7.12.1 released.
16154
b1ce6568
SM
161552017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16156
16157 * python/py-function.c (fnpy_call): Reorder declarations to have
16158 the gdbpy_enter object declared first.
16159 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
16160
6f8b0407
SM
161612017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16162
fec93fb1 16163 PR python/21068
6f8b0407
SM
16164 * python/python-internal.h (PyMem_RawMalloc): Define for
16165 Python < 3.4.
16166 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
16167 PyMem_RawMalloc instead of PyMem_Malloc.
16168
78cbbba8
LM
161692017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
16170 Luis Machado <lgustavo@codesourcery.com>
16171
16172 * NEWS (New commands): Mention flash-erase.
16173 (New MI commands): Mention target-flash-erase.
16174 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
16175 command.
16176 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
16177 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
16178 * target.c (flash_erase_command): New function.
16179 (initialize_targets): Add new flash-erase command.
16180 * target.h (flash_erase_command): New declaration.
16181
2132fe85
JB
161822017-01-20 Joel Brobecker <brobecker@adacore.com>
16183
16184 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
16185 HAVE_SYS_PROCFS_H is defined.
16186
d1dff226
AH
161872017-01-18 Alan Hayward <alan.hayward@arm.com>
16188
16189 * remote.c (struct cached_reg): Change data into a pointer.
16190 * (stop_reply_dtr): Free data pointers before deleting vector.
16191 (process_stop_reply): Likewise.
16192 (remote_parse_stop_reply): Allocate space for data
16193
9890e433
AH
161942017-01-18 Alan Hayward <alan.hayward@arm.com>
16195
16196 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
16197 MAX_REGISTER_SIZE.
16198 (amd64_pseudo_register_read_value): Likewise.
16199 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
16200 (store_register_using_P): Likewise.
16201 * regcache.c (regcache_xfer_part): Likewise.
16202
7a36499a
IR
162032017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
16204
16205 Split real and pseudo registers.
16206 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
16207 (sparc32_pseudo_regnum): New enum.
16208 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
16209 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
16210 (SPARC32_CP0_REGISTERS): New macro.
16211 (sparc32_pseudo_register_name): New function.
16212 (sparc32_register_name): Use sparc32_pseudo_register_name.
16213 (sparc32_pseudo_register_type): New function.
16214 (sparc32_register_type): Use sparc32_pseudo_register_type.
16215 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
16216 pseudo register numbers.
16217 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
16218 (SPARC64_CP0_REGISTERS): New macro.
16219 (sparc64_pseudo_register_name): New function.
16220 (sparc64_register_name): Use sparc64_pseudo_register_name.
16221 (sparc64_pseudo_register_type): New function.
16222 (sparc64_register_type): Use sparc64_pseudo_register_type.
16223 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
16224 pseudo register numbers.
16225 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
16226 sparc64_store_arguments): Handle pseudo register numbers.
16227
6f8976bf
YQ
162282017-01-13 Yao Qi <yao.qi@linaro.org>
16229
16230 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
16231 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
16232 output.
16233 (getpkt_or_notif_sane_1): Likewise.
16234
e4241ace
YQ
162352017-01-13 Yao Qi <yao.qi@linaro.org>
16236
16237 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
16238 of CC. Pass "-x c++-header" instead of "-x c".
16239
3015c064
SM
162402017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16241
16242 * remote.c (remote_can_async_p): Update comment.
16243
fde1b17d
SM
162442017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16245
16246 * linux-nat.c (linux_nat_can_async_p): Update comment.
16247
ca1ca08b
SM
162482017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16249
16250 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
16251
4ad2da73
SM
162522017-01-11 Simon Marchi <simon.marchi@ericsson.com>
16253
16254 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
16255
c8b23b3f
TT
162562017-01-10 Tom Tromey <tom@tromey.com>
16257
16258 * python/py-type.c (typy_legacy_template_argument): Update.
16259 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
16260 ~demangle_parse_info): Declare new members.
16261 (cp_demangled_name_to_comp): Return unique_ptr.
16262 (cp_demangled_name_parse_free)
16263 (make_cleanup_cp_demangled_name_parse_free)
16264 (cp_new_demangle_parse_info): Remove.
16265 * cp-support.c (do_demangled_name_parse_free_cleanup)
16266 (make_cleanup_cp_demangled_name_parse_free): Remove.
16267 (inspect_type, cp_canonicalize_string_full)
16268 (cp_canonicalize_string): Update.
16269 (mangled_name_to_comp): Change return type.
16270 (cp_class_name_from_physname, method_name_from_physname)
16271 (cp_func_name, cp_remove_params): Update.
16272 * cp-name-parser.y (demangle_parse_info): New constructor, from
16273 cp_new_demangle_parse_info.
16274 (~demangle_parse_info): New destructor, from
16275 cp_demangled_name_parse_free.
16276 (cp_merge_demangle_parse_infos): Update.
16277 (cp_demangled_name_to_comp): Change return type.
16278
1ac32117
TT
162792017-01-10 Tom Tromey <tom@tromey.com>
16280
16281 * top.c (prevent_dont_repeat): Change return type.
16282 * python/python.c (execute_gdb_command): Use std::string.
16283 Update.
16284 * guile/guile.c (gdbscm_execute_gdb_command): Update.
16285 * command.h (prevent_dont_repeat): Change return type.
16286 * breakpoint.c (bpstat_do_actions_1): Update.
16287
0cf08227
TT
162882017-01-10 Tom Tromey <tom@tromey.com>
16289
16290 * value.h (scoped_value_mark::~scoped_value_mark): Call
16291 free_to_mark.
16292 (scoped_value_mark::free_to_mark): New method.
16293 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
16294 scoped_value_mark.
16295
eb115069
TT
162962017-01-10 Tom Tromey <tom@tromey.com>
16297
16298 * python/py-value.c (valpy_dereference, valpy_referenced_value)
16299 (valpy_reference_value, valpy_const_value, valpy_get_address)
16300 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
16301 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
16302 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
16303 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
16304 scoped_value_mark.
16305 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
16306 * value.h (scoped_value_mark): New class.
16307
906768f9
TT
163082017-01-10 Tom Tromey <tom@tromey.com>
16309
16310 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
16311 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
16312 * psymtab.c (discard_psymtabs_upto): Remove.
16313 (make_cleanup_discard_psymtabs): Remove.
16314 (struct psymtab_state): Remove.
16315
bef155c3
TT
163162017-01-10 Tom Tromey <tom@tromey.com>
16317
16318 * record-full.c (record_full_save_cleanups): Remove.
16319 (record_full_save): Use gdb::unlinker.
16320 * gcore.c (do_bfd_delete_cleanup): Remove.
16321 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
16322 cleanups.
16323 * dwarf2read.c (unlink_if_set): Remove.
16324 (write_psymtabs_to_index): Use gdb::unlinker.
16325 * common/gdb_unlinker.h: New file.
16326
192b62ce
TT
163272017-01-10 Tom Tromey <tom@tromey.com>
16328
16329 * windows-tdep.c (windows_xfer_shared_library): Update.
16330 * windows-nat.c (windows_make_so): Update.
16331 * utils.h (make_cleanup_bfd_unref): Remove.
16332 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
16333 * symfile.h (symfile_bfd_open)
16334 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
16335 * symfile.c (read_symbols, symbol_file_add)
16336 (separate_debug_file_exists): Update.
16337 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
16338 (generic_load, reread_symbols): Update.
16339 * symfile-mem.c (symbol_file_add_from_memory): Update.
16340 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
16341 (spu_symbol_file_add_from_memory): Update.
16342 * solist.h (struct target_so_ops) <bfd_open>: Return
16343 gdb_bfd_ref_ptr.
16344 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
16345 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
16346 gdb_bfd_ref_ptr.
16347 (solib_map_sections, reload_shared_libraries_1): Update.
16348 * solib-svr4.c (enable_break): Update.
16349 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
16350 * solib-frv.c (enable_break2): Update.
16351 * solib-dsbt.c (enable_break): Update.
16352 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
16353 gdb_bfd_ref_ptr.
16354 (darwin_solib_get_all_image_info_addr_at_init): Update.
16355 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
16356 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
16357 * record-full.c (record_full_save): Update.
16358 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
16359 * procfs.c (insert_dbx_link_bpt_in_file): Update.
16360 * minidebug.c (find_separate_debug_file_in_section): Return
16361 gdb_bfd_ref_ptr.
16362 * machoread.c (macho_add_oso_symfile): Change abfd to
16363 gdb_bfd_ref_ptr.
16364 (macho_symfile_read_all_oso): Update.
16365 (macho_check_dsym): Return gdb_bfd_ref_ptr.
16366 (macho_symfile_read): Update.
16367 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
16368 (jit_bfd_try_read_symtab): Update.
16369 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16370 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16371 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16372 gdb_bfd_ref_ptr.
16373 (gdb_bfd_ref_policy): New struct.
16374 (gdb_bfd_ref_ptr): New typedef.
16375 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16376 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16377 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16378 gdb_bfd_ref_ptr.
16379 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16380 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16381 (gcore_command): Update.
16382 * exec.c (exec_file_attach): Update.
16383 * elfread.c (elf_symfile_read): Update.
16384 * dwarf2read.c (dwarf2_get_dwz_file): Update.
16385 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
16386 (open_and_init_dwo_file): Update.
16387 (open_dwp_file): Return gdb_bfd_ref_ptr.
16388 (open_and_init_dwp_file): Update.
16389 * corelow.c (core_open): Update.
16390 * compile/compile-object-load.c (compile_object_load): Update.
16391 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
16392 * coffread.c (coff_symfile_read): Update.
16393 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
16394 gdb_bfd_ref_ptr. Rename.
16395 (dump_bfd_file, restore_command): Update.
16396 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16397 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16398 (find_separate_debug_file_by_buildid): Update.
16399
50315b21
TT
164002017-01-10 Tom Tromey <tom@tromey.com>
16401
16402 * common/gdb_ref_ptr.h: New file.
16403 * python/py-ref.h (struct gdbpy_ref_policy): New.
16404 (gdbpy_ref): Now a typedef.
16405
fc4007c9
TT
164062017-01-10 Tom Tromey <tom@tromey.com>
16407
16408 * utils.h (make_cleanup_htab_delete): Don't declare.
16409 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
16410 Remove.
16411 * linespec.c (decode_compound_collector): Add constructor,
16412 destructor.
16413 (lookup_prefix_sym): Remove cleanup.
16414 (symtab_collector): Add constructor, destructor.
16415 (collect_symtabs_from_filename): Remove cleanup.
16416 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
16417 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
16418 Use htab_up.
16419 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
16420 * dwarf2read.c (dw2_expand_symtabs_matching)
16421 (dw2_map_symbol_filenames, dwarf_decode_macros)
16422 (write_psymtabs_to_index): Use htab_up.
16423 * dwarf2loc.c (func_verify_no_selftailcall)
16424 (call_site_find_chain_1, func_verify_no_selftailcall)
16425 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
16426 std::vector, gdb::unique_xmalloc_ptr.
16427 (call_sitep): Remove typedef.
16428 (dwarf2_locexpr_baton_eval): Remove unused variable.
16429
8dbcee67
TT
164302017-01-10 Tom Tromey <tom@tromey.com>
16431
16432 * python/python-internal.h (make_cleanup_py_decref)
16433 (make_cleanup_py_xdecref): Don't declare.
16434 * python/py-utils.c (py_decref, make_cleanup_py_decref)
16435 (py_xdecref, make_cleanup_py_xdecref): Remove.
16436
13df46cc
TT
164372017-01-10 Tom Tromey <tom@tromey.com>
16438
16439 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
16440 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
16441
06fc9bf7
TT
164422017-01-10 Tom Tromey <tom@tromey.com>
16443
16444 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
16445
830a4934
TT
164462017-01-10 Tom Tromey <tom@tromey.com>
16447
16448 * python/py-utils.c (unicode_to_encoded_string)
16449 (python_string_to_target_string)
16450 (python_string_to_target_python_string)
16451 (python_string_to_host_string, gdbpy_obj_to_string)
16452 (get_addr_from_python): Use gdbpy_ref.
16453
4586d543
TT
164542017-01-10 Tom Tromey <tom@tromey.com>
16455
16456 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
16457 gdbpy_ref.
16458
59876f8f
TT
164592017-01-10 Tom Tromey <tom@tromey.com>
16460
16461 * python/python.c (eval_python_command, gdbpy_decode_line)
16462 (gdbpy_run_events, gdbpy_start_type_printers)
16463 (gdbpy_apply_type_printers): Use gdbpy_ref.
16464
97d83487
TT
164652017-01-10 Tom Tromey <tom@tromey.com>
16466
16467 * python/py-param.c (get_doc_string, compute_enum_values): Use
16468 gdbpy_ref.
16469
9205649a
TT
164702017-01-10 Tom Tromey <tom@tromey.com>
16471
16472 * python/py-inferior.c (find_thread_object, build_inferior_list):
16473 Use gdbpy_ref.
16474
74c49d45
TT
164752017-01-10 Tom Tromey <tom@tromey.com>
16476
16477 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16478
16361ffb
TT
164792017-01-10 Tom Tromey <tom@tromey.com>
16480
16481 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
16482 gdbpy_ref.
16483
905f2cca
TT
164842017-01-10 Tom Tromey <tom@tromey.com>
16485
16486 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
16487 extra incref.
16488 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
16489 Use gdbpy_ref.
16490
64081434
TT
164912017-01-10 Tom Tromey <tom@tromey.com>
16492
16493 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16494 gdbpy_ref.
16495
59e9e831
TT
164962017-01-10 Tom Tromey <tom@tromey.com>
16497
16498 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
16499 decref results of PyArg_ParseTupleAndKeywords.
16500
9de10f6d
TT
165012017-01-10 Tom Tromey <tom@tromey.com>
16502
16503 * python/python.c (python_run_simple_file): Use
16504 unique_xmalloc_ptr, gdbpy_ref.
16505
2bd5759d
TT
165062017-01-10 Tom Tromey <tom@tromey.com>
16507
16508 * python/py-prettyprint.c (print_stack_unless_memory_error)
16509 (print_string_repr, print_children): Use gdbpy_ref.
16510 (dummy_python_frame): New class.
16511 (dummy_python_frame::dummy_python_frame): Rename from
16512 push_dummy_python_frame.
16513 (py_restore_tstate): Remove.
16514
3b4e0e01
TT
165152017-01-10 Tom Tromey <tom@tromey.com>
16516
16517 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16518
17a22718
TT
165192017-01-10 Tom Tromey <tom@tromey.com>
16520
16521 * python/python.c (ensure_python_env, restore_python_env):
16522 Remove.
16523 * python/python-internal.h (ensure_python_env): Don't declare.
16524 * varobj.h (varobj_ensure_python_env): Don't declare.
16525 * varobj.c (varobj_ensure_python_env): Remove.
16526
68cdc557
TT
165272017-01-10 Tom Tromey <tom@tromey.com>
16528
16529 * varobj.c (varobj_value_get_print_value): Use
16530 gdbpy_enter_varobj.
16531
1eba6383
TT
165322017-01-10 Tom Tromey <tom@tromey.com>
16533
16534 * python/py-prettyprint.c (print_string_repr, print_children):
16535 Update.
16536 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
16537 of "encoding".
16538 * varobj.c (varobj_value_get_print_value): Update.
16539 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
16540
bde7b3e3
TT
165412017-01-10 Tom Tromey <tom@tromey.com>
16542
16543 * varobj.c (varobj_get_display_hint)
16544 (dynamic_varobj_has_child_method, install_new_value_visualizer)
16545 (varobj_set_visualizer, free_variable): Use
16546 gdbpy_enter_varobj.
16547
a7785f8c
TT
165482017-01-10 Tom Tromey <tom@tromey.com>
16549
16550 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
16551 (do_finish_initialization): New function. Use gdbpy_ref.
16552 (gdbpy_finish_initialization): Use gdbpy_enter. Call
16553 do_finish_initialization.
16554
2865bfce
TT
165552017-01-10 Tom Tromey <tom@tromey.com>
16556
16557 * python/py-param.c (get_set_value, get_show_value): Use
16558 gdbpy_enter, gdbpy_ref.
16559
0e9dcc75
TT
165602017-01-10 Tom Tromey <tom@tromey.com>
16561
16562 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
16563
12a5cedd
TT
165642017-01-10 Tom Tromey <tom@tromey.com>
16565
16566 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
16567
788f2586
TT
165682017-01-10 Tom Tromey <tom@tromey.com>
16569
16570 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
16571 Use gdbpy_enter_varobj.
16572
6cd67bea
TT
165732017-01-10 Tom Tromey <tom@tromey.com>
16574
16575 * varobj.c (gdbpy_enter_varobj): New constructor.
16576 * python/python-internal.h (gdbpy_enter_varobj): New class.
16577 * python/py-varobj.c (py_varobj_get_iterator): Use
16578 gdbpy_enter_varobj.
16579
14b122bf
TT
165802017-01-10 Tom Tromey <tom@tromey.com>
16581
16582 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
16583 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16584 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
16585 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
16586 unique_xmalloc_ptr.
16587 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
16588
bf1ca3b9
TT
165892017-01-10 Tom Tromey <tom@tromey.com>
16590
16591 * python/py-xmethods.c (invoke_match_method): Use
16592 gdbpy_ref.
16593
572a5524
TT
165942017-01-10 Tom Tromey <tom@tromey.com>
16595
16596 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
16597 gdbpy_enter, gdbpy_ref.
16598
396a78b6
TT
165992017-01-10 Tom Tromey <tom@tromey.com>
16600
16601 * python/python.c (python_interactive_command): Use gdbpy_enter.
16602
a88b13c7
TT
166032017-01-10 Tom Tromey <tom@tromey.com>
16604
16605 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
16606 gdbpy_ref.
16607
e9f0c363
TT
166082017-01-10 Tom Tromey <tom@tromey.com>
16609
16610 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
16611 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16612
6349f452
TT
166132017-01-10 Tom Tromey <tom@tromey.com>
16614
16615 * utils.h (htab_deleter): New struct.
16616 (htab_up): New typedef.
16617 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
16618 gdbpy_enter, gdbpy_ref, htab_up.
16619
c0171de6
TT
166202017-01-10 Tom Tromey <tom@tromey.com>
16621
16622 * python/py-unwind.c (pending_frame_invalidate): Remove.
16623 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
16624
f18e226f
TT
166252017-01-10 Tom Tromey <tom@tromey.com>
16626
16627 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
16628 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
16629
c57af3f1
TT
166302017-01-10 Tom Tromey <tom@tromey.com>
16631
16632 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
16633
60e600ec
TT
166342017-01-10 Tom Tromey <tom@tromey.com>
16635
16636 * python/python.c (gdbpy_eval_from_control_command)
16637 (gdbpy_source_script, gdbpy_run_events)
16638 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
16639 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
16640 gdbpy_enter.
16641
bf7da5b0
TT
166422017-01-10 Tom Tromey <tom@tromey.com>
16643
16644 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
16645
2d38bced
TT
166462017-01-10 Tom Tromey <tom@tromey.com>
16647
16648 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
16649
07bc7329
TT
166502017-01-10 Tom Tromey <tom@tromey.com>
16651
16652 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
16653 (python_on_inferior_call_pre, python_on_inferior_call_post)
16654 (python_on_memory_change, python_on_register_change)
16655 (python_inferior_exit, python_new_objfile, add_thread_object)
16656 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
16657
6e7c365e
TT
166582017-01-10 Tom Tromey <tom@tromey.com>
16659
16660 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
16661 (bpfinishpy_handle_exit): Use gdbpy_enter.
16662
6ba0cd40
TT
166632017-01-10 Tom Tromey <tom@tromey.com>
16664
16665 * python/py-cmd.c (cmdpy_destroyer)
16666 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
16667 gdbpy_enter.
16668
de2dc875
TT
166692017-01-10 Tom Tromey <tom@tromey.com>
16670
16671 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16672 gdbpy_enter.
16673 (gdbpy_breakpoint_has_cond): Likewise.
16674
4ecee2c4
TT
166752017-01-10 Tom Tromey <tom@tromey.com>
16676
16677 * python/python.c (gdbpy_enter): New constructor.
16678 (~gdbpy_enter): New destructor.
16679 (restore_python_env, ensure_python_env): Rewrite.
16680 * python/python-internal.h (gdbpy_enter): New class.
16681
37fce74f
TT
166822017-01-10 Tom Tromey <tom@tromey.com>
16683
16684 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
16685
53a0cca3
TT
166862017-01-10 Tom Tromey <tom@tromey.com>
16687
16688 * python/py-value.c (value_has_field, get_field_flag)
16689 (get_field_type, valpy_getitem, convert_value_from_python): Use
16690 gdbpy_ref.
16691
ff3724f5
TT
166922017-01-10 Tom Tromey <tom@tromey.com>
16693
16694 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
16695 gdbpy_ref.
16696
0700aea5
TT
166972017-01-10 Tom Tromey <tom@tromey.com>
16698
16699 * python/py-prettyprint.c (search_pp_list)
16700 (find_pretty_printer_from_objfiles)
16701 (find_pretty_printer_from_progspace)
16702 (find_pretty_printer_from_gdb, find_pretty_printer)
16703 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
16704 gdbpy_ref.
16705
1bb44c9f
TT
167062017-01-10 Tom Tromey <tom@tromey.com>
16707
16708 * python/py-param.c (call_doc_function): Use gdbpy_ref.
16709
87ce03fd
TT
167102017-01-10 Tom Tromey <tom@tromey.com>
16711
16712 * python/py-linetable.c (build_line_table_tuple_from_pcs)
16713 (ltpy_get_all_source_lines): Use gdbpy_ref.
16714
ee0a3fb8
TT
167152017-01-10 Tom Tromey <tom@tromey.com>
16716
16717 * python/py-framefilter.c (extract_sym, extract_value)
16718 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
16719 gdbpy_ref.
16720
bf2a52fa
TT
167212017-01-10 Tom Tromey <tom@tromey.com>
16722
16723 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
16724
f59fe7f8
TT
167252017-01-10 Tom Tromey <tom@tromey.com>
16726
16727 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
16728
80bd970a
TT
167292017-01-10 Tom Tromey <tom@tromey.com>
16730
16731 * python/py-function.c (convert_values_to_python, fnpy_init): Use
16732 gdbpy_ref.
16733
d1b3de2e
TT
167342017-01-10 Tom Tromey <tom@tromey.com>
16735
16736 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
16737
3bb43384
TT
167382017-01-10 Tom Tromey <tom@tromey.com>
16739
16740 * python/py-type.c (convert_field, make_fielditem, typy_fields)
16741 (typy_range): Use gdbpy_ref.
16742
abf5651e
TT
167432017-01-10 Tom Tromey <tom@tromey.com>
16744
16745 * python/py-threadevent.c (create_thread_event_object): Use
16746 gdbpy_ref.
16747 * python/py-stopevent.c (create_stop_event_object): Simplify.
16748 (emit_stop_event): Use gdbpy_ref.
16749 * python/py-signalevent.c (create_signal_event_object): Use
16750 gdbpy_ref.
16751 * python/py-newobjfileevent.c (create_new_objfile_event_object)
16752 (emit_new_objfile_event, create_clear_objfiles_event_object)
16753 (emit_clear_objfiles_event): Use gdbpy_ref.
16754 * python/py-infevents.c (create_inferior_call_event_object)
16755 (create_register_changed_event_object)
16756 (create_memory_changed_event_object, emit_inferior_call_event)
16757 (emit_memory_changed_event, emit_register_changed_event): Use
16758 gdbpy_ref.
16759 * python/py-exitedevent.c (create_exited_event_object)
16760 (emit_exited_event): Use gdbpy_ref.
16761 * python/py-event.h (evpy_emit_event): Remove
16762 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
16763 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
16764 * python/py-continueevent.c (emit_continue_event): Use
16765 gdbpy_ref.
16766 * python/py-breakpoint.c (gdbpy_breakpoint_created)
16767 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
16768 gdbpy_ref.
16769 * python/py-bpevent.c (create_breakpoint_event_object): Use
16770 gdbpy_ref.
16771
a68ff33e
TT
167722017-01-10 Tom Tromey <tom@tromey.com>
16773
16774 * python/py-ref.h: New file.
16775
7becfd03
SM
167762017-01-10 Simon Marchi <simon.marchi@ericsson.com>
16777
16778 * cli-out.c (cli_ui_out::do_redirect): Change return type to
16779 void.
16780 * cli-out.h (cli_ui_out::do_redirect): Likewise.
16781 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
16782 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
16783 * ui-out.c (ui_out::redirect): Likewise.
16784 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
16785 * cli/cli-logging.c (set_logging_redirect): Update call site of
16786 ui_out::redirect.
16787 (handle_redirections): Likewise.
16788 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
16789 * top.c (execute_command_to_string): Likewise.
16790 * utils.c (do_ui_out_redirect_pop): Likewise.
16791
df294654
SM
167922017-01-10 Simon Marchi <simon.marchi@ericsson.com>
16793
16794 * stack.c (_initialize_stack): Update "frame" command help message.
16795
f5e6296e
IB
167962017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
16797
16798 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
16799
0e2d6fa6
YQ
168002017-01-06 Yao Qi <yao.qi@linaro.org>
16801
16802 * x86-linux-nat.h: Include gdb_proc_service.h.
16803
44d6d3f9
YQ
168042017-01-06 Yao Qi <yao.qi@linaro.org>
16805
16806 * ser-base.h: Include serial.h.
16807
656731fe
YQ
168082017-01-06 Yao Qi <yao.qi@linaro.org>
16809
16810 * ppc-linux-tdep.h: Include ppc-tdep.h.
16811
1ca8f924
YQ
168122017-01-06 Yao Qi <yao.qi@linaro.org>
16813
16814 * nat/amd64-linux-siginfo.h: Include signal.h.
16815
bc3008c4
YQ
168162017-01-06 Yao Qi <yao.qi@linaro.org>
16817
16818 * nat/aarch64-linux-hw-point.h: Include break-common.h.
16819
66c80d03
YQ
168202017-01-06 Yao Qi <yao.qi@linaro.org>
16821
16822 * mi/mi-parse.h: Include mi-cmds.h.
16823
051d2dda
YQ
168242017-01-06 Yao Qi <yao.qi@linaro.org>
16825
16826 * inf-loop.c: Don't include "target.h".
16827 * inf-loop.h: Include it here.
16828
8018d34f
YQ
168292017-01-06 Yao Qi <yao.qi@linaro.org>
16830
16831 * dfp.h: Include "dboulest.h" and "expression.h".
16832
c0b8369c
YQ
168332017-01-06 Yao Qi <yao.qi@linaro.org>
16834
16835 * ax-gdb.h: Include "ax.h".
16836
ad5cba2a
YQ
168372017-01-06 Yao Qi <yao.qi@linaro.org>
16838
16839 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
16840 with nat/gdb_ptrace.h.
16841
1c33cd7f
YQ
168422017-01-05 Yao Qi <yao.qi@linaro.org>
16843
16844 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
16845 new line.
16846 (mips64_fbsd_sigframe_init): Likewise.
16847
c988ac1d
JB
168482017-01-04 John Baldwin <jhb@FreeBSD.org>
16849
16850 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
16851 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
16852
b268007c
JB
168532017-01-04 John Baldwin <jhb@FreeBSD.org>
16854
16855 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
16856 * NEWS: Mention new FreeBSD/mips native configuration.
16857 * config/mips/fbsd.mh: New file.
16858 * configure.host: Add mips*-*-freebsd*.
16859 * mips-fbsd-nat.c: New file.
16860
387360da
JB
168612017-01-04 John Baldwin <jhb@FreeBSD.org>
16862
16863 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
16864 (ALLDEPFILES): Add mips-fbsd-tdep.c.
16865 * NEWS: Mention new FreeBSD/mips target.
16866 * configure.tgt: Add mips*-*-freebsd*.
16867 * mips-fbsd-tdep.c: New file.
16868 * mips-fbsd-tdep.h: New file.
16869
2aaaf250
YQ
168702017-01-04 Yao Qi <yao.qi@linaro.org>
16871
16872 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
16873 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
16874
61baf725
JB
168752017-01-01 Joel Brobecker <brobecker@adacore.com>
16876
6dbb839a 16877 Update copyright year range in all GDB files.
61baf725 16878
c113e7ff 168792017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 16880
c113e7ff 16881 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 16882
c113e7ff 16883For older changes see ChangeLog-2016.
c906108c
SS
16884\f
16885Local Variables:
16886mode: change-log
16887left-margin: 8
16888fill-column: 74
16889version-control: never
57da7796 16890coding: utf-8
c906108c 16891End:
This page took 2.767157 seconds and 4 git commands to generate.