Use ui_file_as_string throughout more
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2f408ecb
PA
12016-11-08 Pedro Alves <palves@redhat.com>
2
3 * ada-lang.c (ada_name_for_lookup, type_as_string): Use and return
4 std::string.
5 (type_as_string_and_cleanup): Delete.
6 (ada_lookup_struct_elt_type): Use type_as_string.
7 * ada-lang.h (ada_name_for_lookup): Now returns std::string.
8 * ada-varobj.c (ada_varobj_scalar_image): Return a std::string.
9 (ada_varobj_describe_child): Make 'child_name' and
10 'child_path_expr' parameters std::string pointers.
11 (ada_varobj_describe_struct_child, ada_varobj_describe_ptr_child):
12 Likewise, and use string_printf.
13 (ada_varobj_describe_simple_array_child)
14 (ada_varobj_describe_child): Likewise.
15 (ada_varobj_get_name_of_child, ada_varobj_get_path_expr_of_child)
16 (ada_varobj_get_value_image)
17 (ada_varobj_get_value_of_array_variable)
18 (ada_varobj_get_value_of_variable, ada_name_of_variable)
19 (ada_name_of_child, ada_path_expr_of_child)
20 (ada_value_of_variable): Now returns std::string. Use
21 string_printf.
22 (ada_value_of_child): Adjust.
23 * break-catch-throw.c (check_status_exception_catchpoint): Adjust
24 to use std::string.
25 * breakpoint.c (watch_command_1): Adjust to use std::string.
26 * c-lang.c (c_get_string): Adjust to use std::string.
27 * c-typeprint.c (print_name_maybe_canonical): Use std::string.
28 * c-varobj.c (varobj_is_anonymous_child): Use ==/!= std::string
29 operators.
30 (c_name_of_variable): Now returns a std::string.
31 (c_describe_child): The 'cname' and 'cfull_expression' output
32 parameters are now std::string pointers. Adjust.
33 (c_name_of_child, c_path_expr_of_child, c_value_of_variable)
34 (cplus_number_of_children): Adjust to use std::string and
35 string_printf.
36 (cplus_name_of_variable): Now returns a std::string.
37 (cplus_describe_child): The 'cname' and 'cfull_expression' output
38 parameters are now std::string pointers. Adjust.
39 (cplus_name_of_child, cplus_path_expr_of_child)
40 (cplus_value_of_variable): Now returns a std::string.
41 * cp-abi.c (cplus_typename_from_type_info): Return std::string.
42 * cp-abi.h (cplus_typename_from_type_info): Return std::string.
43 (struct cp_abi_ops) <get_typename_from_type_info>: Return
44 std::string.
45 * cp-support.c (inspect_type): Use std::string.
46 (cp_canonicalize_string_full, cp_canonicalize_string_no_typedefs)
47 (cp_canonicalize_string): Return std::string and adjust.
48 * cp-support.h (cp_canonicalize_string)
49 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string_full):
50 Return std::string.
51 * dbxread.c (read_dbx_symtab): Use std::string.
52 * dwarf2read.c (dwarf2_canonicalize_name): Adjust to use std::string.
53 * gdbcmd.h (lookup_struct_elt_type): Adjust to use std::string.
54 * gnu-v3-abi.c (gnuv3_get_typeid): Use std::string.
55 (gnuv3_get_typename_from_type_info): Return a std::string and
56 adjust.
57 (gnuv3_get_type_from_type_info): Adjust to use std::string.
58 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
59 std::string.
60 * infcmd.c (print_return_value_1): Adjust to use std::string.
61 * linespec.c (find_linespec_symbols): Adjust to
62 demangle_for_lookup API change. Use std::string.
63 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_set_format)
64 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
65 (mi_cmd_var_info_expression, mi_cmd_var_evaluate_expression)
66 (mi_cmd_var_assign, varobj_update_one): Adjust to use std::string.
67 * minsyms.c (lookup_minimal_symbol): Use std::string.
68 * python/py-varobj.c (py_varobj_iter_next): Use new instead of
69 XNEW. vitem->name is a std::string now, adjust.
70 * rust-exp.y (convert_ast_to_type, convert_name): Adjust to use
71 std::string.
72 * stabsread.c (define_symbol): Adjust to use std::string.
73 * symtab.c (demangle_for_lookup): Now returns 'const char *'. Add
74 a demangle_result_storage parameter. Use it for storage.
75 (lookup_symbol_in_language)
76 (lookup_symbol_in_objfile_from_linkage_name): Adjust to new
77 demangle_for_lookup API.
78 * symtab.h (struct demangle_result_storage): New type.
79 (demangle_for_lookup): Now returns 'const char *'. Add a
80 demangle_result_storage parameter.
81 * typeprint.c (type_to_string): Return std::string and use
82 ui_file_as_string.
83 * value.h (type_to_string): Change return type to std::string.
84 * varobj-iter.h (struct varobj_item) <name>: Now a std::string.
85 (varobj_iter_delete): Use delete instead of xfree.
86 * varobj.c (create_child): Return std::string instead of char * in
87 output parameter.
88 (name_of_variable, name_of_child, my_value_of_variable): Return
89 std::string instead of char *.
90 (varobj_create, varobj_get_handle): Constify 'objname' parameter.
91 Adjust to std::string fields.
92 (varobj_get_objname): Return a const char * instead of a char *.
93 (varobj_get_expression): Return a std::string.
94 (varobj_list_children): Adjust to use std::string.
95 (varobj_get_type): Return a std::string.
96 (varobj_get_path_expr): Return a const char * instead of a char *.
97 Adjust to std::string fields.
98 (varobj_get_formatted_value, varobj_get_value): Return a
99 std::string.
100 (varobj_set_value): Change type of 'expression' parameter to
101 std::string. Use std::string.
102 (install_new_value): Use std::string.
103 (delete_variable_1): Adjust to use std::string.
104 (create_child): Change the 'name' parameter to a std::string
105 reference. Swap it into the new item's name.
106 (create_child_with_value): Swap item's name into the new child's
107 name. Use string_printf.
108 (new_variable): Use new instead of XNEW.
109 (free_variable): Don't xfree fields that are now std::string.
110 (name_of_variable, name_of_child): Now returns std::string.
111 (value_of_root): Adjust to use std::string.
112 (my_value_of_variable, varobj_value_get_print_value): Return
113 and use std::string.
114 (varobj_value_get_print_value): Adjust to use ui_file_as_string
115 and std::string.
116 * varobj.h (struct varobj) <name, path_expr, obj_name,
117 print_value>: Now std::string's.
118 <name_of_variable, name_of_child, path_expr_of_child,
119 value_of_variable>: Return std::string.
120 (varobj_create, varobj_get_handle): Constify 'objname' parameter.
121 (varobj_get_objname): Return a const char * instead of a char *.
122 (varobj_get_expression, varobj_get_type): Return a std::string.
123 (varobj_get_path_expr): Return a const char * instead of a char *.
124 (varobj_get_formatted_value, varobj_get_value): Return a
125 std::string.
126 (varobj_set_value): Constify 'expression' parameter.
127 (varobj_value_get_print_value): Return a std::string.
128
d2af8993
PA
1292016-11-08 Pedro Alves <palves@redhat.com>
130
131 * language.c (add_language): Use ui_file_as_string and adjust to
132 use std::string.
133
5698084a
PA
1342016-11-08 Pedro Alves <palves@redhat.com>
135 Tom Tromey <tom@tromey.com>
136
137 * rust-lang.c (struct disr_info) <name>: Now a std::string.
138 (rust_get_disr_info): Use ui_file_as_string and adjust to use
139 std::string.
140 (rust_val_print): Adjust to use std::string.
141
af1fe7b3
PA
1422016-11-08 Pedro Alves <palves@redhat.com>
143
144 * infrun.c (print_target_wait_results): Use ui_file_as_string and
145 std::string.
146
3b4de39c
PA
1472016-11-08 Pedro Alves <palves@redhat.com>
148
149 * ada-lang.c (type_as_string): Use ui_file_as_string and return
150 std::string.
151 (type_as_string_and_cleanup): Delete.
152 (ada_lookup_struct_elt_type): Use type_as_string.
153
6f030249
PA
1542016-11-08 Pedro Alves <palves@redhat.com>
155
156 * gdbarch.sh (verify_gdbarch): Use ui_file_as_string and
157 std::string.
158 * gdbarch.c: Regenerate.
159
66bbce5b
PA
1602016-11-08 Pedro Alves <palves@redhat.com>
161
162 * c-exp.y (OPERATOR NEW): Adjust to use ui_file_as_string and
163 std::string.
164
aaee65ae
PA
1652016-11-08 Pedro Alves <palves@redhat.com>
166
167 * c-lang.h (c_compute_program): Now returns std::string.
168 * compile/compile-internal.h (class compile_file_names): New
169 class.
170 * compile/compile-object-load.c (compile_object_load): Replace
171 object_file and source_file parameters with a compile_file_names
172 parameter. Adjust.
173 * compile-object-load.h: Include "compile-internal.h".
174 (compile_object_load): Replace object_file and source_file
175 parameters with a compile_file_names parameter.
176 * compile/compile-c-support.c (c_compute_program): Now returns a
177 std::string. Use ui_file_as_string.
178 * compile/compile.c (get_new_file_names): Remove parameters and
179 return a compile_file_names instead.
180 (compile_to_object): Now returns a compile_file_names. Use
181 ui_file_as_string.
182 (eval_compile_command): Use compile_file_names.
183 * language.h (struct language_defn) <la_compute_program>: Now
184 returns std::string.
185
3d8b0d94
PA
1862016-11-08 Pedro Alves <palves@redhat.com>
187
188 * cli/cli-setshow.c (do_show_command): Adjust to use
189 ui_file_as_string and std::string.
190
b3ced9ba
PA
1912016-11-08 Pedro Alves <palves@redhat.com>
192
193 * remote.c (escape_buffer): Use ui_file_as_string and return
194 std::string.
195 (putpkt_binary, read_frame): Adjust to use std::string.
196
c92aed16
PA
1972016-11-08 Pedro Alves <palves@redhat.com>
198
199 * python/py-arch.c (archpy_disassemble): Use ui_file_as_string and
200 std::string.
201 * python/py-breakpoint.c (bppy_get_commands): Use
202 ui_file_as_string and std::string.
203 * python/py-frame.c (frapy_str): Likewise.
204 * python/py-type.c (typy_str): Likewise.
205 * python/py-unwind.c (unwind_infopy_str): Likewise.
206 * python/py-value.c (valpy_str): Likewise.
207
02030646
PA
2082016-11-08 Pedro Alves <palves@redhat.com>
209
210 * printcmd.c (eval_command): Use ui_file_as_string and
211 std::string.
212
7b01d34b
PA
2132016-11-08 Pedro Alves <palves@redhat.com>
214
215 * top.c (quit_confirm): Use ui_file_as_string and std::string.
216
db1ec11f
PA
2172016-11-08 Pedro Alves <palves@redhat.com>
218
219 * gdbcmd.h (execute_command_to_string): Now returns std::string.
220 (lookup_struct_elt_type): Adjust to use std::string.
221 * top.c (execute_command_to_string): Use ui_file_as_string and
222 return std::string.
223 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
224 std::string.
225 * python/python.c (execute_gdb_command): Adjust to use
226 std::string.
227
3ab692db
PA
2282016-11-08 Pedro Alves <palves@redhat.com>
229
230 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
231 ui_file_as_string and adjust to use std::string.
232 * guile/scm-disasm.c (gdbscm_arch_disassemble): Likewise.
233 * guile/scm-frame.c (frscm_print_frame_smob): Likewise.
234 * guile/scm-type.c (tyscm_type_name): Use ui_file_as_string and
235 adjust to use std::string. Throw exception directly instead of
236 returning it in EXCP output parameter.
237 (tyscm_print_type_smob, gdbscm_type_print_name): Adjust to
238 tyscm_type_name interface change.
239 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
240 Use ui_file_as_string and std::string.
241
09b0e4b0
PA
2422016-11-08 Pedro Alves <palves@redhat.com>
243
244 * arm-tdep.c (_initialize_arm_tdep): Use ui_file_as_string and
245 std::string.
246
d16c5475
PA
2472016-11-08 Pedro Alves <palves@redhat.com>
248
249 * utils.c (error_stream): Use ui_file_as_string and std::string.
250
56dbf317
PA
2512016-11-08 Pedro Alves <palves@redhat.com>
252
253 * ui-out.c (ui_out_field_stream): Use ui_file_as_string.
254
77e1c742
PA
2552016-11-08 Pedro Alves <palves@redhat.com>
256
257 * ada-valprint.c (ada_print_floating): Use ui_file_as_string and
258 std::string.
259
a0f86e73
PA
2602016-11-08 Pedro Alves <palves@redhat.com>
261
262 * xtensa-tdep.c (xtensa_verify_config): Use ui_file_as_string and
263 std::string.
264
322a8516
PA
2652016-11-08 Pedro Alves <palves@redhat.com>
266
267 * dwarf2read.c (dwarf2_compute_name): Use ui_file_as_string and
268 std::string.
269
1f45808e
PA
2702016-11-08 Pedro Alves <palves@redhat.com>
271
272 * mi/mi-main.c (print_variable_or_computed): Constify 'expression'
273 parameter.
274 (mi_cmd_trace_frame_collected): Call encode_actions instead of
275 encode_actions_and_make_cleanup. Adjust to use std::vector.
276 * tracepoint.c (memrange_cmp): Delete.
277 (memrange_comp): New.
278 (memrange_sortmerge): Take a memrange vector as parameter instead
279 of a collection_list. Use std::sort instead of qsort.
280 (add_register): Now a method of collection_list. Adjust to m_
281 prefix of data fields.
282 (add_memrange): Now a method of collection_list. Adjust to m_
283 prefix of data fields. Adjust to use std::vector.
284 (collect_symbol): Now a method of collection_list. Adjust to m_
285 prefix of data fields.
286 (do_collect_symbol): Adjust. Call add_wholly_collected instead of
287 accessing the vector directly.
288 (collection_list::add_wholly_collected): New.
289 (add_local_symbols): Now a method of collection_list.
290 (add_static_trace_data): Now a method of collection_list. Adjust
291 to use bool.
292 (clear_collection_list, do_clear_collection_list): Delete.
293 (init_collection_list): Delete.
294 (collection_list::collection_list): New.
295 (collection_list::~collection_list): New.
296 (stringify_collection_list): Rename to ...
297 (collection_list::stringify): ... this and adjust to being a
298 method of collection_list. Adjust to use of std::vector.
299 (append_exp): Now a method of collection_list. Use
300 ui_file_as_string. Adjust to std::vector.
301 (collection_list::finish): New.
302 (encode_actions_1): Adjust.
303 (encode_actions_and_make_cleanup): Rename to ...
304 (encode_actions)... this. No longer returns a cleanup. No longer
305 call init_collection_list nor install do_clear_collection_list
306 cleanups. Call collection_list::finish instead of
307 memrange_sortmerge directly.
308 (encode_actions_rsp): Adjust to call encode_actions instead of
309 encode_actions_and_make_cleanup. Adjust to method renames.
310 (add_aexpr): Now a method of collection_list.
311 * tracepoint.h: Include <vector> and <string>.
312 (struct memrange): Add constructors.
313 (struct collection_list): Now a class.
314 (class collection_list) <collection_list, ~collection_list,
315 add_wholly_collected, append_exp, add_aexpr, add_register,
316 add_memrange, collect_symbol, add_local_symbols,
317 add_static_trace_data, finish, stringify, wholly_collected, and
318 computed>: New methods.
319 <regs_mask>: Rename to ...
320 <m_regs_mask>: ... this.
321 <listsize, next_memrange, list>: Delete fields.
322 <m_memranges>: New field.
323 <aexpr_listsize, next_aexpr_elt, aexpr_list>: Delete fields.
324 <m_aexprs>: New field.
325 <strace_data>: Rename to ...
326 <m_strace_data>: ... this. Now a bool.
327 <wholly_collected>: Rename to ...
328 <m_wholly_collected>: ... this. Now a std::vector<std::string>.
329 <computed>: Rename to ...
330 <m_computed>: ... this. Now a std::vector<std::string>.
331 (encode_actions_and_make_cleanup): Delete declaration.
332 (encode_actions): New declaration.
333
8de00631
PA
3342016-11-08 Pedro Alves <palves@redhat.com>
335
336 * ui-file.c (do_ui_file_as_string, ui_file_as_string): New
337 functions.
338 * ui-file.h: Include <string>.
339 (ui_file_as_string): New declaration.
340
4d01a485
PA
3412016-11-08 Pedro Alves <palves@redhat.com>
342
343 * ada-lang.c (ada_read_renaming_var_value): Use expression_up.
344 (struct ada_catchpoint_location) <excep_cond_expr>: Now an
345 expression_up.
346 (ada_catchpoint_location_dtor): Reset excep_cond_expr instead of
347 using xfree.
348 (create_excep_cond_exprs): Use expression_up and gdb::move.
349 (allocate_location_exception): Use new instead of XNEW.
350 (should_stop_exception): Likewise. Adjust to use expression_up.
351 (create_ada_exception_catchpoint): Use new instead of XNEW.
352 * ax-gdb.c (agent_eval_command_one): Use expression_up instead of
353 cleanups.
354 (maint_agent_printf_command): Use expression_up.
355 * break-catch-sig.c (create_signal_catchpoint): Use new instead of
356 XNEW.
357 * break-catch-syscall.c (create_syscall_event_catchpoint):
358 Likewise.
359 * break-catch-throw.c (handle_gnu_v3_exceptions): Use new instead
360 of XCNEW. Use gdb::unique_ptr instead of cleanups.
361 * breakpoint.c (set_breakpoint_condition, update_watchpoint)
362 (parse_cmd_to_aexpr, watchpoint_check)
363 (bpstat_check_breakpoint_conditions, watchpoint_locations_match):
364 Adjust to use expression_up.
365 (init_bp_location): Adjust.
366 (free_bp_location): Use delete instead of xfree.
367 (set_raw_breakpoint_without_location, set_raw_breakpoint)
368 (add_solib_catchpoint, create_fork_vfork_event_catchpoint)
369 (new_single_step_breakpoint, create_breakpoint_sal): Use new
370 instead of XNEW.
371 (find_condition_and_thread): Adjust to use expression_up.
372 (create_breakpoint): Use new instead of XNEW.
373 (dtor_watchpoint): Don't xfree expression pointers, they're
374 unique_ptr's now.
375 (insert_watchpoint, remove_watchpoint): Adjust.
376 (watch_command_1): Use expression_up. Use new instead of XCNEW.
377 (catch_exec_command_1): Use new instead of XNEW.
378 (bp_location_dtor): Don't xfree expression pointers, they're
379 unique_ptr's now.
380 (base_breakpoint_allocate_location)
381 (strace_marker_create_breakpoints_sal): Use new instead of XNEW.
382 (delete_breakpoint): Use delete instead of xfree.
383 * breakpoint.h (struct bp_location) <cond>: Now an
384 unique_ptr<expression> instead of a raw pointer.
385 (struct watchpoint) <exp, cond_exp>: Likewise.
386 * cli/cli-script.c (execute_control_command): Use expression_up
387 instead of cleanups.
388 * dtrace-probe.c (dtrace_process_dof_probe): Use expression_up.
389 * eval.c (parse_and_eval_address, parse_and_eval_long)
390 (parse_and_eval, parse_to_comma_and_eval, parse_and_eval_type):
391 Use expression_up instead of cleanups.
392 * expression.h (expression_up): New typedef.
393 (parse_expression, parse_expression_with_language, parse_exp_1):
394 Change return type to expression_up.
395 * mi/mi-main.c (mi_cmd_data_evaluate_expression)
396 (print_variable_or_computed): Use expression_up.
397 * objc-lang.c (print_object_command): Use expression_up instead of
398 cleanups.
399 * parse.c (parse_exp_1, parse_exp_in_context)
400 (parse_exp_in_context_1, parse_expression)
401 (parse_expression_with_language): Return an expression_up instead
402 of a raw pointer.
403 (parse_expression_for_completion): Use expression_up.
404 * printcmd.c (struct display) <exp>: Now an expression_up instead
405 of a raw pointer.
406 (print_command_1, output_command_const, set_command, x_command):
407 Use expression_up instead of cleanups.
408 (display_command): Likewise. Use new instead of XNEW.
409 (free_display): Use delete instead of xfree.
410 (do_one_display): Adjust to use expression_up.
411 * remote.c (remote_download_tracepoint): Likewise.
412 * stack.c (return_command): Likewise.
413 * tracepoint.c (validate_actionline, encode_actions_1): Use
414 expression_up instead of cleanups.
415 * typeprint.c (whatis_exp, maintenance_print_type): Likewise.
416 * value.c (init_if_undefined_command): Likewise.
417 * varobj.c (struct varobj_root) <exp>: Now an expression_up
418 instead of a raw pointer.
419 (varobj_create): Adjust.
420 (varobj_set_value): Use an expression_up instead of cleanups.
421 (new_root_variable): Use new instead of XNEW.
422 (free_variable): Use delete instead of xfree.
423 (value_of_root_1): Use std::swap.
424
b0646401
PA
4252016-11-08 Pedro Alves <palves@redhat.com>
426
427 * cli/cli-script.c (execute_control_command): Use std::string
428 instead of cleanups.
429 (locate_arg): Constify return type.
430 (insert_args): Constify paremeter. Simplify using std::string.
431 Return a std::string.
432
896b6bda
PA
4332016-11-08 Pedro Alves <palves@redhat.com>
434
435 * breakpoint.c (struct commands_info) <arg>: Constify.
436 (commands_command_1): Constify 'arg' parameter. Use std::string
437 and string_printf.
438 (commands_from_control_command): Constify 'arg' parameter.
439 (map_breakpoint_numbers): Constify 'args' parameter.
440 * breakpoint.h (commands_from_control_command): Constify 'arg'
441 parameter.
442
4f8ad951
PA
4432016-11-08 Pedro Alves <palves@redhat.com>
444
445 * cli/cli-script.c (execute_control_command): Assume insert_args
446 never returns NULL.
447 (insert_args): Assume xmalloc never returns NULL.
448
d4081a38
PA
4492016-11-08 Pedro Alves <palves@redhat.com>
450
451 * Makefile.in (COMMON_OBS): Add utils-selftests.o.
452 * common/common-utils.c (string_printf): New function.
453 * common/common-utils.h: Include <string>.
454 (string_printf): Declare.
455 * utils-selftests.c: New file.
456
93f9a11f
YQ
4572016-11-08 Yao Qi <yao.qi@linaro.org>
458
459 * aarch64-tdep.c (aarch64_software_single_step): Return
460 VEC (CORE_ADDR) *. Return NULL instead of 0. Don't call
461 insert_single_step_breakpoint.
462 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Likewise.
463 (alpha_software_single_step): Likewise.
464 * alpha-tdep.h (alpha_software_single_step): Update declaration.
465 * arm-linux-tdep.c (arm_linux_software_single_step): Return
466 VEC (CORE_ADDR) *. Return NULL instead of 0.
467 * arm-tdep.c (arm_software_single_step): Return NULL instead of 0.
468 * arm-tdep.h (arm_software_single_step): Update declaration.
469 * breakpoint.c (insert_single_step_breakpoints): New function.
470 * breakpoint.h (insert_single_step_breakpoints): Declare.
471 * cris-tdep.c (cris_software_single_step): Return
472 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
473 * gdbarch.sh (software_single_step): Change it to return
474 VEC (CORE_ADDR) *.
475 * gdbarch.c, gdbarch.h: Regenerated.
476 * infrun.c (maybe_software_singlestep): Adjust.
477 * mips-tdep.c (mips_deal_with_atomic_sequence): Return
478 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
479 (micromips_deal_with_atomic_sequence): Likewise.
480 (deal_with_atomic_sequence): Likewise.
481 (mips_software_single_step): Likewise.
482 * mips-tdep.h (mips_software_single_step): Update declaration.
483 * moxie-tdep.c (moxie_software_single_step): Likewise.
484 * nios2-tdep.c (nios2_software_single_step): Likewise.
485 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Update
486 declaration.
487 * record-full.c (record_full_resume): Adjust.
488 (record_full_wait_1): Likewise.
489 * rs6000-aix-tdep.c (rs6000_software_single_step): Return
490 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
491 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Return
492 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
493 * s390-linux-tdep.c (s390_software_single_step): Likewise.
494 * sparc-tdep.c (sparc_software_single_step): Likewise.
495 * spu-tdep.c (spu_software_single_step): Likewise.
496 * tic6x-tdep.c (tic6x_software_single_step): Likewise.
497
0bc5d801
YQ
4982016-11-08 Yao Qi <yao.qi@linaro.org>
499
500 * arm-linux-tdep.c (arm_linux_software_single_step): Write
501 adjusted address back to vector. Call insert_single_step_breakpoint
502 in a new loop.
503 * arm-tdep.c (arm_software_single_step): Likewise.
504
771da62d
YQ
5052016-11-08 Yao Qi <yao.qi@linaro.org>
506
507 * arm-linux-tdep.c (arm_linux_software_single_step): Don't
508 call arm_insert_single_step_breakpoint, call
509 insert_single_step_breakpoint instead.
510 * arm-tdep.c (arm_insert_single_step_breakpoint): Remove.
511 (arm_software_single_step): Don't call
512 arm_insert_single_step_breakpoint, call
513 insert_single_step_breakpoint instead.
514 * arm-tdep.h (arm_insert_single_step_breakpoint): Remove
515 declaration.
516
53c3572a
CD
5172016-11-08 Cordian A. Daniluk <th3c0r1uk@gmail.com>
518
519 PR breakpoints/20739
520 * breakpoint.c (check_fast_tracepoint_sals): Don't print duplicate
521 0x prefix.
522
20955dbf
YQ
5232016-11-08 Yao Qi <yao.qi@linaro.org>
524
525 * rust-lang.c (val_print_struct): Fix indentation.
526
9dc193c3
LF
5272016-11-08 Lionel Flandrin <lionel@svkt.org>
528
529 * remote.c (process_g_packet): Detect truncated registers in 'g'
530 packets and raise an error.
531
5996220c
DE
5322016-11-07 Doug Evans <dje@google.com>
533
534 * guile/scm-value.c (gdbscm_value_field): Fix call to value_struct_elt.
535 * python/py-value.c (valpy_getitem): Ditto.
536
ad9eb1fd
DE
5372016-11-07 Doug Evans <dje@google.com>
538
539 * i386-tdep.c (i386_gdbarch_init): Add comments.
540
bc71081e
DE
5412016-11-07 Doug Evans <dje@google.com>
542
543 * python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate.
544
a5716032
DE
5452016-11-07 Doug Evans <dje@google.com>
546
547 * configure.tgt (x86_64-*-elf*): Remove i386bsd-tdep.o.
548
26c4b26f
SM
5492016-11-04 Simon Marchi <simon.marchi@polymtl.ca>
550
551 * maint.c (scoped_command_stats::scoped_command_stats): Fix typo.
552 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
553 * ppcobsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
554 * ui-out.c (ui_out_new): Likewise.
555 * utils.c (init_page_info): Likewise.
556 (reset_prompt_for_continue_wait_time): Likewise.
557 * windows-nat.c (windows_init_thread_list): Likewise.
558 * xtensa-tdep.c (call0_analyze_prologue): Likewise.
559
cdf5a07c
MG
5602016-10-29 Manish Goregaokar <manish@mozilla.com>
561
562 * rust-exp.y: Parse `sizeof(exp)` as `UNOP_SIZEOF`
563
b96645f1
MG
5642016-10-28 Manish Goregaokar <manish@mozilla.com>
565
566 * rust-lang.c (rust_union_is_untagged): Add function to
567 check if a union is an untagged unioni
568 (rust_val_print): Handle printing of untagged union values
569 (rust_print_type): Handle printing of untagged union types
570 (rust_evaluate_subexp): Handle evaluating field
571 access on untagged unions
51a789c3
MG
572
5732016-10-27 Manish Goregaokar <manish@mozilla.com>
574
575 * rust-lang.c (rust_get_disr_info): Treat univariant enums
576 without discriminants as encoded enums with a real field
577 * rust-lang.c (rust_evaluate_subexp): Handle field access
578 on encoded struct-like enums
579
722bcb33
YQ
5802016-11-03 Yao Qi <yao.qi@linaro.org>
581
582 * Makefile.in (.y.c): Replace YY_NULL with YY_NULLPTR.
583
04180708
YQ
5842016-11-03 Yao Qi <yao.qi@linaro.org>
585 Pedro Alves <palves@redhat.com>
586
587 * aarch64-tdep.c (aarch64_default_breakpoint): Change it to
588 constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
589 (aarch64_gdbarch_init): Don't use
590 SET_GDBARCH_BREAKPOINT_MANIPULATION.
591 * alpha-tdep.c (break_insn): Rename to alpha_break_insn.
592 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
593 (alpha_gdbarch_init): Don't use
594 SET_GDBARCH_BREAKPOINT_MANIPULATION.
595 * arc-tdep.c (arc_gdbarch_init): Don't use
596 SET_GDBARCH_BREAKPOINT_MANIPULATION.
597 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Remove.
598 (struct bp_manipulation): New.
599 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Remove.
600 (struct bp_manipulation_endian): New.
601 (BP_MANIPULATION): New.
602 (BP_MANIPULATION_ENDIAN): New.
603 * arm-tdep.c (arm_gdbarch_init): Don't use
604 SET_GDBARCH_BREAKPOINT_MANIPULATION.
605 * avr-tdep.c (avr_break_insn): Change it constexpr.
606 (avr_gdbarch_init): Don't use
607 SET_GDBARCH_BREAKPOINT_MANIPULATION.
608 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
609 * cris-tdep.c (cris_gdbarch_init): Likewise.
610 * frv-tdep.c (breakpoint): Rename it to frv_break_insn, and
611 change its type to constexpr. Don't use
612 GDBARCH_BREAKPOINT_MANIPULATION.
613 (frv_gdbarch_init): Don't use
614 SET_GDBARCH_BREAKPOINT_MANIPULATION.
615 * ft32-tdep.c (breakpoint): Rename it to ft32_break_insn and
616 change its type to constexpr. Don't use
617 GDBARCH_BREAKPOINT_MANIPULATION.
618 (ft32_gdbarch_init): Don't use
619 SET_GDBARCH_BREAKPOINT_MANIPULATION.
620 * h8300-tdep.c (breakpoint): Rename it to h8300_break_insn.
621 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
622 (h8300_gdbarch_init): Don't use
623 SET_GDBARCH_BREAKPOINT_MANIPULATION.
624 * hppa-tdep.c (breakpoint): Rename it to h8300_break_insn.
625 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
626 (hppa_gdbarch_init): Don't use
627 SET_GDBARCH_BREAKPOINT_MANIPULATION.
628 * i386-tdep.c (break_insn): Rename it to i386_break_insn.
629 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
630 (i386_gdbarch_init): Don't use
631 SET_GDBARCH_BREAKPOINT_MANIPULATION.
632 * iq2000-tdep.c (iq2000_gdbarch_init): Don't use
633 SET_GDBARCH_BREAKPOINT_MANIPULATION.
634 * lm32-tdep.c (breakpoint): Rename it to lm32_break_insn and
635 change its type to constexpr. Don't use
636 GDBARCH_BREAKPOINT_MANIPULATION.
637 (lm32_gdbarch_init): Don't use
638 SET_GDBARCH_BREAKPOINT_MANIPULATION.
639 * m32c-tdep.c (break_insn): Rename it to m32c_break_insn and change
640 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
641 (m32c_gdbarch_init): Don't use
642 SET_GDBARCH_BREAKPOINT_MANIPULATION.
643 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
644 * m68hc11-tdep.c (breakpoint): Rename it to m68hc11_break_insn and
645 change its type to constexpr.
646 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
647 (m68hc11_gdbarch_init): Don't use SET_GDBARCH_BREAKPOINT_MANIPULATION.
648 * m68k-tdep.c (break_insn): Rename it to m68k_break_insn and change
649 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
650 (m68k_gdbarch_init): Don't use
651 SET_GDBARCH_BREAKPOINT_MANIPULATION.
652 * m88k-tdep.c (break_insn): Rename it to m88k_break_insn and change
653 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
654 (m88k_gdbarch_init): Don't use
655 SET_GDBARCH_BREAKPOINT_MANIPULATION.
656 * mep-tdep.c (breakpoint): Rename it to mep_break_insn and change
657 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
658 (mep_gdbarch_init): Don't use
659 SET_GDBARCH_BREAKPOINT_MANIPULATION.
660 * microblaze-tdep.c (break_insn): Rename it to
661 microblaze_break_insn and change its type to constexpr. Don't use
662 GDBARCH_BREAKPOINT_MANIPULATION.
663 (microblaze_gdbarch_init): Don't use
664 SET_GDBARCH_BREAKPOINT_MANIPULATION.
665 * mips-tdep.c (mips_gdbarch_init): Likewise.
666 * mn10300-tdep.c (breakpoint): Rename it to mn10300_break_insn and
667 change its type to constexpr. Don't use
668 GDBARCH_BREAKPOINT_MANIPULATION.
669 (mn10300_gdbarch_init): Don't use
670 SET_GDBARCH_BREAKPOINT_MANIPULATION.
671 * moxie-tdep.c (breakpoint): Rename it to moxie_break_insn and
672 change its type to constexpr. Don't use
673 GDBARCH_BREAKPOINT_MANIPULATION.
674 (moxie_gdbarch_init): Don't use
675 SET_GDBARCH_BREAKPOINT_MANIPULATION.
676 * msp430-tdep.c (breakpoint): Rename it to msp430_break_insn
677 and change its type to constexpr. Don't use
678 GDBARCH_BREAKPOINT_MANIPULATION.
679 (msp430_gdbarch_init): Don't use
680 SET_GDBARCH_BREAKPOINT_MANIPULATION.
681 * mt-tdep.c (mt_gdbarch_init): Likewise.
682 * nds32-tdep.c (break_insn): Rename it to nds32_break_insn
683 and change its type to constexpr. Don't use
684 GDBARCH_BREAKPOINT_MANIPULATION.
685 (nds32_gdbarch_init): Don't use
686 SET_GDBARCH_BREAKPOINT_MANIPULATION.
687 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
688 * rl78-tdep.c (breakpoint): Rename it to rl78_break_ins
689 and change its type to rl78_break_insn. Don't use
690 GDBARCH_BREAKPOINT_MANIPULATION.
691 (rl78_gdbarch_init): Don't use
692 SET_GDBARCH_BREAKPOINT_MANIPULATION.
693 * rs6000-tdep.c (big_breakpoint): Change its type to
694 constexpr.
695 (little_breakpoint): Likewise.
696 Don't use GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN.
697 (rs6000_gdbarch_init): Don't use
698 SET_GDBARCH_BREAKPOINT_MANIPULATION.
699 * rx-tdep.c (breakpoint): Rename it to rx_break_insn and
700 change its type to constexpr. Don't use
701 GDBARCH_BREAKPOINT_MANIPULATION.
702 (rx_gdbarch_init): Don't use
703 SET_GDBARCH_BREAKPOINT_MANIPULATION.
704 * s390-linux-tdep.c (breakpoint): Rename it to s390_break_insn
705 and change its type to constexpr. Don't use
706 GDBARCH_BREAKPOINT_MANIPULATION
707 (s390_gdbarch_init): Don't use
708 SET_GDBARCH_BREAKPOINT_MANIPULATION.
709 * score-tdep.c (score_gdbarch_init): Likewise.
710 * sh-tdep.c (sh_gdbarch_init): Likewise.
711 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
712 * sparc-tdep.c (break_insn): Rename it to sparc_break_insn
713 and change its type to constexpr. Don't use
714 GDBARCH_BREAKPOINT_MANIPULATION.
715 (sparc32_gdbarch_init): Don't use
716 SET_GDBARCH_BREAKPOINT_MANIPULATION.
717 * spu-tdep.c (breakpoint): Rename it to spu_break_insn and change
718 its type to constexpr. Don't use
719 GDBARCH_BREAKPOINT_MANIPULATION.
720 (spu_gdbarch_init): Don't use
721 SET_GDBARCH_BREAKPOINT_MANIPULATION.
722 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
723 * tilegx-tdep.c (breakpoint): Rename it to tilegx_break_insn
724 and change its type to constexpr. Don't use
725 GDBARCH_BREAKPOINT_MANIPULATION.
726 (tilegx_gdbarch_init): Don't use
727 SET_GDBARCH_BREAKPOINT_MANIPULATION.
728 * v850-tdep.c (v850_gdbarch_init): Likewise.
729 * vax-tdep.c (break_insn): Rename it to vax_break_insn and
730 change its type to constexpr.
731 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
732 (vax_gdbarch_init): Don't use
733 SET_GDBARCH_BREAKPOINT_MANIPULATION.
734 * xstormy16-tdep.c (breakpoint): Rename it to
735 xstormy16_break_insn and change its type to constexpr.
736 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
737 (xstormy16_gdbarch_init): Don't use
738 SET_GDBARCH_BREAKPOINT_MANIPULATION.
739 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
740
a97c97e8
YQ
7412016-11-03 Yao Qi <yao.qi@linaro.org>
742
743 * arm-tdep.c (arm_override_mode): Remove.
744 (arm_pc_is_thumb): Update.
745 (arm_insert_single_step_breakpoint): Update.
746
833b7ab5
YQ
7472016-11-03 Yao Qi <yao.qi@linaro.org>
748
749 * arch-utils.c (default_breakpoint_kind_from_current_state):
750 New function.
751 * arch-utils.h (default_breakpoint_kind_from_current_state):
752 Declare.
753 * arm-tdep.c (arm_breakpoint_kind_from_current_state): New
754 function.
755 (arm_gdbarch_init): Call
756 set_gdbarch_breakpoint_kind_from_current_state.
757 * breakpoint.c (breakpoint_kind): Call
758 gdbarch_breakpoint_kind_from_current_state for single step
759 breakpoint. Update comments.
760 * gdbarch.sh (breakpoint_kind_from_current_state): New.
761 * gdbarch.c, gdbarch.h: Regenerate.
762
22f13eb8
YQ
7632016-11-03 Yao Qi <yao.qi@linaro.org>
764
765 * arch-utils.c (default_breakpoint_from_pc): New function.
766 * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): Remove.
767 (GDBARCH_BREAKPOINT_MANIPULATION): Don't use
768 GDBARCH_BREAKPOINT_FROM_PC.
769 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Don't call
770 set_gdbarch_breakpoint_from_pc.
771 (default_breakpoint_from_pc): Remove declaration.
772 * gdbarch.sh (breakpoint_from_pc): Add its default implementation.
773 * gdbarch.c, gdbarch.h: Regenerate.
774 * arm-tdep.c: Don't use GDBARCH_BREAKPOINT_FROM_PC.
775 * arc-tdep.c, bfin-tdep.c, cris-tdep.c, iq2000-tdep.c: Likewise.
776 * m32r-tdep.c, mips-tdep.c, mt-tdep.c: Likewise.
777 * nios2-tdep.c, score-tdep.c, sh-tdep.c: Likewise.
778 * sh64-tdep.c, tic6x-tdep.c, v850-tdep.c, xtensa-tdep.c: Likewise.
779
c0f4a997
YQ
7802016-11-03 Yao Qi <yao.qi@linaro.org>
781
782 * arch-utils.c (default_remote_breakpoint_from_pc): Remove.
783 * arch-utils.h (default_remote_breakpoint_from_pc): Remove.
784 * arm-tdep.c (arm_remote_breakpoint_from_pc): Remove.
785 (arm_gdbarch_init): Don't call
786 set_gdbarch_remote_breakpoint_from_pc.
787 * gdbarch.sh (remote_breakpoint_from_pc): Remove.
788 * gdbarch.c, gdbarch.h: Regenerate.
789 * mips-tdep.c (mips_remote_breakpoint_from_pc): Remove.
790 (mips_gdbarch_init): Don't call
791 set_gdbarch_remote_breakpoint_from_pc.
792
579c6ad9
YQ
7932016-11-03 Yao Qi <yao.qi@linaro.org>
794
795 * breakpoint.h (struct bp_target_info) <placed_size>: Remove.
796 <kind>: New field.
797 Update all users.
798
cd6c3b4f
YQ
7992016-11-03 Yao Qi <yao.qi@linaro.org>
800
801 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Define
802 breakpoint_kind_from_pc and sw_breakpoint_from_kind.
803 (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): Likewise.
804 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Call
805 set_gdbarch_breakpoint_kind_from_pc and
806 set_gdbarch_sw_breakpoint_from_kind.
807 * arm-tdep.c: Add comments.
808 * bfin-tdep.c: Likewise.
809 * breakpoint.c (breakpoint_kind): New function.
810 (insert_bp_location): Set target_info.placed_size and
811 target_info.placed_address.
812 (bkpt_insert_location): Likewise.
813 * cris-tdep.c: Add comments.
814 * gdbarch.sh (breakpoint_kind_from_pc): New.
815 (sw_breakpoint_from_kind): New.
816 * gdbarch.c, gdbarch.h: Regenerated.
817 * ia64-tdep.c (ia64_memory_insert_breakpoint): Don't set
818 bp_tgt->placed_size.
819 (ia64_memory_remove_breakpoint): Don't assert
820 bp_tgt->placed_size.
821 (ia64_breakpoint_kind_from_pc): New function.
822 (ia64_gdbarch_init): Install ia64_breakpoint_kind_from_pc.
823 * m32r-tdep.c (m32r_memory_insert_breakpoint): Don't set
824 bp_tgt->placed_size.
825 * mem-break.c (default_memory_insert_breakpoint): Don't set
826 bp_tgt->placed_size. Call gdbarch_sw_breakpoint_from_kind.
827 (default_memory_remove_breakpoint): Call
828 gdbarch_sw_breakpoint_from_kind.
829 (memory_validate_breakpoint): Don't check bp_tgt->placed_size.
830 * mips-tdep.c: Add comments.
831 * mt-tdep.c: Likewise.
832 * nios2-tdep.c: Likewise.
833 * record-full.c (record_full_insert_breakpoint): Don't call
834 gdbarch_breakpoint_from_pc. Don't set bp_tgt->placed_address
835 and bp_tgt->placed_size.
836 * remote.c (remote_insert_breakpoint): Don't call
837 gdbarch_remote_breakpoint_from_pc. Use bp_tgt->placed_size.
838 Don't set bp_tgt->placed_address and bp_tgt->placed_size.
839 (remote_insert_hw_breakpoint): Likewise.
840 * score-tdep.c: Likewise.
841 * sh-tdep.c: Likewise.
842 * tic6x-tdep.c: Likewise.
843 * v850-tdep.c: Likewise.
844 * xtensa-tdep.c: Likewise.
845
d19280ad
YQ
8462016-11-03 Yao Qi <yao.qi@linaro.org>
847
848 * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): New macro.
849 (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): New macro.
850 * arm-tdep.c (arm_breakpoint_from_pc): Remove.
851 (arm_breakpoint_kind_from_pc): New function.
852 (arm_sw_breakpoint_from_kind): New function.
853 (arm_breakpoint_from_pc): Call arm_breakpoint_kind_from_pc
854 and arm_sw_breakpoint_from_kind.
855 Use GDBARCH_BREAKPOINT_FROM_PC.
856 (arm_remote_breakpoint_from_pc): Call
857 arm_breakpoint_kind_from_pc.
858 (arm_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
859 with SET_GDBARCH_BREAKPOINT_MANIPULATION.
860 * arc-tdep.c: Likewise.
861 * bfin-tdep.c: Likewise.
862 * cris-tdep.c: Likewise.
863 * iq2000-tdep.c: Likewise.
864 * m32r-tdep.c: Likewise.
865 * mips-tdep.c: Likewise.
866 * mt-tdep.c: Likewise.
867 * nios2-tdep.c: Likewise.
868 * rs6000-tdep.c: Likewise.
869 * score-tdep.c: Likewise.
870 * sh-tdep.c: Likewise.
871 * sh64-tdep.c: Likewise.
872 * tic6x-tdep.c: Likewise.
873 * v850-tdep.c: Likewise.
874 * xtensa-tdep.c: Likewise.
875
44f1c4d7
YQ
8762016-11-03 Yao Qi <yao.qi@linaro.org>
877
878 * mips-tdep.c (mips_breakpoint_kind): New enum.
879 (mips_breakpoint_from_pc): Use it.
880 (mips_remote_breakpoint_from_pc): Likewise.
881
598cc9dc
YQ
8822016-11-03 Yao Qi <yao.qi@linaro.org>
883
884 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): New macro.
885 (SET_GDBARCH_BREAKPOINT_MANIPULATION): New macro.
886 aarch64-tdep.c (aarch64_breakpoint_from_pc): Remove. Use
887 GDBARCH_BREAKPOINT_MANIPULATION.
888 (aarch64_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
889 with SET_GDBARCH_BREAKPOINT_MANIPULATION.
890 * alpha-tdep.c: Likewise.
891 * avr-tdep.c: Likewise.
892 * frv-tdep.c: Likewise.
893 * ft32-tdep.c: Likewise.
894 * h8300-tdep.c: Likewise.
895 * hppa-tdep.c: Likewise.
896 * i386-tdep.c: Likewise.
897 * lm32-tdep.c: Likewise.
898 * m32c-tdep.c: Likewise.
899 * m68hc11-tdep.c: Likewise.
900 * m68k-tdep.c: Likewise.
901 * m88k-tdep.c: Likewise.
902 * mep-tdep.c: Likewise.
903 * microblaze-tdep.c: Likewise.
904 * mn10300-tdep.c: Likewise.
905 * moxie-tdep.c: Likewise.
906 * msp430-tdep.c: Likewise.
907 * rl78-tdep.c: Likewise.
908 * rx-tdep.c: Likewise.
909 * s390-linux-tdep.c: Likewise.
910 * sparc-tdep.c: Likewise.
911 * spu-tdep.c: Likewise.
912 * tilegx-tdep.c: Likewise.
913 * vax-tdep.c: Likewise.
914 * xstormy16-tdep.c: Likewise.
915
8b55a7e4
YQ
9162016-11-03 Yao Qi <yao.qi@linaro.org>
917
918 * mem-break.c (default_memory_insert_breakpoint): Don't check
919 'bp' against NULL.
920 * microblaze-linux-tdep.c (microblaze_linux_memory_remove_breakpoint):
921 Likewise.
922 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
923
7d5697f9
TT
9242016-11-02 Tom Tromey <tom@tromey.com>
925
926 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type): Rename
927 from impl_get_base_type. Rewrite.
928 (struct dwarf_expr_baton): Remove.
929 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value): Save and
930 restore more fields.
931 (symbol_needs_eval_context::get_frame_pc): New method.
932 * dwarf2expr.h (dwarf_expr_context::get_base_type): Now public,
933 virtual.
934 (dwarf_expr_context::impl_get_base_type): Remove.
935 * dwarf2expr.c (dwarf_expr_context::get_base_type): Remove.
936
c5073021
MR
9372016-10-31 Maciej W. Rozycki <macro@imgtec.com>
938
939 * configure.ac <mips-sgi-irix5*>: Remove <sys/proc.h> _KMEMUSER
940 workaround.
941 * configure: Regenerate.
942 * config.in: Regenerate.
943
7e3d947d
MR
9442016-10-31 Maciej W. Rozycki <macro@imgtec.com>
945
946 * mips-tdep.c (mips_r3041_reg_names): Remove.
947 (mips_breakpoint_from_pc): Remove IDT and PMON breakpoint
948 encodings.
949
de4bfa86
MR
9502016-10-31 Maciej W. Rozycki <macro@imgtec.com>
951
952 * defs.h (gdb_osabi): Remove GDB_OSABI_IRIX enum value.
953 * osabi.c (gdb_osabi_names): Remove "Irix" entry.
954 * mips-tdep.c (mips_irix_reg_names): Remove.
955 (mips_register_type): Remove GDB_OSABI_IRIX code.
956 (mips_pseudo_register_type): Likewise.
957 (mips_breakpoint_from_pc): Likewise.
958 (mips_gdbarch_init): Likewise.
959
e6485aaf
PA
9602016-10-29 Pedro Alves <palves@redhat.com>
961
962 * NEWS: Clarify C++ requirement.
963
d2946923
PA
9642016-10-29 Pedro Alves <palves@redhat.com>
965
966 * NEWS: Adjust to mention C++11 requirement.
967
8ba42bc5
EZ
9682016-10-29 Eli Zaretskii <eliz@gnu.org>
969
970 * NEWS: Mention support for redirection on MS-Windows.
971
972 * windows-nat.c (redir_open, redir_set_redirection)
973 (redirect_inferior_handles) [!__CYGWIN__]: New functions.
974 (windows_create_inferior) [!__CYGWIN__]: Use
975 'redirect_inferior_handles' to redirect standard handles of the
976 debuggee if the command line requests that.
977
0bcda685
PA
9782016-10-28 Pedro Alves <palves@redhat.com>
979
980 * Makefile.in (CXX_DIALECT): Get from configure.
981 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
982 (FLAGS_TO_PASS): Pass CXX_DIALECT.
983 * acinclude.m4: Include ax_cxx_compile_stdcxx.m4.
984 * ax_cxx_compile_stdcxx.m4: Add FSF copyright header. Set and
985 AC_SUBST CXX_DIALECT instead of changing CXX/CXXCPP.
986 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
987 * config.in: Regenerate.
988 * configure: Regenerate.
989
87106a7b
PA
9902016-10-28 Pedro Alves <palves@redhat.com>
991
992 * ax_cxx_compile_stdcxx.m4: New file.
993
44d83468
PA
9942016-10-28 Pedro Alves <palves@redhat.com>
995
996 * maint.c (scoped_command_stats::scoped_command_stats): Clear
997 m_space_enabled, m_time_enabled and m_symtab_enabled.
998
d87fdac3
MM
9992016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1000
1001 * btrace.c (bfun_s): New typedef.
1002 (ftrace_update_caller): Print caller in debug dump.
1003 (ftrace_get_caller, ftrace_match_backtrace, ftrace_fixup_level)
1004 (ftrace_compute_global_level_offset, ftrace_connect_bfun)
1005 (ftrace_connect_backtrace, ftrace_bridge_gap, btrace_bridge_gaps): New.
1006 (btrace_compute_ftrace_bts): Pass vector of gaps. Collect gaps.
1007 (btrace_compute_ftrace_pt): Likewise.
1008 (btrace_compute_ftrace): Split into this, ...
1009 (btrace_compute_ftrace_1): ... this, and ...
1010 (btrace_finalize_ftrace): ... this. Call btrace_bridge_gaps.
1011
259ba1e8
MM
10122016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1013
1014 * btrace.c (ftrace_new_return): Start from the previous function's
1015 level if we can't find a matching call for a return.
1016
2dfdb47a
MM
10172016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1018
1019 * btrace.c (ftrace_update_function): Update tail call heuristic.
1020
b61ce85c
MM
10212016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1022
1023 * btrace.c (btrace_compute_ftrace_bts, ftrace_add_pt): Allow
1024 leading gaps.
1025 * record-btrace.c (record_btrace_single_step_forward)
1026 (record_btrace_single_step_backward): Jump back to last
1027 instruction if step ends at a gap.
1028 (record_btrace_goto_begin): Skip gaps.
1029
63ab433e
MM
10302016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1031
1032 * btrace.c (ftrace_add_pt): Fix gap indication. Add warning for non-
1033 contiguous trace and overflow. Rephrase trace decode warning and print
1034 instruction number. Remove dead gaps warning.
1035 (btrace_compute_ftrace_bts): Rephrase warnings and print instruction
1036 number.
1037
ecf45d2c
SL
10382016-10-25 Sandra Loosemore <sandra@codesourcery.com>
1039 Luis Machado <lgustavo@codesourcery.com>
1040 Pedro Alves <palves@redhat.com>
1041
1042 PR gdb/20569
1043 * exceptions.c (exception_print_same): Moved here from exec.c.
1044 * exceptions.h (exception_print_same): Declare.
1045 * exec.h: Include "symfile-add-flags.h".
1046 (try_open_exec_file): New declaration.
1047 * exec.c (exception_print_same): Moved to exceptions.c.
1048 (try_open_exec_file): New function.
1049 (exec_file_locate_attach): Rename exec_file and full_exec_path
1050 variables to avoid confusion between target and host pathnames.
1051 Move pathname processing logic to exec_file_find. Do not return
1052 early if pathname lookup fails; Call try_open_exec_file.
1053 * infrun.c (follow_exec): Split and rename execd_pathname variable
1054 to avoid confusion between target and host pathnames. Warn if
1055 pathname lookup fails. Pass target pathname to
1056 target_follow_exec, not hostpathname. Call try_open_exec_file.
1057 * main.c (symbol_file_add_main_adapter): New function.
1058 (captured_main_1): Use it.
1059 * solib-svr4.c (open_symbol_file_object): Adjust to pass
1060 symfile_add_flags to symbol_file_add_main.
1061 * solib.c (exec_file_find): Incorporate fallback logic for relative
1062 pathnames formerly in exec_file_locate_attach.
1063 * symfile.c (symbol_file_add_main, symbol_file_add_main_1):
1064 Replace 'from_tty' parameter with a symfile_add_file.
1065 (symbol_file_command): Adjust to pass symfile_add_flags to
1066 symbol_file_add_main.
1067 * symfile.h (symbol_file_add_main): Replace 'from_tty' parameter
1068 with a symfile_add_file.
1069
b15cc25c
PA
10702016-10-26 Pedro Alves <palves@redhat.com>
1071
1072 * coffread.c (coff_symfile_read): Use symfile_add_flags.
1073 * dbxread.c (dbx_symfile_read): Ditto.
1074 * elfread.c (elf_symfile_read): Ditto.
1075 * inferior.h: Include symfile-add-flags.h.
1076 (struct inferior) <symfile_flags>: Now symfile_add_flags.
1077 * machoread.c (macho_add_oso_symfile, macho_symfile_read_all_oso)
1078 (macho_symfile_read, mipscoff_symfile_read): Use
1079 symfile_add_flags.
1080 * objfile-flags.h: New file.
1081 * objfiles.c (allocate_objfile): Use objfile_flags.
1082 * objfiles.h: Include objfile-flags.h.
1083 (struct objfile) <flags>: Now an objfile_flags.
1084 (OBJF_REORDERED, OBJF_SHARED, OBJF_READNOW, OBJF_USERLOADED)
1085 (OBJF_PSYMTABS_READ, OBJF_MAINLINE, OBJF_NOT_FILENAME): Delete.
1086 Converted to an enum-flags in objfile-flags.h.
1087 (allocate_objfile): Use objfile_flags.
1088 * python/py-objfile.c (objfpy_add_separate_debug_file): Remove
1089 unnecessary local.
1090 * solib.c (solib_read_symbols, solib_add)
1091 (reload_shared_libraries_1): Use symfile_add_flags.
1092 * solib.h: Include "symfile-add-flags.h".
1093 (solib_read_symbols): Use symfile_add_flags.
1094 * symfile-add-flags.h: New file.
1095 * symfile-debug.c (debug_sym_read): Use symfile_add_flags.
1096 * symfile-mem.c (symbol_file_add_from_memory): Use
1097 symfile_add_flags.
1098 * symfile.c (read_symbols, syms_from_objfile_1)
1099 (syms_from_objfile, finish_new_objfile): Use symfile_add_flags.
1100 (symbol_file_add_with_addrs): Use symfile_add_flags and
1101 objfile_flags.
1102 (symbol_file_add_separate): Use symfile_add_flags.
1103 (symbol_file_add_from_bfd, symbol_file_add): Use symfile_add_flags
1104 and objfile_flags.
1105 (symbol_file_add_main_1): : Use objfile_flags. Fix add_flags vs
1106 flags confusion.
1107 (symbol_file_command): Use objfile_flags.
1108 (add_symbol_file_command): Use symfile_add_flags and
1109 objfile_flags.
1110 (clear_symtab_users): Use symfile_add_flags.
1111 * symfile.h: Include "symfile-add-flags.h" and "objfile-flags.h".
1112 (struct sym_fns) <sym_read>: Use symfile_add_flags.
1113 (clear_symtab_users): Use symfile_add_flags.
1114 (enum symfile_add_flags): Delete, moved to symfile-add-flags.h and
1115 converted to enum-flags.
1116 (symbol_file_add, symbol_file_add_from_bfd)
1117 (symbol_file_add_separate): Use symfile_add_flags.
1118 * xcoffread.c (xcoff_initial_scan): Use symfile_add_flags.
1119
85ad3aaf
PA
11202016-10-26 Pedro Alves <palves@redhat.com>
1121
1122 * inferior.h (ALL_NON_EXITED_INFERIORS): New macro.
1123 * infrun.c (do_target_resume): Call target_commit_resume.
1124 (proceed): Defer target_commit_resume while looping over threads,
1125 resuming them. Call target_commit_resume at the end.
1126 * record-btrace.c (record_btrace_commit_resume): New function.
1127 (init_record_btrace_ops): Install it as to_commit_resume method.
1128 * record-full.c (record_full_commit_resume): New function.
1129 (record_full_wait_1): Call the beneath target's to_commit_resume
1130 method.
1131 (init_record_full_ops): Install record_full_commit_resume as
1132 to_commit_resume method.
1133 * remote.c (struct private_thread_info) <last_resume_step,
1134 last_resume_sig, vcont_resumed>: New fields.
1135 (remote_add_thread): Set the new thread's vcont_resumed flag.
1136 (demand_private_info): Delete.
1137 (get_private_info_thread, get_private_info_ptid): New functions.
1138 (remote_update_thread_list): Adjust.
1139 (process_initial_stop_replies): Clear the thread's vcont_resumed
1140 flag.
1141 (remote_resume): If connected in non-stop mode, record the resume
1142 request and return early.
1143 (struct private_inferior): New.
1144 (struct vcont_builder): New.
1145 (vcont_builder_restart, vcont_builder_flush)
1146 (vcont_builder_push_action): New functions.
1147 (MAX_ACTION_SIZE): New macro.
1148 (remote_commit_resume): New function.
1149 (thread_pending_fork_status, is_pending_fork_parent_thread): New
1150 functions.
1151 (check_pending_event_prevents_wildcard_vcont_callback)
1152 (check_pending_events_prevent_wildcard_vcont): New functions.
1153 (process_stop_reply): Adjust. Clear the thread's vcont_resumed
1154 flag.
1155 (init_remote_ops): Install remote_commit_resume.
1156 * target-delegates.c: Regenerate.
1157 * target.c (defer_target_commit_resume): New global.
1158 (target_commit_resume, make_cleanup_defer_target_commit_resume):
1159 New functions.
1160 * target.h (struct target_ops) <to_commit_resume>: New field.
1161 (target_resume): Update comments.
1162 (target_commit_resume): New declaration.
1163
ef4a3395
PA
11642016-10-26 Pedro Alves <palves@redhat.com>
1165
1166 * inferior.c (exit_inferior_1): Free 'priv'.
1167
7b68ffbb
PA
11682016-10-26 Pedro Alves <palves@redhat.com>
1169
1170 * remote.c (remote_resume_with_hc): New function, factored out
1171 from ...
1172 (remote_resume): ... this. Always try vCont first.
1173 (remote_vcont_resume): Rename to ...
1174 (remote_resume_with_vcont): ... this. Bail out if execution
1175 direction is reverse.
1176
beb18c86
PA
11772016-10-25 Pedro Alves <palves@redhat.com>
1178
1179 * dwarf2expr.h (struct dwarf_expr_context) <~dwarf_expr_context>:
1180 Make virtual.
1181
b196bc4c
RO
11822016-10-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1183
1184 PR build/20712
1185 * defs.h: Remove obsolete comment
1186 (atof): Remove.
1187 * procfs.c (do_destroy_procinfo_cleanup): Add cast.
1188 (sysset_t_alloc): Likewise.
1189 (proc_set_traced_sysentry): Likewise.
1190 (proc_set_traced_sysexit): Likewise.
1191 [!PIOCLSTATUS && NEW_PROC_API] (do_closedir_cleanup): Likewise.
1192 (proc_get_LDT_entry): Initiate cleanups before returns.
1193 (procfs_wait): Use GDB_SIGNAL_0.
1194 (procfs_corefile_thread_callback): Add cast.
1195 * sol-thread.c (td_log_ftype, td_ta_new_ftype, td_ta_delete_ftype)
1196 (td_init_ftype, td_ta_get_ph_ftype, td_ta_get_nthreads_ftype)
1197 (td_ta_tsd_iter_ftype, td_ta_thr_iter_ftype)
1198 (td_thr_validate_ftype, td_thr_tsd_ftype, td_thr_get_info_ftype)
1199 (td_thr_getfpregs_ftype, td_thr_getxregsize_ftype)
1200 (td_thr_getxregs_ftype, td_thr_sigsetmask_ftype)
1201 (td_thr_setprio_ftype, td_thr_setsigpending_ftype)
1202 (td_thr_setfpregs_ftype, td_thr_setxregs_ftype)
1203 (td_ta_map_id2thr_ftype, td_ta_map_lwp2thr_ftype)
1204 (td_thr_getgregs_ftype, td_thr_setgregs_ftype): New typedefs.
1205 (p_td_log, p_td_ta_new, p_td_ta_delete, p_td_init, p_td_ta_get_ph)
1206 (p_td_ta_get_nthreads, p_td_ta_tsd_iter, p_td_ta_thr_iter)
1207 (p_td_thr_validate, p_td_thr_tsd, p_td_thr_get_info)
1208 (p_td_thr_getfpregs, p_td_thr_getxregsize, p_td_thr_getxregs)
1209 (p_td_thr_sigsetmask, p_td_thr_setprio, p_td_thr_setsigpending)
1210 (p_td_thr_setfpregs, p_td_thr_setxregs, p_td_ta_map_id2thr)
1211 (p_td_ta_map_lwp2thr, p_td_thr_getgregs, p_td_thr_setgregs): Use them.
1212 (ps_pdread): Add cast.
1213 (ps_ptread): Likewise.
1214 (resolve): Likewise.
1215 * top.c (gdb_safe_append_history): Print pid_t as long.
1216
b30f354a
PA
12172016-10-25 Pedro Alves <palves@redhat.com>
1218
1219 * common/common-defs.h (__STDC_FORMAT_MACROS): Define.
1220
e4426cb4
PA
12212016-10-25 Pedro Alves <palves@redhat.com>
1222
1223 * common/new-op.c: Add comment about -fsanitize=address.
1224
28fe4f87
PA
12252016-10-25 Pedro Alves <palves@redhat.com>
1226
1227 * common/common-defs.h (__STDC_CONSTANT_MACROS)
1228 (__STDC_LIMIT_MACROS): Define.
1229
3ef9d661
YQ
12302016-10-25 Yao Qi <yao.qi@linaro.org>
1231
1232 PR gdb/20716
1233 * common/new-op.c (__has_feature): New macro.
1234 Don't override operator new if asan is used.
1235
b5e1db87
LM
12362016-10-24 Luis Machado <lgustavo@codesourcery.com>
1237
1238 * exec.c (exec_file_locate_attach): Prevent NULL pointer dereference
1239 when duplicating a string.
1240
010ece9c
LM
12412016-10-24 Luis Machado <lgustavo@codesourcery.com>
1242
1243 * exec.c (exception_print_same): Fix string comparison to use
1244 statically-allocated ones.
1245
befbff86
TT
12462016-10-21 Tom Tromey <tom@tromey.com>
1247
1248 * dwarf2expr.h (class dwarf_expr_context)
1249 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
1250 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
1251 Now pure virtual.
1252 * dwarf2-frame.c (class dwarf_expr_executor)
1253 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
1254 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
1255 New methods.
1256 <invalid>: New method.
1257
ce6c454e
TT
12582016-10-21 Tom Tromey <tom@tromey.com>
1259
1260 * minsyms.h (minimal_symbol_reader::record_full): "copy_name" now
1261 a bool.
1262 (record, record_with_info): Update.
1263 * minsyms.c (record): Fix indentation.
1264 (record_full): Fix indentation. Update for type change.
1265 * elfread.c (record_minimal_symbol): "copy_name" now a bool.
1266 (elf_symtab_read): "copy_names" now a bool.
1267 (elf_rel_plt_read, elf_read_minimal_symbols): Update.
1268
f60ee22e
TT
12692016-10-21 Tom Tromey <tom@tromey.com>
1270
1271 * main.c: Include <vector>.
1272 (cmdarg_s): Remove typedef. Don't define VEC.
1273 (captured_main_1): Use vector, not VEC. Remove cleanups.
1274
192ca6d8
TT
12752016-10-21 Tom Tromey <tom@tromey.com>
1276
1277 * dwarf2loc.c (struct dwarf_expr_context_funcs): Don't declare.
1278 (dwarf_expr_read_addr_from_reg, dwarf_expr_get_reg_value)
1279 (dwarf_expr_read_mem, dwarf_expr_frame_base): Rename; turn into
1280 methods.
1281 (get_frame_pc_for_per_cu_dwarf_call): New function.
1282 (dwarf_expr_frame_cfa, dwarf_expr_frame_pc)
1283 (dwarf_expr_tls_address): Rename; turn into methods.
1284 (per_cu_dwarf_call): Remove arguments. Use
1285 get_frame_pc_for_per_cu_dwarf_call.
1286 (dwarf_evaluate_loc_desc): New class.
1287 (dwarf_expr_dwarf_call, dwarf_expr_context)
1288 (dwarf_expr_push_dwarf_reg_entry_value)
1289 (dwarf_expr_get_addr_index, dwarf_expr_get_obj_addr): Rename; turn
1290 into methods.
1291 (dwarf_expr_ctx_funcs): Remove.
1292 (dwarf2_evaluate_loc_desc_full): Update.
1293 (dwarf2_locexpr_baton_eval): Update.
1294 (symbol_needs_eval_context): New class.
1295 (symbol_needs_read_addr_from_reg, symbol_needs_get_reg_value)
1296 (symbol_needs_read_mem, symbol_needs_frame_base)
1297 (symbol_needs_frame_cfa, symbol_needs_tls_address)
1298 (symbol_needs_dwarf_call, needs_dwarf_reg_entry_value): Rename;
1299 turn into methods.
1300 (needs_get_addr_index, needs_get_obj_addr): Remove; turn into
1301 methods.
1302 (symbol_needs_ctx_funcs): Remove.
1303 (dwarf2_loc_desc_get_symbol_read_needs): Update.
1304 * dwarf2expr.h (struct dwarf_expr_context_funcs): Remove; turn
1305 contents into methods.
1306 (struct dwarf_expr_context) <baton, funcs>: Remove.
1307 <read_addr_from_reg, get_reg_value, read_mem, get_frame_base,
1308 get_frame_cfa, get_frame_pc, get_tls_address, dwarf_call,
1309 impl_get_base_type, push_dwarf_block_entry_value, get_addr_index,
1310 get_object_address>: Declare new methods.
1311 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1312 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1313 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
1314 (ctx_no_get_addr_index): Don't declare.
1315 * dwarf2expr.c (get_base_type): Use impl_get_base_type.
1316 (execute_stack_op): Update.
1317 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1318 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1319 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
1320 (ctx_no_get_addr_index): Remove; now methods on
1321 dwarf_expr_context.
1322 * dwarf2-frame.c (read_addr_from_reg): Take a frame_info, not a
1323 baton.
1324 (class dwarf_expr_executor): New class.
1325 (get_reg_value, read_mem): Rename, turn into methods.
1326 (execute_stack_op): Use dwarf_expr_executor.
1327
595d2e30
TT
13282016-10-21 Tom Tromey <tom@tromey.com>
1329
1330 * dwarf2loc.c (per_cu_dwarf_call)
1331 (dwarf_expr_push_dwarf_reg_entry_value)
1332 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
1333 (needs_dwarf_reg_entry_value)
1334 (dwarf2_loc_desc_get_symbol_read_needs): Update.
1335 * dwarf2expr.h (dwarf_expr_context) <push_address, eval, fetch,
1336 fetch_address, fetch_in_stack_memory, address_type, grow_stack,
1337 push, stack_empty_p, add_piece, get_base_type, execute_stack_op,
1338 pop>: New method declarations.
1339 (dwarf_expr_push_address, dwarf_expr_eval, dwarf_expr_fetch)
1340 (dwarf_expr_fetch_address, dwarf_expr_fetch_in_stack_memory):
1341 Don't declare.
1342 * dwarf2expr.c (address_type, grow_stack, push, push_address)
1343 (pop, fetch, fetch_address, fetch_in_stack_memory)
1344 (stack_empty_p, add_piece, eval, get_base_type)
1345 (execute_stack_op): Rename. Turn into methods.
1346 * dwarf2-frame.c (execute_stack_op): Update.
1347
718b9626
TT
13482016-10-21 Tom Tromey <tom@tromey.com>
1349
1350 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Stack-allocate
1351 dwarf_expr_context. Remove cleanups.
1352 (dwarf2_locexpr_baton_eval)
1353 (dwarf2_loc_desc_get_symbol_read_needs): Likewise.
1354 * dwarf2expr.h (dwarf_expr_context, ~dwarf_expr_context): Add
1355 constructors and destructors.
1356 (new_dwarf_expr_context, free_dwarf_expr_context)
1357 (make_cleanup_free_dwarf_expr_context): Don't declare.
1358 * dwarf2-frame.c (execute_stack_op): Stack-allocate
1359 dwarf_expr_context. Remove cleanups.
1360 (dwarf_expr_context): Rename from new_dwarf_expr_context. Turn
1361 into constructor.
1362 (free_dwarf_expr_context, free_dwarf_expr_context_cleanup):
1363 Remove.
1364 (~dwarf_expr_context): Rename from
1365 make_cleanup_free_dwarf_expr_context. Turn into destructor.
1366
58414334
TT
13672016-10-21 Tom Tromey <tom@tromey.com>
1368
1369 * dwarf2loc.c: Include <vector>.
1370 (read_pieced_value, write_pieced_value)
1371 (dwarf2_compile_expr_to_ax): Use std::vector.
1372
67ad9399
TT
13732016-10-21 Tom Tromey <tom@tromey.com>
1374
1375 * stack.c (print_stack_frame_to_uiout): Use scoped_restore.
1376 * ui-out.c (make_cleanup_restore_current_uiout)
1377 (restore_current_uiout_cleanup): Remove.
1378 * infrun.c (print_stop_event): Use scoped_restore.
1379 * ui-out.h (make_cleanup_restore_current_uiout): Don't declare.
1380
d1e4a624
TT
13812016-10-21 Tom Tromey <tom@tromey.com>
1382
1383 * elfread.c (elf_read_minimal_symbols): Use gdb::unique_ptr.
1384
cd9da5b0
TT
13852016-10-21 Tom Tromey <tom@tromey.com>
1386
1387 * cli/cli-dump.c (dump_memory_to_file): Use gdb::unique_ptr.
1388 (restore_binary_file): Likewise.
1389
1e3b796d
TT
13902016-10-21 Tom Tromey <tom@tromey.com>
1391
1392 * maint.h (scoped_command_stats): New class.
1393 (make_command_stats_cleanup): Don't declare.
1394 * maint.c (struct cmd_stats): Remove.
1395 (~scoped_command_stats): Rename from report_command_stats. Now a
1396 destructor.
1397 (scoped_command_stats): Rename from make_command_stats_cleanup.
1398 Now a constructor.
1399 * main.c (captured_main_1): New function. Use
1400 scoped_command_stats.
1401 (captured_main): Call captured_main_1.
1402 * event-top.c (command_handler): Use scoped_command_stats.
1403
6fc31fc7
TT
14042016-10-21 Tom Tromey <tom@tromey.com>
1405
1406 * mi/mi-main.c (mi_cmd_data_read_memory): Use gdb::unique_ptr.
1407 Remove some cleanups.
1408
0e454242
TT
14092016-10-21 Tom Tromey <tom@tromey.com>
1410
1411 * tui/tui-interp.c (tui_on_normal_stop, tui_on_signal_received)
1412 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
1413 (tui_on_no_history, tui_on_user_selected_context_changed):
1414 Update.
1415 * top.h (switch_thru_all_uis): New class.
1416 (SWITCH_THRU_ALL_UIS): Rewrite.
1417 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
1418 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Don't
1419 declare.
1420 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1421 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1422 (mi_inferior_exit, mi_inferior_removed, mi_on_signal_received)
1423 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1424 (mi_on_no_history, mi_on_normal_stop, mi_traceframe_changed)
1425 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1426 (mi_breakpoint_created, mi_breakpoint_deleted)
1427 (mi_breakpoint_modified, mi_output_running_pid, mi_on_resume)
1428 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
1429 (mi_memory_changed, mi_user_selected_context_changed): Update.
1430 * infrun.c (all_uis_check_sync_execution_done)
1431 (all_uis_on_sync_execution_starting, normal_stop): Update.
1432 * event-top.c (restore_ui_cleanup)
1433 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
1434 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Remove.
1435 * cli/cli-interp.c (cli_on_normal_stop, cli_on_signal_received)
1436 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
1437 (cli_on_no_history, cli_on_user_selected_context_changed):
1438 Update.
1439 * breakpoint.c (watchpoint_check): Update.
1440
8dddcb8f
TT
14412016-10-21 Tom Tromey <tom@tromey.com>
1442
1443 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab): Add
1444 "reader" argument. Update.
1445 (xcoff_initial_scan): Update.
1446 * symfile.h (mdebug_build_psymtabs): Add "reader" argument.
1447 * mipsread.c (mipscoff_symfile_read): Update.
1448 (read_alphacoff_dynamic_symtab): Add "reader" argument. Update.
1449 * minsyms.h (minimal_symbol_reader) <record, record_full>:
1450 Declare.
1451 <m_msym_bunch, m_msym_bunch_index, m_msym_count>: New members.
1452 <record_with_info>: New function, renamed from
1453 prim_record_minimal_symbol_and_info.
1454 * minsyms.c (msym_bunch, msym_bunch_index, msym_count): Remove
1455 globals.
1456 (minimal_symbol_reader): Initialize new members.
1457 (minimal_symbol_reader::record): Renamed from
1458 prim_record_minimal_symbol.
1459 (minimal_symbol_reader::record_full): Renamed from
1460 prim_record_minimal_symbol_full.
1461 (prim_record_minimal_symbol_and_info): Move to minsyms.h; rename.
1462 * mdebugread.c (mdebug_build_psymtabs, parse_partial_symbols)
1463 (record_minimal_symbol): Add "reader" argument. Update.
1464 (elfmdebug_build_psymtabs): Update.
1465 * machoread.c (macho_symtab_add_minsym, macho_symtab_read): Add
1466 "reader" argument. Update.
1467 (macho_symfile_read): Update.
1468 * elfread.c (record_minimal_symbol, elf_symtab_read)
1469 (elf_rel_plt_read): Add "reader" argument. Update.
1470 (elf_read_minimal_symbols): Update.
1471 * dbxread.c (record_minimal_symbol, read_dbx_dynamic_symtab)
1472 (read_dbx_symtab): Add "reader" argument. Update.
1473 (dbx_symfile_read): Update.
1474 * coffread.c (record_minimal_symbol, coff_symtab_read): Add
1475 "reader" argument. Update.
1476 (coff_symfile_read): Update.
1477 * coff-pe-read.h (read_pe_exported_syms): Add "reader" argument.
1478 * coff-pe-read.c (add_pe_exported_sym, add_pe_forwarded_sym)
1479 (read_pe_exported_syms): Add "reader" argument. Update.
1480
d25e8719
TT
14812016-10-21 Tom Tromey <tom@tromey.com>
1482
1483 * xcoffread.c (xcoff_initial_scan): Update.
1484 * mipsread.c (mipscoff_symfile_read): Update.
1485 * minsyms.c (minimal_symbol_reader): Add obj argument.
1486 Initialize member.
1487 (install): Remove objfile argument. Update.
1488 * mdebugread.c (elfmdebug_build_psymtabs): Update.
1489 * machoread.c (macho_symfile_read): Update.
1490 * elfread.c (elf_read_minimal_symbols): Update.
1491 * dbxread.c (dbx_symfile_read): Update.
1492 * coffread.c (coff_symfile_read): Update.
1493 * minsyms.h (minimal_symbol_reader): Add m_objfile member.
1494 (constructor): Add objfile argument.
1495 (minimal_symbol_reader::install): Remove objfile argument.
1496
873a915e
TT
14972016-10-21 Tom Tromey <tom@tromey.com>
1498
1499 * xcoffread.c (xcoff_initial_scan): Use
1500 minimal_symbol_reader.
1501 * mipsread.c (mipscoff_symfile_read): Use
1502 minimal_symbol_reader.
1503 * minsyms.h (minimal_symbol_reader): New class.
1504 (init_minimal_symbol_collection)
1505 (make_cleanup_discard_minimal_symbols, install_minimal_symbols):
1506 Don't declare.
1507 * minsyms.c (minimal_symbol_reader): Renamed from
1508 init_minimal_symbol_collection, turned into constructor.
1509 (~minimal_symbol_reader): Renamed from
1510 do_discard_minimal_symbols_cleanup, turned into destructor.
1511 (make_cleanup_discard_minimal_symbols): Remove.
1512 (minimal_symbol_reader::install): Rename form
1513 install_minimal_symbols.
1514 * mdebugread.c (elfmdebug_build_psymtabs): Use
1515 minimal_symbol_reader.
1516 * machoread.c (macho_symfile_read): Use
1517 minimal_symbol_reader.
1518 * elfread.c (elf_read_minimal_symbols): Use
1519 minimal_symbol_reader.
1520 * dbxread.c (dbx_symfile_read): Use minimal_symbol_reader.
1521 * coffread.c (coff_symfile_read): Use
1522 minimal_symbol_reader.
1523
4b6749b9
TT
15242016-10-21 Tom Tromey <tom@tromey.com>
1525
1526 * top.c (new_ui_command, wait_sync_command_done)
1527 (gdb_readline_wrapper): Use scoped_restore.
1528 * infrun.c (fetch_inferior_event): Use scoped_restore.
1529 * infcall.c (call_thread_fsm_should_stop): Use scoped_restore.
1530
97468094
TT
15312016-10-21 Tom Tromey <tom@tromey.com>
1532
1533 * utils.c (make_cleanup_restore_ui_file, do_restore_ui_file)
1534 (struct restore_ui_file_closure): Remove.
1535 * utils.h (make_cleanup_restore_ui_file): Don't declare.
1536 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1537 scoped_restore.
1538 * top.c (execute_command_to_string): Use scoped_restore.
1539
b7b633e9
TT
15402016-10-21 Tom Tromey <tom@tromey.com>
1541
1542 * common/scoped_restore.h: New file.
1543 * utils.h: Include scoped_restore.h.
1544 * top.c (execute_command_to_string): Use scoped_restore.
1545 * python/python.c (python_interactive_command): Use
1546 scoped_restore.
1547 (python_command, execute_gdb_command): Likewise.
1548 * printcmd.c (do_one_display): Use scoped_restore.
1549 * mi/mi-main.c (exec_continue): Use scoped_restore.
1550 * mi/mi-cmd-var.c (mi_cmd_var_assign): Use scoped_restore.
1551 * linux-fork.c (checkpoint_command): Use scoped_restore.
1552 * infrun.c (restore_execution_direction): Remove.
1553 (fetch_inferior_event): Use scoped_restore.
1554 * compile/compile.c (compile_file_command): Use
1555 scoped_restore.
1556 (compile_code_command, compile_print_command): Likewise.
1557 * cli/cli-script.c (execute_user_command): Use
1558 scoped_restore.
1559 (while_command, if_command, script_from_file): Likewise.
1560 * arm-tdep.c (arm_insert_single_step_breakpoint): Use
1561 scoped_restore.
1562
9a1e3f00
TT
15632016-10-21 Tom Tromey <tom@tromey.com>
1564
1565 * xcoffread.c (read_xcoff_symtab): Make "filestring" const.
1566
d11261fc
UW
15672016-10-21 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1568 Ulrich Weigand <uweigand@de.ibm.com>
1569
1570 * xcoffread.c (read_xcoff_symtab): Make name of current file as
1571 pst->filename instead of _start_ in AIX.
1572
4db41a0a
PR
15732016-10-21 Philipp Rudo <prudo@linux.vnet.ibm.com>
1574
1575 * solist.h (struct target_so_ops): Delete special_symbol_handling
1576 hook.
1577 * solib.c (solib_add, reload_shared_libraries): Adjust.
1578 * solib-aix.c (solib_aix_special_symbol_handling): Delete
1579 (_initialize_solib_aix): Adjust
1580 * solib-darwin.c (darwin_special_symbol_handling): Delete
1581 (_initialize_darwin_solib): Adjust
1582 * solib-dsbt.c (dsbt_special_symbol_handling): Delete
1583 (_initialize_dsbt_solib): Adjust
1584 * solib-frv.c (frv_special_symbol_handling): Delete
1585 (_initialize_frv_solib): Adjust
1586 * solib-svr4.c (svr4_special_symbol_handling): Delete
1587 (_initialize_svr4_solib): Adjust
1588 * solib-target.c (solib_target_special_symbol_handling): Delete
1589 (_initialize_solib_target): Adjust
1590
78836e90
YQ
15912016-10-20 Yao Qi <yao.qi@linaro.org>
1592
1593 * configure.tgt: Don't configure if target is *-*-vxworks*.
1594
f77a9b48
PA
15952016-10-19 Pedro Alves <palves@redhat.com>
1596
1597 * config.in: Regenerate.
1598
f6abaf7a
PA
15992016-10-18 Pedro Alves <palves@redhat.com>
1600
1601 * common/common-defs.h (__STDC_CONSTANT_MACROS)
1602 (__STDC_LIMIT_MACROS): Delete.
1603
49e4877c
PA
16042016-10-18 Pedro Alves <palves@redhat.com>
1605
1606 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1607 2692e23a48e21f6daa029e8af9f1a143b7532f47.
1608 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
1609 Regenerate.
1610 * gnulib/import/Makefile: Update.
1611 * gnulib/import/alloca: Update.
1612 * gnulib/import/basename-lgpl: Update.
1613 * gnulib/import/canonicalize-lgpl: Update.
1614 * gnulib/import/config: Update.
1615 * gnulib/import/dirent: Update.
1616 * gnulib/import/dirfd: Update.
1617 * gnulib/import/dirname-lgpl: Update.
1618 * gnulib/import/dirname.h: Update.
1619 * gnulib/import/dosname.h: Update.
1620 * gnulib/import/errno: Update.
1621 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
1622 * gnulib/import/extra/snippet/c++defs.h: Update.
1623 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1624 * gnulib/import/extra/update-copyright: Update.
1625 * gnulib/import/flexmember.h: Update.
1626 * gnulib/import/float+.h: Update.
1627 * gnulib/import/float: Update.
1628 * gnulib/import/float: Update.
1629 * gnulib/import/fnmatch: Update.
1630 * gnulib/import/fnmatch: Update.
1631 * gnulib/import/fnmatch_loop: Update.
1632 * gnulib/import/fpucw.h: Update.
1633 * gnulib/import/frexp: Update.
1634 * gnulib/import/frexpl: Update.
1635 * gnulib/import/gettimeofday: Update.
1636 * gnulib/import/hard-locale: Update.
1637 * gnulib/import/hard-locale.h: Update.
1638 * gnulib/import/inttypes: Update.
1639 * gnulib/import/isnan: Update.
1640 * gnulib/import/isnand-nolibm.h: Update.
1641 * gnulib/import/isnand: Update.
1642 * gnulib/import/isnanl-nolibm.h: Update.
1643 * gnulib/import/isnanl: Update.
1644 * gnulib/import/itold: Update.
1645 * gnulib/import/limits: Update.
1646 * gnulib/import/localcharset: Update.
1647 * gnulib/import/localcharset.h: Update.
1648 * gnulib/import/lstat: Update.
1649 * gnulib/import/m4/00gnulib: Update.
1650 * gnulib/import/m4/absolute-header: Update.
1651 * gnulib/import/m4/alloca: Update.
1652 * gnulib/import/m4/canonicalize: Update.
1653 * gnulib/import/m4/codeset: Update.
1654 * gnulib/import/m4/configmake: Update.
1655 * gnulib/import/m4/dirent_h: Update.
1656 * gnulib/import/m4/dirfd: Update.
1657 * gnulib/import/m4/dirname: Update.
1658 * gnulib/import/m4/double-slash-root: Update.
1659 * gnulib/import/m4/eealloc: Update.
1660 * gnulib/import/m4/errno_h: Update.
1661 * gnulib/import/m4/exponentd: Update.
1662 * gnulib/import/m4/exponentl: Update.
1663 * gnulib/import/m4/extensions: Update.
1664 * gnulib/import/m4/extern-inline: Update.
1665 * gnulib/import/m4/fcntl-o: Update.
1666 * gnulib/import/m4/flexmember: Update.
1667 * gnulib/import/m4/float_h: Update.
1668 * gnulib/import/m4/fnmatch: Update.
1669 * gnulib/import/m4/fpieee: Update.
1670 * gnulib/import/m4/frexp: Update.
1671 * gnulib/import/m4/frexpl: Update.
1672 * gnulib/import/m4/gettimeofday: Update.
1673 * gnulib/import/m4/glibc21: Update.
1674 * gnulib/import/m4/gnulib-cache: Update.
1675 * gnulib/import/m4/gnulib-common: Update.
1676 * gnulib/import/m4/gnulib-comp: Update.
1677 * gnulib/import/m4/gnulib-tool: Update.
1678 * gnulib/import/m4/hard-locale: Update.
1679 * gnulib/import/m4/include_next: Update.
1680 * gnulib/import/m4/inttypes-pri: Update.
1681 * gnulib/import/m4/inttypes: Update.
1682 * gnulib/import/m4/isnand: Update.
1683 * gnulib/import/m4/isnanl: Update.
1684 * gnulib/import/m4/largefile: Update.
1685 * gnulib/import/m4/limits-h: Update.
1686 * gnulib/import/m4/localcharset: Update.
1687 * gnulib/import/m4/locale-fr: Update.
1688 * gnulib/import/m4/locale-ja: Update.
1689 * gnulib/import/m4/locale-zh: Update.
1690 * gnulib/import/m4/longlong: Update.
1691 * gnulib/import/m4/lstat: Update.
1692 * gnulib/import/m4/malloc: Update.
1693 * gnulib/import/m4/malloca: Update.
1694 * gnulib/import/m4/math_h: Update.
1695 * gnulib/import/m4/mbrtowc: Update.
1696 * gnulib/import/m4/mbsinit: Update.
1697 * gnulib/import/m4/mbsrtowcs: Update.
1698 * gnulib/import/m4/mbstate_t: Update.
1699 * gnulib/import/m4/memchr: Update.
1700 * gnulib/import/m4/memmem: Update.
1701 * gnulib/import/m4/mmap-anon: Update.
1702 * gnulib/import/m4/multiarch: Update.
1703 * gnulib/import/m4/nocrash: Update.
1704 * gnulib/import/m4/off_t: Update.
1705 * gnulib/import/m4/pathmax: Update.
1706 * gnulib/import/m4/rawmemchr: Update.
1707 * gnulib/import/m4/readlink: Update.
1708 * gnulib/import/m4/rename: Update.
1709 * gnulib/import/m4/rmdir: Update.
1710 * gnulib/import/m4/signal_h: Update.
1711 * gnulib/import/m4/ssize_t: Update.
1712 * gnulib/import/m4/stat: Update.
1713 * gnulib/import/m4/stdbool: Update.
1714 * gnulib/import/m4/stddef_h: Update.
1715 * gnulib/import/m4/stdint: Update.
1716 * gnulib/import/m4/stdio_h: Update.
1717 * gnulib/import/m4/stdlib_h: Update.
1718 * gnulib/import/m4/strchrnul: Update.
1719 * gnulib/import/m4/string_h: Update.
1720 * gnulib/import/m4/strstr: Update.
1721 * gnulib/import/m4/strtok_r: Update.
1722 * gnulib/import/m4/sys_socket_h: Update.
1723 * gnulib/import/m4/sys_stat_h: Update.
1724 * gnulib/import/m4/sys_time_h: Update.
1725 * gnulib/import/m4/sys_types_h: Update.
1726 * gnulib/import/m4/time_h: Update.
1727 * gnulib/import/m4/unistd_h: Update.
1728 * gnulib/import/m4/warn-on-use: Update.
1729 * gnulib/import/m4/wchar_h: Update.
1730 * gnulib/import/m4/wchar_t: Update.
1731 * gnulib/import/m4/wctype_h: Update.
1732 * gnulib/import/m4/wint_t: Update.
1733 * gnulib/import/malloc: Update.
1734 * gnulib/import/malloca: Update.
1735 * gnulib/import/malloca.h: Update.
1736 * gnulib/import/math: Update.
1737 * gnulib/import/math: Update.
1738 * gnulib/import/mbrtowc: Update.
1739 * gnulib/import/mbsinit: Update.
1740 * gnulib/import/mbsrtowcs-impl.h: Update.
1741 * gnulib/import/mbsrtowcs-state: Update.
1742 * gnulib/import/mbsrtowcs: Update.
1743 * gnulib/import/memchr: Update.
1744 * gnulib/import/memmem: Update.
1745 * gnulib/import/pathmax.h: Update.
1746 * gnulib/import/rawmemchr: Update.
1747 * gnulib/import/readlink: Update.
1748 * gnulib/import/ref-add.sin: Update.
1749 * gnulib/import/ref-del.sin: Update.
1750 * gnulib/import/rename: Update.
1751 * gnulib/import/rmdir: Update.
1752 * gnulib/import/same-inode.h: Update.
1753 * gnulib/import/signal: Update.
1754 * gnulib/import/stat: Update.
1755 * gnulib/import/stdbool: Update.
1756 * gnulib/import/stddef: Update.
1757 * gnulib/import/stdint: Update.
1758 * gnulib/import/stdio: Update.
1759 * gnulib/import/stdlib: Update.
1760 * gnulib/import/str-two-way.h: Update.
1761 * gnulib/import/strchrnul: Update.
1762 * gnulib/import/streq.h: Update.
1763 * gnulib/import/string: Update.
1764 * gnulib/import/stripslash: Update.
1765 * gnulib/import/strnlen1: Update.
1766 * gnulib/import/strnlen1.h: Update.
1767 * gnulib/import/strstr: Update.
1768 * gnulib/import/strtok_r: Update.
1769 * gnulib/import/sys_stat: Update.
1770 * gnulib/import/sys_time: Update.
1771 * gnulib/import/sys_types: Update.
1772 * gnulib/import/time: Update.
1773 * gnulib/import/unistd: Update.
1774 * gnulib/import/unistd: Update.
1775 * gnulib/import/verify.h: Update.
1776 * gnulib/import/wchar: Update.
1777 * gnulib/import/wctype: Update.
1778 * gnulib/import/flexmember.h: New file.
1779 * gnulib/import/hard-locale.c: New file.
1780 * gnulib/import/hard-locale.h: New file.
1781 * gnulib/import/limits.in.h: New file.
1782 * gnulib/import/m4/flexmember.m4: New file.
1783 * gnulib/import/m4/hard-locale.m4: New file.
1784 * gnulib/import/m4/limits-h.m4: New file.
1785
da804164
PA
17862016-10-18 Pedro Alves <palves@redhat.com>
1787
1788 * common/common-defs.h: Include "gdb_unique_ptr.h".
1789 * common/gdb_unique_ptr.h: New.
1790
ae71e7b5
MR
17912016-10-18 Maciej W. Rozycki <macro@imgtec.com>
1792
1793 * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
1794 is `bfd_arch_i386' before proceeding.
1795 (i386_mpx_set_bounds): Likewise.
1796
b348d11b
MR
17972016-10-18 Maciej W. Rozycki <macro@imgtec.com>
1798
1799 * tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long'
1800 type for `operands'.
1801
5bad3170
SM
18022016-10-17 Simon Marchi <simon.marchi@ericsson.com>
1803
1804 * mi/mi-main.c (mi_cmd_trace_save): Check if argument is present
1805 before using it.
1806
5562a44e
PA
18072016-10-17 Pedro Alves <palves@redhat.com>
1808
1809 * charset.h (class wchar_iterator) [PHONY_ICONV] <m_desc>: Use
1810 'int' as type.
1811
754c39c2
UW
18122016-10-14 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1813 Ulrich Weigand <uweigand@de.ibm.com>
1814
1815 * solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot
1816 path is set properly if program has a dependency on .a archive and
1817 sysroot is set via set sysroot command.
1818
afb1110b
MM
18192016-10-14 Markus Metzger <markus.t.metzger@intel.com>
1820
1821 * nat/linux-btrace.c: Remove leftover comment.
1822
8ffc1bb1
EZ
18232016-10-14 Eli Zaretskii <eliz@gnu.org>
1824
1825 * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if
1826 available, to get prototypes of 'strcasecmp' and 'strncasecmp'.
1827
1f2e9c5e
PA
18282016-10-13 Pedro Alves <palves@redhat.com>
1829
1830 * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead.
1831 (false, true): Remove checks.
1832
af533a5f
TT
18332016-10-12 Tom Tromey <tom@tromey.com>
1834
1835 * machoread.c (macho_symfile_read_all_oso): Use std::string.
1836
d1a760cb
TT
18372016-10-12 Tom Tromey <tom@tromey.com>
1838
1839 * tracepoint.c (trace_dump_command): Remove unnecessary
1840 null_cleanup.
1841
cda6c55b
TT
18422016-10-12 Tom Tromey <tom@tromey.com>
1843
1844 * valprint.c (generic_emit_char, count_next_character)
1845 (generic_printstr): Update.
1846 * charset.c (struct wchar_iterator): Move to charset.h.
1847 (wchar_iterator::wchar_iterator): Rename from
1848 make_wchar_iterator, turn into a constructor.
1849 (wchar_iterator::~wchar_iterator): Rename from
1850 do_cleanup_iterator, turn into a destructor.
1851 (make_cleanup_wchar_iterator): Remove.
1852 (wchar_iterator::iterate): Rename from wchar_iterate. Remove
1853 "iter" argument. Update.
1854 * charset.h: Include <vector>.
1855 (class wchar_iterator): New class, from old struct
1856 wchar_iterator.
1857 (make_wchar_iterator, make_cleanup_wchar_iterator): Don't
1858 declare.
1859
816d7b53
TT
18602016-10-12 Tom Tromey <tom@tromey.com>
1861
1862 * selftest.c: Include <vector>, not "vec.h".
1863 (self_test_function_ptr): Remove.
1864 (tests): Now a std::vector.
1865 (register_self_test, run_self_tests): Update.
1866
bfd28288
PA
18672016-10-13 Pedro Alves <palves@redhat.com>
1868 Tom Tromey <tom@tromey.com>
1869
1870 * tid-parse.h (tid_range_parser): New class.
1871 (enum tid_range_state): Move into tid_range_parser's scope.
1872 Remove TID_RANGE_ prefix from all values.
1873 (tid_range_parser_get_tid, tid_range_parser_get_tid_range)
1874 (tid_range_parser_star_range, tid_range_parser_finished)
1875 (tid_range_parser_skip, tid_range_parser_qualified): Don't
1876 declare.
1877 (tid_is_in_list): Update comment.
1878 * tid-parse.c (tid_range_parser::tid_range_parser): New.
1879 (init, finished, get_string, skip, tid_is_qualified)
1880 (get_tid_or_range, get_tid_range, get_tid, star_range): Rename;
1881 turn into methods.
1882 (tid_is_in_list): Adjust.
1883 * cli/cli-utils.h (number_or_range_parser): New class.
1884 (init_number_or_range, get_number_or_range)
1885 (number_range_setup_range): Don't declare.
1886 * cli/cli-utils.c
1887 (number_or_range_parser::number_or_range_parser): New.
1888 (init_number_or_range, get_number_or_range)
1889 (number_range_setup_range): Rename; turn into methods.
1890 (number_is_in_list): Adjust.
1891 * breakpoint.c (map_breakpoint_numbers): Adjust. Use bool.
1892 (trace_pass_command, get_tracepoint_by_number): Adjust.
1893 * breakpoint.h (get_tracepoint_by_number): Adjust.
1894 * inferior.c (detach_inferior_command, kill_inferior_command)
1895 (remove_inferior_command): Adjust.
1896 * linespec.c (decode_line_2): Adjust.
1897 * memattr.c (mem_enable_command, mem_disable_command)
1898 (mem_delete_command): Adjust.
1899 * printcmd.c (map_display_numbers): Adjust.
1900 * reverse.c (delete_bookmark_command, bookmarks_info): Adjust.
1901 * thread.c (thread_apply_command): Adjust.
1902
4a2f4826
AK
19032016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
1904
1905 * arc-newlib-tdep.c: New file.
1906 * configure.tgt: Add newlib support for ARC.
1907
aaf43c48
AK
19082016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
1909
1910 * arc-tdep.h (struct gdbarch_tdep) <jb_pc>: New field.
1911 * arc-tdep.c (arc_get_longjmp_target): New function.
1912 (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative.
1913 (arc_dump_tdep): Print jb_pc.
1914
b845c31e
AK
19152016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
1916
1917 * arc-tdep.h (struct gdbarch_tdep): New.
1918 * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
1919
187f5d00
YQ
19202016-10-12 Yao Qi <yao.qi@linaro.org>
1921
1922 PR tdep/20682
1923 * aarch64-tdep.c: Replace 32 with AARCH64_D_REGISTER_COUNT.
1924 (aarch64_analyze_prologue): Extend array 'regs' for D registers.
1925 Assert that operand 0 and 1 can be X or D registers. Update
1926 register number for D registers. Update registers in frame
1927 cache.
1928 * aarch64-tdep.h (AARCH64_D_REGISTER_COUNT): New macro.
1929
a1078bea
YQ
19302016-10-10 Yao Qi <yao.qi@linaro.org>
1931
1932 * arch/arm.h (enum arm_breakpoint_kinds): New.
1933 * arm-tdep.c (arm_remote_breakpoint_from_pc): Use
1934 ARM_BP_KIND_THUMB2.
1935
97ce08cb
YQ
19362016-10-10 Yao Qi <yao.qi@linaro.org>
1937
1938 * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by
1939 'gdbarch'.
1940
ff12a659
YQ
19412016-10-10 Yao Qi <yao.qi@linaro.org>
1942
1943 * v850-tdep.c (v850_breakpoint_from_pc): Use the right
1944 breakpoint instruction.
1945 (v850_dbtrap_breakpoint_from_pc): Remove.
1946 (v850_gdbarch_init): Update.
1947
49d06418
SM
19482016-10-08 Simon Marchi <simon.marchi@polymtl.ca>
1949
1950 * ui-out.c (push_level): Remove "id" parameter.
1951 (ui_out_begin): Update call.
1952
1a307001
JB
19532016-10-07 Joel Brobecker <brobecker@adacore.com>
1954
1955 GDB 7.12 released.
1956
68dadef5
MM
19572016-10-07 Markus Metzger <markus.t.metzger@intel.com>
1958
1959 * python/python.c (gdbpy_decode_line): Call
1960 string_to_event_location_basic instead of new_linespec_location.
1961
1fb77080
SDJ
19622016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1963
1964 * target.c (target_supports_multi_process): New function, moved
1965 from...
1966 * target.h (target_supports_multi_process): ... here. Remove
1967 macro.
1968 * target/target.h (target_supports_multi_process): New prototype.
1969
ddb6d633
PA
19702016-10-06 Pedro Alves <palves@redhat.com>
1971
1972 * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
1973 EXPORTED_CONST.
1974 * stub-termcap.c: Remove __cplusplus checks.
1975 * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
1976 EXTERN_C_POP): Delete.
1977 * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
1978 (GDB_XCPT) [!__cplusplus]: Delete.
1979 (throw_exception, throw_exception_sjlj): Update comments.
1980 * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
1981 * guile/guile.c (extension_language_guile): Write "extern const"
1982 instead of EXPORTED_CONST.
1983 * features/feature_to_c.sh: Don't emit !__cplusplus code. Write
1984 "extern const" instead of EXPORTED_CONST.
1985
33fa2c6e
DE
19862016-10-06 Doug Evans <dje@google.com>
1987
1988 * python/py-value.c (valpy_long): Handle unsigned values.
1989
d73f9c4b
SM
19902016-10-06 Simon Marchi <simon.marchi@ericsson.com>
1991
1992 * frame.h: Forward-declare struct ui_out.
1993
9c37b5ae
TT
19942016-10-06 Tom Tromey <tom@tromey.com>
1995
1996 * MAINTAINERS: Remove Java test maintainer.
1997 * varobj.h (java_varobj_ops): Don't declare.
1998 * valprint.h (struct value_print_options)
1999 <pascal_static_field_print>: Update comment.
2000 * utils.c (producer_is_gcc): Remove java reference.
2001 * symtab.h (struct general_symbol_info): Remove java references.
2002 (SYMBOL_SEARCH_NAME): Likewise.
2003 * objfiles.c (allocate_objfile): Update comment.
2004 * linespec.c (find_linespec_symbols): Remove java references.
2005 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
2006 java references.
2007 * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
2008 (TYPE_CPLUS_REALLY_JAVA): Remove.
2009 * c-varobj.c (enum vsections): Update comment.
2010 * symtab.c (symbol_set_language, symbol_set_names)
2011 (symbol_natural_name, symbol_demangled_name)
2012 (demangle_for_lookup, symbol_matches_domain)
2013 (default_make_symbol_completion_list_break_on_1): Remove java
2014 references.
2015 (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
2016 * psymtab.c (match_partial_symbol, psymtab_search_name)
2017 (lookup_partial_symbol): Remove java references.
2018 * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
2019 (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
2020 (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
2021 (process_structure_scope, read_subroutine_type)
2022 (read_subrange_type, load_partial_dies)
2023 (new_symbol_full, determine_prefix, typename_concat)
2024 (dwarf2_name): Remove java references.
2025 (set_cu_language): Treat Java as C++.
2026 * c-typeprint.c (c_type_print_args): Remove java reference.
2027 * defs.h (enum language) <language_java>: Remove.
2028 * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
2029 (YYOBJ, local-maintainer-clean): Don't mention java files.
2030 * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
2031 jv-varobj.c: Remove.
2032
78b86327
MR
20332016-10-06 Maciej W. Rozycki <macro@imgtec.com>
2034
2035 * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
2036 32-bit.
2037
a6912260
MR
20382016-10-06 Maciej W. Rozycki <macro@imgtec.com>
2039
2040 * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
2041 throughout.
2042
c620c3e4
MM
20432016-10-06 Markus Metzger <markus.t.metzger@intel.com>
2044
2045 * stack.c (frame_info): Call val_print_not_saved instead of
2046 val_print_unavailable if frame_id check fails.
2047
4a556533
PA
20482016-10-06 Pedro Alves <palves@redhat.com>
2049
2050 * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
2051 the cached code address.
2052
ee8da4b8
DE
20532016-10-06 Doug Evans <dje@google.com>
2054
2055 * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
2056 "end" in all fields.
2057 * features/aarch64.c: Regenerate.
2058 * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
2059 and "enabled" fields. Correct size of "enabled" field.
2060 * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
2061 and "enabled" fields.
2062 * features/i386/i386-avx-mpx-linux.c: Regenerate.
2063 * features/i386/i386-avx-mpx.c: Regenerate.
2064 * features/i386/i386-avx512-linux.c: Regenerate.
2065 * features/i386/i386-avx512.c: Regenerate.
2066 * features/i386/i386-mpx-linux.c: Regenerate.
2067 * features/i386/i386-mpx.c: Regenerate.
2068 * features/arc-arcompact.c: Regenerate.
2069 * features/arc-v2.c: Regenerate.
2070 * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit
2071 fields default to "bool" type.
2072
2073 Revert 2016-03-15 Doug Evans <dje@google.com>
2074 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
2075 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
2076 * features/i386/64bit-core.xml (i386_eflags): Ditto.
2077 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
2078 * features/i386/x32-core.xml (i386_eflags): Ditto.
2079
e742d386
TT
20802016-10-05 Tom Tromey <tom@tromey.com>
2081
2082 PR breakpoints/20653:
2083 * location.c (string_to_explicit_location): Use NULL, not '\0'.
2084
3e611445
TT
20852016-10-05 Tom Tromey <tom@tromey.com>
2086
2087 PR symtab/20652:
2088 * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
2089 fields.
2090
f206f69c
AA
20912016-10-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
2092
2093 * dwarf2expr.c (dwarf_expr_require_composition): Allow
2094 DW_OP_GNU_uninit.
2095 (execute_stack_op): Use dwarf_expr_require_composition instead of
2096 copying its logic.
2097
ed2f09e1
AK
20982016-10-05 Anton Kolesov <anton.kolesov@synopsys.com>
2099
dba48492 2100 * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
ed2f09e1 2101
5878efd4
YQ
21022016-10-05 Yao Qi <yao.qi@linaro.org>
2103
2104 * features/Makefile (WHICH): Add
2105 rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
2106 rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
2107 rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
2108 * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
2109 * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
2110 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
2111 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
2112 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
2113 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
2114
defaaad5
YQ
21152016-10-05 Yao Qi <yao.qi@linaro.org>
2116
2117 * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
2118 s390-vx-linux64.xml, s390x-tevx-linux64.xml and
2119 s390x-vx-linux64.xml.
2120
414c838a
YQ
21212016-10-05 Yao Qi <yao.qi@linaro.org>
2122
2123 * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
2124 amd64-expedite, and x32-expedite.
2125
0a69eedb
YQ
21262016-10-05 Terry Guo <terry.guo@arm.com>
2127 Yao Qi <yao.qi@linaro.org>
2128
2129 * arm-tdep.c: Adjust includes.
2130 * features/Makefile (WHICH): Add "arm/" directory to arm
2131 target descriptions.
2132 (XMLTOC): Likewise.
2133 (arm/arm-with-iwmmxt.dat): Adjust the path for
2134 dependencies.
2135 * features/arm-core.xml: Moved to ...
2136 * features/arm/arm-core.xml: ... it.
2137 * features/arm-fpa.xml: Moved to ...
2138 * features/arm/arm-fpa.xml: ... it.
2139 * features/arm-m-profile.xml: Moved to ...
2140 * features/arm/arm-m-profile.xm: ... it.
2141 * features/arm-vfpv2.xml: Moved to ...
2142 * features/arm/arm-vfpv2.xm: ... it.
2143 * features/arm-vfpv3.xml: Moved to ...
2144 * features/arm/arm-vfpv3.xml: ... it.
2145 * features/arm-with-iwmmxt.c: Moved to ...
2146 * features/arm/arm-with-iwmmxt.c: ... it.
2147 * features/arm-with-iwmmxt.xml: Moved to ...
2148 * features/arm/arm-with-iwmmxt.xml: ... it.
2149 * features/arm-with-m-fpa-layout.c: Moved to ...
2150 * features/arm/arm-with-m-fpa-layout.c: ... it.
2151 * features/arm-with-m-fpa-layout.xml: Moved to ...
2152 * features/arm/arm-with-m-fpa-layout.xml: ... it.
2153 * features/arm-with-m-vfp-d16.c: Moved to ...
2154 * features/arm/arm-with-m-vfp-d16.c: ... it.
2155 * features/arm-with-m-vfp-d16.xml: Moved to ...
2156 * features/arm/arm-with-m-vfp-d16.xml: ... it.
2157 * features/arm-with-m.c: Moved to ...
2158 * features/arm/arm-with-m.c: ... it.
2159 * features/arm-with-m.xml: Moved to ...
2160 * features/arm/arm-with-m.xm: ... it.
2161 * features/arm-with-neon.c: Moved to ...
2162 * features/arm/arm-with-neon.c: ... it.
2163 * features/arm-with-neon.xml: Moved to ...
2164 * features/arm/arm-with-neon.xml: ... it.
2165 * features/arm-with-vfpv2.c: Moved to ...
2166 * features/arm/arm-with-vfpv2.c: ... it.
2167 * features/arm-with-vfpv2.xml: Moved to ...
2168 * features/arm/arm-with-vfpv2.xml: ... it.
2169 * features/arm-with-vfpv3.c: Moved to ...
2170 * features/arm/arm-with-vfpv3.c: ... it.
2171 * features/arm-with-vfpv3.xml: Moved to ...
2172 * features/arm/arm-with-vfpv3.xml: ... it.
2173 * features/xscale-iwmmxt.xml: Moved to ...
2174 * features/arm/xscale-iwmmxt.xml: ... it.
2175
4034d0ff
AT
21762016-10-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
21772016-10-03 Simon Marchi <simon.marchi@ericsson.com>
2178
2179 PR gdb/20487
2180 * NEWS: Mention new frame field of =thread-selected event.
2181 * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
2182 (add_com_suppress_notification): New function definition.
2183 (cmd_func): Set and restore the suppress_notification flag.
2184 * cli/cli-deicode.h (struct cmd_list_element)
2185 <suppress_notification>: New field.
2186 * cli/cli-interp.c (cli_suppress_notification): New global variable.
2187 (cli_on_user_selected_context_changed): New function.
2188 (_initialize_cli_interp): Attach to user_selected_context_changed
2189 observer.
2190 * command.h (struct cli_suppress_notification): New structure.
2191 (cli_suppress_notification): New global variable declaration.
2192 (add_com_suppress_notification): New function declaration.
2193 * defs.h (enum user_selected_what_flag): New enum.
2194 (user_selected_what): New enum flag type.
2195 * frame.h (print_stack_frame_to_uiout): New function declaration.
2196 * gdbthread.h (print_selected_thread_frame): New function declaration.
2197 * inferior.c (print_selected_inferior): New function definition.
2198 (inferior_command): Remove printing of inferior/thread/frame switch
2199 notifications, notify user_selected_context_changed observer.
2200 * inferior.h (print_selected_inferior): New function declaration.
2201 * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
2202 suppression to stack-select-frame and thread-select commands.
2203 * mi/mi-interp.c (struct mi_suppress_notification)
2204 <user_selected_context>: Initialize.
2205 (mi_user_selected_context_changed): New function definition.
2206 (_initialize_mi_interp): Attach to user_selected_context_changed.
2207 * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
2208 (mi_execute_command): Handle notification suppression. Notify
2209 user_selected_context_changed observer on thread change instead of printing
2210 event directly. Don't send it if command already sends the notification.
2211 (command_notifies_uscc_observer): New function.
2212 (mi_cmd_execute): Don't handle notification suppression.
2213 * mi/mi-main.h (struct mi_suppress_notification)
2214 <user_selected_context>: New field.
2215 * stack.c (print_stack_frame_to_uiout): New function definition.
2216 (select_frame_command): Notify user_selected_context_changed
2217 observer.
2218 (frame_command): Call print_selected_thread_frame if there's no frame
2219 change or notify user_selected_context_changed observer if there is.
2220 (up_command): Notify user_selected_context_changed observer.
2221 (down_command): Likewise.
2222 (_initialize_stack): Suppress user_selected_context notification for
2223 command select-frame.
2224 * thread.c (thread_command): Notify
2225 user_selected_context_changed if the thread has changed, print
2226 thread info directly if it hasn't.
2227 (do_captured_thread_select): Do not print thread switch event.
2228 (print_selected_thread_frame): New function definition.
2229 * tui/tui-interp.c (tui_on_user_selected_context_changed):
2230 New function definition.
2231 (_initialize_tui_interp): Attach to user_selected_context_changed
2232 observer.
2233
bb805577
JK
22342016-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2235
2236 PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
2237 * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
2238 Use it.
2239 * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
2240 * infcmd.c (setup_inferior): Update caller.
2241 * remote.c (remote_add_inferior): Likewise.
2242
6d61dee5
PA
22432016-09-28 Pedro Alves <palves@redhat.com>
2244
2245 * infcall.c (run_inferior_call): Remove input from the event
2246 loop while running the infcall.
2247
ca90e760
FH
22482016-09-27 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2249
2250 * arm-tdep.c (arm_m_addr_is_magic): New function.
2251 (arm_addr_bits_remove): Call arm_m_addr_is_magic.
2252 (arm_m_exception_unwind_sniffer): Likewise.
2253
9eee20eb
JT
22542016-09-23 Jon Turney <jon.turney@dronecode.org.uk>
2255
2256 * windows-nat.c (windows_delete_thread): Adjusting call to
2257 target_mourn_inferior to include ptid_t argument.
2258
a97e29d2
TT
22592016-09-23 Tom Tromey <tom@tromey.com>
2260
2261 * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
2262 * utils.c: Don't include dyn-string.h.
2263 (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
2264 * cli/cli-cmds.c: Include <string>. Don't include dyn-string.h.
2265 (argv_to_string): Rename. Change return type to std::string.
2266 (alias_command): Use std::string.
2267
cfe826d4
TT
22682016-09-23 Tom Tromey <tom@tromey.com>
2269
2270 * objfiles.c: Include <vector>.
2271 (objfile_relocate): Use std::vector.
2272
ab8b80a8
TT
22732016-09-23 Tom Tromey <tom@tromey.com>
2274
2275 * rust-lang.c: Include <string> and <vector>.
2276 (rust_evaluate_funcall): Use std::vector, std::string.
2277 (rust_evaluate_subexp): Use std::string.
2278 (rust_lookup_symbol_nonlocal): Use std::string.
2279
05d49c37
TT
22802016-09-23 Tom Tromey <tom@tromey.com>
2281
2282 * cp-namespace.c: Include <string>.
2283 (cp_search_static_and_baseclasses)
2284 (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
2285 Use std::string.
2286
5809899d
TT
22872016-09-23 Tom Tromey <tom@tromey.com>
2288
2289 * break-catch-sig.c: Include <string>.
2290 (signal_catchpoint_print_one): Use std::string.
2291
3e25a500
TT
22922016-09-23 Tom Tromey <tom@tromey.com>
2293
2294 * utils.c (struct restore_ui_out_closure): Remove.
2295 * objfiles.h (terminate_minimal_symbol_table): Don't declare.
2296
97e64e5a
YQ
22972016-09-23 Yao Qi <yao.qi@linaro.org>
2298
2299 * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
2300 sprintf with xsnprintf.
2301 (linux_xfer_osdata_fds): Likewise.
2302
503b1c39
PA
23032016-09-23 Pedro Alves <palves@redhat.com>
2304
2305 * Makefile.in (SFILES): Add common/new-op.c.
2306 (COMMON_OBS): Add common/new-op.o.
2307 (new-op.o): New rule.
2308 * common/common-exceptions.h: Include <new>.
2309 (struct gdb_quit_bad_alloc): New type.
2310 * common/new-op.c: New file.
2311
de678454
EBM
23122016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2313
2314 * rs6000-tdep.c (ppc_process_record_op31): Fix
2315 regcache_raw_read_unsigned call using the correct parameter type.
2316
fa42dd2e
AK
23172016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
2318
2319 * arc-tdep.c: Fix ARI warning for printf(%p).
2320
31da3f27
AK
23212016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
2322
2323 * MAINTAINERS (Write After Approval): Add Anton Kolesov.
2324
ad0a504f
AK
23252016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
2326
2327 * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
2328 (HFILES_NO_SRCDIR): Add arc-tdep.h.
2329 (ALLDEPFILES): Add arc-tdep.c.
2330 * NEWS: Mention new ARC port.
2331 * configure.tgt: Add ARC.
2332 * arc-tdep.c: New file.
2333 * arc-tdep.h: New file.
2334 * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
2335 * features/arc-v2.xml: New file.
2336 * features/arc-v2.c: New file (generated).
2337 * features/arc-arcompact.xml: New file.
2338 * features/arc-arcompact.c: New file (generated).
2339
8aabe2e2
EBM
23402016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2341
2342 * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
2343 handlers.
2344
36cf1806
TT
23452016-09-21 Tom Tromey <tom@tromey.com>
2346
2347 PR gdb/20604:
2348 * top.h (quit_force): Update.
2349 * top.c (quit_force): Changed type of first argument. Don't
2350 evaluate expression. Pass NULL to kill_or_detach.
2351 * cli/cli-cmds.c (quit_command): Evaluate "args".
2352
74172ecf
SM
23532016-09-21 Simon Marchi <simon.marchi@ericsson.com>
2354
2355 * .gitignore: Ignore more files.
2356 * data-directory/.gitignore: Likewise.
2357
6ec2b213
EBM
23582016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2359
2360 * rs6000-tdep.c (PPC_DQ): New macro.
2361 (ppc_process_record_op4): Add Power ISA 3.0 instructions.
2362 (ppc_process_record_op19): Likewise.
2363 (ppc_process_record_op31): Likewise.
2364 (ppc_process_record_op59): Likewise.
2365 (ppc_process_record_op60): Likewise.
2366 (ppc_process_record_op63): Likewise.
2367 (ppc_process_record): Likewise.
2368 (ppc_process_record_op61): New function.
2369
fc6cda2e
YQ
23702016-09-21 Yao Qi <yao.qi@linaro.org>
2371
2372 * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
2373 bits 20 to 23.
2374
12c58cd4
TT
23752016-09-20 Tom Tromey <tom@tromey.com>
2376
2377 * python/py-value.c (convert_value_from_python): Make PyInt_Check
2378 conditional on Python 2.
2379 * python/py-arch.c (archpy_disassemble): Make PyInt_Check
2380 conditional on Python 2.
2381
9f7efd5b
EBM
23822016-09-20 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2383
2384 * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
2385 Word instructions.
2386
7d5adfe3
SDJ
23872016-09-20 Sergio Durigan Junior <sergiodj@redhat.com>
2388
2389 * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
2390 'resume_ptid' to 'target_mourn_inferior'. Fix regression
2391 introduced by my last commit.
2392
66797541
PA
23932016-09-19 Pedro Alves <palves@redhat.com>
2394
2395 * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
2396 textdomain, bindtextdomain): Delete macros.
2397 * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
2398 textdomain calls.
2399
bc1e6c81
SDJ
24002016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
2401
2402 * darwin-nat.c (darwin_kill_inferior): Adjusting call to
2403 target_mourn_inferior to include ptid_t argument.
2404 * fork-child.c (startup_inferior): Likewise.
2405 * gnu-nat.c (gnu_kill_inferior): Likewise.
2406 * inf-ptrace.c (inf_ptrace_kill): Likewise.
2407 * infrun.c (handle_inferior_event_1): Likewise.
2408 * linux-nat.c (linux_nat_attach): Likewise.
2409 (linux_nat_kill): Likewise.
2410 * nto-procfs.c (interrupt_query): Likewise.
2411 (procfs_interrupt): Likewise.
2412 (procfs_kill_inferior): Likewise.
2413 * procfs.c (procfs_kill_inferior): Likewise.
2414 * record.c (record_mourn_inferior): Likewise.
2415 * remote-sim.c (gdbsim_kill): Likewise.
2416 * remote.c (remote_detach_1): Likewise.
2417 (remote_kill): Likewise.
2418 * target.c (target_mourn_inferior): Change declaration to accept
2419 new ptid_t argument; use gdb_assert on it.
2420 * target.h (target_mourn_inferior): Move function prototype from
2421 here...
2422 * target/target.h (target_mourn_inferior): ... to here. Adjust it
2423 to accept new ptid_t argument.
2424 * windows-nat.c (get_windows_debug_event): Adjusting call to
2425 target_mourn_inferior to include ptid_t argument.
2426
93689493
PA
24272016-09-18 Pedro Alves <palves@redhat.com>
2428
2429 * s390-linux-nat.c: Include <algorithm>.
2430
768adc05
PA
24312016-09-18 Pedro Alves <palves@redhat.com>
2432
2433 * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
2434 specify the std:min/std::max specialization.
2435 * exec.c (section_table_read_available_memory): Likewise.
2436 * remote.c (remote_read_qxfer): Likewise.
2437 * target.c (simple_verify_memory): Likewise.
2438
cd94f6d5
SM
24392016-09-16 Simon Marchi <simark@simark.ca>
2440
2441 * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
2442 (print_stop_event): Use make_cleanup_restore_current_uiout.
2443 * python/python.c (execute_gdb_command): Likewise.
2444 * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
2445 (make_cleanup_restore_current_uiout): New function definition.
2446 * ui-out.h (make_cleanup_restore_current_uiout): New function
2447 declaration.
2448 * utils.c (do_restore_ui_out): Remove.
2449 (make_cleanup_restore_ui_out): Remove.
2450 * utils.h (make_cleanup_restore_ui_out): Remove.
2451
325fac50
PA
24522016-09-16 Pedro Alves <palves@redhat.com>
2453
2454 * defs.h (min, max): Delete.
2455 * aarch64-tdep.c: Include <algorithm> and use std::min and
2456 std::max throughout.
2457 * aarch64-tdep.c: Likewise.
2458 * alpha-tdep.c: Likewise.
2459 * amd64-tdep.c: Likewise.
2460 * amd64-windows-tdep.c: Likewise.
2461 * arm-tdep.c: Likewise.
2462 * avr-tdep.c: Likewise.
2463 * breakpoint.c: Likewise.
2464 * btrace.c: Likewise.
2465 * ctf.c: Likewise.
2466 * disasm.c: Likewise.
2467 * doublest.c: Likewise.
2468 * dwarf2loc.c: Likewise.
2469 * dwarf2read.c: Likewise.
2470 * environ.c: Likewise.
2471 * exec.c: Likewise.
2472 * f-exp.y: Likewise.
2473 * findcmd.c: Likewise.
2474 * ft32-tdep.c: Likewise.
2475 * gcore.c: Likewise.
2476 * hppa-tdep.c: Likewise.
2477 * i386-darwin-tdep.c: Likewise.
2478 * i386-tdep.c: Likewise.
2479 * linux-thread-db.c: Likewise.
2480 * lm32-tdep.c: Likewise.
2481 * m32r-tdep.c: Likewise.
2482 * m88k-tdep.c: Likewise.
2483 * memrange.c: Likewise.
2484 * minidebug.c: Likewise.
2485 * mips-tdep.c: Likewise.
2486 * moxie-tdep.c: Likewise.
2487 * nds32-tdep.c: Likewise.
2488 * nios2-tdep.c: Likewise.
2489 * nto-procfs.c: Likewise.
2490 * parse.c: Likewise.
2491 * ppc-sysv-tdep.c: Likewise.
2492 * probe.c: Likewise.
2493 * record-btrace.c: Likewise.
2494 * remote.c: Likewise.
2495 * rs6000-tdep.c: Likewise.
2496 * rx-tdep.c: Likewise.
2497 * s390-linux-nat.c: Likewise.
2498 * s390-linux-tdep.c: Likewise.
2499 * ser-tcp.c: Likewise.
2500 * sh-tdep.c: Likewise.
2501 * sh64-tdep.c: Likewise.
2502 * source.c: Likewise.
2503 * sparc-tdep.c: Likewise.
2504 * symfile.c: Likewise.
2505 * target-memory.c: Likewise.
2506 * target.c: Likewise.
2507 * tic6x-tdep.c: Likewise.
2508 * tilegx-tdep.c: Likewise.
2509 * tracefile-tfile.c: Likewise.
2510 * tracepoint.c: Likewise.
2511 * valprint.c: Likewise.
2512 * value.c: Likewise.
2513 * xtensa-tdep.c: Likewise.
2514 * cli/cli-cmds.c: Likewise.
2515 * compile/compile-object-load.c: Likewise.
2516
8193adea
AA
25172016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2518
2519 * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
2520 (PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
2521 (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
2522 (PER_CONTROL_ALTERATION): New macros.
2523 (struct s390_debug_reg_state) <break_areas>: New member.
2524 (s390_forget_process): Free break_areas as well.
2525 (s390_linux_new_fork): Copy break_areas as well.
2526 (s390_prepare_to_resume): Install hardware breakpoints.
2527 (s390_can_use_hw_breakpoint): Indicate support for hardware
2528 breakpoints.
2529 (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
2530 linux_nat target methods.
2531 (_initialize_s390_nat): Register them.
2532
0e00e962
AA
25332016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2534
2535 * nat/linux-nat.h (lwp_is_stepping): New declaration.
2536 * linux-nat.c (lwp_is_stepping): New function.
2537
169fe0df
AA
25382016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2539
2540 * s390-linux-nat.c (gdbcmd.h): New include.
2541 (s390_show_debug_regs): New function.
2542 (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
2543 (s390_prepare_to_resume): Likewise.
2544 (_initialize_s390_nat): Register the command "maint set
2545 show-debug-regs".
2546
373c3dad
AA
25472016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2548
2549 * s390-linux-nat.c (watch_areas): Remove variable. Replace by a
2550 member of...
2551 (struct s390_debug_reg_state): ...this. New struct.
2552 (struct s390_process_info): New struct.
2553 (s390_process_list): New variable.
2554 (s390_find_process_pid, s390_add_process, s390_process_info_get)
2555 (s390_get_debug_reg_state): New functions.
2556 (s390_stopped_by_watchpoint): Now access the watch_areas VEC via
2557 s390_get_debug_reg_state.
2558 (s390_prepare_to_resume): Likewise.
2559 (s390_insert_watchpoint): Likewise.
2560 (s390_remove_watchpoint): Likewise.
2561 (s390_forget_process, s390_linux_new_fork): New linux_nat target
2562 methods.
2563 (_initialize_s390_nat): Register them.
2564
17c84cca
AA
25652016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2566
2567 * s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC.
2568 (watch_base): Remove variable.
2569 (watch_areas): New variable.
2570 (s390_stopped_by_watchpoint): Transform operations on the
2571 watch_base list to equivalent operations on the watch_areas VEC.
2572 (s390_prepare_to_resume): Likewise.
2573 (s390_insert_watchpoint): Likewise.
2574 (s390_remove_watchpoint): Likewise.
2575
9c2996c9
AA
25762016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2577
2578 * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
2579 functions instead of accessing lwp_info structure members.
2580 (s390_mark_per_info_changed): New function.
2581 (s390_new_thread): Use it.
2582 (s390_refresh_per_info_cb): New function.
2583 (s390_refresh_per_info): Remove parameter. Refresh all lwps of
2584 the current process.
2585 (s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
2586 (s390_remove_watchpoint): Likewise.
2587
e1b2624a
AA
25882016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
2589
2590 * elfread.c (auxv.h): New include.
2591 (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
2592
f5c4fcd9
TT
25932016-09-08 Tom Tromey <tom@tromey.com>
2594
2595 * remote.c (remote_notif_stop_ack, remote_wait_as)
2596 (show_remote_cmd): Remove unneeded casts.
2597
4295e285
PA
25982016-09-06 Pedro Alves <palves@redhat.com>
2599
2600 * top.c (wait_sync_command_done): Don't assume current_ui doesn't
2601 change across events. Restore the current UI before returning.
2602 (gdb_readline_wrapper): Restore the current UI before returning.
2603
a025b477
PA
26042016-09-06 Pedro Alves <palves@redhat.com>
2605
2606 * event-top.c (restore_ui_cleanup): Now static.
2607 (make_cleanup_restore_current_ui): New function.
2608 (switch_thru_all_uis_init): Use it.
2609 * infcall.c (call_thread_fsm_should_stop): Use it.
2610 * infrun.c (fetch_inferior_event): Use it.
2611 * top.c (new_ui_command): Use it.
2612 * top.h (restore_ui_cleanup): Delete declaration.
2613 (make_cleanup_restore_current_ui): New declaration.
2614
00d5215e
UW
26152016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2616
2617 * i386-tdep.c (i386_floatformat_for_type): New function.
2618 (i386_gdbarch_init): Install it.
2619 * ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
2620 (ppc_linux_init_abi): Install it.
2621
9b790ce7
UW
26222016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2623
2624 * gdbarch.sh (floatformat_for_type): New gdbarch callback.
2625 * gdbarch.h, gdbarch.c: Re-generate.
2626 * arch-utils.h (default_floatformat_for_type): New prototype.
2627 * arch-utils.c (default_floatformat_for_type): New function.
2628
2629 * doublest.c (floatformat_from_length): Remove.
2630 (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
2631 * gdbtypes.c (verify_floatformat): Require non-NULL format.
2632
2633 * dwarf2read.c (dwarf2_init_float_type): New function.
2634 (read_base_type): Use it.
2635 * stabsread.c (dbx_init_float_type): New function.
2636 (read_sun_floating_type): Use it.
2637 (read_range_type): Likewise.
2638
49f190bc
UW
26392016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2640
2641 * ada-lang.c (ada_language_arch_info): Use gdbarch-provided
2642 platform ABI floating-point formats for built-in types.
2643 * d-lang.c (build_d_types): Likewise.
2644 * f-lang.c (build_fortran_types): Likewise.
2645 * m2-lang.c (build_m2_types): Likewise.
2646 * mdebugread.c (basic_type): Likewise.
2647
2648 * go-lang.c (build_go_types): Use IEEE floating-point formats
2649 for language built-in types as mandanted by the language.
2650 * jv-lang.c (build_java_types): Likewise.
2651 * rust-lang.c (rust_language_arch_info): Likewise.
2652 * stabsread.c (rs6000_builtin_type): Likewise.
2653
c413c448
UW
26542016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2655
2656 * gdbtypes.c (init_type): Remove "char" special case.
2657 (arch_integer_type): Likewise.
2658 (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
2659 (objfile_type): Likewise.
2660 * mdebugread.c (basic_type): Likewise.
2661 * stabsread.c (rs6000_builtin_type): Likewise.
2662
a9ff5f12
UW
26632016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2664
2665 * gdbtypes.h (enum type_flag_value): Remove.
2666 Remove references to TYPE_FLAG_... in comments throughout.
2667 * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
2668 flags, print the corresponding TYPE_... access macro names.
2669 Remove references to TYPE_FLAG_... in comments throughout.
2670 * infcall.c: Remove references to TYPE_FLAG_... in comments.
2671 * valprint.c: Likewise.
2672 * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
2673 values, only TYPE_INSTANCE_FLAG_... values.
2674 (class TypeFlagsPrinter): Likewise.
2675
19f392bc
UW
26762016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2677
2678 * gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE
2679 argument to first position.
2680 (init_integer_type): New prototype.
2681 (init_character_type): Likewise.
2682 (init_boolean_type): Likewise.
2683 (init_float_type): Likewise.
2684 (init_decfloat_type): Likewise.
2685 (init_complex_type): Likewise.
2686 (init_pointer_type): Likewise.
2687 * gdbtypes.c (verify_floatflormat): New function.
2688 (init_type): Remove FLAGS argument and processing. Move OBJFILE
2689 argument to first position.
2690 (init_integer_type): New function.
2691 (init_character_type): Likewise.
2692 (init_boolean_type): Likewise.
2693 (init_float_type): Likewise.
2694 (init_decfloat_type): Likewise.
2695 (init_complex_type): Likewise.
2696 (init_pointer_type): Likewise.
2697 (arch_float_type): Use verify_floatflormat.
2698 (objfile_type): Use init_..._type helpers instead of calling
2699 init_type directly.
2700 * dwarf2read.c (fixup_go_packaging): Update to changed init_type
2701 prototype.
2702 (read_namespace_type): Likewise.
2703 (read_module_type): Likewise.
2704 (read_typedef): Likewise.
2705 (read_unspecified_type): Likewise.
2706 (build_error_marker_type): Likewise.
2707 (read_base_type): Use init_..._type helpers.
2708 * mdebugread.c (basic_type): Use init_..._type helpers.
2709 (parse_type): Update to changed init_type prototype.
2710 (cross_ref): Likewise.
2711 * stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
2712 (read_sun_builtin_type): Likewise.
2713 (read_sun_floating_type): Likewise.
2714 (read_range_type): Likewise. Also update to changed init_type
2715 prototype.
2716
88dfca6c
UW
27172016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2718
2719 * gdbtypes.h (arch_decfloat_type): New prototype.
2720 (arch_pointer_type): Likewise.
2721 * gdbtypes.c (arch_decfloat_type): New function.
2722 (arch_pointer_type): Likewise.
2723 (gdbtypes_post_init): Use arch_decfloat_type.
2724 * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
2725 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2726 * m32c-tdep.c (make_types): Likewise.
2727 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2728
ae438bc5
UW
27292016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2730
2731 * gdbtypes.c (set_type_code): New function.
2732 (init_type, arch_type): Use it.
2733
5f3bceb6
UW
27342016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2735
2736 * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
2737 instead of gdbarch_double_bit for "long_long_float".
2738
cf6de44d
PA
27392016-09-05 Pedro Alves <palves@redhat.com>
2740
2741 * NEWS: Mention that a C++ compiler is now required.
2742 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
2743 (COMPILE.pre, CC_LD): Use CXX directly.
2744 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
2745 * acinclude.m4: Don't include build-with-cxx.m4.
2746 * build-with-cxx.m4: Delete file.
2747 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
2748 * warning.m4: Assume $enable_build_with_cxx is yes.
2749 * configure: Regenerate.
2750
f245535c
PA
27512016-09-05 Pedro Alves <palves@redhat.com>
2752
2753 PR backtrace/19927
2754 * frame.c (get_frame_id): Compute the frame id if not computed
2755 yet.
2756 (unwind_to_current_frame): Delete.
2757 (get_current_frame): Use get_prev_frame_always_1 to get the
2758 current frame and assert that that always succeeds.
2759 (get_prev_frame_if_no_cycle): Skip cycle detection if returning
2760 the current frame.
2761
4aa4e28b
TT
27622016-09-02 Tom Tromey <tom@tromey.com>
2763
2764 PR gdb/11616:
2765 * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
2766 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
2767 DW_OP_form_tls_address.
2768 (locexpr_describe_location_piece): Likewise.
2769 * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
2770 * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
2771 (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
2772 * compile/compile-loc2c.c (struct insn_info): Update comment.
2773 (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
2774
f2b9e3df
SDJ
27752016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2776
2777 * target.c (target_wait): Mention that the function's prototype
2778 can be found at target/target.h.
2779 * target.h (target_wait): Move prototype from here...
2780 * target/target.h (target_wait): ... to here.
2781
049a8570
SDJ
27822016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2783
2784 * fork-child.c (startup_inferior): Replace calls to target_resume
2785 by target_continue{,_no_signal}, depending on the case.
2786 * linux-nat.c (cleanup_target_stop): Call
2787 target_continue_no_signal instead of target_resume.
2788 * procfs.c (procfs_wait): Likewise.
2789 * target.c (target_continue): New function.
2790 * target/target.h (target_continue): New prototype.
2791
f99bd5f2
YQ
27922016-08-31 Yao Qi <yao.qi@linaro.org>
2793
2794 * record-full.c (record_full_insert_breakpoint): Fix typo.
2795
5af962df
AA
27962016-08-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2797
2798 * thread.c (tp_array_compar): Insert missing parentheses.
2799
ae68ff9f
AA
28002016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2801
2802 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
2803 designated initializer list by plain initializer list, for C++
2804 compliance.
2805
754653a7
AZ
28062016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2807
2808 * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
2809 struct ps_prochandle.
2810 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
2811 * arm-linux-nat.c (ps_get_thread_area): Likewise.
2812 * gdb_proc_service.h (ps_get_thread_area): Likewise.
2813 * i386-linux-nat.c (ps_get_thread_area): Likewise.
2814 * m68klinux-nat.c (ps_get_thread_area): Likewise.
2815 * mips-linux-nat.c (ps_get_thread_area): Likewise.
2816 * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
2817 * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
2818 * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
2819
0a1ddfa6
SM
28202016-08-24 Simon Marchi <simon.marchi@ericsson.com>
2821
2822 * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
2823 NULL if terminal_name is an empty string.
2824 (_initialize_infcmd): Make the argument of "set inferior-tty"
2825 optional, mention it in the help doc.
2826
bdd78711
CL
28272016-08-24 Carl Love <cel@us.ibm.com>
2828
2829 * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
2830 set_gdbarch_deprecated_fp_regnum() architecture
2831 initialization function.
2832
34f81801
SM
28332016-08-23 Simon Marchi <simon.marchi@ericsson.com>
2834
2835 * stack.c (parse_frame_specification): Fix typo in comment.
2836
d9de1fe3
PA
28372016-08-23 Pedro Alves <palves@redhat.com>
2838
2839 PR gdb/20494
2840 * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
2841 comments.
2842 (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
2843 Delete.
2844 (set_initial_gdb_ttystate): Record our_terminal_info here too,
2845 instead of ...
2846 (gdb_has_a_terminal): ... here. Reimplement in terms of
2847 initial_gdb_ttystate. Make static.
2848 * terminal.h (gdb_has_a_terminal): Delete declaration.
2849 (set_initial_gdb_ttystate): Add comment.
2850 * top.c (show_interactive_mode): Use input_interactive_p instead
2851 of gdb_has_a_terminal.
2852
6bb90213
PA
28532016-08-22 Pedro Alves <palves@redhat.com>
2854
2855 PR gdb/20505
2856 * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
2857 find the vDSO's start address with AT_SYSINFO_EHDR too, and
2858 determine the vDSO's size by finding the PT_LOAD segment that
2859 matches AT_SYSINFO_EHDR.
2860
03bcd739
YQ
28612016-08-19 Yao Qi <yao.qi@linaro.org>
2862
2863 * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
2864 based STP instruction.
2865
bbfa2517
YQ
28662016-08-19 Yao Qi <yao.qi@linaro.org>
2867
2868 * completer.c (linespec_location_completer): Make file_to_match
2869 null-terminated.
2870
f077e978
PA
28712016-08-19 Pedro Alves <palves@redhat.com>
2872
2873 * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
2874 addresses over 0x7fffffff.
2875
46da9242
CL
28762016-08-18 Carl Love <cel@us.ibm.com>
2877
2878 * MAINTANERS Write After Approval): Add "Carl Love".
2879
d44c67f3
EBM
28802016-08-18 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2881
2882 * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
2883
eb2332d7
SM
28842016-08-17 Simon Marchi <simon.marchi@ericsson.com>
2885
2886 * inferior.c (remove_inferior_command): Fix error message.
2887
9b19e390
SM
28882016-08-17 Simon Marchi <simon.marchi@ericsson.com>
2889
2890 * inferior.c (exit_inferior_1): Remove comment.
2891
31925464
MW
28922016-08-15 Matthew Wahab <matthew.wahab@arm.com>
2893
2894 PR gdb/20457
2895 * gdb_proc_service.h: Add an include of gregset.h
2896 [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
2897
b31f9478
YQ
28982016-08-15 Yao Qi <yao.qi@linaro.org>
2899
2900 * location.c (explicit_location_lex_one): Compare the return
2901 value of strncmp with zero. Don't check (*inp)[9]. Increment
2902 *inp by 8.
2903
39b22471
PA
29042016-08-11 Pedro Alves <palves@redhat.com>
2905
2906 PR gdb/20413
2907 * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
2908 "gregset.h".
2909
01d3dedf
PA
29102016-08-10 Pedro Alves <palves@redhat.com>
2911
2912 PR gdb/19187
2913 * record-full.c (record_full_remove_breakpoint): Don't remove the
2914 breakpoint from the record_full_breakpoints VEC if we're detaching
2915 the breakpoint from a fork child.
2916
73971819
PA
29172016-08-10 Pedro Alves <palves@redhat.com>
2918
2919 PR gdb/19187
2920 * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
2921 interface.
2922 * break-catch-syscall.c (remove_catch_syscall):
2923 * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
2924 (remove_breakpoint_1): Pass 'reason' down.
2925 (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
2926 (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
2927 (base_breakpoint_remove_location, bkpt_remove_location)
2928 (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
2929 interface.
2930 * breakpoint.h (enum remove_bp_reason): Moved here from
2931 breakpoint.c.
2932 (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
2933 * corelow.c (core_remove_breakpoint): New function.
2934 (init_core_ops): Install it as to_remove_breakpoint method.
2935 * exec.c (exec_remove_breakpoint): New function.
2936 (init_exec_ops): Install it as to_remove_breakpoint method.
2937 * mem-break.c (memory_remove_breakpoint): Adjust interface.
2938 * record-btrace.c (record_btrace_remove_breakpoint): Adjust
2939 interface.
2940 * record-full.c (record_full_remove_breakpoint)
2941 (record_full_core_remove_breakpoint): Adjust interface.
2942 * remote.c (remote_remove_breakpoint): Adjust interface.
2943 * target-debug.h (target_debug_print_enum_remove_bp_reason): New
2944 macro.
2945 * target-delegates.c: Regenerate.
2946 * target.c (target_remove_breakpoint): Add 'reason' parameter.
2947 * target.h (struct target_ops) <to_remove_breakpoint>: Add
2948 'reason' parameter.
2949 (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
2950 parameter.
2951
b2b6a7da
PA
29522016-08-10 Pedro Alves <palves@redhat.com>
2953
2954 PR gdb/19187
2955 * breakpoint.c (insertion_state_t): Delete.
2956 (enum remove_bp_reason): New.
2957 (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
2958 Adjust to use enum remove_bp_reason instead of insertion_state_t.
2959
834c0d03
PA
29602016-08-10 Pedro Alves <palves@redhat.com>
2961
2962 PR gdb/19187
2963 * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
2964 always pass mark_uninserted to remove_breakpoint_1.
2965 (insert_breakpoint_locations, remove_breakpoints)
2966 (remove_breakpoints_pid, update_global_location_list): Update
2967 callers.
2968
24cdb46e
РИ
29692016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
2970 Pedro Alves <palves@redhat.com>
2971
2972 * windows-nat.c (MS_VC_EXCEPTION): New define.
2973 (handle_exception_result): New enum.
2974 (windows_delete_thread): Free the thread's name.
2975 (handle_exception): Handle MS_VC_EXCEPTION.
2976 (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
2977 (windows_thread_name): New function.
2978 (windows_target): Install it as to_thread_name method.
2979 * NEWS: Mention the thread naming support on MS-Windows.
2980
669f9429
PA
29812016-08-10 Pedro Alves <palves@redhat.com>
2982
2983 * common/signals-state-save-restore.c
2984 (save_original_signals_state, restore_original_signals_state):
2985 Wrap perror_with_name arguments with '()'.
2986
3eb7562a
PA
29872016-08-09 Pedro Alves <palves@redhat.com>
2988
2989 PR gdb/20418
2990 * event-top.c (ui_register_input_event_handler)
2991 (ui_unregister_input_event_handler): New functions.
2992 (async_enable_stdin): Register input in the event loop.
2993 (async_disable_stdin): Unregister input from the event loop.
2994 (gdb_setup_readline): Register input in the event loop.
2995 * infrun.c (check_curr_ui_sync_execution_done): Register input in
2996 the event loop.
2997 * target.c (target_terminal_inferior): Don't unregister input from
2998 the event loop.
2999 (target_terminal_ours): Don't register input in the event loop.
3000 * target.h (target_terminal_inferior)
3001 (target_terminal_ours_for_output, target_terminal_ours): Update
3002 comments.
3003 * top.h (ui_register_input_event_handler)
3004 (ui_unregister_input_event_handler): New declarations.
3005 * utils.c (ui_unregister_input_event_handler_cleanup)
3006 (prepare_to_handle_input): New functions.
3007 (defaulted_query, prompt_for_continue): Use
3008 prepare_to_handle_input.
3009
80614914
PA
30102016-08-09 Pedro Alves <palves@redhat.com>
3011
3012 PR mi/20431
3013 * mi/mi-main.c (mi_execute_command): Enable input and set prompt
3014 state to PROMPT_NEEDED.
3015
f348d89a
PA
30162016-08-09 Pedro Alves <palves@redhat.com>
3017
3018 PR gdb/18653
3019 * Makefile.in (SFILES): Add
3020 common/signals-state-save-restore.c.
3021 (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
3022 (COMMON_OBS): Add signals-state-save-restore.o.
3023 (signals-state-save-restore.o): New rule.
3024 * configure: Regenerate.
3025 * fork-child.c: Include "signals-state-save-restore.h".
3026 (fork_inferior): Call restore_original_signals_state.
3027 * main.c: Include "signals-state-save-restore.h".
3028 (captured_main): Call save_original_signals_state.
3029 * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
3030 * common/signals-state-save-restore.c: New file.
3031 * common/signals-state-save-restore.h: New file.
3032
e5ca03b4
PA
30332016-08-09 Pedro Alves <palves@redhat.com>
3034
3035 * value.c (unpack_value_bitfield): Skip unpacking if the parent
3036 has no contents buffer to begin with.
3037
6a17ca31
PA
30382016-08-08 Pedro Alves <palves@redhat.com>
3039
3040 * features/i386/amd64-avx-mpx-linux.c: Regenerate.
3041 * features/i386/amd64-avx-mpx.c: Regenerate.
3042 * features/i386/i386-avx-mpx-linux.c: Regenerate.
3043 * features/i386/i386-avx-mpx.c: Regenerate.
3044
c632e428
SM
30452016-08-05 Simon Marchi <simon.marchi@ericsson.com>
3046
3047 * event-top.h (cli_command_loop): Remove.
3048
3906a8fc
PA
30492016-08-05 Pedro Alves <palves@redhat.com>
3050
3051 PR remote/20398
3052 * remote-fileio.c (remote_fileio_quit_handler): Check the quit
3053 flag before calling quit.
3054
69ffd7f2
PA
30552016-08-05 Pedro Alves <palves@redhat.com>
3056
3057 * NEWS: Mention that GDB and GDBserver build with a C++ compiler
3058 by default.
3059
1baf5149
PA
30602016-08-05 Pedro Alves <palves@redhat.com>
3061
3062 * build-with-cxx.m4: Change help string to be in terms of
3063 --disable-build-with-cxx.
3064 * configure: Regenerate.
3065
6f67973b
YQ
30662016-08-04 Yao Qi <yao.qi@linaro.org>
3067
3068 * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
3069 declaration.
3070 (aarch64_linux_read_description): Remove code on getting
3071 auxv and select target description on it. Select target
3072 description by the result of NT_ARM_VFP ptrace request.
3073
282a0691
TT
30742016-08-03 Tom Tromey <tom@tromey.com>
3075
3076 PR python/18565:
3077 * python/py-frame.c (frapy_function): Use find_frame_funname.
3078
d10153cf
TT
30792016-08-03 Tom Tromey <tom@tromey.com>
3080
3081 * stack.c (find_frame_funname): Avoid any possible leak in case
3082 cp_remove_params can throw.
3083
8d2a0a14
TT
30842016-08-03 Tom Tromey <tom@tromey.com>
3085
3086 * NEWS: Mention new Python breakpoint events.
3087
33541b2e
TT
30882016-08-02 Tom Tromey <tom@tromey.com>
3089
3090 * MAINTAINERS (Core): Add self as Rust maintainer.
3091
751b375e
JB
30922016-08-01 Joel Brobecker <brobecker@adacore.com>
3093
3094 * NEWS: Create a new section for the next release branch.
3095 Rename the section of the current branch, now that it has
3096 been cut.
3097
b2bd7787
JB
30982016-08-01 Joel Brobecker <brobecker@adacore.com>
3099
3100 GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
3101 * version.in: Bump version to 7.12.50.DATE-git.
3102
293acfae
AM
31032016-07-27 Alan Modra <amodra@gmail.com>
3104
3105 * amd64-darwin-tdep.c: Don't include libbfd.h.
3106 * i386-darwin-tdep.c: Likewise.
3107 * rs6000-nat.c: Likewise.
3108 * rs6000-tdep.c: Likewise.
3109
0b31a4bc
TT
31102016-07-26 Tom Tromey <tom@tromey.com>
3111
3112 * symtab.c (register_symbol_computed_impl): Update.
3113 PR python/20190:
3114 * value.h (symbol_read_needs): Declare.
3115 (symbol_read_needs_frame): Add comment.
3116 * symtab.h (struct symbol_computed_ops) <read_variable>: Update
3117 comment.
3118 <get_symbol_read_needs>: Rename. Change return type.
3119 * findvar.c (symbol_read_needs): New function.
3120 (symbol_read_needs_frame): Rewrite.
3121 (default_read_var_value): Use symbol_read_needs.
3122 * dwarf2loc.c (struct symbol_needs_baton): Rename.
3123 <needs>: Renamed from needs_frame. Changed type.
3124 (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
3125 (symbol_needs_read_mem, symbol_needs_frame_base)
3126 (symbol_needs_frame_cfa, symbol_needs_tls_address)
3127 (symbol_needs_dwarf_call): Rename.
3128 (needs_dwarf_reg_entry_value): Update.
3129 (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
3130 Rename and update.
3131 (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
3132 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
3133 * defs.h (enum symbol_needs_kind): New.
3134
40c31709
PA
31352016-07-26 Pedro Alves <palves@redhat.com>
3136
3137 * nat/linux-ptrace.c: Include "gregset.h".
3138 (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
3139 PTRACE_PEEKUSER.
3140
9cf12d57
PA
31412016-07-26 Pedro Alves <palves@redhat.com>
3142
3143 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
3144 parameter to 'ptrace'.
3145 * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
3146 (nat_uptr_t): New an unsigned long.
3147 (nat_clock_t): Remove attribute __aligned__.
3148 (struct nat_timeval): Delete.
3149 (nat_siginfo_t): Remove attribute __aligned__.
3150 (ptrace_siginfo_t): Define.
3151 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
3152 (compat_x32_siginfo_from_siginfo)
3153 (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
3154 Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
3155 Remove casts.
3156 (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
3157 'ptrace'. Remove static assertions.
3158 (top level): New static assertions.
3159
8194e927
SM
31602016-07-25 Simon Marchi <simon.marchi@ericsson.com>
3161
3162 * top.h (make_delete_ui_cleanup): New declaration.
3163 * top.c (delete_ui_cleanup): New function.
3164 (make_delete_ui_cleanup): New function.
3165 (new_ui_command): Create restore_ui cleanup earlier, create a
3166 delete_ui cleanup and discard it on success.
3167
0e1a6a51
PA
31682016-07-25 Pedro Alves <palves@redhat.com>
3169 Jan Kratochvil <jan.kratochvil@redhat.com>
3170
3171 * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
3172 't'.
3173
d617208b
PA
31742016-07-25 Pedro Alves <palves@redhat.com>
3175
3176 * nat/linux-procfs.c (enum proc_state): New enum.
3177 (parse_proc_status_state): New function.
3178 (linux_proc_pid_get_state): Replace output string buffer parameter
3179 with an output proc_state parameter. Use parse_proc_status_state.
3180 (linux_proc_pid_is_gone): Adjust to use proc_state values.
3181 (linux_proc_pid_has_state): Change type of 'state' parameter; now
3182 an enum proc_state. Adjust to linux_proc_pid_get_state interface
3183 change.
3184 (linux_proc_pid_is_stopped)
3185 (linux_proc_pid_is_trace_stopped_nowarn)
3186 (linux_proc_pid_is_zombie_maybe_warn): Adjust to
3187 linux_proc_pid_get_state interface change.
3188
3a1518e4
TW
31892016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
3190
3191 * MAINTAINERS (Write After Approval): Add Tim Wiederhake
3192
c0272db5
TW
31932016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
3194
3195 * NEWS: Resume btrace on reconnect.
3196 * record-btrace.c: Added record-btrace.h include.
3197 (record_btrace_open): Split into this and ...
3198 (record_btrace_push_target): ... this.
3199 (record_btrace_disconnect): New function.
3200 (init_record_btrace_ops): Use record_btrace_disconnect.
3201 * record-btrace.h: New file.
3202 * remote.c: Added record-btrace.h include.
3203 (remote_start_remote): Check recording status.
3204 (remote_btrace_maybe_reopen): New function.
3205
e3487908
GKB
32062016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
3207
3208 * xml-syscall.c (get_syscalls_by_group): New.
3209 (get_syscall_group_names): New.
3210 (struct syscall_group_desc): New structure to store group data.
3211 (struct syscalls_info): Include field to store the group list.
3212 (sysinfo_free_syscall_group_desc): New.
3213 (free_syscalls_info): Free group list.
3214 (syscall_group_create_syscall_group_desc): New.
3215 (syscall_group_add_syscall): New.
3216 (syscall_create_syscall_desc): Add syscall to its groups.
3217 (syscall_start_syscall): Load group attribute.
3218 (syscall_group_get_group_by_name): New.
3219 (xml_list_syscalls_by_group): New.
3220 (xml_list_of_groups): New.
3221 * xml-syscall.h (get_syscalls_by_group): Export function
3222 to retrieve a list of syscalls filtered by the group name.
3223 (get_syscall_group_names): Export function to retrieve the list
3224 of syscall groups.
3225 * break-catch-syscall.c (catch_syscall_split_args): Verify if
3226 argument is a syscall group and expand it to a list of syscalls
3227 when creating catchpoints.
3228 (catch_syscall_completer): Add word completion for system call
3229 groups.
3230 * configure.ac: Include dependency for xsltproc when building
3231 in maintainer-mode.
3232 * break-catch-syscall.c (_initialize_breakpoint): Update catch
3233 syscall command documentation.
3234 * NEWS: Include section about catching groups of syscalls.
3235 * configure: Regenerate.
3236 * data-directory/Makefile.in: Generate syscall xml when building
3237 in maintainer mode.
3238 * syscalls/gdb-syscalls.dtd: Include group attribute to the
3239 syscall element.
3240 * syscalls/apply-defaults.xsl: New.
3241 * syscalls/linux-defaults.xml.in: New.
3242 * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
3243 * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
3244 * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
3245 * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
3246 * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
3247 * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
3248 * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
3249 * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
3250 * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
3251 * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
3252 * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
3253 * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
3254 * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
3255 * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
3256 * syscalls/aarch64-linux.xml: Regenerate.
3257 * syscalls/amd64-linux.xml: Regenerate.
3258 * syscalls/arm-linux.xml: Regenerate.
3259 * syscalls/i386-linux.xml: Regenerate.
3260 * syscalls/mips-n32-linux.xml: Regenerate.
3261 * syscalls/mips-n64-linux.xml: Regenerate.
3262 * syscalls/mips-o32-linux.xml: Regenerate.
3263 * syscalls/ppc-linux.xml: Regenerate.
3264 * syscalls/ppc64-linux.xml: Regenerate.
3265 * syscalls/s390-linux.xml: Regenerate.
3266 * syscalls/s390x-linux.xml: Regenerate.
3267 * syscalls/sparc-linux.xml: Regenerate.
3268 * syscalls/sparc64-linux.xml: Regenerate.
3269
49ecef2a
AP
32702016-07-23 Andrew Pinski <apinski@cavium.com>
3271
3272 * nat/aarch64-linux-hw-point.c
3273 (aarch64_linux_get_debug_reg_capacity): Handle
3274 ARMv8.1 and ARMv8.2 debug versions.
3275 * nat/aarch64-linux-hw-point.h
3276 (AARCH64_DEBUG_ARCH_V8_1): New define.
3277 (AARCH64_DEBUG_ARCH_V8_2): New define.
3278
463888ab
РИ
32792016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
3280
3281 PR gdb/14529
3282 * windows-nat.c (signal_event_command): New command 'signal-event'
3283 for W32 JIT debug support.
3284 * NEWS: Add an entry about the new 'signal-event' command.
3285
e98c9e7c
TT
32862016-07-22 Tom Tromey <tom@tromey.com>
3287
3288 PR rust/20162:
3289 * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
3290 Call scan_partial_symbols for children when reading a Rust CU.
3291 (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
3292 rustc.
3293 (process_structure_scope) <DW_TAG_subprogram>: Call
3294 read_func_scope for Rust.
3295
eed2386e
YQ
32962016-07-22 Yao Qi <yao.qi@linaro.org>
3297
3298 * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
3299 bt_ctf_get_int64.
3300
12df5c00
TT
33012016-07-21 Tom Tromey <tom@tromey.com>
3302
3303 * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
3304 structs.
3305 * rust-exp.y (struct_expr_list): Allow empty elements.
3306
305450ed
TT
33072016-07-21 Tom Tromey <tom@tromey.com>
3308
3309 * configure: Rebuild.
3310 * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
3311 -Wunused-but-set-parameter, -Wunused-but-set-variable.
3312
f515a1d6
PA
33132016-07-21 Pedro Alves <palves@redhat.com>
3314
3315 * go32-nat.c (go32_create_inferior): Add cast.
3316 * ser-go32.c (dos_noop): Delete.
3317 (dos_flush_output, dos_setparity, dos_drain_output): New
3318 functions.
3319 (dos_write): Add cast.
3320 (dos_ops): Use dos_flush_output, dos_setparity and
3321 dos_drain_output.
3322 * top.c (do_chdir_cleanup): Add cast.
3323
c25b7cce
PA
33242016-07-21 Pedro Alves <palves@redhat.com>
3325
3326 * windows-nat.c (handle_exception): Remove "th".
3327
e3821cca
PA
33282016-07-21 Pedro Alves <palves@redhat.com>
3329
3330 * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
3331 scope that uses it.
3332
dbaed385
JB
33332016-07-20 John Baldwin <jhb@FreeBSD.org>
3334
3335 * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
3336 events.
3337 (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
3338 defined.
3339 (fbsd_add_vfork_done): Likewise.
3340 (fbsd_is_vfork_done_pending): Likewise.
3341 (fbsd_next_vfork_done): Likewise.
3342 (fbsd_resume): Only ignore pending vfork done events if
3343 "PTRACE_VFORK" is not defined.
3344 (fbsd_wait): Only look for pending vfork done events if
3345 "PTRACE_VFORK" is not defined.
3346 [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
3347 events.
3348 (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
3349 is not defined.
3350
5fa14c6b
JB
33512016-07-20 John Baldwin <jhb@FreeBSD.org>
3352
3353 * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
3354 new child processes.
3355
da95a26c
JB
33562016-07-20 John Baldwin <jhb@FreeBSD.org>
3357
3358 * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
3359 (fbsd_enable_proc_events): New function.
3360 (fbsd_enable_follow_fork): Remove function.
3361 (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
3362 (fbsd_post_attach): Likewise.
3363
bc7b765a
JB
33642016-07-15 John Baldwin <jhb@FreeBSD.org>
3365
3366 * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
3367 (do_gdb_signal_to_host): Likewise.
3368 * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
3369 programs.
3370 * proc-events.c (signal_table): Add entry for SIGLIBRT.
3371
7f131b39
TT
33722016-07-14 Tom Tromey <tom@tromey.com>
3373
3374 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
3375 newline.
3376
78cc6c2d
TT
33772016-07-14 Tom Tromey <tom@tromey.com>
3378
3379 * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
3380 (mips_o32_push_dummy_call): Remove "stack_used_p".
3381 * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
3382 "insn_bit28".
3383 * rust-lang.c (rust_print_type): Remove "len".
3384 * rust-exp.y (super_name): Remove "current_len".
3385 * python/py-framefilter.c (py_print_type): Remove "type".
3386 * mdebugread.c (parse_partial_symbols): Remove
3387 "past_first_source_file".
3388 <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
3389 * m2-valprint.c (m2_print_unbounded_array): Remove
3390 "content_type".
3391 (m2_val_print): Remove "i".
3392 * linespec.c (unexpected_linespec_error): Remove "cleanup".
3393 * f-valprint.c (f_val_print): Remove "i".
3394 * elfread.c (elf_symtab_read): Remove "offset".
3395 * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
3396 * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
3397
ac298888
TT
33982016-07-14 Tom Tromey <tom@tromey.com>
3399
3400 * arch-utils.c (default_skip_permanent_breakpoint): Remove
3401 "bp_insn".
3402 * disasm.c (do_assembly_only): Remove "num_displayed".
3403 * dwarf2read.c (read_abbrev_offset): Remove "length".
3404 (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
3405 "constant".
3406 * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
3407 * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
3408 * tracefile.c (trace_save): Remove "status".
3409
764c99c1
TT
34102016-07-14 Tom Tromey <tom@tromey.com>
3411
3412 * symfile.c (simple_overlay_update_1): Remove initialization
3413 of "size", and commented-out code.
3414 (simple_overlay_update): Likewise.
3415
cecc8b99
TT
34162016-07-14 Tom Tromey <tom@tromey.com>
3417
3418 * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
3419 * tui/tui-io.c (tui_puts): Use getcurx.
3420 (tui_redisplay_readline): Likewise.
3421
821fc4ae
TT
34222016-07-14 Tom Tromey <tom@tromey.com>
3423
3424 * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
3425
537d9b85
TT
34262016-07-14 Tom Tromey <tom@tromey.com>
3427
3428 * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
3429 succeeded.
3430
dac790e1
TT
34312016-07-13 Tom Tromey <tom@tromey.com>
3432
3433 PR python/15620, PR python/18620:
3434 * python/py-evts.c (gdbpy_initialize_py_events): Call
3435 add_new_registry for new events.
3436 * python/py-events.h (events_object) <breakpoint_created,
3437 breakpoint_deleted, breakpoint_modified>: New fields.
3438 * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
3439 breakpoint changed event.
3440 (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
3441 (gdbpy_breakpoint_modified): New function.
3442 (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
3443 observer.
3444
93daf339
TT
34452016-07-13 Tom Tromey <tom@tromey.com>
3446
3447 PR python/17698:
3448 * NEWS: Update.
3449 * python/py-breakpoint.c (bppy_get_pending): New function.
3450 (breakpoint_object_getset): Add entry for "pending".
3451 * breakpoint.h (pending_breakpoint_p): Declare.
3452 * breakpoint.c (pending_breakpoint_p): New function.
3453
43684a7b
TT
34542016-07-13 Tom Tromey <tom@tromey.com>
3455
3456 * python/py-breakpoint.c (bppy_get_visibility)
3457 (gdbpy_breakpoint_created): Use user_breakpoint_p.
3458
6571a381
TT
34592016-07-13 Tom Tromey <tom@tromey.com>
3460
3461 PR cli/18053:
3462 * jit.c (jit_reader_load_command): Use tilde_expand.
3463 (_initialize_jit): Fix help for jit-reader-unload. Set completer
3464 for new commands.
3465
e0f3fd7c
TT
34662016-07-12 Tom Tromey <tom@tromey.com>
3467
3468 PR python/19293:
3469 * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
3470 gdb.invalidate_cached_frames.
3471 * python/lib/gdb/unwinder.py (register_unwinder): Call
3472 gdb.invalidate_cached_frames.
3473 * python/python.c (gdbpy_invalidate_cached_frames): New function.
3474 (python_GdbMethods): Add entry for invalidate_cached_frames.
3475
41c977aa
WT
34762016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
3477
3478 * cp-namespace.c (cp_lookup_bare_symbol): Initialize
3479 lang_this.symbol.
3480
4f19a0e6
WT
34812016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
3482
3483 * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
3484 parameter to look for the symbol "this".
3485
3486
fb36c6bf
JB
34872016-07-06 John Baldwin <jhb@FreeBSD.org>
3488
3489 * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
3490
db297a65
JB
34912016-07-06 John Baldwin <jhb@FreeBSD.org>
3492
3493 * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
3494 left shifts.
3495
9ca10714
JB
34962016-07-06 John Baldwin <jhb@FreeBSD.org>
3497
3498 * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
3499 the MEDIA_FP_REGNUM register.
3500
d66ff635
JB
35012016-07-06 John Baldwin <jhb@FreeBSD.org>
3502
3503 * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
3504 negative size.
3505
ee950322
JB
35062016-07-06 John Baldwin <jhb@FreeBSD.org>
3507
3508 * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
3509
1040b979
YQ
35102016-07-06 Yao Qi <yao.qi@linaro.org>
3511
3512 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
3513 arm_vfp_cprc_sub_candidate for static field.
3514
42d94011
MG
35152016-07-06 Manish Goregaokar <manish@mozilla.com>
3516
3517 * rust-lang.c (rust_subscript): Allow subscripting pointers
3518
13cdc2af
JK
35192016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3520
3521 * configure: Regenerate.
3522 * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
3523
09c98b44
DB
35242016-07-01 Don Breazeal <donb@codesourcery.com>
3525
3526 * remote.c (remote_get_memory_xfer_limit): New function.
3527 * target-delegates.c: Regenerate.
3528 * target.c (memory_xfer_partial): Call
3529 target_ops.to_get_memory_xfer_limit.
3530 * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
3531 member.
3532
2c5c2a33
JB
35332016-07-01 John Baldwin <jhb@FreeBSD.org>
3534
3535 * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
3536 (struct fbsd_fork_info): ... this.
3537 (struct fbsd_fork_info) <child>: Rename to ...
3538 (struct fbsd_fork_info) <ptid>: ... this.
3539 (fbsd_pending_children): Update type.
3540 (fbsd_remember_child): Update type and field name.
3541 (fbsd_is_child_pending): Likewise.
3542 (fbsd_pending_vfork_done): New variable.
3543 (fbsd_is_vfork_done_pending): New function.
3544 (fbsd_next_vfork_done): New function.
3545 (fbsd_resume): Don't resume processes with a pending vfork done
3546 event.
3547 (fbsd_wait): Report pending vfork done events.
3548 (fbsd_follow_fork): Delay and record a pending vfork done event
3549 for a vfork parent when detaching the child.
3550
8607ea63
JB
35512016-07-01 John Baldwin <jhb@FreeBSD.org>
3552
3553 * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
3554 (resume_one_thread_cb): Move below fork following helper code.
3555 (resume_all_threads_cb): Likewise.
3556 (fbsd_resume): Likewise.
3557
bb2a62e6
JB
35582016-07-01 John Baldwin <jhb@FreeBSD.org>
3559
3560 * fbsd-nat.c (fbsd_follow_fork): Only detach child if
3561 "detach_fork" is true.
3562
5077bfff
JB
35632016-07-01 John Baldwin <jhb@FreeBSD.org>
3564
3565 * x86bsd-nat.c: Include 'gdbthread.h'.
3566 (x86bsd_dr_set): Set debug registers on all threads belonging to
3567 the current inferior.
3568
a3405d12
JB
35692016-07-01 John Baldwin <jhb@FreeBSD.org>
3570
3571 * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
3572 'x86bsd-nat.h'.
3573 * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
3574 'amd64bsd-nat.h'.
3575 (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
3576 (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
3577 with 'x86bsd_xsave_len'.
3578 (amd64bsd_store_inferior_registers): Likewise.
3579 (amd64bsd_target): Inherit from x86bsd_target.
3580 (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
3581 (amd64bsd_dr_set): Likewise.
3582 (amd64bsd_dr_set_control): Likewise.
3583 (amd64bsd_dr_set_addr): Likewise.
3584 (amd64bsd_dr_get_addr): Likewise.
3585 (amd64bsd_dr_get_status): Likewise.
3586 (amd64bsd_dr_get_control): Likewise.
3587 * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
3588 'amd64bsd-nat.h'.
3589 (super_mourn_inferior): Move to x86bsd-nat.c.
3590 (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
3591 (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
3592 'x86bsd_xsave_len'.
3593 (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
3594 mourn_inferior' target op.
3595 * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
3596 * config/i386/fbsd64.mh: Likewise.
3597 * config/i386/nbsd64.mh: Likewise.
3598 * config/i386/nbsdelf.mh: Likewise.
3599 * config/i386/obsd.mh: Likewise.
3600 * config/i386/obsd64.mh: Likewise.
3601 * i386bsd-nat.c: Include 'x86bsd-nat.h'.
3602 (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
3603 (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
3604 with 'x86bsd_xsave_len'.
3605 (i386bsd_store_inferior_registers): Likewise.
3606 (i386bsd_target): Inherit from x86bsd_target.
3607 (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
3608 (i386bsd_dr_set): Likewise.
3609 (i386bsd_dr_set_control): Likewise.
3610 (i386bsd_dr_set_addr): Likewise.
3611 (i386bsd_dr_get_addr): Likewise.
3612 (i386bsd_dr_get_status): Likewise.
3613 (i386bsd_dr_get_control): Likewise.
3614 * i386bsd-nat.h (i386bsd_xsave_len): Remove.
3615 (i386bsd_dr_set_control): Remove.
3616 (i386bsd_dr_set_addr): Remove.
3617 (i386bsd_dr_get_addr): Remove.
3618 (i386bsd_dr_get_status): Remove.
3619 (i386bsd_dr_get_control): Remove.
3620 * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
3621 (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
3622 'x86bsd_xsave_len'.
3623 (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
3624 mourn_inferior' target op.
3625 * x86bsd-nat.c: New file.
3626 * x86bsd-nat.h: New file.
3627
20aa2c60
PA
36282016-07-01 Pedro Alves <palves@redhat.com>
3629 Tom Tromey <tom@tromey.com>
3630
3631 * jit.c (jit_reader_load_command): Call reinit_frame_cache and
3632 jit_inferior_created_hook.
3633 (jit_reader_unload_command): Call reinit_frame_cache and
3634 jit_inferior_exit_hook.
3635 * jit.c (struct jit_unwind_private) <registers>: Delete field.
3636 <regcache>: New field.
3637 (jit_unwind_reg_set_impl): Set the register's value in the
3638 regcache. Free the passed-in gdb_reg_value.
3639 (jit_dealloc_cache): Adjust to free the regcache.
3640 (jit_frame_sniffer): Allocate a regcache instead of an array of
3641 gdb_reg_value pointers.
3642 (jit_frame_this_id): Adjust.
3643 (jit_frame_prev_register): Read raw registers off of the regcache
3644 instead of from the gdb_reg_value pointer array. Use
3645 gdbarch_pseudo_register_read_value to read pseudo registers.
3646 * regcache.c (regcache_raw_set_cached_value): New function,
3647 factored out from ...
3648 (regcache_raw_write): ... here.
3649 * regcache.h (regcache_raw_set_cached_value): Declare.
3650
ced2dffb
PA
36512016-07-01 Pedro Alves <palves@redhat.com>
3652 Antoine Tremblay <antoine.tremblay@ericsson.com>
3653
3654 * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
3655 out from ...
3656 (inf_ptrace_detach): ... here.
3657 * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
3658 * linux-nat.c (get_pending_status): Rename to ...
3659 (get_detach_signal): ... this, and return a host signal instead of
3660 filling in a wait status.
3661 (detach_one_lwp): New function, factored out from detach_callback
3662 and adjusted to handle detaching from a zombie thread.
3663 (detach_callback): Skip the leader thread.
3664 (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
3665 the leader thread, nor build a signal string to pass down.
3666 Instead, use target_announce_detach, detach_one_lwp and
3667 inf_ptrace_detach_success.
3668
63000888
PA
36692016-07-01 Pedro Alves <palves@redhat.com>
3670
3671 * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
3672 locations.
3673 * infcmd.c (detach_command): Call breakpoint_init_inferior.
3674
0f48b757
PA
36752016-07-01 Pedro Alves <palves@redhat.com>
3676
3677 * darwin-nat.c (darwin_detach): Use target_announce_detach.
3678 * inf-ptrace.c (inf_ptrace_detach): Likewise.
3679 * nto-procfs.c (procfs_detach): Likewise.
3680 * remote.c (remote_detach_1): Likewise.
3681 * target.c (target_announce_detach): New function.
3682 * target.h (target_announce_detach): New declaration.
3683
803b47e5
TT
36842016-06-29 Tom Tromey <tom@tromey.com>
3685
3686 PR python/20129:
3687 * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
3688 (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
3689 not "name".
3690
9d78f827
TT
36912016-06-29 Tom Tromey <tom@tromey.com>
3692
3693 PR gdb/17210:
3694 * target.c (free_memory_read_result_vector): Take a pointer to the
3695 VEC as an argument.
3696 (read_memory_robust): Install a cleanup for "result".
3697 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
3698
a405c228
MG
36992016-06-29 Manish Goregaokar <manish@mozilla.com>
3700
9bf74fb2
MG
3701 * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
3702
37032016-06-29 Manish Goregaokar <manish@mozilla.com>
3704
a405c228
MG
3705 * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
3706
2ac09a5b
YQ
37072016-06-28 Yao Qi <yao.qi@linaro.org>
3708
3709 * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
3710 variable new_offset.
3711
921d8f54
MG
37122016-06-27 Manish Goregaokar <manish@mozilla.com>
3713
6763d566 3714 * rust-lang.c (rust_print_type, rust_decorations): Print unit
0b08e1f3
PA
3715 types as "()".
3716 (rust_print_type): Omit return type for functions returning unit.
921d8f54 3717
f4952523
PMR
37182016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
3719
3720 * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
3721 when there is an error during the breakpoint creation.
3722
9e8a8ea8
TT
37232016-06-25 Tom Tromey <tom@tromey.com>
3724
3725 * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
3726 formatting.
3727
b5a4b3c5
MG
37282016-06-25 Manish Goregaokar <manish@mozilla.com>
3729
3730 PR gdb/20239
3731 * rust-lang.c (rust_get_disr_info): Correctly interpret
3732 NonZero-optimized enums of arbitrary depth.
3733 (rust_print_type): Correctly print NonZero-optimized
3734 enums.
3735
6b850546
DT
37362016-06-24 David Taylor <dtaylor@emc.com>
3737
3738 PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
3739 * c-lang.h: Change all parameters, variables, and struct or union
3740 members used as struct or union fie3ld offsets from int to
3741 LONGEST.
3742 * c-valprint.c: Likewise.
3743 * cp-abi.c: Likewise.
3744 * cp-abi.h: Likewise.
3745 * cp-valprint.c: Likewise.
3746 * d-valprint.c: Likewise.
3747 * dwarf2loc.c: Likewise.
3748 * eval.c: Likewise.
3749 * extension-priv.h: Likewise.
3750 * extension.c: Likewise.
3751 * extension.h: Likewise.
3752 * findvar.c: Likewise.
3753 * gdbtypes.h: Likewise.
3754 * gnu-v2-abi.c: Likewise.
3755 * gnu-v3-abi.c: Likewise.
3756 * go-valprint.c: Likewise.
3757 * guile/guile-internal.h: Likewise.
3758 * guile/scm-pretty-print.c: Likewise.
3759 * jv-valprint.c Likewise.
3760 * opencl-lang.c: Likewise.
3761 * p-lang.h: Likewise.
3762 * python/py-prettyprint.c: Likewise.
3763 * python/python-internal.h: Likewise.
3764 * spu-tdep.c: Likewise.
3765 * typeprint.c: Likewise.
3766 * valarith.c: Likewise.
3767 * valops.c: Likewise.
3768 * valprint.c: Likewise.
3769 * valprint.h: Likewise.
3770 * value.c: Likewise.
3771 * value.h: Likewise.
3772 * p-valprint.c: Likewise.
3773 * c-typeprint.c (c_type_print_base): When printing offset, use
3774 plongest, not %d.
3775 * gdbtypes.c (recursive_dump_type): Ditto.
3776
2907f414
DT
37772016-06-24 David Taylor <david.taylor@emc.com>
3778
3779 * MAINTAINERS (Write After Approval): Add David Taylor.
3780
e6cdd38e
JB
37812016-06-24 John Baldwin <jhb@FreeBSD.org>
3782
3783 * configure.ac: Check for support for system call LWP fields on
3784 FreeBSD.
3785 * config.in, configure: Rebuild.
3786 * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
3787 * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
3788 Report system call events.
3789 [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
3790 (fbsd_set_syscall_catchpoint): New function.
3791 (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
3792 Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
3793 * fbsd-tdep.c: Include xml-syscall.h
3794 (fbsd_get_syscall_number): New function.
3795 (fbsd_init_abi): Set XML system call file name.
3796 Add "get_syscall_number" gdbarch method.
3797 * syscalls/freebsd.xml: New file.
3798
82372b2f
JB
37992016-06-24 John Baldwin <jhb@FreeBSD.org>
3800
3801 * fbsd-tdep.c: Include "auxv.h".
3802 (fbsd_print_auxv_entry): New function.
3803 (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
3804
2faa3447
JB
38052016-06-24 John Baldwin <jhb@FreeBSD.org>
3806
3807 * auxv.c (fprint_auxv_entry): New function.
3808 (default_print_auxv_entry): New function.
3809 (fprint_target_auxv): Use gdbarch_print_auxv_entry.
3810 * auxv.h (enum auxv_format): New enum.
3811 (fprint_auxv_entry): Declare.
3812 (default_print_auxv_entry): Declare.
3813 * gdbarch.sh (print_auxv_entry): New.
3814 * gdbarch.c, gdbarch.h: Re-generated.
3815
7697fc9e
JB
38162016-06-24 John Baldwin <jhb@FreeBSD.org>
3817
3818 * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
3819 (fbsd_xfer_partial): New function.
3820 (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
3821 "fbsd_xfer_partial".
3822
8b302db8
TT
38232016-06-23 Tom Tromey <tom@tromey.com>
3824
3825 * symtab.c (symbol_find_demangled_name): Loop over languages and
3826 use language_sniff_from_mangled_name.
3827 * rust-lang.c (rust_sniff_from_mangled_name): New function.
3828 (rust_language_defn): Update.
3829 * p-lang.c (pascal_language_defn): Update.
3830 * opencl-lang.c (opencl_language_defn): Update.
3831 * objc-lang.c (objc_sniff_from_mangled_name): New function.
3832 (objc_language_defn): Update.
3833 * m2-lang.c (m2_language_defn): Update.
3834 * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
3835 field.
3836 (language_sniff_from_mangled_name): Declare.
3837 * language.c (language_sniff_from_mangled_name): New function.
3838 (unknown_language_defn, auto_language_defn, local_language_defn):
3839 Update.
3840 * jv-lang.c (java_sniff_from_mangled_name): New function.
3841 (java_language_defn): Use it.
3842 * go-lang.c (go_sniff_from_mangled_name): New function.
3843 (go_language_defn): Use it.
3844 * f-lang.c (f_language_defn): Update.
3845 * defs.h (enum language): Reorder.
3846 * d-lang.c (d_sniff_from_mangled_name): New function.
3847 (d_language_defn): Use it.
3848 * cp-support.h (gdb_sniff_from_mangled_name): Declare.
3849 * cp-support.c (gdb_sniff_from_mangled_name): New function.
3850 * c-lang.c (c_language_defn, cplus_language_defn)
3851 (asm_language_defn, minimal_language_defn): Update.
3852 * ada-lang.c (ada_sniff_from_mangled_name): New function.
3853 (ada_language_defn): Use it.
3854
56618e20
TT
38552016-06-23 Tom Tromey <tom@tromey.com>
3856
3857 * ada-lang.c (ada_extensions): New array.
3858 (ada_language_defn): Use it.
3859 * c-lang.c (c_extensions): New array.
3860 (c_language_defn): Use it.
3861 (cplus_extensions): New array.
3862 (cplus_language_defn): Use it.
3863 (asm_extensions): New array.
3864 (asm_language_defn): Use it.
3865 (minimal_language_defn): Update.
3866 * d-lang.c (d_extensions): New array.
3867 (d_language_defn): Use it.
3868 * f-lang.c (f_extensions): New array.
3869 (f_language_defn): Use it.
3870 * go-lang.c (go_language_defn): Update.
3871 * jv-lang.c (java_extensions): New array.
3872 (java_language_defn): Use it.
3873 * language.c (add_language): Call add_filename_language.
3874 (unknown_language_defn, auto_language_defn, local_language_defn):
3875 Update.
3876 * language.h (struct language_defn) <la_filename_extensions>: New
3877 field.
3878 * m2-lang.c (m2_language_defn): Update.
3879 * objc-lang.c (objc_extensions): New array.
3880 (objc_language_defn): Use it.
3881 * opencl-lang.c (opencl_language_defn): Update.
3882 * p-lang.c (p_extensions): New array.
3883 (pascal_language_defn): Use it.
3884 * rust-lang.c (rust_extensions): New array.
3885 (rust_language_defn): Use it.
3886 * symfile.c (add_filename_language): No longer static. Make "ext"
3887 const.
3888 (init_filename_language_table): Remove.
3889 (_initialize_symfile): Update.
3890 * symfile.h (add_filename_language): Declare.
3891
3fcf0b0d
TT
38922016-06-23 Tom Tromey <tom@tromey.com>
3893
3894 * symfile.c (filename_language_table): Now a VEC.
3895 (fl_table_size, fl_table_next): Remove.
3896 (add_filename_language): Use VEC_safe_push.
3897 (set_ext_lang_command, info_ext_lang_command)
3898 (deduce_language_from_filename): Use VEC_iterate.
3899 (init_filename_language_table): Use VEC_empty.
3900
0c72ed4c
TT
39012016-06-23 Tom Tromey <tom@tromey.com>
3902
3903 * python/python.c (gdbpy_parameter): Now static.
3904 * python/python-internal.h (gdbpy_parameter): Don't declare.
3905
17621150
TT
39062016-06-23 Tom Tromey <tom@tromey.com>
3907
3908 PR gdb/16483:
3909 * python/lib/gdb/command/frame_filters.py
3910 (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
3911 nothing if no filters found. Return value indicating whether
3912 filters were printed.
3913 (InfoFrameFilter.print_list): Remove.
3914 (InfoFrameFilter.invoke): Print message if no frame filters
3915 found.
3916
04d59df6
WT
39172016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
3918
3919 * f-valprint.c (f_val_print): Add field names for printing
3920 derived types fields.
3921
34a60ddb
AA
39222016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3923
3924 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
3925 in name of last-break regset.
3926
49940788
PA
39272016-06-21 Pedro Alves <palves@redhat.com>
3928
3929 * fork-child.c (fork_inferior): Switch the child to the main UI
3930 right after vfork. Save/restore the current UI in the parent.
3931 Flush outputs of the main UI instead of the current UI.
3932
468afe6c
PA
39332016-06-21 Pedro Alves <palves@redhat.com>
3934
3935 * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
3936 to all UIs.
3937
86f78169
PA
39382016-06-21 Pedro Alves <palves@redhat.com>
3939
3940 * NEWS: Mention support for running interpreters on separate
3941 UIs and the new new-ui command.
3942
60eb5395
PA
39432016-06-21 Pedro Alves <palves@redhat.com>
3944
3945 * interps.c (set_top_level_interpreter): New function, factored
3946 out from captured_main.
3947 (interpreter_completer): Make extern.
3948 * interps.h (set_top_level_interpreter, interpreter_completer):
3949 New declarations.
3950 (captured_main): Use set_top_level_interpreter.
3951 * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
3952 (open_terminal_stream, new_ui_command): New functions.
3953 (init_main): Install the "new-ui" command.
3954
268a799a
PA
39552016-06-21 Pedro Alves <palves@redhat.com>
3956
3957 * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
3958 (read_command_lines): Use input_interactive_p instead of
3959 input_from_terminal_p.
3960 * defs.h (struct ui): Forward declare.
3961 (input_from_terminal_p): Rename to ...
3962 (input_interactive_p): ... this.
3963 * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
3964 to quit_command.
3965 (command_handler): Adjust to per-UI stdin.
3966 (handle_line_of_input): Adjust to per-UI stdin and use
3967 input_interactive_p instead of ISATTY and input_from_terminal_p.
3968 (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
3969 (command_line_handler): Always pass true as "from_tty" parameter
3970 of handle_line_of_input and execute_command.
3971 (async_sigterm_handler): Pass 0 as from_tty argument to
3972 quit_command.
3973 * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
3974 (gdb_has_a_terminal): Don't check interactive_mode here.
3975 (_initialize_inflow): Don't install "set interactive-mode" here.
3976 * main.c (captured_command_loop): Adjust to per-UI stdin.
3977 * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
3978 stdin.
3979 * top.c (new_ui): Save the stdin stream and whether it's a tty.
3980 (dont_repeat): Adjust to per-UI stdin.
3981 (command_line_input): Adjust to per-UI stdin and to use
3982 input_interactive_p.
3983 (quit_force): Write history if any UI supports interactive input.
3984 (interactive_mode, show_interactive_mode): Move here, from
3985 inflow.c.
3986 (input_from_terminal_p): Rename to ...
3987 (input_interactive_p): ... this, and check the "interactive_mode"
3988 global instead of calling gdb_has_a_terminal.
3989 (_initialize_top): Install "set interactive-mode" here.
3990 * top.h (struct ui) <stdin_stream, input_interactive_p>: New
3991 fields.
3992 * utils.c (quit): Pass 0 as from_tty argument to quit_force.
3993 (defaulted_query): Adjust to per-UI stdin and to use
3994 input_interactive_p.
3995
07169ff7
PA
39962016-06-21 Pedro Alves <palves@redhat.com>
3997
3998 * event-top.c (stdin_event_handler): Don't quit gdb if it was a
3999 secondary UI's input stream that closed. Instead, just delete the
4000 UI.
4001
98d9f24e
PA
40022016-06-21 Pedro Alves <palves@redhat.com>
4003
4004 * event-top.c (main_ui_): Delete.
4005 (main_ui, current_ui, ui_list): No longer initialize here.
4006 * main.c (captured_main): UI initialization code factored out to
4007 new new_ui function.
4008 (gdb_main): Wrap captured_main with TRY/CATCH instead of
4009 catch_errors.
4010 * top.c (highest_ui_num): New global.
4011 (new_ui): New function.
4012 * top.h (struct ui) <num>: New field.
4013 (new_ui): New declaration.
4014
eaae60fd
PA
40152016-06-21 Pedro Alves <palves@redhat.com>
4016
4017 * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
4018 nothing to print. Use should_print_stop_to_console.
4019 * tui/tui-interp.c (tui_on_normal_stop): Likewise.
4020
8980e177
PA
40212016-06-21 Pedro Alves <palves@redhat.com>
4022
4023 * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
4024 (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
4025 thread parameter.
4026 (until_break_command): Pass command interpreter to thread fsm
4027 ctor.
4028 * cli/cli-interp.c (should_print_stop_to_console): Adjust.
4029 * gdbthread.h (struct thread_control_state) <command_interp>:
4030 Delete field.
4031 * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
4032 Pass it down.
4033 (call_thread_fsm_should_stop): Add thread parameter.
4034 (call_function_by_hand_dummy): Pass command interpreter to thread
4035 fsm ctor. Pass thread pointer to fsm clean up method.
4036 * infcmd.c: Include interps.h.
4037 (struct step_command_fsm) <thread>: Delete field.
4038 (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
4039 (step_command_fsm_prepare): Remove references to fsm's thread
4040 field.
4041 (step_1): Pass command interpreter to thread
4042 fsm ctor. Pass thread pointer to fsm clean up method.
4043 (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
4044 thread parameter and use it.
4045 (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
4046 (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
4047 parameter and use it.
4048 (until_next_command): Pass command interpreter to thread fsm ctor.
4049 (struct finish_command_fsm) <thread>: Delete field.
4050 (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
4051 (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
4052 down. Remove thread parameter and adjust.
4053 (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
4054 thread parameter and use it.
4055 (finish_command): Pass command interpreter to thread fsm ctor.
4056 Don't pass thread.
4057 * infrun.c (follow_fork): Move thread fsm to child fork instead of
4058 command interpreter, only.
4059 (clear_proceed_status_thread): Remove reference to command_interp.
4060 (proceed): Don't record the thread's command interpreter.
4061 (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
4062 method.
4063 (fetch_inferior_event): Pass thread to fsm should_stop method.
4064 * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
4065 Store it.
4066 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
4067 parameter and pass it down.
4068 * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
4069 (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
4070 parameter.
4071 (thread_fsm_ctor): Add 'cmd_interp' parameter.
4072 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
4073 parameter.
4074 * thread.c (thread_cancel_execution_command): Pass thread to
4075 thread fsm clean_up method.
4076
26cde2cc
PA
40772016-06-21 Pedro Alves <palves@redhat.com>
4078
4079 * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
4080 (should_print_stop_to_console): New function, factored out from
4081 mi_on_normal_stop_1.
4082 * cli/cli-interp.h (should_print_stop_to_console): Declare.
4083 * mi/mi-interp.c (mi_on_normal_stop_1): Use
4084 should_print_stop_to_console. Pass it the current UI's console
4085 interpreter.
4086 * mi/mi-main.c (captured_mi_execute_command): Use the
4087 INTERP_CONSOLE symbol rather than explicit "console".
4088
a8836c93
PA
40892016-06-21 Pedro Alves <palves@redhat.com>
4090
4091 * infcmd.c (prepare_execution_command): Use
4092 all_uis_on_sync_execution_starting.
4093 * infrun.c (all_uis_on_sync_execution_starting): New function.
4094 * infrun.h (all_uis_on_sync_execution_starting): Declare.
4095
3b12939d
PA
40962016-06-21 Pedro Alves <palves@redhat.com>
4097
4098 * annotate.c: Include top.h.
4099 (async_background_execution_p): Delete.
4100 (print_value_flags): Check the UI's prompt state rather then
4101 async_background_execution_p.
4102 * event-loop.c (start_event_loop): Set the prompt state to
4103 PROMPT_NEEDED.
4104 * event-top.c (display_gdb_prompt, async_enable_stdin)
4105 (async_disable_stdin): Check the current UI's prompt state instead
4106 of the sync_execution global.
4107 (command_line_handler): Set the prompt state to PROMPT_NEEDED
4108 before running a command, and display the prompt if still needed
4109 afterwards.
4110 * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
4111 (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
4112 (call_thread_fsm_should_stop): Set the prompt state to
4113 PROMPT_NEEDED.
4114 (run_inferior_call): Adjust to temporarily set the prompt state to
4115 PROMPT_BLOCKED instead of using the sync_execution global.
4116 (call_function_by_hand_dummy): Pass the current UI to
4117 new_call_thread_fsm.
4118 * infcmd.c: Include top.h.
4119 (continue_1): Check the current UI's prompt state instead of the
4120 sync_execution global.
4121 (continue_command): Validate global execution state before calling
4122 prepare_execution_command.
4123 (step_1): Call all_uis_check_sync_execution_done.
4124 (attach_post_wait): Don't call async_enable_stdin here. Remove
4125 reference to sync_execution.
4126 * infrun.c (sync_execution): Delete global.
4127 (follow_fork_inferior)
4128 (reinstall_readline_callback_handler_cleanup): Check the current
4129 UI's prompt state instead of the sync_execution global.
4130 (check_curr_ui_sync_execution_done)
4131 (all_uis_check_sync_execution_done): New functions.
4132 (fetch_inferior_event): Call all_uis_check_sync_execution_done
4133 instead of trying to determine whether the global sync execution
4134 changed.
4135 (handle_no_resumed): Check the prompt state of all UIs.
4136 (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
4137 UIs. Emit the "Switching to" notification to all UIs. Enable
4138 stdin in all UIs.
4139 * infrun.h (sync_execution): Delete.
4140 (all_uis_check_sync_execution_done): Declare.
4141 * main.c (captured_command_loop): Don't call
4142 interp_pre_command_loop if the prompt is blocked.
4143 (catch_command_errors, catch_command_errors_const): Adjust.
4144 (captured_main): Set the initial prompt state to PROMPT_NEEDED.
4145 * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
4146 PROMPTED.
4147 (mi_interpreter_resume): Don't clear sync_execution. Remove hack
4148 comment.
4149 (mi_execute_command_input_handler): Set the prompt state to
4150 PROMPT_NEEDED before executing the command, and only display the
4151 prompt if the prompt state is PROMPT_NEEDED afterwards.
4152 (mi_on_resume_1): Adjust to check the prompt state.
4153 * target.c (target_terminal_inferior): Adjust to check the prompt
4154 state.
4155 * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
4156 (execute_command): Check the current UI's prompt state instead of
4157 sync_execution.
4158 * top.h (enum prompt_state): New.
4159 (struct ui) <prompt_state>: New field.
4160 (ALL_UIS): New macro.
4161
dbf30ca3
PA
41622016-06-21 Pedro Alves <palves@redhat.com>
4163
4164 * top.c (gdb_secondary_prompt_depth): Delete.
4165 (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
4166 (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
4167 per-UI gdb_secondary_prompt_depth.
4168 * top.h (struct ui) <secondary_prompt_depth>: New field.
4169
b2d86570
PA
41702016-06-21 Pedro Alves <palves@redhat.com>
4171
4172 * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
4173 function.
4174 (cli_interp_procs): Install it instead of cli_command_loop.
4175 * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
4176 * event-top.c (cli_command_loop): Delete.
4177 * interps.c (interp_new): Remove reference to command_loop_proc.
4178 (current_interp_command_loop): Delete.
4179 (interp_pre_command_loop): New function.
4180 (interp_command_loop_ftype): Delete.
4181 * interps.h (interp_pre_command_loop_ftype): New typedef.
4182 (struct interp_procs) <command_loop_proc>: Delele field.
4183 <pre_command_loop_proc>: New field.
4184 (current_interp_command_loop): Delete declaration.
4185 (interp_pre_command_loop): New declaration.
4186 * main.c (captured_command_loop): Call interp_pre_command_loop
4187 instead of current_interp_command_loop and start an event loop.
4188 * mi/mi-interp.c (mi_command_loop): Delete.
4189 (mi_interpreter_pre_command_loop): New.
4190 (mi_interp_procs): Update.
4191 * tui/tui-interp.c (tui_interp_procs): Install
4192 cli_interpreter_pre_command_loop instead of cli_command_loop.
4193
9204d692
PA
41942016-06-21 Pedro Alves <palves@redhat.com>
4195
4196 * interps.c (current_interpreter): New function.
4197 * interps.h (current_interpreter): New declaration.
4198 * mi/mi-cmds.h (raw_stdout): Delete declaration.
4199 * mi/mi-common.h (struct mi_interp) <raw_stdout,
4200 saved_raw_stdout>: New field.
4201 * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
4202 to per-UI raw_stdout.
4203 (mi_interpreter_init): Adjust to per-UI raw_stdout.
4204 (mi_on_sync_execution_done, mi_execute_command_input_handler)
4205 (mi_command_loop): Pass MI instance to display_mi_prompt.
4206 (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
4207 (mi_on_resume): Adjust to per-UI raw_stdout.
4208 (saved_raw_stdout): Delete.
4209 (mi_set_logging): Adjust to per-UI raw_stdout and
4210 saved_raw_stdout.
4211 * mi/mi-main.c (raw_stdout): Delete.
4212 (mi_cmd_gdb_exit, captured_mi_execute_command)
4213 (mi_print_exception, mi_load_progress): Adjust to per-UI
4214 raw_stdout.
4215 (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
4216 Pass it along.
4217 (print_diff): New ui_file parameter. Send output there instead of
4218 raw_stdout.
4219 * mi/mi-main.h (struct ui_file): Forward declare.
4220 (mi_print_timing_maybe): Add ui_file parameter.
4221
05beb275
PA
42222016-06-21 Pedro Alves <palves@redhat.com>
4223
4224 * mi/mi-interp.c (display_mi_prompt): New function.
4225
215d3118
PA
42262016-06-21 Pedro Alves <palves@redhat.com>
4227
4228 * target.c (target_terminal_inferior): Bail out after
4229 unregistering input_fd if not on the main UI.
4230 (target_terminal_ours): Bail out after registering input_fd if not
4231 on the main UI.
4232 (target_terminal_ours_for_output): Bail out if not on the main UI.
4233
c61db772
PA
42342016-06-21 Pedro Alves <palves@redhat.com>
4235
4236 * event-top.c (restore_ui_cleanup): Make extern.
4237 * infrun.c (fetch_inferior_event): Always switch to the main UI.
4238 * top.h (restore_ui_cleanup): Declare.
4239
3c216924
PA
42402016-06-21 Pedro Alves <palves@redhat.com>
4241
4242 PR mi/20034
4243 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
4244 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
4245 UI's input_handler here.
4246 (cli_interpreter_supports_command_editing): New function.
4247 (cli_interp_procs): Install it.
4248 * cli/cli-interp.h: New file.
4249 * event-top.c (async_command_editing_p): Rename to ...
4250 (set_editing_cmd_var): ... this.
4251 (change_line_handler): Add parameter 'editing', and use it. Bail
4252 early if the interpreter doesn't support editing. Don't touch
4253 readline state if editing is off.
4254 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
4255 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
4256 main UI.
4257 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
4258 not using readline. Check whether the current UI is using command
4259 editing instead of checking the async_command_editing_p global.
4260 (set_async_editing_command): Delete.
4261 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
4262 on the main UI. Don't touch readline state if editing is off.
4263 (gdb_disable_readline): Don't touch readline state if editing is
4264 off.
4265 * event-top.h (gdb_setup_readline): Add 'int' parameter.
4266 (set_async_editing_command): Delete declaration.
4267 (change_line_handler, command_line_handler): Declare.
4268 (async_command_editing_p): Rename to ...
4269 (set_editing_cmd_var): ... this.
4270 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
4271 whether the current UI has editing enabled rather than checking
4272 the async_command_editing_p global.
4273 * interps.c (interp_supports_command_editing): New function.
4274 * interps.h (interp_supports_command_editing_ftype): New typedef.
4275 (struct interp_procs) <supports_command_editing_proc>: New field.
4276 (interp_supports_command_editing): Declare.
4277 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
4278 gdb_setup_readline. Don't clear the async_command_editing_p
4279 global. Update comments.
4280 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
4281 whether the current UI has editing enabled rather than checking
4282 the async_command_editing_p global. Don't touch readline state if
4283 editing is off.
4284 (undo_terminal_modifications_before_exit): Switch to the main UI.
4285 Unconditionally call gdb_disable_readline.
4286 (set_editing): New function.
4287 (show_async_command_editing_p): Rename to ...
4288 (show_editing): ... this. Show the state of the current UI.
4289 (_initialize_top): Adjust.
4290 * top.h (struct ui) <command_editing>: New field.
4291 * tui/tui-interp.c: Include cli/cli-interp.h.
4292 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
4293 input_handler.
4294 (tui_interp_procs): Install
4295 cli_interpreter_supports_command_editing.
4296 * tui/tui-io.c (tui_getc): Check whether the current UI has
4297 editing enabled rather than checking the async_command_editing_p
4298 global.
4299
b6dcde57
PA
43002016-06-21 Pedro Alves <palves@redhat.com>
4301
4302 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
4303 * top.h (struct ui) <m_current_uiout>: New field.
4304 * ui-out.c (current_uiout): Delete.
4305 * ui-out.h (current_uiout): Delete.
4306 (current_ui_current_uiout_ptr): New declaration.
4307 (current_uiout): Reimplement as wrapper around
4308 current_ui_current_uiout_ptr.
4309
23ff98d2
PA
43102016-06-21 Pedro Alves <palves@redhat.com>
4311
4312 * ui-out.c (default_ui_out_impl): Delete.
4313 (def_uiout): Delete.
4314 (current_uiout): Set to NULL.
4315 (default_table_begin, default_table_body, default_table_end)
4316 (default_table_header, default_begin, default_end)
4317 (default_field_int, default_field_skip, default_field_string)
4318 (default_field_fmt, default_spaces, default_text, default_message)
4319 (default_wrap_hint, default_flush, default_data_destroy): Delete.
4320
694ec099
PA
43212016-06-21 Pedro Alves <palves@redhat.com>
4322
4323 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
4324 errstream to stdout_fileopen and stderr_fileopen.
4325 * exceptions.c: Include top.h.
4326 (print_flush): Open the current UI's outstream file descriptor,
4327 instead of hardcoding file descriptor 1.
4328 * main.c (captured_main): Save the main UI's out and error
4329 streams. Adjust stderr_fileopen call.
4330 * top.h (struct ui) <outstream, errstream>: New fields.
4331 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
4332 instead of stderr.
4333 * ui-file.h (stderr_fileopen): Add stream parameter and update
4334 comment.
4335
41fd2b0f
PA
43362016-06-21 Pedro Alves <palves@redhat.com>
4337
4338 * event-top.c (input_fd): Delete.
4339 (stdin_event_handler): Switch to the UI whose input descriptor got
4340 the event. Adjust to per-UI input_fd.
4341 (gdb_setup_readline): Don't set the input_fd global. Adjust to
4342 per-UI input_fd.
4343 (gdb_disable_readline): Adjust to per-UI input_fd.
4344 * event-top.h (input_fd): Delete declaration.
4345 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
4346 from the event-loop here.
4347 (linux_nat_terminal_ours): Don't register input_fd in the
4348 event-loop here.
4349 * main.c (captured_main): Adjust to per-UI input_fd.
4350 * remote.c (remote_terminal_inferior): Don't remove input_fd from
4351 the event-loop here.
4352 (remote_terminal_ours): Don't register input_fd in the event-loop
4353 here.
4354 * target.c: Include top.h and event-top.h.
4355 (target_terminal_inferior): Remove input_fd from the event-loop
4356 here.
4357 (target_terminal_ours): Register input_fd in the event-loop.
4358 * top.h (struct ui) <input_fd>: New field.
4359
f38d3ad1
PA
43602016-06-21 Pedro Alves <palves@redhat.com>
4361
4362 * cli/cli-script.c (execute_user_command, read_next_line)
4363 (read_next_line): Adjust to per-UI instream.
4364 * event-top.c (stdin_event_handler, command_handler)
4365 (handle_line_of_input, command_line_handler)
4366 (gdb_readline_no_editing_callback, async_sigterm_handler)
4367 (gdb_setup_readline): Likewise.
4368 * inflow.c: Include top.h.
4369 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
4370 (gdb_save_tty_state, child_terminal_inferior)
4371 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
4372 (initialize_stdin_serial): Adjust to per-UI instream.
4373 * main.c (captured_command_loop, captured_main): Adjust to per-UI
4374 instream.
4375 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
4376 * python/python.c (python_interactive_command): Likewise.
4377 * terminal.h (struct ui): Forward declare.
4378 (initialize_stdin_serial): Add struct ui parameter.
4379 * top.c (instream): Delete.
4380 (do_restore_instream_cleanup, read_command_file, dont_repeat)
4381 (gdb_readline_no_editing, command_line_input)
4382 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
4383 * top.h (struct ui) <instream>: New field.
4384 (instream): Delete declaration.
4385 (quit): Adjust to per-UI instream.
4386
43872016-06-21 Pedro Alves <palves@redhat.com>
4388
4389 * event-loop.c: Include top.h.
4390 (invoke_async_signal_handlers): Switch to the main UI.
4391 * event-top.c (main_ui_): Update comment.
4392 (main_ui): New global.
4393 * top.h (main_ui): Declare.
4394
73ab01a0
PA
43952016-06-21 Pedro Alves <palves@redhat.com>
4396
4397 * cli/cli-interp.c (cli_interp): Delete.
4398 (as_cli_interp): New function.
4399 (cli_on_normal_stop, cli_on_signal_received)
4400 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
4401 (cli_on_no_history): Send output to all CLI UIs.
4402 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
4403 the top level interpreter is not a CLI.
4404 (cli_interpreter_init): Don't set cli_interp or install observers
4405 here.
4406 (_initialize_cli_interp): Install observers here.
4407 * event-top.c (main_ui_, ui_list): New globals.
4408 (current_ui): Point to main_ui_.
4409 (restore_ui_cleanup, switch_thru_all_uis_init)
4410 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
4411 functions.
4412 * mi/mi-interp.c (as_mi_interp): New function.
4413 (mi_interpreter_init): Don't install observers here.
4414 (mi_on_sync_execution_done): Skip output if the top level
4415 interpreter is not a MI.
4416 (mi_new_thread, mi_thread_exit, mi_record_changed)
4417 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
4418 (mi_inferior_removed): Send output to all MI UIs.
4419 (find_mi_interpreter, mi_interp_data): Delete.
4420 (find_mi_interp): New function.
4421 (mi_on_signal_received, mi_on_end_stepping_range)
4422 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
4423 to all MI UIs.
4424 (mi_on_normal_stop): Rename to ...
4425 (mi_on_normal_stop_1): ... this.
4426 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
4427 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
4428 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
4429 (mi_breakpoint_modified, mi_output_running_pid): Send output to
4430 all MI UIs.
4431 (mi_on_resume): Rename to ...
4432 (mi_on_resume_1): ... this. Don't handle infcalls here.
4433 (mi_on_resume): Reimplement, sending output to all MI UIs.
4434 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
4435 (mi_memory_changed): Send output to all MI UIs.
4436 (report_initial_inferior): Install observers here.
4437 * top.h (struct ui) <next>: New field.
4438 (ui_list): Declare.
4439 (struct switch_thru_all_uis): New.
4440 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
4441 (switch_thru_all_uis_next): Declare.
4442 (SWITCH_THRU_ALL_UIS): New macro.
4443 * tui/tui-interp.c (tui_interp): Delete global.
4444 (as_tui_interp): New function.
4445 (tui_on_normal_stop, tui_on_signal_received)
4446 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
4447 (tui_on_no_history): Send output to all TUI UIs.
4448 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
4449 the top level interpreter is not a TUI.
4450 (tui_init): Don't set tui_interp or install observers here.
4451 (_initialize_tui_interp): Install observers here.
4452
8322445e
PA
44532016-06-21 Pedro Alves <palves@redhat.com>
4454
4455 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
4456 (struct cli_interp): ... this new structure.
4457 (cli_on_normal_stop, cli_on_signal_received)
4458 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
4459 (cli_on_no_history): Use interp_ui_out.
4460 (cli_interpreter_init): If top level, set the cli_interp global.
4461 (cli_interpreter_init): Return the interp's data instead of NULL.
4462 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
4463 to cli_uiout being in the interpreter's data.
4464 (cli_interp_procs): New, factored out from _initialize_cli_interp.
4465 (cli_interp_factory): New function.
4466 (_initialize_cli_interp): Call interp_factory_register.
4467 * interps.c (get_interp_info): New, factored out from ...
4468 (get_current_interp_info): ... this.
4469 (interp_new): Add parameter 'data'. Store it.
4470 (struct interp_factory): New function.
4471 (interp_factory_p): New typedef. Define a VEC_P.
4472 (interpreter_factories): New global.
4473 (interp_factory_register): New function.
4474 (interp_add): Add 'ui' parameter. Use get_interp_info and
4475 interp_lookup_existing.
4476 (interp_lookup): Rename to ...
4477 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
4478 check for NULL or empty name here.
4479 (interp_lookup): Add 'ui' parameter and reimplement.
4480 (interp_set_temp, interpreter_exec_cmd): Adjust.
4481 (interpreter_completer): Complete on registered interpreter
4482 factories instead of interpreters.
4483 * interps.h (interp_factory_func): New typedef.
4484 (interp_factory_register): Declare.
4485 (interp_new, interp_add): Adjust.
4486 (interp_lookup): Declare.
4487 * main.c (captured_main): Adjust.
4488 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
4489 (mi_interp_procs): New, factored out from
4490 _initialize_mi_interp.
4491 (mi_interp_factory): New function.
4492 * python/python.c (execute_gdb_command): Adjust.
4493 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
4494 global.
4495 (tui_interp_procs): New.
4496 (tui_interp_factory): New function.
4497 (_initialize_tui_interp): Call interp_factory_register.
4498
cb814510
PA
44992016-06-21 Pedro Alves <palves@redhat.com>
4500
4501 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
4502 async field instead of the interpreter_async global.
4503 * cli/cli-script.c (execute_user_command, while_command)
4504 (if_command, script_from_file): Likewise.
4505 * compile/compile.c: Include top.h instead of interps.h.
4506 (compile_file_command, compile_code_command)
4507 (compile_print_command): Access the current UI's async field
4508 instead of the interpreter_async global.
4509 * guile/guile.c: Include top.h instead of interps.h.
4510 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
4511 Access the current UI's async field instead of the
4512 interpreter_async global.
4513 * guile/scm-ports.c: Include top.h instead of interps.h.
4514 (ioscm_with_output_to_port_worker): Access the current UI's async
4515 field instead of the interpreter_async global.
4516 * inf-loop.c (inferior_event_handler): Likewise.
4517 * infcall.c (run_inferior_call): Likewise.
4518 * infrun.c (reinstall_readline_callback_handler_cleanup)
4519 (fetch_inferior_event): Likewise.
4520 * interps.c (interpreter_async): Delete.
4521 (struct ui_interp_info): New.
4522 (get_current_interp_info): New function.
4523 (interp_list, current_interpreter, top_level_interpreter_ptr):
4524 Delete.
4525 (interp_add, interp_set, interp_lookup, interp_ui_out)
4526 (current_interp_set_logging, interp_set_temp)
4527 (current_interp_named_p): Adjust to per-UI interpreters.
4528 (command_interpreter): Delete.
4529 (command_interp, current_interp_command_loop, interp_quiet_p)
4530 (interp_exec, interpreter_exec_cmd, interpreter_completer)
4531 (top_level_interpreter, top_level_interpreter_data): Adjust to
4532 per-UI interpreters.
4533 * interps.h (interpreter_async): Delete.
4534 * main.c (captured_command_loop): Access the current UI's async
4535 field instead of the interpreter_async global.
4536 * python/python.c (python_interactive_command, python_command)
4537 (execute_gdb_command): Likewise.
4538 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
4539 Access the current UI's async field instead of the
4540 interpreter_async global.
4541 * top.h (struct tl_interp_info): Forward declare.
4542 (struct ui) <interp_info, async>: New fields.
4543
79aa2fe8
PA
45442016-06-21 Pedro Alves <palves@redhat.com>
4545
4546 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
4547 globals.
4548 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
4549 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
4550 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
4551 m_gdb_stdlog>: New fields.
4552 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
4553 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
4554 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
4555 macros.
4556
a74e1786
PA
45572016-06-21 Pedro Alves <palves@redhat.com>
4558
4559 * event-top.c: Update readline-related comments.
4560 (input_handler, call_readline): Delete globals.
4561 (gdb_rl_callback_handler): Call the current UI's input_handler
4562 method.
4563 (change_line_handler): Adjust to set current UI's properties
4564 instead of globals.
4565 (current_ui_, current_ui): New globals.
4566 (get_command_line_buffer): Rewrite to refer to the current UI.
4567 (stdin_event_handler): Adjust to call the call_readline method of
4568 the current UI.
4569 (gdb_readline_no_editing_callback): Adjust to call the current UI's
4570 input_handler method.
4571 (gdb_setup_readline): Adjust to set current UI's properties
4572 instead of globals.
4573 * event-top.h (call_readline, input_handler): Delete declarations.
4574 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
4575 UI's properties instead of globals.
4576 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
4577 properties instead of globals.
4578 (gdb_readline_wrapper): Adjust to call and set current UI's
4579 methods instead of globals.
4580 * top.h: Include buffer.h and event-loop.h.
4581 (struct ui): New struct.
4582 (current_ui): New declaration.
4583
45db7c09
PA
45842016-06-21 Pedro Alves <palves@redhat.com>
4585
4586 * ada-lang.c (ada_exception_name_addr_1): Add comment.
4587 (print_it_exception): Select the current frame.
4588
a28d8e50
YTL
45892016-06-17 Yan-Ting Lin <currygt52@gmail.com>
4590
4591 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
4592 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
4593 (ALLDEPFILES): Add nds32-tdep.c.
4594 * NEWS: Mention new NDS32 port.
4595 * configure.tgt: Add NDS32.
4596 * nds32-tdep.c: New file.
4597 * nds32-tdep.h: New file.
4598 * features/Makefile (XMLTOC): Add nds32.xml.
4599 * features/nds32-core.xml: New file.
4600 * features/nds32-fpu.xml: New file.
4601 * features/nds32-system.xml: New file.
4602 * features/nds32.c: New file (generated).
4603 * features/nds32.xml: New file.
4604
4bf5402d
JB
46052016-06-14 John Baldwin <jhb@FreeBSD.org>
4606
4607 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
4608
683cd65e
JB
46092016-06-14 John Baldwin <jhb@FreeBSD.org>
4610
4611 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
4612
bec734b2
JB
46132016-06-14 John Baldwin <jhb@FreeBSD.org>
4614
4615 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
4616
e46dd0f4
NC
46172016-06-13 Nick Clifton <nickc@redhat.com>
4618
4619 * gdbtypes.c (replace_type): Fix assertion.
4620
695bfa52
TT
46212016-06-10 Tom Tromey <tom@tromey.com>
4622
4623 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
4624 (arch_boolean_type, arch_float_type, arch_complex_type)
4625 (arch_flags_type, append_flags_type_field)
4626 (append_flags_type_flag, arch_composite_type)
4627 (append_composite_type_field_raw)
4628 (append_composite_type_field_aligned)
4629 (append_composite_type_field): Make "name" parameter const.
4630 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
4631 (arch_boolean_type, arch_float_type, arch_complex_type)
4632 (append_composite_type_field, append_composite_type_field_aligned)
4633 (append_composite_type_field_raw, arch_flags_type)
4634 (append_flags_type_field, append_flags_type_flag): Constify.
4635
347dc102
TT
46362016-06-10 Tom Tromey <tom@tromey.com>
4637
4638 PR rust/20110:
4639 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
4640
edef7b8c
TT
46412016-06-10 Tom Tromey <tom@tromey.com>
4642
4643 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
4644 (YYFILES): Add rust-exp.c.
4645 (YYOBJ): Add rust-exp.o.
4646 (local-maintainer-clean): Remove rust-exp.c.
4647
bb556f1f
TK
46482016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
4649
4650 * NEWS: Mention that GDB now supports a negative repeat count in
4651 the 'x' command.
4652 * printcmd.c (decode_format): Allow '-' in the parameter
4653 "string_ptr" to accept a negative repeat count.
4654 (find_instruction_backward): New function.
4655 (read_memory_backward): New function.
4656 (integer_is_zero): New function.
4657 (find_string_backward): New function.
4658 (do_examine): Use new functions to examine memory backward.
4659 (_initialize_printcmd): Mention that 'x' command supports a negative
4660 repeat count.
4661
c040f3fb
TK
46622016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
4663
4664 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
4665
4dee3531
TT
46662016-06-09 Tom Tromey <tom@tromey.com>
4667
4668 PR python/19819:
4669 * python/py-xmethods.c (invoke_method_name)
4670 (py_get_result_type_method_name, py_invoke_method_name): Remove.
4671 (gdbpy_initialize_xmethods): Don't initialize
4672 py_invoke_method_name, py_get_result_type_method_name.
4673
1aec0b6a
SM
46742016-06-07 Simon Marchi <simon.marchi@ericsson.com>
4675
4676 * mi/mi-interp.c (mi_record_changed): Add missing braces.
4677
2091da29
BH
46782016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
4679
4680 * findvar.c (follow_static_link): Check for valid pointer.
4681
38b022b4
SM
46822016-06-06 Simon Marchi <simon.marchi@ericsson.com>
4683
4684 * NEWS: Mention the new fields in =record-started.
4685 * common/btrace-common.h (btrace_format_short_string): New function
4686 declaration.
4687 * common/btrace-common.c (btrace_format_short_string): New
4688 function.
4689 * mi/mi-interp.c (mi_record_changed): Output method and format
4690 fields in the =record-started record.
4691 * record-btrace.c (record_btrace_open): Adapt record_changed
4692 notification.
4693 * record-full.c (record_full_open): Likewise.
4694 * record.c (cmd_record_stop): Likewise.
4695
0ae534d2
JT
46962016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
4697
4698 * windows-nat.c (handle_output_debug_string): Return type of
4699 gdb_signal_from_host() is gdb_signal, not an int.
4700 (windows_get_exec_module_filename): Add pointer casts for C++.
4701
1b40ec05
TT
47022016-06-02 Tom Tromey <tom@tromey.com>
4703
4704 PR python/18984:
4705 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
4706
bb7c96de
PA
47072016-06-01 Pedro Alves <palves@redhat.com>
4708
4709 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
4710 (remote_fio_osa)
4711 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
4712 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
4713 Delete.
4714 (remote_fileio_o_quit_handler): New global.
4715 (remote_fileio_quit_handler): New function.
4716 (remote_fileio_reply): Check the quit flag instead of the custom
4717 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
4718 of changing the SIGINT handler.
4719 (do_remote_fileio_request): Override the quit handler instead of
4720 changing the SIGINT handler.
4721
51403f74
NC
47222016-06-01 Nick Clifton <nickc@redhat.com>
4723
4724 * common/common-utils.c (xmalloc_failed): New function. Provided
4725 so that the version in libiberty is not linked in.
4726
e3b5daf9
MM
47272016-06-01 Markus Metzger <markus.t.metzger@intel.com>
4728
4729 * infcmd.c (skip_finish_frames): New.
4730 (finish_command): Call skip_finish_frames.
4731
03d73f1f
YQ
47322016-06-01 Yao Qi <yao.qi@linaro.org>
4733
4734 PR remote/19998
4735 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
4736 quit_serial_event_set.
4737
c799dec7
JB
47382016-06-01 Joel Brobecker <brobecker@adacore.com>
4739
4740 GDB 7.11.1 released.
4741
3326303b
MG
47422016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
4743
4744 PR c++/19893
4745 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
4746 fetch_const_value_from_synthetic_pointer): New functions.
4747 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
4748 (pieced_value_funcs): Implement coerce_ref.
4749 * valops.c (value_addr): Call coerce_ref for synthetic references.
4750 * valprint.c (valprint_check_validity): Return true for synthetic
4751 references. Also, don't show "<synthetic pointer>" if they reference
4752 addressable values.
4753 (generic_val_print_ref): Handle synthetic references. Also move some
4754 code to print_ref_address.
4755 (print_ref_address, get_value_addr_contents): New functions.
4756
e385593e
JK
47572016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4758
4759 PR c++/15231
4760 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
4761 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
4762 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
4763 (read_call_site_scope): Adjust callers.
4764 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
4765 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
4766
3a2b436a
JK
47672016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4768
4769 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
4770 * dwarf2read.c (enum pc_bounds_kind) New.
4771 (dwarf2_get_pc_bounds): Use it in the declaration.
4772 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
4773 to cu_bounds_kind.
4774 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
4775 Adjust callers.
4776 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
4777 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
4778
aab3c527
JK
47792016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4780
4781 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
4782 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
4783 deleted.
4784
c64e0f61
JK
47852016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4786
4787 * NEWS (N stop reply): Remove empty line.
4788
1a72702b
AM
47892016-05-28 Alan Modra <amodra@gmail.com>
4790
4791 * compile/compile-object-load.c (link_callbacks_multiple_definition,
4792 link_callbacks_warning, link_callbacks_undefined_symbol,
4793 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
4794 link_callbacks_reloc_dangerous,
4795 link_callbacks_unattached_reloc): Return void.
4796
51415b9f
AB
47972016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
4798
4799 * opencl-lang.c (evaluate_subexp_opencl): If
4800 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
4801 the returned value in the STRUCTOP_STRUCT case.
4802
ac775bf4
AB
48032016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
4804
4805 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
4806 mode, forward the VALUE_LVAL attribute to the returned value in
4807 the STRUCTOP_PTR case.
4808
7bd787e8
TT
48092016-05-25 Tom Tromey <tom@tromey.com>
4810
4811 * python/py-value.c (value_object_as_number): Use correct spelling
4812 of HAVE_LIBPYTHON2_4.
4813
2bbad2ea
BH
48142016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
4815
4816 * f-typeprint.c (f_type_print_base): Replace 0 by show.
4817
e188eb36
BH
48182016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
4819
4820 * f-typeprint.c (f_type_print_base): Decrease show by one.
4821
9b2db1fd
BH
48222016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
4823
4824 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
4825
72b17055
BH
48262016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
4827
4828 * f-typeprint.c (f_type_print_base): Take print level into account.
4829
ddae9462
TT
48302016-05-24 Tom Tromey <tom@tromey.com>
4831
4832 PR python/17386:
4833 * python/py-value.c (value_object_as_number): Add
4834 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
4835
e2b7f516
TT
48362016-05-24 Tom Tromey <tom@tromey.com>
4837
4838 * python/py-value.c (value_object_as_number): Add
4839 nb_inplace_divide for Python 2.
4840
1957f6b8
TT
48412016-05-23 Tom Tromey <tom@tromey.com>
4842
4843 PR python/17981:
4844 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
4845 when there are no breakpoints.
4846
026a9174
PA
48472016-05-24 Pedro Alves <palves@redhat.com>
4848
4849 PR gdb/19828
4850 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
4851 resumed, and add the thread to GDB's thread list.
4852
72b049d3
PA
48532016-05-24 Pedro Alves <palves@redhat.com>
4854
4855 PR gdb/19828
4856 * linux-nat.c (get_pending_status): If the thread reported the
4857 event to the core and it's pending, use the pending status signal
4858 number.
4859
774113b0
PA
48602016-05-24 Pedro Alves <palves@redhat.com>
4861
4862 PR gdb/19828
4863 * linux-nat.c (lwp_lwpid_htab): New htab.
4864 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
4865 (lwp_lwpid_htab_add_lwp): New functions.
4866 (lwp_list): Tweak comment.
4867 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
4868 functions.
4869 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
4870 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
4871 (delete_lwp): Use lwp_list_remove. Remove htab too.
4872 (find_lwp_pid): Search in htab.
4873 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
4874 * linux-nat.h (struct lwp_info) <prev>: New field.
4875
48762016-05-24 Pedro Alves <palves@redhat.com>
4877
4878 PR gdb/19828
4879 * linux-nat.c (lwp_lwpid_htab): New htab.
4880 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
4881 (lwp_lwpid_htab_add_lwp): New functions.
4882 (lwp_list): Tweak comment.
4883 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
4884 functions.
4885 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
4886 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
4887 (delete_lwp): Use lwp_list_remove. Remove htab too.
4888 (find_lwp_pid): Search in htab.
4889 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
4890 * linux-nat.h (struct lwp_info) <prev>: New field.
4891
1ad3de98
PA
48922016-05-24 Pedro Alves <palves@redhat.com>
4893
4894 PR gdb/19828
4895 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
4896 field.
4897 (linux_nat_update_thread_list): Don't fetch the core if already
4898 known.
4899
95e94c3f
PA
49002016-05-24 Pedro Alves <palves@redhat.com>
4901
4902 PR gdb/19828
4903 * linux-tdep.c (find_mapping_size): Delete.
4904 (linux_vsyscall_range_raw): Rewrite reading from
4905 /proc/PID/task/PID/maps directly instead of using
4906 gdbarch_find_memory_regions.
4907
aa01bd36
PA
49082016-05-24 Pedro Alves <palves@redhat.com>
4909
4910 PR gdb/19828
4911 * linux-nat.c (report_thread_events): New global.
4912 (linux_handle_extended_wait): Report
4913 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
4914 enabled.
4915 (wait_lwp, linux_nat_filter_event): Report all thread exits if
4916 thread event reporting is enabled. Remove comment.
4917 (filter_exit_event): New function.
4918 (linux_nat_wait_1): Use it.
4919 (linux_nat_thread_events): New function.
4920 (linux_nat_add_target): Install it as target_thread_events method.
4921
00a3cb9c
YTL
49222016-05-24 Yan-Ting Lin <currygt52@gmail.com>
4923
4924 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
4925
7eb89530
YQ
49262016-05-23 Yao Qi <yao.qi@arm.com>
4927
4928 * arch-utils.c (default_code_of_frame_writable): New function.
4929 * arch-utils.h (default_code_of_frame_writable): Declare.
4930 * arm-tdep.c (arm_code_of_frame_writable): New function.
4931 (arm_gdbarch_init): Install gdbarch method
4932 code_of_frame_writable if the target is M-profile.
4933 * frame.c (skip_unwritable_frames): New function.
4934 * frame.h (skip_unwritable_frames): Declare.
4935 * gdbarch.sh (code_of_frame_writable): New.
4936 * gdbarch.c, gdbarch.h: Re-generated.
4937 * infcmd.c (finish_command): Call skip_unwritable_frames.
4938
0f6ed0e0
TT
49392016-05-23 Tom Tromey <tom@tromey.com>
4940
4941 PR python/19438, PR python/18393:
4942 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
4943 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
4944
d0571b99
GB
49452016-05-23 Gary Benson <gbenson@redhat.com>
4946
4947 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
4948 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
4949 Remove field.
4950 (try_thread_db_load_1): Remove td_thr_validate initialization.
4951
37773e78
JB
49522016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
4953
4954 * configure.ac: Search for libutil-freebsd as alternative to libutil.
4955 * configure: Re-generated.
4956
bfb0d950
AS
49572016-05-19 Andreas Schwab <schwab@suse.de>
4958
4959 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
4960 (libunwind_frame_set_descr): Likewise.
4961 (libunwind_frame_cache): Likewise.
4962 (libunwind_frame_dealloc_cache): Likewise.
4963 (libunwind_frame_sniffer): Likewise.
4964 (libunwind_search_unwind_table): Likewise.
4965 (libunwind_sigtramp_frame_sniffer): Likewise.
4966 (libunwind_get_reg_special): Likewise.
4967 (libunwind_load): Likewise.
4968 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4969 (ia64_linux_store_register): Likewise.
4970 (ia64_linux_xfer_partial): Likewise.
4971 * ia64-tdep.c (ia64_access_reg): Likewise.
4972 (ia64_access_fpreg): Likewise.
4973 (ia64_access_rse_reg): Likewise.
4974 (ia64_access_rse_fpreg): Likewise.
4975
45f4ed92
TT
49762016-05-18 Tom Tromey <tom@tromey.com>
4977
4978 * rust-lang.c (rust_subscript): Initialize "high".
4979
28addb40
SM
49802016-05-17 Simon Marchi <simon.marchi@ericsson.com>
4981
4982 PR gdb/20045
4983 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
4984 of target_is_async_p.
4985
61c6156d
SM
49862016-05-17 Simon Marchi <simon.marchi@ericsson.com>
4987
4988 PR gdb/18077
4989 * mi/mi-main.c (run_one_inferior): Use run target to determine
4990 whether to run async or not.
4991 (mi_cmd_exec_run): Likewise.
4992
01739a3b
TT
49932016-05-17 Tom Tromey <tom@tromey.com>
4994
4995 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
4996 * rust-lang.c: Don't include f-lang.h.
4997 (rust_range, rust_compute_range, rust_subscript)
4998 (rust_evaluate_subexp): Update.
4999 * rust-exp.y: Don't include f-lang.h.
5000 (ast_range, convert_ast_to_expression): Update.
5001 * parse.c (operator_length_standard): Update.
5002 * f-lang.h (enum f90_range_type): Move to expression.h.
5003 * f-exp.y: Use OP_RANGE.
5004 * expression.h (enum range_type): New enum; renamed from
5005 f90_range_type.
5006 * expprint.c: Don't include f-lang.h.
5007 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
5008 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
5009
0bdfa368
TT
50102016-05-17 Tom Tromey <tom@tromey.com>
5011
5012 * NEWS: Add Rust item.
5013
c44af4eb
TT
50142016-05-17 Tom Tromey <tom@tromey.com>
5015 Manish Goregaokar <manishsmail@gmail.com>
5016
5017 * symtab.c (symbol_find_demangled_name): Handle Rust.
5018 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
5019 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
5020 constants.
5021 * rust-lang.h: New file.
5022 * rust-lang.c: New file.
5023 * rust-exp.y: New file.
5024 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
5025 (dwarf2_compute_name, read_func_scope, read_structure_type)
5026 (read_base_type, read_subrange_type, set_cu_language)
5027 (new_symbol_full, determine_prefix): Handle Rust.
5028 * defs.h (enum language) <language_rust>: New constant.
5029 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
5030 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
5031
00272ec4
TT
50322016-05-17 Tom Tromey <tom@tromey.com>
5033
5034 * valprint.h (struct generic_val_print_array) <array_start,
5035 array_end>: New fields.
5036 * valprint.c (generic_val_print_array): Add "decorations"
5037 parameter. Use "array_start", "array_end".
5038 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
5039 * p-valprint.c (p_decorations): Update.
5040 * m2-valprint.c (m2_decorations): Update.
5041 * f-valprint.c (f_decorations): Update.
5042 * c-valprint.c (c_decorations): Update.
5043
dcd1f979
TT
50442016-05-17 Tom Tromey <tom@tromey.com>
5045
5046 * NEWS: Add "maint selftest" entry.
5047 * selftest.h: New file.
5048 * selftest.c: New file.
5049 * maint.c: Include selftest.h.
5050 (maintenance_selftest): New function.
5051 (_initialize_maint_cmds): Add "maint selftest" command.
5052 * configure.ac (GDB_SELF_TEST): Maybe define.
5053 * config.in, configure: Rebuild.
5054 * Makefile.in (SFILES): Add selftest.c.
5055 (COMMON_OBS): Add selftest.o.
5056
e4b8a1c8
TT
50572016-05-17 Tom Tromey <tom@tromey.com>
5058
5059 * expprint.c: Include f-lang.h.
5060 (print_subexp_standard, dump_subexp_body_standard): Handle
5061 OP_F90_RANGE.
5062
9ab0bb2a
TT
50632016-05-17 Tom Tromey <tom@tromey.com>
5064
5065 * Makefile.in (init.c): Search .y files for initialization
5066 functions.
5067
8ddd5a6c
DE
50682016-05-12 Doug Evans <dje@google.com>
5069
5070 PR symtab/19999
5071 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
5072 add base_offset.
5073
df140a0b
TS
50742016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
5075
5076 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
5077 anything.
5078 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
5079
39d911fc
TP
50802016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
5081
5082 * arm-tdep.c (arm_elf_make_msymbol_special): Use
5083 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
5084
870f88f7
TS
50852016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
5086
5087 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
5088 variables.
5089 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
5090 (aarch64_scan_prologue): Likewise.
5091 (aarch64_prologue_prev_register): Likewise.
5092 (aarch64_dwarf2_prev_register): Likewise.
5093 (pass_in_v): Likewise.
5094 (aarch64_push_dummy_call): Likewise.
5095 (aarch64_breakpoint_from_pc): Likewise.
5096 (aarch64_return_in_memory): Likewise.
5097 (aarch64_return_value): Likewise.
5098 (aarch64_displaced_step_b_cond): Likewise.
5099 (aarch64_displaced_step_cb): Likewise.
5100 (aarch64_displaced_step_tb): Likewise.
5101 (aarch64_gdbarch_init): Likewise.
5102 (aarch64_process_record): Likewise.
5103 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
5104 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
5105 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5106 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
5107 * amd64-tdep.c (fixup_riprel): Likewise.
5108 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
5109 (amd64_windows_frame_decode_insns): Likewise.
5110 (amd64_windows_frame_cache): Likewise.
5111 (amd64_windows_frame_prev_register): Likewise.
5112 (amd64_windows_frame_this_id): Likewise.
5113 (amd64_windows_init_abi): Likewise.
5114 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
5115 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
5116 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
5117 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
5118 (arm_epilogue_frame_prev_register): Likewise.
5119 (arm_record_vdata_transfer_insn): Likewise.
5120 (arm_record_exreg_ld_st_insn): Likewise.
5121 * auto-load.c (execute_script_contents): Likewise.
5122 (print_scripts): Likewise.
5123 * avr-tdep.c (avr_frame_prev_register): Likewise.
5124 (avr_push_dummy_call): Likewise.
5125 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
5126 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5127 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
5128 * break-catch-throw.c (fetch_probe_arguments): Likewise.
5129 * breakpoint.c (breakpoint_xfer_memory): Likewise.
5130 (breakpoint_init_inferior): Likewise.
5131 (breakpoint_inserted_here_p): Likewise.
5132 (software_breakpoint_inserted_here_p): Likewise.
5133 (hardware_breakpoint_inserted_here_p): Likewise.
5134 (bpstat_what): Likewise.
5135 (break_range_command): Likewise.
5136 (save_breakpoints): Likewise.
5137 * coffread.c (coff_symfile_read): Likewise.
5138 * cris-tdep.c (cris_push_dummy_call): Likewise.
5139 (cris_scan_prologue): Likewise.
5140 (cris_register_size): Likewise.
5141 (_initialize_cris_tdep): Likewise.
5142 * d-exp.y: Likewise.
5143 * dbxread.c (dbx_read_symtab): Likewise.
5144 (process_one_symbol): Likewise.
5145 (coffstab_build_psymtabs): Likewise.
5146 (elfstab_build_psymtabs): Likewise.
5147 * dicos-tdep.c (dicos_init_abi): Likewise.
5148 * disasm.c (do_mixed_source_and_assembly): Likewise.
5149 (gdb_disassembly): Likewise.
5150 * dtrace-probe.c (dtrace_process_dof): Likewise.
5151 * dwarf2read.c (error_check_comp_unit_head): Likewise.
5152 (build_type_psymtabs_1): Likewise.
5153 (skip_one_die): Likewise.
5154 (process_imported_unit_die): Likewise.
5155 (dwarf2_physname): Likewise.
5156 (read_file_scope): Likewise.
5157 (setup_type_unit_groups): Likewise.
5158 (create_dwo_cu_reader): Likewise.
5159 (create_dwo_cu): Likewise.
5160 (create_dwo_unit_in_dwp_v1): Likewise.
5161 (create_dwo_unit_in_dwp_v2): Likewise.
5162 (lookup_dwo_unit_in_dwp): Likewise.
5163 (free_dwo_file): Likewise.
5164 (check_producer): Likewise.
5165 (dwarf2_add_typedef): Likewise.
5166 (dwarf2_add_member_fn): Likewise.
5167 (read_unsigned_leb128): Likewise.
5168 (read_signed_leb128): Likewise.
5169 (dwarf2_const_value): Likewise.
5170 (follow_die_sig_1): Likewise.
5171 (dwarf_decode_macro_bytes): Likewise.
5172 * extension.c (restore_active_ext_lang): Likewise.
5173 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
5174 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
5175 * gdbtypes.c (lookup_typename): Likewise.
5176 (resolve_dynamic_range): Likewise.
5177 (check_typedef): Likewise.
5178 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
5179 (h8300_gdbarch_init): Likewise.
5180 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
5181 (hppa_frame_this_id): Likewise.
5182 (_initialize_hppa_tdep): Likewise.
5183 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
5184 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
5185 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
5186 * i386-tdep.c (i386_bnd_type): Likewise.
5187 (i386_gdbarch_init): Likewise.
5188 (i386_mpx_bd_base): Likewise.
5189 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
5190 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
5191 * ia64-tdep.c (examine_prologue): Likewise.
5192 (ia64_frame_cache): Likewise.
5193 (ia64_push_dummy_call): Likewise.
5194 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
5195 (default_print_one_register_info): Likewise.
5196 * infrun.c (infrun_thread_ptid_changed): Likewise.
5197 (thread_still_needs_step_over): Likewise.
5198 (stop_all_threads): Likewise.
5199 (restart_threads): Likewise.
5200 (keep_going_stepped_thread): Likewise.
5201 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
5202 * language.c (language_init_primitive_type_symbols): Likewise.
5203 * linespec.c (add_sal_to_sals): Likewise.
5204 * linux-nat.c (status_callback): Likewise.
5205 (kill_unfollowed_fork_children): Likewise.
5206 (linux_nat_kill): Likewise.
5207 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
5208 * linux-thread-db.c (thread_db_notice_clone): Likewise.
5209 (record_thread): Likewise.
5210 * location.c (string_to_event_location_basic): Likewise.
5211 * m32c-tdep.c (m32c_prev_register): Likewise.
5212 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
5213 * m32r-tdep.c (decode_prologue): Likewise.
5214 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
5215 * machoread.c (macho_symtab_read): Likewise.
5216 (macho_symfile_read): Likewise.
5217 (macho_symfile_offsets): Likewise.
5218 * maint.c (set_per_command_cmd): Likewise.
5219 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5220 (mi_cmd_stack_list_variables): Likewise.
5221 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
5222 (output_register): Likewise.
5223 (mi_cmd_execute): Likewise.
5224 (mi_cmd_trace_define_variable): Likewise.
5225 (print_variable_or_computed): Likewise.
5226 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
5227 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
5228 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
5229 * mt-tdep.c (mt_registers_info): Likewise.
5230 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
5231 (nios2_push_dummy_call): Likewise.
5232 (nios2_frame_unwind_cache): Likewise.
5233 (nios2_stub_frame_cache): Likewise.
5234 (nios2_stub_frame_sniffer): Likewise.
5235 (nios2_gdbarch_init): Likewise.
5236 * ppc-ravenscar-thread.c: Likewise.
5237 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
5238 * python/py-evts.c (add_new_registry): Likewise.
5239 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
5240 (bpfinishpy_detect_out_scope_cb): Likewise.
5241 * python/py-framefilter.c (py_print_value): Likewise.
5242 * python/py-inferior.c (infpy_write_memory): Likewise.
5243 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
5244 * python/py-infthread.c (thpy_get_ptid): Likewise.
5245 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
5246 (ltpy_get_all_source_lines): Likewise.
5247 (ltpy_is_valid): Likewise.
5248 (ltpy_iternext): Likewise.
5249 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
5250 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
5251 (unwind_infopy_str): Likewise.
5252 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
5253 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
5254 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
5255 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
5256 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
5257 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
5258 (s390_frame_prev_register): Likewise.
5259 (s390_dwarf2_frame_init_reg): Likewise.
5260 (s390_record_vr): Likewise.
5261 (s390_process_record): Likewise.
5262 * score-tdep.c (score_push_dummy_call): Likewise.
5263 (score3_analyze_prologue): Likewise.
5264 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
5265 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
5266 (sh64_push_dummy_call): Likewise.
5267 (sh64_extract_return_value): Likewise.
5268 (sh64_do_fp_register): Likewise.
5269 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
5270 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
5271 (darwin_solib_read_all_image_info_addr): Likewise.
5272 * solib-dsbt.c (enable_break): Likewise.
5273 * solib-frv.c (enable_break2): Likewise.
5274 (frv_fdpic_find_canonical_descriptor): Likewise.
5275 * solib-svr4.c (svr4_handle_solib_event): Likewise.
5276 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
5277 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
5278 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5279 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
5280 * stack.c (read_frame_local): Likewise.
5281 * symfile.c (symbol_file_add_separate): Likewise.
5282 (remove_symbol_file_command): Likewise.
5283 * symmisc.c (maintenance_print_one_line_table): Likewise.
5284 * symtab.c (symbol_cache_flush): Likewise.
5285 (basic_lookup_transparent_type): Likewise.
5286 (sort_search_symbols_remove_dups): Likewise.
5287 * target.c (target_memory_map): Likewise.
5288 (target_detach): Likewise.
5289 (target_resume): Likewise.
5290 (acquire_fileio_fd): Likewise.
5291 (target_store_registers): Likewise.
5292 * thread.c (print_thread_info_1): Likewise.
5293 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
5294 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
5295 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
5296 (tilegx_analyze_prologue): Likewise.
5297 (tilegx_stack_frame_destroyed_p): Likewise.
5298 (tilegx_frame_cache): Likewise.
5299 * tracefile.c (trace_save): Likewise.
5300 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
5301 (start_tracing): Likewise.
5302 (print_one_static_tracepoint_marker): Likewise.
5303 * tui/tui.c (tui_enable): Likewise.
5304 * valops.c (value_struct_elt_bitpos): Likewise.
5305 (find_overload_match): Likewise.
5306 (find_oload_champ): Likewise.
5307 * value.c (value_contents_copy_raw): Likewise.
5308 * windows-tdep.c (windows_get_tlb_type): Likewise.
5309 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
5310 * xcoffread.c (record_minimal_symbol): Likewise.
5311 (scan_xcoff_symtab): Likewise.
5312 * xtensa-tdep.c (execute_code): Likewise.
5313 (xtensa_gdbarch_init): Likewise.
5314 (_initialize_xtensa_tdep): Likewise.
5315
c1aebf87
UW
53162016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5317
5318 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
5319 (spu_bfd_open): Likewise.
5320
edf689f0
YQ
53212016-05-04 Yao Qi <yao.qi@linaro.org>
5322
5323 PR gdb/19947
5324 * corefile.c (read_memory): Rename it to ...
5325 (read_memory_object): ... it. Add parameter object.
5326 (read_memory): Call read_memory_object.
5327 (read_stack): Likewise.
5328 (read_code): Likewise.
5329
6c447423
DE
53302016-05-03 Yunlian Jiang <yunlian@google.com>
5331 Doug Evans <dje@google.com>
5332
5333 PR symtab/19914
5334 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
5335 is separate debug file.
5336
a1ec3d24
DB
53372016-05-03 Don Breazeal <donb@codesourcery.com>
5338
5339 * serial.h (gdb_pipe): Fix argument names in comment.
5340
86f1abec
PA
53412016-05-03 Pedro Alves <palves@redhat.com>
5342
5343 PR python/20037
5344 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
5345 oldloc.
5346
1aa96702
PA
53472016-05-03 Pedro Alves <palves@redhat.com>
5348
5349 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
5350 code.
5351
a4a1c157
PA
53522016-05-03 Pedro Alves <palves@redhat.com>
5353
5354 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
5355 * configure: Regenerate.
5356
1b4f615e
PA
53572016-05-03 Pedro Alves <palves@redhat.com>
5358
5359 * configure.ac (checking for the dynamic export flag): Add
5360 $PYTHON_CPPFLAGS to CPPFLAGS.
5361 * configure: Regenerate.
5362
b631e59b
KT
53632016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5364
5365 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
5366 warning.
5367 (find_pc_mapped_section): Likewise.
5368 (list_overlays_command): Likewise.
5369
1270fac6
EZ
53702016-05-02 Eli Zaretskii <eliz@gnu.org>
5371
5372 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
5373 error in allocation of space for "$HOME/.gdbinit" string. This
5374 caused GDB to abort on startup whenever a '~/gdb.ini' file was
5375 actually found, because xsnprintf would hit an assertion
5376 violation.
5377
0400cf2f
SM
53782016-04-28 Simon Marchi <simon.marchi@ericsson.com>
5379
5380 * cli/cli-decode.c (help_cmd_list): Do not list commands that
5381 are deprecated.
5382
57809e5e
JK
53832016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5384
5385 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
5386
476350ba
MG
53872016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
5388
5389 * c-valprint.c (c_value_print): Always convert val back to reference
5390 type if we converted it to a pointer type.
5391
2d681be4
AA
53922016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5393
5394 * configure.ac: Enhance configure check for babeltrace to reject
5395 non-C++-enabled versions.
5396 * configure: Regenerate.
5397
3e2e34f8
KB
53982016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
5399 Keven Boell <keven.boell@intel.com>
5400 Bernhard Heckel <bernhard.heckel@intel.com>
5401
5402 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
5403 function.
5404 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
5405 (f77_print_array_1): Use value_subscript to subscript a
5406 value array.
5407 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
5408 (f_val_print): Use value_field to construct a field value.
5409
8f07e298
BH
54102016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
5411
5412 * valarith.c (value_address): Resolve dynamic types.
5413
9920b434
BH
54142016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
5415 Keven Boell <kevel.boell@intel.com>
5416
5417 * NEWS: Add new supported features for fortran.
5418 * gdbtypes.c (remove_dyn_prop): New.
5419 (resolve_dynamic_struct): Keep type length for fortran structs.
5420 * gdbtypes.h: Forward declaration of new function.
5421 * value.c (value_address): Return dynamic resolved location of a value.
5422 (set_value_component_location): Adjust the value address
5423 for single value prints.
5424 (value_primitive_field): Support value types with a dynamic location.
5425 (set_internalvar): Remove dynamic location property of
5426 internal variables.
5427
20249ae4
YQ
54282016-04-25 Pedro Alves <palves@redhat.com>
5429 Yao Qi <yao.qi@linaro.org>
5430
5431 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
5432 object. Insert it if it is not inserted yet. Increase the
5433 refcount and link it into the proc's raw breakpoint list.
5434
21edc42f
YQ
54352016-04-25 Yao Qi <yao.qi@linaro.org>
5436
5437 * breakpoint.c (should_be_inserted): Return 0 if the location's
5438 owner is not single step breakpoint or single step breakpoint's
5439 thread isn't the thread which is stepping past a breakpoint.
5440 * gdbarch.sh (software_single_step): Update comments.
5441 * gdbarch.h: Regenerated.
5442 * infrun.c (struct step_over_info) <thread>: New field.
5443 (set_step_over_info): New argument 'thread'. Callers updated.
5444 (clear_step_over_info): Set field thread to -1.
5445 (thread_is_stepping_over_breakpoint): New function.
5446 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
5447
0154d990
EBM
54482016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5449
5450 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
5451 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
5452
6d7e9d3b
YQ
54532016-04-22 Yao Qi <yao.qi@linaro.org>
5454
5455 * valops.c (read_value_memory): New local variable 'stack'.
5456 Set it to either TARGET_OBJECT_STACK_MEMORY or
5457 TARGET_OBJECT_MEMORY.
5458
b3f11165
PA
54592016-04-22 Pedro Alves <palves@redhat.com>
5460
5461 * ada-exp.y: Remove all yy symbol remappings.
5462 (GDB_YY_REMAP_PREFIX): Define.
5463 Include "yy-remap.h".
5464 * ada-lang.c (ada_language_defn): Adjust.
5465 * ada-lang.h (ada_error): Rename to ...
5466 (ada_yyerror): ... this.
5467 * c-exp.y: Remove all yy symbol remappings.
5468 (GDB_YY_REMAP_PREFIX): Define.
5469 Include "yy-remap.h".
5470 * c-lang.c (c_language_defn, cplus_language_defn)
5471 (asm_language_defn, minimal_language_defn): Adjust.
5472 * c-lang.h (c_error): Rename to ...
5473 (c_yyerror): ... this.
5474 * d-exp.y: Remove all yy symbol remappings.
5475 (GDB_YY_REMAP_PREFIX): Define.
5476 Include "yy-remap.h".
5477 * d-lang.c (d_language_defn): Adjust.
5478 * d-lang.h (d_error): Rename to ...
5479 (d_yyerror): ... this.
5480 * f-exp.y: Remove all yy symbol remappings.
5481 (GDB_YY_REMAP_PREFIX): Define.
5482 Include "yy-remap.h".
5483 * f-lang.c (f_language_defn): Adjust.
5484 * f-lang.h (f_error): Rename to ...
5485 (f_yyerror): ... this.
5486 * go-exp.y: Remove all yy symbol remappings.
5487 (GDB_YY_REMAP_PREFIX): Define.
5488 Include "yy-remap.h".
5489 * go-lang.c (go_language_defn): Adjust.
5490 * go-lang.h (go_error): Rename to ...
5491 (go_yyerror): ... this.
5492 * jv-exp.y: Remove all yy symbol remappings.
5493 (GDB_YY_REMAP_PREFIX): Define.
5494 Include "yy-remap.h".
5495 * jv-lang.c (java_language_defn): Adjust.
5496 * jv-lang.h (java_error): Rename to ...
5497 (java_yyerror): ... this.
5498 * m2-exp.y: Remove all yy symbol remappings.
5499 (GDB_YY_REMAP_PREFIX): Define.
5500 Include "yy-remap.h".
5501 * m2-lang.c (m2_language_defn): Adjust.
5502 * m2-lang.h (m2_error): Rename to ...
5503 (m2_yyerror): ... this.
5504 * objc-exp.y: Remove all yy symbol remappings.
5505 (GDB_YY_REMAP_PREFIX): Define.
5506 Include "yy-remap.h".
5507 * objc-lang.c (objc_language_defn): Adjust.
5508 * opencl-lang.c (opencl_language_defn): Adjust.
5509 * p-exp.y: Remove all yy symbol remappings.
5510 (GDB_YY_REMAP_PREFIX): Define.
5511 Include "yy-remap.h".
5512 * p-lang.c (pascal_language_defn): Adjust.
5513 * p-lang.h (pascal_error): Rename to ...
5514 (pascal_yyerror): ... this.
5515 * yy-remap.h: New file.
5516
6290672f
PA
55172016-04-22 Pedro Alves <palves@redhat.com>
5518
5519 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
5520 the foreign frames issue.
5521 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
5522
89525768
PA
55232016-04-22 Pedro Alves <palves@redhat.com>
5524
5525 * common/common-exceptions.c (enum catcher_state, struct catcher)
5526 (current_catcher): Define in C++ mode too.
5527 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
5528 throw_exception.
5529 (throw_exception_sjlj, throw_exception_cxx): New functions,
5530 factored out from throw_exception.
5531 (throw_exception): Reimplement.
5532 * common/common-exceptions.h (exceptions_state_mc_init)
5533 (exceptions_state_mc_action_iter)
5534 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5535 Declare in C++ mode too.
5536 (TRY): Rename to ...
5537 (TRY_SJLJ): ... this.
5538 (CATCH): Rename to ...
5539 (CATCH_SJLJ): ... this.
5540 (END_CATCH): Rename to ...
5541 (END_CATCH_SJLJ): ... this.
5542 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
5543 equivalents.
5544 (throw_exception): Update comments.
5545 (throw_exception_sjlj): Declare.
5546 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
5547 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
5548 intercepted exception.
5549 (gdb_rl_callback_handler): New function.
5550 (gdb_rl_callback_handler_install): Always install
5551 gdb_rl_callback_handler as readline callback.
5552
3c610247
PA
55532016-04-22 Pedro Alves <palves@redhat.com>
5554
5555 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
5556 (gdb_rl_callback_read_char_wrapper): ... this.
5557 (change_line_handler, gdb_setup_readline): Adjust.
5558
3539aa13
YQ
55592016-04-22 Yao Qi <yao.qi@linaro.org>
5560
5561 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
5562 bits 20 to 23.
5563
0f60e29b
JB
55642016-04-22 Joel Brobecker <brobecker@adacore.com>
5565
5566 * MAINTAINER: Remove myself as AIX Maintainer.
5567
3877922e
MR
55682016-04-22 Maciej W. Rozycki <macro@imgtec.com>
5569
5570 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
5571 `num_regs' to 90 rather than 79. Where a target description is
5572 present adjust the setting appropriately.
5573
88c3cd8d
PA
55742016-04-21 Pedro Alves <palves@redhat.com>
5575
5576 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
5577 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
5578
71829b1a
PA
55792016-04-21 Pedro Alves <palves@redhat.com>
5580
5581 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
5582 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
5583 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
5584 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
5585 pointer, and cast return to gdb_byte pointer.
5586
3451269c
PA
55872016-04-21 Pedro Alves <palves@redhat.com>
5588
5589 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
5590 void * instead of gdb_byte *.
5591
b36cec19
PA
55922016-04-21 Pedro Alves <palves@redhat.com>
5593
5594 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
5595 (file_file_name, file_full_name): Add char * cast to sentinel in
5596 concat/reconcat calls.
5597 * event-top.c (top_level_prompt): Likewise.
5598 * guile/guile.c (initialize_scheme_side): Likewise.
5599 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
5600 * macrotab.c (macro_source_fullname): Likewise.
5601 * main.c (get_init_files, captured_main): Likewise.
5602 * psymtab.c (psymtab_to_fullname): Likewise.
5603 * python/python.c (_initialize_python)
5604 (gdbpy_finish_initialization): Likewise.
5605 * source.c (symtab_to_fullname): Likewise.
5606
a2358508
PA
56072016-04-20 Pedro Alves <palves@redhat.com>
5608
5609 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
5610 * configure: Renegerate.
5611
5ae00552
PA
56122016-04-20 Pedro Alves <palves@redhat.com>
5613
5614 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
5615
d9436c7c
PA
56162016-04-20 Pedro Alves <palves@redhat.com>
5617
5618 * aarch64-tdep.c (aarch64_record_load_store): Change type of
5619 'reg_rm_val' local to ULONGEST.
5620
597e448c
PA
56212016-04-20 Pedro Alves <palves@redhat.com>
5622
5623 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
5624
6c739336
DE
56252016-04-20 Doug Evans <xdje42@gmail.com>
5626
5627 * symmisc.c (dump_symtab_1): Print owning compunit for identical
5628 blockvectors.
5629
8cef59a2
YQ
56302016-04-20 Yao Qi <yao.qi@linaro.org>
5631
5632 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
5633
6885166d
YQ
56342016-04-20 Yao Qi <yao.qi@linaro.org>
5635
5636 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
5637 * arch/arm-linux.h: ... here.
5638
21002a63
JB
56392016-04-19 John Baldwin <jhb@FreeBSD.org>
5640
5641 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
5642 to void *.
5643 (amd64bsd_store_inferior_registers): Likewise.
5644 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
5645 (resume_all_threads_cb): Likewise.
5646 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
5647 (i386bsd_collect_gregset): Likewise.
5648 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
5649 (i386bsd_store_inferior_registers): Likewise.
5650
f39c07ac
JB
56512016-04-19 John Baldwin <jhb@FreeBSD.org>
5652
5653 * main.c (setup_alternate_signal_stack): Cast to char *.
5654
d04c1a59
DE
56552016-04-19 Doug Evans <xdje42@gmail.com>
5656
5657 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
5658 All callers updated.
5659
a55411b9
DE
56602016-04-19 Doug Evans <xdje42@gmail.com>
5661
ee2915c9 5662 PR gdb/17911
a55411b9
DE
5663 * source.c (is_regular_file): New arg errno_ptr.
5664 All callers updated.
5665
73e6209f
AA
56662016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
5667
5668 * linux-record.c (record_linux_system_call): Merge handling for
5669 readlink/recv/read and pipe/pipe2.
5670
f42bf748
WT
56712016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
5672
5673 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
5674 * features/i386/amd64-mpx.xml: Remove AVX feature.
5675 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
5676 * features/i386/i386-mpx.xml: Remove AVX feature.
5677 * features/i386/amd64-mpx-linux.c: Regenerate.
5678 * features/i386/amd64-mpx.c: Regenerate.
5679 * features/i386/i386-mpx-linux.c: Regenerate.
5680 * features/i386/i386-mpx.c: Regenerate.
5681 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
5682 * regformats/i386/amd64-mpx.dat: Regenerate.
5683 * regformats/i386/i386-mpx-linux.dat: Regenerate.
5684 * regformats/i386/i386-mpx.dat: Regenerate.
5685
2b863f51
WT
56862016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5687
5688 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
5689 New include.
5690 (amd64_linux_core_read_description): Add case for
5691 X86_XSTATE_AVX_MPX_MASK.
5692 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
5693 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
5694 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
5695 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
5696 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
5697 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
5698 (X86_XSTATE_AVX_MPX_MASK): New case.
5699 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
5700 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
5701 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
5702 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
5703 New expedites.
5704 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
5705 include.
5706 (i386_linux_core_read_description): Add case
5707 X86_XSTATE_AVX_MPX_MASK.
5708 (_initialize_i386_linux_tdep): Call
5709 initialize_tdesc_i386_avx_mpx_linux.
5710 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
5711 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
5712 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
5713 * x86-linux-nat.c (x86_linux_read_description): Add case for
5714 X86_XSTATE_AVX_MPX_MASK.
5715 * features/i386/amd64-avx-mpx-linux.xml: New file.
5716 * features/i386/i386-avx-mpx-linux.xml: New file.
5717 * features/i386/i386-avx-mpx.xml: New file.
5718 * features/i386/amd64-avx-mpx.xml: New file.
5719 * features/i386/amd64-avx-mpx-linux.c: Generated.
5720 * features/i386/amd64-avx-mpx.c: Generated.
5721 * features/i386/i386-avx-mpx-linux.c: Generated.
5722 * features/i386/i386-avx-mpx.c: Generated.
5723 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
5724 * regformats/i386/amd64-avx-mpx.dat: Generated.
5725 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
5726 * regformats/i386/i386-avx-mpx.dat: Generated.
5727
9b30624b
PA
57282016-04-18 Pedro Alves <palves@redhat.com>
5729
5730 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
5731 * configure: Regenerate.
5732
a22df60a
MG
57332016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
5734
5735 * valops.c (value_addr): For C++ references, set the copied value's
5736 enclosing_type as well.
5737
5947319e
YQ
57382016-04-18 Yao Qi <yao.qi@linaro.org>
5739
5740 Revert:
5741 2016-04-15 Yao Qi <yao.qi@linaro.org>
5742
5743 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
5744 PC is far from the end of function.
5745
58484447
PA
57462016-04-16 Pedro Alves <palves@redhat.com>
5747
5748 * ada-exp.y (yydefred): Define as ada_yydefred.
5749
2b2798cc
PA
57502016-04-15 Pedro Alves <palves@redhat.com>
5751
5752 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
5753 'name_str' locals.
5754
d7abe101
PA
57552016-04-15 Pedro Alves <palves@redhat.com>
5756
5757 * btrace.c (pt_btrace_insn_flags): Change return type to
5758 btrace_insn_flags. Use btrace_insn_flags for local.
5759
77770d83
PA
57602016-04-15 Pedro Alves <palves@redhat.com>
5761
5762 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
5763 accept TRAP_BRKPT.
5764 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
5765
415fa612
YQ
57662016-04-15 Yao Qi <yao.qi@linaro.org>
5767
5768 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
5769 PC is far from the end of function.
5770
7f31862a
PA
57712016-04-14 Pedro Alves <palves@redhat.com>
5772
5773 * cli/cli-cmds.c (alias_usage_error): New function.
5774 (alias_command): Use it.
5775 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
5776 ctf_save_write_metadata call.
5777
aebf07fc
PA
57782016-04-14 Pedro Alves <palves@redhat.com>
5779
5780 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
5781 argument to function expecting LONGEST.
5782 * value.c (unpack_long): Add casts to LONGEST.
5783
57d1de9c
LM
57842016-04-13 Luis Machado <lgustavo@codesourcery.com>
5785
5786 * exec.c (exec_file_locate_attach): Guard a couple functions
5787 that can throw errors.
5788 (exception_print_same): New helper function.
5789
3a00c802
PA
57902016-04-13 Pedro Alves <palves@redhat.com>
5791
5792 PR remote/19840
5793 * remote.c (struct remote_state) <last_resume_exec_dir>: New
5794 field.
5795 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
5796 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
5797 (remote_resume): Store the last execution direction.
5798 (remote_execution_direction): New function.
5799 (init_remote_ops): Install it as to_execution_direction target_ops
5800 method.
5801
0f41b320
PA
58022016-04-12 Pedro Alves <palves@redhat.com>
5803
5804 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
5805 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
5806
173981bc
PA
58072016-04-12 Pedro Alves <palves@redhat.com>
5808
5809 * common/common-exceptions.c (struct catcher) <buf>: Now a
5810 'jmp_buf' instead of SIGJMP_BUF.
5811 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
5812 (throw_exception): Use longjmp instead of SIGLONGJMP.
5813 * common/common-exceptions.h: Include <setjmp.h> instead of
5814 "gdb_setjmp.h".
5815 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
5816 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
5817 SIGSETJMP.
5818 * cp-support.c: Include "gdb_setjmp.h".
5819
2afc13ff
PA
58202016-04-12 Pedro Alves <palves@redhat.com>
5821
5822 * common/common-exceptions.c (exception_rethrow): Remove
5823 prepare_to_throw_exception call.
5824 * common/common-exceptions.h (prepare_to_throw_exception): Delete
5825 declaration.
5826 * exceptions.c (prepare_to_throw_exception): Delete.
5827
cfd0fbdd
PA
58282016-04-12 Pedro Alves <palves@redhat.com>
5829
5830 * target.c (target_check_pending_interrupt): Delete.
5831 * target.h (struct target_ops) <to_check_pending_interrupt>:
5832 Remove method.
5833 (target_check_pending_interrupt): Remove declaration.
5834 * target-delegates.c: Regenerate.
5835
585a46a2
PA
58362016-04-12 Pedro Alves <palves@redhat.com>
5837
5838 * defs.h: Update comments on SIGINT handling.
5839 (immediate_quit): Delete declaration.
5840 * event-loop.c (call_async_signal_handler): Delete.
5841 * event-loop.h (call_async_signal_handler): Delete declaration.
5842 (mark_async_signal_handler): Update comments.
5843 (gdb_call_async_signal_handler): Delete declaration.
5844 * event-top.c (handle_sigint): Call mark_async_signal_handler
5845 instead of gdb_call_async_signal_handler.
5846 * exceptions.c (prepare_to_throw_exception): Remove reference to
5847 immediate_quit.
5848 (exception_fprintf): Remove comments about immediate_quit.
5849 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
5850 (gdb_select): Don't wait on sigint_event.
5851 (gdb_call_async_signal_handler): Delete.
5852 (_initialize_mingw_hdep): Delete.
5853 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
5854 * utils.c (immediate_quit): Delete.
5855
048094ac
PA
58562016-04-12 Pedro Alves <palves@redhat.com>
5857
5858 * defs.h (quit_handler_ftype, quit_handler)
5859 (make_cleanup_override_quit_handler, default_quit_handler): New.
5860 (QUIT): Adjust comments.
5861 * event-top.c (default_quit_handler): New function.
5862 (quit_handler): New global.
5863 (struct quit_handler_cleanup_data): New.
5864 (restore_quit_handler, restore_quit_handler_dtor)
5865 (make_cleanup_override_quit_handler): New.
5866 (async_request_quit): Call QUIT.
5867 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
5868 (async_sigint_remote_twice_token, async_sigint_remote_token):
5869 Delete.
5870 (remote_close): Update comments.
5871 (remote_start_remote): Don't set immediate_quit. Set starting_up
5872 earlier.
5873 (remote_serial_quit_handler, remote_unpush_and_throw): New
5874 functions.
5875 (remote_open_1): Clear got_ctrlc_during_io. Set
5876 remote_async_terminal_ours_p unconditionally.
5877 (async_initialize_sigint_signal_handler)
5878 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
5879 (remote_check_pending_interrupt, async_remote_interrupt)
5880 (async_remote_interrupt_twice)
5881 (async_cleanup_sigint_signal_handler, ofunc)
5882 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
5883 (remote_terminal_inferior, remote_terminal_ours): Remove async
5884 checks.
5885 (remote_wait_as): Don't install a SIGINT handler in sync mode.
5886 (readchar, remote_serial_write): Override the quit handler with
5887 remote_serial_quit_handler.
5888 (getpkt_or_notif_sane_1): Don't call QUIT.
5889 (initialize_remote_ops): Don't install
5890 remote_check_pending_interrupt.
5891 (_initialize_remote): Don't create async_sigint_remote_token and
5892 async_sigint_remote_twice_token.
5893 * ser-base.c (ser_base_wait_for): Call QUIT and use
5894 interruptible_select.
5895 (ser_base_write): Call QUIT.
5896 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
5897 * ser-unix.c (wait_for): Don't use VTIME. Always take the
5898 gdb_select path, but call QUIT and interruptible_select.
5899 * utils.c (maybe_quit): Call the current quit handler. Don't call
5900 target_check_pending_interrupt.
5901 (defaulted_query, prompt_for_continue): Override the quit handler
5902 with the default quit handler.
5903
a12ac513
PA
59042016-04-12 Pedro Alves <palves@redhat.com>
5905
5906 * tui/tui-hooks.c (tui_target_has_run): Delete.
5907 (tui_about_to_proceed): Delete.
5908 (tui_about_to_proceed_observer): Delete.
5909 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
5910 about_to_proceed observer.
5911
5fe96654
PA
59122016-04-12 Pedro Alves <palves@redhat.com>
5913
5914 * mi/mi-interp.c (mi_new_thread): Put
5915 target_terminal_ours_for_output in effect while outputting.
5916 (mi_thread_exit): Use target_terminal_ours_for_output instead of
5917 target_terminal_ours.
5918 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
5919 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
5920 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
5921 (mi_breakpoint_created, mi_breakpoint_deleted)
5922 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
5923 (mi_command_param_changed, mi_memory_changed)
5924 (report_initial_inferior): Use target_terminal_ours_for_output
5925 instead of target_terminal_ours. Restore terminal settings.
5926 * mi/mi-main.c (mi_execute_command): Use
5927 target_terminal_ours_for_output instead of target_terminal_ours.
5928 Restore terminal settings.
5929
651ce16a
PA
59302016-04-12 Pedro Alves <palves@redhat.com>
5931
5932 PR gdb/19828
5933 * gnu-nat.c (inf_validate_task_sc): Don't call
5934 target_terminal_ours / target_terminal_inferior around query.
5935 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
5936 call target_terminal_ours / target_terminal_inferior around
5937 yquery.
5938 * linux-record.c (record_linux_system_call): Don't call
5939 target_terminal_ours / target_terminal_inferior around yquery.
5940 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
5941 / target_terminal_inferior around query.
5942 * record-full.c (record_full_check_insn_num): Remove
5943 'set_terminal' parameter. Don't call target_terminal_ours /
5944 target_terminal_inferior around query.
5945 (record_full_message, record_full_registers_change)
5946 (record_full_xfer_partial): Adjust.
5947 * remote.c (interrupt_query): Don't call target_terminal_ours /
5948 target_terminal_inferior around query.
5949 * utils.c (defaulted_query): Install cleanup to restore target
5950 terminal. Put target_terminal_ours_for_output in effect while
5951 defaulted producing, and target_terminal_ours in in effect while
5952 handling input.
5953 (prompt_for_continue): Install cleanup to restore target terminal.
5954 Put target_terminal_ours in in effect while handling input.
5955
80dbc9fd
PA
59562016-04-12 Pedro Alves <palves@redhat.com>
5957
5958 * utils.c (defaulted_query, prompt_for_continue): Free temporary
5959 strings with cleanups, instead of xfree.
5960
c5ac1540
PA
59612016-04-12 Pedro Alves <palves@redhat.com>
5962
5963 * utils.c (vwarning, internal_vproblem): Use
5964 make_cleanup_restore_target_terminal and
5965 target_terminal_ours_for_output.
5966
f8e3ef9d
PA
59672016-04-12 Pedro Alves <palves@redhat.com>
5968
5969 * infcmd.c (post_create_inferior, prepare_one_step): Use
5970 target_terminal_ours_for_output instead of target_terminal_ours.
5971
481ac8c9
PA
59722016-04-12 Pedro Alves <palves@redhat.com>
5973
5974 * exceptions.c (print_flush): Use target_terminal_ours_for_output
5975 instead of target_terminal_ours, and restore target terminal with
5976 a cleanup.
5977
c509f1e1
PA
59782016-04-12 Pedro Alves <palves@redhat.com>
5979
5980 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
5981 instead of target_terminal_ours, and restore target terminal with
5982 a cleanup.
5983
99bbb428
PA
59842016-04-12 Pedro Alves <palves@redhat.com>
5985
5986 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
5987 functions.
5988 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
5989
75ee5925
PA
59902016-04-12 Pedro Alves <palves@redhat.com>
5991
5992 * ser-base.c (fd_event): Retry read_prim on EINTR.
5993 (do_ser_base_readchar): Retry read_prim on EINTR.
5994 (ser_base_write): Retry write_prim on EINTR.
5995 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
5996 (ser_unix_write_prim): Remove comment.
5997
93692b58
PA
59982016-04-12 Pedro Alves <palves@redhat.com>
5999
6000 * remote.c (remote_pass_ctrlc): New function.
6001 (init_remote_ops): Install it.
6002 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
6003 target.
6004 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
6005 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
6006 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
6007 * target-delegates.c: Regenerate.
6008
e42de8c7
PA
60092016-04-12 Pedro Alves <palves@redhat.com>
6010
6011 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
6012 mode.
6013 * linux-nat.c (linux_nat_interrupt): Delete.
6014 (linux_nat_add_target): Don't install linux_nat_interrupt.
6015 * remote.c (remote_interrupt_ns): Change return type to void.
6016 Throw error if interrupting the target is not supported.
6017 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
6018
a149683b
PA
60192016-04-12 Pedro Alves <palves@redhat.com>
6020
6021 * defs.h (clear_quit_flag): Remove declaration.
6022 * extension-priv.h (struct extension_language_ops)
6023 <clear_quit_flag>: Remove field and update comments.
6024 * extension.c (clear_quit_flag): Delete.
6025 * guile/guile.c (guile_extension_ops): Adjust.
6026 * python/python.c (python_extension_ops): Adjust.
6027 (gdbpy_clear_quit_flag): Delete.
6028
da1e5f54
PA
60292016-04-12 Pedro Alves <palves@redhat.com>
6030
6031 * main.c (captured_main): Don't clear the quit flag.
6032
0af679c6
PA
60332016-04-12 Pedro Alves <palves@redhat.com>
6034
6035 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
6036 flag.
6037
4a81fd47
PA
60382016-04-12 Pedro Alves <palves@redhat.com>
6039
6040 * event-top.c (command_handler): Don't call clear_quit_flag.
6041
abf009ef
PA
60422016-04-12 Pedro Alves <palves@redhat.com>
6043
6044 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
6045 * remote.c (remote_wait_as): Don't call clear_quit_flag.
6046
6eddd09a
PA
60472016-04-12 Pedro Alves <palves@redhat.com>
6048
6049 * python/python.c: Include "ser-event.h".
6050 (gdbpy_event_fds): Delete.
6051 (gdbpy_serial_event): New.
6052 (gdbpy_run_events): Change prototype. Use serial_event_clear
6053 instead of serial_readchar.
6054 (gdbpy_post_event): Use serial_event_set instead of serial_write.
6055 (gdbpy_initialize_events): Use make_serial_event instead of
6056 serial_pipe.
6057
f0881b37
PA
60582016-04-12 Pedro Alves <palves@redhat.com>
6059
6060 * defs.h: Extend QUIT-related comments to mention
6061 interruptible_select.
6062 (quit_serial_event_set, quit_serial_event_clear): Declare.
6063 * event-top.c: Include "ser-event.h" and "gdb_select.h".
6064 (quit_serial_event): New global.
6065 (async_init_signals): Make quit_serial_event.
6066 (quit_serial_event_set, quit_serial_event_clear)
6067 (quit_serial_event_fd, interruptible_select): New functions.
6068 * extension.c (set_quit_flag): Set the quit serial event.
6069 (check_quit_flag): Clear the quit serial event.
6070 * gdb_select.h (interruptible_select): New declaration.
6071 * guile/scm-ports.c (ioscm_input_waiting): Use
6072 interruptible_select instead of gdb_select.
6073 * top.c (gdb_readline_no_editing): Likewise.
6074 * ui-file.c (stdio_file_read): Likewise.
6075
5cc3ce8b
PA
60762016-04-12 Pedro Alves <palves@redhat.com>
6077
6078 * event-loop.c: Include "ser-event.h".
6079 (async_signal_handlers_serial_event): New global.
6080 (async_signals_handler, initialize_async_signal_handlers): New
6081 functions.
6082 (mark_async_signal_handler): Set
6083 async_signal_handlers_serial_event.
6084 (invoke_async_signal_handlers): Clear
6085 async_signal_handlers_serial_event.
6086 * event-top.c (async_init_signals): Call
6087 initialize_async_signal_handlers.
6088
00340e1b
PA
60892016-04-12 Pedro Alves <palves@redhat.com>
6090
6091 * Makefile.in (SFILES): Add ser-event.c.
6092 (HFILES_NO_SRCDIR): Add ser-event.h.
6093 (COMMON_OBS): Add ser-event.o.
6094 * ser-event.c, ser-event.h: New files.
6095 * serial.c (new_serial): New function, factored out from
6096 (serial_fdopen_ops): ... this.
6097 (serial_open_ops_1): New function, factored out from
6098 (serial_open): ... this.
6099 (serial_open_ops): New function.
6100 * serial.h (struct serial): Forware declare.
6101 (serial_open_ops): New declaration.
6102
5f5219fc
PA
61032016-04-12 Pedro Alves <palves@redhat.com>
6104
6105 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
6106 Remove references to name.
6107 * serial.h (struct serial) <name>: Delete.
6108
acd5494d
PA
61092016-04-12 Pedro Alves <palves@redhat.com>
6110
6111 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
6112 Delete.
6113 (async_remote_fileio_interrupt): Delete.
6114 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
6115 handler. Instead just always set the ctrl_c flag.
6116 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
6117 re-enabling the SIGINT handler.
6118 (remote_fileio_func_open, remote_fileio_func_close)
6119 (remote_fileio_func_read, remote_fileio_func_write)
6120 (remote_fileio_func_lseek, remote_fileio_func_rename)
6121 (remote_fileio_func_unlink, remote_fileio_func_stat)
6122 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6123 (remote_fileio_func_isatty, remote_fileio_func_system)
6124 (remote_fileio_request): Remove references to
6125 remote_fio_no_longjmp.
6126 (initialize_remote_fileio): Don't create an async signal handler.
6127
d2acc30b
PA
61282016-04-12 Pedro Alves <palves@redhat.com>
6129
6130 * event-top.c (stdin_event_handler): Call QUIT;
6131 (prompt_for_continue): Don't run with immediate_quit set.
6132
ab33ab13
PA
61332016-04-12 Pedro Alves <palves@redhat.com>
6134
6135 * tui/tui-io.c (tui_redisplay_readline): Check
6136 gdb_in_secondary_prompt_p instead of immediate_quit.
6137 * tui/tui.c: Include top.h.
6138 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
6139 immediate_quit.
6140
faa4ebe1
PA
61412016-04-12 Pedro Alves <palves@redhat.com>
6142
6143 * top.c (read_command_file): Inline command_loop here.
6144 (command_loop): Delete.
6145
3212b858
PA
61462016-04-12 Pedro Alves <palves@redhat.com>
6147
6148 * top.c: Include "gdb_select.h".
6149 (gdb_readline_no_editing): Wait for input with gdb_select instead
6150 of blocking in fgetc.
6151 (command_line_input): Don't set immediate_quit.
6152
4bf7b526
MG
61532016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
6154
6155 * value.c (value_next): Make pass-by-reference parameters const-correct.
6156 (value_parent): Likewise.
6157 (value_enclosing_type): Likewise.
6158 (value_lazy): Likewise.
6159 (value_stack): Likewise.
6160 (value_embedded_offset): Likewise.
6161 (value_pointed_to_offset): Likewise.
6162 (value_raw_address): Likewise.
6163 (deprecated_value_modifiable): Likewise.
6164 (value_free_to_mark): Likewise.
6165 (value_release_to_mark): Likewise.
6166 (internalvar_name): Likewise.
6167 (readjust_indirect_value_type): Likewise.
6168 (value_initialized): Likewise.
6169 * value.h (value_next): Likewise.
6170 (value_parent): Likewise.
6171 (value_enclosing_type): Likewise.
6172 (value_lazy): Likewise.
6173 (value_stack): Likewise.
6174 (value_embedded_offset): Likewise.
6175 (value_pointed_to_offset): Likewise.
6176 (value_raw_address): Likewise.
6177 (deprecated_value_modifiable): Likewise.
6178 (value_free_to_mark): Likewise.
6179 (value_release_to_mark): Likewise.
6180 (internalvar_name): Likewise.
6181 (readjust_indirect_value_type): Likewise.
6182 (value_initialized): Likewise.
6183
e390720b
YQ
61842016-04-07 Yao Qi <yao.qi@linaro.org>
6185
6186 * record-full.c (record_full_insert_breakpoint): Return
6187 early if entry on the address is found in
6188 record_full_breakpoints.
6189
1ccd06e4
YQ
61902016-04-07 Yao Qi <yao.qi@linaro.org>
6191
6192 * record-full.c (record_full_insert_breakpoint): Set
6193 bp_tgt->reqstd_address and bp_tgt->placed_size.
6194
ecf2e90c
DB
61952016-04-06 Don Breazeal <donb@codesourcery.com>
6196
6197 * value.c (value_actual_type): Don't try to get rtti type
6198 of the value if it has been optimized out.
6199 (value_optimized_out): If a memory access error occurs,
6200 just check vaue->optimized_out.
6201
14731617
JK
62022016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6203
6204 Revert the previous commit adding unknown_v_replies_ok.
6205
319cb5d0
JK
62062016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6207
6208 * remote.c (struct remote_state): New field unknown_v_replies_ok.
6209 (packet_config_support): Read it.
6210 (remote_start_remote): Set it.
6211
052d2eb2
JK
62122016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6213
6214 * remote.c: Revert check-in by a mistake in the previous commit.
6215
fef3cb9f
JK
62162016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6217 Pedro Alves <palves@redhat.com>
6218
6219 * exec.c (exec_file_locate_attach): Print warning for unsupported
6220 target_pid_to_exec_file.
6221 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
6222 message part.
6223
2aa08bd1
SM
62242016-04-04 Simon Marchi <simon.marchi@ericsson.com>
6225
6226 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
6227 trailing spaces.
6228
cc63428a
AV
62292016-04-01 Artemiy Volkov <artemiyv@acm.org>
6230
6231 PR gdb/19820
6232 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
6233 the type of BINOP_REPEAT's second operand.
6234
9bb84c9f
YY
62352016-03-31 Yichao Yu <yyc1992@gmail.com>
6236
6237 PR gdb/19858
6238 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
6239 got the breakpoint at the right address.
6240 (jit_inferior_created): New function.
6241 (_initialize_jit): Install jit_inferior_created as
6242 inferior_created observer.
6243
22084c42
MK
62442016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6245
6246 * NEWS: Mention support for tracepoints on powerpc*-linux.
6247
e7ea3ec7
CU
62482016-03-31 Catalin Udma <catalin.udma@freescale.com>
6249
6250 PR python/19743
6251 * python/python.c (execute_gdb_command): Use console uiout
6252 when executing gdb command.
6253 * utils.c (restore_ui_out_closure): New structure.
6254 (do_restore_ui_out): New function.
6255 (make_cleanup_restore_ui_out): Likewise.
6256 * utils.h (make_cleanup_restore_ui_out): Declare.
6257
f7c38292
PA
62582016-03-31 Pedro Alves <palves@redhat.com>
6259
6260 * NEWS: Mention that support for "target m32rsdi", "target mips",
6261 "target pmon", "target ddb", "target rockhopper", and "target lsi"
6262 was removed.
6263 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
6264 remote-mips.o.
6265 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
6266 * configure.tgt: Remove all references to remote-m32r-sdi.o and
6267 remote-mips.o.
6268 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
6269 function.
6270 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
6271 declaration.
6272 * remote-m32r-sdi.c, remote-mips.c: Delete files.
6273 * symfile.c (generic_load, generic_load): Remove comments.
6274
fb3f3d25
YQ
62752016-03-30 Yao Qi <yao.qi@linaro.org>
6276
6277 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
6278 0 rather than NULL.
6279
779aa56f
YQ
62802016-03-30 Yao Qi <yao.qi@linaro.org>
6281
6282 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
6283 (arm_epilogue_frame_this_id): New function.
6284 (arm_epilogue_frame_prev_register): New function.
6285 (arm_epilogue_frame_sniffer): New function.
6286 (arm_epilogue_frame_unwind): New.
6287 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
6288
c58b006a
YQ
62892016-03-30 Yao Qi <yao.qi@linaro.org>
6290
6291 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
6292 (arm_stack_frame_destroyed_p_1): ... here. Don't call
6293 arm_pc_is_thumb.
6294 (arm_stack_frame_destroyed_p): Call
6295 thumb_stack_frame_destroyed_p and
6296 arm_stack_frame_destroyed_p_1.
6297
4ae6cc19
DE
62982016-03-30 Doug Evans <dje@google.com>
6299
6300 * python/py-utils.c (host_string_to_python_string): New function.
6301 * python/python-internal.h (host_string_to_python_string): Declare it.
6302 * python/py-*.c (*): Update all calls to
6303 PyString_Decode (str, strlen (str), host_charset (), NULL);
6304 to use host_string_to_python_string instead.
6305
28170b88
MK
63062016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6307
6308 * remote.c (remote_check_symbols): Allocate own buffer for reply.
6309
a08b52b5
MF
63102016-03-29 Max Filippov <jcmvbkbc@gmail.com>
6311
6312 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
6313 Use safe_read_memory_integer instead of read_memory_integer.
6314
c37c0ba6
MK
63152016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6316
6317 * NEWS: Mention support for tracepoints on s390*-linux.
6318
444bca65
DB
63192016-03-29 Don Breazeal <donb@codesourcery.com>
6320
6321 * gdb/value.c (value_actual_type): Fix formatting issue.
6322
cc651c1c
YQ
63232016-03-23 Yao Qi <yao.qi@linaro.org>
6324
6325 * gdbarch.sh (software_single_step): Remove comments.
6326 * gdbarch.h: Regenerated.
6327
c55978a6
YQ
63282016-03-21 Yao Qi <yao.qi@linaro.org>
6329
6330 * arm-tdep.c (arm_record_media): New.
6331 (arm_record_ld_st_reg_offset): Call arm_record_media.
6332
479fe002
YQ
63332016-03-21 Yao Qi <yao.qi@linaro.org>
6334
6335 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
6336 more syscalls.
6337
9c3f2234
YQ
63382016-03-18 Yao Qi <yao.qi@linaro.org>
6339
6340 * sparc-tdep.c (sparc_software_single_step): Make it static.
6341 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
6342
941319d1
YQ
63432016-03-18 Yao Qi <yao.qi@linaro.org>
6344
6345 * spu-tdep.c (spu_software_single_step): Throw error when
6346 target_read_memory fails.
6347
708bf0a1
JK
63482016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6349
6350 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
6351
0d5b594f
PA
63522016-03-17 Pedro Alves <palves@redhat.com>
6353 Don Breazeal <donb@codesourcery.com>
6354
6355 PR remote/19496
6356 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
6357 instead of checking the 'non_stop' global.
6358 * remote.c (remote_add_thread): New parameter 'executing'. Use it
6359 to set the new thread's executing state.
6360 (remote_notice_new_inferior): Rename parameter 'running' to
6361 'executing'. Always set the thread state to THREAD_RUNNING in
6362 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
6363 EXECUTING to remote_add_thread and notice_new_inferior.
6364 (remote_update_thread_list): Update to pass executing state, not
6365 running state.
6366
bba960fc
AA
63672016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6368
6369 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
6370 to 374.
6371 * syscalls/s390x-linux.xml: Likewise.
6372
5fd0888a
AA
63732016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6374
6375 * linux-record.c (record_mem_at_reg): New helper function.
6376 (record_linux_system_call): Exploit new helper function where
6377 applicable.
6378
0fc8f115
AA
63792016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6380
6381 * linux-record.c: Fix whitespace issues; tabify, remove trailing
6382 spaces.
6383
afdab916
AA
63842016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6385
6386 * linux-record.c (record_linux_system_call): Add missing return
6387 statements to handling of pipe and pipe2 syscalls.
6388
bfeeb14b
DE
63892016-03-16 Doug Evans <dje@google.com>
6390
6391 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
6392
6b94a855
YQ
63932016-03-16 Yao Qi <yao.qi@linaro.org>
6394
6395 * arm-linux-tdep.c (arm_linux_init_abi): Fix
6396 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
6397 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
6398 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
6399 arm_linux_record_tdep.arg7.
6400
1cafadb4
DB
64012016-03-15 Keith Seitz <keiths@redhat.com>
6402
6403 PR breakpoints/18303
6404 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
6405 look for "::" instead of simply ":".
6406 (cp_search_static_and_baseclasses): Return null_block_symbol for
6407 malformed input.
6408 Remove assertions.
6409 * cp-support.c (cp_find_first_component_aux): Do not return
6410 a prefix length for ':' unless the next character is also ':'.
6411
89c200ed
DE
64122016-03-15 Doug Evans <dje@google.com>
6413
6414 * features/aarch64-core.xml (cpsr_flags): New flags type.
6415 (cpsr): Use it.
6416 * features/aarch64.c: Regenerate.
6417
49b7ae7b
DE
64182016-03-15 Doug Evans <dje@google.com>
6419
6420 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
6421 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
6422 * features/i386/64bit-core.xml (i386_eflags): Ditto.
6423 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
6424 * features/i386/x32-core.xml (i386_eflags): Ditto.
6425
81516450 64262016-03-15 Doug Evans <dje@google.com>
79427bd2 6427 Wei-cheng Wang <cole945@gmail.com>
81516450
DE
6428
6429 Extend flags to support multibit and enum bitfields.
79427bd2 6430 * NEWS: Document new features.
81516450
DE
6431 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
6432 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
6433 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
6434 (append_flags_type_field): New function.
6435 (append_flags_type_flag): Call it.
6436 * gdbtypes.h (append_flags_type_field): Declare.
6437 * target-descriptions.c (struct tdesc_type_flag): Delete.
6438 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
6439 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
6440 (struct tdesc_type) <u.f>: Delete.
6441 (tdesc_predefined_types): Add "bool".
6442 (tdesc_predefined_type): New function.
6443 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
6444 Update TDESC_TYPE_FLAGS support.
6445 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
6446 (tdesc_create_flags): Update.
6447 (tdesc_create_enum): New function.
6448 (tdesc_add_field): Initialize start,end to -1.
6449 (tdesc_add_typed_bitfield): New function.
6450 (tdesc_add_bitfield): Call it.
6451 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
6452 (tdesc_add_enum_value): New function.
6453 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
6454 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
6455 * target-descriptions.h (tdesc_create_enum): Declare.
6456 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
6457 * valprint.c (generic_val_print_enum_1): New function.
6458 (generic_val_print_enum): Call it.
6459 (val_print_type_code_flags): Make static. Handle multibit bitfields
6460 and enum bitfields.
6461 * valprint.h (val_print_type_code_flags): Delete.
6462 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
6463 Delete. All uses removed.
6464 (tdesc_start_enum): New function.
6465 (tdesc_start_field): Handle multibit and enum bitfields.
6466 (tdesc_start_enum_value): New function.
6467 (enum_value_attributes, enum_children, enum_attributes): New static
6468 globals.
6469 (feature_children): Add "enum".
6470 * features/gdb-target.dtd (enum, evalue): New elements.
6471
54157a25
DE
64722016-03-15 Doug Evans <dje@google.com>
6473
6474 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
6475 from LONGEST to int.
6476 (struct tdesc_type) <u.f.size>: Ditto.
6477 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
6478 to int. Add assertion size > 0.
6479 (tdesc_create_flags): Ditto.
6480 * target-descriptions.h (tdesc_set_struct_size): Update.
6481 (tdesc_create_flags): Update.
6482 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
6483 (MAX_VECTOR_SIZE): New macro.
6484 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
6485 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
6486
73b4f516
DE
64872016-03-15 Doug Evans <dje@google.com>
6488
6489 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
6490 TYPE_CODE_FLAGS instead of "field_type", for consistency.
6491 * features/i386/amd64-avx-linux.c: Regenerate.
6492 * features/i386/amd64-avx.c: Regenerate.
6493 * features/i386/amd64-avx512-linux.c: Regenerate.
6494 * features/i386/amd64-avx512.c: Regenerate.
6495 * features/i386/amd64-linux.c: Regenerate.
6496 * features/i386/amd64-mpx-linux.c: Regenerate.
6497 * features/i386/amd64-mpx.c: Regenerate.
6498 * features/i386/amd64.c: Regenerate.
6499 * features/i386/i386-avx-linux.c: Regenerate.
6500 * features/i386/i386-avx.c: Regenerate.
6501 * features/i386/i386-avx512-linux.c: Regenerate.
6502 * features/i386/i386-avx512.c: Regenerate.
6503 * features/i386/i386-linux.c: Regenerate.
6504 * features/i386/i386-mmx-linux.c: Regenerate.
6505 * features/i386/i386-mmx.c: Regenerate.
6506 * features/i386/i386-mpx-linux.c: Regenerate.
6507 * features/i386/i386-mpx.c: Regenerate.
6508 * features/i386/i386.c: Regenerate.
6509 * features/i386/x32-avx-linux.c: Regenerate.
6510 * features/i386/x32-avx.c: Regenerate.
6511 * features/i386/x32-avx512-linux.c: Regenerate.
6512 * features/i386/x32-avx512.c: Regenerate.
6513 * features/i386/x32-linux.c: Regenerate.
6514 * features/i386/x32.c: Regenerate.
6515
1eb2dbb8
PA
65162016-03-15 Pedro Alves <palves@redhat.com>
6517
6518 PR gdb/19676
6519 * linux-thread-db.c (try_thread_db_load_1): Leave
6520 info->td_ta_thr_iter_p NULL iff debugging a live process and we
6521 have /proc access.
6522 (find_new_threads_once): Assert that we have a non-NULL
6523 info->td_ta_thr_iter_p instead of checking whether the target has
6524 execution.
6525
16b41842
PA
65262016-03-15 Pedro Alves <palves@redhat.com>
6527
6528 PR gdb/19676
6529 * infrun.c (displaced_step_prepare): Also disable displaced
6530 stepping on NOT_SUPPORTED_ERROR.
6531 * linux-tdep.c (linux_displaced_step_location): If reading auxv
6532 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
6533
70104a90
MK
65342016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
6535
6536 * s390-linux-tdep.c (s390_gen_return_address): New function.
6537 (s390_gdbarch_init): Fill gen_return_address hook.
6538
f2403c39
AB
65392016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6540
6541 * symmisc.c (maintenance_info_line_tables): New function.
6542 (maintenance_print_one_line_table): New function.
6543 (_initialize_symmisc): Register 'maint info line-table' command.
6544 * NEWS: Mention new command.
6545
c4b3e547
MK
65462016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
6547
6548 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
6549 (s390_ax_pseudo_register_push_stack): New function.
6550 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
6551 ax_pseudo_register_push_stack hooks.
6552
f2f3ccb9
SM
65532016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
6554
6555 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
6556 gdb/function/as_string.py.
6557 * python/lib/gdb/function/as_string.py: New file.
6558 * NEWS: Mention the new $_as_string function.
6559
2343b78a
JM
65602016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
6561
6562 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
6563
b69d38af
PA
65642016-03-09 Pedro Alves <palves@redhat.com>
6565
6566 * event-top.c (more_to_come): Delete.
6567 (struct readline_input_state): Delete.
6568 (readline_input_state): Delete.
6569 (get_command_line_buffer): New function.
6570 (command_handler): Update comments. Don't handle NULL commands
6571 here. Do not execute commented lines.
6572 (command_line_append_input_line): New function.
6573 (handle_line_of_input): New function, partly based on
6574 command_line_handler and command_line_input.
6575 (command_line_handler): Rewrite.
6576 * event-top.h (command_handler): New declaration.
6577 (command_loop): Defer command execution to command_handler.
6578 (command_line_input): Update comments. Simplify, using struct
6579 buffer and handle_line_of_input.
6580 * top.h (struct buffer): New forward declaration.
6581 (handle_line_of_input): New declaration.
6582
2669cade
PA
65832016-03-09 Pedro Alves <palves@redhat.com>
6584
6585 * event-top.c (command_line_handler): Use xfree + xstrdup instead
6586 of xrealloc + strcpy.
6587 * main.c (captured_main): Use xstrdup instead of xmalloc plus
6588 manual clear.
6589 * top.c (saved_command_line): Rewrite comment.
6590 (saved_command_line_size): Delete.
6591 (command_line_input): Use xfree + xstrdup instead of xrealloc +
6592 strcpy.
6593 * top.h (saved_command_line_size): Delete declaration.
6594
187212b3
PA
65952016-03-09 Pedro Alves <palves@redhat.com>
6596
6597 * event-top.c: Include buffer.h.
6598 (gdb_readline_no_editing_callback): Use struct buffer instead
6599 of xrealloc.
6600
7a3bde34
PA
66012016-03-09 Pedro Alves <palves@redhat.com>
6602
6603 * common/buffer.h (buffer_grow_char): New function.
6604 * top.c: Include buffer.h.
6605 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
6606 'prompt'. Use struct buffer instead of xrealloc.
6607
c5c136ea
PA
66082016-03-09 Pedro Alves <palves@redhat.com>
6609
6610 * defs.h (gdb_readline): Delete declaration.
6611 * top.c (gdb_readline): Rename to ...
6612 (gdb_readline_no_editing): ... this, and make static.
6613
720d2e96
PA
66142016-03-09 Pedro Alves <palves@redhat.com>
6615
6616 * utils.c (prompt_for_continue): Update comments.
6617
608ff013
PA
66182016-03-09 Pedro Alves <palves@redhat.com>
6619
6620 * event-top.c (async_annotation_suffix): Delete.
6621 (top_level_prompt, command_line_handler): Don't use
6622 'async_annotation_suffix' and simplify.
6623 * event-top.h (async_annotation_suffix): Delete declaration.
6624 (init_main): Remove reference to 'async_annotation_suffix'.
6625
c70061cf
PA
66262016-03-09 Pedro Alves <palves@redhat.com>
6627
6628 * event-top.c (gdb_readline2): Rename to ...
6629 (gdb_readline_no_editing_callback): ... this.
6630 (change_line_handler, stdin_event_handler)
6631 (gdb_setup_readline): Adjust.
6632 * event-top.h (gdb_readline2): Rename to ...
6633 (gdb_readline_no_editing_callback): ... this, and move closer to
6634 other readline-related declarations.
6635 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
6636
8a243832
PA
66372016-03-09 Pedro Alves <palves@redhat.com>
6638
6639 * top.c (window_hook): Delete.
6640 (command_loop): Remove references to window_hook.
6641
cc2c4da8
MK
66422016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6643
6644 * corefile.c (safe_read_memory_unsigned_integer): New function.
6645 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
6646 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
6647
a67914de
MK
66482016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6649
6650 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
6651 (rs6000_gen_return_address): New function.
6652 (rs6000_gdbarch_init): Wire in the above.
6653
2a2fa07b
MK
66542016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6655
6656 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
6657 (rs6000_gdbarch_init): Wire in the above.
6658
bc0e3f49
AA
66592016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
6660
6661 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
6662 instructions that do nothing or are conditional traps.
6663
6d53bec8
AA
66642016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
6665
6666 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
6667 frame func's PC in info->func before any other failure can occur.
6668 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
6669 info->func has been filled out.
6670
f7990f16
PA
66712016-03-09 Pedro Alves <palves@redhat.com>
6672
6673 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
6674
087ccc6a
PA
66752016-03-09 Pedro Alves <palves@redhat.com>
6676
6677 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
6678
114d7832
PA
66792016-03-09 Pedro Alves <palves@redhat.com>
6680
6681 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
6682 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
6683
d7a87b5e
PA
66842016-03-09 Pedro Alves <palves@redhat.com>
6685
6686 * doublest.c: Extend comments.
6687 (floatformat_to_doublest, floatformat_from_doublest): Copy the
6688 floatformat's total size, not the host type's size.
6689
b79497cb
PA
66902016-03-09 Pedro Alves <palves@redhat.com>
6691
6692 * doublest.c (floatformat_totalsize_bytes): New function.
6693 (floatformat_from_type): Assert that the type's length is at least
6694 as long as the floatformat's totalsize.
6695 * doublest.h (floatformat_totalsize_bytes): New declaration.
6696 * gdbtypes.c (arch_float_type): Assert that the type's length is
6697 at least as long as the floatformat's totalsize.
6698
aacca8a7
PA
66992016-03-09 Pedro Alves <palves@redhat.com>
6700
6701 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
6702 format to floatformats_ieee_double.
6703
e6c2f47b
PA
67042016-03-07 Pedro Alves <palves@redhat.com>
6705
6706 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
6707 before calling bfd_get_flavour.
6708
cb86f388
DC
67092016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6710
6711 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
6712 (avr_push_dummy_call): Correct last needed argument register.
6713 Write MSB of argument into register and subsequent bytes into
6714 other registers in decreasing order.
6715
f1771dce
YQ
67162016-03-04 Yao Qi <yao.qi@linaro.org>
6717
6718 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
6719 condition check. Record the right D register number.
6720
ca92db2d
YQ
67212016-03-04 Yao Qi <yao.qi@linaro.org>
6722
6723 * arm-tdep.c (arm_record_extension_space): Remove code
6724 printing "Process record does not support".
6725 (arm_record_data_proc_misc_ld_str): Likewise.
6726 (decode_insn): Call arm_record_extension_space if condition
6727 is 0xf. Call arm_record_unsupported_insn if ret isn't
6728 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
6729 the value of thumb2_record_decode_insn_handler.
6730
73519cce
SM
67312016-03-04 Simon Marchi <simon.marchi@ericsson.com>
6732
6733 * features/feature_to_c.sh: Print the help when passing no
6734 argument.
6735
650beae3
BH
67362016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
6737
6738 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
6739
28586665
BH
67402016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
6741
6742 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
6743
f2489477
AA
67442016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
6745
6746 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
6747 exception when attempting to access the inferior's backchain.
6748
d5219069
YQ
67492016-02-29 Yao Qi <yao.qi@linaro.org>
6750
6751 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
6752 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
6753 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
6754 for aarch64_sys_epoll_create1.
6755
253b4d3a
YQ
67562016-02-29 Yao Qi <yao.qi@linaro.org>
6757
6758 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
6759 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
6760 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
6761 * linux-record.c (record_linux_system_call): Handle them.
6762
38899f16
IB
67632016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
6764
6765 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
6766 cyclic imports.
6767
1ed0c2a4
KS
67682016-02-26 Keith Seitz <keiths@redhat.com>
6769
6770 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
6771 to avoid invalid conversion from void *.
6772
9fde51ed
YQ
67732016-02-26 Yao Qi <yao.qi@linaro.org>
6774
6775 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
6776 per bit 8. Check bit 20 instead of bit 4 for VMOV
6777 instruction. Record D registers for instructions changing
6778 S registers. Change of the order of length and address
6779 in record_buf_mem array.
6780
1f33efec
YQ
67812016-02-26 Yao Qi <yao.qi@linaro.org>
6782
6783 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
6784 number of Rd.
6785
1547ef64
DE
67862016-02-25 Doug Evans <dje@google.com>
6787
6788 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
6789 compiler warning.
6790 (recv_long_data): Ditto.
6791
166616ce
SM
67922016-02-25 Simon Marchi <simon.marchi@ericsson.com>
6793
6794 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
6795 Initialize variables.
6796
1eb7c2d8
AT
67972016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
6798
6799 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
6800 (ax_reg_mask): Likewise.
6801
e7ad2f14
PA
68022016-02-24 Pedro Alves <palves@redhat.com>
6803
6804 * linux-nat.c (save_sigtrap) Delete.
6805 (stop_wait_callback): Call save_stop_reason instead of
6806 save_sigtrap.
6807 (check_stopped_by_breakpoint): Rename to ...
6808 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
6809 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
6810 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
6811 common code between the USE_SIGTRAP_SIGINFO and
6812 !USE_SIGTRAP_SIGINFO blocks.
6813 (linux_nat_filter_event): Call save_stop_reason instead of
6814 save_sigtrap.
6815 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
6816 si_code for MIPS.
6817 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
6818 comments on MIPS behavior.
6819 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
6820
338435ef
MK
68212016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
6822
6823 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
6824 to avoid spurious warnings.
6825
bf74e428
GB
68262016-02-24 Gary Benson <gbenson@redhat.com>
6827
6828 * exec.c (exec_file_locate_attach): Do not attempt to
6829 locate main executable locally if not found in sysroot.
6830
62fb310b
JB
68312016-02-24 Joel Brobecker <brobecker@adacore.com>
6832
6833 GDB 7.11 released.
6834
50ae56ec
WW
68352016-02-24 Wei-cheng Wang <cole945@gmail.com>
6836
6837 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
6838 unavailable PC/SP to build unavailable frame.
6839
cce0e923
DE
68402016-02-23 Doug Evans <dje@google.com>
6841
6842 Extend "skip" command to support -file, -gfile, -function, -rfunction.
6843 * NEWS: Document new features.
6844 * skip.c: #include "fnmatch.h", "gdb_regex.h".
6845 (skiplist_entry) <file>: Renamed from filename.
6846 <function>: Renamed from function_name.
6847 <file_is_glob, function_is_regexp>: New members.
6848 <compiled_function_regexp, compiled_function_regexp_is_valid>:
6849 New members.
6850 (make_skip_entry): New function.
6851 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
6852 (make_free_skiplist_entry_cleanup): New function.
6853 (skip_file_command): Update.
6854 (skip_function, skip_function_command): Update.
6855 (compile_skip_regexp): New functions.
6856 (skip_command): Add support for new options.
6857 (skip_info): Update.
6858 (skip_file_p, skip_gfile_p): New functions.
6859 (skip_function_p, skip_rfunction_p): New functions.
6860 (function_name_is_marked_for_skip): Update and simplify.
6861 (_initialize_step_skip): Update.
6862 * symtab.c: #include "fnmatch.h".
6863 (compare_glob_filenames_for_search): New function.
6864 * symtab.h (compare_glob_filenames_for_search): Declare.
6865 * utils.c (count_path_elements): New function.
6866 (strip_leading_path_elements): New function.
6867 * utils.h (count_path_elements): Declare.
6868 (strip_leading_path_elements): Declare.
6869
12545665
SM
68702016-02-23 Simon Marchi <simon.marchi@ericsson.com>
6871
6872 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
6873 (thumb_process_displaced_insn): Likewise.
6874 (arm_process_displaced_insn): Adjust calls.
6875
c955ae73
YQ
68762016-02-23 Yao Qi <yao.qi@linaro.org>
6877
6878 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
6879 Remove.
6880 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
6881 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
6882 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
6883 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
6884 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
6885 <aarch64_sys_faccessat>: New.
6886 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
6887 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
6888 <aarch64_sys_newfstatat>: New.
6889 (UNSUPPORTED_SYSCALL_MAP): New macro.
6890 (aarch64_canonicalize_syscall): Add missing syscalls.
6891
ac46107c
JK
68922016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6893
6894 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
6895
01e57735
YQ
68962016-02-22 Yao Qi <yao.qi@linaro.org>
6897
6898 * arm-tdep.c: Fix code format issues.
6899
30a6a7f0
IB
69002016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
6901
6902 * d-namespace.c (d_lookup_symbol_imports): Remove argument
6903 'search_parents'. All callers updated.
6904
f79a3bae
MK
69052016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
6906
6907 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
6908 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
6909
012b3a21
WT
69102016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
6911
6912 * NEWS: Add entry for bound violation.
6913 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
6914 Add handler for segmentation fault.
6915 * gdbarch.sh (handle_segmentation_fault): New.
6916 * gdbarch.c: Regenerate.
6917 * gdbarch.h: Regenerate.
6918 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
6919 (SIG_CODE_BONDARY_FAULT): New define.
6920 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
6921 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
6922 * i386-tdep.c (i386_mpx_enabled): Add as external.
6923 * i386-tdep.c (i386_mpx_enabled): Add as external.
6924 * infrun.c (handle_segmentation_fault): New function.
6925 (print_signal_received_reason): Use handle_segmentation_fault.
6926
5f034a78
MK
69272016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
6928
6929 * arch-utils.c (default_guess_tracepoint_registers): New function.
6930 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
6931 * gdbarch.c: Regenerate.
6932 * gdbarch.h: Regenerate.
6933 * gdbarch.sh: Add guess_tracepoint_registers hook.
6934 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
6935
88178e82
GB
69362016-02-17 Gary Benson <gbenson@redhat.com>
6937
6938 * exec.c (exec_file_locate_attach): Add missing cleanup.
6939
4041ed77
DB
69402016-02-16 Don Breazeal <donb@codesourcery.com>
6941
6942 PR remote/19496
6943 * remote.c (remove_new_fork_children): Check for pending
6944 fork status in thread_info.suspend.
6945
b442c911
YQ
69462016-02-16 Yao Qi <yao.qi@linaro.org>
6947
6948 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
6949 'old_chain' later.
6950
553cb527
YQ
69512016-02-16 Yao Qi <yao.qi@linaro.org>
6952
6953 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
6954 <syscall_next_pc>: Remove argument PC. Callers updated.
6955 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
6956 Remove argument PC. Get pc from regcache_read_pc.
6957 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
6958 argument PC.
6959
0a0da556
YQ
69602016-02-15 Yao Qi <yao.qi@linaro.org>
6961
6962 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
6963
01113bc1
YQ
69642016-02-12 Yao Qi <yao.qi@linaro.org>
6965
6966 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
6967 nextpc according to instruction.
6968
ed443b61
YQ
69692016-02-12 Yao Qi <yao.qi@linaro.org>
6970
6971 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
6972 self->ops->fixup if it isn't NULL.
6973 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
6974 (struct arm_get_next_pcs_ops) <fixup>: New field.
6975 * arch/arm-linux.c: Include common-regcache.h and
6976 arch/arm-get-next-pcs.h.
6977 (arm_linux_get_next_pcs_fixup): New function.
6978 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
6979 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
6980 it with arm_linux_get_next_pcs_fixup.
6981 (arm_linux_software_single_step): Move code to
6982 arm_linux_get_next_pcs_fixup.
6983 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
6984
d21b5f15
MK
69852016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6986
6987 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
6988 and return NULL.
6989
33b4777c
MM
69902016-02-12 Markus Metzger <markus.t.metzger@intel.com>
6991
6992 * frame.h (skip_tailcall_frames): Update comment.
6993 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
6994 if only artificial frames are found. Update comment.
6995 (frame_unwind_caller_id): Handle NULL return.
6996 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
6997 skip_artificial_frames does not return NULL.
6998 (frame_pop): Add an error if only tailcall frames are found.
6999 * infcmd.c (finish_command): Move skip_tailcall_frames call into
7000 forward-execution case. Add an error if only tailcall frames are
7001 found.
7002
a038fa3e
MM
70032016-02-12 Markus Metzger <markus.t.metzger@intel.com>
7004
7005 * stack.c (frame_info): Check frame_unwind_caller_id.
7006
2f3ef606
MM
70072016-02-12 Markus Metzger <markus.t.metzger@intel.com>
7008
7009 * frame.h (skip_tailcall_frames): New.
7010 * frame.c (skip_tailcall_frames): New.
7011 (frame_pop): Call skip_tailcall_frames.
7012 * infcmd.c (finish_command): Call skip_tailcall_frames.
7013
e352bf0a
PA
70142016-02-11 Pedro Alves <palves@redhat.com>
7015
7016 * Makefile.in (check-parallel): New rule.
7017
bec2ab5a
SM
70182016-02-11 Simon Marchi <simon.marchi@ericsson.com>
7019
7020 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
7021 (arm_analyze_prologue): Likewise.
7022 (arm_scan_prologue): Likewise.
7023 (arm_m_exception_prev_register): Likewise.
7024 (arm_copy_block_xfer): Likewise.
7025 (thumb2_copy_block_xfer): Likewise.
7026 (arm_decode_miscellaneous): Likewise.
7027 (arm_decode_ld_st_word_ubyte): Likewise.
7028 (arm_decode_svc_copro): Likewise.
7029 (thumb2_decode_svc_copro): Likewise.
7030 (thumb_copy_16bit_ldr_literal): Likewise.
7031 (thumb_copy_pop_pc_16bit): Likewise.
7032 (decode_thumb_32bit_ld_mem_hints): Likewise.
7033 (arm_show_force_mode): Likewise.
7034 (_initialize_arm_tdep): Likewise.
7035 (arm_record_strx): Likewise.
7036 (arm_record_extension_space): Likewise.
7037 (arm_record_data_proc_misc_ld_str): Likewise.
7038 (arm_record_exreg_ld_st_insn): Likewise.
7039 (arm_record_vfp_data_proc_insn): Likewise.
7040 (arm_record_coproc_data_proc): Likewise.
7041 (thumb_record_misc): Likewise.
7042 (thumb_record_ldm_stm_swi): Likewise.
7043 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
7044 (thumb2_record_ld_mem_hints): Likewise.
7045 (thumb2_record_lmul_lmla_div): Likewise.
7046 (thumb2_record_asimd_struct_ld_st): Likewise.
7047 (arm_process_record): Likewise.
7048
2ba163c8
SM
70492016-02-11 Simon Marchi <simon.marchi@ericsson.com>
7050
7051 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
7052 (ARM displaced stepping support): Remove reference to
7053 arm_displaced_step_copy_insn in comment.
7054 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
7055 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
7056 reference to arm_displaced_step_copy_insn in comment.
7057
615234c1
SM
70582016-02-11 Simon Marchi <simon.marchi@ericsson.com>
7059
7060 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
7061 (thumb_copy_b): Likewise.
7062 (arm_decode_b_bl_ldmstm): Likewise.
7063 (thumb_copy_16bit_ldr_literal): Likewise.
7064 (thumb_copy_pop_pc_16bit): Likewise.
7065
82e9becd
AT
70662016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
7067
7068 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
7069 than loc->gdbarch.
7070
5ac87a99
MK
70712016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7072
7073 * tracefile-tfile.c (trace_tdesc): New static variable.
7074 (tfile_open): Clear trace_tdesc, call target_find_description.
7075 (tfile_interp_line): Recognize tdesc lines.
7076 (tfile_close): Clear trace_tdesc.
7077 (tfile_xfer_partial_features): New function.
7078 (tfile_xfer_partial): Call tfile_xfer_partial_features.
7079 (tfile_append_tdesc_line): New function.
7080
18d3cec5
MK
70812016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7082
7083 * ctf.c (ctf_write_tdesc): New function.
7084 (ctf_write_ops): Wire in ctf_write_tdesc.
7085 * tracefile-tfile.c (tfile_write_tdesc): New function.
7086 (tfile_write_ops): Wire in tfile_write_tdesc.
7087 * tracefile.c (trace_save): Call write_tdesc method.
7088 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
7089 * xml-tdesc.c (target_fetch_description_xml): New function.
7090 * xml-tdesc.h: Add target_fetch_description_xml prototype.
7091
550dc4e2
SM
70922016-02-10 Simon Marchi <simon.marchi@ericsson.com>
7093
7094 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
7095 (arm_decode_dp_misc): Likewise.
7096
62e5fd57
MK
70972016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7098
7099 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
7100 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
7101 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
7102 misleading comment.
7103 (i386_pseudo_register_write): Ditto.
7104 (i386_ax_pseudo_register_collect): New function.
7105 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
7106 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
7107
e909d859
MK
71082016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7109
7110 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
7111 instead of gdb order.
7112
473b99e5
MK
71132016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7114
7115 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
7116 check.
7117
1233c0ba
JB
71182016-02-10 Joel Brobecker <brobecker@adacore.com>
7119
7120 * NEWS: Create a new section for the next release branch.
7121 Rename the section of the current branch, now that it has
7122 been cut.
7123
d1dc0942
JB
71242016-02-10 Joel Brobecker <brobecker@adacore.com>
7125
7126 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
7127 * version.in: Bump version to 7.11.50.DATE-git.
7128
9ef9e6a6
KS
71292016-02-09 Keith Seitz <keiths@redhat.com>
7130
7131 PR breakpoints/19546
7132 * breakpoint.c (breakpoint_event_location_empty_p): New function.
7133 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
7134 instead of event_location_empty_p.
7135
39a67dc4
KS
71362016-02-09 Keith Seitz <keiths@redhat.com>
7137
7138 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
7139 string_to_event_location_basic instead of string_to_event_location.
7140
a96e36da
KS
71412016-02-09 Keith Seitz <keiths@redhat.com>
7142
7143 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
7144 leading whitespace and use string_to_event_location_basic instead
7145 of new_linespec_location.
7146
9f61929f
KS
71472016-02-09 Keith Seitz <keiths@redhat.com>
7148
7149 PR python/19506
7150 * python/py-breakpoint.c (bppy_init): Use
7151 string_to_event_location_basic instead of new_linespec_location.
7152
eeb1af43
KS
71532016-02-09 Keith Seitz <keiths@redhat.com>
7154
7155 * location.c (string_to_explicit_location): Note that "-p" is
7156 reserved for probe locations and return NULL for any input
7157 that starts with that.
7158 (string_to_event_location): Move "legacy" linespec code to ...
7159 (string_to_event_location_basic): ... here.
7160 * location.h (string_to_event_location): Update comment.
7161 (string_to_event_location_basic): New function.
7162
1e94266c
SM
71632016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7164
7165 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7166 to AC_OUTPUT. Remove "exit 0" at the end.
7167 * configure: Regenerate.
7168
2a7f3dff
PA
71692016-02-09 Pedro Alves <palves@redhat.com>
7170
7171 PR breakpoints/19548
7172 * breakpoint.c (create_overlay_event_breakpoint): Don't update
7173 global location list here.
7174 (create_longjmp_master_breakpoint)
7175 (create_std_terminate_master_breakpoint)
7176 (create_exception_master_breakpoint, create_jit_event_breakpoint)
7177 (update_breakpoint_locations):
7178 (breakpoint_re_set): Update global location list after all
7179 breakpoints are re-set.
7180
54887903
SM
71812016-02-08 Simon Marchi <simon.marchi@ericsson.com>
7182
7183 * remote.c (remote_register_number_and_offset): Remove unused
7184 variable(s).
7185 (remote_thread_always_alive): Likewise.
7186 (remote_update_thread_list): Likewise.
7187 (process_initial_stop_replies): Likewise.
7188 (remote_start_remote): Likewise.
7189 (remote_check_symbols): Likewise.
7190 (discard_pending_stop_replies): Likewise.
7191 (process_stop_reply): Likewise.
7192 (putpkt_binary): Likewise.
7193 (getpkt): Likewise.
7194 (remote_add_target_side_condition): Likewise.
7195 (remote_insert_breakpoint): Likewise.
7196 (remote_supports_stopped_by_sw_breakpoint): Likewise.
7197 (remote_supports_stopped_by_hw_breakpoint): Likewise.
7198 (remote_xfer_partial): Likewise.
7199 (remote_read_btrace): Likewise.
7200 (remote_async_serial_handler): Likewise.
7201 (remote_thread_events): Likewise.
7202 (_initialize_remote): Likewise.
7203
30914ca8
SM
72042016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
7205
7206 * varobj.h (varobj_delete): Remove dellist parameter, update and
7207 move documentation here.
7208 * varobj.c (struct cpstack, cppush, cppop): Remove.
7209 (delete_variable): Remove resultp (first) parameter.
7210 (delete_variable_1): Likewise.
7211 (varobj_delete): Remove dellist parameter and unused code.
7212 (update_dynamic_varobj_children): Adjust varobj_delete call.
7213 (update_type_if_necessary): Likewise.
7214 (varobj_set_visualizer): Likewise.
7215 (varobj_update): Likewise.
7216 (value_of_root): Likewise.
7217 (varobj_invalidate_iter): Likewise.
7218 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
7219
e42e5352
YQ
72202016-02-04 Yao Qi <yao.qi@linaro.org>
7221
7222 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
7223 0 before handling 'F' and set it back afterwards.
7224
6456a18b
SM
72252016-02-02 Simon Marchi <simon.marchi@ericsson.com>
7226
7227 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
7228
3f2f6cb5
WT
72292016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7230
7231 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
7232 New types.
7233 (compat_siginfo): New bound fields added.
7234 (compat_x32_siginfo): New field added.
7235 (cpt_si_addr_lsb): New define.
7236 (compat_siginfo_from_siginfo): Use nat_siginfo.
7237 (siginfo_from_compat_siginfo): Use nat_siginfo.
7238 (compat_x32_siginfo_from_siginfo): Likewise.
7239 (siginfo_from_compat_x32_siginfo): Likewise.
7240
96b5c49f
WT
72412016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7242
7243 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
7244 structure to the siginfo if extra_fields contains
7245 LINUX_SIGINFO_FIELD_ADDR_BND.
7246
190b495d
WT
72472016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7248
7249 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
7250 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
7251 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
7252 function.
7253 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
7254 x86_linux_get_siginfo_type for the amd64 abi.
7255 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
7256 function.
7257 (i386_linux_init_abi): Add new function at the i386 ABI
7258 initialization.
7259
43564574
WT
72602016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7261
7262 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
7263 (linux_siginfo_extra_fields): New enum type.
7264 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
7265 (linux_get_siginfo_type): Use new function.
7266
93813b37
WT
72672016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7268
7269 * nat/amd64-linux-siginfo.c: New file.
7270 * nat/amd64-linux-siginfo.h: New file.
7271 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
7272 (amd64-linux-siginfo.o): New rule.
7273 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
7274 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
7275 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7276 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
7277 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
7278 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
7279 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
7280 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
7281
5fdf6324
AB
72822016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
7283
7284 * value.c (max_value_size): New variable.
7285 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
7286 (set_max_value_size): New function.
7287 (show_max_value_size): New function.
7288 (check_type_length_before_alloc): New function.
7289 (allocate_value_contents): Call check_type_length_before_alloc.
7290 (set_value_enclosing_type): Likewise.
7291 (_initialize_values): Add set/show handler for max-value-size.
7292 * NEWS: Mention new set/show command.
7293
5fa13070
SM
72942016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
7295
7296 * varobj.h (struct varobj): Fix typos in comments.
7297 (struct lang_varobj_ops): Likewise.
7298 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
7299 (varobj_create): Move misplaced comment.
7300
a2e3e93f
SM
73012016-01-29 Simon Marchi <simon.marchi@ericsson.com>
7302
7303 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
7304 to for include additional lines.
7305 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
7306
56e374a6
SM
73072016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7308
7309 * gnulib/import/Makefile.am: Regenerate.
7310 * gnulib/import/Makefile.in: Regenerate.
7311 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7312 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
7313
8424cc97
SM
73142016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7315
7316 * remote.c (skip_to_semicolon): Remove.
7317 (remote_parse_stop_reply): Use strchrnul instead of
7318 skip_to_semicolon.
7319 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
7320 strchrnul.
7321 * gnulib/aclocal.m4: Regenerate.
7322 * gnulib/config.in: Regenerate.
7323 * gnulib/configure: Regenerate.
7324 * gnulib/import/Makefile.am: Regenerate.
7325 * gnulib/import/Makefile.in: Regenerate.
7326 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7327 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7328 * gnulib/import/m4/rawmemchr.m4: New file.
7329 * gnulib/import/m4/strchrnul.m4: New file.
7330 * gnulib/import/rawmemchr.c: New file.
7331 * gnulib/import/rawmemchr.valgrind: New file.
7332 * gnulib/import/strchrnul.c: New file.
7333 * gnulib/import/strchrnul.valgrind: New file.
7334
4a6a1ed4
YQ
73352016-01-28 Yao Qi <yao.qi@linaro.org>
7336
7337 * breakpoint.c (build_target_command_list): Don't call continue
7338 if aexpr is NULL.
7339 (build_target_condition_list): Likewise.
7340
94715c17
KB
73412016-01-27 Kevin Buettner <kevinb@redhat.com>
7342
7343 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
7344 bytes as aggregates.
7345
c07af0ab
JB
73462016-01-27 Joel Brobecker <brobecker@adacore.com>
7347
7348 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
7349 Linespec Maintainers.
7350
41548caa
SM
73512016-01-26 Simon Marchi <simon.marchi@ericsson.com>
7352
7353 * common/common-utils.c (skip_spaces): Fix comment.
7354 (skip_to_space_const): Likewise.
7355
4d18591b
YQ
73562016-01-25 Yao Qi <yao.qi@linaro.org>
7357
7358 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7359 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
7360 (arm_deal_with_atomic_sequence_raw): Likewise.
7361 (thumb_get_next_pcs_raw): Likewise.
7362 (arm_get_next_pcs_raw): Likewise.
7363 (arm_get_next_pcs): Remove argument pc. Callers updated.
7364 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
7365
a579cd9a
MW
73662016-01-25 Mark Wielaard <mjw@redhat.com>
7367
7368 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
7369 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
7370 if statement.
7371 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
7372 statement block by introducing an else.
7373 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
7374 of return statements.
7375 (record_linux_msghdr): Likewise.
7376
a2077e25
PA
73772016-01-25 Pedro Alves <palves@redhat.com>
7378
7379 PR threads/19461
7380 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
7381 parent/child running states.
7382
1d2736d4
PA
73832016-01-25 Pedro Alves <palves@redhat.com>
7384
7385 PR gdb/19494
7386 * linux-nat.c (kill_one_lwp): New, factored out from ...
7387 (kill_callback): ... this.
7388 (kill_wait_callback): New, factored out from ...
7389 (kill_wait_one_lwp): ... this.
7390 (kill_unfollowed_fork_children): New function.
7391 (linux_nat_kill): Use it.
7392
b2bae2f7
JB
73932016-01-22 John Baldwin <jhb@FreeBSD.org>
7394
7395 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
7396
d86feca3
YQ
73972016-01-22 Yao Qi <yao.qi@linaro.org>
7398
7399 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
7400 instead of warning.
7401 (store_fpregs, fetch_regs, store_regs): Likewise.
7402 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
7403 (fetch_vfp_regs, store_vfp_regs): Likewise.
7404
b35a8b2f
DE
74052016-01-21 Doug Evans <dje@google.com>
7406
7407 * breakpoint.c (init_breakpoint_sal): Add comment.
7408
f906b857
MK
74092016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7410
7411 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
7412
4a099de2
AB
74132016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
7414
7415 * disasm.c (maybe_add_dis_line_entry): Rename to...
7416 (add_dis_line_entry): ...this, and update header comment.
7417 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
7418
a994041d
PA
74192016-01-21 Pedro Alves <palves@redhat.com>
7420
7421 * Makefile.in (COMPILER_CFLAGS): New.
7422 (CXXFLAGS): Get it from configure.
7423 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
7424 instead of CFLAGS.
7425 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
7426 COMPILER_CFLAGS.
7427 * configure: Regenerate.
7428
305e13e6
JB
74292016-01-21 Joel Brobecker <brobecker@adacore.com>
7430
7431 * location.h (new_address_location): Add new parameters
7432 "addr_string" and "addr_string_len".
7433 (get_address_string_location): Add declaration.
7434 * location.c (new_address_location): Add new parameters
7435 "addr_string" and "addr_string_len". If not NULL, store
7436 a copy of the addr_string in the new location as well.
7437 (get_address_string_location): New function.
7438 (string_to_event_location): Update call to new_address_location.
7439 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
7440 Save the event location in the parser's state before
7441 passing it to convert_address_location_to_sals.
7442 * breakpoint.c (create_thread_event_breakpoint): Update call
7443 to new_address_location.
7444 (init_breakpoint_sal): Get the event location's string, if any,
7445 and use it to update call to new_address_location.
7446 * python/py-finishbreakpoint.c (bpfinishpy_init):
7447 Update call to new_address_location.
7448 * spu-tdep.c (spu_catch_start): Likewise.
7449
7450 * config/djgpp/fnchange.lst: Add entries for
7451 gdb/testsuite/gdb.base/break-fun-addr1.c and
7452 gdb/testsuite/gdb.base/break-fun-addr2.c.
7453
f7a6a40d
YQ
74542016-01-21 Yao Qi <yao.qi@linaro.org>
7455
7456 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
7457 is_thumb and set it according to CPSR saved on the stack.
7458 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
7459 arm_linux_sigreturn_next_pc.
7460
5f5dfff6
SM
74612016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7462
7463 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
7464 Fix enumerators sort key function.
7465
be56871e
JB
74662016-01-20 Joel Brobecker <brobecker@adacore.com>
7467
b12e5614 7468 * printcmd.c (print_scalar_formatted): Move binary operator from
be56871e
JB
7469 end of line to beginning of next line. Adjust formatting
7470 accordingly.
7471
f2feec98
JB
74722016-01-19 John Baldwin <jhb@FreeBSD.org>
7473
7474 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
7475 "len" with sysctl.
7476
20a0aab3
JB
74772016-01-19 John Baldwin <jhb@FreeBSD.org>
7478
7479 * fbsd-tdep.c (find_stop_signal): Remove.
7480 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
7481 <stop_signal>: New field.
7482 <abort_iteration>: New field.
7483 (fbsd_collect_regset_section_cb): Use new fields.
7484 (fbsd_collect_thread_registers): New function.
7485 (struct fbsd_corefile_thread_data): New structure.
7486 (fbsd_corefile_thread): New function.
7487 (fbsd_make_corefile_notes): Use new function to dump notes for each
7488 non-exited thread in a process.
7489
6e9567fe
JB
74902016-01-19 John Baldwin <jhb@FreeBSD.org>
7491
7492 * configure.ac: Check for support for LWP names on FreeBSD.
7493 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
7494 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
7495 (fbsd_fetch_kinfo_proc): Move function earlier.
7496 [PT_LWPINFO] (fbsd_thread_alive): New function.
7497 [PT_LWPINFO] (fbsd_pid_to_str): New function.
7498 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
7499 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
7500 [PT_LWPINFO] (fbsd_add_threads): New function.
7501 [PT_LWPINFO] (fbsd_update_thread_list): New function.
7502 [PT_LWPINFO] New variable super_resume.
7503 [PT_LWPINFO] (resume_one_thread_cb): New function.
7504 [PT_LWPINFO] (resume_all_threads_cb): New function.
7505 [PT_LWPINFO] (fbsd_resume): New function.
7506 (fbsd_remember_child): Save full ptid instead of plain pid.
7507 (fbsd_is_child_pending): Return ptid of saved child process.
7508 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
7509 first stop.
7510 [PT_LWP_EVENTS] Handle LWP events.
7511 [TDP_RFPPWAIT] Include LWP in child ptid.
7512 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
7513 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
7514 Add threads for existing processes.
7515 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
7516 "fbsd_thread_alive".
7517 Set "to_pid_to_str" to "fbsd_pid_to_str".
7518 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
7519 "fbsd_thread_name".
7520 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
7521 Set "to_has_thread_control" to "tc_schedlock".
7522 Set "to_resume" to "fbsd_resume".
7523 (_initialize_fbsd_nat): New function.
7524 * configure: Regenerate.
7525 * config.in: Regenerate.
7526
94309df7
JB
75272016-01-19 John Baldwin <jhb@FreeBSD.org>
7528
7529 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7530 get_ptrace_pid.
7531 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
7532 (amd64bsd_dr_get): Use get_ptrace_pid.
7533 (amd64bsd_dr_set): Use get_ptrace_pid.
7534 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
7535 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
7536 (i386bsd_dr_get): Use get_ptrace_pid.
7537 (i386bsd_dr_set): Use get_ptrace_pid.
7538 * inf-ptrace.c (get_ptrace_pid): Export.
7539 * inf-ptrace.h (get_ptrace_pid): Declare.
7540 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
7541 (ppcfbsd_store_inferior_registers): Use lwp id.
7542
79117428
JB
75432016-01-19 John Baldwin <jhb@FreeBSD.org>
7544
7545 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
7546 (fbsd_core_thread_name): New function.
7547 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
7548 Add "core_thread_name" gdbarch method.
7549
4dfc5dbc
JB
75502016-01-19 John Baldwin <jhb@FreeBSD.org>
7551
7552 * corelow.c (core_thread_name): New function.
7553 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
7554 target op.
7555 * gdbarch.sh (core_thread_name): New gdbarch callback.
7556 * gdbarch.h: Re-generate.
7557 * gdbarch.c: Re-generate.
7558
10e3ed90
SM
75592016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
7560
7561 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
7562 convert gdb.Value to integer type using int().
7563
a6e69c1f
JB
75642016-01-19 John Baldwin <jhb@FreeBSD.org>
7565
7566 * configure.ac: Include <sys/types.h when checking for "r_fs" in
7567 "struct reg".
7568 * configure: Regenerate.
7569
37e42b4f
PA
75702016-01-19 Pedro Alves <palves@redhat.com>
7571
7572 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
7573 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
7574 current program space down to linespec decoding and breakpoint
7575 location updating.
7576 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
7577 decode_line_full.
7578 (until_break_command): Adjust calls to decode_line_1.
7579 (base_breakpoint_decode_location, bkpt_decode_location): Add
7580 'search_pspace' parameter. Pass it along.
7581 (bkpt_probe_create_sals_from_location): Adjust calls to
7582 parse_probes.
7583 (tracepoint_decode_location, tracepoint_probe_decode_location)
7584 (strace_marker_decode_location): Add 'search_pspace' parameter.
7585 Pass it along.
7586 (all_locations_are_pending): Rewrite to take a breakpoint and
7587 program space as arguments instead.
7588 (hoist_existing_locations): New function.
7589 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
7590 hoist_existing_locations instead of always removing all locations,
7591 and adjust to all_locations_are_pending change.
7592 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
7593 Don't disable the breakpoint if there are other locations in
7594 another program space.
7595 (breakpoint_re_set_default): Adjust to pass down the current
7596 program space as filter program space.
7597 (decode_location_default): Add 'search_pspace' parameter and pass
7598 it along.
7599 (prepare_re_set_context): Don't switch program space here.
7600 (breakpoint_re_set): Use save_current_space_and_thread instead of
7601 save_current_program_space.
7602 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
7603 'search_pspace' parameter.
7604 (update_breakpoint_locations): Add 'filter_pspace' parameter.
7605 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
7606 decode_line_1.
7607 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
7608 program space as filter program space.
7609 * linespec.c (struct linespec_state) <search_pspace>: New field.
7610 (create_sals_line_offset, convert_explicit_location_to_sals)
7611 (parse_linespec): Pass the search program space down.
7612 (linespec_state_constructor): Add 'search_pspace' parameter.
7613 Store it.
7614 (linespec_parser_new): Add 'search_pspace' parameter and pass it
7615 along.
7616 (linespec_lex_to_end): Adjust.
7617 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
7618 and pass it along.
7619 (decode_line_with_last_displayed): Adjust.
7620 (collect_symtabs_from_filename, symtabs_from_filename): New
7621 'search_pspace' parameter. Use it.
7622 (find_function_symbols): Pass the search program space down.
7623 * linespec.h (decode_line_1, decode_line_full): Add
7624 'search_pspace' parameter.
7625 * probe.c (parse_probes_in_pspace): New function, factored out
7626 from ...
7627 (parse_probes): ... this. Add 'search_pspace' parameter and use
7628 it.
7629 * probe.h (parse_probes): Add pspace' parameter.
7630 * python/python.c (gdbpy_decode_line): Adjust.
7631 * tracepoint.c (scope_info): Adjust.
7632
100b4f2e
MR
76332016-01-18 Maciej W. Rozycki <macro@imgtec.com>
7634
7635 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
7636 instruction support.
7637 (micromips_next_pc): Likewise.
7638 (micromips_scan_prologue): Likewise.
7639 (micromips_deal_with_atomic_sequence): Likewise.
7640 (micromips_stack_frame_destroyed_p): Likewise.
7641 (mips_breakpoint_from_pc): Likewise.
7642
3f7f3650
MR
76432016-01-18 Maciej W. Rozycki <macro@imgtec.com>
7644
7645 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
7646 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
7647
f303dbd6
PA
76482016-01-18 Pedro Alves <palves@redhat.com>
7649
7650 * NEWS: Mention that GDB now displays the ID and name of the
7651 thread that hit a breakpoint or received a signal.
7652 * break-catch-sig.c (signal_catchpoint_print_it): Use
7653 maybe_print_thread_hit_breakpoint.
7654 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
7655 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
7656 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
7657 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
7658 (print_it_catch_exec, print_it_ranged_breakpoint)
7659 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
7660 Use maybe_print_thread_hit_breakpoint.
7661 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
7662 * gdbthread.h (show_thread_that_caused_stop): Declare.
7663 * infrun.c (print_signal_received_reason): Print which thread
7664 received signal.
7665 * thread.c (show_thread_that_caused_stop): New function.
7666
eb0edac8
GB
76672016-01-18 Gary Benson <gbenson@redhat.com>
7668
7669 * nat/linux-namespaces.c (do_fork): New function.
7670 (linux_mntns_get_helper): Use the above.
7671
dc365182
JH
76722016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
7673
7674 Pushed by Joel Brobecker <brobecker@adacore.com>.
7675 PR gdb/19208
7676 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
7677 if the function has no name.
7678
f74f61cb
SL
76792016-01-15 Sandra Loosemore <sandra@codesourcery.com>
7680
7681 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
7682 Conditionalize for Windows host.
7683 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
7684 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
7685 (phony_iconv_open): Handle both UTF-32 endiannesses.
7686 (phony_iconv): Likewise. Check for output overflow and clean up
7687 out-of-input cases. Correct adjustment to input buffer pointer.
7688 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
7689 phony_iconv_open.
7690
71ef29a8
PA
76912016-01-15 Pedro Alves <palves@redhat.com>
7692
7693 * NEWS: Mention star wildcard ranges.
7694 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
7695 (number_range_setup_range): New function.
7696 * cli/cli-utils.h (number_range_setup_range): New declaration.
7697 * thread.c (thread_apply_command): Support star TID ranges.
7698 * tid-parse.c (tid_range_parser_finished)
7699 (tid_range_parser_string, tid_range_parser_skip)
7700 (get_tid_or_range, get_tid_or_range): Handle
7701 TID_RANGE_STATE_STAR_RANGE.
7702 (tid_range_parser_star_range): New function.
7703 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
7704 New value.
7705 (tid_range_parser_star_range): New declaration.
7706
3f5b7598
PA
77072016-01-15 Pedro Alves <palves@redhat.com>
7708
7709 * thread.c (thread_apply_command): Use the tid range parser to
7710 advance past the thread ID list.
7711 * tid-parse.c (get_positive_number_trailer): New function.
7712 (parse_thread_id): Use it.
7713 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
7714 thread ID error.
7715 (get_tid_or_range): Detect negative values. Return 0 instead of
7716 throwing invalid thread ID error.
7717
e7cf25a8
YQ
77182016-01-14 Yao Qi <yao.qi@linaro.org>
7719
7720 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
7721 Declare.
7722 (arm_linux_get_next_pcs_ops): Install
7723 arm_linux_get_next_pcs_syscall_next_pc.
7724 (arm_linux_syscall_next_pc): Change to ...
7725 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
7726 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
7727 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
7728 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
7729 call tdep->syscall_next_pc.
7730 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
7731 (arm_get_next_pcs_syscall_next_pc): Remove.
7732
c0518081
YQ
77332016-01-14 Yao Qi <yao.qi@linaro.org>
7734
7735 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
7736 * thread.c (do_captured_thread_select): Cast to const char *.
7737
1b451dda
YQ
77382016-01-14 Yao Qi <yao.qi@linaro.org>
7739
7740 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
7741 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
7742 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
7743 instead.
7744 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
7745 <arm_thumb2_breakpoint>: Remove.
7746 <has_thumb2_breakpoint>: New field.
7747 (arm_get_next_pcs_ctor): Update declaration.
7748 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
7749 1 to arm_get_next_pcs_ctor.
7750 * arm-tdep.c (arm_software_single_step): Pass 0 to
7751 arm_get_next_pcs_ctor.
7752
bc06e0b1
UW
77532016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
7754
7755 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
7756
4e7b8bea
YQ
77572016-01-13 Yao Qi <yao.qi@linaro.org>
7758
7759 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
7760 byte_order_for_code to read instruction.
7761
663f6d42
PA
77622016-01-13 Pedro Alves <palves@redhat.com>
7763
7764 * NEWS: Mention $_gthread.
7765 * gdbthread.h (struct thread_info) <global_num>: Mention
7766 $_gthread.
7767 * thread.c (thread_num_make_value_helper): New function.
7768 (thread_id_make_value): Delete.
7769 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
7770 New.
7771 (thread_funcs): Adjust.
7772 (gthread_funcs): New.
7773 (_initialize_thread): Register $_gthread variable.
7774
c84f6bbf
PA
77752016-01-13 Pedro Alves <palves@redhat.com>
7776
7777 * NEWS: Mention "info threads -gid".
7778 * gdbthread.h (struct thread_info) <global_num>: Mention "info
7779 threads -gid".
7780 * thread.c (info_threads_command): Handle "-gid".
7781 (_initialize_thread): Adjust "info threads" help string to mention
7782 -gid.
7783
22a02324
PA
77842016-01-13 Pedro Alves <palves@redhat.com>
7785
7786 * NEWS: Mention InferiorThread.global_num.
7787 * python/py-infthread.c (thpy_get_global_num): New function.
7788 (thread_object_getset): Register "global_num".
7789
5d5658a1
PA
77902016-01-13 Pedro Alves <palves@redhat.com>
7791
7792 * NEWS: Mention that thread IDs are now per inferior and global
7793 thread IDs.
7794 * Makefile.in (SFILES): Add tid-parse.c.
7795 (COMMON_OBS): Add tid-parse.o.
7796 (HFILES_NO_SRCDIR): Add tid-parse.h.
7797 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
7798 * breakpoint.c (insert_breakpoint_locations)
7799 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
7800 (print_one_breakpoint_location, set_longjmp_breakpoint)
7801 (check_longjmp_breakpoint_for_call_dummy)
7802 (set_momentary_breakpoint): Adjust to use global IDs.
7803 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
7804 (until_break_command, longjmp_bkpt_dtor)
7805 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
7806 to use global IDs.
7807 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
7808 ptid_to_global_thread_id.
7809 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
7810 * gdbthread.h (struct thread_info): Rename field 'num' to
7811 'global_num. Add new fields 'per_inf_num' and 'inf'.
7812 (thread_id_to_pid): Rename thread_id_to_pid to
7813 global_thread_id_to_ptid.
7814 (pid_to_thread_id): Rename to ...
7815 (ptid_to_global_thread_id): ... this.
7816 (valid_thread_id): Rename to ...
7817 (valid_global_thread_id): ... this.
7818 (find_thread_id): Rename to ...
7819 (find_thread_global_id): ... this.
7820 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
7821 (print_thread_info): Add comment.
7822 * tid-parse.h: New file.
7823 * tid-parse.c: New file.
7824 * infcmd.c (step_command_fsm_prepare)
7825 (step_command_fsm_should_stop): Adjust to use the global thread
7826 ID.
7827 (until_next_command, until_next_command)
7828 (finish_command_fsm_should_stop): Adjust to use the global thread
7829 ID.
7830 (attach_post_wait): Adjust to check the inferior number too.
7831 * inferior.h (struct inferior) <highest_thread_num>: New field.
7832 * infrun.c (handle_signal_stop)
7833 (insert_exception_resume_breakpoint)
7834 (insert_exception_resume_from_probe): Adjust to use the global
7835 thread ID.
7836 * record-btrace.c (record_btrace_open): Use global thread IDs.
7837 * remote.c (process_initial_stop_replies): Also consider the
7838 inferior number.
7839 * target.c (target_pre_inferior): Clear the inferior's highest
7840 thread num.
7841 * thread.c (clear_thread_inferior_resources): Adjust to use the
7842 global thread ID.
7843 (new_thread): New inferior parameter. Adjust to use it. Set both
7844 the thread's global ID and the thread's per-inferior ID.
7845 (add_thread_silent): Adjust.
7846 (find_thread_global_id): New.
7847 (find_thread_id): Make static. Adjust to rename.
7848 (valid_thread_id): Rename to ...
7849 (valid_global_thread_id): ... this.
7850 (pid_to_thread_id): Rename to ...
7851 (ptid_to_global_thread_id): ... this.
7852 (thread_id_to_pid): Rename to ...
7853 (global_thread_id_to_ptid): ... this. Adjust.
7854 (first_thread_of_process): Adjust.
7855 (do_captured_list_thread_ids): Adjust to use global thread IDs.
7856 (should_print_thread): New function.
7857 (print_thread_info): Rename to ...
7858 (print_thread_info_1): ... this, and add new show_global_ids
7859 parameter. Handle it. Iterate over inferiors.
7860 (print_thread_info): Reimplement as wrapper around
7861 print_thread_info_1.
7862 (show_inferior_qualified_tids): New function.
7863 (print_thread_id): Use it.
7864 (tp_array_compar): Compare inferior numbers too.
7865 (thread_apply_command): Use tid_range_parser.
7866 (do_captured_thread_select): Use parse_thread_id.
7867 (thread_id_make_value): Adjust.
7868 (_initialize_thread): Adjust "info threads" help string.
7869 * varobj.c (struct varobj_root): Update comment.
7870 (varobj_create): Adjust to use global thread IDs.
7871 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
7872 * windows-tdep.c (display_tib): No longer accept an argument.
7873 * cli/cli-utils.c (get_number_trailer): Make extern.
7874 * cli/cli-utils.h (get_number_trailer): Declare.
7875 (get_number_const): Adjust documentation.
7876 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
7877 thread IDs.
7878 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7879 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
7880 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
7881 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
7882 Likewise.
7883 * python/py-breakpoint.c (bppy_set_thread): Likewise.
7884 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
7885 * python/py-infthread.c (thpy_get_num): Add comment and return the
7886 per-inferior thread ID.
7887 (thread_object_getset): Update comment of "num".
7888
43792cf0
PA
78892016-01-13 Pedro Alves <palves@redhat.com>
7890
7891 * breakpoint.c (remove_threaded_breakpoints)
7892 (print_one_breakpoint_location): Use print_thread_id.
7893 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7894 (btrace_fetch, btrace_clear): Use print_thread_id.
7895 * common/print-utils.c (CELLSIZE): Delete.
7896 (get_cell): Rename to ...
7897 (get_print_cell): ... this and made extern. Adjust call callers.
7898 Adjust to use PRINT_CELL_SIZE.
7899 * common/print-utils.h (get_print_cell): Declare.
7900 (PRINT_CELL_SIZE): New.
7901 * gdbthread.h (print_thread_id): Declare.
7902 * infcmd.c (signal_command): Use print_thread_id.
7903 * inferior.c (print_inferior): Use print_thread_id.
7904 * infrun.c (handle_signal_stop)
7905 (insert_exception_resume_breakpoint)
7906 (insert_exception_resume_from_probe)
7907 (print_signal_received_reason): Use print_thread_id.
7908 * record-btrace.c (record_btrace_info)
7909 (record_btrace_resume_thread, record_btrace_cancel_resume)
7910 (record_btrace_step_thread, record_btrace_wait): Use
7911 print_thread_id.
7912 * thread.c (thread_apply_all_command): Use print_thread_id.
7913 (print_thread_id): New function.
7914 (thread_apply_command): Use print_thread_id.
7915 (thread_command, thread_find_command, do_captured_thread_select):
7916 Use print_thread_id.
7917
84654457
PA
79182016-01-13 Pedro Alves <palves@redhat.com>
7919
7920 * NEWS: Mention InferiorThread.inferior.
7921 * python/py-infthread.c (thpy_get_inferior): New.
7922 (thread_object_getset): Register "inferior".
7923
e3940304
PA
79242016-01-13 Pedro Alves <palves@redhat.com>
7925
7926 * NEWS: Mention $_inferior.
7927 * inferior.c (inferior_id_make_value): New.
7928 (inferior_funcs): New.
7929 (_initialize_inferior): Create $_inferior variable.
7930
a911d87a
PA
79312016-01-13 Pedro Alves <palves@redhat.com>
7932
7933 PR breakpoints/19388
7934 * frame.c (get_current_frame): Use validate_registers_access.
7935 * gdbthread.h (validate_registers_access): Declare.
7936 * infrun.c (validate_siginfo_access): Delete.
7937 (siginfo_value_read, siginfo_value_write): Use
7938 validate_registers_access.
7939 * thread.c (validate_registers_access): New function.
7940
82075af2
JS
79412016-01-12 Josh Stone <jistone@redhat.com>
7942 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7943
7944 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
7945 syscall_entry and syscall_return stop reasons. Mention GDB
7946 support for remote catch syscall.
7947 * remote.c (PACKET_QCatchSyscalls): New enum.
7948 (remote_set_syscall_catchpoint): New function.
7949 (remote_protocol_features): New element for QCatchSyscalls.
7950 (remote_parse_stop_reply): Parse syscall_entry/return stops.
7951 (init_remote_ops): Install remote_set_syscall_catchpoint.
7952 (_initialize_remote): Config QCatchSyscalls.
7953 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
7954
d18547d8
YQ
79552016-01-12 Yao Qi <yao.qi@linaro.org>
7956
7957 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
7958 to gdb_byte * and pass to linux_fork_to_function.
7959
ba4dd7c4
YQ
79602016-01-12 Yao Qi <yao.qi@linaro.org>
7961
7962 * nat/linux-ptrace.c (linux_fork_to_function): Change type
7963 of argument 'function'.
7964 (linux_grandchild_function): Change return type to 'int'.
7965 Change child_stack's type to 'void *'.
7966 (linux_child_function): Likewise.
7967
bc504a31
PA
79682016-01-12 Pedro Alves <palves@redhat.com>
7969
7970 Remove use of the registered trademark symbol throughout.
7971
5eddd578
TS
79722016-01-12 Thomas Schwinge <thomas@codesourcery.com>
7973
7974 * reply_mig_hack.awk: Rewrite one regular expression.
7975
b835bb52
MF
79762016-01-11 Mike Frysinger <vapier@gentoo.org>
7977
7978 * acinclude.m4: Include new warning.m4 file.
7979 * configure: Regenerated.
7980 * configure.ac: Move all warning logic ...
7981 * warning.m4: ... here.
7982
2f99e8fc
YQ
79832016-01-08 Yao Qi <yao.qi@linaro.org>
7984
7985 * extension.c: Include target.h.
7986 (set_active_ext_lang): Only call install_gdb_sigint_handler,
7987 check_quit_flag, and set_quit_flag if target_terminal_is_ours
7988 returns false.
7989 (restore_active_ext_lang): Likewise.
7990 * target.c (target_terminal_is_ours): New function.
7991 * target.h (target_terminal_is_ours): Declare.
7992
5dd05630
MR
79932016-01-07 Maciej W. Rozycki <macro@imgtec.com>
7994
7995 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
7996 to `err' in the little-endian leg.
7997
f5aa3069
YQ
79982016-01-06 Yao Qi <yao.qi@linaro.org>
7999
8000 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
8001 lines below.
8002 (thumb_get_next_pcs_raw): Make it static.
8003 (arm_get_next_pcs_raw): Likewise.
8004 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
8005 declaration.
8006 (arm_get_next_pcs_raw): Likewise.
8007
bf69ad5a
MF
80082016-01-05 Mike Frysinger <vapier@gentoo.org>
8009
8010 * version.in: Change cvs to git.
8011
66750332
MF
80122016-01-05 Mike Frysinger <vapier@gentoo.org>
8013
8014 * configure.tgt (score-*-*): Delete gdb_sim assignment.
8015
976102cd
PA
80162016-01-05 Pedro Alves <palves@redhat.com>
8017
8018 PR sim/13418
8019 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
8020 the target is powerpc*.
fa89c126
PA
8021 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
8022 of WITH_SIM.
976102cd
PA
8023 * configure: Regenerate.
8024 * config.in: Regenerate.
8025
43368e1d
MM
80262016-01-04 Markus Metzger <markus.t.metzger@intel.com>
8027
8028 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
8029
32273fe6
MF
80302016-01-02 Mike Frysinger <vapier@gentoo.org>
8031
8032 * configure.tgt (powerpc*-*-*): Delete test call and
8033 always assign gdb_sim.
8034
618f726f
JB
80352016-01-01 Joel Brobecker <brobecker@adacore.com>
8036
8037 Update year range in copyright notice of all files.
8038
edd88788
JB
80392016-01-01 Joel Brobecker <brobecker@adacore.com>
8040
8041 * top.c (print_gdb_version): Change copyright year in version
8042 message.
8043
0f7b3ef4 80442016-01-01 Joel Brobecker <brobecker@adacore.com>
aec47d1d 8045
0f7b3ef4 8046 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
aec47d1d 8047
0f7b3ef4 8048For older changes see ChangeLog-2015.
c906108c
SS
8049\f
8050Local Variables:
8051mode: change-log
8052left-margin: 8
8053fill-column: 74
8054version-control: never
57da7796 8055coding: utf-8
c906108c 8056End:
This page took 2.455993 seconds and 4 git commands to generate.